21 Jul, 2007

13 commits

  • Make it possible to use __start_notes and __stop_notes without getting a GPREL
    overflow error from the FRV linker.

    Small variables that would otherwise be in .data or .bss may, depending on the
    arch, be placed in special sections (.sdata or .sbss) that permit single
    instruction references on fixed instruction width machines.

    __start_notes and __stop_notes aren't really char variables, and certainly
    don't refer to data in .data or .bss. Making them type "void" fools the
    compiler into not assuming anything about them.

    Signed-off-by: David Howells
    Signed-off-by: Linus Torvalds

    David Howells
     
  • The same problem that was fixed for tpm_ascii_bios_measurements_open()
    in commit 178554ae75739e91dc4d7c3e42a3db95448cc5bf also occurs in
    tpm_binary_bios measurements(). Thanks for noticing this Satyam!

    I tested the attached patch to fix tpm_binary_bios_measurments as well.

    Signed-off-by: Reiner Sailer
    Signed-off-by: Linus Torvalds

    Reiner Sailer
     
  • The kvm mmu uses page->private on shadow page tables; so does slub, and
    an oops result. Fix by allocating regular pages for shadows instead of
    using slub.

    Tested-by: S.Çağlar Onur
    Signed-off-by: Avi Kivity

    Avi Kivity
     
  • Allow real-mode emulation of rdmsr and wrmsr. This allows smp Windows to
    boot, presumably for its sipi trampoline.

    Signed-off-by: Avi Kivity

    Avi Kivity
     
  • The memory slot management functions were oriented against vcpu 0, where
    they should be kvm-wide. This causes hangs starting X on guest smp.

    Fix by making the functions (and resultant tail in the mmu) non-vcpu-specific.
    Unfortunately this reduces the efficiency of the mmu object cache a bit. We
    may have to revisit this later.

    Signed-off-by: Avi Kivity

    Avi Kivity
     
  • We need to distinguish between large page shadows which have the nx bit set
    and those which don't. The problem shows up when booting a newer smp Linux
    kernel, where the trampoline page (which is in real mode, which uses the
    same shadow pages as large pages) is using the same mapping as a kernel data
    page, which is mapped using nx, causing kvm to spin on that page.

    Signed-off-by: Avi Kivity

    Avi Kivity
     
  • * 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/sfr/ofcons:
    Create drivers/of/platform.c
    Create linux/of_platorm.h
    [SPARC/64] Rename some functions like PowerPC
    Begin consolidation of of_device.h
    Begin to consolidate of_device.c
    Consolidate of_find_node_by routines
    Consolidate of_get_next_child
    Consolidate of_get_parent
    Consolidate of_find_property
    Consolidate of_device_is_compatible
    Start split out of common open firmware code
    Split out common parts of prom.h

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
    Input: appletouch - improve powersaving for Geyser3 devices
    Input: lifebook - fix an oops on Panasonic CF-18
    Input: document intended meaning of KEY_SWITCHVIDEOMODE
    Input: switch to using seq_list_xxx helpers
    Input: i8042 - give more trust to PNP data on i386
    Input: add driver for Fujitsu serial touchscreens
    Input: ads7846 - re-check pendown status before reporting events
    Input: ads7846 - introduce sample settling delay
    Input: xpad - add support for leds on xbox 360 pad

    Linus Torvalds
     
  • Signed-off-by: Alan Cox
    Signed-off-by: Linux Torvalds

    Alan Cox
     
  • If add_to_page_cache_lru() fails, the page will not be locked. But
    splice jumps to an error path that does a page release and unlock,
    causing a BUG() in unlock_page().

    Fix this by adding one more label that just releases the page. This bug
    was actually triggered on EL5 by gurudas pai
    using fio.

    Signed-off-by: Jens Axboe
    Signed-off-by: Linus Torvalds

    Jens Axboe
     
  • Guests currently use the default scheduler clock: this means they
    always use jiffies even if TSC is actually available. It doesn't make
    any noticeable difference here, but it's a better thing to do.

    Also remove commented-out asm/sched-clock.h from -mm tree.

    Signed-off-by: Rusty Russell
    Signed-off-by: Linus Torvalds

    Rusty Russell
     
  • Signed-off-by: Rusty Russell
    Signed-off-by: Linus Torvalds

    Rusty Russell
     
  • The sense of the IF bit is backwards in the host interrupt handling.

    This means we always save "IF=1" on the stack when injecting an
    interrupt. It turns out this is almost always correct (unless the
    guest is taking a page fault in an interrupt due to an unpopulated
    vmalloc mapping), so went unnoticed.

    Signed-off-by: Rusty Russell
    Signed-off-by: Linus Torvalds

    Rusty Russell
     

20 Jul, 2007

27 commits

  • Fix afs_send_simple_reply() to accept a greater-than-zero return value from
    rxrpc_kernel_send_data() as being a successful return rather than thinking it
    an error and aborting the call.

    rxrpc_kernel_send_data() previously returned zero incorrectly when it worked
    successfully, but has been patched to return the number of bytes it
    transmitted.

    Signed-off-by: David Howells
    Signed-off-by: Linus Torvalds

    David Howells
     
  • * master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh-2.6: (26 commits)
    sh: intc - add support for SH7750 and its variants
    sh: Move entry point code to .text.head.
    sh: heartbeat: Shut up resource size warning.
    sh: update r2d defconfig and fix SH7751R pci compliation
    sh: Many symbol exports for nommu allmodconfig.
    sh: zero terminate 8250 platform data for r2d board
    sh: cpufreq: Fix up the build for SH-2.
    sh: Make on-chip DMA channel selection explicit.
    sh: Fix up CPU dependencies for on-chip DMAC.
    sh: cpufreq: clock framework support.
    sh: Support rate rounding for SH7722 FRQCR clocks.
    sh: Implement clk_round_rate() in the clock framework.
    sh: Fix up PCI section mismatch warnings.
    sh: Wire up fallocate() syscall.
    sh: intc - add support for 7780
    sh: intc - improve group support
    sh: Fix up SH-3 and SH-4 driver dependencies.
    sh: push-switch: Correct license string.
    sh: cpufreq: Fix driver dependencies and flag as broken.
    sh: IPR/INTC2 IRQ setup consolidation.
    ...

    Linus Torvalds
     
  • * 'linus' of master.kernel.org:/pub/scm/linux/kernel/git/perex/alsa: (102 commits)
    [ALSA] version 1.0.14
    [ALSA] remove duplicate Logitech Quickcam USB ID in usbquirks.h
    [ALSA] hda-codec - Fix input with STAC92xx
    [ALSA] hda-intel: support for iMac 24'' released on 09/2006
    [ALSA] hda-codec - Add quirk for Asus P5LD2
    [ALSA] snd-ca0106: Add support for X-Fi Extreme Audio.
    [ALSA] snd-emu10k1:Enable E-Mu 1616m notebook firmware loading.
    [ALSA] snd-emu10k1: Initial support for E-Mu 1616 and 1616m.
    [ALSA] cs46xx - Fix PM resume
    [ALSA] hda: Enable SPDIF in/out on some stac9205 boards
    [ALSA] timer: check for incorrect device state in non-debug compiles, too
    [ALSA] snd-aoa-codec-onyx: fix typo
    [ALSA] hda-codec - Add quirks for HP dx2200/dx2250
    [ALSA] hda-codec - Rename HP model-specific quirks
    [ALSA] hda-codec - Add quirk for HP Samba
    [ALSA] hda-codec - Add LG LW20 line-in capture source
    [ALSA] usb-audio - Fix AC3 with M-Audio Audiophile USB
    [ALSA] hda: stac9202 mixer fix
    [ALSA] Make s3c24xx_i2s_set_clkdiv() change the correct bits
    [ALSA] hda-codec - Add LG LW20 si3054 modem id
    ...

    Linus Torvalds
     
  • * master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh64-2.6:
    sh64: Flag sh64_get_page() as __init_refok.
    sh64: Move entry point code to .text.head.
    sh64: Fix up PCI section mismatch warnings.
    sh64: Update cayman defconfig.
    sh64: Wire up fallocate() syscall.

    Linus Torvalds
     
  • * 'cfq' of git://git.kernel.dk/data/git/linux-2.6-block:
    cfq: Write-only stuff in CFQ data structures
    cfq: async queue allocation per priority

    Linus Torvalds
     
  • Update arm to use bitwise types for its VM_FAULT_ constants.

    Signed-off-by: Nick Piggin
    Cc: Russell King
    Signed-off-by: Linus Torvalds

    Nick Piggin
     
  • * 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev: (29 commits)
    libata: implement EH fast drain
    libata: schedule probing after SError access failure during autopsy
    libata: clear HOTPLUG flag after a reset
    libata: reorganize ata_ehi_hotplugged()
    libata: improve SCSI scan failure handling
    libata: quickly trigger SATA SPD down after debouncing failed
    libata: improve SATA PHY speed down logic
    The SATA controller device ID is different according to
    ahci: implement SCR_NOTIFICATION r/w
    ahci: make NO_NCQ handling more consistent
    libata: make ->scr_read/write callbacks return error code
    libata: implement AC_ERR_NCQ
    libata: improve EH report formatting
    sata_sil24: separate out sil24_do_softreset()
    sata_sil24: separate out sil24_exec_polled_cmd()
    sata_sil24: replace sil24_update_tf() with sil24_read_tf()
    ahci: separate out ahci_do_softreset()
    ahci: separate out ahci_exec_polled_cmd()
    ahci: separate out ahci_kick_engine()
    ahci: use deadline instead of fixed timeout for 1st FIS for SRST
    ...

    Linus Torvalds
     
  • I recently ran Lindent over the AdvanSys driver and it moved the
    comments on #else and #endif lines way over to the right:

    #else /* ADVANSYS_DEBUG */

    This doesn't match what I expect from kernel style, but it is
    documented. We just need another flag to indent to make this look like:

    #else /* ADVANSYS_DEBUG */

    Signed-off-by: Matthew Wilcox
    Signed-off-by: Linus Torvalds

    Matthew Wilcox
     
  • Coverity found a memory leak in tpm_ascii_bios_measurements_open().

    If "read_log(log)" fails, then we may leak 'log' and
    'log->bios_event_log'.

    Signed-off-by: Jesper Juhl
    Cc: Seiji Munetoh
    Cc: Stefan Berger
    Cc: Reiner Sailer
    Cc: Kylene Hall
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jesper Juhl
     
  • Reformat show_cpuinfo() to be consistent with normal coding style
    (and rest of this file).

    Signed-off-by: Greg Ungerer
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Greg Ungerer
     
  • The Coverity checker noticed that we allocate too little storage for
    "struct cr_panel *crp" in cr_backlight_probe().

    Signed-off-by: Jesper Juhl
    Cc: Thomas Hellstrom
    Cc: Alan Hourihane
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jesper Juhl
     
  • Andrew Morton:
    [async_memcpy] is very wrong if both ASYNC_TX_KMAP_DST and
    ASYNC_TX_KMAP_SRC can ever be set. We'll end up using the same kmap
    slot for both src add dest and we get either corrupted data or a BUG.

    Evgeniy Polyakov:
    Btw, shouldn't it always be kmap_atomic() even if flag is not set.
    That pages are usual one returned by alloc_page().

    So fix the usage of kmap_atomic and kill the ASYNC_TX_KMAP_DST and
    ASYNC_TX_KMAP_SRC flags.

    Cc: Andrew Morton
    Cc: Evgeniy Polyakov
    Signed-off-by: Dan Williams
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dan Williams
     
  • Signed-off-by: Stephen Rothwell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stephen Rothwell
     
  • Fix page index to offset conversion overflows in buffer layer, ecryptfs,
    and ocfs2.

    It would be nice to convert the whole tree to page_offset, but for now
    just fix the bugs.

    Signed-off-by: Nick Piggin
    Cc: Michael Halcrow
    Cc: Mark Fasheh
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Nick Piggin
     
  • zone_movable_pfn is presently marked as __initdata and referenced from
    adjust_zone_range_for_zone_movable(), which in turn is referenced by
    zone_spanned_pages_in_node(). Both of these are __meminit annotated. When
    memory hotplug is enabled, this will oops on a hot-add, due to
    zone_movable_pfn having been freed.

    __meminitdata annotation gives the desired behaviour.

    This will only impact platforms that enable both memory hotplug
    and ARCH_POPULATES_NODE_MAP.

    Signed-off-by: Paul Mundt
    Acked-by: Mel Gorman
    Acked-by: KAMEZAWA Hiroyuki
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paul Mundt
     
  • Every file should include the headers containing the prototypes for
    its global functions.

    Signed-off-by: Adrian Bunk
    Acked-by: Jeremy Fitzhardinge
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • One of the nice ideas behind paravirt is that CONFIG_XEN=y can be included
    in a standard configuration and be no worse for native booting than as a
    Xen guest. The glibc feature that supports the vDSO "nosegneg" note is
    designed specifically to make this easy. You just have to flip one bit at
    boot time. This patch makes Xen flip the bit, so a CONFIG_XEN=y kernel on
    bare hardware does not make glibc use the less-optimized library builds.

    Signed-off-by: Roland McGrath
    Acked-by: Jeremy Fitzhardinge
    Cc: Andi Kleen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roland McGrath
     
  • * 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6:
    [SPARC64]: Fix two year old bug in early bootup asm.
    [SPARC64]: Update defconfig.
    [SPARC64]: Fix log message type in vio_create_one().
    [SPARC64]: Tweak assertions in sun4v_build_virq().
    [SPARC64]: Tweak kernel log messages in power_probe().
    [SPARC64]: Fix handling of multiple vdc-port nodes.
    [SPARC64]: Fix device type matching in VIO's devspec_show().
    [SPARC64]: Fix MODULE_DEVICE_TABLE() specification in VDC and VNET.
    [SPARC]: Add sys_fallocate() entries.
    [SPARC64]: Use orderly_poweroff().

    Linus Torvalds
     
  • * master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6: (44 commits)
    USB: drivers/usb/storage/dpcm.c whitespace cleanup
    USB: r8a66597-hcd: fixes some problem
    USB: change name of spinlock in hcd.c
    USB: move routines in hcd.c
    USB: misc: uss720: clean up urb->status usage
    USB: misc: usbtest: clean up urb->status usage
    USB: misc: usblcd: clean up urb->status usage
    USB: misc: phidgetmotorcontrol: clean up urb->status usage
    USB: misc: phidgetkit: clean up urb->status usage
    USB: misc: legousbtower: clean up urb->status usage
    USB: misc: ldusb: clean up urb->status usage
    USB: misc: iowarrior: clean up urb->status usage
    USB: misc: ftdi-elan: clean up urb->status usage
    USB: misc: auerswald: clean up urb->status usage
    USB: misc: appledisplay: clean up urb->status usage
    USB: misc: adtux: clean up urb->status usage
    USB: core: message: clean up urb->status usage
    USB: image: microtek: clean up urb->status usage
    USB: image: mdc800: clean up urb->status usage
    USB: storage: onetouch: clean up urb->status usage
    ...

    Linus Torvalds
     
  • Since we have use like ~SLUB_DMA, we ought to have the type
    set right in both cases.

    Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • It's C, not C++...

    Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • It's void __user *, not void * __user...

    Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • Doing |= 1 << 19 to 16bit unsigned is not particulary useful;
    that register is 32bit, unlike the ones dealt with in the rest of
    function, so we need u32 variable here.

    Signed-off-by: Al Viro
    Acked-by: Stephen Hemminger
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • Wrong order of arguments

    Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • anything that wants working dma-mapping won't work
    parport_pc won't work on m68k unless we have ISA

    Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro