| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590 | <hr/>	<h1 id="todo_cb5926_paulmenzel">Coreboot 5926 test for Paul Menzel</h1>		<p>			Coreboot log when running Video BIOS (grub payload) and <a href="http://review.coreboot.org/5926">http://review.coreboot.org/5926</a>.		</p>		<p>			Result (ThinkPad X60): <a href="dumps/coreboot_5296_oprom_grub_cbmemc">cbmem -c output</a><br/>			Config used on the X60 (grub payload and vbios): <a href="dumps/coreboot_5926_oprom_grub_config">.config</a>		</p>	<h1 id="todo_cb5893_paulmenzel">Coreboot 5893 test for Paul Menzel</h1>		<p>			<a href="dumps/x60_5893_vbios.tar.gz">With VBIOS</a><br/>			<a href="dumps/x60_5893_native.tar.gz">With native graphics</a> (replay code).		</p>		<p>			Here is a crash dump from running native graphics (): <a href="dumps/x60_5893_native_crashdump">/sys/class/drm/card0/error</a>.		</p><hr/><h1 id="i945_stolenmem_fix">early attempt: i945 stolen memory fix (for kernel 3.12/later) (this attempt failed)</h1><p>Back then we had no idea that GTT address was incorrect, and we had no idea what was causing the issue.<pre>Note: see <a href="#i945_312fix">this fix</a> for the initial fix that was found.<b><font color="red">not working yet</font></b><a href="http://review.coreboot.org/#/c/5885/" >http://review.coreboot.org/#/c/5885/</a>untested. will test this.checkout 5320. cherry pick 5345 on top.mannually apply changes from 5884/1 and 5885/3make backlight changes as in #x60_native_notes and #t60_native_notestest this on X60 and T60.If it works, manually apply 5885 to 5320 alone and then push with 5320 as dependency.Rebase that new change ID, and rebase 5345 (pushing it as new change ID).Manually merge the rebased 5345 into the new patch, and then push that.Boot with grub (obviosly!) and kernel 3.14.4 as before (with 17fec8a left untouched!).Note: tidy these notes! (so others can follow)get those logs:Make a copy of these files: * /var/log/dmesg * /var/log/kern.log * /var/log/Xorg.0.log * /var/log/Xorg.0.log.old (If you have to restart gdm) * /proc/ioports * /proc/iomemRecord these outputs: * sudo intel_reg_dumper * uname -r * lspci -vvnnDo this first: <b>$ sudo modprobe msr</b> (then do as below): * sudo inteltool -a       --> in coreboot/src/util/inteltoolMake a copy of: * coreboot serial output log. --> Get it from serial port, or get it like that: --> <b>./cbmem -c</b> (under coreboot/util/cbmem)Output from source tree:$ git log -p | head -150       (localhost/x60gitlog)$ git diff								(localhost/x60gitdiff)Make a copy of the .config from coreboot source tree ^										(localhost/x60config)3D acceleration test (test if 3.12+/stolenmem issue is fixed): - Run openarena (1024x768 res), say if it works. (note: Press tilde, do <b>/cg_drawfps 1</b>) - Run tuxcart (1024x768 res), say if it works. - Run neverball (1024x768 res), say if it works. - Run glxgears, report what you see.Some results on the X60 (3D still doesn't work, openarena and tuxkart were slow): <a href="dumps/5885_logs.tar.gz">5885_logs.tar.gz</a>git diff: http://paste.debian.net/102618/In src/northbridge/intel/i945/raminit.cPaulePanter: vimuser: In your next step could you please addPaulePanter: printk(BIOS_DEBUG, "BSM = 0x%08x\n", pci_read_config32(PCI_DEV(0,2,0), BSM));PaulePanter: beforePaulePanter: pci_write_config32(PCI_DEV(0,2,0), BSM, (tolud * MiB - 64 * MiB) & 0xfff00000);doneAlso removing the #if statement around those 2 lines above.Also adding it after that line aswell, per advice from PaulePanterSome new results on the X60 after doing the above (3D still doesn't work, openarena and tuxkart were slow): <a href="dumps/5885_logs_2.tar.gz">5885_logs_2.tar.gz</a>PaulePanter: vimuser: No idea if you can write with `devmem2`. Never used it.PaulePanter: vimuser: It would indeed be interesting to know what value the BSM has with the vendor BIOS.Note to self: do that.PaulePanter said: I have `& 0xfff00000` and phcoder uses `& 0xfffff000`, so it looks like I have the ordering incorrect.Look at that discussion:http://lists.freedesktop.org/archives/intel-gfx/2014-May/046309.htmlhttp://lists.freedesktop.org/archives/intel-gfx/2014-May/046310.html--> if BSM register is read-only, then is there something els ethat we might have missed?</pre></p>	<h2><a name="kernel312bugs">kernel 3.12+ bugs (X60/T60 native init)</a><a href="#pagetop">Back to top of page</a></h2>	<p>	Some further notes to refer to later (WARNING: long! These are collected IRC logs for later reference. Most of the	logs are not useful or relevant, and will be deleted later):<pre>Note: see <a href="#i945_312fix">this fix</a> for the initial fix that was found.see: <a href="http://www.coreboot.org/Board:lenovo/x60#Problems_in_native_graphics_code_exposed_by_recent_kernels" >http://www.coreboot.org/Board:lenovo/x60#Problems_in_native_graphics_code_exposed_by_recent_kernels</a>see: <a href="http://www.coreboot.org/Lenovo_x60x_vgainit_todos" >http://www.coreboot.org/Lenovo_x60x_vgainit_todos</a>Non-coreboot (not even i945) platforms also have issues with 3.12+see: <a href="https://bugs.freedesktop.org/show_bug.cgi?id=76520" >https://bugs.freedesktop.org/show_bug.cgi?id=76520</a>Is this relevant?: <a href="http://lists.freedesktop.org/archives/intel-gfx/2014-February/040771.html" >http://lists.freedesktop.org/archives/intel-gfx/2014-February/040771.html</a>note: read below.and note: on later kernels they also can't seem to init the GPU properly without vbios or native gfx, whereas older kernels could.PaulePanter: damo22: There is also a Linux and coreboot native graphics incompatibility documented in the Wiki (by samnob).PaulePanter: http://www.coreboot.org/Board:lenovo/x60#Problems_in_native_graphics_code_exposed_by_recent_kernelsvimuser: PaulePanter, that only exists with kernel 3.12 and above. PaulePanter: vimuser: Do you have time to report it to the Freedesktop Bugzilla?funfunctor:  patrickg: I think its related to recent changes we had done to toolchain.invimuser: Yes. What info do you need ?PaulePanter: vimuser: It’s a regressions and these are normally not allowed with Linux’ no regression policy.vimuser: What do you think would happen then, after I made that report?PaulePanter: vimuser: https://01.org/linuxgraphics/documentation/how-report-bugsvimuser: You can look at it 2 ways: kernel broke, or kernel fixed a bug which broke coreboot.PaulePanter: vimuser: Hopefully they’ll fix it.vimuser: so: either coreboot is broken, or kernel is broken. vimuser: PaulePanter, kernel 3.12+ should work just fine on lenovo bios, so my opinion is that the native gfx in coreboot is what's buggy.PaulePanter: vimuser: You can also check with the developers in #intel-gfx. But first report the bug so you can reference it.vimuser: Do you think I should just copy what's in the coreboot wiki already?PaulePanter: vimuser: Does not matter. If it worked before 3.12, it should work afterward.vimuser: It seems pretty complete (as far as reporting it is concerned).vimuser: PaulePanter, my basic point is that I'm on the fence as to whether this is linux's problem, coreboot's problem, or both.PaulePanter: vimuser: That would probably help. If they need other information, the Intel folks will ask you for it. Daniel Vetter and the other Intel folks are very responsive in my experience.vimuser: So you think then that there would be a patch specifically for i915 + coreboot_native_initPaulePanter: vimuser: I do not know. They hopefully figure it out.vimuser: PaulePanter, I will do it.PaulePanter: vimuser: And as I wrote, it is a regression. As far as I understood it, even if the firmware/hardware is broken, Linux should not introduce regressions.vimuser: PaulePanter: at the very least, it might offer a new perspective. this whole issue has been very one-sided so far: it has only been coreboot community that talks about it. It has probably gone unobserved in kernel/intel community.vimuser: The intel/kernel people might even be able to (easily) spot a fix for coreboot.vimuser: I hadn't even considered this possibility before, I thought it was only a coreboot problem. Talking to those other people definitely makes sense.PaulePanter of #coreboot made the initial report to Freedesktop tracker:PaulePanter: vimuser: Hi. Did you report the Linux regression to the Freedesktop bug tracker?PaulePanter: vimuser: Understood. Do you have an account for the Freedesktop bug tracker?vimuser: PaulePanter: I do not have an account for Freedesktop bug tracker, but I think I could get one?PaulePanter: vimuser: Yes, it is easy to register.vimuser: PaulePanter, there's reporting and there's reporting properly; I want to compile my report first, before I make it. PaulePanter: vimuser: As you do not know what they need, I think it is the wrong approach.vimuser: Since the people that I am reporting to will be unfamiliar with the issue, and might not even know about coreboot, or only vaguely know.PaulePanter: vimuser: I’ll report the issue and give you the URL. You can then add to it.vimuser: PaulePanter: Good point. I can make it brief describing it as best I can, and then I can answer any specific questions.vimuser: PaulePanter, you can use my notes at http://libreboot.org/howto.html#kernel312bugs if you like, it's a collection of insights plus links to those pages on the coreboot wiki that talk about the issue.vimuser: (in case there is anything in the notes that might be helpful)vimuser: PaulePanter, are the intel i915 devs of freedesktop also the ones working on the i915 code in kernel.org? (I'm slightly confused about this)THE REPORT:PaulePanter: vimuser: The Wiki talks about crashes.PaulePanter: vimuser: https://bugs.freedesktop.org/show_bug.cgi?id=79038PaulePanter: vimuser: The Wiki talks about crashes.PaulePanter: vimuser: https://bugs.freedesktop.org/show_bug.cgi?id=79038vimuser: PaulePanter, thanks. I'll add to it and help any way I can.PaulePanter: vimuser: Add `drm.debug=0x06` to the Linux command line (probably configuring in GRUB) and please add `/var/log/dmesg` to the bug report. (Or the output of `dmesg`.)PaulePanter: vimuser: They also need `/var/log/Xorg.0.log` and your distribution and exact Linux kernel version `uname -r`.vimuser: PaulePanter: there are basically 2 versions of native init: 3998 (based on replay, only works on X60 with XGA screen - also what libreboot currently uses) and 5320 (much better, works on more screens, 5345 can use it to enable T60 - not yet in libreboot)vimuser: PaulePanter: should I do this test on both versions? (libreboot and coreboot+5320+5345)vimuser: PaulePanter: should I do this test on both versions? (libreboot and coreboot+5320+5345)vimuser: PaulePanter: nonetheless, I will do both, and make that report for you now.vimuser: Do I do this on pre-3.12 kernel or 3.12+ ?PaulePanter: vimuser: I’d say Linux 3.12+.PaulePanter: vimuser: Do you know which coreboot patches samnob used?vimuser: PaulePanter: very well. http://jxself.org/linux-libre has latest kernelsvimuser: I will install that.vimuser: I do not know what coreboot patches samnob used. Probably 3998 (this was a long time ago).vimuser: Definitely change ID 3998 (review.coreboot.org gerrit): http://review.coreboot.org/#/c/3998/vimuser: PaulePanter: here is the information that you requested: http://libreboot.org/logs/3998_Xorg.0.log http://libreboot.org/logs/3998_dmesg http://libreboot.org/logs/3998_unamevimuser: PaulePanter: that bug in the report doesn't happen with the above -- it's an older kernel. vimuser: Do they want me to try 3.12+ instead?vimuser: PaulePanter: you should also give them these links to the lastest code for native graphics:vimuser: http://review.coreboot.org/#/c/5320/PaulePanter: vimuser: Thank you for getting the logs. Please register and upload the files yourself.vimuser: Yes, ok. I will also get the same logs again for a kernel that is broken (3.12+)vimuser: I will repeat both processes again for coreboot+5320+5345, as currently I am getting these on libreboot. vimuser: More logs can't hurt, the worst that can happen is they will ignore the ones they don't need. I want to make sure they have everything they need.samnob: vimuser: samnoble.org/thinkpad/kernel/linux-image-3.14.4-gnuowen_1_i386.deb and http://samnoble.org/thinkpad/kernel/linux-image-3.14.4-gnu-stolenmem-owen_1_i386.deb latest linux-libre without and with 17fec8a reverted.PaulePanter: vimuser: Thanks.vimuser: samnob, thanks.vimuser: but we are trying to get kernel 3.12+ to work without users having to patch itvimuser: either by fixing coreboot, or patching around coreboot in the kernelvimuser: eventually bothsamnob: Yes, just providing you kernels for the bug.vimuser: ah right. vimuser: with and without. that is useful. i was going to use jxself kernels. that is useful.vimuser: I'll use yours then ;)vimuser: dpkg -i ?samnob: Though based on the devs comment in the bug I think you're hope of the driver working around it is unlikely.vimuser: can't hurt to trysamnob: dpkg -i will work fine.samnob: (though gdebi is more fun.)samnob: there's a version symlink_hook in that same folder that is handy for grub2 payload users too.vimuser: samnob we think it might be classed under linux "no regression" policyvimuser: PaulePanter's ideasamnob: can't hurt to try :)Here is the debugging results then: <a href="coreboot_native_3.12_bug.tar.gz" >coreboot_native_3.12_bug.tar.gz</a>---http://undeadly.org/cgi?action=article&sid=20131120060004 was suggested(also refer back te the datasheet)----I have since been alerted to this bug report, which is unrelated to usbut shows that 3.12 also breaks later systems on Lenovo BIOS (as far as I can tell):https://bugzilla.kernel.org/show_bug.cgi?id=71391--PaulePanter:  vimuser: If you run the Lenovo X60 right now, could you just paste it now. It should not change between all your tests.PaulePanter:  vimuser: It would really be helpful to have it now.vimuser: My workstation X60 is running coreboot+5320 (and modification for backlight control support)vimuser: Shall I take iomem output from that?vimuser: kernel 3.2 is in usePaulePanter:  vimuser: Yes. Please.vimuser: For you record:vimuser: $ uname -rvimuser: 3.2.0-56-generic-paevimuser: PaulePanter: http://paste.debian.net/101404/PaulePanter linked to this:http://www.intel.com/content/dam/www/public/us/en/documents/datasheets/3rd-gen-core-desktop-vol-2-datasheet.pdf---------------PaulePanter: patrickg: As the resident i945 export, do you know where the register GBSM (Graphics Base of Stolen Memory) should be set?PaulePanter: patrickg: Is the VGA Option ROM responsible for that?PaulePanter: damo22: You do not see any problems with the VGA Option ROM, right?damo22: PaulePanter: i am running vga rom with updated kernel (after the patch) and experience no problems with videoPaulePanter: damo22: Thank you for the confirmation.PaulePanter: src/northbridge/intel/i945/northbridge.c:       printk(BIOS_SPEW, "Base of stolen memory: 0x%08x\n",patrickg:  PaulePanter: what's that, 0x5c?patrickg:  h, noPaulePanter: + /* Almost universally we can find the Graphics Base of Stolen MemoryPaulePanter: + * at offset 0x5c in the igfx configuration space. On a few (desktop)patrickg:  PaulePanter: I think we never configured that but left it to vgabiospatrickg:  PaulePanter: we only configured the RAM sidePaulePanter: patrickg: Thanks. So with native VGA init, coreboot needs to do that too.<b><font color="red">damo22: we just need to write the gfxstolen base to gma config space at 0x5c</font></b>damo22: that should fix itdamo22: because then the kernel will try to read thatdamo22: hmm but if the generation of the gma is not >=3 it will assume it is above top of memorypatrickg:  well, it isdamo22: patrickg: do you happen to know if the x60 gma is generation 2 or 3? how do i find outPaulePanter: damo22: lspci ?damo22: (rev 0x)?PaulePanter: lspci -nndamo22: never mind i will ctags the kernel treepatrickg:  but bblpatrickg:  damo22: code.metager.de applies openGrok on tons of open source projects. probably to linux, toodamo22: thanks patrickgdamo22: okay, i945g/gm is generation 3damo22: its nothing to do with the lscpi revisionPaulePanter: damo22: How did you check that?PaulePanter: … it is 3rd gen?damo22: PaulePanter: its in the i915_drv.c in the kerneldamo22: eg, i965g/gm is generation 4PaulePanter: Ok.damo22: its also NOT valleyview* pl4nkton is now known as pl4nkton`awayPaulePanter: damo22: ?PaulePanter: Who said that?damo22: im trying to figure out which path the kernel takes before and after the patchdamo22: it must be differentPaulePanter: damo22: https://bugs.freedesktop.org/show_bug.cgi?id=79038#c12PaulePanter: damo22: Before they calculate it manually and afterward they read out that register, which the firmware should program, right?PaulePanter: src/northbridge/intel/i945/i945.h:#define TOLUD         0x9c    /* Top of Low Used Memory */PaulePanter: Off topic, how do I make Vim and Ctags jump to the correct header definition. If I Ctrl + click on `TOLUD` in `src/northbridge/intel/i945/raminit.c` it jumps into the header of `intel/fsp_sandybridge/northbridge.h` instead of `src/northbridge/intel/i945/i945.h`.PaulePanter: ?damo22: i have the same problem, there is a way to configure it to pop up a list of matches so you can select the right one but i dont know howPaulePanter: damo22: Ok. Good to know I am not the only one.<b><font color="red">damo22: okay, so for gen 3 i915, (i945/m) we can do what i said above and it should workPaulePanter: Is “graphics datastolen memory size (PCI Device 0 offset 52 bits 7:4)” configurable and programmed by the firmware or is it fixed if the IGP is enabled and can just be read?PaulePanter: damo22: Yes.damo22: its just a matter of setting the base address in the registerdamo22: i think the only difference is that in the kernel it is assumed that it is aligned to 0x100000damo22: kernel does this: base &= ~((1<<20) - 1);damo22: but coreboot does this: pci_read_config32(dev, 0x5c) & ~0xf,damo22: possibly a one linerdamo22: change ~0xf to ~0xfffff lolsamnob: vimuser: samnoble.org/thinkpad/kernel/linux-image-3.14.4-gnu-stolenmem-owen_2_i386.deb and linux-image-3.14.4-gnuowen_2_i386.deb with CONFIG_STRICT_DEVMEM unset. No PAE as always.samnob: damo22: thanks for looking into this.</font></b>vimuser: damo22: you are the most awesome person ever. I'm stilll preparing my dev/debugging environment and you speculate this already. I will try it soon.vimuser: samnob: thank you for confirming.vimuser: samnob: ok, /dev/mem support and non-PAE. excellent! samnob: vimuser: don't overlook that revision 2 those, are new debs with STRICT_DEVMEM unsetdamo22: vimuser: its much quicker to read and compare code than to compile kernels and flash firmwarePaulePanter: vimuser: I think your testing is not needed until you get a patch.PaulePanter: damo22: TOLUD (PCI Device 0 offset BCh bits 31:20)vimuser: PaulePanter ?vimuser: Yes I understand that. I was about to debug, but now we will test damo22's advice first.damo22: PaulePanter: i think intel_gma_init is being called with unaligned physical address for graphics memPaulePanter: vimuser: BDSM—Base Data of Stolen Memory RegisterPaulePanter: http://www.intel.com/content/dam/www/public/us/en/documents/datasheets/3rd-gen-core-desktop-vol-2-datasheet.pdfPaulePanter: vimuser: The methods you try just read it out and never set it.PaulePanter: This register contains the base address of graphics data stolen DRAM memory. BIOS determines the base of graphics data stolen memory by subtracting the graphics data stolen memory size (PCI Device 0 offset 52 bits 7:4) from TOLUD (PCI Device 0 offset BCh bits 31:20).damo22: PaulePanter: im pretty sure BDSM is only present in core iX cpusvimuser: PaulePanter, yes my method was to go about to be sure where it is set, and then try to set it properly in 5320. PaulePanter: vimuser: The problem is already present with native graphics in coreboot master, isn’t it?vimuser: damo22 took a shorter method to get the same result (hopefully. like you, i wait for him to confirm or deny success)vimuser: PaulePanter, yes the 3.12+ glitches exist in 5320 changeset aswell as 3998 (the old replay version, which 5320 is a re-write of)PaulePanter: vimuser: Sorry, I claim your tests would have never gotten any solution for the problem.* martinr (~martin@8.36.227.227) has joined #corebootvimuser: PaulePanter, that is quite possible, but it was a test anyway. PaulePanter: damo22: Chris Wilson and the Linux commit say that the BDSM is present, don’t they?PaulePanter: + if (INTEL_INFO(dev)->gen >= 3) {PaulePanter: + /* Read Graphics Base of Stolen Memory directly */vimuser: I actually did find where the stolen memory address was set, in /var/log/kern.log after using drm.debug=0x06 in those previous results i uploaded to freedesktop.org, but that was on coreboot/5320 with the address set incorrectly.vimuser: just search for the word "stolen" in the log and you'll find it on one of the lines.PaulePanter: vimuser: It’s not *set* it is *read* in there.vimuser: Oh right.vimuser: But I thought when reading it, it has to know the address. So the address I saw must have been what was set?vimuser: What am I missing?damo22: okay so there is something to clarify, i915 driver is the same for all intel gpus even some that are physically located in cpuPaulePanter: vimuser: As it is not explicitely set beforehand it contains some incorrect value, which is then read.PaulePanter: vimuser: That is the whole problem.vimuser: I see.vimuser: So,vimuser: my tests would have been useless, then.<b><font color="red">damo22: it didnt work</font></b>(note: can still try to make other changes: see testing notes below)damo22: oh wait, X just didnt detect the LVDSdamo22: in fact nothing diddamo22: but there were no errorsdamo22: ok so when i plug external monitor X freezes and gives errorsdamo22: and internal display isnt activedamo22: wierd, when i rebooted i got vga finedamo22: i think linux kernel i915 is trying to do something with vgarom because it says "invalid rom contents" as first boot linedamo22: no i need to find out if the kernel is doing something bad without rom presentdamo22: and then figure out how to enable lvds, because vga is workingvimuser: drivers/pci/rom.c:   dev_err(&pdev->dev, "Invalid ROM contents\n");vimuser: in that: size_t pci_get_rom_size(struct pci_dev *pdev, void __iomem *rom, size_t size)vimuser:                 /* Standard PCI ROMs start out with these bytes 55 AA */vimuser:                 if (readb(image) != 0x55) {vimuser:                         dev_err(&pdev->dev, "Invalid ROM contents\n");vimuser:                         break;vimuser:                 }damo22: i guess i should focus on the fact that coreboot did not initialise the gfx at grub screendamo22: i mean seabiosdamo22: its difficult because linux does some reinitialisation of gfxdamo22: i thought i had this one in the bagCareBear\: damo22 : it does complete reinitdamo22: i flicked throught the kernel i915 driver and it looks like it reads VBT tables from romheaders or somethingdamo22: if we are using native gfx init, those are not present right?samnob:  damo22: I think you need to be using grub2 to test native gfx init, seabios needs at least a stub of a vgarom.CareBear\: damo22 : correctCareBear\: samnob damo22 : if you want to use SeaBIOS you can use the SeaVGABIOS which will pick up a native framebuffer initialized by corebootdamo22: does SeaVGABIOS install VBT stuff in the vgarom area?CareBear\: damo22 : probably not the kind the framebuffer driver looks fordamo22: then it will fail with linuxCareBear\: damo22 : yesdamo22: CareBear\: can we write a vgabios stub that passes the signature tests and also has native VBT tables, but executes nothing?damo22: otherwise we need to patch the linux kernel to ignore certain models that have no vgabiosCareBear\: damo22 : let's first find out what information is used in those tablesdamo22: i have the code in front of medamo22: drivers/gpu/drm/i915/intel_bios.c (kernel)damo22: vimuser: no, i am trawling through linux driver codevimuser: damo22: are you aware that certain kernels can initialize the GPU on X60 without the native gfx or oprom? (you don't see payloads, but kernel/X11 shows displaydamo22: i have a feeling the linux kernel currently tries to load the vgarom regardless of PCH existancedamo22: i think there are two problems with native gfx init, one problem is that the lvds isnt coming up (coreboot issue), the other is is with the linux kernel i915 driver that tries to read the vgarom that isnt therevimuser: damo22, what hardware are you testing your changes on?vimuser: Did you try 5320 without your changes?vimuser: (hardware: X60 or T60)Peter on 5320 talks about vga pipe not being enabled: this means that payload doesn't appearon vga (only on lvds). OS can output on vga or lvds. so we need to get 5320 to output (during payload) on vgadamo22: i just slept on it, and i think i know what the problem is         * LVDS discovery:         * 1) check for EDID on DDC         * 2) check for VBT data         * 3) check to see if LVDS is already on         *    if none of the above, no panel1) it cant find the EDID because the i2c is failing to read with NAK2) there is no VBT data because there is no vga option rom3) coreboot is still not doing native init properly so the panel is still offTherefore linux assumes there is no LVDS.damo22: how do i enable cbmem console? i enabled it in menuconfig, do i need cbmem dynamically growing?damo22: [*] Send console output to a CBMEM buffer\damo22: but i got nothingGuest-FR: HiGuest-FR: would you please checkGuest-FR: src/northbridge/intel/i945/gma.cGuest-FR: function gma_func0_disableGuest-FR: pci_write_config16(dev, GCFC, 0xa00) , sound wrong isn't it?damo22: Guest-FR: what do you think is wrong about it?Guest-FR: per the datasheet (intel, so probably it is also wrong!) , the value should be "0x1b"Guest-FR: page 74damo22: Guest-FR: can you link me to the datasheetGuest-FR: damo22: congig16 is expecting 0x && 4 digits isn't it?Guest-FR: damo22: e.i.: 0x1234damo22: Guest-FR: 0xa00 === 0x0a00damo22: same thingGuest-FR: okGuest-FR: here is the link for tha datasheet http://www.intel.com/Assets/PDF/datasheet/307502.pdfdamo22: tydamo22: Guest-FR: i am also working on this gmadamo22: Guest-FR: i am trying to figure out why native gfx init is not working on my X60 tabletGuest-FR: per gma.h, GCFC is  0xf0    /* Graphics Clock Frequency & Gating Control */damo22: Guest-FR: GCFC is missing from the datasheetdamo22: so how do you know its wrongGuest-FR: it is my mistake.... I'm expecting to see 4 digits for conf16damo22: Guest-FR: ok, i would have expected GCFC to be on page 62 at the bottom but its missingGuest-FR: probably we should make a dump to see the value we have with an original bios. what you think ? is it possible?damo22: Guest-FR: however, GGC is mismatching between that datasheet and in coreboot gmaGuest-FR: intel is a fu*** companydamo22: ahh no, i looked up the wrong filedamo22: it matchesdamo22: Guest-FR: i am assuming you are using patched gma to test?Guest-FR: damo22: no, I use the original onedamo22: Guest-FR: http://review.coreboot.org/#/c/5320/Guest-FR: I try to port my board to coorboot https://github.com/coreboot-for-945g-m4/945g-m4Guest-FR: thx damo22damo22: Guest-FR: you need extra config in devicetree.cb with thatGuest-FR: damo22: http://review.coreboot.org/#/c/5762/damo22: Guest-FR: i cant view itGuest-FR: oops, it is draftGuest-FR: may I add you as a reviewer ?damo22: Guest-FR: sureGuest-FR: damo at zamodio?damo22: correctGuest-FR: doneGuest-FR: please feel free put comments (and be verbos, I'm not a developper :p )Guest-FR: probably my devicetree is not good,damo22: it still wont loadGuest-FR: damien at zamaudio.com ?damo22: yesdamo22: ok betterGuest-FR: probably you got an email ?Guest-FR: for a reviewdamo22: Guest-FR: i dont see native gfx initdamo22: are you using vgarom?Guest-FR: I'm using a PCIE card (Radeon X300)damo22: dont you want to try to initialise the onboard gfx?Guest-FR: why not, I'll give it a go :)damo22: you showed me a whole bunch of code, but what is the problem?Guest-FR: the serial is working, but it hang on "setting up static southbridge register ..."Guest-FR: and some times, it went to "setting up Root Complex Topology"damo22: Guest-FR: well, look for that message in the code and find the next message that should be displayed and you know the problem is between the two messagedGuest-FR: there is some thing unstabledamo22: messages*Guest-FR: okdamo22: Guest-FR: if its too hard to find, add some printk'sdamo22: i could really use a tip on how to enable cbmem consoledamo22: im running blindGuest-FR:  the msg ih at  " src/northbridge/intel/i945/early_init.c " i945_setup_bars functionGuest-FR: so my problem is between "Setting up static southbridge registers..." and "Done" :)damo22: cat .config|grep CBMEM ===> http://paste.debian.net/101541/  why do i still not have any cbmem console? "No console found in coreboot table."content of debian paste:CONFIG_EARLY_CBMEM_INIT=y# CONFIG_DYNAMIC_CBMEM is not setCONFIG_CONSOLE_CBMEM=yCONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000damo22: No coreboot CBMEM area found!* Guest-FR (d5f5ab0b@gateway/web/freenode/ip.213.245.171.11) has joined #corebootGuest-FR: I'd like to understand: is there any difference betweent: pci_write_config16(LPC_DEV, 0x84, 0x0a01); + pci_write_config16(LPC_DEV, 0x86, 0x00fc); vs pci_write_config32(LPC_DEV, 0x84, 0x00fc0a01);Guest-FR: for exemple: lenovo/x60/romstage.c we have:  pci_write_config16(PCI_DEV(0, 0x1f, 0), 0x84, 0x1601); however in the ich7 datasheet page 364 it is a  conf32phcoder-screen: damo22: for C segment. boot with oprom, then dd if=/dev/mem bs=64k of=seg_cdef.bin skip=12 count=4damo22: okdamo22: is that the VBT table?phcoder-screen: part of it isdamo22: phcoder-screen: http://www.zamaudio.com/mbox2/seg_cdef.bindamo22: it looks correct because it mentions calistogadamo22: phcoder-screen: as a general solution, would it be possible to write a script that takes a vgarom as input and outputs a vgarom stub that will have no executable code but still have the VBT stuff and signatures to fool the OS that real vgarom is there, and will detect panels etcdamo22: or is there a better way?phcoder-screen: damo22: there is a better way: generate it in coreboot. I have a tool to partially parse the roms. Trying it with yours.damo22: coolphcoder-screen: damo22: http://pastebin.com/GsYhSaNBContent of that paste:signature: <$VBT CALISTOGA      >version: 1.00VBT size: 0xea0VBT checksum: 0x0BDB version: 1.29section type 254, size 0xea	type: 0	relstage: 64	chipset: 1	LVDS	No TV	rsvd3[0]: 0x8	rsvd3[1]: 0x3	rsvd3[2]: 0x31	rsvd3[3]: 0x33	Signon: 13Intel(r)Calistoga PCI Accelerated SVGA BIOSBuild Number: 1313d.dal  PC 14.20  Dev   10/17/2006  0:22:30DECOMPILATION OR DISASSEMBLY PROHIBITED	Copyright: 	Code segment: a	DOS Boot mode: 0	Bandwidth percent: c0	rsvd4: 0x3	Bandwidth percent: 8	rsvd5: 0x4section type 1, size 0x5General features:	panel_fitting = 0x3	flexaim = 0x1	download_ext_vbt = 0x1	*enable_ssc = 0x1	*ssc_freq = 0x1	*display_clock_mode = 0x0	disable_smooth_vision = 0x0	*fdi_rx_polarity_inverted = 0x0	legacy_monitor_detect = 0x1	*int_crt_support = 0x1	*int_tv_support = 0x0section type 254, size 0x20section type 2, size 0xcb	*CRT DDC GMBUS pin: 2	DPMS ACPI: 0	Skip boot CRT detect: 0	DPMS aim: 1	boot_display: { 0, 0 }	6 devices	*device type: 1009 (TV)	 *dvo_port: 5	 *i2c_pin: 0	 *slave_addr: 0	 *ddc_pin: 0	 *dvo_wiring: 0	 edid_ptr: 0	*device type: 1022 (flat panel)	 *dvo_port: 4	 *i2c_pin: 0	 *slave_addr: 0	 *ddc_pin: 3	 *dvo_wiring: 0	 edid_ptr: 0	*device type: 0 (Empty)	*device type: 0 (Empty)	*device type: 0 (Empty)	*device type: 0 (Empty)section type 3, size 0x1section type 4, size 0x1csection type 254, size 0x69section type 6, size 0x16dsection type 7, size 0x7section type 8, size 0x3dsection type 10, size 0xcbsection type 11, size 0xc7section type 12, size 0xf	*LVDS config: 1	*Dual frequency: 1section type 13, size 0x3section type 14, size 0x9section type 15, size 0x8bsection type 16, size 0x84section type 17, size 0x8section type 18, size 0xcsection type 19, size 0x20section type 20, size 0x9esection type 22, size 0x15	*Panel type: 3section type 23, size 0x48section type 24, size 0x28section type 25, size 0x28section type 26, size 0x2section type 40, size 0x8section type 41, size 0x91section type 42, size 0x4a0section type 43, size 0x61section type 44, size 0x15damo22: phcoder-screen: does that mean for every supported board, an extra step will be needed to parse the roms so that the port can be donedamo22: *CRT DDC GMBUS pin: 2damo22: i think it is trying pin 3phcoder-screen: damo22: CRT is VGAphcoder-screen: ddc_pin is 3 under lvds sectiondamo22: oh yeahphcoder-screen: damo22: we already need some info in device tree to init. I think we can reuse itphcoder-screen: I can upload my parser if you wantdamo22: sure, i can parse my T60 and X60tdamo22: and eventually T61phcoder-screen: CL 5842damo22: thanksdamo22: phcoder-screen: do you think the EDID is failing to read in linux because the VBT is missing?phcoder-screen: damo22: it's a likely explanation. I'd reput first 64k of your dump back to placedamo22: where does it belong in the flash?damo22: c0000?phcoder-screen: damo22: nowhere. c0000 is in RAMdamo22: so how do i ensure it gets loaded into ram at c0000phcoder-screen: damo22: memcpydamo22: im convinced it will work if i do thatdamo22: thats like loading the vgaromdamo22: but without executing itphcoder-screen: damo22: yesdamo22: couldnt i just select it in menuconfig, but comment out the code that runs it?phcoder-screen: yesphcoder-screen: and keep in mind that oprom is self-modifyingdamo22: yes so i need the final dump to load not the originalphcoder-screen: yes--Side discussion (in #libreboot, not #coreboot as above):vimuser: damo22: what was the problem?damo22: EDID is not being read in linuxdamo22: well it is, but it failsdamo22: probably because the VBT signature is missing from the opromvimuser: oprom?vimuser: You mean native init code?vimuser: that it doesn't put the proper data in vbtdamo22: there is some special metadata in the oprom that native init doesnt put indamo22: linux looks for itdamo22: thats how it knows where to read the EDID fromdamo22: otherwise it uses a default address that could be wrongdamo22: in some cases it worksdamo22: other cases like my X60t it failsvimuser: that would explain why "read-edid" utility deosn't work on natisev gfx at the mamentvimuser: momentvimuser: Basstard` ^damo22: vimuser: phcoder wrote an experimental utility to parse some of the VBT tables from a vgaromvimuser: Did he share it with you?damo22: yesvimuser: Did he upload it publicly?damo22: http://review.coreboot.org/#/c/5842/vimuser: Ok cool.vimuser: Do you think I should try it?damo22: you could use it to get more info from all your known boards, collect the parsed tables in a folder correctly named with the type of panel and the type of laptopvimuser: So as per #coreboot, my understanding is: move to new stolen memory address, find that metadata and how it's calculated and write that (memcpy/write32) in native init, get VBT tables parsed from ROM, replicate that in native gfx (stub code, just the addresses and pointers to the native init code)vimuser: Should this be run an a vgabios.bin, or on a system where vga bios is running (parse it in memory) ?vimuser: or both?damo22: we havent got a solution for native init yet, but we do need to collect info from different modelsdamo22: to see how they comparevimuser: yes so, vgabios.bin (file) or running vga bios?damo22: and also we can add it to devicetree.cb somehow laterdamo22: preferably the running vgabiosvimuser: okdamo22: you can dump it with this command:damo22: sudo dd if=/dev/mem bs=64k of=runningvga.bin skip=12 count=1damo22: coreboot/util/intelvbttooldamo22: gcc intelvbttool.c -o intelvbttoolvimuser: it would be good for you to run intelvbttool on vgabios.bin and runningvgabios.bin. (where vgabios.bin is extracted from lenovo rom, and runningvgabios.bin is dd'd from memory after it executed)vimuser: right?vimuser: (I will do the same)vimuser: just runningvgabios.bin ?damo22: its useless in the factory biosdamo22: for the purposes of this testvimuser: okvimuser: Can't hurt though (might be useful later).damo22: not really, it might be modified at runtime and we wont know anything about itdamo22: we need final valuesdamo22: the rest is irrelevantvimuser: Yes. I was saying to run it on final dump, and factory dump.vimuser: but ok, i will only do it for final dump--further discussion, continued in #coreboot:damo22:we could generate fake_vbt arrays for each modeldamo22:vimuser: whats the link to the vbt stuff againvimuser: http://review.coreboot.org/#/c/5396 for X230damo22:vimuser: no on librebootvimuser: I also added this to the notes at http://libreboot.org/howto.html#i945_vbt and http://libreboot.org/howto.html#intelvbttool_results for future reference.vimuser: on libreboot? I don't understand.damo22:its possible that the VBT is modified by the vgarom depending on the panel it detects, assuming it can do thatdamo22:only problem is, you need info from the VBT to know where to read the EDID, so how does the vgarom do it?damo22:maybe its safe to assume that the EDID i2c will be the same for all panelsvimuser: Might be hardcoded (what CareBear calls "stupid magic numbers")damo22:so we should check all VBTs of the same laptop model and verify that the EDID i2c or ddc pin is the same for all panel typesvimuser: Sorry, when you say VBT do you mean the runningvga.bin dump taken with dd when vgarom is running?damo22:then we can hardcode that value into the coreboot devicetree.cbvimuser: I see. it's an i2c bus that connects lvds/vga/vga outkmalkki:damo22: in your opinion, where is this EDID eeprom physically located?damo22:kmalkki: on the panel, or the transformer for the panelkmalkki:damo22: what do you think is a transformer for the panel?damo22:some circuitry that interfaces between the lvds connector and the panel itselfdamo22:on the T60 there is a separate module afaikdamo22:on other models it might be incorporated into the panel idkdamo22:kmalkki: i believe that the VBT has information regarding which pin of the i2c to read for the EDID eeprom/storagedamo22:and it varies panel to panelkmalkki:would it surprise you DDC signals are often not on the panel connectordamo22:hmmkmalkki:like, x60 schematics is easily available, do check on some alternative ways how these are donedamo22:okkmalkki:damo22: for t60 however... LCD connector does have EDID linesdamo22:kmalkki: well it would be nice to have a general solution to EDID readingdamo22:i need to understand the wiring more and the VBTkmalkki:DDC signals originate from the graphics devicekmalkki:that will be Intel for some, ATI for some T60 ?damo22:kmalkki: linux expects the VBT to be in the vgarom memory area, because it uses it to identify when a panel exists, so coreboot should provide VBT like a vendor bios ?damo22:when vgarom is used with coreboot there is no problem , but for native gfx init it doesnt always workkmalkki:ok.. so we can ignore ATI case for nowdamo22:kmalkki: is that because no native init will be done for that case?damo22:so the vgarom will always workkmalkki:ok.. so do you know VBT format?damo22:kmalkki: phcoder has done lots of work on it alreadykmalkki:and.. is there a problem in reading the EDID?damo22:kmalkki: idk yet, i need to testdamo22:im having trouble building a coreboot rom that uses coreboots native framebuffer so i can see if it workeddamo22:linux reinits the gfx so its not a good testdamo22:but in any case, without the VBT, linux cant reinit my gfxdamo22:it fails to read the EDIDdamo22:and without a dock, and cbmem console isnt working, i cant get the coreboot log to check what actually happenedkmalkki:what do you mean cbmem console not working?damo22:kmalkki: i enabled it in menuconfig and built a rom, but when i run it on my X60t cbmem -c reports No console foundkmalkki:we should get it fixed thenkmalkki:paste your .configdamo22:http://paste.debian.net/101644/kmalkki:git hash is from local tree.. it does work on master, right?damo22:idkdamo22:i just cherry picked some native gfx patchesdamo22:why would it affect cbmem consolekmalkki:mess up MTRRs or memory space mapping or UMA region...damo22:okkmalkki:are those patches on gerrit you picked?damo22:well i need these patches because that is why i need the consoledamo22:yesdamo22:actually i did minor changes toodamo22::Skmalkki:yep.. which patches exactlydamo22:5320damo22:then i changed 2 linesdamo22:a minor devicetree.cb line and this:damo22:-       intel_gma_init(conf, pci_read_config32(dev, 0x5c) & ~0xf,damo22:+       intel_gma_init(conf, pci_read_config32(dev, 0x5c) & ~0xfffff,kmalkki:ok.. also paste 'git log' so I find common hash from masterdamo22:http://paste.debian.net/101645/damo22:does anyone have better google xen than me, i cant seem to find a pdf of x60 schematicsBasstard' damo22: Do you mean this? http://www.computerservice.es/wp-content/uploads/2013/05/IBM-X60.pdfdamo22:yep thankskmalkki:and now that I am awake, I see DDC signals on x60 LCD tookmalkki:just.. no DDC or I2C in the signal name but EDIDdamo22:yeahdamo22:what bus does the lvds connector usedamo22:is that i2c?damo22:or should i say, how standard is that lcd connector they are using on the X60kmalkki:mainboard side is completely non-standard AFAIKdamo22:ohhhkmalkki:panel side has a few variants on the LVDS inputdamo22:okdamo22:this is not easy to generalise thendamo22:SPWG_EDID_CLK and SPWG_EDID_DATA are the signals i found on the connectorkmalkki:yes. and it looks like phcoder-screen has done all the work to read the EDIDdamo22:yes but the address and pins required are stored in the VBT i thinkkmalkki:solve your CBMEM console, pleasedamo22:yeaBasstard' damo22: Here's a cleaner one: http://pdf.datasheetarchive.com/indexerfiles/Datasheets-USER/DSAUPLD00006054.pdfkmalkki:just verify 1315730 worksdamo22:1315730?GNUtoo-irssi: vimuser: hi, 0x58BF58BE works fine --- cool. (not related to these discussions, but GNUtoo is happy).<a name="gnutoo_gtt"></a>GNUtoo-irssi: phcoder-screen: if you're still working on native GPU init for i945(it seems so), I've an observation:GNUtoo-irssi: gtt is not setup correctly anymore with your versions, the kenrel complainsGNUtoo-irssi: it was with a replay version, so if you're still working on it it may be an usefull hintGNUtoo-irssi: I've added the code that works inside git, so if you want/need it, ping mephcoder-screen:damo22: yesGNUtoo-irssi: beside the kernel warning, the effect is slow 3D with a 3.10 lts kerneldamo22:GNUtoo-irssi: can you push it as a notformerge?GNUtoo-irssi: ok, good ideaGNUtoo-irssi: ah sigh, again...GNUtoo-irssi:  ! [remote rejected] HEAD -> refs/for/master/NOTFORMERGE-reference-i915_gpu_init-x60 (change 3992 closed)GNUtoo-irssi: I'll change the IDsdamo22:GNUtoo-irssi: have you seen 5230?damo22:5320*phcoder-screen:damo22: rank 0 of either channel is configured but not rank 1GNUtoo-irssi: let me lookGNUtoo-irssi: I've tried some recent branch for the t60GNUtoo-irssi: it works well, beside the gtt init issue I just describeddamo22:GNUtoo-irssi: given that you were working on 3992 which is closed are you able to rebase your changes on top of 5320?damo22:hmm 3992 was mergeddamo22:phcoder-screen: my dimms are dual rank<stefanct> GNUtoo-irssi: i am not too familiar with gerrit, but that error message seems to indicate that you should not try to push 3992 again because it is already merged... rebasing the remains of your changes on top of that (or origin/master) should fix that *i guess*URL to topic: http://review.coreboot.org/#/q/status:open+project:coreboot+branch:master+topic:NOTFORMERGE-reference-i915_gpu_init-x60,n,z(note: this is old code, not *directly* useful but might be useful later. put this somewhere else in howto.html later)GNUtoo-irssi: done, NOTFORMERGE-reference-i915_gpu_init-x60GNUtoo-irssi: yes, I've removed the IdsGNUtoo-irssi: so they were regeneratedGNUtoo-irssi: the goal is not to rebase at all hereGNUtoo-irssi: that's a reference codeGNUtoo-irssi: it's not for merge eitherGNUtoo-irssi: If I start modifying it, I'll need to spend time testing it againGNUtoo-irssi: I've no time right nowGNUtoo-irssi: maybe I'll have later in theses two weeksGNUtoo-irssi: but not right nowdamo22:GNUtoo-irssi: mainboard/lenovo/x60/i915* has been removed in favour of northbridge/intel/i945/gma.c in 5320damo22:i thought you had changes for thatGNUtoo-irssi: yes, I knowGNUtoo-irssi: what I just pushed is a *reference code* where the GTT setup worksGNUtoo-irssi: it's oldGNUtoo-irssi: it's not meant to be mergedGNUtoo-irssi: it's not rebasedGNUtoo-irssi: it's just frozen code where it's known to workGNUtoo-irssi: that's alldamo22:okGNUtoo-irssi: it doesn't even handle backlightGNUtoo-irssi: even with devmem2...damo22:i'll see if i can find the gtt stuff and compare to 5320damo22:could be a one linerdamo22:physbase -> uma_memory_base+256*KiBphcoder-screen:damo22: yes and rank 1 config faileddamo22:phcoder-screen: ok, so i'll get you that mchbar dumpphcoder-screen:damo22: no need yet. I found out that in another ram config my X230 fails as well. I'll investigate this firstkmalkki:GNUtoo-irssi: please abandon the duplicates in your gerrit spacekmalkki:also any microcode files will not be removed until working copies are in 3rdparty/kmalkki:we probably want to keep the old version in gerrit, with all the comments made previouslydamo22:kmalkki: all those patches are noformergedamo22:not*kmalkki:damo22: still they are duplicates of already reviewed patcheskmalkki:why the heck the new change-idsdamo22:maybe a git diff to a pastebin would have been betterGNUtoo-irssi: lsGNUtoo-irssi: oops<uberushaximus> hunter2kmalkki:GNUtoo-irssi: please explain your motivation to push that stuff on gerritkmalkki:it is not even rebased to current but 6 months old HEADGNUtoo-irssi: GTT is setup badly on x60GNUtoo-irssi: with the recent changes from phcoderGNUtoo-irssi: what I pushed is a version that is known to have the GTT setup correctlyGNUtoo-irssi: it's for referenceGNUtoo-irssi: so people working on i945 native GPU init would use it to fix that issue fasterGNUtoo-irssi: like diff bothGNUtoo-irssi: or something like thatGNUtoo-irssi: kmalkki: do you have a better description for the topic branch name that describe what I just said?kmalkki:well gerrit is not for the purpose of storing referenceskmalkki:most of those patches already had Change-IDskmalkki:now we have duplicates.. and comments can end up in either placekmalkki:it was already a havoc with native init beforeGNUtoo-irssi: ok, so instead I should remove that branch, and push on gitorious?kmalkki:all of You working on it, try to work a setup that suits you all wellGNUtoo-irssi: briefly: it's for tracking a regressionkmalkki:well I do not do i915 gfx stuff.. but clearly you have a lot of problems trying to keep and follow each others workkmalkki:and what works and where the regressions have happenedPaulePanter: GNUtoo-irssi: Hi. Do you know if the amount memory reserved for i945 IGD is always constant or if that is configurable?PaulePanter: GNUtoo-irssi: I did not see a table in the 3rd Gen datasheet.PaulePanter: http://www.intel.com/content/dam/www/public/us/en/documents/datasheets/3rd-gen-core-family-mobile-vol-2-datasheet.pdfGNUtoo-irssi: PaulePanter: you mean the GSM?GNUtoo-irssi: (Graphics stolen memory)PaulePanter: GNUtoo-irssi: Yes.PaulePanter: Section 2.5.33 BDSM—Base Data of Stolen Memory RegisterGNUtoo-irssi: If I remmeber well it's configurable, but we use the values advised by the datasheetGNUtoo-irssi: which are derived from the ammount of RAMPaulePanter: This register contains the base address of graphics data stolen DRAM memory. BIOS determines the base of graphics data stolen memory by subtracting the graphics data stolen memory size (PCI Device 0 offset 52 bits 7:4) from TOLUD (PCI Device 0 offset BCh bits 31:20).PaulePanter: GNUtoo-irssi: Yes, I am unable to find the advised values.damo22:PaulePanter: are you sure thats the right datasheet for the cpu inside the X60?GNUtoo-irssi: okGNUtoo-irssi: I can lookPaulePanter: damo22: Not 100 %.damo22:afaik, BSDM is something kinky in the core iX processorsGNUtoo-irssi: uma_size = 1024;PaulePanter: Chris Wilson from the Intel graphics Linux driver team said that BDSM ist incorrectly set up.PaulePanter: … on the i945.PaulePanter: … by coreboot.PaulePanter: This is Volume 2 of the Datasheet for the following products:PaulePanter: Mobile 3rd Generation Intel ® CoreTM processor familyGNUtoo-irssi: in pci_domain_set_resources in northbridge.cPaulePanter: Mobile Intel ® Pentium ® processor familyGNUtoo-irssi: okPaulePanter: Mobile Intel ® Celeron ® processor familyPaulePanter: GNUtoo-irssi: Thanks. So it is constant for now.PaulePanter: GNUtoo-irssi: So just 1 MB graphics memory?damo22:i dont remember him mentioning BDSM in the bug report, but he did say the GTT was incorrectly set up?damo22:graphics stolen stuffGNUtoo-irssi: no it's notGNUtoo-irssi: read the functionPaulePanter: “Stolen memory has been set up incorrectly by coreboot.”PaulePanter: GNUtoo-irssi: Ok.PaulePanter: GNUtoo-irssi: No idea, if you are aware of https://bugs.freedesktop.org/show_bug.cgi?id=79038 .GNUtoo-irssi: http://paste.debian.net/101662/[    0.764084] input: Video Bus as /devices/LNXSYSTM:00/device:00/PNP0A08:00/LNXVIDEO:00/input/input3[    0.771023] pci 0000:00:00.0: Intel 945GM Chipset[    0.771075] pci 0000:00:00.0: detected gtt size: 262144K total, 262144K mappable[    0.771669] pci 0000:00:00.0: detected 8192K stolen memory[    0.771738] [drm] Memory usable by graphics device = 256M[    0.772124] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).[    0.772126] [drm] Driver supports precise vblank timestamp query.[    0.772133] i915 0000:00:02.0: Invalid ROM contents[    0.772141] [drm] failed to find VBIOS tables[    0.772192] [drm] GPU crash dump saved to /sys/class/drm/card0/error[    0.772196] [drm] GPU hangs can indicate a bug anywhere in the entire gfx stack, including userspace.[    0.772198] [drm] Please file a _new_ bug report on bugs.freedesktop.org against DRI -> DRM/Intel[    0.772200] [drm] drm/i915 developers can then reassign to the right component if it's not a kernel issue.[    0.772202] [drm] The gpu crash dump is required to analyze gpu hangs, so please always attach it.[    0.772207] vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=io+mem:owns=io+mem[    0.772217] i915: render error detected, EIR: 0x00000010[    0.772224] i915: page table error[    0.772227] i915:   PGTBL_ER: 0x00000012[    0.772233] [drm:i915_report_and_clear_eir] *ERROR* EIR stuck: 0x00000010, masking[    0.772247] i915: render error detected, EIR: 0x00000010[    0.772252] i915: page table error[    0.772255] i915:   PGTBL_ER: 0x00000012[    0.924707] [drm] initialized overlay support[    1.126501] fbcon: inteldrmfb (fb0) is primary device[    1.360027] tsc: Refined TSC clocksource calibration: 1828.749 MHz[    1.482148] Console: switching to colour frame buffer device 175x65[    1.490507] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device[    1.490510] i915 0000:00:02.0: registered panic notifier[    1.490522] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0[    1.491931] console [netcon0] enabled[    1.491933] netconsole: network logging started[    1.494021] ACPI: bus type USB registeredGNUtoo-irssi: that is the regression ^^^^GNUtoo-irssi: See PGTBL_ERGNUtoo-irssi: The bits are documenteddamo22:i have compared GNUtoo-irssi's patchset with the 5320 stuff that phcoder did, and i found that 1 line needs to be changedGNUtoo-irssi: (I don't remember where, probably in the datasheet that applies to the more recent GPUs (sic))damo22:its the base address of the gma init callPaulePanter: damo22: Are you going to push a patch for testing?damo22:but in order for it to work you need vgarom with native init, it doesnt run the rom just uses it for VBTPaulePanter: damo22: I still not see how that should fix the error, but we’ll see.damo22:how do i squash my commits into one patch that can be applied to 5320?PaulePanter: damo22: Is that patch really dependent on 5320? I thought it is also needed for the current native graphics init in the tree?PaulePanter: damo22: `git rebase -iPaulePanter: `PaulePanter: damo22: git rebase -i commit-hash-of-5320damo22:thanksPaulePanter: damo22: To squash you will need to change `pick` to `f` or `s` for `fixup` or `squash`.damo22:i have a patch that could be tested on X60: http://review.coreboot.org/#/c/5868/PaulePanter: damo22: On Nehalem:PaulePanter: src/northbridge/intel/nehalem/gma.c:            intel_gma_init(conf, gtt_res->base, physbase, pio_res->base,PaulePanter: src/northbridge/intel/nehalem/gma.c-                           lfb_res->base);damo22:PaulePanter: i fail to see relevance of nehalem in i945PaulePanter: damo22: Hopefully the code can be written in a way that common paths are written the same.PaulePanter: damo22: Let’s first see if the patch fixes it.PaulePanter: damo22: By the way, which datasheet do you think is correct for the Intel 945 IGD in the Lenovo T60 and X60?damo22:whichever datasheet includes 945PM (Calistoga) Graphicsdamo22:is it PM or GM?PaulePanter: damo22: I thought GM.damo22:PM has no integrated graphics so it must be GMPaulePanter: damo22: Document Number: 309219-006damo22:PaulePanter: this must be the datasheet: http://www.intel.com/content/dam/www/public/us/en/documents/datasheets/mobile-945-express-chipset-datasheet.pdfPaulePanter: Mobile Intel® 945 Express Chipset FamilyPaulePanter: damo22: ;-)damo22:309219-006 is correctPaulePanter: Graphics Stolen Memory and TSEG are within DRAM space defined under TOLUD. Fromkmalkki:PaulePanter: did you go through the list of patches in your gerrit space that I suggested needed rebase?PaulePanter: the top of low used DRAM, (G)MCH claims 1 to 64 MBs of DRAM for internal graphics ifPaulePanter: enabled.PaulePanter: kmalkki: I thought I did go through most of them.kmalkki:do you have the listkmalkki:I did not keep copy :/kmalkki:5388kmalkki:that is AMRPaulePanter: kmalkki: Don’t waste you time with it. I have a copy of your list somewhere and will go through it in the next days.kmalkki:PaulePanter: +1 5388damo22:PaulePanter: its an integrated GMA 950 afaikidwer: oh... 5388 has no priority whatsover to meidwer: not anymore ;)damo22:does GM45 support in coreboot have ddr2 AND ddr3 support?damo22:well that means X200 could be ported with ME disabledphcoder-screen:damo22: that's my next fun project after raminit for ivy.* thomasg_ is now known as thomasgdamo22:vimuser: LTN150XG-L08 is my T60 EDID string (for his T60 15" -- this is already noted below in intelvbttool results)vimuser: damo22: ok, i should test 5868? I understand it puts the vgarom inside but without running it (just for getting VBT tables) but latre we could replace it with something like what the X230 "Deploy VBT" doesdamo22:yeahvimuser: Let me read backlog...damo22:vimuser: you dont need backlog, everything you need is in the 5868 commitvimuser: how did your X60t unbricking go, damo22?damo22:havent bothered finding my screwdrivers yetvimuser: I need to.... tidy myself up. Back in an hour or so.vimuser: damo22: upload a ROM for me, with 5868 and grub payloadvimuser: I'll test it for youdamo22:im not good with grub payloadsdamo22:i can give you one with seabiosvimuser: ok give me that,vimuser: also hm ok, give me your .config. I'll add grub myselfdamo22:okdamo22:vimuser: http://paste.debian.net/plain/101692## Automatically generated make config: don't edit# coreboot version: 4.0-5614-gdb77532# Mon May 26 00:11:44 2014### General setup#CONFIG_EXPERT=yCONFIG_LOCALVERSION=""CONFIG_CBFS_PREFIX="fallback"CONFIG_COMPILER_GCC=y# CONFIG_COMPILER_LLVM_CLANG is not set# CONFIG_SCANBUILD_ENABLE is not set# CONFIG_CCACHE is not set# CONFIG_SCONFIG_GENPARSER is not setCONFIG_USE_OPTION_TABLE=yCONFIG_COMPRESS_RAMSTAGE=yCONFIG_INCLUDE_CONFIG_FILE=yCONFIG_EARLY_CBMEM_INIT=y# CONFIG_DYNAMIC_CBMEM is not set# CONFIG_COLLECT_TIMESTAMPS is not set# CONFIG_USE_BLOBS is not set# CONFIG_COVERAGE is not set## Mainboard## CONFIG_VENDOR_AAEON is not set# CONFIG_VENDOR_ABIT is not set# CONFIG_VENDOR_ADLINK is not set# CONFIG_VENDOR_ADVANSUS is not set# CONFIG_VENDOR_ADVANTECH is not set# CONFIG_VENDOR_AMD is not set# CONFIG_VENDOR_AOPEN is not set# CONFIG_VENDOR_ARIMA is not set# CONFIG_VENDOR_ARTECGROUP is not set# CONFIG_VENDOR_ASI is not set# CONFIG_VENDOR_ASROCK is not set# CONFIG_VENDOR_ASUS is not set# CONFIG_VENDOR_A_TREND is not set# CONFIG_VENDOR_AVALUE is not set# CONFIG_VENDOR_AXUS is not set# CONFIG_VENDOR_AZZA is not set# CONFIG_VENDOR_BACHMANN is not set# CONFIG_VENDOR_BCOM is not set# CONFIG_VENDOR_BIFFEROS is not set# CONFIG_VENDOR_BIOSTAR is not set# CONFIG_VENDOR_BROADCOM is not set# CONFIG_VENDOR_COMPAQ is not set# CONFIG_VENDOR_CUBIETECH is not set# CONFIG_VENDOR_DIGITALLOGIC is not set# CONFIG_VENDOR_DMP is not set# CONFIG_VENDOR_EAGLELION is not set# CONFIG_VENDOR_ECS is not set# CONFIG_VENDOR_EMULATION is not set# CONFIG_VENDOR_GETAC is not set# CONFIG_VENDOR_GIGABYTE is not set# CONFIG_VENDOR_GIZMOSPHERE is not set# CONFIG_VENDOR_GOOGLE is not set# CONFIG_VENDOR_HP is not set# CONFIG_VENDOR_IBASE is not set# CONFIG_VENDOR_IBM is not set# CONFIG_VENDOR_IEI is not set# CONFIG_VENDOR_INTEL is not set# CONFIG_VENDOR_IWAVE is not set# CONFIG_VENDOR_IWILL is not set# CONFIG_VENDOR_JETWAY is not set# CONFIG_VENDOR_KONTRON is not set# CONFIG_VENDOR_LANNER is not setCONFIG_VENDOR_LENOVO=y# CONFIG_VENDOR_LINUTOP is not set# CONFIG_VENDOR_LIPPERT is not set# CONFIG_VENDOR_MITAC is not set# CONFIG_VENDOR_MSI is not set# CONFIG_VENDOR_NEC is not set# CONFIG_VENDOR_NEWISYS is not set# CONFIG_VENDOR_NOKIA is not set# CONFIG_VENDOR_NVIDIA is not set# CONFIG_VENDOR_PCENGINES is not set# CONFIG_VENDOR_RCA is not set# CONFIG_VENDOR_RODA is not set# CONFIG_VENDOR_SAMSUNG is not set# CONFIG_VENDOR_SIEMENS is not set# CONFIG_VENDOR_SOYO is not set# CONFIG_VENDOR_SUNW is not set# CONFIG_VENDOR_SUPERMICRO is not set# CONFIG_VENDOR_TECHNEXION is not set# CONFIG_VENDOR_TECHNOLOGIC is not set# CONFIG_VENDOR_TELEVIDEO is not set# CONFIG_VENDOR_TI is not set# CONFIG_VENDOR_THOMSON is not set# CONFIG_VENDOR_TRAVERSE is not set# CONFIG_VENDOR_TYAN is not set# CONFIG_VENDOR_VIA is not set# CONFIG_VENDOR_WINENT is not set# CONFIG_VENDOR_WYSE is not setCONFIG_BOARD_SPECIFIC_OPTIONS=yCONFIG_MAINBOARD_DIR="lenovo/x60"CONFIG_MAINBOARD_PART_NUMBER="ThinkPad X60 / X60s"CONFIG_IRQ_SLOT_COUNT=18CONFIG_MAINBOARD_VENDOR="Lenovo"CONFIG_MAX_CPUS=2CONFIG_RAMTOP=0x200000CONFIG_HEAP_SIZE=0x4000CONFIG_RAMBASE=0x100000CONFIG_VGA_BIOS_ID="8086,27a2"CONFIG_DRIVERS_PS2_KEYBOARD=yCONFIG_ONBOARD_VGA_IS_PRIMARY=yCONFIG_VGA_BIOS=y# CONFIG_CONSOLE_POST is not set# CONFIG_UDELAY_IO is not setCONFIG_DCACHE_RAM_BASE=0xffdf8000CONFIG_DCACHE_RAM_SIZE=0x8000CONFIG_SERIAL_CPU_INIT=yCONFIG_ACPI_SSDTX_NUM=0CONFIG_VGA_BIOS_FILE="vgabios.bin"# CONFIG_PCI_64BIT_PREF_MEM is not setCONFIG_MMCONF_BASE_ADDRESS=0xf0000000CONFIG_ID_SECTION_OFFSET=0x80# CONFIG_BOARD_EMULATION_QEMU_X86_I440FX is not set# CONFIG_BOARD_EMULATION_QEMU_X86_Q35 is not set# CONFIG_BOARD_EMULATION_QEMU_ARMV7 is not setCONFIG_STACK_SIZE=0x1000CONFIG_XIP_ROM_SIZE=0x10000CONFIG_MMCONF_SUPPORT_DEFAULT=y# CONFIG_VGA is not setCONFIG_BOARD_LENOVO_X60=y# CONFIG_BOARD_LENOVO_X201 is not set# CONFIG_BOARD_LENOVO_X230 is not set# CONFIG_BOARD_LENOVO_T60 is not setCONFIG_MAINBOARD_SMBIOS_MANUFACTURER="LENOVO"CONFIG_SEABIOS_PS2_TIMEOUT=3000CONFIG_MAINBOARD_VERSION="1.0"CONFIG_CPU_ADDR_BITS=32CONFIG_CACHE_ROM_SIZE_OVERRIDE=0# CONFIG_POWER_BUTTON_FORCE_ENABLE is not setCONFIG_LOGICAL_CPUS=yCONFIG_IOAPIC=yCONFIG_SMP=yCONFIG_DEFAULT_CONSOLE_LOGLEVEL=8# CONFIG_USBDEBUG is not setCONFIG_MAXIMUM_SUPPORTED_FREQUENCY=0CONFIG_BOARD_ROMSIZE_KB_2048=y# CONFIG_COREBOOT_ROMSIZE_KB_64 is not set# CONFIG_COREBOOT_ROMSIZE_KB_128 is not set# CONFIG_COREBOOT_ROMSIZE_KB_256 is not set# CONFIG_COREBOOT_ROMSIZE_KB_512 is not set# CONFIG_COREBOOT_ROMSIZE_KB_1024 is not setCONFIG_COREBOOT_ROMSIZE_KB_2048=y# CONFIG_COREBOOT_ROMSIZE_KB_4096 is not set# CONFIG_COREBOOT_ROMSIZE_KB_8192 is not set# CONFIG_COREBOOT_ROMSIZE_KB_12288 is not set# CONFIG_COREBOOT_ROMSIZE_KB_16384 is not setCONFIG_COREBOOT_ROMSIZE_KB=2048CONFIG_ROM_SIZE=0x200000CONFIG_MAINBOARD_SERIAL_NUMBER="123456789"CONFIG_MAINBOARD_SMBIOS_PRODUCT_NAME="ThinkPad X60 / X60s"CONFIG_ARCH_X86=y# CONFIG_ARCH_ARMV7 is not set## Architecture (x86)#CONFIG_X86_ARCH_OPTIONS=yCONFIG_AP_IN_SIPI_WAIT=y# CONFIG_SIPI_VECTOR_IN_ROM is not setCONFIG_MAX_REBOOT_CNT=3CONFIG_NUM_IPI_STARTS=2CONFIG_X86_BOOTBLOCK_SIMPLE=y# CONFIG_X86_BOOTBLOCK_NORMAL is not setCONFIG_BOOTBLOCK_SOURCE="bootblock_simple.c"# CONFIG_UPDATE_IMAGE is not set# CONFIG_ROMCC is not setCONFIG_PC80_SYSTEM=yCONFIG_BOOTBLOCK_NORTHBRIDGE_INIT="northbridge/intel/i945/bootblock.c"CONFIG_HAVE_CMOS_DEFAULT=yCONFIG_CMOS_DEFAULT_FILE="src/mainboard/$(MAINBOARDDIR)/cmos.default"CONFIG_BOOTBLOCK_SOUTHBRIDGE_INIT="southbridge/intel/i82801gx/bootblock.c"CONFIG_IOAPIC_INTERRUPTS_ON_FSB=y# CONFIG_IOAPIC_INTERRUPTS_ON_APIC_SERIAL_BUS is not setCONFIG_HPET_ADDRESS=0xfed00000CONFIG_HAVE_ARCH_MEMSET=yCONFIG_HAVE_ARCH_MEMCPY=yCONFIG_HAVE_ARCH_MEMMOVE=y# CONFIG_MAINBOARD_HAS_CHROMEOS is not set## Chipset### CPU#CONFIG_SOCKET_SPECIFIC_OPTIONS=y# CONFIG_CPU_AMD_AGESA is not setCONFIG_HAVE_INIT_TIMER=yCONFIG_HIGH_SCRATCH_MEMORY_SIZE=0x0CONFIG_CPU_INTEL_MODEL_6EX=yCONFIG_CPU_INTEL_MODEL_6FX=yCONFIG_SMM_TSEG_SIZE=0CONFIG_CPU_INTEL_SOCKET_MFCPGA478=yCONFIG_SSE2=y# CONFIG_CPU_INTEL_FIRMWARE_INTERFACE_TABLE is not set# CONFIG_CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED is not setCONFIG_UDELAY_LAPIC=yCONFIG_LAPIC_MONOTONIC_TIMER=y# CONFIG_UDELAY_TSC is not set# CONFIG_UDELAY_TIMER2 is not set# CONFIG_TSC_CALIBRATE_WITH_IO is not set# CONFIG_TSC_SYNC_LFENCE is not setCONFIG_TSC_SYNC_MFENCE=y# CONFIG_SMM_TSEG is not set# CONFIG_SMM_MODULES is not set# CONFIG_X86_AMD_FIXED_MTRRS is not set# CONFIG_PARALLEL_MP is not set# CONFIG_BACKUP_DEFAULT_SMM_REGION is not setCONFIG_CACHE_AS_RAM=yCONFIG_AP_SIPI_VECTOR=0xfffff000CONFIG_MMX=yCONFIG_SSE=yCONFIG_SUPPORT_CPU_UCODE_IN_CBFS=yCONFIG_CPU_MICROCODE_ADDED_DURING_BUILD=yCONFIG_CPU_MICROCODE_CBFS_GENERATE=y# CONFIG_CPU_MICROCODE_CBFS_EXTERNAL is not set# CONFIG_CPU_MICROCODE_CBFS_NONE is not set## Northbridge#CONFIG_VIDEO_MB=0# CONFIG_NORTHBRIDGE_AMD_AGESA is not set# CONFIG_AMD_NB_CIMX is not set# CONFIG_NORTHBRIDGE_AMD_CIMX_RD890 is not setCONFIG_NORTHBRIDGE_SPECIFIC_OPTIONS=yCONFIG_NORTHBRIDGE_INTEL_I945=y# CONFIG_NORTHBRIDGE_INTEL_SUBTYPE_I945GC is not setCONFIG_NORTHBRIDGE_INTEL_SUBTYPE_I945GM=yCONFIG_CHANNEL_XOR_RANDOMIZATION=y# CONFIG_OVERRIDE_CLOCK_DISABLE is not set# CONFIG_CHECK_SLFRCS_ON_RESUME is not setCONFIG_CBFS_SIZE=0x200000CONFIG_HPET_MIN_TICKS=0x80CONFIG_MAX_PIRQ_LINKS=4## Southbridge#CONFIG_EHCI_BAR=0xfef00000# CONFIG_AMD_SB_CIMX is not set# CONFIG_SOUTHBRIDGE_AMD_CIMX_SB800 is not set# CONFIG_SOUTHBRIDGE_AMD_CIMX_SB900 is not setCONFIG_AMD_SB_SPI_TX_LEN=4# CONFIG_SPI_FLASH is not setCONFIG_SOUTHBRIDGE_INTEL_COMMON=yCONFIG_SOUTHBRIDGE_INTEL_I82801GX=yCONFIG_SOUTHBRIDGE_RICOH_RL5C476=y## Super I/O#CONFIG_SUPERIO_NSC_PC87382=yCONFIG_SUPERIO_NSC_PC87392=y## Embedded Controllers#CONFIG_EC_ACPI=yCONFIG_EC_LENOVO_H8=yCONFIG_H8_DOCK_EARLY_INIT=yCONFIG_EC_LENOVO_PMH7=y## SoC### Devices#CONFIG_MAINBOARD_HAS_NATIVE_VGA_INIT=y# CONFIG_MAINBOARD_HAS_NATIVE_VGA_INIT_TEXTMODECFG is not setCONFIG_MAINBOARD_DO_NATIVE_VGA_INIT=y# CONFIG_VGA_ROM_RUN is not set# CONFIG_ON_DEVICE_ROM_RUN is not set# CONFIG_MULTIPLE_VGA_ADAPTERS is not setCONFIG_PCI=y# CONFIG_HYPERTRANSPORT_PLUGIN_SUPPORT is not setCONFIG_PCIX_PLUGIN_SUPPORT=yCONFIG_PCIEXP_PLUGIN_SUPPORT=yCONFIG_AGP_PLUGIN_SUPPORT=yCONFIG_CARDBUS_PLUGIN_SUPPORT=y# CONFIG_AZALIA_PLUGIN_SUPPORT is not set# CONFIG_PCIEXP_COMMON_CLOCK is not set# CONFIG_PCIEXP_ASPM is not setCONFIG_PCI_BUS_SEGN_BITS=0## VGA BIOS### Display### PXE ROM## CONFIG_PXE_ROM is not setCONFIG_SUBSYSTEM_VENDOR_ID=0x0000CONFIG_SUBSYSTEM_DEVICE_ID=0x0000## Generic Drivers## CONFIG_DRIVERS_I2C_RTD2132 is not setCONFIG_DRIVERS_ICS_954309=y# CONFIG_INTEL_DP is not set# CONFIG_INTEL_DDI is not setCONFIG_INTEL_EDID=y# CONFIG_IPMI_KCS is not set# CONFIG_DRIVER_MAXIM_MAX77686 is not set# CONFIG_DRIVERS_OXFORD_OXPCIE is not set# CONFIG_DRIVER_PARADE_PS8625 is not set# CONFIG_TPM is not set# CONFIG_RTL8168_ROM_DISABLE is not set# CONFIG_DRIVERS_SIL_3114 is not set# CONFIG_DRIVER_TI_TPS65090 is not setCONFIG_HAVE_UART_IO_MAPPED=y# CONFIG_HAVE_UART_MEMORY_MAPPED is not set# CONFIG_HAVE_UART_SPECIAL is not set# CONFIG_DRIVER_XPOWERS_AXP209 is not setCONFIG_MMCONF_SUPPORT=y## Console#CONFIG_EARLY_CONSOLE=yCONFIG_SQUELCH_EARLY_SMP=yCONFIG_CONSOLE_SERIAL=yCONFIG_CONSOLE_SERIAL8250=yCONFIG_CONSOLE_SERIAL_COM1=y# CONFIG_CONSOLE_SERIAL_COM2 is not set# CONFIG_CONSOLE_SERIAL_COM3 is not set# CONFIG_CONSOLE_SERIAL_COM4 is not setCONFIG_TTYS0_BASE=0x3f8CONFIG_CONSOLE_SERIAL_115200=y# CONFIG_CONSOLE_SERIAL_57600 is not set# CONFIG_CONSOLE_SERIAL_38400 is not set# CONFIG_CONSOLE_SERIAL_19200 is not set# CONFIG_CONSOLE_SERIAL_9600 is not setCONFIG_TTYS0_BAUD=115200CONFIG_TTYS0_LCS=3# CONFIG_SPKMODEM is not setCONFIG_HAVE_USBDEBUG=y# CONFIG_HAVE_USBDEBUG_OPTIONS is not set# CONFIG_CONSOLE_NE2K is not set# CONFIG_CONSOLE_CBMEM is not setCONFIG_DEFAULT_CONSOLE_LOGLEVEL_8=y# CONFIG_DEFAULT_CONSOLE_LOGLEVEL_7 is not set# CONFIG_DEFAULT_CONSOLE_LOGLEVEL_6 is not set# CONFIG_DEFAULT_CONSOLE_LOGLEVEL_5 is not set# CONFIG_DEFAULT_CONSOLE_LOGLEVEL_4 is not set# CONFIG_DEFAULT_CONSOLE_LOGLEVEL_3 is not set# CONFIG_DEFAULT_CONSOLE_LOGLEVEL_2 is not set# CONFIG_DEFAULT_CONSOLE_LOGLEVEL_1 is not set# CONFIG_DEFAULT_CONSOLE_LOGLEVEL_0 is not set# CONFIG_NO_POST is not set# CONFIG_CMOS_POST is not setCONFIG_IO_POST=yCONFIG_IO_POST_PORT=0x80CONFIG_HAVE_ACPI_RESUME=y# CONFIG_HAVE_ACPI_SLIC is not setCONFIG_HAVE_HARD_RESET=yCONFIG_HAVE_MONOTONIC_TIMER=y# CONFIG_TIMER_QUEUE is not setCONFIG_HAVE_OPTION_TABLE=y# CONFIG_PIRQ_ROUTE is not setCONFIG_HAVE_SMI_HANDLER=y# CONFIG_PCI_IO_CFG_EXT is not setCONFIG_USE_WATCHDOG_ON_BOOT=yCONFIG_GFXUMA=y# CONFIG_RELOCATABLE_MODULES is not set# CONFIG_HAVE_REFCODE_BLOB is not setCONFIG_HAVE_ACPI_TABLES=yCONFIG_HAVE_MP_TABLE=yCONFIG_HAVE_PIRQ_TABLE=y## System tables#CONFIG_GENERATE_ACPI_TABLES=yCONFIG_GENERATE_MP_TABLE=yCONFIG_GENERATE_PIRQ_TABLE=yCONFIG_GENERATE_SMBIOS_TABLES=y## Payload## CONFIG_PAYLOAD_NONE is not set# CONFIG_PAYLOAD_ELF is not set# CONFIG_PAYLOAD_LINUX is not setCONFIG_PAYLOAD_SEABIOS=y# CONFIG_PAYLOAD_FILO is not set# CONFIG_PAYLOAD_GRUB2 is not set# CONFIG_PAYLOAD_TIANOCORE is not setCONFIG_SEABIOS_STABLE=y# CONFIG_SEABIOS_MASTER is not setCONFIG_PAYLOAD_FILE="$(obj)/seabios/out/bios.bin.elf"CONFIG_COMPRESSED_PAYLOAD_LZMA=y## Debugging## CONFIG_GDB_STUB is not set# CONFIG_DEBUG_CBFS is not setCONFIG_HAVE_DEBUG_RAM_SETUP=y# CONFIG_DEBUG_RAM_SETUP is not set# CONFIG_HAVE_DEBUG_CAR is not set# CONFIG_DEBUG_PIRQ is not set# CONFIG_HAVE_DEBUG_SMBUS is not set# CONFIG_DEBUG_SMI is not set# CONFIG_DEBUG_SMM_RELOCATION is not set# CONFIG_DEBUG_MALLOC is not set# CONFIG_DEBUG_ACPI is not set# CONFIG_TRACE is not set# CONFIG_ENABLE_APIC_EXT_ID is not setCONFIG_WARNINGS_ARE_ERRORS=y# CONFIG_POWER_BUTTON_DEFAULT_ENABLE is not set# CONFIG_POWER_BUTTON_DEFAULT_DISABLE is not set# CONFIG_POWER_BUTTON_FORCE_DISABLE is not set# CONFIG_POWER_BUTTON_IS_OPTIONAL is not setdamo22:you need to still add the vgabios filenamedamo22:CONFIG_VGA_BIOS_FILE="vgabios.bin" is the current settingdamo22:# CONFIG_CONSOLE_CBMEM is not set woopsvimuser: damo22 »       register "gpu_lvds_is_dual_channel" = "1"vimuser: on x60/devicetree.cbdamo22:vimuser: well check your VBT i think its correct thoughvimuser: so 0 was wrong?damo22:it might depend on panelvimuser: Ohvimuser: I get it now.vimuser: I didn't see any code in 5868 that executes anything from the vgarom but,vimuser: you set coreboot to load it into memory, but not execute it.vimuser: I thought "load" only meant put it in cbfsvimuser: is this a correct assessment?vimuser: To let kernel find vbt tables.vimuser: And then we "fake" it later (withotu vga rom loaded).vimuser: damo22: are you testing 5868 on your X60t?damo22:vimuser: its to make linux kernel detect lvds after native init, but if you can also test coreboot native framebuffer with grub too, that would be handyvimuser: So, vgarom has nothing to do with that patch.vimuser: ?vimuser: All I see is a change of stolen memory address, and the backlight values addeddamo22:vimuser: its tricky because the final vgabios in memory changes depending on the panel, because vgarom is self modifyingvimuser: So should I include the vgarunning.bin instead of vgabios.bin ?damo22:yesdamo22:vimuser: if you can load grub as payload and you see something, its a successvimuser: damo22: the problem is, without that patch I just use 5320 as-is, and I see grub as payload already.vimuser: Hence my question above.damo22:vimuser: also, if you can boot into linux after that and dont get any error messages from drm module, its a double successvimuser: Which error messages (besides "Invalid ROM contents") am I looking for?damo22:vimuser: stuff like, page faultvimuser: And should I enable any specific debugging options (such as drm.debug=0x06)damo22:yes that would helpvimuser: Ok: which logs do you want?vimuser: I'll upload it for your referencedamo22:vimuser: kernel boot log and Xorg.0.log, coreboot log if possiblevimuser: probably kern.log and Xorg.0.logvimuser: coreboot log is possible, i have dock.vimuser: anything else?damo22:that is all, thanksvimuser: ok. will do.vimuser: damo22: I could test this on T60 aswell by cherry picking 5345, right?damo22:vimuser: idkvimuser: (and addinf backlight value to deivcetree)vimuser: We should devise a way to test this on T60 aswell.damo22:vimuser: lets just see if the x60 fix worksdamo22:it still needs work if the test passesvimuser: Ok but, you just have that one line changed in gma.c, and backlight value changed it x60/devicetree.cbdamo22:yesdamo22:phcoder did most of the workvimuser: So, I could run this same test on T60 by cherry picking 5345 on top of 5868, changing t60/devicetree.cb's backlight value and including T60 runningvga.bin and having that load (but not execute)damo22:its a small bug i thinkvimuser: I will do that above, after X60 is tested.damo22:vimuser: youre always talking about more and more combinations of tests, lets just get one rightvimuser: Yes. Just a thought. We'll test X60 exclusively. T60 can easily be tested later.vimuser: Ok..... back soon. I'll get you the results you wanted. I'll be using 3.14.4 (the one samnob made).damo22:thanksvimuser: We should do this with the latest runningvga.bin (from extracting with dd on the latest vgabios.bin)vimuser: My one is olderdamo22:vimuser: version number of vgabios is irrelevant if it was taken from a lenovo bios that used to run on your machine, and since pulled from ramdamo22:ie, it should have the correct VBT valuesdamo22:for your machine</pre></p>
 |