From patchwork Wed Nov 27 20:31:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 180315 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp6625627ilf; Wed, 27 Nov 2019 12:37:48 -0800 (PST) X-Google-Smtp-Source: APXvYqwyFjzFTHxwPJ6eVVXD6HXEZ1YsJ+2UfBWM4XRMO2HtvR2qQMThuMPhwrYTZdVE/7aGUBLo X-Received: by 2002:a50:f7cb:: with SMTP id i11mr34965693edn.194.1574887068178; Wed, 27 Nov 2019 12:37:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574887068; cv=none; d=google.com; s=arc-20160816; b=AHSna+t/9TTQuSMj5APXzhvXyPlhFdUntDfZZjA0YY/Z3SKcuJz1sC++lUZhZliRYy wkKR1X0ltQeT/wk6JcVi7FRfvS+DxcmNw2Fm5PXiOBwtrLb/gY2Eu7OAh7NNzkFHdEx5 0feDwcIMekwaJpwkIMyrc+fJuhAivGJnU7pCfdhvRWsm6RRMiNrfrPmM4lUG9Sa8VhIu Qmd8HzK5aa4nOvXOEHqcuPspiJB2yVxRvRyxjpNifqBpdQyJhcXNY61IT4QuhBbwzsRh nXZ2AE/+jkSvT+jFAV8rqKsCuMyiXqSxyUAbOqyP3iJaPUAZukkrf2tZpOOzbHOdO8d/ 9CGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=PaM0RKGHf5b3Id0lsTQo5oHjX5VWq0V+rX/UqzAl+xM=; b=t2790ViguCG2tPLhlZg7VMF8sFbQBgfi9V0WfbjlfaC2vi9EpywiqzGBJDhIPCSsAS HbwOi16q8mZbWp3RDtcxuwDHL+YjG+o46DwoTajqI6OZl3WadN7u2/mwhwAVQjCZy4Q/ q+IY4mOSbQnVynwB0zi+9D8EF0RJrtWmWYjgLVmoGHq8HQtmZR42aSY/NyaVOQau4xTM VOuhPynAuMeVuhLU6xwmUDJ/XPl114Kq2sh2m+tEnaI05CYppjDCKMnNCbgiN4779Pox F5nC4UrSZdut1ttG2zkKrND0trWzZDGjR4ElXywDRXCxK7FVoARwoaoKfh7Hia00f+gx l8yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="QFhbIc/I"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id nw21si10064530ejb.222.2019.11.27.12.37.47; Wed, 27 Nov 2019 12:37:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="QFhbIc/I"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728618AbfK0Uhq (ORCPT + 26 others); Wed, 27 Nov 2019 15:37:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:40724 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728601AbfK0Uhh (ORCPT ); Wed, 27 Nov 2019 15:37:37 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2AAB1215B2; Wed, 27 Nov 2019 20:37:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574887056; bh=I0rchmJGs8cAxxh9kh0r3kMYrLFrSYXfgcupkO1Fj4E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QFhbIc/IUyEcSanrfxrxkY6vrKel0Y20FVHCVPJ1R3rLOvZ2Cg8NQhqT/Gs5tKhtL RXqpATMB34pUmjaENaDotyCjVlqIyyxOsmuablbR/FV/KC2ItDPCBDd5ZiAYB5lzar VPAbcChA22Fx+4FZnZi1CzLA7KtL2ZS9gHy51UUE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kishon Vijay Abraham I , Lorenzo Pieralisi , Sasha Levin Subject: [PATCH 4.4 096/132] PCI: keystone: Use quirk to limit MRRS for K2G Date: Wed, 27 Nov 2019 21:31:27 +0100 Message-Id: <20191127203022.002864472@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127202857.270233486@linuxfoundation.org> References: <20191127202857.270233486@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kishon Vijay Abraham I [ Upstream commit 148e340c0696369fadbbddc8f4bef801ed247d71 ] PCI controller in K2G also has a limitation that memory read request size (MRRS) must not exceed 256 bytes. Use the quirk to limit MRRS (added for K2HK, K2L and K2E) for K2G as well. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Lorenzo Pieralisi Signed-off-by: Sasha Levin --- drivers/pci/host/pci-keystone.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.20.1 diff --git a/drivers/pci/host/pci-keystone.c b/drivers/pci/host/pci-keystone.c index fb682e8af74d5..bdb808ba90d2a 100644 --- a/drivers/pci/host/pci-keystone.c +++ b/drivers/pci/host/pci-keystone.c @@ -42,6 +42,7 @@ #define PCIE_RC_K2HK 0xb008 #define PCIE_RC_K2E 0xb009 #define PCIE_RC_K2L 0xb00a +#define PCIE_RC_K2G 0xb00b #define to_keystone_pcie(x) container_of(x, struct keystone_pcie, pp) @@ -56,6 +57,8 @@ static void quirk_limit_mrrs(struct pci_dev *dev) .class = PCI_CLASS_BRIDGE_PCI << 8, .class_mask = ~0, }, { PCI_DEVICE(PCI_VENDOR_ID_TI, PCIE_RC_K2L), .class = PCI_CLASS_BRIDGE_PCI << 8, .class_mask = ~0, }, + { PCI_DEVICE(PCI_VENDOR_ID_TI, PCIE_RC_K2G), + .class = PCI_CLASS_BRIDGE_PCI << 8, .class_mask = ~0, }, { 0, }, };