public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* Re: [PATCH v1] Bluetooth: btintel_pcie:Support Product level reset.
       [not found] <20260330063842.1121545-1-chandrashekar.devegowda@intel.com>
@ 2026-03-30 21:01 ` kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-03-30 21:01 UTC (permalink / raw)
  To: Chandrashekar Devegowda, linux-bluetooth
  Cc: llvm, oe-kbuild-all, linux-pci, bhelgaas, ravishankar.srivatsa,
	chethan.tumkur.narayan, Chandrashekar Devegowda

Hi Chandrashekar,

kernel test robot noticed the following build errors:

[auto build test ERROR on bluetooth-next/master]
[also build test ERROR on next-20260327]
[cannot apply to bluetooth/master linus/master v7.0-rc6]
[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/Chandrashekar-Devegowda/Bluetooth-btintel_pcie-Support-Product-level-reset/20260330-190125
base:   https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master
patch link:    https://lore.kernel.org/r/20260330063842.1121545-1-chandrashekar.devegowda%40intel.com
patch subject: [PATCH v1] Bluetooth: btintel_pcie:Support Product level reset.
config: um-allmodconfig (https://download.01.org/0day-ci/archive/20260331/202603310419.PsZ2njdQ-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260331/202603310419.PsZ2njdQ-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/202603310419.PsZ2njdQ-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/bluetooth/btintel_pcie.c:13:
   In file included from include/linux/pci.h:38:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/um/include/asm/hardirq.h:24:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:12:
   In file included from arch/um/include/asm/io.h:24:
   include/asm-generic/io.h:1209:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
    1209 |         return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
         |                                                   ~~~~~~~~~~ ^
>> drivers/bluetooth/btintel_pcie.c:2307:7: error: call to undeclared function 'acpi_has_method'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    2307 |         if (!acpi_has_method(handle, "_PRR")) {
         |              ^
   drivers/bluetooth/btintel_pcie.c:2307:7: note: did you mean 'acpi_has_watchdog'?
   include/linux/acpi.h:1494:20: note: 'acpi_has_watchdog' declared here
    1494 | static inline bool acpi_has_watchdog(void) { return false; }
         |                    ^
   1 warning and 1 error generated.


vim +/acpi_has_method +2307 drivers/bluetooth/btintel_pcie.c

  2280	
  2281	static int btintel_pcie_acpi_reset_method(struct btintel_pcie_data *data)
  2282	{
  2283		union acpi_object *obj, argv4;
  2284		acpi_handle handle;
  2285		int ret;
  2286		struct pldr_mode {
  2287			u16	cmd_type;
  2288			u16	cmd_payload;
  2289		} __packed;
  2290	
  2291		/* set 1 for _PRR mode
  2292		 * Product Reset (PLDR Abort flow)
  2293		 */
  2294		static const struct pldr_mode mode = {
  2295			.cmd_type = 1,
  2296			.cmd_payload = BTINTEL_PCIE_DSM_PLDR_MODE_EN_PROD_RESET |
  2297				       BTINTEL_PCIE_DSM_PLDR_MODE_EN_WIFI_FLR,
  2298		};
  2299		struct hci_dev *hdev = data->hdev;
  2300	
  2301		handle = ACPI_HANDLE(GET_HCIDEV_DEV(data->hdev));
  2302		if (!handle) {
  2303			bt_dev_dbg(data->hdev, "No support for bluetooth device in ACPI firmware");
  2304			return -EACCES;
  2305		}
  2306	
> 2307		if (!acpi_has_method(handle, "_PRR")) {
  2308			bt_dev_dbg(data->hdev, "No support for _PRR ACPI method, falling back to FLR");
  2309			btintel_pcie_reset(data->hdev);
  2310			return -ENODEV;
  2311		}
  2312	
  2313		argv4.buffer.type = ACPI_TYPE_BUFFER;
  2314		argv4.buffer.length = sizeof(mode);
  2315		argv4.buffer.pointer = (void *)&mode;
  2316	
  2317		obj = acpi_evaluate_dsm(handle, &btintel_guid_dsm, 0,
  2318					BTINTEL_PCIE_DSM_DYNAMIC_PLDR, &argv4);
  2319		if (!obj) {
  2320			bt_dev_err(data->hdev, "Failed to call dsm to set reset method");
  2321			return -EIO;
  2322		}
  2323		ACPI_FREE(obj);
  2324	
  2325		pci_dev_lock(data->pdev);
  2326		pci_save_state(data->pdev);
  2327		ret = btintel_acpi_reset_method(hdev);
  2328		if (ret)
  2329			bt_dev_err(data->hdev, "ACPI _PRR reset failed (%d),PLDR incomplete",
  2330				   ret);
  2331		pci_restore_state(data->pdev);
  2332		pci_dev_unlock(data->pdev);
  2333		return ret;
  2334	}
  2335	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-03-30 21:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20260330063842.1121545-1-chandrashekar.devegowda@intel.com>
2026-03-30 21:01 ` [PATCH v1] Bluetooth: btintel_pcie:Support Product level reset kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox