Skip to content

Commit bf2ffc4

Browse files
devegowdIntelVudentz
authored andcommitted
Bluetooth: btintel_pcie: Reduce driver buffer posting to prevent race condition
Modify the driver to post 3 fewer buffers than the maximum rx buffers (64) allowed for the firmware. This change mitigates a hardware issue causing a race condition in the firmware, improving stability and data handling. Signed-off-by: Chandrashekar Devegowda <[email protected]> Signed-off-by: Kiran K <[email protected]> Fixes: c2b636b ("Bluetooth: btintel_pcie: Add support for PCIe transport") Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent 2dd7111 commit bf2ffc4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/bluetooth/btintel_pcie.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,11 @@ static int btintel_pcie_start_rx(struct btintel_pcie_data *data)
398398
int i, ret;
399399
struct rxq *rxq = &data->rxq;
400400

401-
for (i = 0; i < rxq->count; i++) {
401+
/* Post (BTINTEL_PCIE_RX_DESCS_COUNT - 3) buffers to overcome the
402+
* hardware issues leading to race condition at the firmware.
403+
*/
404+
405+
for (i = 0; i < rxq->count - 3; i++) {
402406
ret = btintel_pcie_submit_rx(data);
403407
if (ret)
404408
return ret;

0 commit comments

Comments
 (0)