From patchwork Mon Oct 15 13:07:03 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: 148830 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp3776169lji; Mon, 15 Oct 2018 06:08:55 -0700 (PDT) X-Google-Smtp-Source: ACcGV60zFDG3dWTOmzrsxatfVSe/YJHkhVkXJMA2GsYgWMxruDw2dwQ7dvRoHqwJeTIMMZPNFlBX X-Received: by 2002:a62:4bd2:: with SMTP id d79-v6mr17507415pfj.38.1539608935625; Mon, 15 Oct 2018 06:08:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539608935; cv=none; d=google.com; s=arc-20160816; b=si38XLRd17iq/t7jI+YMPCkSBBVOl7Ny/X4rTLksQBLcNwFxnG6w1MX1GzpOtBAgqP OcUmnuxbswg5aV36I4bG13Y0HmDFy8XRY9pvDGjX3dNEn/MDKnwVtKqOSbsYPYGADUuN qCsBbUYFihY1G63TjPcJoSUUqeGbfvrnDkrDKFtNzOjBPoykSaKHbHXuq7yT+U8SwmFy vtT7ryWlgx5nVHsVQsYiBscXXcyoC/YtmCA978EmaSEzUx9emaxJSH+iFq2MKT4yId1h m/x7wBuTCvjfdr+qxqTE1DQRmOvMt7t798GhE86qAkhkvvkquSkIV9trghHtJrk6AvDR NrIw== 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=Lce+7gtuOxSaQkd/FYkKjyN0nTbeuI+ZN9AhupoYgshs3KMeimfWeDPOCQTfIPnb9t nmYVK43M95VnHoSp9qkP9FVzJ+6iREaClbwKbLLQz5qVjR2CT9zSl+4F14YXjXw40y8o J1v5hvaAxy8lWDf7m70+XeA27F57MpBHDvf14cflqpEhr5o9C3eq+Bi3joERlr9XKFgd 6CZOXlE6JswkqJIh0h4hL6BUbgfIKuY1O+VNHOg248lZpEFevQ7GxnCOyHSjdwQOOKV1 lObXflku6DIFRQd+l7x75HiedDwWvLqSk8YlnGguVH/j2vtLUwncmAEJLP+CvPYPSmdq rtbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=UaBdacgj; 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 r3-v6si8169164plb.197.2018.10.15.06.08.49; Mon, 15 Oct 2018 06:08:55 -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=UaBdacgj; 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 S1726614AbeJOUxm (ORCPT + 32 others); Mon, 15 Oct 2018 16:53:42 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:43352 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726422AbeJOUxl (ORCPT ); Mon, 15 Oct 2018 16:53:41 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id w9FD82O4089099; Mon, 15 Oct 2018 08:08:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1539608882; bh=iBGFjwERlyNXfssV0mhi5P70SxiWNRCvnKhKGvOqAU0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=UaBdacgj9aso7wuuExr7YoxQcc93EjRbftDWxGdVz7TZQsDC/wrEkXveIVTYVPQ6J M4eyoReIDjhWqdtry7j5Ce1EsUab6SwVLB415Q/+H/vTMSw9Il7XGfM2AmY1hTA47N qu8pVAPQVfzGUoDkafxiTGgpWYgkmKuwoDhlZ4P4= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w9FD8211010630; Mon, 15 Oct 2018 08:08:02 -0500 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Mon, 15 Oct 2018 08:08:02 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Mon, 15 Oct 2018 08:08:02 -0500 Received: from a0393678ub.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w9FD7tL4009433; Mon, 15 Oct 2018 08:07:59 -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 01/19] PCI: keystone: Use quirk to limit MRRS for K2G Date: Mon, 15 Oct 2018 18:37:03 +0530 Message-ID: <20181015130721.5535-2-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181015130721.5535-1-kishon@ti.com> References: <20181015130721.5535-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, }, };