Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp731500pxu; Wed, 6 Jan 2021 02:55:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJwLO/bNcZuisnAdCwGhiKV7yrOqIqfXk2kkNLacBtRotTwkUsMILRdC2qCZbJNLbvvyiZSG X-Received: by 2002:a17:906:cc9c:: with SMTP id oq28mr2474728ejb.224.1609930515723; Wed, 06 Jan 2021 02:55:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609930515; cv=none; d=google.com; s=arc-20160816; b=d3MaXyQXzXoRVZjnjDISzCM8eKgGl2mQlnBfJle1WV+hXTXpQ0WjOMYWp3P67pXfhZ 21MYNUHQIra5Vp7VpzRdLpHXeHetBIRCigoMiX04xRheJJCtwvSuaANOkFB/E1bJhSqg ZkQ4I2y8Rit9Y7zCURzFV7/gB6rB41X3puA0hw62tTZiXJ7VVHxsZ5gysmIyUOyHQGE2 kSKBxHqJH6hACSW+bQDr6tiOv/pUH42m0+KykLCy5Li4IupnA/kRf4FKDZ2wJkS3NzWB Oz9a1WLIzXI6nTgvmc442cLnDxuJ8TbFo6fniJXiZhlvK9kawAxxvPU3pGLSSLmiBbsM lv2w== 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=kiqqzxtVs6YoPEWPZalZapoDdUqZXOdKnWnJ1ba2mq8=; b=xOXx9tFcBFvkWPZ+vy5yLS/jmr/a6OvGa70HiFRIBi3VMDO3+kzwC71dAM+9rp3mTg XU8j2rTQkziBXdKc0JOJdhJzZueBwKR6gklKoJK+thgzlwDNCPt66IClTUpj4keRQO0Z 6mqamMUlsoL98SPxTY0rBi06eQSqcMIozmzUNW7mZmdN3b01F9ANfowQo933d1RrSTNk gZlbCjSSx2RQ3MmUj6tj72uVHbbenXKmkbqjTtozaai5izkplig2aDNxMf3sRPnLiezd DEr8lHlUpyWrmr3ye53F8h61us4nm9oVVPmowZTxyx2XYo7KqR3qadoQLlvLC1Q5PqTA ej2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=JZHaPifv; 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 j13si868277edt.512.2021.01.06.02.54.50; Wed, 06 Jan 2021 02:55:15 -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=JZHaPifv; 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 S1727040AbhAFKwg (ORCPT + 99 others); Wed, 6 Jan 2021 05:52:36 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:51559 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726098AbhAFKwg (ORCPT ); Wed, 6 Jan 2021 05:52:36 -0500 Received: from epcas5p4.samsung.com (unknown [182.195.41.42]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20210106105152epoutp01fdc646d8a924719c6691708e97787b8f~Xnxbndck31591215912epoutp01i for ; Wed, 6 Jan 2021 10:51:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20210106105152epoutp01fdc646d8a924719c6691708e97787b8f~Xnxbndck31591215912epoutp01i DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1609930312; bh=kiqqzxtVs6YoPEWPZalZapoDdUqZXOdKnWnJ1ba2mq8=; h=From:To:Cc:Subject:Date:References:From; b=JZHaPifvMQEWVj3MyU4R507TgVmHpxt34ACrbzq5a7yNv5KcAvbrtim2BgG4JIuCW 8tGqRTJw2vP4L2z1FktnxCjqhcSA60aBa9dRYW7Ig1r2fITV0Y/zHP0uGTfYDpBlF4 f/qWoPZLLZaeqhrzZupShlKnISSfUq1I9ODKWiKI= Received: from epsmges5p2new.samsung.com (unknown [182.195.42.74]) by epcas5p3.samsung.com (KnoxPortal) with ESMTP id 20210106105151epcas5p3691528765db86836643f095dcf4e5fa9~Xnxagy5fK1437014370epcas5p3e; Wed, 6 Jan 2021 10:51:51 +0000 (GMT) Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id D0.AA.50652.74695FF5; Wed, 6 Jan 2021 19:51:51 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20210106104514epcas5p37d8e3a88aefdf109f7fb4157d4a1f07a~XnrpNB2w71198811988epcas5p3P; Wed, 6 Jan 2021 10:45:14 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20210106104514epsmtrp1d3b79d70711aed99945e84c55d5b6862~XnrpL-j1D0422104221epsmtrp1M; Wed, 6 Jan 2021 10:45:14 +0000 (GMT) X-AuditID: b6c32a4a-6b3ff7000000c5dc-77-5ff59647b2c0 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 5A.90.13470.AB495FF5; Wed, 6 Jan 2021 19:45:14 +0900 (KST) Received: from ubuntu.sa.corp.samsungelectronics.net (unknown [107.108.83.125]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20210106104512epsmtip13b470853fec3f5e7413b62be7aba60fe~XnrnSgZMt3031630316epsmtip1J; Wed, 6 Jan 2021 10:45:12 +0000 (GMT) From: Shradha Todi To: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Cc: jingoohan1@gmail.com, gustavo.pimentel@synopsys.com, robh@kernel.org, lorenzo.pieralisi@arm.com, bhelgaas@google.com, pankaj.dubey@samsung.com, sriram.dash@samsung.com, niyas.ahmed@samsung.com, p.rajanbabu@samsung.com, l.mehra@samsung.com, hari.tv@samsung.com, Shradha Todi Subject: [PATCH v2] PCI: dwc: Change size to u64 for EP outbound iATU Date: Wed, 6 Jan 2021 16:15:00 +0530 Message-Id: <1609929900-19082-1-git-send-email-shradha.t@samsung.com> X-Mailer: git-send-email 2.7.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrPIsWRmVeSWpSXmKPExsWy7bCmhq77tK/xBu1f+C2WNGVY7LrbwW7x cdpKJosVX2ayW9x5foPR4vKuOWwWZ+cdZ7N48/sFu8WTKY9YLY5uDLZYtPULu8X/PTvYLXoP 11rcWM/uwOexZt4aRo+ds+6yeyzYVOqxaVUnm0ffllWMHlv2f2b0+LxJLoA9issmJTUnsyy1 SN8ugSvj1tyzbAXfeSu+XXzE2sB4iLuLkZNDQsBE4uj3FaxdjFwcQgK7GSWev1rNBOF8YpRY 8/sfC4TzjVHi/o7ZTDAtX45PYYZI7GWUeDdnHjtIQkighUmidY0iiM0moCXR+LWLGcQWEbCW ONy+hQ2kgVlgK5PE2cUL2UASwgKuEm8eNjOC2CwCqhKX13SCxXmB4lt3PWaB2CYncfNcJ9g2 CYG37BI/Hi4FauAAclwkfrUHQdQIS7w6voUdwpaSeNnfBmXnS0y98JQForxCYnlPHUTYXuLA lTlgYWYBTYn1u/QhwrISU0+tA/uRWYBPovf3E6h/eSV2zIOxlSW+/N0DdZmkxLxjl1khbA+J d2vWMUKCIVbiyZW/jBMYZWchbFjAyLiKUTK1oDg3PbXYtMAoL7Vcrzgxt7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xpnLWQQtz12 bNuCP59Oed5kFX/PuvKjl9k/o4vrdofN7JjS9Mdm8p6fso6HNoS/qLLUe1Ql/OTlJ88DTtt2 7G/aNuuKJ5vZkmrWG3ePLed3O7H6Sbf1pn/cSWcFppnECSil3vvE8SZ++z2btvunJ0/4E1xX 9CVogl/KzIxV+oWTHmWH/dtd86/66JQ6m4Mcs9c7ya3+VXz2k5/6rh9cxe87dvxJTpY3OJRp ss8uxCF72XSVeTyme35kLzeeqps3mfO7V6jFv2dRP/Rdl6z+8qX+6OpPDPeOsEg+3rci+5vB x/tCNuktf9rCVhXPDzzykFHd2uJhpdexSwvtzKv7/qru4LtVF/RLiaU4I9FQi7moOBEAPUTf bbsCAAA= X-CMS-MailID: 20210106104514epcas5p37d8e3a88aefdf109f7fb4157d4a1f07a X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P X-CMS-RootMailID: 20210106104514epcas5p37d8e3a88aefdf109f7fb4157d4a1f07a 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 --- v1: https://lkml.org/lkml/2020/12/18/690 v2: Addressed Bjorn's review on to keep commit message length limit to 75 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 1d62ca9..db407ed 100644 --- a/drivers/pci/controller/dwc/pcie-designware.c +++ b/drivers/pci/controller/dwc/pcie-designware.c @@ -326,7 +326,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 7da79eb..359151f 100644 --- a/drivers/pci/controller/dwc/pcie-designware.h +++ b/drivers/pci/controller/dwc/pcie-designware.h @@ -302,7 +302,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