Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp173653rdg; Tue, 10 Oct 2023 07:19:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH17hRawQTEEoXViSvwQFP8unGxbg88tn1nzA35EgM37H88IEurUJArpSyxQORMhz7RFcn0 X-Received: by 2002:a17:902:e74b:b0:1bb:6875:5a73 with SMTP id p11-20020a170902e74b00b001bb68755a73mr20551010plf.2.1696947551927; Tue, 10 Oct 2023 07:19:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696947551; cv=pass; d=google.com; s=arc-20160816; b=neUTYdHRgVevOatSjkm/942W3vtGStCkR1D/gE7r3FXEcLNeFQEsX9UTHsE9uSngsJ ZTAL1HytA+yO5DrXfZlI1RFceAwBB9PXvuZPQwBPigvU2jGmtV6QMhRGbmLbarKdexWZ lnSPZv4P4GgeX6jn3lZzPBobSQlyXD0sqHKOKARt9orSF2mq8KpuFLfgEX72Epr/Thsr 1LoxlKOxMYwkvEwHmG4pDDjhzPeCPmiMOeTOjmeUWuefFl8pvNVFRF3RBtf8nDE+6Qkg fsBP/C8pqDuM0Q8ahUrfnqgedpSnNgkMpJyzW6mV0ckN/Y+wiMHboVrbLneBesavJ6EU NLag== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to :content-transfer-encoding:content-disposition:references:message-id :subject:cc:to:from:date:dkim-signature; bh=DZlpw69zicqEowQtJW+15gX/O0wULMciP7kT7FyNC3Q=; fh=RrBEgBC2LFOv7FyFdNYsfc96iSKj6CJ3Lkt92pMhF0E=; b=IyzvUrpgIkpD0goOaFmWyztulXneNFnBlfGSbTNKgA1d2lY9n6UJHn7pqK15h6yqI2 eAdt2tjc0EH3XrzzNi43JZRUiJ5zEBn6pNu1EfU00srDE+OLtgB9Ecdp4y+wt8HXSmrC BcM1HMe7wF+rf2AxXm2rAabZE+r5h+f8wF4xiK7INPNMRngkmK3lgRjeLd+fwQcffkNb tdFo9fKw2cwOq9dcA+ZiwbxCoBrlM5WpzG7PM+h2hWjirccfbyeYkkBKQEAqgjutcuOo JKK5AWTMr9vJvS2BKhfl0x0LUhzi0FGCs6ZtxF//baBz81N3Dc7Imz0xOqb8rjGcgJgZ D3Yw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=EO4VAhaB; 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 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id w8-20020a170902e88800b001b811261289si12552591plg.482.2023.10.10.07.19.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 07:19:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=EO4VAhaB; 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 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 1F7DD801CE8F; Tue, 10 Oct 2023 07:19:08 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232840AbjJJOSr (ORCPT + 99 others); Tue, 10 Oct 2023 10:18:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232529AbjJJOSp (ORCPT ); Tue, 10 Oct 2023 10:18:45 -0400 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2061.outbound.protection.outlook.com [40.107.20.61]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 362EE99; Tue, 10 Oct 2023 07:18:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L1ivSOf6me8ZYbE5wmbZVZsZnfyukI7nUggq8ycOWgEfMNO+QtyXYu7rP0INAc3qGD5PyabCfOtylzQZrPRQqNI9pvC0BcTRrHQu9dTBJVv360+VEFiTwQnAa3+F/fh+OxwzLIH1aqHQ75U5Nw0abUXFwwUQY24I2VAEAbahlwWAmeVvOQ12jgr3A9j7Bw9TwJzSZfOMWiRYdFI2hCWmdGxv/P7QMFNEK7K1Nxe0g+QYH41ifv94h6b1w+MmMzvfCsc8m7F+bOLXyC9ZnETqvgh9YXl0EbiOwo4C19G/rxVTmk0g+xEjAeKXQYQXtrIrx/ufvAKWcAbeAOYFy9wUiA== 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=DZlpw69zicqEowQtJW+15gX/O0wULMciP7kT7FyNC3Q=; b=epATLZCOpf8JTO6FpVTDRCF3r1CN/aa08VxjtkE7BajPNsI60/E7+6jmURkqN0WZhCFnHzdyXELmmI2QWjBZvyPrarb4O5c9rV2lJaPrnUhsmNU4P/bXwGaOXfYW7cI2YRq2a6PU2PI+2Z3fgwvtnwihetBJneAzZ5TggKUSDVVtNZAASSiwnq2T6IvRMXHomvdYP+DOstfrl0Yy2WyZ0lEHNbKsOHZEwAtTy3lyci19E+KHE6CAivo7M7FAZEP/tz+HerskLsIrRfJB0FiQi4MM35Uy69MAS1F8rZqPv9Huu/HXq/cwzXC1melKMxz0HHmuXM8+2p3Ttv8v/5XS1Q== 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=DZlpw69zicqEowQtJW+15gX/O0wULMciP7kT7FyNC3Q=; b=EO4VAhaBZP9kHQ4Sku0GXA6WvK56nxmpu64lyu8k0oJiTFPR2mq5zg5CBmuIORohx806Vd6IUE973Mi478Ty0A6W7Tw7RlIqkYxQtl5NjxWoFtnHUeNNJ5/QDLdi19VagdCDR7HTuNLQj5GiYP+dsWBFzwkdOSLd378O3Xk9uho= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) by DU2PR04MB8997.eurprd04.prod.outlook.com (2603:10a6:10:2e0::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.38; Tue, 10 Oct 2023 14:18:39 +0000 Received: from AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::1774:e25f:f99:aca2]) by AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::1774:e25f:f99:aca2%4]) with mapi id 15.20.6863.032; Tue, 10 Oct 2023 14:18:39 +0000 Date: Tue, 10 Oct 2023 10:18:29 -0400 From: Frank Li To: Manivannan Sadhasivam Cc: hch@infradead.org, 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, minghuan.Lian@nxp.com, mingkai.hu@nxp.com, robh@kernel.org, roy.zang@nxp.com Subject: Re: [PATCH v3 1/1] PCI: layerscape-ep: set 64-bit DMA mask Message-ID: References: <20230926140445.3855365-1-Frank.Li@nxp.com> <20230927124621.GD18050@thinkpad> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230927124621.GD18050@thinkpad> X-ClientProxiedBy: BY3PR10CA0021.namprd10.prod.outlook.com (2603:10b6:a03:255::26) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|DU2PR04MB8997:EE_ X-MS-Office365-Filtering-Correlation-Id: bf3e999b-8f9d-46a3-5b1a-08dbc99bccc8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qKz+jgXeL6BNuDIgiZalQn3f/FXJ1jwsHGr6QKfY1vYW7Uo6TkEi3VBZ/UtJRk741+/xc1FZnj+bcKZvzupn6Jx6CpQhgrchCcd/Ye0dngp5Ydp3MnqEWsdLD9JSKlRJ9AnwHFXYJDl/lvFEAFX9mX3ZLfeRHr9APn/xNBuonCxfxkSPIxmagh+rI81cKkA0iI7mRRn8o3K/cUNL2iV7gNq/EsHMQcbpnoB+zuKXFucPSpJBaLa71l9baNA8eV5e1Xloz/0zbhBSHPjIEcOg/vMBDtUquAjODnONCrOCOSN+fBx6038X92M81Rbymcaobzv4GMnbgN9Er3TweUmcCi6bel2z6SXKdrBtP3uuwtcJPfMAhVzgxD+Aa9FDShCpduIRDKSCOQoFrBhPCava5cusNN34to7goC4RWvmzSQGCpe2CU611GSvoi42ZdbFgBJ2SWAUtMwp1taKiuPm8A63h8pKpeWiThIzXpC+fCVW9ibBcHktT/XjNcpngJj8/SDa0bqavzeaNwZ75ycmiEFCfv3rp2RKT3MxF0lcAmadgdVEUsN2QiIMDg49i6Poqa0lruO4a00fLdeBWeSA05kwlMwBMs9x3ZnWpblzt6PQXWLFLxRSOg/+tswXf3rkw X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB4838.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(7916004)(376002)(346002)(136003)(366004)(396003)(39860400002)(230922051799003)(186009)(451199024)(1800799009)(64100799003)(26005)(478600001)(6486002)(33716001)(6666004)(9686003)(6512007)(6506007)(86362001)(52116002)(41300700001)(38100700002)(38350700002)(5660300002)(66476007)(66556008)(66946007)(316002)(6916009)(7416002)(2906002)(8936002)(4326008)(8676002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?UXZVaVh6S0kyRjZlTTRXL0ZqcmprR2RWeFJub2lGbTdXVmxIMDNzbEpFODZw?= =?utf-8?B?MERxa1NwSWNTeklEK2M1YWxDREJvUXU0bjJNeElNT0hoRFdSKy92dVJpTFo5?= =?utf-8?B?ZGx4anVKS0dlazhuWUNsaFhVRzB5UmhmNUNKT3gyekdCZlN5OWdCT2ZSaWZI?= =?utf-8?B?cWdTWDJMMTR0WktreHg5RnBkSkJmODBxdGlkQ3kvMzdzOE9LMTg4QXIwUHZO?= =?utf-8?B?VmU4aHM5M0x4UXhPUTRMNm5uRU1xYzM5TVZOQ2dvcUtUUytLb1oyWVJEbjBF?= =?utf-8?B?cEEvNGV2OWlPemVjcXZYL3QzSnUwcWJWMEtrOEloalA4WktTdHljMzJYRDla?= =?utf-8?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vZxGiZ3caM?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: bf3e999b-8f9d-46a3-5b1a-08dbc99bccc8 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4838.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Oct 2023 14:18:39.7446 (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: qLGx9Ml+zdzHnii9XaCvsNG3mHM2nv/0kClLCBc6ebagT8O80DBx5Ma2xmMcEvDjv6sW7amkficFVebxt7nSLA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8997 X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 10 Oct 2023 07:19:08 -0700 (PDT) X-Spam-Level: ** On Wed, Sep 27, 2023 at 02:46:21PM +0200, Manivannan Sadhasivam wrote: > On Tue, Sep 26, 2023 at 10:04:45AM -0400, Frank Li wrote: > > From: Guanhua Gao > > > > Set DMA mask and coherent DMA mask to enable 64-bit addressing. > > > > Signed-off-by: Guanhua Gao > > Signed-off-by: Hou Zhiqiang > > Signed-off-by: Frank Li > > Acked-by: Manivannan Sadhasivam @Lorenzo Could you please consider pick this patch? Manivannan already reviewed and only impact layerscape. Frank > > - Mani > > > --- > > > > 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. > > > > drivers/pci/controller/dwc/pci-layerscape-ep.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > 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) > > > > pcie->big_endian = of_property_read_bool(dev->of_node, "big-endian"); > > > > + dma_set_mask_and_coherent(dev, DMA_BIT_MASK(64)); > > + > > platform_set_drvdata(pdev, pcie); > > > > ret = dw_pcie_ep_init(&pci->ep); > > -- > > 2.34.1 > > > > -- > மணிவண்ணன் சதாசிவம்