Skip to content

Commit 1cb527d

Browse files
committed
bluetooth: can see hci messages
Signed-off-by: R <[email protected]>
1 parent 643675c commit 1cb527d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

proxyclient/hv/trace_bt.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,14 +311,15 @@ def w_DOORBELL_05(self, val):
311311
print(close_pipe)
312312

313313
del self._open_pipes[close_pipe.pipe_idx]
314+
self._last_ring_idx[close_pipe.pipe_idx] = 0
314315
elif pipe in self._open_pipes:
315316
tr_iova = self._open_pipes[pipe].ring_iova
316317

317318
for i in range(self._last_ring_idx[pipe], ring_idx):
318-
# FIXME XXX what's going on here?
319-
tr_data_addr = tr_iova
319+
# FIXME where does this size come from?
320+
tr_data_addr = tr_iova + 0x118 * i
320321
print(f"TR idx {i} @ iova {tr_data_addr:016X}")
321-
tr_data = self.dart_tracer.dart.ioread(STREAM, tr_data_addr, 0x200)
322+
tr_data = self.dart_tracer.dart.ioread(STREAM, tr_data_addr, 0x118)
322323
chexdump(tr_data)
323324
except Exception as e:
324325
print(e)

0 commit comments

Comments
 (0)