Skip to content

pinctrl-amd debugfs improvements

Mario Limonciello linux-gpio lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2pinctrl: amd: Adjust debugfs outputdrivers/pinctrl/pinctrl-amd.c+30 -461 reply
2/2pinctrl: amd: Add fields for interrupt status and wake statusdrivers/pinctrl/pinctrl-amd.c+17 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] pinctrl-amd debugfs improvements

Debugging an issue recently of poor residency in a low power state concluded it was caused by GPIO controller misprogrammed in BIOS.

What happened was _CRS was missing a configuration but device was trying to assert an interrupt. This is found by interrupt status bit which isn't currently covered in debug output.

Add this and also the similar wake status bit to debug output. As the display is very busy and growing long again with so much info, adjust the display to only render characters for relevant bits and to now use headers for each GPIO bank.

New sample output, including demonstrating detection of BIOS issue (by πŸ”₯):

gpio	  int|active|trigger|S0i3| S3|S4/S5| Z|wake|pull|  orient|       debounce|reg
#0	   πŸ˜›|     ↑|   edge|  ⏰| ⏰|     |⏰|    |4k ↑|input  ↑|b (πŸ•‘ 046875us)|0x81578e3
#1	    βˆ…|      |       |    |   |     |  |    |4k ↑|input  ↑|               |0x150000
#2	   πŸ˜›|     ↓|   edge|  ⏰| ⏰|     |  |    |4k ↑|input  ↑|               |0x157a00
#3	   πŸ˜›|     ↓|   edge|  ⏰| ⏰|     |  |    |4k ↑|input  ↑|               |0x157a00
#4	    βˆ…|      |       |    |   |     |  |    |4k ↑|input  ↑|               |0x150000
#5	    βˆ…|      |       |    |   |     |  |    |4k ↑|input  ↑|               |0x150000
#6	   😷|     ↓|  level|    |   |     |⏰|    |4k ↑|input  ↑|               |0x8150b00
#7	    βˆ…|      |       |    |   |     |  |    |4k ↑|input  ↑|               |0x150200

#8 πŸ”₯ 😷| ↓| level| | | |⏰| |4k ↑|input ↓| |0x18140b00

Mario Limonciello (2):
pinctrl: amd: Adjust debugfs output
pinctrl: amd: Add fields for interrupt status and wake status

 drivers/pinctrl/pinctrl-amd.c | 90 +++++++++++++++++------------------
 1 file changed, 44 insertions(+), 46 deletions(-)
Signature Β· 1 line
2.34.1