From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Gergo Koteles <soyer@irl.hu>, Hans de Goede <hdegoede@redhat.com>
Cc: Ike Panhc <ike.pan@canonical.com>,
platform-driver-x86@vger.kernel.org,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v4 4/4] platform/x86: ideapad-laptop: add a mutex to synchronize VPC commands
Date: Thu, 8 Aug 2024 15:16:06 +0300 (EEST) [thread overview]
Message-ID: <256410ac-35e0-2f2f-3dcd-14b4b5c4c500@linux.intel.com> (raw)
In-Reply-To: <4eab134fc9b9a50c4f870f4d46ddc1415d5df465.camel@irl.hu>
[-- Attachment #1: Type: text/plain, Size: 2423 bytes --]
On Tue, 30 Jul 2024, Gergo Koteles wrote:
> On Tue, 2024-07-30 at 16:37 +0300, Ilpo Järvinen wrote:
> > On Thu, 25 Jul 2024, Gergo Koteles wrote:
> >
> > > Calling VPC commands consists of several VPCW and VPCR ACPI calls.
> > > These calls and their results can get mixed up if they are called
> > > simultaneously from different threads, like acpi notify handler,
> > > sysfs, debugfs, notification chain.
> > >
> > > Add a mutex to synchronize VPC commands.
> > >
> > > Signed-off-by: Gergo Koteles <soyer@irl.hu>
> >
> > What commit does this fix? I was going to add a Fixes tag myself while
> > applying this but wasn't sure if it should be the ACPI concurrency commit
> > e2ffcda16290 or the change introducing lenovo-ymc driver?
> >
>
> YMC triggering works in 6.7, but not reliably in 6.8. So I assume the
> culprit is e2ffcda16290.
>
> But in theory debugfs, sysfs, acpi notify handler can race with each
> other in the same way for 10+ years. Technically, probably not.
Okay, I decided to put both commits then as the ACPI thing made it much
worse so it's proper to assign some "blame" to it for the additional
problems it caused ;-). I also wrote an additional paragraph about it
into the commit message.
> > Also, I'd prefer to not take the move patch (PATCH 3/4) now so I could
> > take this through fixes branch since it causes a real issue if I remember
> > the earlier discussions right? Do you think there's any issue if I take
> > only patches 1, 2, and 4? They seemed to apply without conflicts when I
> > tried to apply the entire series and then cherrypicked the last patch
> > dropping the third patch.
> >
>
> Yes, this is a real issue.
>
> You can skip the third patch. The series compiles and works fine
> without it.
>
> > The code movement patch could go through for-next fixes branch is then
> > merged into it (or after one kernel cycle).
> >
> >
>
> Fine.
I've taken patches 1, 2, and 4 into review-ilpo and will propagate them
into fixes branch once LKP has build tested the branch.
Thanks for the patches!
As mentioned patch 3 should go to for-next which is handled by Hans in
this cycle. It requires merging the fixes branch (or the fixes PR tag)
into for-next once the other commits have migrated into fixes. I'll
reassign patch 3 to Hans in patchwork once I've tagged the PR to Linus.
--
i.
prev parent reply other threads:[~2024-08-08 12:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-25 9:21 [PATCH v4 0/4] platform/x86: ideapad-laptop: " Gergo Koteles
2024-07-25 9:21 ` [PATCH v4 1/4] platform/x86: ideapad-laptop: introduce a generic notification chain Gergo Koteles
2024-07-25 9:21 ` [PATCH v4 2/4] platform/x86: ideapad-laptop: move ymc_trigger_ec from lenovo-ymc Gergo Koteles
2024-07-25 9:21 ` [PATCH v4 3/4] platform/x86: ideapad-laptop: move ACPI helpers from header to source file Gergo Koteles
2024-08-12 15:38 ` Hans de Goede
2024-07-25 9:21 ` [PATCH v4 4/4] platform/x86: ideapad-laptop: add a mutex to synchronize VPC commands Gergo Koteles
2024-07-30 13:37 ` Ilpo Järvinen
2024-07-30 16:00 ` Gergo Koteles
2024-08-08 12:16 ` Ilpo Järvinen [this message]
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=256410ac-35e0-2f2f-3dcd-14b4b5c4c500@linux.intel.com \
--to=ilpo.jarvinen@linux.intel.com \
--cc=hdegoede@redhat.com \
--cc=ike.pan@canonical.com \
--cc=linux-kernel@vger.kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=soyer@irl.hu \
/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
all inboxes | Powered by JetHome®