linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Faking MMIO ops? Fooling a driver
@ 2011-06-16 14:44 Rafał Miłecki
  2011-06-16 17:20 ` Rafał Miłecki
  0 siblings, 1 reply; 7+ messages in thread
From: Rafał Miłecki @ 2011-06-16 14:44 UTC (permalink / raw)
  To: linux-wireless, Linux Kernel Mailing List

I analyze MMIO dumps of closed source driver and found such a place:
W 2 3855.911536 9 0xb06003fc 0x810 0x0 0
R 2 3855.911540 9 0xb06003fe 0x0 0x0 0
W 2 3855.911541 9 0xb06003fe 0x0 0x0 0

After translation:
 phy_read(0x0810) -> 0x0000
phy_write(0x0810) <- 0x0000

So it's quite obvious, the driver is reading PHY register, masking it
and writing masked value. Unfortunately from just looking at such
place we can not guess the mask driver uses.

I'd like to fake value read from 0xb06003fe to be 0xFFFF.
Is there some ready method for doing such a trick?

Dump comes from Kernel hacking → Tracers → MMIO and ndiswrapper.

-- 
Rafał

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-06-16 21:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-16 14:44 Faking MMIO ops? Fooling a driver Rafał Miłecki
2011-06-16 17:20 ` Rafał Miłecki
2011-06-16 18:07   ` Larry Finger
2011-06-16 19:19     ` Rafał Miłecki
2011-06-16 19:34       ` Pekka Paalanen
2011-06-16 21:47         ` Rafał Miłecki
2011-06-16 21:53           ` Rafał Miłecki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).