[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMRc=MfW9n+y8Dehe_g9b8_=he1YuFr3CEGG3iQEfjYwFiWA_g@mail.gmail.com>
Date: Thu, 24 Oct 2024 08:49:30 +0200
From: Bartosz Golaszewski <brgl@...ev.pl>
To: Mark Brown <broonie@...nel.org>
Cc: Linus Walleij <linus.walleij@...aro.org>, Kent Gibson <warthog618@...il.com>,
linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org,
Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
Subject: Re: [PATCH v5 8/8] gpiolib: notify user-space about in-kernel line
state changes
On Wed, Oct 23, 2024 at 11:05 PM Mark Brown <broonie@...nel.org> wrote:
>
> On Fri, Oct 18, 2024 at 11:10:16AM +0200, Bartosz Golaszewski wrote:
> > From: Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
> >
> > We currently only notify user-space about line config changes that are
> > made from user-space. Any kernel config changes are not signalled.
> >
> > Let's improve the situation by emitting the events closer to the source.
> > To that end let's call the relevant notifier chain from the functions
> > setting direction, gpiod_set_config(), gpiod_set_consumer_name() and
> > gpiod_toggle_active_low(). This covers all the options that we can
> > inform the user-space about. We ignore events which don't have
> > corresponding flags exported to user-space on purpose - otherwise the
> > user would see a config-changed event but the associated line-info would
> > remain unchanged.
>
> Today's -next is not booting on several of my platforms, including
> beaglebone-black, i.MX8MP-EVK and pine64plus. Bisects are pointing at
> this commit, and i.MX8MP-EVK is actually giving some console output:
>
> [ 2.502208] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
> [ 2.511036] Mem abort info:
>
> ...
>
> [ 2.679934] Call trace:
> [ 2.682379] gpiod_direction_output+0x34/0x5c
> [ 2.686745] i2c_register_adapter+0x59c/0x670
> [ 2.691111] __i2c_add_numbered_adapter+0x58/0xa8
> [ 2.695822] i2c_add_adapter+0xa0/0xd0
> [ 2.699578] i2c_add_numbered_adapter+0x2c/0x38
> [ 2.704117] i2c_imx_probe+0x2d0/0x640
>
> which looks plausible given the change.
>
> Full boot log for i.MX8MP-EVK:
>
> https://lava.sirena.org.uk/scheduler/job/887083
>
> Bisect log for that, the others look similar (the long run of good/bad
> tags at the start for random commits is my automation pulling test
> results it already knows about in the affected range to try to speed up
> the bisect):
>
Hi Mark!
Any chance you could post the output of
scripts/faddr2line drivers/gpio/gpiolib.o gpiod_direction_output+0x34/0x5c
for that build?
Bart
Powered by blists - more mailing lists