Hello, Is there anyway to trace (capture) reads and writes to a mmio space in Linux? A utility program maybe?
On Wed, Mar 4, 2009 at 2:23 PM, Joseph Smith joe@settoplinux.org wrote:
Hello, Is there anyway to trace (capture) reads and writes to a mmio space in Linux? A utility program maybe?
tell me more. what is the program, can you run it under ptrace, etc. What's it do?
ron
On Wed, 4 Mar 2009 14:25:03 -0800, ron minnich rminnich@gmail.com wrote:
On Wed, Mar 4, 2009 at 2:23 PM, Joseph Smith joe@settoplinux.org wrote:
Hello, Is there anyway to trace (capture) reads and writes to a mmio space in Linux? A utility program maybe?
tell me more. what is the program, can you run it under ptrace, etc. What's it do?
I more specifically, I can dump the mmio space before and after a driver is implimented, but there are certian registers that get programmed in a specific order to give the end result. I need to know what registers get programmed in what order, does that make sense?
Am 04.03.2009 23:23, schrieb Joseph Smith:
Hello, Is there anyway to trace (capture) reads and writes to a mmio space in Linux? A utility program maybe?
I think that's what the renouveau project does, so they should have a tool for that. It should work by mapping the mmio area away, then catching all accesses before passing them trough.
Regards, Patrick Georgi
On Wed, 04 Mar 2009 23:27:07 +0100, Patrick Georgi patrick@georgi-clan.de wrote:
Am 04.03.2009 23:23, schrieb Joseph Smith:
Hello, Is there anyway to trace (capture) reads and writes to a mmio space in Linux? A utility program maybe?
I think that's what the renouveau project does, so they should have a tool for that. It should work by mapping the mmio area away, then catching all accesses before passing them trough.
Thanks Patrick, I will check it out. Does it catch reads as well as writes?
On Wed, 04 Mar 2009 17:37:50 -0500, Joseph Smith joe@settoplinux.org wrote:
On Wed, 04 Mar 2009 23:27:07 +0100, Patrick Georgi patrick@georgi-clan.de wrote:
Am 04.03.2009 23:23, schrieb Joseph Smith:
Hello, Is there anyway to trace (capture) reads and writes to a mmio space in Linux? A utility program maybe?
I think that's what the renouveau project does, so they should have a tool for that. It should work by mapping the mmio area away, then catching all accesses before passing them trough.
Thanks Patrick, I will check it out. Does it catch reads as well as writes?
Ahhh, thanks again Patrick!
http://nouveau.freedesktop.org/wiki/MmioTrace
This will do exactly what I want it to :-) Yahoo, this is going to crack the mystery wide open!!!
On Wed, 04 Mar 2009 17:48:55 -0500, Joseph Smith joe@settoplinux.org wrote:
On Wed, 04 Mar 2009 17:37:50 -0500, Joseph Smith joe@settoplinux.org wrote:
On Wed, 04 Mar 2009 23:27:07 +0100, Patrick Georgi patrick@georgi-clan.de wrote:
Am 04.03.2009 23:23, schrieb Joseph Smith:
Hello, Is there anyway to trace (capture) reads and writes to a mmio space in Linux? A utility program maybe?
I think that's what the renouveau project does, so they should have a tool for that. It should work by mapping the mmio area away, then catching all
accesses
before passing them trough.
Thanks Patrick, I will check it out. Does it catch reads as well as writes?
Ahhh, thanks again Patrick!
hmmm :-( I need to do this on a older kernel 2.6.10 and mmiotrace does not support older kernels....
Any other suggestions?
-----Original Message----- From: coreboot-bounces+mylesgw=gmail.com@coreboot.org [mailto:coreboot- bounces+mylesgw=gmail.com@coreboot.org] On Behalf Of Joseph Smith Sent: Wednesday, March 04, 2009 6:13 PM To: Patrick Georgi; coreboot Subject: Re: [coreboot] Trace MMIO Read/Write
On Wed, 04 Mar 2009 17:48:55 -0500, Joseph Smith joe@settoplinux.org wrote:
On Wed, 04 Mar 2009 17:37:50 -0500, Joseph Smith joe@settoplinux.org wrote:
On Wed, 04 Mar 2009 23:27:07 +0100, Patrick Georgi patrick@georgi-clan.de wrote:
Am 04.03.2009 23:23, schrieb Joseph Smith:
Hello, Is there anyway to trace (capture) reads and writes to a mmio space
in
Linux? A utility program maybe?
I think that's what the renouveau project does, so they should have a tool for that. It should work by mapping the mmio area away, then catching all
accesses
before passing them trough.
Thanks Patrick, I will check it out. Does it catch reads as well as writes?
Ahhh, thanks again Patrick!
hmmm :-( I need to do this on a older kernel 2.6.10 and mmiotrace does not support older kernels....
Any other suggestions?
Does it run in a simulator or an emulator? SimNow or Qemu could log them for you.
Myles
On Wed, 4 Mar 2009 20:44:38 -0700, "Myles Watson" mylesgw@gmail.com wrote:
-----Original Message----- From: coreboot-bounces+mylesgw=gmail.com@coreboot.org [mailto:coreboot- bounces+mylesgw=gmail.com@coreboot.org] On Behalf Of Joseph Smith Sent: Wednesday, March 04, 2009 6:13 PM To: Patrick Georgi; coreboot Subject: Re: [coreboot] Trace MMIO Read/Write
On Wed, 04 Mar 2009 17:48:55 -0500, Joseph Smith joe@settoplinux.org wrote:
On Wed, 04 Mar 2009 17:37:50 -0500, Joseph Smith joe@settoplinux.org wrote:
On Wed, 04 Mar 2009 23:27:07 +0100, Patrick Georgi patrick@georgi-clan.de wrote:
Am 04.03.2009 23:23, schrieb Joseph Smith:
Hello, Is there anyway to trace (capture) reads and writes to a mmio space
in
Linux? A utility program maybe?
I think that's what the renouveau project does, so they should have
a
tool for that. It should work by mapping the mmio area away, then catching all
accesses
before passing them trough.
Thanks Patrick, I will check it out. Does it catch reads as well as writes?
Ahhh, thanks again Patrick!
hmmm :-( I need to do this on a older kernel 2.6.10 and mmiotrace does not
support
older kernels....
Any other suggestions?
Does it run in a simulator or an emulator? SimNow or Qemu could log them for you.
Can they simulate a Intel onboard graphics adapter?
-----Original Message----- From: Joseph Smith [mailto:joe@settoplinux.org] Sent: Wednesday, March 04, 2009 9:14 PM To: Myles Watson Cc: coreboot Subject: RE: [coreboot] Trace MMIO Read/Write
On Wed, 4 Mar 2009 20:44:38 -0700, "Myles Watson" mylesgw@gmail.com wrote:
-----Original Message----- From: coreboot-bounces+mylesgw=gmail.com@coreboot.org [mailto:coreboot- bounces+mylesgw=gmail.com@coreboot.org] On Behalf Of Joseph Smith Sent: Wednesday, March 04, 2009 6:13 PM To: Patrick Georgi; coreboot Subject: Re: [coreboot] Trace MMIO Read/Write
On Wed, 04 Mar 2009 17:48:55 -0500, Joseph Smith joe@settoplinux.org wrote:
On Wed, 04 Mar 2009 17:37:50 -0500, Joseph Smith
wrote:
On Wed, 04 Mar 2009 23:27:07 +0100, Patrick Georgi patrick@georgi-clan.de wrote:
Am 04.03.2009 23:23, schrieb Joseph Smith: > Hello, > Is there anyway to trace (capture) reads and writes to a mmio
space
in
> Linux? A utility program maybe? > I think that's what the renouveau project does, so they should have
a
tool for that. It should work by mapping the mmio area away, then catching all
accesses
before passing them trough.
Thanks Patrick, I will check it out. Does it catch reads as well as writes?
Ahhh, thanks again Patrick!
hmmm :-( I need to do this on a older kernel 2.6.10 and mmiotrace does not
support
older kernels....
Any other suggestions?
Does it run in a simulator or an emulator? SimNow or Qemu could log
them
for you.
Can they simulate a Intel onboard graphics adapter?
Probably not easily. Is the driver not open-source? I'm wondering why you couldn't recompile it for the newer kernel if you really want to use MmioTrace.
Thanks, Myles
I need to do this on a older kernel 2.6.10 and mmiotrace does not
support
older kernels....
Any other suggestions?
Does it run in a simulator or an emulator? SimNow or Qemu could log
them
for you.
Can they simulate a Intel onboard graphics adapter?
Probably not easily. Is the driver not open-source? I'm wondering why you couldn't recompile it for the newer kernel if you really want to use MmioTrace.
That is were the problem lies. It is a prebuilt kernel module (*.ko) for 2.6.10... The source is not available. That is why I need to do a mmio trace to find out exactly what it is doing. If I had the source I would not need the trace. I wonder if I could backwards hack MmioTrace to work with the 2.6.10 kernel?