From patchwork Wed Oct 17 07:40:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 149028 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp327450lji; Wed, 17 Oct 2018 00:42:18 -0700 (PDT) X-Google-Smtp-Source: ACcGV61xoYU79Zssq1W1cPtLUmPqXv3zoZ5zAYL8Ezf3OMBwaGJsnFxYfNiUsxvq3xTCCUSTAK97 X-Received: by 2002:a62:1c06:: with SMTP id c6-v6mr25787290pfc.41.1539762138055; Wed, 17 Oct 2018 00:42:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539762138; cv=none; d=google.com; s=arc-20160816; b=jiBajLNNdmg2sbho0hfshvs+Klb7cX+A3C7+M7zl1Wii/ZG8y8ljoQgtL5XwUaQ/Cn /hrpUpb03WUBdz5DeJqOLhASY+/fjMk5/s/o+TBNQiA6BuSYe+3T6yQMP8TpJbc6GWB4 UbVkGPjDqgcJ+Hx+bErIsJAK1cw538/ttFSmTvcxJwvk67MLNrQJ64kxbSorNP5AiZvK UDoG9Mj5AuBIiaVHep9M/HMkrZTCcQMq5x4Wq0H1x/k9D3U/KtiU9mTHrFNYJI5i2rHx uz98lgm0+vGanDZJNbVR3lPn5uwZH8jqvaek5irUh5CEB8OUOl46XjCM9RGbQoiSRC+9 9bMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=iBGFjwERlyNXfssV0mhi5P70SxiWNRCvnKhKGvOqAU0=; b=xXHl/QOIFpfzyaJ2G0j+95WQwuB48ngCgsaLy48c7qzWNUQ8BzDImqBfzhYxhvDQ5U fH4V9jUjFlVuTYqC4O+O8CXBNWP0jihljzlK2GsM9hmdVG+LXuvNDLi+fSMCIG9rvrrL AoootVwp9T+GqRvvsodoU80FBqpkbBAqfrQkQPoRDpPCi5AAXyCCSSV5q0EHeaA3e660 6AUcSPMTKHmPjk7DfHrqW0ZSuPFnTYf+fcJSaOaWQGy9KxyYuwsj1DOOWEl4+7dRPNGU 3MRWZE9x42wWfzBoF6YjiYxTHt9a4YHhOAj7Uh8XsmelFTkEwY/TWF+OySsK/rk3tiNZ 5zVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=NIvZnE9a; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p74-v6si17315001pfa.44.2018.10.17.00.42.17; Wed, 17 Oct 2018 00:42:18 -0700 (PDT) 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=@ti.com header.s=ti-com-17Q1 header.b=NIvZnE9a; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727255AbeJQPgi (ORCPT + 32 others); Wed, 17 Oct 2018 11:36:38 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:42020 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726691AbeJQPgh (ORCPT ); Wed, 17 Oct 2018 11:36:37 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id w9H7fnRF017475; Wed, 17 Oct 2018 02:41:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1539762109; bh=iBGFjwERlyNXfssV0mhi5P70SxiWNRCvnKhKGvOqAU0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=NIvZnE9aMkh7L1B+lLbGLBrVR9vrYuwYQ1ojDRdjiBAc4L9C3hS0GPMMy53oa584A pqoOocyyvRMlPKY0g9QlrfAn1LsTjrklyIE/Nx35WpO2S8pFYM3OWz0GC1co9BCSDL d7EMzF4TPaXYXs2FV/7ohtlsE1WhiLyp6hB5Vw8E= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w9H7fnRn007676; Wed, 17 Oct 2018 02:41:49 -0500 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Wed, 17 Oct 2018 02:41:49 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Wed, 17 Oct 2018 02:41:49 -0500 Received: from a0393678ub.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w9H7fgSM009413; Wed, 17 Oct 2018 02:41:46 -0500 From: Kishon Vijay Abraham I To: Bjorn Helgaas , Lorenzo Pieralisi , Murali Karicheri , Jingoo Han , Gustavo Pimentel CC: Rob Herring , , , , , Kishon Vijay Abraham I Subject: [PATCH v2 01/21] PCI: keystone: Use quirk to limit MRRS for K2G Date: Wed, 17 Oct 2018 13:10:54 +0530 Message-ID: <20181017074114.28239-2-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181017074114.28239-1-kishon@ti.com> References: <20181017074114.28239-1-kishon@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/pci/controller/dwc/pci-keystone.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.17.1 diff --git a/drivers/pci/controller/dwc/pci-keystone.c b/drivers/pci/controller/dwc/pci-keystone.c index e88bd221fffe..7d43e10a03b0 100644 --- a/drivers/pci/controller/dwc/pci-keystone.c +++ b/drivers/pci/controller/dwc/pci-keystone.c @@ -36,6 +36,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) dev_get_drvdata((x)->dev) @@ -50,6 +51,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, }, };