Skip to content

RFC firewire: interface to remote memory (mem1394)

Johannes Berg lkml 1 version In review

Get series with b4
b4 am 1138919238.3621.12.camel@localhost

Versions newest first

  1. v1 RFC Latest4 patches 20 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4firewire: node interfacedrivers/ieee1394/nodemgr.c drivers/ieee1394/nodemgr.h+16 -00 replies
2/4firewire: dynamic cdev allocation below firewire majordrivers/ieee1394/ieee1394_core.c drivers/ieee1394/ieee1394_core.h+73 -17 replies
3/4firewire: unconditionally export hpsb_send_packet_and_waitdrivers/ieee1394/ieee1394_core.c+1 -12 replies
4/4firewire: add mem1394drivers/ieee1394/Kconfig drivers/ieee1394/Makefile drivers/ieee1394/mem1394.c +1 more+315 -011 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/4] firewire: interface to remote memory (mem1394)

The following series of four patches adds the possiblity for creating device nodes for each node attached to the firewire bus and accessing them (currently read-only) which yields access to the node's RAM, if supported. This is useful for peeking into machines during debugging (obviously only if you can attach a firewire cable). This is already supported via the raw1394 interface, but surfacing this like /dev/mem is advantageous because then user-space tools can work without modification.

mem1394 itself is currently a bit limited and lacking on the error-checking, it will be improved but I wanted to get some comments on the current patches too. Write support will also be added.

The node interface and dynamic character device allocation are useful on their own if another layer is ever introduced -- which has been under discussion once a while to make something similar to raw1394 that gives access only to certain nodes to separate users.

If you want to test this add a udev rule like the following:
KERNEL=="fwmem-[0-9]*", NAME="fwmem-%s{device/guid}"
and then use
dd if=/dev/fwmem-0x<GUID> bs=1K count=1024 of=/tmp/first-megabyte
to, for example, read the targets first megabyte of memory.

The patches (will be posted as follow-ups):
1/4: node interface
2/4: dynamic cdev allocation below firewire major 3/4: unconditionally export hpsb_send_packet_and_wait 4/4: add mem1394

Comments would be appreciated.

Thanks,
Johannes