From: "Arnd Bergmann" <arnd@arndb.de>
To: "Qingfang Deng" <qingfang.deng@linux.dev>,
linux-kernel@vger.kernel.org,
Linux-Arch <linux-arch@vger.kernel.org>
Subject: Re: [PATCH v2 1/3] asm-generic: split MMIO accessors out of io.h
Date: Sun, 20 Sep 2026 10:13:56 +0200 [thread overview]
Message-ID: <839e8422-6414-43a5-a086-d9118c6c2902@app.fastmail.com> (raw)
In-Reply-To: <20260920014357.7069-1-qingfang.deng@linux.dev>
On Sun, Sep 20, 2026, at 03:43, Qingfang Deng wrote:
> Low-level architecture headers can need MMIO accessors without the page
> and I/O mapping dependencies pulled in by asm-generic/io.h. RISC-V keeps
> a separate MMIO header for this reason, including for M-mode timer reads.
>
> Move the raw, ordered and relaxed scalar accessors, their barrier hooks
> and MMIO tracing support into asm-generic/mmio.h. Include the new header
> from asm-generic/io.h and provide the byte-order and MMIOWB dependencies
> needed when it is included directly.
>
> Assisted-by: Codex:gpt-6-astra
> Signed-off-by: Qingfang Deng <qingfang.deng@linux.dev>
I have no objection to this, but I am not yet following the explanation
regarding how this change helps. From what I can tell, the changes
in patch 2 should work equally well without this.
Arnd
prev parent reply other threads:[~2026-09-20 8:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-20 1:43 Qingfang Deng
2026-09-20 1:43 ` [PATCH v2 2/3] riscv: use generic MMIO accessors Qingfang Deng
2026-09-20 8:11 ` Arnd Bergmann
2026-09-20 1:43 ` [PATCH v2 3/3] arm64: " Qingfang Deng
2026-09-20 8:08 ` Arnd Bergmann
2026-09-20 9:24 ` Qingfang Deng
2026-09-20 9:30 ` Arnd Bergmann
2026-09-20 9:35 ` Arnd Bergmann
2026-09-20 8:13 ` Arnd Bergmann [this message]
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=839e8422-6414-43a5-a086-d9118c6c2902@app.fastmail.com \
--to=arnd@arndb.de \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=qingfang.deng@linux.dev \
/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
all inboxes | Powered by JetHome®