>LXR lint.gefragmeny 4bik rel="stlint.gefragmeny 4bik top l="stlinspingfragmenres_ad> rel nspingfragmenres_logo aatic/css/"cume /debugging-via">-ohci1394.txt --el="stlilinspingid="res_pri ajl="stlili >L lined") ad_fra="+pri a=/debugging-via-ohci1394.txt "od)?meth"if(t"gid="pri a_ed")rel li=x_luttragvascrisubmit"gfragmenpri ajel="stli stlilinimgtic/js/lxrng-funcng" pri amage/palt="Pri ajel="stlistlilin/luttra>L lin/ed")el="stlilin/spinel="stlilinspingid="res_savejl="stlili >L lined") ad_fra="+save=/debugging-via-ohci1394.txt "od)?meth"if(t"gid="save_ed")rel li=x_luttragvascrisubmit"gfragmensavejel="stli stlilinimgtic/js/lxrng-funcng" savemage/palt="Savejel="stlistlilin/luttra>L lin/ed")el="stlilin/spinel="stlin/spinel l="stlint.gefragmenres_uggurel nspingfragmenres_vers-virel linaal li=xatic/css/2/"> 1n/debugging-via-ohci1394.txt rel li=x_imgtic/js/lxrng-funcng" lefamage/palt="<< L lined") ad_fra="/debugging-via-ohci1394.txt "od)?meth"d('rel li=x_spingid="ver_lementrel li=x=x_sement+id+'="v"gid="v"g onleRetu="updspl_vers-vi} this 'nux.no/linux+v3.10.2/"> <'s '/"> 's ''s '/debugging-via-ohci1394.txt ');jel="s=x_op_frag; } el"v4 "l liel="v4 3 915"img src="../.sta73 "/spaope3 "spao class="lxr_search">3 9
3 915"input typ4.1hidden" nam4.1navtarget" "v4 4.1">3 915"input typ4.1text" nam4.1search" id.1search">3 915"buttel=typ4.1submit">Search3 915Prefse 15"/a>3 "/spaope 915 5"/divpe 915 5"form ac73 "input typ4.1hidden" nam4.1ajax_lookup" id.1ajax_lookup" "v4 4.1">3 915 5"/formpe3 915 5"div class="headingbottem">5 51"/a>35 52"/a> Using physical DMA provided by OHCI-1394 FireWire controllers for debugging35 53"/a> ---------------------------------------------------------------------------35 54"/a>35 55"/a>Introduc75 56"/a>------------35 57"/a>35 58"/a>Basically all FireWire controllers which are in use today are compliant35 59"/a>to the OHCI-1394 specificaliel=which defines the controller to be a PCI35 op_fa>bus master which uses DMA to offload data transfers from the CPU and has35 11"/a>a "Physical Response Unit" which executes specific requests by employing35 12"/a>PCI-Bus master DMA after applying filters defined by the OHCI-1394 driver.35 13"/a>35 14"/a>Once properly configured, remote machines cao send these requests to35 15"/a>ask the OHCI-1394 controller to perform read and write requests /o35 16"/a>physical system memory and, for read requests, send the result of35 17"/a>the physical memory read back to the requester.35 18"/a>35 19"/a>With that, it is possible to debug issues by reading interesting memory35 2p_fa>localiels such as buffers like the printk buffer or the process table ntas9he process table ntas9he process tabhci1394.L#L11"2" id.1L1" class="line" nam4.1L1">5 51"/a>35 51"/a>35 54"/a>3tlow 4Gchf"class="liaddibld data transfers from the CPU and has3Once pwhsib" nam4.1e" 20" ced data transfers from the CPU and has35 54"/a>3="l9" ca ea"liniop_l"v4 1 2"l liellielliellielliellielliellielliellielliello perfelt"line" r colinawffe1L1mr t am4hntrua-ohci135 51"3a>35 53"/a>> ---------------------print3 bufffails/o/deootD/o/doliellmeces35 54"3a>3tlow 4Gchf"class3"liad35ging-via-ohci1394.tx3#L20"3id.1LToge/a>="l9" ca ea"liniopL1mr t I364"/a>Once pwhsib" nam431e" 23" cedDugging-via-ohci1394.tx2#L16"2id.1Lax_" c "ropeiel=wffe3elt"line3 r colinawffe1L1mr t am3hntro37ta75 54"3a>3eD/o/dene prs94 FireWire cohre5 51"4a>35 53"/a4> --------------------4print43gingTe paivernL19giifginwgin="linebuggintas9buggins/fginwginrs frodrivers9h4 FireWi-via-ohci1394.txt#L19" id.1L19" class="line" nam4.1L4>5 54"/a>>3tlow 4Gchf"class4"liad45gingCompilmehe pbuggintielloCONFIG_FIREWIRE_mr t_REMOTE_e co(Kernelessck/debugnu:-via-ohci1394.tx2#L19"29 id.1L4" class="line" nam4.14L1mr t I464"/a>Once pwhsib" nam441e" 246" nam4ests d.1L19" cmenta7 use todaiellofginwgin="lin)/o/dell undrivers9h4 FireWi-via-ohci1394.txt#L19" id.1L19" class="line" nam4.1L4elt"line4 r colinawffe1L1mr t am4hntro47ginge cg-via-ohci1394.tx2#L19"29 id.1L4" class="line" nam4.14nbaster 4 x86, x86-64"HCI-PowerP4e pri4gging-via-ohci1394.txt#L19" id.1L19" class="line" nam4.1L44">5 54"4a>3_l"v4 1 5"l liellielliellielliel5ielli50l=whdebugnhed,e/ot"line" r colinaroutlie transfrues3prettyoerfelth or eeg-via-ohci1394.tx2#L18"2id.1Lhardw con"line" nhardw c51">5 51"5a>35 53"/a5> --------------------5print5gging-via-ohci1394.txt#L14" id.1L14" class="line" nam4.1L5>5 54"/a5>3eD reqene proCONFIG_PROVIDE_mr te" n_e c_INITo(Kernelessck/debugnu:-via-ohci1394.tx2#L19"29 id.1L4" class="line" nam4.15>5 55"/a>>Introduc7Once pwhsib" nam451e" 256" naquests="line" _dma=erfelquests nta75 54"5a>3_l"v4 1 6"l liellielliellielliel6ielli60ging-via-ohci1394.txt#L8" id.1L8" class="line" nam4.1L8"61">5 51"6a>35 53"/a6> --------------------6print6ggingbnrs fas3eg-via-ohci1394.tx2#L19"29 id.1L4" class="line" nam4.16>5 54"/a6>35 55"/a6>Introduc75 56"/a>>------------35 54"6a>35 51"7a>33 --------------------7print7ggingthe ptransfers froa-o hrnced fmentsymbolght unf="DogdbD"l vmging-:-via-ohci1394.tx2#L19"29 id.1L4" class="line" nam4.17>5 54"/a7>3Introduc7="l9" ca ea"linio7>5 56"/a7>------------33gdbDocuxyh(fginocuxy-0.34)fers uggiunler r (nog-via-ohci1394.tx3#L20"3id.1LToge/a>="l9" ca ea"linio7>5 57"/a>>35 54"7a>35 51"8a>3="l9" ca ea"linio8>5 53"/a8> --------------------8print8ggingtise proe in4 FireWire coo bea h oad insetg-via-ohci1394.tx2#L19"29 id.1L4" class="line" nam4.18>5 54"/a8>35 55"/a8>Introduc7eDDocum-via-ohci1394.tx2#L15"2id.1LMnam4.1Lcrs lie" curre" 8>5 56"/a8>------------35 57"/a8>35 58"/a>>Basically all FireWire e pri88l=whdennecintk b/o/dfulelt"line" r ere in use todass table __bef/d2__fe1L-via-ohci1394.tx2#L15"2id.1LMnam4.1Lcrs lie" curre" 84">5 54"8a>3eg-via-ohci1394.tx2#L19"29 id.1L4" class="line" nam4.19_l"v4 1 9"l liellielliellielliel9ielli90ging-via-ohci1394.txt#L8" id.1L8" class="line" nam4.1L8"91">5 51"9a>3 --------------------9print9gging1) Verify3nd wryourass table isasupefrted:-via-ohci1394.tx2#L19"29 id.1L4" class="line" nam4.19>5 54"/a9>35 55"/a9>Introduc75 56"/a9>------------35 57"/a9>35 58"/a9>Basically all FireWire9e pri98------ ine" nam:bfw=host0:1mr t am4hn1.1 (PCI): IRQ=[18] MMIO=[fe9ff800-fe9fffff]-via-ohci1394.txt#L8" id.1L8" class="line" nam4.1L8"9>5 59"/a>>to the OHCI-1394 specifo/d3b99------ ... Max Packet=[2048] IR/ITntruaexts=[4/8]-via-ohci1394.txt#L8" id.1L8" class="line" nam4.1L8"100">5 op_faa>bus master which uses Diell Diging-via-ohci1394.txt#L19" id.1L19" class="line" nam4.1L101">5 11"/0a>a "Physical Respo01ell D1------ ne n and or he pbuggin. Ifqyou have noasupefrtedntrua-ohci1, m nynPCIg-via-ohci1394.tx2#L13"2id.1Lu" claus master whi raic102">5 12"/0a>PCI-Bus master DMA aft02ell Dd by OH Cs tters/o/devegrsome Expgingayerdliant35 13"/0a>35 14"/0a>Once properly configur04ell D4------co" namsby reerforcesselt"s. Oneltontro" r ed shops have yerdliant3="l9" ca ea"linio105">5 15"/0a>ask the OHCI-1394 cont05ell D5------ debugging, he a75 16"/0a>physical system memory06ell D6------ dows/s caatingco" namsg-via-ohci1394.txt#L18" id.1L18" class="line" nam4.1L107">5 17"/0a>the physical memory re07ell Dgging-via-ohci1394.txt#L8" id.1L8" class="line" nam4.1L8"108">5 18"/0a>35 19"/0a>With that, it is possi09ell Dgging-via-ohci1394.tx3#L20"3id.1LToge/a>="l9" ca ea"linio110">5 op_ffa>bus master which uses DMA 1o offl-- Anyn use todaye pr,roceloor asts /ntrolles 15"a rhich areo/dmechanhich a-via-ohci1394.tx3#L20"3id.1LToge/a>="l9" ca ea"linio111">5 11"/aa>a "Physical Respon1ell 11------ t;" pr dennecintkebugging m t hreg dennecionst(te hreor thme in4-pikebug-via-ohci1394.tx3#L20"3id.1LToge/a>="l9" ca ea"linio112">5 12"//a>PCI-Bus master DMA aftter a11d by OH l.1te 6-pike use todaefrts)rie indog-via-ohci1394.txt#L18" id.1L18" class="line" nam4.1L113">5 13"//a>35 14"//a>Once properly configurred, 114------cIfqanebuggintas ruelior os9eollo5 15"//a>ask the OHCI-1394 conttroll115ging-via-ohci1394.tx3#L20"3id.1LToge/a>="l9" ca ea"linio116">5 16"//a>physical system memoryy and116------ ieeee" n: Nodedadler: ID:BUS[0-01: Dd3] GUID[0090270001b84bba]-via-ohci1394.txt#L8" id.1L8" class="line" nam4.1L8"117">5 17"//a>the physical memory reead b11gging-via-ohci1394.txt#L8" id.1L8" class="line" nam4.1L8"118">5 18"//a>35 19"//a>With that, it is possiible 119------ /o/dcenneciref="Dtwoo5 2p_1fa>localiels such as buf1fers 12iging-via-ohci1394.txt#L19" id.1L19" class="line" nam4.1L1L1">5 51"1/a>35 12"/aa>PCI-Bus master DMA afteer a12augging-via-ohci1394.t#L12"2id.1LRetriev to a fulss="line1al als bu1ordsuchf" iMB/sch aam4he1 prin12-------cOn he png memhostg-via-ohci1394.tx2#L13"2id.1Lu" claus master whi raic1L4">5 54"1/a>35 15"/er17"/a>tlow 4Gchf"class1="lia125------cccccc- mak ther and wrid.v//awam4hnf>35 16"/A64"/a>Once pwhsib" nam41.1e" 126------ te n start fginscope:-via-ohci1394.tx2#L19"29 id.1L4" class="line" nam4.1127">5 17"/" r colinawffe1L1mr t am14hntr12gging-via-ohci1394.txt#L8" id.1L8" class="line" nam4.1L8"1onbaster 1t x86, x86-64"HCI-PowerP1Ce pr128------cccccc$ fginscope-via-ohci1394.txt#L8" id.1L8" class="line" nam4.1L8"1o9">5 19"//a>35 51"13a>35 13"/aa>35 54"13a>35 15"/3r17"/a>tlow 4Gchf"class13"lia135------cccccc[Ctrl-T]dchooocum.1tex-via-ohci1394.txt#L6" id.1L6" class="line" nam4.1L6"136">5 16"/364"/a>Once pwhsib" nam4131e" 136------cccccc[Ctrl-H]fe1f>3ugnu-via-ohci1394.txt#L6" id.1L6" class="line" nam4.1L6"137">5 17"/3 r colinawffe1L1mr t am13hntr137ta7<--cccccc[Ctrl-Q] quix-via-ohci1394.txt#L6" id.1L6" class="line" nam4.1L6"13nbaster 13 x86, x86-64"HCI-PowerP13e pr13gging-via-ohci1394.txt#L19" id.1L19" class="line" nam4.1L134">5 54"13a>35 51"14a>35 53"/a14> --------------------14prin143------cccccc 1: ffc1, uuir: 00279000 ba4bb801-via-ohci1394.txt#L6" id.1L6" class="line" nam4.1L6"144">5 14"/aa>Once properly configureo/d214gging-via-ohci1394.tx2#L15"2id.1LMnam4.1Lcrs lie" curre" 14inli act14r17"/a>tlow 4Gchf"class14"lia145------cBeslles te p[LOCAL] nodeby reeus" show /ooliellnode iellrut err2bugessageg-via-ohci1394.tx2#L19"29 id.1L4" class="line" nam4.114L1mr t I1464"/a>Once pwhsib" nam4141e" 146" na-via-ohci1394.tx2#L19"29 id.1L4" class="line" nam4.1147">5 17"/4 r colinawffe1L1mr t am14hntr147gingm)/vpep href/o/debugging ielloerfeltmr t am4hn"line" r colin:-via-ohci1394.tx2#L19"29 id.1L4" class="line" nam4.114nbaster 14 x86, x86-64"HCI-PowerP14e pr14gging-via-ohci1394.txt#L19" id.1L19" class="line" nam4.1L144">5 54"14a>3_l"v4 1 15"l liellielliellielliel15iell15iging-via-ohci1394.txt#L19" id.1L19" class="line" nam4.1L151">5 51"15a>35 53"/a15> --------------------15prin153------cene prdebugg"lstally reos9he p5 54"/a15>35 55"/a1>>Introduc7Once pwhsib" nam4151e" 156" na-via-ohci1394.tx2#L19"29 id.1L4" class="line" nam4.115elt"line15 r colinawffe1L1mr t am15hntr157------cCopyahe pS" nam.mapmeffe1L1kerneleebud.1L19edto/dhe png memhostt(te mhost-via-ohci1394.tx2#L15"2id.1LMnam4.1Lcrs lie" curre" 15nbaster 15 x86, x86-64"HCI-PowerP15e pr158------ctransfis/cenneciedto/dhe png me9edt5 54"15a>3="l9" ca ea"linio1>_l"v4 1 16"l liellielliellielliel16iell160ging5) m4,1L1" clatable ntas9he procc/f6/c00:-via-ohci1394.tx2#L19"29 id.1L4" class="line" nam4.1161">5 51"16a>3 --------------------16prin163------chosttand e requeootDhe png me9edt5 54"/a16>35 55"/a16>Introduc7="l9" ca ea"linio166">5 16"/aa>physical system memory 1e" 166------cThen,eos9he pd.1LRetrimhostg rue fginscope,35 54"16a>3="l9" ca ea"linio17_l"v4 1 17"l liellielliellielliel17iell17 offl-- Note: -Apautorcolich aretta hesto/dhe pfgisstnon-buggl node. Ireos arworkg-via-ohci1394.txt#L11" id.1L11" class="line" nam4.1L171">5 51"17a>3 --------------------17prin173------cAthe Oha" clastta hedto/dhe png memm.1tex, ppess Ctrl-Ds33eno/dr /o/dtex ag-via-ohci1394.txt#L16" id.1L16" class="line" nam4.1L17>5 55"/a17>Introduc7edol9giiview effrecxt#lkernelegessaged2buggedeos9he pd.1LRmm.1texg-via-ohci1394.tx2#L19"29 id.1L4" class="line" nam4.1176">5 16"/7>------------35 17"/aa>the physical memory reahntr177------cCallyquestsfginscope -hquests ntatex o/d2bona hrcolinaoe fginscope'shra13s2=g-via-ohci1394.txt#L18" id.1L18" class="line" nam4.1L17nbaster 17 x86, x86-64"HCI-PowerP17e pr17gging-via-ohci1394.txt#L19" id.1L19" class="line" nam4.1L174">5 54"17a>35 51"18a>3 --------------------18prin18ggingd2bugginpf>35 54"/a18>3Introduc7 Te prri clch LXR softable nyahe pLXR uggiunltyging,fe1f>3experi4.t#Ll ginslinanyalxr@ging-.noging. id.1fil_conttroduc7subfooter"> lxr.ging-.no kindlymhostef="DoRedpill Linppo ASging,fntrolleocefhLing-pugnsult cla/o/dopxrcolins services siachi1995. id.1file_/bodyil_/htmlar