From: Farhan Ali <alifm@linux.ibm.com>
To: Heiko Carstens <hca@linux.ibm.com>,
Niklas Schnelle <schnelle@linux.ibm.com>
Cc: Thomas Huth <thuth@redhat.com>,
qemu-devel@nongnu.org, alex.williamson@redhat.com,
stefanha@redhat.com, mjrosato@linux.ibm.com, philmd@linaro.org,
kwolf@redhat.com, hreitz@redhat.com, fam@euphon.net
Subject: Re: [PATCH v5 1/3] util: Add functions for s390x mmio read/write
Date: Wed, 30 Apr 2025 09:42:52 -0700 [thread overview]
Message-ID: <cf1fffb7-1a37-4df5-8cf4-fa08d63368c9@linux.ibm.com> (raw)
In-Reply-To: <20250425140929.7180Fdb-hca@linux.ibm.com>
On 4/25/2025 7:09 AM, Heiko Carstens wrote:
> On Fri, Apr 25, 2025 at 12:29:35PM +0200, Niklas Schnelle wrote:
>> On Fri, 2025-04-25 at 11:00 +0200, Thomas Huth wrote:
>>> On 17/04/2025 19.37, Farhan Ali wrote:
>>>> + asm volatile(
>>>> + /* pcilgi */
>>>> + ".insn rre,0xb9d60000,%[val],%[ioaddr_len]\n"
>>>> + "ipm %[cc]\n"
>>>> + "srl %[cc],28\n"
>>>> + : [cc] "=d"(cc), [val] "=d"(val),
>>>> + [ioaddr_len] "+&d"(ioaddr_len.pair) :: "cc");
>>> Do we need the "&" modifier here? ... at least the kernel does not seem to
>>> use it ...
>> From my understanding it's not strictly needed, but I also used it in
>> the rdma-core user-space code where I had pointed Farhan. I looked at
> It is not needed, since all inputs are consumed before to any output
> is written to.
Ack, will update the patch.
>>>> + asm volatile (
>>>> + /* pcistgi */
>>>> + ".insn rre,0xb9d40000,%[val],%[ioaddr_len]\n"
>>>> + : [ioaddr_len] "+&d" (ioaddr_len.pair)
>>> dito
> Same here, it is not needed.
Ack, will update the patch here as well.
Thanks
Farhan
next prev parent reply other threads:[~2025-04-30 16:43 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-17 17:37 [PATCH v5 0/3] Enable QEMU NVMe userspace driver on s390x Farhan Ali
2025-04-17 17:37 ` [PATCH v5 1/3] util: Add functions for s390x mmio read/write Farhan Ali
2025-04-25 9:00 ` Thomas Huth
2025-04-25 10:29 ` Niklas Schnelle
2025-04-25 14:09 ` Heiko Carstens
2025-04-30 16:42 ` Farhan Ali [this message]
2025-04-17 17:38 ` [PATCH v5 2/3] include: Add a header to define host PCI MMIO functions Farhan Ali
2025-04-22 14:45 ` Stefan Hajnoczi
2025-04-25 9:17 ` Thomas Huth
2025-04-30 16:47 ` Farhan Ali
2025-04-30 17:52 ` Thomas Huth
2025-04-30 18:32 ` Farhan Ali
2025-04-30 18:38 ` Thomas Huth
2025-04-17 17:38 ` [PATCH v5 3/3] block/nvme: Use host PCI MMIO API Farhan Ali
2025-04-25 9:22 ` Thomas Huth
2025-04-24 16:24 ` [PATCH v5 0/3] Enable QEMU NVMe userspace driver on s390x Farhan Ali
2025-04-25 9:24 ` Thomas Huth
2025-04-25 9:59 ` Philippe Mathieu-Daudé
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=cf1fffb7-1a37-4df5-8cf4-fa08d63368c9@linux.ibm.com \
--to=alifm@linux.ibm.com \
--cc=alex.williamson@redhat.com \
--cc=fam@euphon.net \
--cc=hca@linux.ibm.com \
--cc=hreitz@redhat.com \
--cc=kwolf@redhat.com \
--cc=mjrosato@linux.ibm.com \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=schnelle@linux.ibm.com \
--cc=stefanha@redhat.com \
--cc=thuth@redhat.com \
/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;
as well as URLs for NNTP newsgroup(s).