1. 09 Mar, 2007 11 commits
    • Dave Jones's avatar
      AGP: intel-agp bugfix · 33b44013
      Dave Jones authored
      On Sun, Feb 04, 2007 at 04:51:38PM +0100, Eric Piel wrote:
       > Hello,
       > 
       > I've got a regression in 2.6.20-rc7 (-rc6 was fine) due to commit 
       > 4b95320f ([AGPGART] intel_agp: restore 
       > graphics device's pci space early in resume).
      
      I think the key to this failure is the last line here ..
      
       > agpgart-intel 0000:00:00.0: resuming
       > PM: Writing back config space on device 0000:00:02.0 at offset f (was 10b, writing 0)
       > PM: Writing back config space on device 0000:00:02.0 at offset d (was dc, writing 0)
       > PM: Writing back config space on device 0000:00:02.0 at offset b (was 10161025, writing 0)
       > PM: Writing back config space on device 0000:00:02.0 at offset 5 (was f4000000, writing 0)
       > PM: Writing back config space on device 0000:00:02.0 at offset 4 (was f8000008, writing 0)
       > PM: Writing back config space on device 0000:00:02.0 at offset 2 (was 3000011, writing 0)
       > PM: Writing back config space on device 0000:00:02.0 at offset 1 (was 2b00007, writing 0)
       > PM: Writing back config space on device 0000:00:02.0 at offset 0 (was 11328086, writing 0)
       > agpgart: Unable to remap memory.
      
      This then blows up the next access to intel_i810_private.registers, which happens to
      be intel_i810_insert_entries.
      
      Either we need .suspend methods which unmap these regions, or we need
      to skip trying to map them a second time on resume.
      
      There's an ugly patch below which does the latter. Give it a try?
      
      The intel-agp suspend/resume code has really grown into something
      of a monster, and could use some refactoring in a big way.
      
      		Dave
      
      
      From: Dave Jones <davej@redhat.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      33b44013
    • Michael Buesch's avatar
      bcm43xx: Fix for oops on ampdu status · 5678ae79
      Michael Buesch authored
      If bcm43xx were to process an afterburner (ampdu) status response, Linux would oops. The
      ampdu and intermediate status bits are properly named.
      Signed-off-by: default avatarMichael Buesch <mb@bu3sch.de>
      Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      5678ae79
    • Larry Finger's avatar
      bcm43xx: Fix for oops on resume · 86b1745b
      Larry Finger authored
      There is a kernel oops on bcm43xx when resuming due to an overly tight timeout loop.
      
      Signed-off-by: Larry Finger<Larry.Finger@lwfinger.net>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      86b1745b
    • Tejun Heo's avatar
      ide: fix drive side 80c cable check · 027fc18b
      Tejun Heo authored
      eighty_ninty_three() had word 93 validitity check but not the 80c bit
      test itself (bit 12).  This increases the chance of incorrect wire
      detection especially because host side cable detection is often
      unreliable and we sometimes soley depend on drive side cable
      detection.  Fix it.
      Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
      Acked-by: default avatarAlan <alan@lxorguk.ukuu.org.uk>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      027fc18b
    • David Howells's avatar
      Keys: Fix key serial number collision handling · dbd60d51
      David Howells authored
      Fix the key serial number collision avoidance code in key_alloc_serial().
      
      This didn't use to be so much of a problem as the key serial numbers were
      allocated from a simple incremental counter, and it would have to go through
      two billion keys before it could possibly encounter a collision.  However, now
      that random numbers are used instead, collisions are much more likely.
      
      This is fixed by finding a hole in the rbtree where the next unused serial
      number ought to be and using that by going almost back to the top of the
      insertion routine and redoing the insertion with the new serial number rather
      than trying to be clever and attempting to work out the insertion point
      pointer directly.
      
      This fixes kernel BZ #7727.
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Cc: Chuck Ebbert <cebbert@redhat.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      dbd60d51
    • NeilBrown's avatar
      knfsd: Fix a race in closing NFSd connections. · b3725e12
      NeilBrown authored
      If you lose this race, it can iput a socket inode twice and you
      get a BUG in fs/inode.c
      
      When I added the option for user-space to close a socket,
      I added some cruft to svc_delete_socket so that I could call
      that function when closing a socket per user-space request.
      
      This was the wrong thing to do.  I should have just set SK_CLOSE
      and let normal mechanisms do the work.
      
      Not only wrong, but buggy.  The locking is all wrong and it openned
      up a race where-by a socket could be closed twice.
      
      So this patch:
        Introduces svc_close_socket which sets SK_CLOSE then either leave
        the close up to a thread, or calls svc_delete_socket if it can
        get SK_BUSY.
      
        Adds a bias to sk_busy which is removed when SK_DEAD is set,
        This avoid races around shutting down the socket.
      
        Changes several 'spin_lock' to 'spin_lock_bh' where the _bh 
        was missing.
      
      Bugzilla-url: http://bugzilla.kernel.org/show_bug.cgi?id=7916Signed-off-by: default avatarNeil Brown <neilb@suse.de>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      
      b3725e12
    • Tejun Heo's avatar
      pata_amd: fix an obvious bug in cable detection · e3844c2d
      Tejun Heo authored
      80c test mask is at bits 18 and 19 of EIDE Controller Configuration
      not 22 and 23.  Fix it.
      Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
      Acked-by: default avatarAlan Cox <alan@lxorguk.ukuu.org.uk>
      e3844c2d
    • Dan Williams's avatar
      prism54: correct assignment of DOT1XENABLE in WE-19 codepaths · bbf22c56
      Dan Williams authored
      Correct assignment of DOT1XENABLE in WE-19 codepaths.
      RX_UNENCRYPTED_EAPOL = 1 really means setting DOT1XENABLE _off_, and
      vice versa.  The original WE-19 patch erroneously reversed that.  This
      patch fixes association with unencrypted and WEP networks when using
      wpa_supplicant.
      
      It also adds two missing break statements that, left out, could result
      in incorrect card configuration.
      
      Applies to (I think) 2.6.19 and later.
      Signed-off-by: default avatarDan Williams <dcbw@redhat.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      bbf22c56
    • Atsushi Nemoto's avatar
      rtc-pcf8563: detect polarity of century bit automatically · 85560a1e
      Atsushi Nemoto authored
      The usage of the century bit was inverted on 2.6.19 following to PCF8563's
      description, but it was not match to usage suggested by RTC8564's
      datasheet.  Anyway what MO_C=1 means can vary on each platform.  This patch
      is to detect its polarity in get_datetime routine.  The default value of
      c_polarity is 0 (MO_C=1 means 19xx) so that this patch does not change
      current behavior even if get_datetime was not called before set_datetime.
      Signed-off-by: default avatarAtsushi Nemoto <anemo@mba.ocn.ne.jp>
      Cc: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@teamlog.com>
      Cc: David Brownell <dbrownell@users.sourceforge.net>
      Cc: Alessandro Zummo <a.zummo@towertech.it>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      85560a1e
    • Paolo 'Blaisorblade' Giarrusso's avatar
      x86_64: fix 2.6.18 regression - PTRACE_OLDSETOPTIONS should be accepted · 9d4b636c
      Paolo 'Blaisorblade' Giarrusso authored
      Also PTRACE_OLDSETOPTIONS should be accepted, as done by kernel/ptrace.c and
      forced by binary compatibility. UML/32bit breaks because of this - since it is wise
      enough to use PTRACE_OLDSETOPTIONS to be binary compatible with 2.4 host
      kernels.
      
      Until 2.6.17 (commit f0f2d653) we had:
      
             default:
                      return sys_ptrace(request, pid, addr, data);
      
      Instead here we have:
              case PTRACE_GET_THREAD_AREA:
      	case ...:
                      return sys_ptrace(request, pid, addr, data);
      
              default:
                      return -EINVAL;
      
      This change was a style change - when a case is added, it must be explicitly
      tested this way. In this case, not enough testing was done.
      
      Cc: Andi Kleen <ak@suse.de>
      Signed-off-by: default avatarPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      9d4b636c
    • Mark Fasheh's avatar
      ocfs2: ocfs2_link() journal credits update · 89417b1a
      Mark Fasheh authored
      Commit 592282cf fixed some missing directory
      c/mtime updates in part by introducing a dinode update in ocfs2_add_entry().
      Unfortunately, ocfs2_link() (which didn't update the directory inode before)
      is now missing a single journal credit. Fix this by doubling the number of
      inode updates expected during hard link creation.
      Signed-off-by: default avatarMark Fasheh <mark.fasheh@oracle.com>
      Signed-off-by: default avatarChris Wright <chrisw@sous-sol.org>
      89417b1a
  2. 20 Feb, 2007 2 commits
  3. 04 Feb, 2007 3 commits
  4. 03 Feb, 2007 11 commits
  5. 02 Feb, 2007 13 commits