Bluetooth: btintel_pcie: Print Firmware Sequencer information
PATCH v2 1/3 Bluetooth: btintel_pcie: Print Firmware Sequencer information
From: Kiran <[email protected]>
Firmware sequencer (FSEQ) is a common code shared across Bluetooth and Wifi. Printing FSEQ will help to debug if there is any mismatch between Bluetooth and Wifi FSEQ.
--- drivers/bluetooth/btintel.c | 3 ++- drivers/bluetooth/btintel.h | 5 +++++ drivers/bluetooth/btintel_pcie.c | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-)
drivers/bluetooth/btintel.c +2 -1
@@ -2713,7 +2713,7 @@ void btintel_set_msft_opcode(struct hci_dev *hdev, u8 hw_variant) }EXPORT_SYMBOL_GPL (btintel_set_msft_opcode); -static void btintel_print_fseq_info (struct hci_dev *hdev) +void btintel_print_fseq_info (struct hci_dev *hdev) {struct sk_buff *skb;u8 *p;
@@ -2825,6 +2825,7 @@ static void btintel_print_fseq_info(struct hci_dev *hdev)kfree_skb (skb); } +EXPORT_SYMBOL_GPL (btintel_print_fseq_info);static int btintel_setup_combined (struct hci_dev *hdev) {
drivers/bluetooth/btintel.h +5 -0
@@ -244,6 +244,7 @@ int btintel_bootloader_setup_tlv(struct hci_dev *hdev, struct intel_version_tlv *ver);int btintel_shutdown_combined (struct hci_dev *hdev);void btintel_hw_error (struct hci_dev *hdev,u8 code); +void btintel_print_fseq_info (struct hci_dev *hdev);#else static inline int btintel_check_bdaddr (struct hci_dev *hdev)
@@ -373,4 +374,8 @@ static inline int btintel_shutdown_combined(struct hci_dev *hdev)static inline void btintel_hw_error (struct hci_dev *hdev,u8 code) { } + +static void btintel_print_fseq_info (struct hci_dev *hdev) +{ +}#endif
drivers/bluetooth/btintel_pcie.c +2 -0
@@ -1197,9 +1197,11 @@ static int btintel_pcie_setup(struct hci_dev *hdev)bt_dev_err (hdev,"Unsupported Intel hw variant (%u)" ,INTEL_HW_VARIANT (ver_tlv.cnvi_bt)); err = -EINVAL ; + goto exit_error;break ; } +btintel_print_fseq_info (hdev); exit_error:kfree_skb (skb);
Signature · 1 line
2.40.1
PATCH v2 2/3 Bluetooth: btintel_pcie: Fix irq leak
From: Kiran <[email protected]>
Free irq before releasing irq vector.
--- drivers/bluetooth/btintel_pcie.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/bluetooth/btintel_pcie.c +6 -0
@@ -1329,6 +1329,12 @@ static void btintel_pcie_remove(struct pci_dev *pdev) data =pci_get_drvdata (pdev);btintel_pcie_reset_bt (data); +for (int i =0 ; i < data->alloc_vecs; i++) { +struct msix_entry *msix_entry; + + msix_entry = &data->msix_entries[i]; +free_irq (msix_entry->vector, msix_entry); + }pci_free_irq_vectors (pdev);
Signature · 1 line
2.40.1
PATCH v2 3/3 Bluetooth: btintel_pcie: Fix REVERSE_INULL issue reported by coverity
In reply to Kiran KFrom: Vijay Satija <[email protected]>
check pdata return of skb_pull_data, instead of data.
--- drivers/bluetooth/btintel_pcie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bluetooth/btintel_pcie.c +1 -1
@@ -382,7 +382,7 @@ static int btintel_pcie_recv_frame(struct btintel_pcie_data *data,/* The first 4 bytes indicates the Intel PCIe specific packet type */ pdata =skb_pull_data (skb,BTINTEL_PCIE_HCI_TYPE_LEN ); -if (!data) { +if (!pdata) {bt_dev_err (hdev,"Corrupted packet received" ); ret = -EILSEQ ; goto exit_error;
Signature · 1 line
2.40.1
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=853705
---Test result---
Test Summary:
CheckPatch PASS 2.26 seconds GitLint PASS 0.87 seconds SubjectPrefix PASS 0.33 seconds BuildKernel PASS 30.35 seconds CheckAllWarning PASS 33.13 seconds CheckSparse PASS 39.07 seconds CheckSmatch FAIL 35.37 seconds BuildKernel32 PASS 29.08 seconds TestRunnerSetup PASS 522.07 seconds TestRunner_l2cap-tester PASS 18.31 seconds TestRunner_iso-tester PASS 28.35 seconds TestRunner_bnep-tester PASS 4.74 seconds TestRunner_mgmt-tester FAIL 113.41 seconds TestRunner_rfcomm-tester PASS 7.42 seconds TestRunner_sco-tester PASS 16.93 seconds TestRunner_ioctl-tester PASS 7.83 seconds TestRunner_mesh-tester PASS 5.88 seconds TestRunner_smp-tester PASS 7.36 seconds TestRunner_userchan-tester PASS 4.91 seconds IncrementalBuild PASS 40.97 seconds
Details
##############################
Test: CheckSmatch - FAIL
Desc: Run smatch tool with source
Output:
Segmentation fault (core dumped)
make[4]: *** [scripts/Makefile.build:244: net/bluetooth/hci_core.o] Error 139 make[4]: *** Deleting file 'net/bluetooth/hci_core.o'
make[3]: *** [scripts/Makefile.build:485: net/bluetooth] Error 2 make[2]: *** [scripts/Makefile.build:485: net] Error 2
make[2]: *** Waiting for unfinished jobs....
Segmentation fault (core dumped)
make[4]: *** [scripts/Makefile.build:244: drivers/bluetooth/bcm203x.o] Error 139 make[4]: *** Deleting file 'drivers/bluetooth/bcm203x.o'
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [scripts/Makefile.build:485: drivers/bluetooth] Error 2 make[2]: *** [scripts/Makefile.build:485: drivers] Error 2
make[1]: *** [/github/workspace/src/src/Makefile:1919: .] Error 2
make: *** [Makefile:240: __sub-make] Error 2
##############################
Test: TestRunner_mgmt-tester - FAIL
Desc: Run mgmt-tester with test-runner
Output:
Total: 492, Passed: 489 (99.4%), Failed: 1, Not Run: 2
Failed Test Cases
LL Privacy - Remove Device 4 (Disable Adv) Timed out 2.046 seconds
---
Regards,
Linux Bluetooth
kernel test robot
build botkernel test robot noticed the following build warnings:
Hi Kiran,
kernel test robot noticed the following build warnings:
[auto build test WARNING on bluetooth-next/master]
[also build test WARNING on linus/master next-20240516] [cannot apply to v6.9]
[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/Kiran-K/Bluetooth-btintel_pcie-Fix-irq-leak/20240516-210509 base: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master patch link: https://lore.kernel.org/r/20240516131510.904787-1-kiran.k%40intel.com patch subject: [PATCH v2 1/3] Bluetooth: btintel_pcie: Print Firmware Sequencer information config: loongarch-randconfig-001-20240516 (https://download.01.org/0day-ci/archive/20240517/[email protected]/config) compiler: loongarch64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240517/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
In file included from drivers/bluetooth/hci_ldisc.c:34:
>> drivers/bluetooth/btintel.h:378:13: warning: 'btintel_print_fseq_info' defined but not used [-Wunused-function]
378 | static void btintel_print_fseq_info(struct hci_dev *hdev)
| ^~~~~~~~~~~~~~~~~~~~~~~
vim +/btintel_print_fseq_info +378 drivers/bluetooth/btintel.h
377
> 378 static void btintel_print_fseq_info(struct hci_dev *hdev)
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki