Re: [U-Boot] Data cache breaks U-Boot on ARM
Hello Drasko, Great. Maybe you want to post your patches so others can benefit from that acchievement, too? It will be my pleasure, so I will take a look how can I make a usefull patch as soon as I clean the code. I am very interested in your work on this subject. If you want, I can help you cleaning it up for mainline. So, I would even be interested in the raw code as well. I can also take a look at the USB code to get that working... Kind Regards, Remy ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] Data cache breaks U-Boot on ARM
On Wed, Apr 8, 2009 at 2:44 PM, Wolfgang Denk w...@denx.de wrote: Dear Drasko, please post U-Boot related questions on the mailing list Hi Wolfgang, sorry for sending e-mail to your private adress, it was metter of reply and not reply to all. Sorry for the misstake. Please see http://en.wikipedia.org/wiki/Memory_barrier Thank you very much for your time and help. With the pointers and examples you gave I corrected the code (it was problem of DCaching perpiheral device registers region, as you pointed out), and now it works fine and fast (after more than one week of torture)! Best regards, Drasko DRASKOVIC ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] Data cache breaks U-Boot on ARM
Dear Drasko, in message 5ec3d7930904080651g5328ad12g3df2f28ae340...@mail.gmail.com you wrote: Thank you very much for your time and help. With the pointers and examples you gave I corrected the code (it was problem of DCaching perpiheral device registers region, as you pointed out), and now it works fine and fast (after more than one week of torture)! Great. Maybe you want to post your patches so others can benefit from that acchievement, too? Umm... is it correct to assume that you do not use USB on your system (resp. did not test USB yet) ? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de Accident: A condition in which presence of mind is good, but absence of body is better. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] Data cache breaks U-Boot on ARM
On Wed, Apr 8, 2009 at 5:00 PM, Wolfgang Denk w...@denx.de wrote: Great. Maybe you want to post your patches so others can benefit from that acchievement, too? It will be my pleasure, so I will take a look how can I make a usefull patch as soon as I clean the code. Umm... is it correct to assume that you do not use USB on your system (resp. did not test USB yet) ? It is corrrect, no USB used. Best Regards, Drasko DRASKOVIC ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] Data cache breaks U-Boot on ARM
Dear Drasko, in message 5ec3d7930904080854k2db159d3rc889ce80a8d0b...@mail.gmail.com you wrote: Umm... is it correct to assume that you do not use USB on your system (resp. did not test USB yet) ? It is corrrect, no USB used. Do you have USB on your board, so you can test it? I'm interested if USB still works for you with DCache on. Our experience is that you either have caches on *or* working USB on ARM, but this might be just a single case, so I'm interestedin other experiences. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de Heavier than air flying machines are impossible. -- Lord Kelvin, President, Royal Society, c. 1895 ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] Data cache breaks U-Boot on ARM
Dear Drasko DRASKOVIC, In message 5ec3d7930904071340t6b233551vbea8d95f69a95...@mail.gmail.com you wrote: However, when DCache is switched on with WRITETHROUGH or WRITEBACK policy, U-Boot stucks. Switching on only MMU and ICache works well, so I presume that pagetables were correctly set. Does anybody have idea what can be wrong here? I tried invalidating both caches and TLB before and after turning on DCache, but I get the same result. This is pretty normal. Many accesses to memory mapped device registers and things like that will stop working if you by accident enable caching for such areas. Also many devcie drivers are probably missing appropriate memory barrier instructions etc. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de How is this place run - is it an anarchy? No, I wouldn't say so; it is not that well organised... ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot