1. 20 8月, 2005 12 次提交
    • L
      916fa469
    • L
    • S
      [PATCH] NFSv4: unbalanced BKL in nfs_atomic_lookup() · 01c314a0
      Steve Dickson 提交于
      Added missing unlock_kernel() to NFSv4 atomic lookup.
      Signed-off-by: NSteve Dickson <steved@redhat.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      01c314a0
    • S
      [PATCH] Mobil Pentium 4 HT and the NMI · cd3716ab
      Steven Rostedt 提交于
      I'm trying to get the nmi working with my laptop (IBM ThinkPad G41) and after
      debugging it a while, I found that the nmi code doesn't want to set it up for
      this particular CPU.
      
      Here I have:
      
      $ cat /proc/cpuinfo
      processor       : 0
      vendor_id       : GenuineIntel
      cpu family      : 15
      model           : 4
      model name      : Mobile Intel(R) Pentium(R) 4 CPU 3.33GHz
      stepping        : 1
      cpu MHz         : 3320.084
      cache size      : 1024 KB
      physical id     : 0
      siblings        : 2
      core id         : 0
      cpu cores       : 1
      fdiv_bug        : no
      hlt_bug         : no
      f00f_bug        : no
      coma_bug        : no
      fpu             : yes
      fpu_exception   : yes
      cpuid level     : 3
      wp              : yes
      flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
      mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe pni
      monitor ds_cpl est tm2 cid xtpr
      bogomips        : 6642.39
      
      processor       : 1
      vendor_id       : GenuineIntel
      cpu family      : 15
      model           : 4
      model name      : Mobile Intel(R) Pentium(R) 4 CPU 3.33GHz
      stepping        : 1
      cpu MHz         : 3320.084
      cache size      : 1024 KB
      physical id     : 0
      siblings        : 2
      core id         : 0
      cpu cores       : 1
      fdiv_bug        : no
      hlt_bug         : no
      f00f_bug        : no
      coma_bug        : no
      fpu             : yes
      fpu_exception   : yes
      cpuid level     : 3
      wp              : yes
      flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
      mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe pni
      monitor ds_cpl est tm2 cid xtpr
      bogomips        : 6637.46
      
      And the following code shows:
      
      $ cat linux-2.6.13-rc6/arch/i386/kernel/nmi.c
      
      [...]
      
      void setup_apic_nmi_watchdog (void)
      {
              switch (boot_cpu_data.x86_vendor) {
              case X86_VENDOR_AMD:
                      if (boot_cpu_data.x86 != 6 && boot_cpu_data.x86 != 15)
                              return;
                      setup_k7_watchdog();
                      break;
              case X86_VENDOR_INTEL:
                       switch (boot_cpu_data.x86) {
                      case 6:
                              if (boot_cpu_data.x86_model > 0xd)
                                      return;
      
                              setup_p6_watchdog();
                              break;
                      case 15:
                              if (boot_cpu_data.x86_model > 0x3)
                                      return;
      
      Here I get boot_cpu_data.x86_model == 0x4.  So I decided to change it and
      reboot.  I now seem to have a working NMI.  So, unless there's something know
      to be bad about this processor and the NMI.  I'm submitting the following
      patch.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      Acked-by: NZwane Mwaikambo <zwane@arm.linux.org.uk>
      Acked-by: NMikael Pettersson <mikpe@csd.uu.se>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      cd3716ab
    • A
      [PATCH] Fix up symlink function pointers · 008b150a
      Al Viro 提交于
      This fixes up the symlink functions for the calling convention change:
      
       * afs, autofs4, befs, devfs, freevxfs, jffs2, jfs, ncpfs, procfs,
         smbfs, sysvfs, ufs, xfs - prototype change for ->follow_link()
       * befs, smbfs, xfs - same for ->put_link()
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      008b150a
    • L
      Fix nasty ncpfs symlink handling bug. · cc314eef
      Linus Torvalds 提交于
      This bug could cause oopses and page state corruption, because ncpfs
      used the generic page-cache symlink handlign functions.  But those
      functions only work if the page cache is guaranteed to be "stable", ie a
      page that was installed when the symlink walk was started has to still
      be installed in the page cache at the end of the walk.
      
      We could have fixed ncpfs to not use the generic helper routines, but it
      is in many ways much cleaner to instead improve on the symlink walking
      helper routines so that they don't require that absolute stability.
      
      We do this by allowing "follow_link()" to return a error-pointer as a
      cookie, which is fed back to the cleanup "put_link()" routine.  This
      also simplifies NFS symlink handling.
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      cc314eef
    • A
      [PATCH] jffs2: fix symlink error handling · 2fb1e308
      Al Viro 提交于
      The current calling conventions for ->follow_link() are already fairly
      complex.
      
      What we have is
      	1) you can return -error; then you must release nameidata yourself
      	   and ->put_link() will _not_ be called.
      	2) you can do nd_set_link(nd, ERR_PTR(-error)) and return 0
      	3) you can do nd_set_link(nd, path) and return 0
      	4) you can return 0 (after having moved nameidata yourself)
      
      jffs2 follow_link() is broken - it has an exit where it returns
      -EIO and leaks nameidata.
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      2fb1e308
    • A
      [SPARC]: Fix weak aliases · 83c4e437
      Al Viro 提交于
      sparc_ksyms.c used to declare weak alias to several gcc intrinsics.  It
      doesn't work with gcc4 anymore - it wants a declaration for the thing
      we are aliasing to and that's not going to happen for something like
      .mul, etc.  Replaced with direct injection of weak alias on the assembler
      level - .weak <alias> followed by <alias> = <aliased>; that works on all
      gcc versions.
      Signed-off-by: NAl Viro <viro@parcelfarce.linux.theplanet.co.uk>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      83c4e437
    • D
      [SPARC64]: Move kernel unaligned trap handlers into assembler file. · a3f99858
      David S. Miller 提交于
      GCC 4.x really dislikes the games we are playing in
      unaligned.c, and the cleanest way to fix this is to
      move things into assembler.
      
      Noted by Al Viro.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a3f99858
    • B
      [SPARC]: Deal with glibc changing macro names in modpost.c · 8d529014
      Ben Colline 提交于
      GLIBC 2.3.4 and later changed the STT_REGISTER macro to
      STT_SPARC_REGISTER, so we need to cope with that somehow.
      
      Original patch from fabbione, reposted by Ben Collins.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8d529014
    • D
      [TG3]: Update driver version and reldate. · 034ea638
      David S. Miller 提交于
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      034ea638
    • M
      [TG3]: Fix SerDes detection · da6b2d01
      Michael Chan 提交于
      A problem was reported by Grant Grundler on an HP rx8620 using IOX
      Core LAN partno(A7109-6) 5701 copper NIC. The tg3 driver mistakenly
      detects this NIC as having a SerDes PHY and link does not come up as a
      result.
      
      The problem was caused by an incorrectly programmed eeprom that set the
      NIC_SRAM_DATA_CFG_PHY_TYPE_FIBER bit in the NIC_SRAM_DATA_CFG location.
      
      This patch will override the NIC_SRAM_DATA_CFG_PHY_TYPE_FIBER bit if a
      valid PHY ID is read from the MII registers on older 570x chips where
      the MII interface is not used on SerDes chips. On newer chips such as
      the 5780 that use MII for both copper and SerDes, SerDes detection must
      rely on the eeprom.
      
      This patch will make the SerDes detection identical to versions 3.25 and
      older.
      Signed-off-by: NMichael Chan <mchan@broadcom.com>
      Acked-by: NGrant Grundler <iod00d@hp.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      da6b2d01
  2. 19 8月, 2005 28 次提交