Skip to content

Commit 15f6f62

Browse files
kirankrishnappa-intelVudentz
authored andcommitted
Bluetooth: btintel_pcie: Trigger device coredump on hardware exception
Driver dumps device core dump on firmware exception. Signed-off-by: Kiran K <kiran.k@intel.com> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
1 parent 9148ac0 commit 15f6f62

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

drivers/bluetooth/btintel_pcie.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ MODULE_DEVICE_TABLE(pci, btintel_pcie_table);
6060
#define BTINTEL_PCIE_MAGIC_NUM 0xA5A5A5A5
6161

6262
#define BTINTEL_PCIE_TRIGGER_REASON_USER_TRIGGER 0x17A2
63+
#define BTINTEL_PCIE_TRIGGER_REASON_FW_ASSERT 0x1E61
6364

6465
/* Alive interrupt context */
6566
enum {
@@ -1202,6 +1203,11 @@ static void btintel_pcie_msix_hw_exp_handler(struct btintel_pcie_data *data)
12021203

12031204
if (test_and_set_bit(BTINTEL_PCIE_HWEXP_INPROGRESS, &data->flags))
12041205
return;
1206+
1207+
/* Trigger device core dump when there is HW exception */
1208+
if (!test_and_set_bit(BTINTEL_PCIE_COREDUMP_INPROGRESS, &data->flags))
1209+
data->dmp_hdr.trigger_reason = BTINTEL_PCIE_TRIGGER_REASON_FW_ASSERT;
1210+
12051211
queue_work(data->workqueue, &data->rx_work);
12061212
}
12071213

0 commit comments

Comments
 (0)