Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2552484rdh; Wed, 27 Sep 2023 06:14:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFO7ul/JH9kfMfP0ZZ/hYrdsPGv+95L7oELU65Yzm/M4I9Ni7f1gHWo2AAJ9pMlAVxjyfQu X-Received: by 2002:a17:903:22d1:b0:1c6:335b:1d75 with SMTP id y17-20020a17090322d100b001c6335b1d75mr1965180plg.69.1695820444401; Wed, 27 Sep 2023 06:14:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695820444; cv=none; d=google.com; s=arc-20160816; b=Gx/B+qqbdUqP9AXgMQSbshQ/RsqaK4gYyJqSkIN5B1LdKjEm2RYyRTpdAI3Z5iZGcE Jh3glT/GmEPykvZ5j2HYTnQuXTBlnyiwGsf2im3x1kdgoCEUurJcnGLRn22lmXuj1pHH 5HWnrO+/9T/63DYWMZIvlLcBhHYA2lcz1DAMgQIvvaoATDTt5ksVNE6qlqz/loP7BiZW CV4DzF52AujtmqxvHCDSPYP7xKACP0UkNSddBMQ0ydeWjypHuIgn+cv0ouYCTlHx3O/U K1MlY3hPiWu46zGBMxvI913n1Nbn+FAefc6xXvFe0dDShLzc2fTPmQQCb7yqW7B+mrEv WXPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=EM1o3apZq/QT+gIiA+hBJPCCY5Q0B4G4lE1fXMQH4AY=; fh=4LCecvZzrVNsNo97rgb8YdyjfgksOEiw3Ifx+Nev9q0=; b=P44dfI7PNBw/GYKGLbv2Tm1tPekVAvPc8PprSZJJqFukLvDl1/SJZXz6O7ORvAW8LB YB9Gs4exbQAlS96mSvQvP8297hB5We/IIrYddwL1Cx1Vmnz5wY6NwJLH+F8/ZHz3lNSR 5EcN7lKFqP/C4I8M/Bq23wdRMLE9DJAKR9BK1Pd0EprOGtuhYF6oR1TrBBnMHNoQ8x3G p1niq+gsVvfp0IN7GC4FmLf2Idk6dU+1iDjyJQ+NVfvUJBOdWjCWFXtcwlZsNuITm9/w nAYCmQA32gPn79090QpVuZdIOEheyEcHQAmLKKCSspUt6olVQCZxtVPVsLxFwHGDxej2 kNuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OCKu0Q83; 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=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id u6-20020a170902714600b001bb2ef676c4si14128524plm.202.2023.09.27.06.14.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 06:14:04 -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=@kernel.org header.s=k20201202 header.b=OCKu0Q83; 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=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 589958316EFB; Wed, 27 Sep 2023 05:46:49 -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 S231698AbjI0Mqa (ORCPT + 99 others); Wed, 27 Sep 2023 08:46:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230109AbjI0Mq3 (ORCPT ); Wed, 27 Sep 2023 08:46:29 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3616C0; Wed, 27 Sep 2023 05:46:28 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B9FAC433C8; Wed, 27 Sep 2023 12:46:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695818788; bh=yur1lIib+MwlO3G13u5slhNv5izV70kTNuXNh85akv0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OCKu0Q83mtA+/cOefVFb4tQpEBvyJOqtu9iQ6NQiatNAdI4ptP52X2BoZwD6ToknT H1LzC/biabj/L2oKT3gPEC3fNlrLY5sCnYelvnyItmu3MW+e9tHaD/iIvGM9jq74Su cjhozkVVEkuCbqNcZsmRdwjCou8lxdFd1/dyvo481oLo+kF+Y9XMsMgIAZ4CuomM+U dEcsdT2z2qQArfP7MJbs0bpQgg9vp3FSpPsG5jcME63VN4IlM1FUTUbhAP5lTa/mVt KMIB960gL8I2Nm9GxoR9CXm7FevWBgwfuCRk1k5Uc0gRrWGsNOA+xURidh1tUE7GAx gEnrE4Mah85AA== Date: Wed, 27 Sep 2023 14:46:21 +0200 From: Manivannan Sadhasivam To: Frank Li 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: <20230927124621.GD18050@thinkpad> References: <20230926140445.3855365-1-Frank.Li@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230926140445.3855365-1-Frank.Li@nxp.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 05:46:49 -0700 (PDT) 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 - 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 > -- மணிவண்ணன் சதாசிவம்