Commit 527d7a88 authored by mperes's avatar mperes Committed by nouveau
Browse files

changes proposed by imirkin

parent e865da20
# Firmware # Firmware
...@@ -87,15 +85,15 @@ The kernel parts can be obtained by doing a mmiotrace of a program using vdpau f ...@@ -87,15 +85,15 @@ The kernel parts can be obtained by doing a mmiotrace of a program using vdpau f
After you obtained the mmiotrace, look for the base offsets used by the firmware: After you obtained the mmiotrace, look for the base offsets used by the firmware:
$ demmio vdpau-mmiotrace | grep P.*P.*XFER_EXT_BASE $ demmio -f vdpau-mmiotrace | grep P.*P.*XFER_EXT_BASE
[0] 437.753081 MMIO32 W 0x084110 0x004de400 PBSP.XFER_EXT_BASE <= 0x4de40000 [0] 437.753081 MMIO32 W 0x084110 0x004de400 PBSP.XFER_EXT_BASE <= 0x4de40000
[0] 445.278672 MMIO32 W 0x085110 0x004dde00 PVP.XFER_EXT_BASE <= 0x4dde0000 [0] 445.278672 MMIO32 W 0x085110 0x004dde00 PVP.XFER_EXT_BASE <= 0x4dde0000
[0] 445.938745 MMIO32 W 0x086110 0x004dd800 PPPP.XFER_EXT_BASE <= 0x4dd80000 [0] 445.938745 MMIO32 W 0x086110 0x004dd800 PPPP.XFER_EXT_BASE <= 0x4dd80000
$ demmio vdpau-mmiotrace | less $ demmio -f vdpau-mmiotrace | less
/RAMIN32.*4de40000 would get you to the start of the mmiotrace, from my log I could see the RAMIN32 writes end at 4de50918, so I need to grab 4de[45].* for BSP firmware: /RAMIN32.*4de40000 would get you to the start of the mmiotrace, from my log I could see the RAMIN32 writes end at 4de50918, so I need to grab 4de[45].* for BSP firmware:
$ demmio vd-trace.xz 2>&1 | grep 'RAMIN32 .* 4de[45].* <=' | awk '{ print $7 }' | python -c \ $ demmio -f vdpau-mmiotrace 2>&1 | grep 'RAMIN32 .* 4de[45].* <=' | awk '{ print $7 }' | python -c \
" "
import struct; import sys; fd = open(\"fuc084\", \"wb\"); import struct; import sys; fd = open(\"fuc084\", \"wb\");
for line in sys.stdin: for line in sys.stdin:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment