diff mbox series

[v2] Bluetooth: btintel: Direct exception event to bluetooth stack

Message ID 20241022091134.791527-1-kiran.k@intel.com
State Accepted
Commit e88b020190bf5bc3e7ce5bd8003fc39b23cc95fe
Headers show
Series [v2] Bluetooth: btintel: Direct exception event to bluetooth stack | expand

Commit Message

K, Kiran Oct. 22, 2024, 9:11 a.m. UTC
Have exception event part of HCI traces which helps for debug.

snoop traces:
> HCI Event: Vendor (0xff) plen 79
        Vendor Prefix (0x8780)
      Intel Extended Telemetry (0x03)
        Unknown extended telemetry event type (0xde)
        01 01 de
        Unknown extended subevent 0x07
        01 01 de 07 01 de 06 1c ef be ad de ef be ad de
        ef be ad de ef be ad de ef be ad de ef be ad de
        ef be ad de 05 14 ef be ad de ef be ad de ef be
        ad de ef be ad de ef be ad de 43 10 ef be ad de
        ef be ad de ef be ad de ef be ad de

Fixes: af395330abed ("Bluetooth: btintel: Add Intel devcoredump support")
Signed-off-by: Kiran K <kiran.k@intel.com>
---
 drivers/bluetooth/btintel.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

Comments

K, Kiran Nov. 4, 2024, 5:11 a.m. UTC | #1
Hi Luiz,

Friendly reminder.

>-----Original Message-----
>From: K, Kiran <kiran.k@intel.com>
>Sent: Tuesday, October 22, 2024 2:42 PM
>To: linux-bluetooth@vger.kernel.org
>Cc: Srivatsa, Ravishankar <ravishankar.srivatsa@intel.com>; Tumkur Narayan,
>Chethan <chethan.tumkur.narayan@intel.com>; Devegowda, Chandrashekar
><chandrashekar.devegowda@intel.com>; Satija, Vijay <vijay.satija@intel.com>;
>K, Kiran <kiran.k@intel.com>
>Subject: [PATCH v2] Bluetooth: btintel: Direct exception event to bluetooth
>stack
>
>Have exception event part of HCI traces which helps for debug.
>
>snoop traces:
>> HCI Event: Vendor (0xff) plen 79
>        Vendor Prefix (0x8780)
>      Intel Extended Telemetry (0x03)
>        Unknown extended telemetry event type (0xde)
>        01 01 de
>        Unknown extended subevent 0x07
>        01 01 de 07 01 de 06 1c ef be ad de ef be ad de
>        ef be ad de ef be ad de ef be ad de ef be ad de
>        ef be ad de 05 14 ef be ad de ef be ad de ef be
>        ad de ef be ad de ef be ad de 43 10 ef be ad de
>        ef be ad de ef be ad de ef be ad de
>
>Fixes: af395330abed ("Bluetooth: btintel: Add Intel devcoredump support")
>Signed-off-by: Kiran K <kiran.k@intel.com>
>---
> drivers/bluetooth/btintel.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
>diff --git a/drivers/bluetooth/btintel.c b/drivers/bluetooth/btintel.c index
>e122dff855ba..d496cf2c3411 100644
>--- a/drivers/bluetooth/btintel.c
>+++ b/drivers/bluetooth/btintel.c
>@@ -3361,13 +3361,12 @@ int btintel_diagnostics(struct hci_dev *hdev, struct
>sk_buff *skb)
> 	case INTEL_TLV_TEST_EXCEPTION:
> 		/* Generate devcoredump from exception */
> 		if (!hci_devcd_init(hdev, skb->len)) {
>-			hci_devcd_append(hdev, skb);
>+			hci_devcd_append(hdev, skb_clone(skb,
>GFP_ATOMIC));
> 			hci_devcd_complete(hdev);
> 		} else {
> 			bt_dev_err(hdev, "Failed to generate devcoredump");
>-			kfree_skb(skb);
> 		}
>-		return 0;
>+	break;
> 	default:
> 		bt_dev_err(hdev, "Invalid exception type %02X", tlv->val[0]);
> 	}
>--
>2.40.1

Thanks,
Kiran
patchwork-bot+bluetooth@kernel.org Nov. 12, 2024, 4:40 p.m. UTC | #2
Hello:

This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:

On Tue, 22 Oct 2024 14:41:34 +0530 you wrote:
> Have exception event part of HCI traces which helps for debug.
> 
> snoop traces:
> > HCI Event: Vendor (0xff) plen 79
>         Vendor Prefix (0x8780)
>       Intel Extended Telemetry (0x03)
>         Unknown extended telemetry event type (0xde)
>         01 01 de
>         Unknown extended subevent 0x07
>         01 01 de 07 01 de 06 1c ef be ad de ef be ad de
>         ef be ad de ef be ad de ef be ad de ef be ad de
>         ef be ad de 05 14 ef be ad de ef be ad de ef be
>         ad de ef be ad de ef be ad de 43 10 ef be ad de
>         ef be ad de ef be ad de ef be ad de
> 
> [...]

Here is the summary with links:
  - [v2] Bluetooth: btintel: Direct exception event to bluetooth stack
    https://git.kernel.org/bluetooth/bluetooth-next/c/e88b020190bf

You are awesome, thank you!
diff mbox series

Patch

diff --git a/drivers/bluetooth/btintel.c b/drivers/bluetooth/btintel.c
index e122dff855ba..d496cf2c3411 100644
--- a/drivers/bluetooth/btintel.c
+++ b/drivers/bluetooth/btintel.c
@@ -3361,13 +3361,12 @@  int btintel_diagnostics(struct hci_dev *hdev, struct sk_buff *skb)
 	case INTEL_TLV_TEST_EXCEPTION:
 		/* Generate devcoredump from exception */
 		if (!hci_devcd_init(hdev, skb->len)) {
-			hci_devcd_append(hdev, skb);
+			hci_devcd_append(hdev, skb_clone(skb, GFP_ATOMIC));
 			hci_devcd_complete(hdev);
 		} else {
 			bt_dev_err(hdev, "Failed to generate devcoredump");
-			kfree_skb(skb);
 		}
-		return 0;
+	break;
 	default:
 		bt_dev_err(hdev, "Invalid exception type %02X", tlv->val[0]);
 	}