[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b3b0635c-657f-4869-bc88-06de9287a464@nvidia.com>
Date: Fri, 23 Jan 2026 14:29:57 +0000
From: Jon Hunter <jonathanh@...dia.com>
To: Danilo Krummrich <dakr@...nel.org>
Cc: Gui-Dong Han <hanguidong02@...il.com>,
Marek Szyprowski <m.szyprowski@...sung.com>, Mark Brown
<broonie@...nel.org>, gregkh@...uxfoundation.org, rafael@...nel.org,
linux-kernel@...r.kernel.org, baijiaju1990@...il.com,
Qiu-ji Chen <chenqiuji666@...il.com>, Aishwarya.TCV@....com,
"linux-tegra@...r.kernel.org" <linux-tegra@...r.kernel.org>
Subject: Re: [PATCH v5] driver core: enforce device_lock for
driver_match_device()
On 23/01/2026 14:09, Danilo Krummrich wrote:
> On Fri Jan 23, 2026 at 2:57 PM CET, Jon Hunter wrote:
>> No worries. There appears to be a couple issues going on with this
>> board. With the patch reverted the board boots fine and tests pass. Even
>> in the passing case with this patch reverted, during boot I see a NULL
>> pointer deference crash log from the QSPI driver. So I disabled the QSPI
>> device in device-tree and with this patch the board boots fine and tests
>> pass.
>>
>> There is a on-going thread for the QSPI driver to fix these NULL pointer
>> deference crashes [0]. So the QSPI driver seems to be the root of the
>> problem.
>>
>> [0] https://lore.kernel.org/linux-tegra/aXJWRUhAe8F67-zG@gmail.com/T/#t
>
> So, are you saying the problems you are seeing are unrelated to this patch and
> there is no deadlock? (At least this would explain why we couldn't get a lockdep
> splat with the diff I shared. :)
Not exactly. With vanilla -next I see various tests fail on this board
and I can see various devices are not probed as expected. Bisect pointed
to this patch.
I can fix this by either:
1. Reverting this patch.
2. Disabling the QSPI driver.
Now the QSPI driver has issues which need to be fixed which I am
wondering once fix will avoid this problem.
However, I guess regardless of the QSPI issue, should this patch be
having such an impact?
Looking at the bootlog [0], you can see the crash is occurring during
the tegra_qspi_probe() and so I am guessing this what leads to the
deadlock? And may be there is no way to avoid that?
Please note that a lot of the boards I test are in a farm and I don't
have direct access. So although I can see the test harness SSH'ing into
the board, I am not accessing directly. However, we can run whatever
tests we want.
There are no OOT drivers being used this is just vanilla -next.
Jon
[0] https://pastebin.com/wJheruPP
--
nvpublic
Powered by blists - more mailing lists