aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2013-12-22 05:31:41 -0500
committerStefan Richter <stefanr@s5r6.in-berlin.de>2014-01-12 12:54:38 -0500
commita9954ce769e2c8b450b00ab2a4e208f447996b2d (patch)
tree6305ff7464f03effbc8b3b1b2568b4cad4990aee
parent7e22e91102c6b9df7c4ae2168910e19d2bb14cd6 (diff)
Documentation/: update FireWire debugging documentation
The old firewire stack is long dead now and a new version firescope has been released with support for current kernels. Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Cc: Rob Landley <rob@landley.net> Cc: Justin P. Mattock <justinmattock@gmail.com> Cc: Bernhard Kaindl <bk@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
-rw-r--r--Documentation/debugging-via-ohci1394.txt24
-rw-r--r--Documentation/power/basic-pm-debugging.txt2
2 files changed, 10 insertions, 16 deletions
diff --git a/Documentation/debugging-via-ohci1394.txt b/Documentation/debugging-via-ohci1394.txt
index 611f5a5499b1..14d194496490 100644
--- a/Documentation/debugging-via-ohci1394.txt
+++ b/Documentation/debugging-via-ohci1394.txt
@@ -36,17 +36,13 @@ available (notebooks) or too slow for extensive debug information (like ACPI).
36Drivers 36Drivers
37------- 37-------
38 38
39The ohci1394 driver in drivers/ieee1394 initializes the OHCI-1394 controllers 39The firewire-ohci driver in drivers/firewire uses filtered physical
40to a working state and enables physical DMA by default for all remote nodes.
41This can be turned off by ohci1394's module parameter phys_dma=0.
42
43The alternative firewire-ohci driver in drivers/firewire uses filtered physical
44DMA by default, which is more secure but not suitable for remote debugging. 40DMA by default, which is more secure but not suitable for remote debugging.
45Compile the driver with CONFIG_FIREWIRE_OHCI_REMOTE_DMA (Kernel hacking menu: 41Compile the driver with CONFIG_FIREWIRE_OHCI_REMOTE_DMA (Kernel hacking menu:
46Remote debugging over FireWire with firewire-ohci) to get unfiltered physical 42Remote debugging over FireWire with firewire-ohci) to get unfiltered physical
47DMA. 43DMA.
48 44
49Because ohci1394 and firewire-ohci depend on the PCI enumeration to be 45Because the firewire-ohci driver depends on the PCI enumeration to be
50completed, an initialization routine which runs pretty early has been 46completed, an initialization routine which runs pretty early has been
51implemented for x86. This routine runs long before console_init() can be 47implemented for x86. This routine runs long before console_init() can be
52called, i.e. before the printk buffer appears on the console. 48called, i.e. before the printk buffer appears on the console.
@@ -64,7 +60,7 @@ be used to view the printk buffer of a remote machine, even with live update.
64 60
65Bernhard Kaindl enhanced firescope to support accessing 64-bit machines 61Bernhard Kaindl enhanced firescope to support accessing 64-bit machines
66from 32-bit firescope and vice versa: 62from 32-bit firescope and vice versa:
67- http://halobates.de/firewire/firescope-0.2.2.tar.bz2 63- http://v3.sk/~lkundrak/firescope/
68 64
69and he implemented fast system dump (alpha version - read README.txt): 65and he implemented fast system dump (alpha version - read README.txt):
70- http://halobates.de/firewire/firedump-0.1.tar.bz2 66- http://halobates.de/firewire/firedump-0.1.tar.bz2
@@ -92,11 +88,11 @@ Step-by-step instructions for using firescope with early OHCI initialization:
92 88
931) Verify that your hardware is supported: 891) Verify that your hardware is supported:
94 90
95 Load the ohci1394 or the fw-ohci module and check your kernel logs. 91 Load the firewire-ohci module and check your kernel logs.
96 You should see a line similar to 92 You should see a line similar to
97 93
98 ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[18] MMIO=[fe9ff800-fe9fffff] 94 firewire_ohci 0000:15:00.1: added OHCI v1.0 device as card 2, 4 IR + 4 IT
99 ... Max Packet=[2048] IR/IT contexts=[4/8] 95 ... contexts, quirks 0x11
100 96
101 when loading the driver. If you have no supported controller, many PCI, 97 when loading the driver. If you have no supported controller, many PCI,
102 CardBus and even some Express cards which are fully compliant to OHCI-1394 98 CardBus and even some Express cards which are fully compliant to OHCI-1394
@@ -113,20 +109,18 @@ Step-by-step instructions for using firescope with early OHCI initialization:
113 109
114 If an driver is running on both machines you should see a line like 110 If an driver is running on both machines you should see a line like
115 111
116 ieee1394: Node added: ID:BUS[0-01:1023] GUID[0090270001b84bba] 112 firewire_core 0000:15:00.1: created device fw1: GUID 00061b0020105917, S400
117 113
118 on both machines in the kernel log when the cable is plugged in 114 on both machines in the kernel log when the cable is plugged in
119 and connects the two machines. 115 and connects the two machines.
120 116
1213) Test physical DMA using firescope: 1173) Test physical DMA using firescope:
122 118
123 On the debug host, 119 On the debug host, make sure that /dev/fw* is accessible,
124 - load the raw1394 module,
125 - make sure that /dev/raw1394 is accessible,
126 then start firescope: 120 then start firescope:
127 121
128 $ firescope 122 $ firescope
129 Port 0 (ohci1394) opened, 2 nodes detected 123 Port 0 (/dev/fw1) opened, 2 nodes detected
130 124
131 FireScope 125 FireScope
132 --------- 126 ---------
diff --git a/Documentation/power/basic-pm-debugging.txt b/Documentation/power/basic-pm-debugging.txt
index e9b54de8fdf7..edeecd447d23 100644
--- a/Documentation/power/basic-pm-debugging.txt
+++ b/Documentation/power/basic-pm-debugging.txt
@@ -172,7 +172,7 @@ you can boot the kernel with the 'no_console_suspend' parameter and try to log
172kernel messages using the serial console. This may provide you with some 172kernel messages using the serial console. This may provide you with some
173information about the reasons of the suspend (resume) failure. Alternatively, 173information about the reasons of the suspend (resume) failure. Alternatively,
174it may be possible to use a FireWire port for debugging with firescope 174it may be possible to use a FireWire port for debugging with firescope
175(ftp://ftp.firstfloor.org/pub/ak/firescope/). On x86 it is also possible to 175(http://v3.sk/~lkundrak/firescope/). On x86 it is also possible to
176use the PM_TRACE mechanism documented in Documentation/power/s2ram.txt . 176use the PM_TRACE mechanism documented in Documentation/power/s2ram.txt .
177 177
1782. Testing suspend to RAM (STR) 1782. Testing suspend to RAM (STR)