1. 05 Oct, 2006 18 commits
    • Santiago Leon's avatar
      [PATCH] ibmveth: fix int rollover panic · 751ae21c
      Santiago Leon authored
      This patch fixes a nasty bug that has been sitting there since the
      very first versions of the driver, but is generating a panic because
      we changed the number of 2K buffers for 2.6.16.
      
      The consumer_index and producer_index are u32's that get incremented
      on every buffer emptied and replenished respectively.  We use
      the {producer,consumer}_index mod'ed with the size of the pool to
      pick out an entry in the free_map.  The problem happens when the
      u32 rolls over and the number of the buffers in the pool is not a
      perfect divisor of 2^32.  i.e. if the number of 2K buffers is 0x300,
      before the consumer_index rolls over,  our index to the free map =
      0xffffffff mod 0x300 = 0xff.  The next time a buffer is emptied, we
      want the index to the free map to be 0x100, but 0x0 mod 0x300 is 0x0.
      
      This patch assigns the mod'ed result back to the consumer and producer
      indexes so that they never roll over.  The second chunk of the patch
      covers the unlikely case where the consumer_index has just been reset
      to 0x0 and the hypervisor is not able to accept that buffer.
      Signed-off-by: default avatarSantiago Leon <santil@us.ibm.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      751ae21c
    • Santiago Leon's avatar
      [PATCH] ibmveth: rename proc entry name · 03a85d09
      Santiago Leon authored
      This patch changes the name of the proc file for each ibmveth adapter
      from the network device name to the slot number in the virtual bus.
      
      The proc file is created when the device is probed, so a change
      in the name of the device will not be reflected in the name of the
      proc file giving problems when identifying and removing the adapter.
      The slot number is a property that does not change through the life
      of the adapter so we use that instead.
      Signed-off-by: default avatarSantiago Leon <santil@us.ibm.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      03a85d09
    • Santiago Leon's avatar
      [PATCH] ibmveth: kdump interrupt fix · 4347ef15
      Santiago Leon authored
      This patch fixes a race that panics the kernel when opening the
      device after a kdump.  Without this patch there is a window where the
      hypervisor can send an interrupt before all the structures for the
      kdump ibmveth module are ready (because the hypervisor is not aware
      that the partition crashed and that the virtual driver is reloading).
      We close this window by disabling the interrupts before registering
      the adapter to the hypervisor.
      
      This patch depends on the "ibmveth: Harden driver initilisation" patch.
      Signed-off-by: default avatarSantiago Leon <santil@us.ibm.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      4347ef15
    • Santiago Leon's avatar
      [PATCH] ibmveth: Add netpoll function · 6b422374
      Santiago Leon authored
      This patch adds the net poll controller function to ibmveth to support
      netconsole and netdump.
      Signed-off-by: default avatarSantiago Leon <santil@us.ibm.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      6b422374
    • Michael Ellerman's avatar
      [PATCH] ibmveth: Harden driver initilisation · bbedefcc
      Michael Ellerman authored
      This patch has been floating around for a while now, Santi originally
      sent it in March: http://www.spinics.net/lists/netdev/msg00471.html
      
      After a kexec the ibmveth driver will fail when trying to register
      with the Hypervisor because the previous kernel has not unregistered.
      
      So if the registration fails, we unregister and then try again.
      
      We don't unconditionally unregister, because we don't want to disturb
      the regular code path for 99% of users.
      Signed-off-by: default avatarMichael Ellerman <michael@ellerman.id.au>
      Acked-by: default avatarAnton Blanchard <anton@samba.org>
      Signed-off-by: default avatarSantiago Leon <santil@us.ibm.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      bbedefcc
    • Stephen Hemminger's avatar
      [PATCH] sky2: incorrect length on receive packets · 489b10c1
      Stephen Hemminger authored
      The previous change to do fragmented receive (post 2.6.18) introduced a bug
      where packets are passed up with size set to the size of the receive buffer
      not the actual received data.  IP silently trims this so it didn't show up
      right away.
      Signed-off-by: default avatarStephen Hemminger <shemminger@osdl.org>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      489b10c1
    • Linus Torvalds's avatar
      Linux 2.6.19-rc1 · d223a601
      Linus Torvalds authored
      Merge window closed..
      d223a601
    • Mark Assad's avatar
      [PATCH] itmtouch: fix inverted flag to indicate touch location correctly, correct white space · 77dc2db6
      Mark Assad authored
      There is a bug in the current version of the itmtouch USB touchscreen
      driver.  The if statment that checks if pressure is being applied to the
      touch screen is now missing a ! (not), so events are no longer being
      reported correctly.
      
      The original source code for this line was as follows:
      
      	#define UCP(x) ((unsigned char*)(x))
      	#define UCOM(x,y,z) ((UCP((x)->transfer_buffer)[y]) & (z))
      
      	...
      	if (!UCOM(urb, 7, 0x20)) {
      
      And was cleaned to:
      
      	unsigned char *data = urb->transfer_buffer;
      	....
      	 if (data[7] & 0x20) {
      
      (note the lack of '!')
      
      This has been tested on an LG L1510BF and an LG1510SF touch screen.
      Signed-off-by: default avatarMark Assad <massad@gmail.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      77dc2db6
    • Linus Torvalds's avatar
      Merge master.kernel.org:/pub/scm/linux/kernel/git/willy/parisc-2.6 · 4b844718
      Linus Torvalds authored
      * master.kernel.org:/pub/scm/linux/kernel/git/willy/parisc-2.6:
        [PA-RISC] Fix time.c for new do_timer() calling convention
        [PA-RISC] Fix must_check warnings in drivers.c
        [PA-RISC] Fix parisc_newuname()
        [PA-RISC] Remove warning from pci.c
        [PA-RISC] Fix filldir warnings
        [PA-RISC] Fix sys32_sysctl
        [PA-RISC] Fix sba_iommu compilation
      4b844718
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc · a43cdf08
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc:
        [POWERPC] cell: fix bugs found by sparse
        [POWERPC] spiderpic: enable new style devtree support
        [POWERPC] Update cell_defconfig
        [POWERPC] spufs: add infrastructure for finding elf objects
        [POWERPC] spufs: support new OF device tree format
        [POWERPC] spufs: add support for read/write on cntl
        [POWERPC] spufs: remove support for ancient firmware
        [POWERPC] spufs: make mailbox functions handle multiple elements
        [POWERPC] spufs: use correct pg_prot for mapping SPU local store
        [POWERPC] spufs: Add infrastructure needed for gang scheduling
        [POWERPC] spufs: implement error event delivery to user space
        [POWERPC] spufs: fix context switch during page fault
        [POWERPC] spufs: scheduler support for NUMA.
        [POWERPC] spufs: cell spu problem state mapping updates
      a43cdf08
    • Linus Torvalds's avatar
      Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6 · 97d41e90
      Linus Torvalds authored
      * master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (54 commits)
        [SCSI] Initial Commit of qla4xxx
        [SCSI] raid class: handle component-add errors
        [SCSI] SCSI megaraid_sas: handle thrown errors
        [SCSI] SCSI aic94xx: handle sysfs errors
        [SCSI] SCSI st: fix error handling in module init, sysfs
        [SCSI] SCSI sd: fix module init/exit error handling
        [SCSI] SCSI osst: add error handling to module init, sysfs
        [SCSI] scsi: remove hosts.h
        [SCSI] scsi: Scsi_Cmnd convertion in aic7xxx_old.c
        [SCSI] megaraid_sas: sets ioctl timeout and updates version,changelog
        [SCSI] megaraid_sas: adds tasklet for cmd completion
        [SCSI] megaraid_sas: prints pending cmds before setting hw_crit_error
        [SCSI] megaraid_sas: function pointer for disable interrupt
        [SCSI] megaraid_sas: frame count optimization
        [SCSI] megaraid_sas: FW transition and q size changes
        [SCSI] qla2xxx: Update version number to 8.01.07-k2.
        [SCSI] qla2xxx: Stall mid-layer error handlers while rport is blocked.
        [SCSI] qla2xxx: Add MODULE_FIRMWARE tags.
        [SCSI] qla2xxx: Add support for host port state FC transport attribute.
        [SCSI] qla2xxx: Add support for fabric name FC transport attribute.
        ...
      97d41e90
    • Matthew Wilcox's avatar
      [PA-RISC] Fix time.c for new do_timer() calling convention · 1604f318
      Matthew Wilcox authored
      do_timer now wants to know how many ticks have elapsed.  Now that we
      have to calculate that, we can eliminate some of the clever code that
      avoided having to calculate that.  Also add some more documentation.
      I'd like to thank Grant Grundler for helping me with this.
      Signed-off-by: default avatarMatthew Wilcox <willy@parisc-linux.org>
      1604f318
    • Matthew Wilcox's avatar
      [PA-RISC] Fix must_check warnings in drivers.c · 1070c965
      Matthew Wilcox authored
      Panic if we can't register the parisc bus or the root parisc device.
      There's no way we can boot without them, so let the user know ASAP.
      
      If we can't register a parisc device, handle the failure gracefully.
      Signed-off-by: default avatarMatthew Wilcox <willy@parisc-linux.org>
      1070c965
    • Matthew Wilcox's avatar
      [PA-RISC] Fix parisc_newuname() · f64ef295
      Matthew Wilcox authored
      The utsname virtualisation broke parisc_newuname compilation.
      Rewrite the implementation to call sys_newuname() like sparc64 does.
      Signed-off-by: default avatarMatthew Wilcox <willy@parisc-linux.org>
      f64ef295
    • Matthew Wilcox's avatar
      [PA-RISC] Remove warning from pci.c · ccd6c355
      Matthew Wilcox authored
      max() doesn't like comparing an unsigned long and a resource_size_t,
      so make the local variables resource_size_t too.
      Signed-off-by: default avatarMatthew Wilcox <willy@parisc-linux.org>
      ccd6c355
    • Matthew Wilcox's avatar
      [PA-RISC] Fix filldir warnings · 15c130c1
      Matthew Wilcox authored
      filldir_t now takes a u64, not an ino_t.
      Signed-off-by: default avatarMatthew Wilcox <matthew@wil.cx>
      15c130c1
    • Matthew Wilcox's avatar
      [PA-RISC] Fix sys32_sysctl · 17cca072
      Matthew Wilcox authored
      When CONFIG_SYSCTL_SYSCALL isn't defined, do_sysctl doesn't exist and
      we fail to link.  Fix with an ifdef, the same way sparc64 did.
      Also add some minor changes to be more like sparc64.
      Signed-off-by: default avatarMatthew Wilcox <matthew@wil.cx>
      17cca072
    • Matthew Wilcox's avatar
      [PA-RISC] Fix sba_iommu compilation · ee9f4b5d
      Matthew Wilcox authored
      klist_iter_exit() only takes one parameter.
      Also fix warning by adding additional brackets.
      Signed-off-by: default avatarMatthew Wilcox <matthew@wil.cx>
      ee9f4b5d
  2. 04 Oct, 2006 22 commits