From: kernel test robot <lkp@intel.com>
To: Chandrashekar Devegowda <chandrashekar.devegowda@intel.com>,
linux-bluetooth@vger.kernel.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
linux-pci@vger.kernel.org, bhelgaas@google.com,
ravishankar.srivatsa@intel.com, chethan.tumkur.narayan@intel.com,
Chandrashekar Devegowda <chandrashekar.devegowda@intel.com>
Subject: Re: [PATCH v1] Bluetooth: btintel_pcie:Support Product level reset.
Date: Tue, 31 Mar 2026 05:01:23 +0800 [thread overview]
Message-ID: <202603310419.PsZ2njdQ-lkp@intel.com> (raw)
In-Reply-To: <20260330063842.1121545-1-chandrashekar.devegowda@intel.com>
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
next prev parent reply other threads:[~2026-03-30 21:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-30 6:38 [PATCH v1] Bluetooth: btintel_pcie:Support Product level reset Chandrashekar Devegowda
2026-03-30 8:30 ` [v1] " bluez.test.bot
2026-03-30 21:01 ` kernel test robot [this message]
2026-03-30 23:39 ` [PATCH v1] " kernel test robot
2026-04-15 7:05 ` Thorsten Leemhuis
2026-04-09 20:19 ` [v1] " bluez.test.bot
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=202603310419.PsZ2njdQ-lkp@intel.com \
--to=lkp@intel.com \
--cc=bhelgaas@google.com \
--cc=chandrashekar.devegowda@intel.com \
--cc=chethan.tumkur.narayan@intel.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=ravishankar.srivatsa@intel.com \
/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.