Skip to content

Commit 9211904

Browse files
lategoodbyegregkh
authored andcommitted
staging: vc04_services: Update testing instructions
Since the initial version of the testing instructions a few things has changed. So consider the latest arm64/defconfig changes and the new debugfs entry. Signed-off-by: Stefan Wahren <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent fcc938c commit 9211904

File tree

1 file changed

+44
-1
lines changed
  • drivers/staging/vc04_services/interface

1 file changed

+44
-1
lines changed

drivers/staging/vc04_services/interface/TESTING

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Here are the most common kernel configurations:
3131

3232
3. BCM2837 target SoC (ARM 64 bit)
3333

34-
Use the defconfig as a base and then enable all VCHIQ options.
34+
Use the defconfig which has most of the VCHIQ options enabled.
3535

3636
* Scenarios
3737

@@ -80,3 +80,46 @@ Here are the most common kernel configurations:
8080
vchi ping (size 0, 100 async, 100 oneway) -> infus
8181
vchi ping (size 0, 200 async, 0 oneway) -> infus
8282
...
83+
84+
* Debugfs test
85+
86+
Command: cat /sys/kernel/debug/vchiq/state
87+
88+
Example output:
89+
State 0: CONNECTED
90+
tx_pos=0x1e8(@43b0acda), rx_pos=0x170(@05493af8)
91+
Version: 8 (min 3)
92+
Stats: ctrl_tx_count=7, ctrl_rx_count=7, error_count=0
93+
Slots: 30 available (29 data), 0 recyclable, 0 stalls (0 data)
94+
Platform: 2835 (VC master)
95+
Local: slots 34-64 tx_pos=0x1e8 recycle=0x1f
96+
Slots claimed:
97+
DEBUG: SLOT_HANDLER_COUNT = 20(0x14)
98+
DEBUG: SLOT_HANDLER_LINE = 1937(0x791)
99+
DEBUG: PARSE_LINE = 1864(0x748)
100+
DEBUG: PARSE_HEADER = -249155224(0xf1263168)
101+
DEBUG: PARSE_MSGID = 67362817(0x403e001)
102+
DEBUG: AWAIT_COMPLETION_LINE = 0(0x0)
103+
DEBUG: DEQUEUE_MESSAGE_LINE = 0(0x0)
104+
DEBUG: SERVICE_CALLBACK_LINE = 0(0x0)
105+
DEBUG: MSG_QUEUE_FULL_COUNT = 0(0x0)
106+
DEBUG: COMPLETION_QUEUE_FULL_COUNT = 0(0x0)
107+
Remote: slots 2-32 tx_pos=0x170 recycle=0x1f
108+
Slots claimed:
109+
2: 10/9
110+
DEBUG: SLOT_HANDLER_COUNT = 20(0x14)
111+
DEBUG: SLOT_HANDLER_LINE = 1851(0x73b)
112+
DEBUG: PARSE_LINE = 1827(0x723)
113+
DEBUG: PARSE_HEADER = -150330912(0xf70a21e0)
114+
DEBUG: PARSE_MSGID = 67113022(0x400103e)
115+
DEBUG: AWAIT_COMPLETION_LINE = 0(0x0)
116+
DEBUG: DEQUEUE_MESSAGE_LINE = 0(0x0)
117+
DEBUG: SERVICE_CALLBACK_LINE = 0(0x0)
118+
DEBUG: MSG_QUEUE_FULL_COUNT = 0(0x0)
119+
DEBUG: COMPLETION_QUEUE_FULL_COUNT = 0(0x0)
120+
Service 0: LISTENING (ref 1) 'PEEK little-endian (0x4b454550)' remote n/a (msg use 0/3840, slot use 0/15)
121+
Bulk: tx_pending=0 (size 0), rx_pending=0 (size 0)
122+
Ctrl: tx_count=0, tx_bytes=0, rx_count=0, rx_bytes=0
123+
Bulk: tx_count=0, tx_bytes=0, rx_count=0, rx_bytes=0
124+
0 quota stalls, 0 slot stalls, 0 bulk stalls, 0 aborted, 0 errors
125+
instance b511f60b

0 commit comments

Comments
 (0)