From: Niklas Cassel <cassel@kernel.org>
To: Frank Li <Frank.li@nxp.com>
Cc: "Manivannan Sadhasivam" <manivannan.sadhasivam@linaro.org>,
"Krzysztof Wilczyński" <kw@linux.com>,
"Kishon Vijay Abraham I" <kishon@kernel.org>,
"Bjorn Helgaas" <bhelgaas@google.com>,
"Arnd Bergmann" <arnd@arndb.de>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org,
imx@lists.linux.dev, dlemoal@kernel.org, maz@kernel.org,
tglx@linutronix.de, jdmason@kudzu.us
Subject: Re: [PATCH v6 3/5] PCI: endpoint: pci-epf-test: Add doorbell test support
Date: Wed, 13 Nov 2024 10:02:46 +0100 [thread overview]
Message-ID: <ZzRrNvpz25bkWXog@ryzen> (raw)
In-Reply-To: <ZzO8jn6OpgFhl4TN@lizhi-Precision-Tower-5810>
On Tue, Nov 12, 2024 at 03:37:34PM -0500, Frank Li wrote:
> >
> > Is there a reason why you chose to not incorporate the helper function
> > that I suggested here:
> > https://lore.kernel.org/linux-pci/ZzMtKUFi30_o6SwL@ryzen/
> >
> > I didn't see any reply from you to that message.
>
> Oh, you said at
> https://lore.kernel.org/imx/ZzIVzfkZe-hkAb4G@ryzen/T/#mc10e69e0e1e20cc8d8da9a8808177407d22bce06
>
> I think you give up your idea about helper function, because it is one
> for doorbell_offset, the other is for the atu address. bar's struct is
> difference with reg. even it is similar,
Yes, that is why the helper returns both base addess and offset
(just like .align_addr()).
> Do you means add help function, which wrap epc's .align_addr()? I know you
> make some improvement about EP's alignment, but I have not realized that
> related this thread at all.
Look at the suggested helper that I wrote in:
https://lore.kernel.org/linux-pci/ZzMtKUFi30_o6SwL@ryzen/
If you think that the code is cleaner, feel free to incorporate it in your
next version, no need to add my SoB.
.align_addr() is not related at all.
(.align_addr() is for alignment for outbound PCI address, and theoretically
the alignment requirement for outbound could be different from inbound
address alignment requirement (which is defined in epc->features->align).
The only relation is that both my suggested helper, and .align_addr() both
return a base address and an offset.
> May "I now see why you did this.
> One function is using the db offset, and the other is using the db base."
> mis-lead me.
Yes, I can see that this sentence can be misunderstood.
> If I understand correct here, I can add wrap function for epc's
> .align_addr(). at next version.
Please do not wrap .align_addr(). Kishon has been very clear that he wants
outbound and inbound translation requirements to not depend on each other.
Kind regards,
Niklas
next prev parent reply other threads:[~2024-11-13 9:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-12 17:48 [PATCH v6 0/5] PCI: EP: Add RC-to-EP doorbell with platform MSI controller Frank Li
2024-11-12 17:48 ` [PATCH v6 1/5] PCI: endpoint: Add pci_epc_get_fn() API for customizable filtering Frank Li
2024-11-12 17:48 ` [PATCH v6 2/5] PCI: endpoint: Add RC-to-EP doorbell support using platform MSI controller Frank Li
2024-11-12 17:48 ` [PATCH v6 3/5] PCI: endpoint: pci-epf-test: Add doorbell test support Frank Li
2024-11-12 20:14 ` Niklas Cassel
2024-11-12 20:37 ` Frank Li
2024-11-13 9:02 ` Niklas Cassel [this message]
2024-11-12 17:48 ` [PATCH v6 4/5] misc: pci_endpoint_test: Add doorbell test case Frank Li
2024-11-12 17:48 ` [PATCH v6 5/5] tools: PCI: Add 'B' option for test doorbell 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=ZzRrNvpz25bkWXog@ryzen \
--to=cassel@kernel.org \
--cc=Frank.li@nxp.com \
--cc=arnd@arndb.de \
--cc=bhelgaas@google.com \
--cc=dlemoal@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=imx@lists.linux.dev \
--cc=jdmason@kudzu.us \
--cc=kishon@kernel.org \
--cc=kw@linux.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=manivannan.sadhasivam@linaro.org \
--cc=maz@kernel.org \
--cc=tglx@linutronix.de \
/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