1. 17 11月, 2006 1 次提交
  2. 05 10月, 2006 1 次提交
    • D
      IRQ: Maintain regs pointer globally rather than passing to IRQ handlers · 7d12e780
      David Howells 提交于
      Maintain a per-CPU global "struct pt_regs *" variable which can be used instead
      of passing regs around manually through all ~1800 interrupt handlers in the
      Linux kernel.
      
      The regs pointer is used in few places, but it potentially costs both stack
      space and code to pass it around.  On the FRV arch, removing the regs parameter
      from all the genirq function results in a 20% speed up of the IRQ exit path
      (ie: from leaving timer_interrupt() to leaving do_IRQ()).
      
      Where appropriate, an arch may override the generic storage facility and do
      something different with the variable.  On FRV, for instance, the address is
      maintained in GR28 at all times inside the kernel as part of general exception
      handling.
      
      Having looked over the code, it appears that the parameter may be handed down
      through up to twenty or so layers of functions.  Consider a USB character
      device attached to a USB hub, attached to a USB controller that posts its
      interrupts through a cascaded auxiliary interrupt controller.  A character
      device driver may want to pass regs to the sysrq handler through the input
      layer which adds another few layers of parameter passing.
      
      I've build this code with allyesconfig for x86_64 and i386.  I've runtested the
      main part of the code on FRV and i386, though I can't test most of the drivers.
      I've also done partial conversion for powerpc and MIPS - these at least compile
      with minimal configurations.
      
      This will affect all archs.  Mostly the changes should be relatively easy.
      Take do_IRQ(), store the regs pointer at the beginning, saving the old one:
      
      	struct pt_regs *old_regs = set_irq_regs(regs);
      
      And put the old one back at the end:
      
      	set_irq_regs(old_regs);
      
      Don't pass regs through to generic_handle_irq() or __do_IRQ().
      
      In timer_interrupt(), this sort of change will be necessary:
      
      	-	update_process_times(user_mode(regs));
      	-	profile_tick(CPU_PROFILING, regs);
      	+	update_process_times(user_mode(get_irq_regs()));
      	+	profile_tick(CPU_PROFILING);
      
      I'd like to move update_process_times()'s use of get_irq_regs() into itself,
      except that i386, alone of the archs, uses something other than user_mode().
      
      Some notes on the interrupt handling in the drivers:
      
       (*) input_dev() is now gone entirely.  The regs pointer is no longer stored in
           the input_dev struct.
      
       (*) finish_unlinks() in drivers/usb/host/ohci-q.c needs checking.  It does
           something different depending on whether it's been supplied with a regs
           pointer or not.
      
       (*) Various IRQ handler function pointers have been moved to type
           irq_handler_t.
      Signed-Off-By: NDavid Howells <dhowells@redhat.com>
      (cherry picked from 1b16e7ac850969f38b375e511e3fa2f474a33867 commit)
      7d12e780
  3. 03 10月, 2006 2 次提交
  4. 02 9月, 2006 1 次提交
  5. 31 8月, 2006 1 次提交
  6. 01 8月, 2006 1 次提交
  7. 11 7月, 2006 1 次提交
  8. 03 7月, 2006 1 次提交
  9. 01 7月, 2006 1 次提交
  10. 27 6月, 2006 3 次提交
  11. 26 6月, 2006 1 次提交
  12. 24 6月, 2006 1 次提交
  13. 23 6月, 2006 1 次提交
  14. 11 4月, 2006 1 次提交
  15. 28 3月, 2006 3 次提交
  16. 15 1月, 2006 2 次提交
  17. 13 1月, 2006 1 次提交
  18. 11 1月, 2006 12 次提交
  19. 06 1月, 2006 1 次提交
    • L
      [ATYFB]: Fix onboard video on SPARC Blade 100 for 2.6.{13,14,15} · 5b373e10
      Luis F. Ortiz 提交于
      	I have recently been switching from using 2.4.32 on my trusty
      old Sparc Blade 100 to using 2.6.15 .  Some of the problems I ran into
      were distorted video when the console was active (missing first
      character, skipped dots) and when running X windows (colored snow,
      stripes, missing pixels).  A quick examination of the 2.6 versus 2.4
      source for the ATY driver revealed alot of changes.
      
               A closer look at the code/data for the 64GR/XL chip revealed
      two minor "typos" that the rewriter(s) of the code made.  The first is
      a incorrect clock value (230 .vs. 235) and the second is a missing
      flag (M64F_SDRAM_MAGIC_PLL).  Making both these changes seems to have
      fixed my problem.  I tend to think the 235 value is the correct one,
      as there is a 29.4 Mhz clock crystal close to the video chip and 235.2
      (29.4*8) is too close to 235 to make it a coincidence.
      
      	The flag for M64F_SDRAM_MAGIC_PLL was dropped during the
      changes made by adaplas in file revision 1.72 on the old bitkeeper
      repository.
      
      	The change relating to the clock rate has been there forever,
      at least in the 2.6 tree.  I'm not sure where to look for the old 2.5
      tree or if anyone cares when it happened.
      
      On SPARC Blades 100's, which use the ATY MACH64GR video chipset, the
      clock crystal frequency is 235.2 Mhz, not 230 Mhz.  The chipset also
      requires the use of M64F_SDRAM_MAGIC_PLL in order to setup the PLL
      properly for the DRAM.
      Signed-off-by: NLuis F. Ortiz <lfo@Polyad.Org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5b373e10
  20. 07 11月, 2005 2 次提交
    • A
      [PATCH] atyfb: Get initial mode timings from LCD BIOS · 1013d266
      Antonino A. Daplas 提交于
      Reported by: Jean-Philippe Guérard (Bugzilla Bug 1782)
      
      "I've tried with video=atyfb:debug and video=atyfb:debug,mode:1280x600, \
      nomtrr.
      
      In both case, the screen stays black, but seems divided into 4 vertical bands.
       Some white lines pop up randomly on each vertical band."
      
      The problem is a combination of an incorrect xclk plus lack of timing
      information.  The adapter is attached to an LCD device that can do 1280x600
      (which is not a standard resolution).  The global mode database does not have
      an entry for it.  Fortunately, the Video BIOS contains the complete timing
      info for this display, however, atyfb is not making use of it.
      
      Add support to get the timing information from the BIOS, if available.
      Signed-off-by: NAntonino Daplas <adaplas@pol.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      1013d266
    • A
      [PATCH] fbcon/fbdev: Move softcursor out of fbdev to fbcon · c465e05a
      Antonino A. Daplas 提交于
      According to Jon Smirl, filling in the field fb_cursor with soft_cursor for
      drivers that do not support hardware cursors is redundant.  The soft_cursor
      function is usable by all drivers because it is just a wrapper around
      fb_imageblit.  And because soft_cursor is an fbcon-specific hook, the file is
      moved to the console directory.
      
      Thus, drivers that do not support hardware cursors can leave the fb_cursor
      field blank.  For drivers that do, they can fill up this field with their own
      version.
      
      The end result is a smaller code size.  And if the framebuffer console is not
      loaded, module/kernel size is also reduced because the soft_cursor module will
      also not be loaded.
      Signed-off-by: NAntonino Daplas <adaplas@pol.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      c465e05a
  21. 10 9月, 2005 1 次提交
  22. 05 9月, 2005 1 次提交