Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
nouveau
wiki
Commits
80353999
Commit
80353999
authored
Feb 26, 2011
by
93.83.4.186
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No commit message
No commit message
parents
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
NVC0_Firmware.moin
NVC0_Firmware.moin
+35
-0
No files found.
NVC0_Firmware.moin
0 → 100644
View file @
80353999
do an 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)
* run X or a CUDA application
* echo nop > /sys/kernel/debug/tracing/current_tracer
Extract register writes from the trace and put them in binary files:
* 41a1c4 -> fuc41ad
* 4091c4 -> fuc409d
* 41a184 -> fuc41ac
* 409184 -> fuc409c
The important lines in the trace will look like this:
{{{
W 4 433.851950 1 0xXX41a1c4 0x2072614d 0x0 0
}}}
where 0xXX41a1c4 is the register and 0x2072614d the value written
and put them in binary files in /lib/firmware/nouveau/
{{{
#! /bin/sh
# insert correct register in next line
grep XX41a1c4 mydump.txt \
| awk '{print $6}' | grep -oP '(?<=0x).*' | \
python -c \
"
import struct; import sys; fd = open(\"fucXXXX\", \"wb\");
for line in sys.stdin:
fd.write(struct.pack(\"@I\", int(line.rstrip(), 16)))
"
}}}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment