From: Hans de Goede <hansg@kernel.org>
To: chitranshmandhaniya@gmail.com, ilpo.jarvinen@linux.intel.com
Cc: platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org, Chitransh_Mandhaniya@dell.com
Subject: Re: [PATCH v4 0/2] platform/x86: dell-uart-backlight: fall back to PCH PWM on UART timeout
Date: Sat, 10 Oct 2026 13:41:04 +0200 [thread overview]
Message-ID: <b4223bbc-888b-43af-8c47-18af5475d8ba@kernel.org> (raw)
In-Reply-To: <20261010102012.110394-1-chitranshmandhaniya@gmail.com>
Hi Chitransh,
On 10-Oct-26 12:20 PM, chitranshmandhaniya@gmail.com wrote:
> From: Chitransh Mandhaniya <Chitransh_Mandhaniya@dell.com>
>
> Some Dell OptiPlex AIO 7410 (35W) ship with DELL0501 in ACPI but no
> physical UART scalar board, leaving the machine with zero backlight
> control after the UART probe times out.
>
> Patch 1 is a preparatory refactor that extracts the UART initialization
> sequence into dell_uart_bl_init() so the probe function can inspect its
> return value.
>
> Patch 2 adds a PCH PWM fallback path: when dell_uart_bl_init() returns
> -ETIMEDOUT, the driver reads the Intel PCH BLC_PWM registers and
> registers a BACKLIGHT_PLATFORM device.
Thank you for working on this, but directly doing mmio pokes on
an mmio range managed by the i915 driver is not okay:
NACK for this patch-series / this approach.
You should be able to work around this problem by passing:
acpi_backlight=native
on the kernel command-line which causes acpi_video_get_backlight_type()
to properly return native as type.
After confirming that that works, you can fix this permanently by
extending the existing DMI quirks for this in drivers/acpi/video_detect.c:
/*
* Dell AIO (All in Ones) which advertise an UART attached backlight
* controller board in their ACPI tables (and may even have one), but
* which need native backlight control nevertheless.
*/
{
/* https://github.com/zabbly/linux/issues/26 */
.callback = video_detect_force_native,
/* Dell OptiPlex 5480 AIO */
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
DMI_MATCH(DMI_PRODUCT_NAME, "OptiPlex 5480 AIO"),
},
},
{
/* https://bugzilla.redhat.com/show_bug.cgi?id=2303936 */
.callback = video_detect_force_native,
/* Dell OptiPlex 7760 AIO */
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
DMI_MATCH(DMI_PRODUCT_NAME, "OptiPlex 7760 AIO"),
},
},
{
.callback = video_detect_force_native,
/* Dell OptiPlex 7770 AIO */
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
DMI_MATCH(DMI_PRODUCT_NAME, "OptiPlex 7770 AIO"),
},
},
Regards,
Hans
>
> v3 -> v4:
> - Revert __free(pci_dev_put) to manual pci_dev_put() calls to fix
> build error when CONFIG_PCI is disabled (kernel test robot)
>
> v2 -> v3:
> - Split into two patches: preparatory refactor + fallback (Ilpo)
>
> v1 -> v2:
> - Use SZ_16 instead of 0x10, add linux/sizes.h (Ilpo)
> - Name BIT(31) as PCH_BLC_PWM_ENABLE (Ilpo)
> - Fix double-space in block comment (Ilpo)
> - Reduce devm_backlight_device_register() to fewer lines (Ilpo)
> - Extract dell_uart_bl_init() for the normal UART backlight path (Ilpo)
>
> Chitransh Mandhaniya (2):
> platform/x86: dell-uart-backlight: extract dell_uart_bl_init() from
> probe
> platform/x86: dell-uart-backlight: fall back to PCH PWM on UART
> timeout
>
> .../platform/x86/dell/dell-uart-backlight.c | 158 +++++++++++++++---
> 1 file changed, 135 insertions(+), 23 deletions(-)
>
next prev parent reply other threads:[~2026-10-10 11:41 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-08 14:16 [PATCH] " chitranshmandhaniya
2026-10-08 14:30 ` Ilpo Järvinen
2026-10-09 7:24 ` [PATCH v2] " chitranshmandhaniya
2026-10-09 10:48 ` Ilpo Järvinen
2026-10-09 12:26 ` [PATCH v3 0/2] " chitranshmandhaniya
2026-10-09 12:26 ` [PATCH v3 1/2] platform/x86: dell-uart-backlight: extract dell_uart_bl_init() from probe chitranshmandhaniya
2026-10-09 12:26 ` [PATCH v3 2/2] platform/x86: dell-uart-backlight: fall back to PCH PWM on UART timeout chitranshmandhaniya
2026-10-09 23:46 ` [PATCH v2] " kernel test robot
2026-10-10 10:20 ` [PATCH v4 0/2] " chitranshmandhaniya
2026-10-10 10:20 ` [PATCH v4 1/2] platform/x86: dell-uart-backlight: extract dell_uart_bl_init() from probe chitranshmandhaniya
2026-10-10 10:20 ` [PATCH v4 2/2] platform/x86: dell-uart-backlight: fall back to PCH PWM on UART timeout chitranshmandhaniya
2026-10-10 11:41 ` Hans de Goede [this message]
2026-10-10 12:48 ` [PATCH v5] ACPI: video: force native backlight on Dell OptiPlex AIO 7410 35W chitranshmandhaniya
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=b4223bbc-888b-43af-8c47-18af5475d8ba@kernel.org \
--to=hansg@kernel.org \
--cc=Chitransh_Mandhaniya@dell.com \
--cc=chitranshmandhaniya@gmail.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
/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®