01 Jun, 2007

40 commits

  • Adds instructions how to use GDB to figure out the exact location of
    an OOPS to Documentation/BUG-HUNTING.

    Signed-off-by: Pekka Enberg
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Pekka Enberg
     
  • We are seeing increasing levels of minor patch style violations in submissions
    to the mailing lists as well as making it into the tree. These detract from
    the quality of the submission and cause unnessary work for reviewers.

    As a first step package up the current state of the patch style checker and
    include it in the kernel tree. Add instructions suggesting running it on
    submissions. This adds version v0.01 of the checkpatch.pl script.

    Signed-off-by: Andy Whitcroft
    Signed-off-by: Joel Schopp
    Cc: Randy Dunlap
    Cc: Dave Jones
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andy Whitcroft
     
  • Signed-off-by: Jeff Garzik
    Cc: Alex Dubov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Garzik
     
  • Move the forward declaration of fb_class from drivers/video/console/fbcon.h to
    , together with the other forward declarations related to
    drivers/video/fbmem.c.

    This kills the following sparse warning:
    | drivers/video/fbmem.c:1363:14: warning: symbol 'fb_class' was not declared. Should it be static?

    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Geert Uytterhoeven
     
  • Because the framebuffer memory is allocated system RAM, use the sys_ drawing
    libraries. It also fixes the following compile error:

    LD .tmp_vmlinux1
    drivers/built-in.o:(.data+0x8b48): undefined reference to `cfb_fillrect'
    drivers/built-in.o:(.data+0x8b50): undefined reference to `cfb_copyarea'
    drivers/built-in.o:(.data+0x8b58): undefined reference to `cfb_imageblit'

    [adaplas]
    Use fb_sys_read/write for the same reasons as above.

    Signed-off-by: Avuton Olrich
    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Avuton Olrich
     
  • This patch prevents null pointer dereference in arkfb and vt8623fb.

    Signed-off-by: Ondrej Zajicek
    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ondrej Zajicek
     
  • This patch fixes wrong ifdef around the xxxfb_setup. It also moves this
    function to remove forward declaration.

    Signed-off-by: Krzysztof Helt
    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Helt
     
  • When the private futex support was added the compat code wasn't changed.
    The result is that code using compat code which fail, e.g., because the
    timeout values are not correctly passed. The following patch should fix
    that.

    Signed-off-by: Ulrich Drepper
    Cc: Eric Dumazet
    Cc: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ulrich Drepper
     
  • Force Dell E520 to use the BIOS to shutdown/reboot.

    I have at least one report that this patch fixes shutdown/reboot
    problems on the Dell E520 platform.

    (Andi says: People can always set the boot option. It hardly seems like a
    critical issue needing a backport.)

    Signed-off-by: Tim Gardner
    Acked-by: Andi Kleen
    Acked-by: Matt Domsch
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tim Gardner
     
  • Chuck reports that the recent fix from Andi to oprofile
    6c977aad03a18019015035958c65b6729cd0574c introduces a double free. Each
    cpu's cpu_msrs is setup to point to cpu 0's, which causes free_msrs to free
    cpu 0's pointers for_each_possible_cpu. Rather than copy the pointers, do
    a deep copy instead.

    [acme@redhat.com: allocate_msrs() was using for_each_online_cpu()]
    Signed-off-by: Chris Wright
    Cc: Andi Kleen
    Cc: Alan Cox
    Cc: Dave Jones
    Cc: Chuck Ebbert
    Signed-off-by: Arnaldo Carvalho de Melo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Chris Wright
     
  • This patch updates the Intel ICH9M LPC Controller DID's, due to a
    specification change.

    Signed-off-by: Jason Gaston
    Cc:
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jason Gaston
     
  • Fix various bits of obviously-busted code which we're not happening to
    compile, due to ifdefs.

    Cc: "Luck, Tony"
    Cc: Ivan Kokshaysky
    Cc: Richard Henderson
    Cc: Russell King
    Cc: Ralf Baechle
    Cc: Jeff Garzik
    Cc: Jan Kara
    Cc: James Bottomley
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Yoann Padioleau
     
  • I have made a tool to parse the kernel that does not pre-process the
    source. That means that my parser tries to parse all the code, including
    code in the #else branch or code that is not often compiled because the
    driver is not very used (or not used at all). So, my parser sometimes
    reports parse error not originally detected by gcc. Here is my (first)
    patch.

    [akpm@linux-foundation.org: fix amd8111e.c]
    Signed-off-by: Yoann Padioleau
    Acked-by: Matthew Wilcox
    Acked-by: Wim Van Sebroeck
    Acked-by: David Woodhouse
    Acked-by: Jeff Garzik
    Acked-by: James Bottomley
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Yoann Padioleau
     
  • With these two lines in the reverse order the drives/block/ccis.c was
    oopsing in msi_free_irqs. Silly us calling writel on an area after
    we unmap it.

    BUG: unable to handle kernel paging request at virtual address f8b2200c
    printing eip:
    c01e9cc7
    *pdpt = 0000000000003001
    *pde = 0000000037e48067
    *pte = 0000000000000000
    Oops: 0002 [#1]
    SMP
    Modules linked in: cciss ipv6 parport_pc lp parport autofs4 i2c_dev i2c_core
    sunrpc loop dm_multipath button battery asus_acpi ac tg3 floppy sg dm_snapshot
    dm_zero dm_mirror ext3 jbd dm_mod ata_piix libata mptsas scsi_transport_sas
    mptspi scsi_transport_spi mptscsih mptbase sd_mod scsi_mod
    CPU: 1
    EIP: 0060:[] Not tainted VLI
    EFLAGS: 00010286 (2.6.22-rc2-gd2579053 #1)
    EIP is at msi_free_irqs+0x81/0xbe
    eax: f8b22000 ebx: f71f3180 ecx: f7fff280 edx: c1886eb8
    esi: f7c4e800 edi: f7c4ec48 ebp: 00000002 esp: f5a0dec8
    ds: 007b es: 007b fs: 00d8 gs: 0033 ss: 0068
    Process rmmod (pid: 5286, ti=f5a0d000 task=c47d2550 task.ti=f5a0d000)
    Stack: 00000002 f8b72294 00000400 f8b69ca7 f8b6bc6c 00000002 00000000 00000000
    00000000 00000000 00000000 f5a997f4 f8b69d61 f7c5a4b0 f7c4e848 f7c4e848
    f7c4e800 f7c4e800 f8b72294 f7c4e848 f8b72294 c01e3cdf f7c4e848 c024c469
    Call Trace:
    [] cciss_shutdown+0xae/0xc3 [cciss]
    [] cciss_remove_one+0xa5/0x178 [cciss]
    [] pci_device_remove+0x16/0x35
    [] __device_release_driver+0x71/0x8e
    [] driver_detach+0xa0/0xde
    [] bus_remove_driver+0x27/0x41
    [] pci_unregister_driver+0xb/0x13
    [] cciss_cleanup+0xf/0x51 [cciss]
    [] sys_delete_module+0x110/0x135
    [] sysenter_past_esp+0x5f/0x85

    Here's a patch that just reverses the 2 lines of code as Eric suggests. Please
    consider this for inclusion.

    Signed-off-by: Mike Miller
    Signed-off-by: Chase Maupin
    Signed-off-by: "Eric W. Biederman"
    Cc: Andi Kleen
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eric W. Biederman
     
  • "Mike Miller (OS Dev)" writes:

    Found what seems the problem with our vectors being listed backward. In
    drivers/pci/msi.c we should be using list_add_tail rather than list_add to
    preserve the ordering across various kernels. Please consider this for
    inclusion.

    Signed-off-by: "Eric W. Biederman"
    Screwed-up-by: Michael Ellerman
    Cc: "Mike Miller (OS Dev)"
    Cc: Andi Kleen
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eric W. Biederman
     
  • Balance parenthesis in m68k mac debug code.

    Signed-off-by: Mariusz Kozlowski
    Acked-by: Geert Uytterhoeven
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mariusz Kozlowski
     
  • update_next_aext() could possibly rewrite values in elen and eloc, possibly
    leading to data corruption when rewriting a file. Use temporary variables
    instead. Also advance cur_epos as it can also point to an indirect extent
    pointer.

    Signed-off-by: Jan Kara
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jan Kara
     
  • ucc_geth has been migrated to use the common phylib code. So lets add a
    'select PHYLIB' to the UCC_GETH Kconfig entry.

    Signed-off-by: Jan Altenberg
    Cc: Jeff Garzik
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jan Altenberg
     
  • On systems with huge amount of physical memory, VFS cache and memory memmap
    may eat all available system memory under 4G, then the system may fail to
    allocate swiotlb bounce buffer.

    There was a fix for this issue in arch/x86_64/mm/numa.c, but that fix dose
    not cover sparsemem model.

    This patch add fix to sparsemem model by first try to allocate memmap above
    4G.

    Signed-off-by: Zou Nan hai
    Acked-by: Suresh Siddha
    Cc: Andi Kleen
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Zou Nan hai
     
  • Signed-off-by: Alexey Dobriyan
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     
  • * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
    Define/reserve new ext4 superblock fields
    When ext4_ext_insert_extent() fails to insert new blocks
    ext4: Extent overlap bugfix
    Remove unnecessary exported symbols.
    EXT4: Fix whitespace

    Linus Torvalds
     
  • The Via VT3351 APIC does not play well with MSI and unleashes a flood
    of APIC errors when MSI is used to deliver interrupts. The problem
    was recently exposed when the atl1 network device driver, which enables
    MSI by default, stimulated APIC errors on an Asus M2V mainboard, which
    employs the Via VT3351.
    See http://bugzilla.kernel.org/show_bug.cgi?id=8472 for additional
    details on this bug.

    Signed-off-by: Jay Cliburn
    Signed-off-by: Greg Kroah-Hartman

    Jay Cliburn
     
  • Wolfgang gets:

    PCI: Cannot allocate resource region 0 of device 0000:00:04.0
    PCI: Error while updating region 0000:00:04.0/0 (a8008000 != fec08000)

    Note that the BAR seems to have high address bits hardwired to fec00000.
    And device 0000:00:04.0 is

    00:04.0 System peripheral: Siemens Nixdorf AG FSC Multiprocessor Interrupt Controller (rev 02)

    I'd guess that when we try to reassign this resource, PCI interrupts might
    just stop working. This could explain SCSI timeouts and other weird things.

    Cc: Wolfgang Erig
    Cc: Chuck Ebbert
    Cc: Andi Kleen
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Ivan Kokshaysky
     
  • pci_find_present() is only matching the last item in the list of ids.

    The break after the match is found only escapes the for loop, not the
    while loop, so found gets reset to NULL on the next pass.

    Signed-off-by: Ben Gardner
    Cc: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Ben Gardner
     
  • I've been seeing lots of messages like these:

    eth0: No interrupt was generated using MSI, switching to INTx mode. Please
    report this failure to the PCI maintainer and include system chipset
    information.

    On several systems that use the following Severworks HT1000 (also sometimes
    labeled as a Broadcom chipset as well) bridge chips. It doesn't appear MSI
    works well (if at all) on these systems.

    Signed-off-by: Andy Gospodarek
    Cc: "Eric W. Biederman"
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Andy Gospodarek
     
  • In file included from drivers/pci/msi.c:22:
    include/asm/smp.h:17:26: asm/arch/smp.h: No such file or directory
    include/asm/smp.h:20:3: #error " included in non-SMP build"
    include/asm/smp.h:23:1: warning: "raw_smp_processor_id" redefined
    In file included from include/linux/sched.h:65,
    from include/linux/mm.h:4,
    from drivers/pci/msi.c:10:
    include/linux/smp.h:85:1: warning: this is the location of the previous
    definition

    Tested on powerpc, i386, and x86_64.

    Signed-off-by: Dan Williams
    Acked-by: Eric W. Biederman
    Signed-off-by: Greg Kroah-Hartman

    Dan Williams
     
  • Signed-off-by: "Theodore Ts'o"

    Theodore Ts'o
     
  • we should free just the allocated blocks.

    Signed-off-by: Alex Tomas
    Signed-off-by: Mingming Cao
    Signed-off-by: "Theodore Ts'o"

    Alex Tomas
     
  • This patch adds a check for overlap of extents and cuts short the
    new extent to be inserted, if there is a chance of overlap.

    Signed-off-by: Amit Arora
    Signed-off-by: "Theodore Ts'o"

    Amit Arora
     
  • Signed-Off-By: Mingming Cao
    Signed-off-by: "Theodore Ts'o"

    Mingming Cao
     
  • Replace a lot of spaces with tabs

    Signed-off-by: Dave Kleikamp
    Signed-off-by: "Theodore Ts'o"

    Dave Kleikamp
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fix:
    sparc64: fix alignment bug in linker definition script

    Linus Torvalds
     
  • * 'for-linus' of git://git390.osdl.marist.edu/pub/scm/linux-2.6:
    [S390] cio: deregister ccw device when pgid disband failed
    [S390] cio: Use device_schedule_callback() for removing disconnected devices.
    [S390] Fix section annotations.
    [S390] raw3270: use mutex instead of semaphore
    [S390] arch/s390/kernel/debug.c: use mutex instead of semaphore
    [S390] dasd_eer: use mutex instead of semaphore
    [S390] Add exception handler for diagnose 224

    Linus Torvalds
     
  • * master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh-2.6:
    sh: support older gcc's
    sh: trivial build cleanups.
    sh: Fix vsyscall build failure.
    sh: Trivial fix for dma-api compile failure.
    sh: Fix pcrel too far for in_nmi label.
    sh: section mismatch fixes for system timer.

    Linus Torvalds
     
  • * 'linus' of master.kernel.org:/pub/scm/linux/kernel/git/perex/alsa:
    [ALSA] version 1.0.14
    [ALSA] hda-codec - Fix STAC922x capture boost level
    [ALSA] hda-codec - Fix input with STAC92xx
    [ALSA] hda-codec - Fix pin configs for Gateway MX6453
    [ALSA] hda-codec - Add support for MSI K9N Ultra
    [ALSA] hda-codec - Add quirk for Supermicro PDSBA to alc883_cfg_tbl[]
    [ALSA] hda-codec - Add quirk for MSI S420
    [ALSA] Fix ASoC s3c24xx-pcm spinlock bug
    [ALSA] hda-intel: fix ASUS M2V detection
    [ALSA] ali5451 - Fix possible NULL dereference
    [ALSA] hda-codec - Add support for ASUS A8J modem
    [ALSA] HDA: Fix headphone mute issue on non-eapd Conexant systems
    [ALSA] HDA: Add more systems to Sigmatel codec
    [ALSA] HDA: Add support for Gateway NX860

    Linus Torvalds
     
  • * 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6:
    [SPARC]: Missing #include in drivers/sbus/char/flash.c
    [SPARC32]: Build fix.
    [SPARC64]: Add missing NCS and SVC hypervisor interfaces.

    Linus Torvalds
     
  • * 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6: (24 commits)
    [IPSEC]: Add xfrm_sysctl.txt.
    [BRIDGE]: Round off STP perodic timers.
    [BRIDGE]: Reduce frequency of forwarding cleanup timer in bridge.
    [TCP] tcp_probe: use GCC printf attribute
    [TCP] tcp_probe: a trivial fix for mismatched number of printl arguments.
    [IPV6] ADDRCONF: Fix conflicts in DEVCONF_xxx constant.
    [NET] napi: Call __netif_rx_complete in netif_rx_complete
    [TCP]: Consolidate checking for tcp orphan count being too big.
    [SOCK]: Shrink struct sock by 8 bytes on 64-bit.
    [AF_PACKET]: Kill CONFIG_PACKET_SOCKET.
    [IPV6]: Fix build warning.
    [AF_PACKET]: Kill bogus CONFIG_PACKET_MULTICAST
    [IPV4]: Kill references to bogus non-existent CONFIG_IP_NOSIOCRT
    [IPSEC]: Fix panic when using inter address familiy IPsec on loopback.
    [NET]: parse ip:port strings correctly in in4_pton
    [IPV6] ROUTE: No longer handle ::/0 specially.
    [IPSEC]: Fix IPv6 AH calculation in outbound
    [XFRM]: xfrm_larval_drop sysctl should be __read_mostly.
    [XFRM]: Allow XFRM_ACQ_EXPIRES to be tunable via sysctl.
    [CASSINI]: Fix printk message typo.
    ...

    Linus Torvalds
     
  • * master.kernel.org:/pub/scm/linux/kernel/git/herbert/crypto-2.6:
    [CRYPTO] cryptd: Fix problem with cryptd and the freezer

    Linus Torvalds
     
  • * 'drm-patches' of ssh://master.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6:
    drm: make sure the drawable code doesn't call malloc(0).
    drm/radeon: add more IGP chipset pci ids
    drm: Spinlock initializer cleanup

    Linus Torvalds
     
  • * 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev:
    [libata] Add drive to NCQ blacklist

    Linus Torvalds