Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
Cc: <intel-gfx@lists.freedesktop.org>,
	Badal Nilawar <badal.nilawar@intel.com>,
	Andi Shyti <andi.shyti@intel.com>
Subject: Re: [PATCH] drm/i915: Don't enable hwmon for selftests
Date: Fri, 12 Apr 2024 17:37:16 -0700	[thread overview]
Message-ID: <85edbat7wj.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <85frvqt7zw.wl-ashutosh.dixit@intel.com>

On Fri, 12 Apr 2024 17:35:15 -0700, Dixit, Ashutosh wrote:
>
> On Thu, 11 Apr 2024 03:47:13 -0700, Ville Syrjälä wrote:
> >
> > On Wed, Apr 10, 2024 at 10:09:32PM -0700, Dixit, Ashutosh wrote:
> > > On Wed, 10 Apr 2024 04:42:46 -0700, Ville Syrjälä wrote:
> > > >
> > > > On Tue, Apr 09, 2024 at 09:28:55PM -0700, Ashutosh Dixit wrote:
> > > > > There are no hwmon selftests so there is no need to enable hwmon for
> > > > > selftests. So enable hwmon only for real driver load.
> > > > >
> > > > > Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/10366
> > > > > Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
> > > >
> > > > Why are we adding duct tape instead of fixing it properly?
> > >
> > > Yeah pretty much what I said here myself:
> > >
> > > https://patchwork.freedesktop.org/patch/588585/?series=132243&rev=1#comment_1071014
> > >
> > > The issue has been difficult to root-cause. My last effort can be seen here:
> > >
> > > https://patchwork.freedesktop.org/patch/584859/?series=131630&rev=1#comment_1067888
> > >
> > > Though Badal went further and saw that occasionaly the memory would get
> > > freed first and hwmon would get unregistered as much as 2 seconds later,
> > > which will cause the crash if anyone touched hwmon sysfs in those final 2
> > > seconds. So not sure what is causing that 2 second delay.
> >
> > Sounds like someone holding a sysfs file/etc. open. Should be trivial
> > to do that by hand and see what happens.
>
> I checked this out. We see the memory being released before hwmon even when
> we don't access the sysfs, so it has norhing to do with holding a sysfs
> file open. Holding a sysfs file open also takes a reference on the module
> which will prevent the module from being unloaded, which is also what we
> don't see.
>
> So the reordering seems to be happening in devres itself occasionally for
> some reason.
>
> So anyway, I have submitted a new patch getting rid of devm and freeing
> everything explicitly and verified that that fixes the issue:
>
> https://patchwork.freedesktop.org/series/132400/
>
> I have also update https://patchwork.freedesktop.org/series/132400/ with
> more details.

Sorry I meant: https://gitlab.freedesktop.org/drm/intel/-/issues/10366

  reply	other threads:[~2024-04-13  0:37 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-10  4:28 [PATCH] drm/i915: Don't enable hwmon for selftests Ashutosh Dixit
2024-04-10  4:37 ` Dixit, Ashutosh
2024-04-10  4:56 ` Nilawar, Badal
2024-04-10  5:26 ` ✗ Fi.CI.BAT: failure for " Patchwork
2024-04-10 11:42 ` [PATCH] " Ville Syrjälä
2024-04-11  5:09   ` Dixit, Ashutosh
2024-04-11 10:47     ` Ville Syrjälä
2024-04-13  0:35       ` Dixit, Ashutosh
2024-04-13  0:37         ` Dixit, Ashutosh [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-04-10  4:58 Ashutosh Dixit
2024-04-10  5:17 ` Nilawar, Badal
2024-04-10  6:06   ` Dixit, Ashutosh
2024-04-10  6:05 Ashutosh Dixit
2024-04-10  6:45 ` Nilawar, Badal
2024-04-10 13:53 ` Andi Shyti
2024-04-11  4:59   ` Dixit, Ashutosh
2024-04-10 20:07 Ashutosh Dixit

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=85edbat7wj.wl-ashutosh.dixit@intel.com \
    --to=ashutosh.dixit@intel.com \
    --cc=andi.shyti@intel.com \
    --cc=badal.nilawar@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=ville.syrjala@linux.intel.com \
    /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