openbmc.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* aspeed-adc driver kpanic
@ 2021-10-04 18:34 Patrick Williams
  2021-10-04 18:54 ` Patrick Williams
  2021-10-05  0:00 ` Joel Stanley
  0 siblings, 2 replies; 5+ messages in thread
From: Patrick Williams @ 2021-10-04 18:34 UTC (permalink / raw)
  To: Billy Tsai; +Cc: OpenBMC List

[-- Attachment #1: Type: text/plain, Size: 685 bytes --]

Hi Billy,

When I run the latest linux-5.14 on QEMU with the Witherspoon config, I end up
with a kernel panic[1].  I think there is an ordering problem in the aspeed_adc
driver.  

See [2,3].  The code registers with devm a pointer to the prescaler object which
is not yet created.  I think it is possible that the struct value contains
uninitialized data as well.  Can you please take a look at this?

1. https://gist.github.com/williamspatrick/4a0f0d1e0ca6f54816461a8df09e6cb8
2. https://github.com/openbmc/linux/blob/dev-5.14/drivers/iio/adc/aspeed_adc.c#L513
3. https://github.com/openbmc/linux/blob/dev-5.14/drivers/iio/adc/aspeed_adc.c#L527

-- 
Patrick Williams

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-10-05  0:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-04 18:34 aspeed-adc driver kpanic Patrick Williams
2021-10-04 18:54 ` Patrick Williams
2021-10-04 19:26   ` Peter Delevoryas
2021-10-04 22:25     ` Patrick Williams
2021-10-05  0:00 ` Joel Stanley

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).