Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2489632pxu; Fri, 18 Dec 2020 14:52:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJyLXdg2hWXaWBWpVm2BxHdBFpcxgbEHhFmunyx0YesBc2vjKSNlZIYCqOAxKY7wsl3EDdC+ X-Received: by 2002:a17:906:3114:: with SMTP id 20mr6216532ejx.460.1608331931384; Fri, 18 Dec 2020 14:52:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608331931; cv=none; d=google.com; s=arc-20160816; b=nekWDWnGAgdRT8GffanETMiT5NpbugFkUJxF/kwje2FeGmOJwY1a30OQwK+YX3igGk 5YlX4SXVnGolo+e7ScqePQRgZ2fdQcSXJRAyKCwULkWpk7SisgthXzunCKAp5kAuykTD rhnLz2PF+zQOK+adeAQGWverO7VRYCwSmlZVm5a5np7SvEk9VV2i2b55jLc0oFqeaw4l XKgXdHolVlAb6/SnrjG0iWxaKGl+RJ0sdXv03wbMfqiSQNOI2TpDrFhmaE+pRU6vr9gg F9LiqbHKxCp+YNANh8NTHqg+k+ZvhOPcS+TZ40zXLkmUuRbGO3TRWUgC/KBffgaIBeUy vU8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:message-id:date:subject:cc :to:from:dkim-signature:dkim-filter; bh=qmJ6MBsH2JlVTRk0oWIBvfavnlcYbg8BSsz4vkManxU=; b=gKRS5E8yUyr8FlQMnJSwXshZZZGvqttN2I7DDFdtLxdWIV6j1OsfuhscSh1pMAz0P3 CmsqOH00/xXPb3/prqJkO4Gr+0ObWFMMd0KoAJYJcOrcyekj4SYci47zp/yQZO4nuA29 8oVkO1ka0DdJz2PBQD+dSw5oLzrEdw3RbIyQDrDGO5hgjrl27kYO38WugOvWQ8+rV68L d/j7T9VLfPW5mhXJHeSsUmLI1Hz/JX0nOc8t8wY77CHfIA+tNg8iqwGL4o3KoDGdmJSo nKxy3a9mM7xxxi3tV6jtfdn+ggSXvzMbbeed4Ce+C5/QaKjKHd6dGaKHrIYEou4krm1y REkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=OFsbGKIO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j1si7313546edn.611.2020.12.18.14.51.49; Fri, 18 Dec 2020 14:52:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=OFsbGKIO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725965AbgLRWv1 (ORCPT + 99 others); Fri, 18 Dec 2020 17:51:27 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:52251 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725879AbgLRWv0 (ORCPT ); Fri, 18 Dec 2020 17:51:26 -0500 Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20201218225043epoutp013c15445a32ec85cd94188252113a1c1b~R8UptaYsB0774407744epoutp01P for ; Fri, 18 Dec 2020 22:50:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20201218225043epoutp013c15445a32ec85cd94188252113a1c1b~R8UptaYsB0774407744epoutp01P 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 bscL8aYkVlalFuXHF5XmpBYfYpTmYFES51X6cSZOSCA9sSQ1OzW1ILUIJsvEwSnVwGTFf9v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xe1V9p+K3viq/HpqJTTfse2f791Ob4 SzvtS9fquDfhbetbdd9ImClySli96Fn5gVFXs/tOL7NOQ/qXub/27DV58GVS6b2C6y8++cWq LIkTKGOLfLfxS1qP8V6dD1Zps5qzbvB8N1uU8W7yvcYZeRmXfjDXF3TqxmQ8n5qYElL89cWK 01FeK/xeP5v8w/qBEktxRqKhFnNRcSIAO7Vu2KMCAAA= X-CMS-MailID: 20201218153422epcas5p42f09cbf8e40b3d68e3c037256e54d97c X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P X-CMS-RootMailID: 20201218153422epcas5p42f09cbf8e40b3d68e3c037256e54d97c References: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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); -- 2.7.4