1. 17 4月, 2005 8 次提交
    • B
      [PATCH] ppc32: Fix AGP and sleep again · 0c541b44
      Benjamin Herrenschmidt 提交于
      My previous patch that added sleep support for uninorth-agp and some AGP
      "off" stuff in radeonfb and aty128fb is breaking some configs.  More
      specifically, it has problems with rage128 setups since the DRI code for
      these in X doesn't properly re-enable AGP on wakeup or console switch
      (unlike the radeon DRM).
      
      This patch fixes the problem for pmac once for all by using a different
      approach.  The AGP driver "registers" special suspend/resume callbacks with
      some arch code that the fbdev's can later on call to suspend and resume
      AGP, making sure it's resumed back in the same state it was when suspended.
       This is platform specific for now.  It would be too complicated to try to
      do a generic implementation of this at this point due to all sort of weird
      things going on with AGP on other architectures.  We'll re-work that whole
      problem cleanly once we finally merge fbdev's and DRI.
      
      In the meantime, please apply this patch which brings back some r128 based
      laptops into working condition as far as system sleep is concerned.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      0c541b44
    • B
      [PATCH] ppc32: Fix cpufreq problems · 7a648b9e
      Benjamin Herrenschmidt 提交于
      This patch updates the PowerMac cpufreq driver.  It depends on the addition
      of the suspend() method (my previous patch) and on the new flag I defined
      to silence some warnings that are normal for us.
      
      It fixes various issues related to cpufreq on pmac, including some crashes
      on some models when sleeping the machine while in low speed, proper voltage
      control on some newer machines, and adds voltage control on 750FX based G3
      laptops.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      7a648b9e
    • P
      [PATCH] ppc32: fix single-stepping of emulated instructions · 6c26e03b
      Paul Mackerras 提交于
      On ppc, we emulate instructions that cause alignment exceptions.  If we are
      single-stepping an instruction and it causes an alignment exception, we
      will currently do the next instruction as well before taking the
      single-step exception.  This patch fixes that, so we take the single-step
      exception after emulating the instruction.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      6c26e03b
    • P
      [PATCH] ppc32: oops on kernel altivec assist exceptions · e378cc16
      Paul Mackerras 提交于
      If we should happen to get an altivec assist exception while executing in
      the kernel, we will currently try to handle it and fail, and end up oopsing
      with (apparently) a segfault.  (An altivec assist exception occurs for
      floating-point altivec instructions with denormalized inputs or outputs if
      the altivec unit is in java mode.)
      
      This patch checks explicitly if we are in user mode and prints a useful
      message if not.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      e378cc16
    • P
      [PATCH] ppc32: improve timebase sync for SMP · 6460b4cc
      Paul Mackerras 提交于
      Currently the procedure in the ppc32 kernel that synchronizes the timebase
      registers across an SMP powermac system does so by setting both timebases
      to zero.  That is OK at boot but causes problems if done later.  So that we
      can do hotplug CPU on these machines, this patch changes the code so it
      reads the timebase from one CPU and transfers the value to the other CPU. 
      (Hotplug CPU is needed for sleep (aka suspend to RAM) to work.)
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      6460b4cc
    • E
      [PATCH] ppc32: ppc4xx_pic - add acknowledge when enabling level-sensitive IRQ · 35b535d9
      Eugene Surovegin 提交于
      This patch adds interrupt acknowledge to the PPC4xx PIC enable_irq
      implementation for level-sensitive IRQ sources.  This helps in cases when
      enable/disable_irq is used in interrupt handlers for hardware, which
      requires IRQ acknowledge to be issued from non-interrupt context (e.g. 
      when actual ACK in device needs an I2C transaction).  For such strange
      hardware, interrupt handler disables IRQ and defers actual ACK to some
      other context.  When this happens, IRQ is enabled again.  For
      level-sensitive sources we get spurious triggering right after IRQ is
      enabled.  This patch fixes this.
      
      Suggested by Tolunay Orkun <listmember@orkun.us>.
      Signed-off-by: NEugene Surovegin <ebs@ebshome.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      35b535d9
    • P
      [PATCH] ppc32: fix bogosity in process-freezing code · 16acbc62
      Paul Mackerras 提交于
      The code that went into arch/ppc/kernel/signal.c recently to handle process
      freezing seems to contain a dubious assumption: that a process that calls
      do_signal when PF_FREEZE is set will have entered the kernel because of a
      system call.  This patch removes that assumption.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      16acbc62
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4