From: kernel test robot <lkp@intel.com>
To: chitranshmandhaniya@gmail.com, hansg@kernel.org
Cc: oe-kbuild-all@lists.linux.dev, ilpo.jarvinen@linux.intel.com,
platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org, Chitransh_Mandhaniya@dell.com
Subject: Re: [PATCH v2] platform/x86: dell-uart-backlight: fall back to PCH PWM on UART timeout
Date: Sat, 10 Oct 2026 07:46:53 +0800 [thread overview]
Message-ID: <202610100706.x2lcbo7S-lkp@intel.com> (raw)
In-Reply-To: <20261009072401.52509-1-chitranshmandhaniya@gmail.com>
Hi,
kernel test robot noticed the following build errors:
[auto build test ERROR on linus/master]
[also build test ERROR on v7.3-rc6 next-20261008]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/chitranshmandhaniya-gmail-com/platform-x86-dell-uart-backlight-fall-back-to-PCH-PWM-on-UART-timeout/20261009-125401
base: linus/master
patch link: https://lore.kernel.org/r/20261009072401.52509-1-chitranshmandhaniya%40gmail.com
patch subject: [PATCH v2] platform/x86: dell-uart-backlight: fall back to PCH PWM on UART timeout
config: i386-buildonly-randconfig-1000-20261010 (https://download.01.org/0day-ci/archive/20261010/202610100706.x2lcbo7S-lkp@intel.com/config)
compiler: gcc-13 (Debian 13.3.0-16) 13.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261010/202610100706.x2lcbo7S-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610100706.x2lcbo7S-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/platform/x86/dell/dell-uart-backlight.c: In function 'dell_pwm_fallback_register':
>> drivers/platform/x86/dell/dell-uart-backlight.c:318:16: error: cleanup argument not a function
318 | struct pci_dev *gpu __free(pci_dev_put) = NULL;
| ^~~~~~~
vim +318 drivers/platform/x86/dell/dell-uart-backlight.c
315
316 static int dell_pwm_fallback_register(struct device *dev)
317 {
> 318 struct pci_dev *gpu __free(pci_dev_put) = NULL;
319 struct backlight_properties props = {};
320 struct dell_pwm_backlight *pwm;
321 struct backlight_device *bl;
322 resource_size_t bar0;
323 u32 freq, duty, ctl;
324
325 gpu = pci_get_class(PCI_CLASS_DISPLAY_VGA << 8, NULL);
326 if (!gpu || gpu->vendor != PCI_VENDOR_ID_INTEL) {
327 dev_warn(dev, "No Intel GPU found, cannot fall back to PCH PWM\n");
328 return -ENODEV;
329 }
330
331 bar0 = pci_resource_start(gpu, 0);
332 if (!bar0) {
333 dev_warn(dev, "Intel GPU BAR0 not assigned\n");
334 return -ENODEV;
335 }
336
337 pwm = devm_kzalloc(dev, sizeof(*pwm), GFP_KERNEL);
338 if (!pwm)
339 return -ENOMEM;
340
341 pwm->mmio = devm_ioremap(dev, bar0 + PCH_BLC_PWM_CTL, SZ_16);
342 if (!pwm->mmio) {
343 dev_warn(dev, "Failed to ioremap PCH PWM registers\n");
344 return -ENOMEM;
345 }
346
347 ctl = readl(pwm->mmio);
348 freq = readl(pwm->mmio + (PCH_BLC_PWM_FREQ - PCH_BLC_PWM_CTL));
349 duty = readl(pwm->mmio + (PCH_BLC_PWM_DUTY - PCH_BLC_PWM_CTL));
350
351 if (!(ctl & PCH_BLC_PWM_ENABLE) || freq == 0) {
352 dev_warn(dev, "PCH PWM not enabled by BIOS (ctl=0x%08x freq=%u)\n", ctl, freq);
353 return -ENODEV;
354 }
355
356 pwm->max_brightness = freq;
357
358 dev_info(dev, "Falling back to PCH PWM backlight (max=%u current=%u)\n", freq, duty);
359
360 props.type = BACKLIGHT_PLATFORM;
361 props.brightness = duty;
362 props.max_brightness = freq;
363
364 bl = devm_backlight_device_register(dev, "dell_uart_backlight", dev, pwm,
365 &dell_pwm_backlight_ops, &props);
366 return PTR_ERR_OR_ZERO(bl);
367 }
368
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2026-10-09 23:47 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-08 14:16 [PATCH] platform/x86: dell-uart-backlight: fall back to PCH PWM on UART timeout 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 ` kernel test robot [this message]
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 ` [PATCH v4 0/2] " Hans de Goede
2026-10-10 12:48 ` [PATCH v5] ACPI: video: force native backlight on Dell OptiPlex AIO 7410 35W chitranshmandhaniya
2026-10-12 14:54 ` Hans de Goede
2026-10-12 18:11 ` Rafael J. Wysocki (Intel)
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=202610100706.x2lcbo7S-lkp@intel.com \
--to=lkp@intel.com \
--cc=Chitransh_Mandhaniya@dell.com \
--cc=chitranshmandhaniya@gmail.com \
--cc=hansg@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.