From: Peng Fan <peng.fan@oss.nxp.com>
To: David Gow <davidgow@google.com>,
Johannes Berg <johannes@sipsolutions.net>
Cc: "Johannes Berg" <johannes@sipsolutions.net>,
"Michael Turquette" <mturquette@baylibre.com>,
"Stephen Boyd" <sboyd@kernel.org>,
"Thomas Weißschuh" <thomas.weissschuh@linutronix.de>,
"Shuah Khan" <skhan@linuxfoundation.org>,
"Brian Masney" <bmasney@redhat.com>,
linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org,
"Peng Fan" <peng.fan@nxp.com>
Subject: Re: [PATCH] clk: Disable KUNIT_UML_PCI
Date: Tue, 16 Dec 2025 16:44:42 +0800 [thread overview]
Message-ID: <aUEb+kYnmwV7j82I@shlinux89> (raw)
In-Reply-To: <CABVgOSn7MPrwQBxL6fnP_1H0BctypdZtA7opzoYfFx5ULoAM=A@mail.gmail.com>
Hi David, Johannes
On Fri, Nov 28, 2025 at 04:46:39PM +0800, David Gow wrote:
>On Fri, 28 Nov 2025 at 15:44, Johannes Berg <johannes@sipsolutions.net> wrote:
>>
>> >
>> > commit 031cdd3bc3f3 ("kunit: Enable PCI on UML without triggering WARN()")
>> > causes clk gate test fail. Deselect KUNIT_UML_PCI to avoid the failure.
>>
>> While probably _true_ that this "caused" it, it also seems a bit
>> dishonest to blame it on that without giving any information as to why
>> the clk tests trigger some edge case or so?
>>
>> FTR, the warning only happens when you pass an address to ioread(),
>> iowrite() or similar that wasn't obtained from ioremap(). Which ought to
>> not be valid, and I'm pretty convinced that a unit test should never
>> even end up here.
>>
>> So no, I don't think this is a valid change, I think the clk unit tests
>> that end up doing readl() in the gate code for a non-existing device are
>> broken.
>
>Yeah, the correct solution here is definitely to rework the test to not do this.
>
>Unfortunately, I don't think there's a really pleasant way of faking
>these in KUnit tests, but a path forward might involve logic_iomem
>(possibly with some changes). Otherwise, reworking the test to put
>these writes behind a function which can be mocked would be nice.
>
>Ultimately, I don't have a problem with us disabling this in the
>meantime for clk tests -- ultimately it's up to clk folks what their
>test config is, and having tests which always fail isn't great -- but
>it'd be nice to eliminate the cast-a-random-pointer-to-iomem hacks in
>tests.
Sorry for late reply. Is it an acceptable short term fix for you if I drop the
fixes tag?
Thanks,
Peng
>
>Cheers,
>-- David
next prev parent reply other threads:[~2025-12-16 8:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-28 4:14 [PATCH] clk: Disable KUNIT_UML_PCI Peng Fan (OSS)
2025-11-28 7:44 ` Johannes Berg
2025-11-28 8:46 ` David Gow
2025-12-16 8:44 ` Peng Fan [this message]
2025-11-28 8:13 ` Thomas Weißschuh
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=aUEb+kYnmwV7j82I@shlinux89 \
--to=peng.fan@oss.nxp.com \
--cc=bmasney@redhat.com \
--cc=davidgow@google.com \
--cc=johannes@sipsolutions.net \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=peng.fan@nxp.com \
--cc=sboyd@kernel.org \
--cc=skhan@linuxfoundation.org \
--cc=thomas.weissschuh@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;
as well as URLs for NNTP newsgroup(s).