From patchwork Fri Dec 18 15:34:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shradha Todi X-Patchwork-Id: 11983205 X-Patchwork-Delegate: lorenzo.pieralisi@arm.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 122B1C3526B for ; Fri, 18 Dec 2020 22:51:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DEA3423B98 for ; Fri, 18 Dec 2020 22:51:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726209AbgLRWva (ORCPT ); Fri, 18 Dec 2020 17:51:30 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:52252 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725880AbgLRWv1 (ORCPT ); Fri, 18 Dec 2020 17:51:27 -0500 Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20201218225043epoutp01b0ede7438de370b4d8c50f82c2b1a6a3~R8UpuKL000591505915epoutp01T for ; Fri, 18 Dec 2020 22:50:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20201218225043epoutp01b0ede7438de370b4d8c50f82c2b1a6a3~R8UpuKL000591505915epoutp01T DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1608331843; bh=qmJ6MBsH2JlVTRk0oWIBvfavnlcYbg8BSsz4vkManxU=; h=From:To:Cc:Subject:Date:References:From; b=OFsbGKIOohHt3WPTazQexfw+Qm/zYiia2yGwcLIQUCYO5GUCG9ycnfutbLu7Y9gBS 4zJeOZpC+8n5+6+rdaZx22eLv6gWp7HHosDFNPWGysjxLCgiP1LQ0TUMKGTaQXa7ey vi4ew3R3/FHOv8ewh3FJv6i41Sied30EBaZshxwM= Received: from epsmges5p3new.samsung.com (unknown [182.195.42.75]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20201218225042epcas5p4de74e4f1d0d64ff06f330eb322c83faf~R8UonJfzi2377123771epcas5p4-; Fri, 18 Dec 2020 22:50:42 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id 8D.D1.33964.2423DDF5; Sat, 19 Dec 2020 07:50:42 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p4.samsung.com (KnoxPortal) with ESMTPA id 20201218153422epcas5p42f09cbf8e40b3d68e3c037256e54d97c~R2XqHAEXd0338803388epcas5p41; Fri, 18 Dec 2020 15:34:22 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20201218153422epsmtrp218f4b169215282c1a6400f93f3c4fa6b~R2XqGUJPS0358503585epsmtrp2b; Fri, 18 Dec 2020 15:34:22 +0000 (GMT) X-AuditID: b6c32a4b-ea1ff700000184ac-ce-5fdd3242564c Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id B6.7F.08745.DFBCCDF5; Sat, 19 Dec 2020 00:34:22 +0900 (KST) Received: from ubuntu.sa.corp.samsungelectronics.net (unknown [107.108.83.125]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20201218153420epsmtip2af3d10892d030863cd035a092a86b5f8~R2XomA0270089100891epsmtip2Y; Fri, 18 Dec 2020 15:34:20 +0000 (GMT) From: Shradha Todi To: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Cc: jingoohan1@gmail.com, gustavo.pimentel@synopsys.com, lorenzo.pieralisi@arm.com, robh@kernel.org, bhelgaas@google.com, pankaj.dubey@samsung.com, Shradha Todi Subject: [PATCH] PCI: dwc: Change size to u64 for EP outbound iATU Date: Fri, 18 Dec 2020 21:04:08 +0530 Message-Id: <1608305648-31816-1-git-send-email-shradha.t@samsung.com> X-Mailer: git-send-email 2.7.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrFIsWRmVeSWpSXmKPExsWy7bCmpq6T0d14g643GhZLmjIsdt3tYLdY 8WUmu8XlXXPYLM7OO85m8eb3C3aLRVu/sFv837OD3aL3cK0Dp8eaeWsYPXbOusvusWBTqcem VZ1sHn1bVjF6bNn/mdHj8ya5APYoLpuU1JzMstQifbsEroyVK9sZC/7yVPyY+IW5gfEeVxcj J4eEgInEpWuf2bsYuTiEBHYzSiw+uJARwvnEKLG7bQsLhPOZUeLplkuMMC3Lj96HatnFKHHi 5D82CKeFSeLG6j1MIFVsAloSjV+7mEFsEQFricPtW8CKmAX2MEr8WHQfrEhYwEni0YNbYGNZ BFQlvl37zAZi8wq4Sjzt3cUGsU5O4ua5TmaQZgmBY+wSR569ZIJIuEj8Of6aFcIWlnh1fAs7 hC0l8fndXqjmfImpF54CPcEBZFdILO+pgwjbSxy4MgcszCygKbF+lz5EWFZi6ql1YNOZBfgk en8/gdrEK7FjHoytLPHl7x4WCFtSYt6xy1AXeEisugFxspBArETnrSOsExhlZyFsWMDIuIpR MrWgODc9tdi0wDgvtVyvODG3uDQvXS85P3cTIzg5aHnvYHz04IPeIUYmDsZDjBIczEoivKEP bscL8aYkVlalFuXHF5XmpB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nIwJ37Z +6cN96LDGt9kCHOc15pj8iwlYQJv85TwQ7vmVfhxPQxe1V9p+K3viq/HpqJTTfse2f791Ob4 SzvtS9fquDfhbetbdd9ImClySli96Fn5gVFXs/tOL7NOQ/qXub/27DV58GVS6b2C6y8++cWq LIkTKGOLfLfxS1qP8V6dD1Zps5qzbvB8N1uU8W7yvcYZeRmXfjDXF3TqxmQ8n5qYElL89cWK 01FeK/xeP5v8w/qBEktxRqKhFnNRcSIAO7Vu2KMCAAA= X-CMS-MailID: 20201218153422epcas5p42f09cbf8e40b3d68e3c037256e54d97c X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P X-CMS-RootMailID: 20201218153422epcas5p42f09cbf8e40b3d68e3c037256e54d97c References: Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Since outbound iATU permits size to be greater than 4GB for which the support is also available, allow EP function to send u64 size instead of truncating to u32. Signed-off-by: Shradha Todi --- drivers/pci/controller/dwc/pcie-designware.c | 2 +- drivers/pci/controller/dwc/pcie-designware.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/controller/dwc/pcie-designware.c b/drivers/pci/controller/dwc/pcie-designware.c index 7eba3b2..6298212 100644 --- a/drivers/pci/controller/dwc/pcie-designware.c +++ b/drivers/pci/controller/dwc/pcie-designware.c @@ -325,7 +325,7 @@ void dw_pcie_prog_outbound_atu(struct dw_pcie *pci, int index, int type, void dw_pcie_prog_ep_outbound_atu(struct dw_pcie *pci, u8 func_no, int index, int type, u64 cpu_addr, u64 pci_addr, - u32 size) + u64 size) { __dw_pcie_prog_outbound_atu(pci, func_no, index, type, cpu_addr, pci_addr, size); diff --git a/drivers/pci/controller/dwc/pcie-designware.h b/drivers/pci/controller/dwc/pcie-designware.h index 28b72fb..bb33f28 100644 --- a/drivers/pci/controller/dwc/pcie-designware.h +++ b/drivers/pci/controller/dwc/pcie-designware.h @@ -307,7 +307,7 @@ void dw_pcie_prog_outbound_atu(struct dw_pcie *pci, int index, u64 size); void dw_pcie_prog_ep_outbound_atu(struct dw_pcie *pci, u8 func_no, int index, int type, u64 cpu_addr, u64 pci_addr, - u32 size); + u64 size); int dw_pcie_prog_inbound_atu(struct dw_pcie *pci, u8 func_no, int index, int bar, u64 cpu_addr, enum dw_pcie_as_type as_type);