23 Jan, 2007

40 commits

  • Currently one can specify an arbitrary node mask to mbind that includes
    nodes not allowed. If that is done with an interleave policy then we will
    go around all the nodes. Those outside of the currently allowed cpuset
    will be redirected to the border nodes. Interleave will then create
    imbalances at the borders of the cpuset.

    This patch restricts the nodes to the currently allowed cpuset.

    The RFC for this patch was discussed at
    http://marc.theaimsgroup.com/?t=116793842100004&r=1&w=2

    Signed-off-by: Christoph Lameter
    Cc: Paul Jackson
    Cc: Andi Kleen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Lameter
     
  • The following patch fixes a few problems with the tlclk driver.
    * bug in the select_amcb1_transmit_clock
    * racy read sys call
    * racy open sys call
    * use of add_timer where mod_timer would be better
    * change to the timer data parameter use

    Signed-off-by: Mark Gross
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mark Gross
     
  • For large size DIO that needs multiple bio, one full page worth of data was
    lost at the boundary of bio's maximum sector or segment limits. After a
    bio is full and got submitted. The outer while (nbytes) { ... } loop will
    allocate a new bio and just march on to index into next page. It just
    forgets about the page that bio_add_page() rejected when previous bio is
    full. Fix it by put the rejected page back to pvec so we pick it up again
    for the next bio.

    Signed-off-by: Ken Chen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Chen, Kenneth W
     
  • This fixes the SH rtc driver correctly act on the "enabled" flag when
    setting an alarm.

    Signed-off-by: Jamie Lenehan
    Cc: David Brownell
    Cc: Alessandro Zummo
    Cc: Paul Mundt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jamie Lenehan
     
  • If a page is marked as dirty in the guest pte, set_pte_common() can set the
    writable bit on newly-instantiated shadow pte. This optimization avoids
    a write fault after the initial read fault.

    However, if a write fault instantiates the pte, fix_write_pf() incorrectly
    reports the fault as a guest page fault, and the guest oopses on what appears
    to be a correctly-mapped page.

    Fix is to detect the condition and only report a guest page fault on a user
    access to a kernel page.

    With the fix, a kvm guest can survive a whole night of running the kernel
    hacker's screensaver (make -j9 in a loop).

    Signed-off-by: Avi Kivity
    Cc: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Avi Kivity
     
  • The various bit string instructions (bts, btc, etc.) fail to adjust the
    address correctly if the bit address is beyond BITS_PER_LONG.

    This bug creeped in as the emulator originally relied on cr2 to contain the
    memory address; however we now decode it from the mod r/m bits, and must
    adjust the offset to account for large bit indices.

    The patch is rather large because it switches src and dst decoding around, so
    that the bit index is available when decoding the memory address.

    This fixes workloads like the FC5 installer.

    Signed-off-by: Avi Kivity
    Cc: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Avi Kivity
     
  • The kvm mmio read path looks like:

    1. guest read faults
    2. kvm emulates read, calls emulator_read_emulated()
    3. fails as a read requires userspace help
    4. exit to userspace
    5. userspace emulates read, kvm sets vcpu->mmio_read_completed
    6. re-enter guest, fault again
    7. kvm emulates read, calls emulator_read_emulated()
    8. succeeds as vcpu->mmio_read_emulated is set
    9. instruction completes and guest is resumed

    A problem surfaces if the userspace exit (step 5) also requests an interrupt
    injection. In that case, the guest does not re-execute the original
    instruction, but the interrupt handler. The next time an mmio read is
    exectued (likely for a different address), step 3 will find
    vcpu->mmio_read_completed set and return the value read for the original
    instruction.

    The problem manifested itself in a few annoying ways:
    - little squares appear randomly on console when switching virtual terminals
    - ne2000 fails under nfs read load
    - rtl8139 complains about "pci errors" even though the device model is
    incapable of issuing them.

    Fix by skipping interrupt injection if an mmio read is pending.

    A better fix is to avoid re-entry into the guest, and re-emulating immediately
    instead. However that's a bit more complex.

    Signed-off-by: Avi Kivity
    Cc: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Avi Kivity
     
  • This makes the vmwrite errors on vm shutdown go away.

    Signed-off-by: Avi Kivity
    Cc: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Avi Kivity
     
  • The paravirt subsystem is still in flux so all exports from it are
    definitely internal use only. The APIs around this /will/ change.

    Signed-off-by: Ingo Molnar
    Cc: Andi Kleen
    Cc: Zachary Amsden
    Cc: Jeremy Fitzhardinge
    Acked-by: Rusty Russell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ingo Molnar
     
  • Sing the praises of `gcc -W'. Would have prevented that blockdev direct-IO
    bug.

    Cc: "Chen, Kenneth W"
    Cc: "Randy.Dunlap"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • size_t is unsigned. IO errors aren't getting through.

    Cc: "Chen, Kenneth W"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • Commit f2802e7f571c05f9a901b1f5bd144aa730ccc88e and its x86 version
    (b7471c6da94d30d3deadc55986cc38d1ff57f9ca) adds nmi_known_cpu() check
    while parsing boot options in x86_64 and i386.

    With that, "nmi_watchdog=2" stops working for me on Intel Core 2 CPU
    based system.

    The problem is, setup_nmi_watchdog is called while parsing the boot
    option and identify_cpu is not done yet. So, the return value of
    nmi_known_cpu() is not valid at this point.

    So revert that check. This should not have any adverse effect as the
    nmi_known_cpu() check is done again later in enable_lapic_nmi_watchdog().

    Signed-off-by: Venkatesh Pallipadi
    Cc: Don Zickus
    Cc: Andi Kleen
    Cc: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Venkatesh Pallipadi
     
  • export profile_hits() on !SMP too.

    Cc: Ingo Molnar
    Cc: Avi Kivity
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • The current PDA code, which went in in post 2.6.19 has a flaw in that it
    doesn't correctly cycle the GDT and %GS segment through the boot PDA,
    the CPU PDA and finally the per-cpu PDA.

    The bug generally doesn't show up if the boot CPU id is zero, but
    everything falls apart for a non zero boot CPU id. The basically kills
    voyager which is perfectly capable of doing non zero CPU id boots, so
    voyager currently won't boot without this.

    The fix is to be careful and actually do the GDT setups correctly.

    Signed-off-by: James Bottomley
    Cc: Andi Kleen
    Cc: Jeremy Fitzhardinge
    Cc: Andrew Morton
    Signed-off-by: Linus Torvalds

    James Bottomley
     
  • * git://git.infradead.org/mtd-2.6: (84 commits)
    [JFFS2] debug.h: include for current->pid
    [MTD] OneNAND: Handle DDP chip boundary during read-while-load
    [MTD] OneNAND: return ecc error code only when 2-bit ecc occurs
    [MTD] OneNAND: Implement read-while-load
    [MTD] OneNAND: fix onenand_wait bug in read ecc error
    [MTD] OneNAND: release CPU in cycles
    [MTD] OneNAND: add subpage write support
    [MTD] OneNAND: fix onenand_wait bug
    [JFFS2] use the ref_offset macro
    [JFFS2] Reschedule in loops
    [JFFS2] Fix error-path leak in summary scan
    [JFFS2] add cond_resched() when garbage collecting deletion dirent
    [MTD] Nuke IVR leftovers
    [MTD] OneNAND: fix oob handling in recent oob patch
    [MTD] Fix ssfdc blksize typo
    [JFFS2] replace kmalloc+memset with kzalloc
    [MTD] Fix SSFDC build for variable blocksize.
    [MTD] ESB2ROM uses PCI
    [MTD] of_device-based physmap driver
    [MTD] Support combined RedBoot FIS directory and configuration area
    ...

    Linus Torvalds
     
  • Both "=r" and "=g" breaks my build on i386:

    $ make
    CC [M] drivers/kvm/vmx.o
    {standard input}: Assembler messages:
    {standard input}:3318: Error: bad register name `%sil'
    make[1]: *** [drivers/kvm/vmx.o] Error 1
    make: *** [_module_drivers/kvm] Error 2

    The reason is that setbe requires an 8-bit register but "=r" does not
    constrain the target register to be one that has an 8-bit version on
    i386.

    According to

    http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10153

    the correct constraint is "=q".

    Signed-off-by: Herbert Xu
    Signed-off-by: Linus Torvalds

    Herbert Xu
     
  • * master.kernel.org:/pub/scm/linux/kernel/git/gregkh/pci-2.6:
    PCI: fix pci-driver kernel-doc
    PCI: rework Documentation/pci.txt
    PCI: Unhide the SMBus on the Asus P4P800-X

    Linus Torvalds
     
  • * master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6:
    USB: unusual_devs.h entry for nokia 6233
    USB: Fix for typo in ohci-ep93xx.c
    USB: disable USB_MULTITHREAD_PROBE
    USB: add vendor/device id for Option GT Max 3.6 cards
    USB: unusual_devs.h for 0x046b:ff40
    USB: make usbhid ignore Imation Disc Stakka
    USB: rndis_host: fix crash while probing a Nokia S60 mobile
    USB: asix: Detect internal PHY and enable/use accordingly
    usbtouchscreen: make ITM screens report BTN_TOUCH as zero when not touched

    Linus Torvalds
     
  • Function short description should be on only one line.

    Signed-off-by: Randy Dunlap
    Signed-off-by: Greg Kroah-Hartman

    Randy Dunlap
     
  • Rewrite Documentation/pci.txt:
    o restructure document to match how API is used when writing init code.
    o update to reflect changes in struct pci_driver function pointers.
    o removed language on "new style vs old style" device discovery.
    "Old style" is now deprecated. Don't use it. Left description in
    to document existing driver behaviors.
    o add section "Legacy I/O Port free driver" by Kenji Kaneshige
    http://lkml.org/lkml/2006/11/22/25
    (renamed to "pci_enable_device_bars() and Legacy I/O Port space")
    o add "MMIO space and write posting" section to help avoid common pitfall
    when converting drivers from IO Port space to MMIO space.
    Orignally posted http://lkml.org/lkml/2006/2/27/24
    o many typo/grammer/spelling corrections from Randy Dunlap
    o two more spelling corrections from Stephan Richter
    o fix CodingStyle as per Randy Dunlap

    Signed-off-by: Grant Grundler
    Signed-off-by: Greg Kroah-Hartman

    Grant Grundler
     
  • Unhide the SMBus on the Asus P4P800-X (and probably some other
    models of the family.) This gives access to the memory module SPD
    EEPROMs.

    Thanks to Winbond for supporting the lm-sensors project with the
    donation of this motherboard.

    Signed-off-by: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman

    Jean Delvare
     
  • In appendix a patch for the nokia 6233 mobile phone is included.
    The patch is against 2.6.20-rc5. It is my first patch. Hopefully it has
    the right format. The code makes my nokia 6233 on my computer work.

    From: Manuel Osdoba
    Signed-off-by: Greg Kroah-Hartman

    Manuel Osdoba
     
  • Attached patch fixes typo in USB driver reported by Chase Douglas on linux-cirrus mailing
    list. http://www.freelists.org/archives/linux-cirrus/12-2006/msg00003.html

    Signed-off-by: Petr Stetiar
    Signed-off-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    Petr Stetiar
     
  • Disable the USB_MULTITHREAD_PROBE option because it causes crashes on
    people's machines and they never remember to actually read the config
    help files.

    No one likes this, everyone hates it, I'm going to go eat worms...

    The full logic will be ripped out later.

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • This fixes http://bugzilla.kernel.org/show_bug.cgi?id=7814

    Signed-off-by: Greg Kroah-Hartman

    garrett_damore@tadpole.com
     
  • American Megatrends did something wrong in their floppy emulator. It breaks
    with both kinds of MODE SENSE which our stack sends. Alan and I tried a few
    tweaks, and got LUNs sensed right, but US_FL_NO_WP_DETECT is still needed.

    I set the firmware bracket to 1.00 exactly, in case AMI or Sun fix it with a
    firmware update. Hey, you never know.

    Signed-off-by: Pete Zaitcev
    Signed-off-by: Phil Dibowitz
    Signed-off-by: Greg Kroah-Hartman

    Pete Zaitcev
     
  • on request of the sourceforge project for this device, a kind of
    robotized CD storage, it should be ignored by the generic driver.

    Signed-off-by: Oliver Neukum
    Signed-off-by: Greg Kroah-Hartman

    Oliver Neukum
     
  • Bug fix for driver rndis_host which fixes rndis_host probing certain
    Nokia S60 (Series 60) mobiles. While the rndis_host get probed by usbnet
    and tries to bind the Nokia mobile the bind is going to fail. The
    rndis_host module tries to release the device, in a wrong way, which
    cause the oops.

    Fixes Bugzilla #7201

    Signed-off-by: Daniel Gollub
    Signed-off-by: Greg Kroah-Hartman

    Daniel Gollub
     
  • Different AX88772 dongles use different PHYs; the chip is capable of using
    both a primary and secondary PHY, and supports an internal and external PHY.

    It appears that some DUB-E100 devices use the internal PHY, so trying to use
    an external one will not work (note that this is different across revisions,
    as well; the "A" and "B" revs of the DUB-E100 use different PHYs!). The data
    sheet for the AX88772 chip specifies that the internal PHY id will be 0x10,
    so if that's read from the EEPROM, we should use that rather than attempting
    to use an external PHY.

    Thanks to Mitch Bradley for pointing this out!

    Signed-off-by: Andres Salomon
    Cc: David Hollis
    Cc: Chris Ball
    Signed-off-by: Greg Kroah-Hartman

    Andres Salomon
     
  • ITM screens send invalid x/y data when not touched. this was fixes a while ago
    but the problem is if the screen is not touched anymore the driver never does
    not report BTN_TOUCH as zero. fix it by sending the report with the last valid
    coordinates when pressure is released.

    Signed-off-by: Daniel Ritz
    Cc: J.P. Delport
    Signed-off-by: Greg Kroah-Hartman

    Daniel Ritz
     
  • * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mfasheh/ocfs2:
    ocfs2: Add backup superblock info to ocfs2_fs.h
    ocfs2: cleanup ocfs2_iget() errors
    ocfs2: Directory c/mtime update fixes
    ocfs2: Don't print errors when following symlinks

    Linus Torvalds
     
  • * 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6:
    sis190: failure to set the MAC address from EEPROM
    Fix phy_read/write redefinition errors in ucc_geth_phy.c
    Update ucc_geth.c for new workqueue structure
    myri10ge: update driver version to 1.2.0
    myri10ge: check that we can get an irq
    myri10ge: make wc_fifo usage load-time tunable
    8139cp: Don't blindly enable interrupts
    [PATCH] bcm43xx: Fix failure to deliver PCI-E interrupts

    Linus Torvalds
     
  • * 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev:
    sata_mv HighPoint 2310 support (88SX7042)
    libata: fix handling of port actions in per-dev action mask
    libata: initialize qc->dma_dir to DMA_NONE
    sata_via: add PCI ID 0x5337
    libata doc: "error : unterminated entity reference exceptions"

    Linus Torvalds
     
  • * master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6: (30 commits)
    [SCSI] qla1280: set residual correctly
    [SCSI] fusion: bump version
    [SCSI] fusion: MODULE_VERSION support
    [SCSI] fusion: power pc and miscellaneous bug fixs
    [SCSI] fusion: fibre channel: return DID_ERROR for MPI_IOCSTATUS_SCSI_IOC_TERMINATED
    [SCSI] megaraid_sas: Update module author
    [SCSI] 3ware 8000 serialize reset code
    [SCSI] sr: fix error code check in sr_block_ioctl()
    [SCSI] scsi: lpfc error path fix
    [SCSI] aacraid: Product List Update
    [SCSI] libiscsi: fix senselen calculation
    [SCSI] iscsi: simplify IPv6 and IPv4 address printing
    [SCSI] iscsi: newline in printk
    [SCSI] iscsi: fix crypto_alloc_hash() error check
    [SCSI] iscsi: fix 2.6.19 data digest calculation bug
    [SCSI] scsi_scan: fix report lun problems with CDROM or RBC devices
    [SCSI] qla2xxx: Update version number to 8.01.07-k4.
    [SCSI] qla2xxx: Use generic isp_ops.fw_dump() function.
    [SCSI] qla2xxx: Perform a fw-dump when an ISP23xx RISC-paused state is detected.
    [SCSI] qla2xxx: Correct reset handling logic.
    ...

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid:
    hid-core.c: Adds GTCO CalComp Interwrite IPanel PIDs to blacklist
    HID: put usb_interface instead of usb_device into hid->dev to fix udevinfo breakage
    HID: add missing RX, RZ and RY enum values to hid-debug output
    HID: hid/hid-input.c doesn't need to include linux/usb/input.h
    HID: compilation fix when DEBUG_DATA is defined
    HID: proper LED-mapping for SpaceNavigator
    HID: update MAINTAINERS entry for USB-HID
    HID: GEYSER4_ISO needs quirk
    HID: fix some ARM builds due to HID brokenness - make USB_HID depend on INPUT

    Linus Torvalds
     
  • * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc:
    [POWERPC] Update defconfigs
    [POWERPC] atomic_dec_if_positive sign extension fix
    [POWERPC] Fix OF node refcnt underflow in 836x and 832x platform code
    [POWERPC] Make it blatantly clear; mpc5200 device tree is not yet stable
    [POWERPC] Fix broken DMA on non-LPAR pSeries
    [POWERPC] Fix cell's mmio nvram to properly parse device tree
    [POWERPC] Remove bogus sanity check in pci -> OF node code

    Linus Torvalds
     
  • * 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus:
    [MIPS] Delete duplicate call to load_irq_save.
    [MIPS] SMTC: Fix cp0 hazard.

    Linus Torvalds
     
  • * 'hwmon-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6:
    hwmon/w83793: Hide invalid VID readings
    hwmon/w83793: Fix the fan input detection
    hwmon/w83793: Ignore disabled temperature channels
    hwmon: Fix the VRD 11 decoding
    hwmon/w83793: Remove the description of AMDSI and update the voltage formula

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/aia21/ntfs-2.6:
    NTFS: Forgot to bump version number in makefile to 2.1.28...
    NTFS: 2.1.28 - Fix deadlock reported by Sergey Vlasov due to ntfs_put_inode().

    Linus Torvalds
     
  • * 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb:
    V4L/DVB (5023): Fix compilation on ppc32 architecture
    V4L/DVB (5071): Tveeprom: autodetect LG TAPC G701D as tuner type 37
    V4L/DVB (5069): Fix bttv and friends on 64bit machines with lots of memory
    V4L/DVB (5033): MSI TV@nywhere Plus fixes
    V4L/DVB (5029): Ks0127 status flags
    V4L/DVB (5024): Fix quickcam communicator driver for big endian architectures
    V4L/DVB (5021): Cx88xx: Fix lockup on suspend
    V4L/DVB (5020): Fix: disable interrupts while at KM_BOUNCE_READ
    V4L/DVB (5019): Fix the frame->grabstate update in read() entry point.

    Linus Torvalds