Linux PCI subsystem development
 help / color / mirror / Atom feed
From: Bjorn Helgaas <helgaas@kernel.org>
To: "Verma, Devendra" <Devendra.Verma@amd.com>
Cc: "bhelgaas@google.com" <bhelgaas@google.com>,
	"mani@kernel.org" <mani@kernel.org>,
	"vkoul@kernel.org" <vkoul@kernel.org>,
	"dmaengine@vger.kernel.org" <dmaengine@vger.kernel.org>,
	"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"Simek, Michal" <michal.simek@amd.com>
Subject: Re: [PATCH v1 2/2] dmaengine: dw-edma: Add non-LL mode
Date: Fri, 12 Sep 2025 10:33:58 -0500	[thread overview]
Message-ID: <20250912153358.GA1625522@bhelgaas> (raw)
In-Reply-To: <SA1PR12MB8120288197801A3F6C41993A9508A@SA1PR12MB8120.namprd12.prod.outlook.com>

On Fri, Sep 12, 2025 at 09:35:56AM +0000, Verma, Devendra wrote:
> > -----Original Message-----
> > From: Bjorn Helgaas <helgaas@kernel.org>

[redundant headers removed]

> > On Thu, Sep 11, 2025 at 05:14:51PM +0530, Devendra K Verma wrote:
> > > AMD MDB IP supports Linked List (LL) mode as well as non-LL mode.
> > > The current code does not have the mechanisms to enable the DMA
> > > transactions using the non-LL mode. The following two cases are added
> > > with this patch:
> > > - When a valid physical base address is not configured via the
> > >   Xilinx VSEC capability then the IP can still be used in non-LL
> > >   mode. The default mode for all the DMA transactions and for all
> > >   the DMA channels then is non-LL mode.
> > > - When a valid physical base address is configured but the client
> > >   wants to use the non-LL mode for DMA transactions then also the
> > >   flexibility is provided via the peripheral_config struct member of
> > >   dma_slave_config. In this case the channels can be individually
> > >   configured in non-LL mode. This use case is desirable for single
> > >   DMA transfer of a chunk, this saves the effort of preparing the
> > >   Link List.
> >
> > > +static pci_bus_addr_t dw_edma_get_phys_addr(struct pci_dev *pdev,
> > > +                                         struct dw_edma_pcie_data *pdata,
> > > +                                         enum pci_barno bar) {
> > > +     if (pdev->vendor == PCI_VENDOR_ID_XILINX)
> > > +             return pdata->devmem_phys_off;
> > > +     return pci_bus_address(pdev, bar);
> >
> > Does this imply that non-Xilinx devices don't have the iATU that
> > translates a PCI bus address to an internal device address?
> 
> Non-Xilinx devices can have iATU enabled or bypassed as well. In
> bypass mode no translation is done and the TLPs are simply forwarded
> untranslated.

What happens on a non-Xilinx device with iATU enabled?  Does
pci_bus_address() return the correct address in that case?

I can't figure out what's different about Xilinx that requires this
special handling.

  reply	other threads:[~2025-09-12 15:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-11 11:44 [PATCH v1 0/2] Add AMD MDB Endpoint and non-LL mode Support Devendra K Verma
2025-09-11 11:44 ` [PATCH v1 1/2] dmaengine: dw-edma: Add AMD MDB Endpoint Support Devendra K Verma
2025-09-11 21:50   ` Bjorn Helgaas
2025-09-16 10:34     ` Verma, Devendra
2025-09-11 11:44 ` [PATCH v1 2/2] dmaengine: dw-edma: Add non-LL mode Devendra K Verma
2025-09-11 21:53   ` Bjorn Helgaas
2025-09-12  9:35     ` Verma, Devendra
2025-09-12 15:33       ` Bjorn Helgaas [this message]
2025-09-15 10:54         ` Verma, Devendra

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=20250912153358.GA1625522@bhelgaas \
    --to=helgaas@kernel.org \
    --cc=Devendra.Verma@amd.com \
    --cc=bhelgaas@google.com \
    --cc=dmaengine@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=mani@kernel.org \
    --cc=michal.simek@amd.com \
    --cc=vkoul@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
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