From: Manivannan Sadhasivam <mani@kernel•org>
To: Frank Li <Frank.Li@nxp•com>
Cc: kw@linux•com, imx@lists•linux.dev, linux-pci@vger•kernel.org,
lpieralisi@kernel•org, linux-kernel@vger•kernel.org,
hch@infradead•org, minghuan.Lian@nxp•com,
christophe.jaillet@wanadoo•fr, mingkai.hu@nxp•com,
roy.zang@nxp•com, bhelgaas@google•com,
linuxppc-dev@lists•ozlabs.org, robh@kernel•org,
linux-arm-kernel@lists•infradead.org
Subject: Re: [PATCH v3 1/1] PCI: layerscape-ep: set 64-bit DMA mask
Date: Wed, 27 Sep 2023 14:46:21 +0200 [thread overview]
Message-ID: <20230927124621.GD18050@thinkpad> (raw)
In-Reply-To: <20230926140445.3855365-1-Frank.Li@nxp.com>
On Tue, Sep 26, 2023 at 10:04:45AM -0400, Frank Li wrote:
> From: Guanhua Gao <guanhua.gao@nxp•com>
>
> Set DMA mask and coherent DMA mask to enable 64-bit addressing.
>
> Signed-off-by: Guanhua Gao <guanhua.gao@nxp•com>
> Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp•com>
> Signed-off-by: Frank Li <Frank.Li@nxp•com>
Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro•org>
- 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
>
--
மணிவண்ணன் சதாசிவம்
next prev parent reply other threads:[~2023-09-27 12:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-26 14:04 [PATCH v3 1/1] PCI: layerscape-ep: set 64-bit DMA mask Frank Li
2023-09-27 9:26 ` Christoph Hellwig
2023-09-27 12:46 ` Manivannan Sadhasivam [this message]
2023-10-10 14:18 ` Frank Li
2023-09-27 13:25 ` Roy Zang
2023-10-10 15:44 ` Lorenzo Pieralisi
2023-10-10 16:02 ` Frank Li
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230927124621.GD18050@thinkpad \
--to=mani@kernel$(echo .)org \
--cc=Frank.Li@nxp$(echo .)com \
--cc=bhelgaas@google$(echo .)com \
--cc=christophe.jaillet@wanadoo$(echo .)fr \
--cc=hch@infradead$(echo .)org \
--cc=imx@lists$(echo .)linux.dev \
--cc=kw@linux$(echo .)com \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-pci@vger$(echo .)kernel.org \
--cc=linuxppc-dev@lists$(echo .)ozlabs.org \
--cc=lpieralisi@kernel$(echo .)org \
--cc=minghuan.Lian@nxp$(echo .)com \
--cc=mingkai.hu@nxp$(echo .)com \
--cc=robh@kernel$(echo .)org \
--cc=roy.zang@nxp$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox