1. 01 May, 2005 6 commits
  2. 30 Apr, 2005 13 commits
  3. 29 Apr, 2005 21 commits
    • Linus Torvalds's avatar
    • Linus Torvalds's avatar
      dd96a8e0
    • Sascha Hauer's avatar
      [PATCH] ARM: 2654/1: i.MX UART initialization sets and honors UFCR value · 587897f5
      Sascha Hauer authored
      Patch from Sascha Hauer
      
      This patch adds UCFR_RFDIV setting into i.MX serial driver.
      This is required, if loader does not fully agree with Linux kernel
      about UART setup manner. Linux only blindly expected some values until
      now. This should enable to use even serial ports not recognized by
      boot-loader as for example third UART found in the bluethoot module.
      Patch also enables to detect original setup baudrate in more cases.
      
      Signed-off-by: Pavel Pisa
      Signed-off-by: Sascha Hauer
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      587897f5
    • Lennert Buytenhek's avatar
      [PATCH] ARM: 2660/2: fix ixdp2800 boot and pci init · 53e173f6
      Lennert Buytenhek authored
      Patch from Lennert Buytenhek
      
      The IXDP2800 is an evalution platform for the IXP2800 processor that
      has two IXP2800s connected to the same PCI bus.  This is problematic
      as both CPUs will try to configure the PCI bus as they boot linux.
      Contrary to on the other IXP2000 platforms, the boot loader on the
      IXDP2800 doesn't configure the PCI bus properly, so we do want the
      linux instance on one of the CPUs to do that.
      Making one of the CPUs ignore the PCI bus (and thus act like a pure
      PCI slave device) is not an option because there is a 82559 NIC on
      the PCI bus for each of the CPUs.
      The chosen solution is to have the master CPU configure the PCI bus
      while the slave is kept in a quiescent state, and then to have the
      slave CPU scan the PCI bus (without assigning resources) while the
      master is kept in a quiescent state.  After this ritual, the master
      deletes the slave NIC from its PCI device list, the slave deletes
      the master NIC from its device list, and (almost) all is well.
      There's still one little problem: each of the CPUs has a 1G SDRAM
      BAR, but the IXP2000 only has 512M of outbound PCI memory window.
      We solve this by hand-assigning the master and slave SDRAM BARs to
      a location outside each of the IXP's outbound PCI windows, and by
      having the rest of the BARs autoconfigured in the outbound PCI
      windows, in the range [e0000000..ffffffff], so that there is a 1:1
      pci:phys mapping between them.
      Even with this patch, a number of issues still remain -- just imagine
      what happens if one of the CPUs is rebooted, by watchdog or by hand,
      but the other one isn't.  But those issues are not easily fixable
      given the strange PCI layout of this board and the behavior of the
      boot loader shipped with the platform.
      
      Signed-off-by: Lennert Buytenhek
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      53e173f6
    • George G. Davis's avatar
      [PATCH] ARM: 2656/1: Access permission bits are wrong for kernel XIP sections on ARMv6 · ca315159
      George G. Davis authored
      Patch from George G. Davis
      
      This patch is required for kernel XIP support on ARMv6 machines.  It ensures that the access permission bits for kernel XIP section descriptors are APX=1 and AP[1:0]=01, which is Kernel read-only/User no access permissions.  Prior to this change, kernel XIP section descriptor access permissions were set to Kernel no access/User no access on ARMv6 machines and the kernel would therefore hang upon entry to userspace when set_fs(USER_DS) was executed.
      
      Signed-off-by: Steve Longerbeam
      Signed-off-by: George G. Davis
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      ca315159
    • Olav Kongas's avatar
      [PATCH] ARM: 2649/1: Fix 'sparse -Wbitwise' warnings from MMIO macros · 05f9869b
      Olav Kongas authored
      Patch from Olav Kongas
      
      On ARM, the outX() and writeX() families of macros take the
      result of cpu_to_leYY(), which is of restricted type __leYY,
      and feed it to __raw_writeX(), which expect an argument of
      unrestricted type. This results in 'sparse -Wbitwise'
      warnings about incorrect types in assignments. Analogous
      type mismatch warnings are issued for inX() and readX()
      counterparts. The below patch resolves these warnings by
      adding forced typecasts.
      
      Signed-off-by: Olav Kongas
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      05f9869b
    • Nicolas Pitre's avatar
      [PATCH] ARM: 2651/3: kernel helpers for NPTL support · 2d2669b6
      Nicolas Pitre authored
      Patch from Nicolas Pitre
      
      This patch entirely reworks the kernel assistance for NPTL on ARM.
      In particular this provides an efficient way to retrieve the TLS
      value and perform atomic operations without any instruction emulation
      nor special system call.  This even allows for pre ARMv6 binaries to
      be forward compatible with SMP systems without any penalty.
      The problematic and performance critical operations are performed
      through segment of kernel provided user code reachable from user space
      at a fixed address in kernel memory.  Those fixed entry points are
      within the vector page so we basically get it for free as no extra
      memory page is required and nothing else may be mapped at that
      location anyway.
      This is different from (but doesn't preclude) a full blown VDSO
      implementation, however a VDSO would prevent some assembly tricks with
      constants that allows for efficient branching to those code segments.
      And since those code segments only use a few cycles before returning to
      user code, the overhead of a VDSO far call would add a significant
      overhead to such minimalistic operations.
      The ARM_NR_set_tls syscall also changed number.  This is done for two
      reasons:
      1) this patch changes the way the TLS value was previously meant to be
         retrieved, therefore we ensure whatever library using the old way
         gets fixed (they only exist in private tree at the moment since the
         NPTL work is still progressing).
      2) the previous number was allocated in a range causing an undefined
         instruction trap on kernels not supporting that syscall and it was
         determined that allocating it in a range returning -ENOSYS would be
         much nicer for libraries trying to determine if the feature is
         present or not.
      
      Signed-off-by: Nicolas Pitre
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      2d2669b6
    • George G. Davis's avatar
      [PATCH] ARM: 2655/1: ARM1136 SWP instruction abort handler fix · 3a1e5015
      George G. Davis authored
      Patch from George G. Davis
      
      As noted in http://www.arm.com/linux/patch-2.6.9-arm1.gz, the "Faulty SWP instruction on 1136 doesn't set bit 11 in DFSR." So the v6_early_abort handler does not report the correct rd/wr direction for the SWP instruction which may result in SEGVS or hangs. In order to work around this problem, this patch merely updates the fix contained in the ARM Ltd. patch to use the macroised abort handler fixups.
      
      Signed-off-by: George G. Davis
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      3a1e5015
    • Lennert Buytenhek's avatar
      [PATCH] ARM: 2659/1: do not assign PCI I/O address zero on IXP2000 · 458a83fa
      Lennert Buytenhek authored
      Patch from Lennert Buytenhek
      
      Assigning the address zero to a PCI device BAR causes some part of the
      PCI subsystem to believe that resource allocation for that BAR failed
      due to resource conflicts, which will make attempts to enable the
      device fail.  Work around this by assigning I/O addresses starting
      from 00010000.
      While we're at it, make the PCI I/O resource end at 0001ffff, since we
      only have 64k of outbound I/O window on the IXP2000, and we don't do
      bank switching.
      
      Signed-off-by: Lennert Buytenhek
      Signed-off-by: Deepak Saxena
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      458a83fa
    • Lennert Buytenhek's avatar
      [PATCH] ARM: 2658/1: start ixp2000 pci memory resource at 0xe0000000 · ae36bf58
      Lennert Buytenhek authored
      Patch from Lennert Buytenhek
      
      On the IXDP2800, the bootloader does an awful job of configuring
      the PCI bus, so we make linux reconfigure everything.  Having a 1:1
      pci:phys address mapping generally simplifies everything, so try to
      allocate PCI addresses from the [e0000000..ffffffff] range, which is
      the physical address range of the outbound PCI window on the IXP2000.
      This does not affect any of the other IXP2000 platforms since they
      all use their bootloader's PCI resource assignment.
      
      Signed-off-by: Lennert Buytenhek
      Signed-off-by: Deepak Saxena
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      ae36bf58
    • Lennert Buytenhek's avatar
      [PATCH] ARM: 2657/1: export ixp2000_pci_config_addr · 8443b165
      Lennert Buytenhek authored
      Patch from Lennert Buytenhek
      
      Export ixp2000_pci_config_addr, to be used by the IXDP2800 platform
      setup code to coordinate booting the master and slave NPU.
      
      Signed-off-by: Lennert Buytenhek
      Signed-off-by: Deepak Saxena
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      8443b165
    • Linus Torvalds's avatar
      x86: make traps on 'iret' be debuggable in user space · a879cbbb
      Linus Torvalds authored
      This makes a trap on the 'iret' that returns us to user space
      cause a nice clean SIGSEGV, instead of just a hard (and silent)
      exit.
      
      That way a debugger can actually try to see what happened, and
      we also properly notify everybody who might be interested about
      us being gone.
      
      This loses the error code, but tells the debugger what happened
      with ILL_BADSTK in the siginfo.
      a879cbbb
    • Linus Torvalds's avatar
      Remove bogus BUG() in kernel/exit.c · c06fec50
      Linus Torvalds authored
      It's old sanity checking that may have been useful for debugging, but
      is just bogus these days.
      
      Noticed by Mattia Belletti.
      c06fec50
    • Benjamin Herrenschmidt's avatar
      [PATCH] Add suspend method to cpufreq core · 42d4dc3f
      Benjamin Herrenschmidt authored
      In order to properly fix some issues with cpufreq vs. sleep on
      PowerBooks, I had to add a suspend callback to the pmac_cpufreq driver.
      I must force a switch to full speed before sleep and I switch back to
      previous speed on resume.
      
      I also added a driver flag to disable the warnings in suspend/resume
      since it is expected in this case to have different speed (and I want it
      to fixup the jiffies properly).
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      42d4dc3f
    • Roland McGrath's avatar
      [PATCH] x86_64: fix PT_NOTE addition to IA32 vDSO · c60c3906
      Roland McGrath authored
      The addition of the PT_NOTE didn't take in the x86_64 version of the i386
      vDSO, because I forgot the linker script bit in that copy.
      Signed-off-by: default avatarRoland McGrath <roland@redhat.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      c60c3906
    • Steve French's avatar
      [PATCH] cifs: Do not sleep interruptible after socket connect failure · 0cb766ae
      Steve French authored
      .. since it can be due to pending kill.
      
      Update readme information to better describe cifs umount
      
      Signed-off-by: Steve French (sfrench@us.ibm.com)
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      0cb766ae
    • Steve French's avatar
      [PATCH] cifs: Do not init smb requests or block when sending requests · 31ca3bc3
      Steve French authored
      if cifsd thread is no longer running to demultixplex responses.
      
      Do not send FindClose request when FindFirst failed without reaching end
      of search. 
      
      Signed-off-by: Steve French (sfrench@us.ibm.com)
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      31ca3bc3
    • Steve French's avatar
      [PATCH] cifs: handle termination of cifs oplockd kernel thread · 57337e42
      Steve French authored
      Signed-off-by: Steve French (sfrench@us.ibm.com)
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      57337e42
    • Steve French's avatar
      [PATCH] cifs: Fix mapping of EMLINK case · 11aa0149
      Steve French authored
      Signed-off-by: Steve French (sfrench@us.ibm.com)
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      11aa0149
    • Steve French's avatar
      [PATCH] cifs: Handle case of multiple trans2 responses for one SMB request (part 2 of 2) · cd63499c
      Steve French authored
      Signed-off-by: Steve French (sfrench@us.ibm.com)
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      cd63499c
    • Steve French's avatar
      [PATCH] cifs: cleanup various long lines · 275cde1a
      Steve French authored
      Signed-off-by: Steve French (sfrench@us.ibm.com)
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      275cde1a