05 Jul, 2009

1 commit

  • Some intcall() misuses the input biosregs as output in
    cf06de7b9cdd3efee7a59dced1977b3c21d43732

    This fixes the problem vga=ask boot option doesn't show enough modes.

    Signed-off-by: Akinobu Mita
    LKML-Reference:
    Signed-off-by: H. Peter Anvin

    Akinobu Mita
     

03 Jul, 2009

7 commits

  • …joro/linux-2.6-iommu into x86/urgent

    Ingo Molnar
     
  • lapic_watchdog_ok() is a global function but no one is using it.

    Signed-off-by: Jaswinder Singh Rajput
    Cc: Andi Kleen
    Cc: Yinghai Lu
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Jaswinder Singh Rajput
     
  • setup_nox2apic() is writing 1 to disable_x2apic but no one is reading it.

    Signed-off-by: Jaswinder Singh Rajput
    Cc: Yinghai Lu
    Cc: Cyrill Gorcunov
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Jaswinder Singh Rajput
     
  • The function paravirt_ops_setup() has been refering the
    variable no_timer_check, which is a __initdata. Thus generates
    the following warning. paravirt_ops_setup() function is called
    from kvm_guest_init() which is a __init function. So to fix
    this we mark paravirt_ops_setup as __init.

    The sections-check output that warned us about this was:

    LD arch/x86/built-in.o
    WARNING: arch/x86/built-in.o(.text+0x166ce): Section mismatch in
    reference from the function paravirt_ops_setup() to the variable
    .init.data:no_timer_check
    The function paravirt_ops_setup() references
    the variable __initdata no_timer_check.
    This is often because paravirt_ops_setup lacks a __initdata
    annotation or the annotation of no_timer_check is wrong.

    Signed-off-by: Rakib Mullick
    Acked-by: Avi Kivity
    Cc: Andrew Morton
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Rakib Mullick
     
  • While examining symbol generation in perf_counter tools, I
    noticed that copy_to_user() had no size in vmlinux's symtab.

    Signed-off-by: Mike Galbraith
    Acked-by: Alexander van Heukelum
    Acked-by: Cyrill Gorcunov
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Mike Galbraith
     
  • Masami reported:

    > Since the fixmap pages are assigned higher address to lower,
    > text_poke() has to use it with inverted order (FIX_TEXT_POKE1
    > to FIX_TEXT_POKE0).

    I prefer to just invert the order of the fixmap declaration.
    It's simpler and more straightforward.

    Backward fixmaps seems to be used by both x86 32 and 64.

    It's really rare but a nasty bug, because it only hurts when
    instructions to patch are crossing a page boundary. If this
    happens, the fixmap write accesses will spill on the following
    fixmap, which may very well crash the system. And this does not
    crash the system, it could leave illegal instructions in place.
    Thanks Masami for finding this.

    It seems to have crept into the 2.6.30-rc series, so this calls
    for a -stable inclusion.

    Signed-off-by: Mathieu Desnoyers
    Acked-by: Masami Hiramatsu
    Cc:
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Mathieu Desnoyers
     
  • The setting of this variable got lost during the suspend/resume
    implementation. But keeping this variable zero causes a divide-by-zero
    error in the interrupt handler. This patch fixes this.

    Signed-off-by: Joerg Roedel

    Joerg Roedel
     

02 Jul, 2009

2 commits

  • An alias entry in the ACPI table means that the device can send requests to the
    IOMMU with both device ids, its own and the alias. This is not handled properly
    in the ACPI init code. This patch fixes the issue.

    Signed-off-by: Joerg Roedel

    Joerg Roedel
     
  • Instead of this:

    [ 75.690022] printing local APIC contents on CPU#0/0:
    [ 75.704406] ... APIC ID: 00000000 (0)
    [ 75.707905] ... APIC VERSION: 00060015
    [ 75.722551] ... APIC TASKPRI: 00000000 (00)
    [ 75.725473] ... APIC PROCPRI: 00000000
    [ 75.728592] ... APIC LDR: 00000001
    [ 75.742137] ... APIC SPIV: 000001ff
    [ 75.744101] ... APIC ISR field:
    [ 75.746648] 0123456789abcdef0123456789abcdef
    [ 75.746649] 00000000000000000000000000000000

    Improve the code to be saner and simpler and just print out
    the bitfield in a single line using hexa values - not as a
    (rather pointless) binary bitfield.

    Partially reused Linus's initial fix for this.

    Reported-and-Tested-by: Yinghai Lu
    Signed-off-by: Yinghai Lu
    Cc: Linus Torvalds
    Cc: Andrew Morton
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Ingo Molnar
     

01 Jul, 2009

6 commits

  • This sparse warning:

    arch/x86/mm/init.c:83:16: warning: symbol 'check_efer' was not declared. Should it be static?

    triggers because check_efer() is not decalared before using it.
    asm/proto.h includes the declaration of check_efer(), so
    including asm/proto.h to fix that - this also addresses the
    sparse warning.

    Signed-off-by: Jaswinder Singh Rajput
    Cc: Andrew Morton
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Jaswinder Singh Rajput
     
  • This sparse warning:

    arch/x86/kernel/amd_iommu.c:1195:23: warning: symbol 'device_nb' was not declared. Should it be static?

    triggers because device_nb is global but is only used in a
    single .c file. change device_nb to static to fix that - this
    also addresses the sparse warning.

    This sparse warning:

    arch/x86/kernel/amd_iommu.c:1766:10: warning: Using plain integer as NULL pointer

    triggers because plain integer 0 is used in place of a NULL
    pointer. change 0 to NULL to fix that - this also address the
    sparse warning.

    Signed-off-by: Jaswinder Singh Rajput
    Cc: Joerg Roedel
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Jaswinder Singh Rajput
     
  • MSR_P6_EVNTSEL0 and MSR_P6_EVNTSEL1 is already declared in msr-index.h.

    Signed-off-by: Jaswinder Singh Rajput
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Jaswinder Singh Rajput
     
  • The init_IRQ() function is now called with slab allocator initialized.
    Therefore, we must not use the bootmem allocator in xen_init_IRQ().

    Fixes the following boot-time warning:

    ------------[ cut here ]------------
    WARNING: at mm/bootmem.c:535 alloc_arch_preferred_bootmem+0x27/0x45()
    Modules linked in:
    Pid: 0, comm: swapper Not tainted 2.6.30 #1
    Call Trace:
    [] ? warn_slowpath_common+0x73/0xb0
    [] ? pvclock_clocksource_read+0x49/0x90
    [] ? alloc_arch_preferred_bootmem+0x27/0x45
    [] ? ___alloc_bootmem_nopanic+0x39/0xc9
    [] ? ___alloc_bootmem+0x9/0x2f
    [] ? xen_init_IRQ+0x25/0x61
    [] ? start_kernel+0x1b5/0x29e
    ---[ end trace 4eaa2a86a8e2da22 ]---

    Acked-by: Jeremy Fitzhardinge
    Tested-by: Christian Kujau
    Reported-by: Christian Kujau
    Signed-off-by: Pekka Enberg
    Cc: lists@nerdbynature.de
    Cc: jeremy.fitzhardinge@citrix.com
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Pekka Enberg
     
  • The merge of the 32- and 64-bit fixmap headers made a latent
    bug on x86-64 a real one: with the right config settings
    it is possible for FIX_OHCI1394_BASE to overlap the FIX_BTMAP_*
    range.

    Signed-off-by: Jan Beulich
    Cc: # for 2.6.30.x
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Jan Beulich
     
  • Noticed the zero-sized function symbol while looking at 'perf' profiles,
    it causes the profiler to display those addresses in hexa.

    Turns out that this was wrong/bogus for an eternity.

    Signed-off-by: Mike Galbraith
    Acked-by: Alexander van Heukelum
    Acked-by: Cyrill Gorcunov
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Mike Galbraith
     

30 Jun, 2009

18 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide-2.6:
    ide: memory overrun in ide_get_identity_ioctl() on big endian machines using ioctl HDIO_OBSOLETE_IDENTITY
    ide: fix resume for CONFIG_BLK_DEV_IDEACPI=y
    ide-cd: handle fragmented packet commands gracefully
    ide: always kill the whole request on error
    ide: fix ide_kill_rq() for special ide-{floppy,tape} driver requests

    Linus Torvalds
     
  • …tl HDIO_OBSOLETE_IDENTITY

    This patch fixes a memory overrun in function ide_get_identity_ioctl() which
    chooses the size of a memory buffer depending on the ioctl command that led
    to the function call, however, passes that buffer to a function which needs the
    buffer size to be always chosen unconditionally.

    Due to conditional compilation the memory overrun can only happen on big endian
    machines. The error can be triggered using ioctl HDIO_OBSOLETE_IDENTITY. Usage
    of ioctl HDIO_GET_IDENTITY is safe.

    Signed-off-by: Christian Engelmayer <christian.engelmayer@frequentis.com>
    Acked-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

    Christian Engelmayer
     
  • commit 2f0d0fd2a605666d38e290c5c0d2907484352dc4 ("ide-acpi: cleanup
    do_drive_get_GTF()") didn't account for the lack of hwif->acpidata
    check in generic_ide_suspend() [ indirect user of do_drive_get_GTF()
    through ide_acpi_exec_tfs() ] resulting in broken resume when ACPI
    support is enabled but ACPI data is unavailable.

    Fix it by adding ide_port_acpi() helper for checking if port needs
    ACPI handling and cleaning generic_ide_{suspend,resume}() to use it
    instead of hiding hwif->acpidata and ide_noacpi checks in IDE ACPI
    helpers (this should help in preventing similar bugs in the future).

    While at it:
    - kill superfluous debugging printks in ide_acpi_{get,push}_timing()

    Reported-and-tested-by: Etienne Basset
    Also-reported-and-tested-by: Jeff Chua
    Signed-off-by: Bartlomiej Zolnierkiewicz
    Signed-off-by: David S. Miller

    Bartlomiej Zolnierkiewicz
     
  • * master.kernel.org:/home/rmk/linux-2.6-arm: (28 commits)
    [ARM] 5562/2: at91: add gpio button support for at91sam9g20ek
    [ARM] 5563/1: at91: at91sam9rlek lcd interface correction
    [ARM] 5565/2: Use PAGE_SIZE and RO_DATA() in link script
    [ARM] 5560/1: Avoid buffer overrun in case of an invalid IRQ
    [ARM] GTA02: build fixes (s3c2410_nand_set usage)
    [ARM] MINI2440: Add missing flash_bbt flat to NAND
    [ARM] s3c2410_defconfig: add MINI2440 machine to build
    [ARM] S3C: Fix S3C24XX build to not include s3c64xx IIS devices
    [ARM] S3C24XX: Fix missing s3c_iis_device.
    [ARM] MINI2440: remove duplicated #include
    [ARM] S3C24XX: Fix spi-bus configuration build errors
    OMAP: Fix IOMEM macro for assembly
    [ARM] S3C: Remove unused CONFIG_DEBUG_S3C_PORT
    [ARM] S3C24XX: Fix use of CONFIG_S3C24XX_PWM
    OMAP2/3: Initialize gpio debounce register
    OMAP: IOMMU: function flush_iotlb_page is not flushing correct entry
    OMAP3: RX51: Use OneNAND sync read / write
    OMAP2/3: gpmc-onenand: correct use of async timings
    OMAP3: DMA: Enable idlemodes for DMA OCP
    OMAP3: SRAM size fix for HS/EMU devices
    ...

    Linus Torvalds
     
  • * 'for-linus' of git://git.infradead.org/users/eparis/notify:
    fs: allow d_instantiate to be called with negative parent dentry

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
    sound: OSS: mpu401, fix deadlock
    ALSA: hda - Add missing initializations for ALC268 and ALC269
    ALSA: cmi8330: fix MPU-401 PnP init copy&paste bug
    ALSA: hda - Line In for Acer Inspire 6530G model
    sound: oxygen: make mic volume control mono
    MAINTAINERS: Add entry for twl4030 series soc codec driver
    ALSA: lx6464es - configure ethersound io channels
    sound: Use PCI_VDEVICE for CREATIVE and ECTIVA
    sound: Use PCI_VDEVICE
    ALSA: hda - Use model=acer-aspire-6530g for Acer Aspire 6930G
    ALSA: hda - Fix acer-aspire-6530g model quirk
    ALSA: hda - Add pin-sense trigger when needed for Realtek codecs
    ALSA: hda - Fix support for Samsung P50 with AD1986A codec
    ALSA: hda - Generalize the pin-detect quirk for Lenovo N100
    ALSA: hda - Simplify AD1986A mixer definitions

    Linus Torvalds
     
  • …/security-testing-2.6

    * 'bugfixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6:
    integrity: add ima_counts_put (updated)
    integrity: ima audit hash_exists fix
    integrity: ima mq_open imbalance msg fix

    Linus Torvalds
     
  • …git/tip/linux-2.6-tip

    * 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    Revert "x86: cap iomem_resource to addressable physical memory"

    Linus Torvalds
     
  • * 'for-linus' of git://git.o-hand.com/linux-rpurdie-backlight:
    backlight: Fix tdo24m crash on kmalloc

    Linus Torvalds
     
  • FYI, there's a post-rc1 build regression with certain configs:

    drivers/built-in.o: In function `pci_hp_deregister':
    (.text+0xb166): undefined reference to `pci_hp_remove_module_link'
    drivers/built-in.o: In function `pci_hp_deregister':
    (.text+0xb19f): undefined reference to `pci_destroy_slot'
    drivers/built-in.o: In function `__pci_hp_register':
    (.text+0xb583): undefined reference to `pci_create_slot'
    drivers/built-in.o: In function `__pci_hp_register':
    (.text+0xb5b1): undefined reference to `pci_hp_create_module_link'
    make: *** [.tmp_vmlinux1] Error 1

    Caused by:

    | 2b121bc262fa03c94e653b2d44356c2f86c1bcdc is first bad commit
    | commit 2b121bc262fa03c94e653b2d44356c2f86c1bcdc
    | Date: Thu Jun 25 13:25:36 2009 +0200
    |
    | eeepc-laptop: Register as a pci-hotplug device

    which changed the driver to use the PCI hotplug infrastructure, but
    didn't do a good job on the Kconfig rules.

    Signed-off-by: Ingo Molnar
    Acked-by: Randy Dunlap
    Acked-by: Len Brown
    Signed-off-by: Linus Torvalds

    Ingo Molnar
     
  • Currently we reinit the ldisc on final tty close which is what the old code
    did to ensure that if the device retained its termios settings then it had the
    right ldisc. tty_ldisc_reinit does that but also leaves us with the reset
    ldisc reference which is then leaked.

    At this point we know the port will be recycled so we can kill the ldisc
    off completely rather than try and add another ldisc free up when the kref
    count hits zero.

    At this point it is safe to keep the ldisc closed as tty_ldisc waiting
    methods are only used from the user side, and as the final close we are
    the last such reference. Interrupt/driver side methods will always use the
    non wait version and get back a NULL.

    Found with kmemleak and investigated/identified by Catalin Marinas.

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

    Alan Cox
     
  • mpu401_chk_version is called with a spin lock already held. Don't take it
    again.

    Signed-off-by: Jiri Slaby
    Signed-off-by: Takashi Iwai

    Jiri Slaby
     
  • * fix/pci-vdevice:
    sound: Use PCI_VDEVICE for CREATIVE and ECTIVA
    sound: Use PCI_VDEVICE

    Takashi Iwai
     
  • * fix/oxygen:
    sound: oxygen: make mic volume control mono

    Takashi Iwai
     
  • * fix/misc:
    ALSA: cmi8330: fix MPU-401 PnP init copy&paste bug

    Takashi Iwai
     
  • * fix/lx6464es:
    ALSA: lx6464es - configure ethersound io channels

    Takashi Iwai
     
  • * fix/hda-samsung-p50:
    ALSA: hda - Fix support for Samsung P50 with AD1986A codec
    ALSA: hda - Generalize the pin-detect quirk for Lenovo N100
    ALSA: hda - Simplify AD1986A mixer definitions

    Takashi Iwai
     
  • * fix/hda:
    ALSA: hda - Add missing initializations for ALC268 and ALC269
    ALSA: hda - Line In for Acer Inspire 6530G model
    ALSA: hda - Use model=acer-aspire-6530g for Acer Aspire 6930G
    ALSA: hda - Fix acer-aspire-6530g model quirk
    ALSA: hda - Add pin-sense trigger when needed for Realtek codecs

    Takashi Iwai
     

29 Jun, 2009

6 commits

  • The new fsnotify infrastructure (starting at 90586523) causes an oops in
    spufs, where we populate a directory with files before instantiating the
    directory itself. The new changes seem to have introduced an assumption
    that a dentry's parent will be positive when instantiating.

    This change makes it once again possible to d_instantiate a dentry
    with a negative parent, and brings __fsnotify_d_instantiate() into
    line with inotify_d_instantiate(), which already has this NULL check.

    Signed-off-by: Jeremy Kerr
    Signed-off-by: Eric Paris

    Jeremy Kerr
     
  • This adds input keyboard gpio support on at91sam9g20ek board.
    It adds button 3 and 4.

    Signed-off-by: Nicolas Ferre
    Acked-by: Andrew Victor
    Signed-off-by: Russell King

    Nicolas Ferre
     
  • During the changes to clean up / fix the realtek codec initialization
    routines in commit 4a79ba34cada6a5a4ee86ed53aa8a73ba1e6fc51,
    I forgot to add the check for ALC268 and ALC269.
    This resulted in the missing EAPD and COEF setup for these codecs.

    This patch adds the missing checks for these codecs.

    Reference: bko#13633
    http://bugzilla.kernel.org/show_bug.cgi?id=13633

    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • Fix copy&paste bug in PnP MPU-401 initialization.

    Signed-off-by: Ondrej Zary
    Cc:
    Signed-off-by: Takashi Iwai

    Ondrej Zary
     
  • The Line In connector is set up as PIN_IN by default, using
    VREF_HIZ. It is connected to both ADCs, so add it to both
    input selectors.
    Also add the ability to use the input mix (on a SoundBlaster
    one would call this "What You Hear").

    Signed-off-by: Tony Vroon
    Signed-off-by: Takashi Iwai

    Tony Vroon
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6:
    be2net: Fix to avoid a crash seen on PPC with LRO and Jumbo frames.
    gro: Flush GRO packets in napi_disable_pending path
    inet: Call skb_orphan before tproxy activates
    mac80211: Use rcu_barrier() on unload.
    sunrpc: Use rcu_barrier() on unload.
    bridge: Use rcu_barrier() instead of syncronize_net() on unload.
    ipv6: Use rcu_barrier() on module unload.
    decnet: Use rcu_barrier() on module unload.
    sky2: Fix checksum endianness
    mdio add missing GPL flag
    sh_eth: remove redundant test on unsigned
    fsl_pq_mdio: Fix fsl_pq_mdio to work with modules
    ipv6: avoid wraparound for expired preferred lifetime
    tcp: missing check ACK flag of received segment in FIN-WAIT-2 state
    atl1*: add device_set_wakeup_enable to atl1*_set_wol
    Phonet: generate Netlink RTM_DELADDR when destroying a device
    Phonet: publicize the Netlink notification function
    Revert "veth: prevent oops caused by netdev destructor"
    cpmac: fix compilation failure introduced with netdev_ops conversion
    ipsec: Fix name of CAST algorithm

    Linus Torvalds