Commit 22cbb0b0 authored by 86.21.6.232's avatar 86.21.6.232

No commit message

No commit message
parent 95617774
do an [[MmioTrace|mmio trace]] of the blob (version < 270.xx preferred)
* activate Kernel Hacking -> Tracers -> Memory mapped IO tracing
* mount -t debugfs debugfs /sys/kernel/debug (if not mounted already)
* echo mmiotrace > /sys/kernel/debug/tracing/current_tracer
* cat /sys/kernel/debug/tracing/trace_pipe > mydump.txt &
* make sure the blob is not initialized (rmmod nvidia)
* Ensure that your kernel has MMIO tracing enabled
{{{
Kernel Hacking -> Tracers -> Memory mapped IO tracing
}}}
* Boot up the system, without loading the blob or nouveau
* Mount debugfs and start the tracer
{{{
mount -t debugfs debugfs /sys/kernel/debug
echo mmiotrace > /sys/kernel/debug/tracing/current_tracer
cat /sys/kernel/debug/tracing/trace_pipe > mydump.txt &
}}}
* Load the blob kernel module (insmod nvidia)
* run X or a CUDA application
* echo nop > /sys/kernel/debug/tracing/current_tracer
* Stop the tracer
{{{
echo nop > /sys/kernel/debug/tracing/current_tracer
}}}
Extract register writes from the trace and put them in binary files:
* 41a1c4 -> fuc41ad
......
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