mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Jani Nikula <jani.nikula@linux.intel.com>
Cc: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
	"Armin Wolf" <W_Armin@gmx.de>,
	"Deucher, Alexander" <Alexander.Deucher@amd.com>,
	"hansg@kernel.org" <hansg@kernel.org>,
	"platform-driver-x86@vger.kernel.org"
	<platform-driver-x86@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux@weissschuh.net" <linux@weissschuh.net>,
	"rafael@kernel.org" <rafael@kernel.org>,
	"lenb@kernel.org" <lenb@kernel.org>,
	"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
	"Koenig, Christian" <Christian.Koenig@amd.com>,
	"airlied@gmail.com" <airlied@gmail.com>,
	"simona@ffwll.ch" <simona@ffwll.ch>,
	"amd-gfx@lists.freedesktop.org" <amd-gfx@lists.freedesktop.org>,
	"dri-devel@lists.freedesktop.org"
	<dri-devel@lists.freedesktop.org>,
	"patrik.r.jakobsson@gmail.com" <patrik.r.jakobsson@gmail.com>,
	"maarten.lankhorst@linux.intel.com"
	<maarten.lankhorst@linux.intel.com>,
	"mripard@kernel.org" <mripard@kernel.org>,
	"tzimmermann@suse.de" <tzimmermann@suse.de>,
	"joonas.lahtinen@linux.intel.com"
	<joonas.lahtinen@linux.intel.com>,
	"tursulin@ursulin.net" <tursulin@ursulin.net>,
	"intel-gfx@lists.freedesktop.org"
	<intel-gfx@lists.freedesktop.org>,
	"matthew.brost@intel.com" <matthew.brost@intel.com>,
	"thomas.hellstrom@linux.intel.com"
	<thomas.hellstrom@linux.intel.com>,
	"intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH v3 2/3] ACPI: video: Remove CONFIG_X86 handling from nvidia_wmi_ec_supported()
Date: Tue, 15 Sep 2026 18:02:29 -0400	[thread overview]
Message-ID: <aqnAdfovLmD2O3wQ@intel.com> (raw)
In-Reply-To: <11976ed3784675ad241646287a909286a42675a8@intel.com>

On Tue, Sep 15, 2026 at 03:31:29PM +0300, Jani Nikula wrote:
> On Tue, 15 Sep 2026, Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> wrote:
> > GPU people heads up!!
> >
> > On Wed, 2 Sep 2026, Armin Wolf wrote:
> >
> >> Am 01.09.26 um 23:30 schrieb Deucher, Alexander:
> >> 
> >> > Public
> >> > 
> >> > > -----Original Message-----
> >> > > From: Armin Wolf <W_Armin@gmx.de>
> >> > > Sent: Thursday, July 23, 2026 11:00 PM
> >> > > To: hansg@kernel.org; ilpo.jarvinen@linux.intel.com
> >> > > Cc: platform-driver-x86@vger.kernel.org; linux-kernel@vger.kernel.org;
> >> > > linux@weissschuh.net; rafael@kernel.org; lenb@kernel.org; linux-
> >> > > acpi@vger.kernel.org; Deucher, Alexander <Alexander.Deucher@amd.com>;
> >> > > Koenig, Christian <Christian.Koenig@amd.com>; airlied@gmail.com;
> >> > > simona@ffwll.ch; amd-gfx@lists.freedesktop.org; dri-
> >> > > devel@lists.freedesktop.org; patrik.r.jakobsson@gmail.com;
> >> > > maarten.lankhorst@linux.intel.com; mripard@kernel.org;
> >> > > tzimmermann@suse.de; jani.nikula@linux.intel.com;
> >> > > joonas.lahtinen@linux.intel.com; rodrigo.vivi@intel.com;
> >> > > tursulin@ursulin.net; intel-gfx@lists.freedesktop.org;
> >> > > matthew.brost@intel.com; thomas.hellstrom@linux.intel.com; intel-
> >> > > xe@lists.freedesktop.org
> >> > > Subject: [PATCH v3 2/3] ACPI: video: Remove CONFIG_X86 handling from
> >> > > nvidia_wmi_ec_supported()
> >> > > 
> >> > > The WMI-ACPI driver now supports architectures other than x86.
> >> > > Remove the CONFIG_X86 handling from video-detect and the associated
> >> > > drivers to simplify the resulting code.
> >> > > 
> >> > > Acked-by: Rafael J. Wysocki (Intel) <rafael@kernel.org>
> >> > > Signed-off-by: Armin Wolf <W_Armin@gmx.de>
> >> > > ---
> >> > >   drivers/acpi/Kconfig               | 2 +-
> >> > >   drivers/acpi/video_detect.c        | 8 --------
> >> > >   drivers/gpu/drm/amd/amdgpu/Kconfig | 4 +---
> >> > >   drivers/gpu/drm/gma500/Kconfig     | 1 -
> >> > >   drivers/gpu/drm/i915/Kconfig       | 1 -
> >> > >   drivers/gpu/drm/radeon/Kconfig     | 4 +---
> >> > >   drivers/gpu/drm/xe/Kconfig         | 5 ++---
> >> > >   drivers/platform/loongarch/Kconfig | 1 +
> >> > >   8 files changed, 6 insertions(+), 20 deletions(-)
> >> > > 
> >> > > diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig index
> >> > > f165d14cf61a..cc1e58fa664b 100644
> >> > > --- a/drivers/acpi/Kconfig
> >> > > +++ b/drivers/acpi/Kconfig
> >> > > @@ -224,7 +224,7 @@ config ACPI_VIDEO
> >> > >        tristate "Video"
> >> > >        depends on BACKLIGHT_CLASS_DEVICE
> >> > >        depends on INPUT
> >> > > -     depends on ACPI_WMI || !X86
> >> > > +     depends on ACPI_WMI
> >> > >        select THERMAL
> >> > >        help
> >> > >          This driver implements the ACPI Extensions For Display Adapters
> >> > > diff
> >> > > --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c index
> >> > > 458efa4fe9d4..af9280b244f1 100644
> >> > > --- a/drivers/acpi/video_detect.c
> >> > > +++ b/drivers/acpi/video_detect.c
> >> > > @@ -82,8 +82,6 @@ find_video(acpi_handle handle, u32 lvl, void *context,
> >> > > void **rv)
> >> > >        return AE_OK;
> >> > >   }
> >> > > 
> >> > > -/* This depends on ACPI_WMI which is X86 only */ -#ifdef CONFIG_X86
> >> > > static bool nvidia_wmi_ec_supported(void)  {
> >> > >        struct wmi_brightness_args args = {
> >> > > @@ -105,12 +103,6 @@ static bool nvidia_wmi_ec_supported(void)
> >> > >         */
> >> > >        return args.ret == WMI_BRIGHTNESS_SOURCE_EC;  } -#else -static bool
> >> > > nvidia_wmi_ec_supported(void) -{
> >> > > -     return false;
> >> > > -}
> >> > > -#endif
> >> > > 
> >> > >   /* Force to use vendor driver when the ACPI device is known to be
> >> > >    * buggy */
> >> > > diff --git a/drivers/gpu/drm/amd/amdgpu/Kconfig
> >> > > b/drivers/gpu/drm/amd/amdgpu/Kconfig
> >> > > index 12e4a41bf1f0..50305630f533 100644
> >> > > --- a/drivers/gpu/drm/amd/amdgpu/Kconfig
> >> > > +++ b/drivers/gpu/drm/amd/amdgpu/Kconfig
> >> > > @@ -30,9 +30,7 @@ config DRM_AMDGPU
> >> > >        # ACPI_VIDEO's dependencies must also be selected.
> >> > >        select INPUT if ACPI
> >> > >        select ACPI_VIDEO if ACPI
> >> > > -     # On x86 ACPI_VIDEO also needs ACPI_WMI
> >> > > -     select X86_PLATFORM_DEVICES if ACPI && X86
> >> > The change below makes sense, but this one looks like it should remain
> >> > unless X86_PLATFORM_DEVICES is handled some other way?
> >> > 
> >> > Alex
> >> 
> >> AFAIK the dependency on X86_PLATFORM_DEVICES was only necessary because
> >> ACPI-WMI depended on it in the past.
> >> By now ACPI-WMI neither depends on X86_PLATFORM_DEVICES or X86 anymore.
> >
> > Hi all,
> >
> > Could more GPU people besides Alex take a look on this. I'd want to make 
> > progress with this series within this cycle but would prefer to have Acks 
> > from GPU side.
> 
> I share the same concern with Alex. It seems to me we could now end up
> with x86 configurations without X86_PLATFORM_DEVICES, which handle
> e.g. backlight on a lot of platforms.
> 
> I think the safer option might be to go for:
> 
> 	depends on X86_PLATFORM_DEVICES || !X86

I also fail to see what is wrong with current xe's version
that is getting dropped below:

depends on X86_PLATFORM_DEVICES || !(X86 && ACPI)

> 
> in all of the cases that select/depend on X86_PLATFORM_DEVICES in drm.
> 
> The alternative is to find out, and handle the fallout, if any.
> 
> 
> BR,
> Jani.
> 
> 
> >
> >> > > -     select ACPI_WMI if ACPI && X86
> >> > > +     select ACPI_WMI if ACPI
> >> > >        help
> >> > >          Choose this option if you have a recent AMD Radeon graphics card.
> >> > > 
> >> > > diff --git a/drivers/gpu/drm/gma500/Kconfig
> >> > > b/drivers/gpu/drm/gma500/Kconfig index a2acaa699dd5..dc4c56638819
> >> > > 100644
> >> > > --- a/drivers/gpu/drm/gma500/Kconfig
> >> > > +++ b/drivers/gpu/drm/gma500/Kconfig
> >> > > @@ -11,7 +11,6 @@ config DRM_GMA500
> >> > >        select ACPI_VIDEO if ACPI
> >> > >        select BACKLIGHT_CLASS_DEVICE if ACPI
> >> > >        select INPUT if ACPI
> >> > > -     select X86_PLATFORM_DEVICES if ACPI
> >> > >        select ACPI_WMI if ACPI
> >> > >        help
> >> > >          Say yes for an experimental 2D KMS framebuffer driver for the
> >> > > diff --
> >> > > git a/drivers/gpu/drm/i915/Kconfig b/drivers/gpu/drm/i915/Kconfig index
> >> > > 5e939004b646..71426b9c91f0 100644
> >> > > --- a/drivers/gpu/drm/i915/Kconfig
> >> > > +++ b/drivers/gpu/drm/i915/Kconfig
> >> > > @@ -28,7 +28,6 @@ config DRM_I915
> >> > >        # but for select to work, need to select ACPI_VIDEO's dependencies,
> >> > > ick
> >> > >        select BACKLIGHT_CLASS_DEVICE if ACPI
> >> > >        select INPUT if ACPI
> >> > > -     select X86_PLATFORM_DEVICES if ACPI
> >> > >        select ACPI_WMI if ACPI
> >> > >        select ACPI_VIDEO if ACPI
> >> > >        select SYNC_FILE
> >> > > diff --git a/drivers/gpu/drm/radeon/Kconfig
> >> > > b/drivers/gpu/drm/radeon/Kconfig index c479f0c0dd5c..3cd70aef770e
> >> > > 100644
> >> > > --- a/drivers/gpu/drm/radeon/Kconfig
> >> > > +++ b/drivers/gpu/drm/radeon/Kconfig
> >> > > @@ -25,9 +25,7 @@ config DRM_RADEON
> >> > >        # ACPI_VIDEO's dependencies must also be selected.
> >> > >        select INPUT if ACPI
> >> > >        select ACPI_VIDEO if ACPI
> >> > > -     # On x86 ACPI_VIDEO also needs ACPI_WMI
> >> > > -     select X86_PLATFORM_DEVICES if ACPI && X86
> >> > > -     select ACPI_WMI if ACPI && X86
> >> > > +     select ACPI_WMI if ACPI
> >> > >        help
> >> > >          Choose this option if you have an ATI Radeon graphics card.
> >> > > There
> >> > >          are both PCI and AGP versions.  You don't need to choose this to
> >> > > diff -
> >> > > -git a/drivers/gpu/drm/xe/Kconfig b/drivers/gpu/drm/xe/Kconfig index
> >> > > 4d7dcaff2b91..502c7b3c1f16 100644
> >> > > --- a/drivers/gpu/drm/xe/Kconfig
> >> > > +++ b/drivers/gpu/drm/xe/Kconfig
> >> > > @@ -4,7 +4,6 @@ config DRM_XE
> >> > >        depends on DRM && PCI
> >> > >        depends on KUNIT || !KUNIT
> >> > >        depends on INTEL_VSEC || !INTEL_VSEC
> >> > > -     depends on X86_PLATFORM_DEVICES || !(X86 && ACPI)
> >> > >        depends on PAGE_SIZE_4KB || COMPILE_TEST || BROKEN
> >> > >        select INTERVAL_TREE
> >> > >        # we need shmfs for the swappable backing store, and in particular
> >> > > @@ -29,8 +28,8 @@ config DRM_XE
> >> > >        # but for select to work, need to select ACPI_VIDEO's dependencies,
> >> > > ick
> >> > >        select BACKLIGHT_CLASS_DEVICE if ACPI
> >> > >        select INPUT if ACPI
> >> > > -     select ACPI_VIDEO if X86 && ACPI
> >> > > -     select ACPI_WMI if X86 && ACPI
> >> > > +     select ACPI_VIDEO if ACPI
> >> > > +     select ACPI_WMI if ACPI
> >> > >        select SYNC_FILE
> >> > >        select CRC32
> >> > >        select SND_HDA_I915 if SND_HDA_CORE
> >> > > diff --git a/drivers/platform/loongarch/Kconfig
> >> > > b/drivers/platform/loongarch/Kconfig
> >> > > index 447528797d07..db7833842142 100644
> >> > > --- a/drivers/platform/loongarch/Kconfig
> >> > > +++ b/drivers/platform/loongarch/Kconfig
> >> > > @@ -23,6 +23,7 @@ config LOONGSON_LAPTOP
> >> > >        depends on INPUT
> >> > >        depends on MACH_LOONGSON64
> >> > >        select ACPI_VIDEO
> >> > > +     select ACPI_WMI
> >> > >        select INPUT_SPARSEKMAP
> >> > >        default y
> >> > >        help
> >> > > --
> >> > > 2.39.5
> >> > 
> >> 
> 
> -- 
> Jani Nikula, Intel

  reply	other threads:[~2026-09-15 22:02 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-24  2:59 [PATCH v3 0/3] platform/wmi: Add aarch64 support Armin Wolf
2026-07-24  2:59 ` [PATCH v3 1/3] platform/wmi: Remove dependency on CONFIG_X86 Armin Wolf
2026-07-24  2:59 ` [PATCH v3 2/3] ACPI: video: Remove CONFIG_X86 handling from nvidia_wmi_ec_supported() Armin Wolf
2026-09-01 21:30   ` Deucher, Alexander
2026-09-02 17:00     ` Armin Wolf
2026-09-15 12:08       ` Ilpo Järvinen
2026-09-15 12:31         ` Jani Nikula
2026-09-15 22:02           ` Rodrigo Vivi [this message]
2026-09-15 22:03           ` Armin Wolf
2026-09-16  7:16             ` Jani Nikula
2026-07-24  2:59 ` [PATCH v3 3/3] platform/x86: wmi-bmof: Move to generic WMI code Armin Wolf
2026-08-07 21:03 ` [PATCH v3 0/3] platform/wmi: Add aarch64 support Armin Wolf
2026-09-01 20:17   ` Armin Wolf
2026-09-02  9:27     ` Ilpo Järvinen
2026-09-02 16:58       ` Armin Wolf

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=aqnAdfovLmD2O3wQ@intel.com \
    --to=rodrigo.vivi@intel.com \
    --cc=Alexander.Deucher@amd.com \
    --cc=Christian.Koenig@amd.com \
    --cc=W_Armin@gmx.de \
    --cc=airlied@gmail.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=hansg@kernel.org \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=jani.nikula@linux.intel.com \
    --cc=joonas.lahtinen@linux.intel.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@weissschuh.net \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=matthew.brost@intel.com \
    --cc=mripard@kernel.org \
    --cc=patrik.r.jakobsson@gmail.com \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=rafael@kernel.org \
    --cc=simona@ffwll.ch \
    --cc=thomas.hellstrom@linux.intel.com \
    --cc=tursulin@ursulin.net \
    --cc=tzimmermann@suse.de \
    /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®