1. 12 2月, 2013 1 次提交
  2. 02 4月, 2012 1 次提交
  3. 23 3月, 2012 1 次提交
    • M
      microblaze: Handle TLB skip size dynamically · e02db0aa
      Michal Simek 提交于
      This patch fix the problem with rootfs on JFFS2 with early printk
      console turned on.
      
      The origin version used TLB63 for temporary early printk mapping.
      The code expect that kernel is not able to use all 64 TLB entries
      till early printk console is remapped by ioremap. After that
      temporary mapping on TLB63 is silently lost.
      This expectation give the opportunity to have early console pretty
      early.
      
      Microblaze systems with JFFS2 rootfs with early printk console turned on
      used more than 64 TLB entries before kernel can remap early console.
      Based on that kernel does access to bad area because early printk mapping
      is rewritten.
      
      This patch introduces tlb_skip variable which dynamically stores number
      of skipped TLB entries from the TLB0. skip_tlb=2 means that TLB0 and TLB1
      should be skipped.
      
      MICROBLAZE_TLB_SKIP defines how many TLB is skipped at the kernel start.
      They can be used for user purpose.
      
      TLB 63 is used for temporary LMB mapping (MICROBLAZE_LMB_TLB_ID).
      
      Also clean TLBLO when kernel starts.
      
      For specific kernel sizes kernel can use just one TLB. Detect this case
      and use the second TLB for general purpose.
      
      Change _tlbia function to flush TLB entries from tlb_skip to TLB_SIZE.
      
      Export tlb_skip size through debugfs.
      Signed-off-by: NMichal Simek <monstr@monstr.eu>
      e02db0aa
  4. 19 3月, 2012 1 次提交
  5. 05 1月, 2012 1 次提交
  6. 25 7月, 2011 3 次提交
    • M
      microblaze: Add support for early console on mdm · ca12adc8
      Michal Simek 提交于
      Support mdm early console:
       - extend time for retries
       - add mdm compatible property
      Signed-off-by: NMichal Simek <monstr@monstr.eu>
      ca12adc8
    • M
      microblaze: Simplify early console binding from DT · 2aa8e375
      Michal Simek 提交于
      Recognize early Linux console from chosen - linux,stdout-path
      instead of detecting the first console with appropriate
      compatible strings.
      This patch solved the problem on system with multiple
      consoles.
      Signed-off-by: NMichal Simek <monstr@monstr.eu>
      2aa8e375
    • M
      microblaze: Get early printk console earlier · e721a45f
      Michal Simek 提交于
      1. Register early console as standard console
      2. Enable CON_BOOT console flag to ensure auto-unregistering by the kernel
      3. remap_early_printk function remap physical console baseaddr to virtual space
      
      Usage specific function for console remap is done after memory initialization
      with IRQ turn off that's why there is not necessary to protect it.
      
      The reason for remapping is that the kernel use TLB 63 for 1:1 address mapping
      to be able to use console in very early boot-up phase. But allocating one TLB
      just for console caused performance degression that's why ioremaps create new
      mapping and TLB 63 is automatically released and ready to use.
      Signed-off-by: NMichal Simek <monstr@monstr.eu>
      CC: Russell King <linux@arm.linux.org.uk>
      CC: Ralf Baechle <ralf@linux-mips.org>
      CC: Ingo Molnar <mingo@redhat.com>
      CC: Alan Cox <alan@linux.intel.com>
      CC: <linux-serial@vger.kernel.org>
      CC: Arnd Bergmann <arnd@arndb.de>
      e721a45f
  7. 21 10月, 2010 4 次提交
  8. 26 5月, 2009 1 次提交
  9. 23 4月, 2009 1 次提交
  10. 27 3月, 2009 1 次提交