Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2725960rdh; Wed, 27 Sep 2023 10:44:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH5VcE0fq13llUBbclVt1x7boIR6nygr9qu5FjdqkXMljq5P5fxuk194eKPvN+/4cMbRzWm X-Received: by 2002:a17:902:ced0:b0:1c6:2a77:ef50 with SMTP id d16-20020a170902ced000b001c62a77ef50mr3083245plg.29.1695836656497; Wed, 27 Sep 2023 10:44:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695836656; cv=pass; d=google.com; s=arc-20160816; b=zxobP70yuCuHQzWA7NH1Zsp3WStOJAp01E1S1i/Ps3/nTbhhe3/9C4Kh72/0qztD+S tXH3NVgaAUxuEWga+Ciigxlagap5Ld4V90pBNoSZG1XJveuKz8qlbq6izGFCX5M2Df/e g3wt3xoxbSt3hJxA4+HRXZNuUhwK6haf/eCxPdRjTR8Ndh/Edgdh93A/nZ0Idrcdg6gu CBD+yQ5fAtA+6/BHKI01UW+lNUGmZQs0H67RV76JWcnZES04QUQohY77QEiuSaa3B352 tR1dy4ckhRTAuKC0Lwvqjlo4YP4RTGNsKnxHHB5LDbOhn0gqZ6HrD+owF43xVlJs1y76 2SYg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=e7nRVFgQq5yVaVKmfQgl2sHM/yMIi2WtoLerzCAcfZU=; fh=2VBguDOiL1yw6SUib97wF7TD5xdtlWBx5Jfs+uAVJXI=; b=osg6utksD9boR0lQoZgrVCOQ5+hdFsCQGXz0kypx0p3rg4Dt/h/RFkFuGR1tKZMb1w DxbB9wcomgWbn7FgqNtHHAowSeeBIUCarpb1fP6PPahn0CExyHLZyBs8mgwdWzZu1aXW wUqFxMTa3UPTg1/2jPMS+Qi7DsYHA1Qyak1vOvo0yaEtMzdOIpmKKuVGqgF7bWStoB+D JqubCWFv44DiAGHKC0TB71qpYoAToceSr2Tsq4m4RUkn3b+qaqlL0NQv8Goak3+N1QOk 9uwsQ2gX7/B/5kT7FtF3E9AFUoMsV9NGmKuhFeh/PasYlFJCE1Z3S7H0+CDcxxdf8qHp sl+A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Jq6fL9Va; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id u15-20020a170903124f00b001bbcddd6e82si18184077plh.91.2023.09.27.10.44.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 10:44:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Jq6fL9Va; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 7B708804C535; Wed, 27 Sep 2023 06:26:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231854AbjI0NZz (ORCPT + 99 others); Wed, 27 Sep 2023 09:25:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229583AbjI0NZx (ORCPT ); Wed, 27 Sep 2023 09:25:53 -0400 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2040.outbound.protection.outlook.com [40.107.7.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56FE811D; Wed, 27 Sep 2023 06:25:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l9UN8+cW5bRCRCoNY0dz9aWwLmC6PPPTyPStZnA59VFt6q4gaz0q8lD4R8EFyJHEjyA7hT85lnKvxYCGfanva0t35WGVMyetJ9lyyL4Ggm71FsK0j5DZNIZGwlgkVa1EZMrrzDvpn5I/GX2hNSRhjFuISFObpWj7r6FQ5KEvWUpH4hAK0sdsnv5sB/5BVcMquSvcPiJymElDf/TLti71jk6wpwN6bsF7tnmbnyKUkHwHkwTUy2OWh3zOxTy0Q0xDU40nnvPuvQ2nGlJlvbaz9zz5d05GJgJTsQxcviq1zBfe3ohSc6X66lQ44tz6Axkcx8TK5qSgjL8YO1lMtwhxrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=e7nRVFgQq5yVaVKmfQgl2sHM/yMIi2WtoLerzCAcfZU=; b=Yr2GbLYDW0bUUadLTd0mf5uGdK1z+2hR0LPk8OVcOoatKk/Ruf8nMTU8RgNPBptHFz2EwB8G1lmv9jOclvsJSaEEt6f67LslKQSIJsr4w/2h0ib4gLv9eF+qxKeBzznJSv1GGB7abVnWbEsTsTMF6u8OnU3gxdhQVxyczbZxWadzIT1/v28Q3DxmF1kfUmAaCZ4VhAH4rGCFBxVXdNK+H2Mf0IMmYwnF7BeQLJo3gOyOUv906GWMdc50F+OCK3gqSQVlLNT9n/6lkzaO8OP2oY3+4jICL5PvAiY3RgVLHRxIaAHpm5AIqpx3lKmwpTrrZE536Pi+ayIygifWgvDGKA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=e7nRVFgQq5yVaVKmfQgl2sHM/yMIi2WtoLerzCAcfZU=; b=Jq6fL9VaqBD8+jvXAtsLH2XJwekvy4eYChDQiuF2oIJ7sW+8pRzHhoNe9SDlq1Z8zKezuWTMVvMMKqqXgs9yZH9d2+4RspY1diiSgbeg3gEWR4ruvBG7CFsJwEnEVhtRrQ16utvPenWnc8QHMt734ZrfqL1KdVNLL/B/r5cDix0= Received: from VI1PR04MB5967.eurprd04.prod.outlook.com (2603:10a6:803:cc::27) by DU2PR04MB8869.eurprd04.prod.outlook.com (2603:10a6:10:2e0::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.28; Wed, 27 Sep 2023 13:25:48 +0000 Received: from VI1PR04MB5967.eurprd04.prod.outlook.com ([fe80::c863:fc11:de43:4e0a]) by VI1PR04MB5967.eurprd04.prod.outlook.com ([fe80::c863:fc11:de43:4e0a%3]) with mapi id 15.20.6813.027; Wed, 27 Sep 2023 13:25:48 +0000 From: Roy Zang To: Frank Li , "hch@infradead.org" CC: "bhelgaas@google.com" , "christophe.jaillet@wanadoo.fr" , "imx@lists.linux.dev" , "kw@linux.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-pci@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "lpieralisi@kernel.org" , "M.H. Lian" , Mingkai Hu , "robh@kernel.org" Subject: RE: [PATCH v3 1/1] PCI: layerscape-ep: set 64-bit DMA mask Thread-Topic: [PATCH v3 1/1] PCI: layerscape-ep: set 64-bit DMA mask Thread-Index: AQHZ8IJxif3O1XpeLUCSGuMJWyHCXbAuqr3A Date: Wed, 27 Sep 2023 13:25:47 +0000 Message-ID: References: <20230926140445.3855365-1-Frank.Li@nxp.com> In-Reply-To: <20230926140445.3855365-1-Frank.Li@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: VI1PR04MB5967:EE_|DU2PR04MB8869:EE_ x-ms-office365-filtering-correlation-id: 62b45402-dbd8-4ef8-db76-08dbbf5d42fa x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: P5OLILx6cKo8d6NbyYVazMW9ORGHSyiK32q9mA/aFFLBmMTct+HHSzZUUOvBXOA8hEkR2RvzaDn5mzej0WU9eSJAMelMQPU1bSJ7Pc73SR4ywwgHWzM0Ir+GT1M1ea/UkmyX9iPIuAgy0BxgjiXrXKCqxx4/ip4YoIjf679zVXd5H+1mq/bCHxoSUEQlFK6WhWDyfSANKF1PA9JHWIOneJALhfea3ivBJB8+mPsced1YjGzayeJFgbYtw95QXyejRbO7YPdM0+mr7oSwFV4aJbU+cUdfCwU2Lru5H4cpKSdn1OZWC7WyiemckynFhLaeszUDDSLf7YT5DsG7FsjWCY7vIychJoa0gHlk4eVCwaKFdLOlV5Jd+pqEjgxF0KXK0uha1YoTSWMl0+REUnx1XHEvE73MV9F2r9f9hD5YgDOppqC3SzmI8pXVoTsSFb6uVxAm1zHOtcK32yTju3vl9pEz2PAXxnN/eJnlr+FSBR8YcNopOTajohPV1Jn4dpKDi3Unig6OaWqzBt5fUo/cHQgF4OoFCME4G14CZXuv0FyBQULFrTQKVCF9Bfu+fwGnpiC86c1+HkoOFah03UgV41lYM5+P9Y12uxH4fW/YZsdbR5QnaifWr18cCJKH39hL x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5967.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(366004)(136003)(396003)(376002)(39860400002)(230922051799003)(1800799009)(451199024)(186009)(55236004)(7696005)(6506007)(9686003)(66446008)(83380400001)(26005)(478600001)(8936002)(2906002)(7416002)(76116006)(4326008)(66476007)(66556008)(66946007)(110136005)(64756008)(316002)(41300700001)(52536014)(44832011)(5660300002)(54906003)(8676002)(122000001)(33656002)(55016003)(38070700005)(38100700002)(86362001)(71200400001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?t4lFcQIIv+JX08fr8Ln0M0HrNLKkCsc1lKRivMBiZSt/BjbTAocqvx9BgAgQ?= =?us-ascii?Q?qunMmv3WrmH+Pm32YVKOWXjtPcFPRPETMx+T3l6QX1jttD7UReZLeyN43ZBy?= =?us-ascii?Q?gRK3dQnLpqnAWYuVvqIgYtvPdt1gw5Q3QPM+NL4jxC/N6Jv5DeGNYc4ScaJ2?= =?us-ascii?Q?C9Me3K+W1KKODmXWSkogZI+SqnClHeYrCjM/XYnhWrv0TahDT08iv9O8t8N9?= =?us-ascii?Q?s0nVw1Yc0AGZCLqoyMFhtzvw+C9qkMKD2htmmo3dKHHHeSOq3cYZRGqaEO6J?= =?us-ascii?Q?BCVk6hxpX0C0oSE1ABg82DqV4WjIIVyxFbqu1YRNyproFqLvYcJTAGDTWqAp?= =?us-ascii?Q?I2UbQhmFZCAT7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6tvp?= =?us-ascii?Q?qMlSoT+SA6HcKihpJb2KJaGasBJ8Rhf9ZyIATx+e6PDWlUDTpPHFi30dBOej?= =?us-ascii?Q?T2xbBdtAEyLlcZ/X1YryhPw5o6pqpvt83ccVlj/UD/+EG0Xk37APXZi+DWUB?= =?us-ascii?Q?+7k5mONvzIuPg9NwH0Hly08AOajQW/pVeaB0RCgTtNPgQEEMkYIupJezzMR0?= =?us-ascii?Q?ry6f4xAphGjMrRQ/GLpfIa6whgwbKhA/JFZNyZO+dR0owq40yf0JaLgdZs8I?= =?us-ascii?Q?OIu91ibajQV6Q+tueIMF1n/6mXu6wzALmeFuk2p42syjcZ/4mkIC5bYFIodu?= =?us-ascii?Q?cYm0u1ei2+HC2C+WaHs=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5967.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 62b45402-dbd8-4ef8-db76-08dbbf5d42fa X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Sep 2023 13:25:47.9597 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: qVkcObtRKwwIrsiEzXpEQPwkUt1zv3911Cfi1/B13W/afRQgHOB34MMycYgLn4OXeU2GgtL5SeCCT8ry/OvL6w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8869 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 27 Sep 2023 06:26:12 -0700 (PDT) > -----Original Message----- > From: Frank Li > Sent: Tuesday, September 26, 2023 9:05 AM > From: Guanhua Gao >=20 > Set DMA mask and coherent DMA mask to enable 64-bit addressing. >=20 > Signed-off-by: Guanhua Gao > Signed-off-by: Hou Zhiqiang > Signed-off-by: Frank Li > --- >=20 > Notes: > change from v2 to v3 > - remove check return value of dma_set_mask_and_coherent. 64bit mask > always > return success. > - remove redundate comments > change from v1 to v2 > - Remove 32bit DMA mask set. >=20 > drivers/pci/controller/dwc/pci-layerscape-ep.c | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/drivers/pci/controller/dwc/pci-layerscape-ep.c > b/drivers/pci/controller/dwc/pci-layerscape-ep.c > index de4c1758a6c3..2c2c9aaa8700 100644 > --- a/drivers/pci/controller/dwc/pci-layerscape-ep.c > +++ b/drivers/pci/controller/dwc/pci-layerscape-ep.c > @@ -249,6 +249,8 @@ static int __init ls_pcie_ep_probe(struct > platform_device *pdev) >=20 > pcie->big_endian =3D of_property_read_bool(dev->of_node, "big- > endian"); >=20 > + dma_set_mask_and_coherent(dev, DMA_BIT_MASK(64)); > + Acked-by: Roy Zang -R