Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Kiran K and committed by
Luiz Augusto von Dentz
15f6f621 9148ac0a

+6
+6
drivers/bluetooth/btintel_pcie.c
··· 60 60 #define BTINTEL_PCIE_MAGIC_NUM 0xA5A5A5A5 61 61 62 62 #define BTINTEL_PCIE_TRIGGER_REASON_USER_TRIGGER 0x17A2 63 + #define BTINTEL_PCIE_TRIGGER_REASON_FW_ASSERT 0x1E61 63 64 64 65 /* Alive interrupt context */ 65 66 enum { ··· 1203 1202 1204 1203 if (test_and_set_bit(BTINTEL_PCIE_HWEXP_INPROGRESS, &data->flags)) 1205 1204 return; 1205 + 1206 + /* Trigger device core dump when there is HW exception */ 1207 + if (!test_and_set_bit(BTINTEL_PCIE_COREDUMP_INPROGRESS, &data->flags)) 1208 + data->dmp_hdr.trigger_reason = BTINTEL_PCIE_TRIGGER_REASON_FW_ASSERT; 1209 + 1206 1210 queue_work(data->workqueue, &data->rx_work); 1207 1211 } 1208 1212