05 Dec, 2010

2 commits

  • K class aka KittyHawk don't have LED support on their LCD. Installing
    HP-UX confirmed this. The current led_wq fills the LCD with black
    characters each time it runs.

    The patch prevents the led_wq workqueue and its proc entry to be
    created for KittyHawk machines.

    It also increase min_cmd_delay as currently, one character out of two
    is lost when a string is sent to the LCD.

    Signed-off-by: Guy Martin
    Signed-off-by: Kyle McMartin

    Guy Martin
     
  • The generic conversion eliminates the spurious no_ack and no_end
    routines, converts all the cascaded handlers to handle_simple_irq() and
    makes iosapic use a modified handle_percpu_irq() to become the same as
    the CPU irq's. This isn't an essential change, but it eliminates the
    mask/unmask overhead of handle_level_irq().

    Signed-off-by: James Bottomley
    Tested-by: Helge Deller
    Signed-off-by: Kyle McMartin

    James Bottomley
     

30 Nov, 2010

6 commits

  • …s/security-testing-2.6

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6:
    tpm: Autodetect itpm devices

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (27 commits)
    af_unix: limit recursion level
    pch_gbe driver: The wrong of initializer entry
    pch_gbe dreiver: chang author
    ucc_geth: fix ucc halt problem in half duplex mode
    inet: Fix __inet_inherit_port() to correctly increment bsockets and num_owners
    ehea: Add some info messages and fix an issue
    hso: fix disable_net
    NET: wan/x25_asy, move lapb_unregister to x25_asy_close_tty
    cxgb4vf: fix setting unicast/multicast addresses ...
    net, ppp: Report correct error code if unit allocation failed
    DECnet: don't leak uninitialized stack byte
    au1000_eth: fix invalid address accessing the MAC enable register
    dccp: fix error in updating the GAR
    tcp: restrict net.ipv4.tcp_adv_win_scale (#20312)
    netns: Don't leak others' openreq-s in proc
    Net: ceph: Makefile: Remove unnessary code
    vhost/net: fix rcu check usage
    econet: fix CVE-2010-3848
    econet: fix CVE-2010-3850
    econet: disallow NULL remote addr for sendmsg(), fixes CVE-2010-3849
    ...

    Linus Torvalds
     
  • Some Lenovos have TPMs that require a quirk to function correctly. This can
    be autodetected by checking whether the device has a _HID of INTC0102. This
    is an invalid PNPid, and as such is discarded by the pnp layer - however
    it's still present in the ACPI code, so we can pull it out that way. This
    means that the quirk won't be automatically applied on non-ACPI systems,
    but without ACPI we don't have any way to identify the chip anyway so I
    don't think that's a great concern.

    Signed-off-by: Matthew Garrett
    Acked-by: Rajiv Andrade
    Tested-by: Jiri Kosina
    Tested-by: Andy Isaacson
    Signed-off-by: James Morris

    Matthew Garrett
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp:
    EDAC: Fix typos in Documentation/edac.txt
    EDAC, MCE: Fix edac_init_mce_inject error handling
    EDAC: Remove deprecated kbuild goal definitions

    Linus Torvalds
     
  • The wrong of initializer entry was modified.

    Signed-off-by: Toshiharu Okada
    Reported-by: Dr. David Alan Gilbert
    Signed-off-by: David S. Miller

    Toshiharu Okada
     
  • This driver's AUTHOR was changed to "Toshiharu Okada" from "Masayuki Ohtake".
    I update the Kconfig, renamed "Topcliff" to "EG20T".

    Signed-off-by: Toshiharu Okada
    Signed-off-by: David S. Miller

    Toshiharu Okada
     

29 Nov, 2010

8 commits

  • In commit 58933c64(ucc_geth: Fix the wrong the Rx/Tx FIFO size),
    the UCC_GETH_UTFTT_INIT is set to 512 based on the recommendation
    of the QE Reference Manual. But that will sometimes cause tx halt
    while working in half duplex mode.

    According to errata draft QE_GENERAL-A003(High Tx Virtual FIFO
    threshold size can cause UCC to halt), setting UTFTT less than
    [(UTFS x (M - 8)/M) - 128] will prevent this from happening
    (M is the minimum buffer size).

    The patch changes UTFTT back to 256.

    Signed-off-by: Li Yang
    Cc: Jean-Denis Boyer
    Cc: Andreas Schmitz
    Cc: Anton Vorontsov
    Signed-off-by: David S. Miller

    Yang Li
     
  • This patch adds some debug information about ehea not being able to
    allocate enough spaces. Also it correctly updates the amount of available
    skb.

    Signed-off-by: Breno Leitao
    Signed-off-by: David S. Miller

    Breno Leitao
     
  • * 'fwnet' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6:
    firewire: net: throttle TX queue before running out of tlabels
    firewire: net: replace lists by counters
    firewire: net: fix memory leaks
    firewire: net: count stats.tx_packets and stats.tx_bytes

    Linus Torvalds
     
  • The HSO driver incorrectly creates a serial device instead of a net
    device when disable_net is set. It shouldn't create anything for the
    network interface.

    Signed-off-by: Filip Aben
    Reported-by: Piotr Isajew
    Reported-by: Johan Hovold
    Signed-off-by: David S. Miller

    Filip Aben
     
  • We register lapb when tty is created, but unregister it only when the
    device is UP. So move the lapb_unregister to x25_asy_close_tty after
    the device is down.

    The old behaviour causes ldisc switching to fail each second attempt,
    because we noted for us that the device is unused, so we use it the
    second time, but labp layer still have it registered, so it fails
    obviously.

    Signed-off-by: Jiri Slaby
    Reported-by: Sergey Lapin
    Cc: Andrew Hendry
    Tested-by: Sergey Lapin
    Tested-by: Mikhail Ulyanov
    Signed-off-by: David S. Miller

    Jiri Slaby
     
  • We were truncating the number of unicast and multicast MAC addresses
    supported. Additionally, we were incorrectly computing the MAC Address
    hash (a "1 << N" where we needed a "1ULL << N").

    Signed-off-by: Casey Leedom
    Signed-off-by: David S. Miller

    Casey Leedom
     
  • Allocating unit from ird might return several error codes
    not only -EAGAIN, so it should not be changed and returned
    precisely. Same time unit release procedure should be invoked
    only if device is unregistering.

    Signed-off-by: Cyrill Gorcunov
    CC: Paul Mackerras
    Signed-off-by: David S. Miller

    Cyrill Gorcunov
     
  • "aup->enable" holds already the address pointing to the MAC enable
    register. The bug was introduced by commit d0e7cb:

    "au1000-eth: remove volatiles, switch to I/O accessors".

    CC: Florian Fainelli
    Signed-off-by: Wolfgang Grandegger
    Acked-by: Florian Fainelli
    Signed-off-by: David S. Miller

    Wolfgang Grandegger
     

27 Nov, 2010

4 commits


25 Nov, 2010

20 commits

  • Incorrect rcu check was used as rcu isn't done
    under mutex here. Force check to 1 for now,
    to stop it from complaining.

    Signed-off-by: Michael S. Tsirkin

    Michael S. Tsirkin
     
  • The qdio device indicator is freed before the device is notified that
    the indicator is reset. This sequence contains a race when the freed
    indicator is used by a new device while the reset of the indicator is
    still pending. Do the reset operation before freeing the indicator to
    avoid that potential race.

    Signed-off-by: Jan Glauber
    Signed-off-by: Martin Schwidefsky

    Jan Glauber
     
  • * 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/staging:
    hwmon: (lis3lv02d_i2c) Fix compile warnings
    hwmon: (i5k_amb) Fix compile warning

    Linus Torvalds
     
  • * 'drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile:
    pci root complex: support for tile architecture
    drivers/net/tile/: on-chip network drivers for the tile architecture
    MAINTAINERS: add drivers/char/hvc_tile.c as maintained by tile

    Linus Torvalds
     
  • * master.kernel.org:/home/rmk/linux-2.6-arm:
    ARM: 6482/2: Fix find_next_zero_bit and related assembly
    ARM: 6490/1: MM: bugfix: initialize spinlock for init_mm.context
    ARM: avoid annoying 's in printk output
    SCSI: arm fas216: fix missing ';'
    ARM: avoid marking decompressor .stack section as having contents
    ARM: 6489/1: thumb2: fix incorrect optimisation in usracc
    ARM: 6488/1: nomadik: prevent sched_clock() wraparound
    ARM: 6484/1: fix compile warning in mm/init.c
    ARM: 6473/1: Small update to ux500 specific L2 cache code
    ARM: improve compiler's ability to optimize page tables
    mx25: fix spi device registration typo
    ARM i.MX27 eukrea: Fix compilation
    ARM i.MX spi: fix compilation for i.MX21
    ARM i.MX pcm037 eet: compile fixes
    ARM i.MX: sdma is merged, so remove #ifdef SDMA_IS_MERGED
    ARM mx3fb: check for DMA engine type
    mach-pcm037_eet: Fix section mismatch for eet_init_devices()

    Linus Torvalds
     
  • …l/git/lethal/fbdev-2.6

    * 'fbdev-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/fbdev-2.6:
    sisfb: delete osdef.h
    sisfb: move the CONFIG warning to sis_main.c
    sisfb: replace SiS_SetMemory with memset_io
    sisfb: remove InPort/OutPort wrappers
    sisfb: use CONFIG_FB_SIS_301/315 instead of SIS301/315H
    sisfb: delete redudant #define SIS_LINUX_KERNEL
    sisfb: delete dead SIS_XORG_XF86 code
    sisfb: delete fallback code for pci_map_rom()
    sisfb: delete obsolete PCI ROM bug workaround
    fbdev: Update documentation index file.
    lxfb: Program panel v/h sync output polarity correctly
    fbcmap: integer overflow bug
    fbcmap: cleanup white space in fb_alloc_cmap()
    MAINTAINERS: Add fbdev patchwork entry, tidy up file patterns.
    fbdev: da8xx: punt duplicated FBIO_WAITFORVSYNC define
    fbdev: sh_mobile_lcdcfb: fix bug in reconfig()

    Linus Torvalds
     
  • * 'sh-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6:
    sh: clkfwk: Build fix for non-legacy CPG changes.
    sh: Use GCC __builtin_prefetch() to implement prefetch().
    sh: fix vsyscall compilation due to .eh_frame issue
    sh: avoid to flush all cache in sys_cacheflush
    sh: clkfwk: Disable init clk op for non-legacy clocks.
    sh: clkfwk: Kill off now unused algo_id in set_rate op.
    sh: clkfwk: Kill off unused clk_set_rate_ex().

    Linus Torvalds
     
  • * 'for-linus' of git://neil.brown.name/md:
    md: Call blk_queue_flush() to establish flush/fua support
    md/raid1: really fix recovery looping when single good device fails.
    md: fix return value of rdev_size_change()

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus:
    virtio: fix format of sysfs driver/vendor files
    Char: virtio_console, fix memory leak
    virtio: return correct capacity to users
    module: Update prototype for ref_module (formerly use_module)

    Linus Torvalds
     
  • According to the comment describing ops_lock in the definition of struct
    backlight_device and when comparing with other functions in backlight.c
    the mutex must be hold when checking ops to be non-NULL.

    Fixes a problem added by c835ee7f4154992e6 ("backlight: Add suspend/resume
    support to the backlight core") in Jan 2009.

    Signed-off-by: Uwe Kleine-König
    Acked-by: Richard Purdie
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Uwe Kleine-König
     
  • struct als_data *data is not used in this driver at all.

    Also add a missing ">" character for MODULE_AUTHOR.

    Signed-off-by: Axel Lin
    Acked-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Axel Lin
     
  • Chip detection may fail if the chip is in some odd state for example after
    system restart. Chip doesn't have HW reset line.

    Signed-off-by: Samu Onkalo
    Cc: Richard Purdie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Samu Onkalo
     
  • Chip detection may fail if the chip is in some odd state for example after
    system restart. Chip doesn't have HW reset line.

    Signed-off-by: Samu Onkalo
    Cc: Richard Purdie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Samu Onkalo
     
  • Delays were little bit too long. Adjust delay times and add some comments
    to them.

    Signed-off-by: Samu Onkalo
    Cc: Richard Purdie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Samu Onkalo
     
  • Delays were little bit too long. Adjust delay times and add some comments
    to them.

    Signed-off-by: Samu Onkalo
    Cc: Richard Purdie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Samu Onkalo
     
  • A small macro changed to inline function to have proper type checking.
    Inline added to two similar small functions.

    Signed-off-by: Samu Onkalo
    Cc: Richard Purdie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Samu Onkalo
     
  • Some small macros changed to inline functions to have proper type
    checking.

    Signed-off-by: Samu Onkalo
    Cc: Richard Purdie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Samu Onkalo
     
  • UV hardware defines 256 memory protection regions versus the baseline 64
    with increasing size for the SN2 ia64. This was overlooked when XPC was
    modified to accomodate both UV and SN2.

    Without this patch, a user could reconfigure their existing system and
    suddenly disable cross-partition communications with no indication of what
    has gone wrong. It also prevents larger configurations from using
    cross-partition communication.

    Signed-off-by: Robin Holt
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Robin@sgi.com
     
  • While running randconfg with ktest.pl I stumbled upon this bug:

    BUG: unable to handle kernel NULL pointer dereference at 0000000000000003
    IP: [] strstr+0x39/0x86
    PGD 0
    Oops: 0000 [#1] SMP
    last sysfs file:
    CPU 0
    Modules linked in:

    Pid: 1, comm: swapper Not tainted 2.6.37-rc1-test+ #6 DG965MQ/
    RIP: 0010:[] [] strstr+0x39/0x86
    RSP: 0018:ffff8800797cbd80 EFLAGS: 00010213
    RAX: 0000000000000000 RBX: 0000000000000003 RCX: ffffffffffffffff
    RDX: 0000000000000000 RSI: ffffffff82eb7ac9 RDI: 0000000000000003
    RBP: ffff8800797cbda0 R08: ffff880000000003 R09: 0000000000030725
    R10: ffff88007d294c00 R11: 0000000000014c00 R12: 0000000000000020
    R13: ffffffff82eb7ac9 R14: ffffffffffffffff R15: ffffffff82eb7b08
    FS: 0000000000000000(0000) GS:ffff88007d200000(0000) knlGS:0000000000000000
    CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
    CR2: 0000000000000003 CR3: 0000000002a1d000 CR4: 00000000000006f0
    DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
    DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
    Process swapper (pid: 1, threadinfo ffff8800797ca000, task ffff8800797d0000)
    Stack:
    00000000000000ba ffffffff82eb7ac9 ffffffff82eb7ab8 00000000000000ba
    ffff8800797cbdf0 ffffffff81e2050f ffff8800797cbdc0 00000000815f913b
    ffff8800797cbe00 ffffffff82eb7ab8 0000000000000000 0000000000000000
    Call Trace:
    [] dmi_matches+0x117/0x154
    [] dmi_check_system+0x3d/0x8d
    [] ? nas_gpio_init+0x0/0x2c8
    [] nas_gpio_init+0x24/0x2c8
    [] ? wm8350_led_init+0x0/0x20
    [] ? nas_gpio_init+0x0/0x2c8
    [] do_one_initcall+0xab/0x1b2
    [] kernel_init+0x248/0x331
    [] kernel_thread_helper+0x4/0x10
    [] ? kernel_init+0x0/0x331

    Found that the nas_led_whitelist dmi_system_id structure array had no
    NULL end delimiter, causing the dmi_check_system() loop to read an
    undefined entry.

    Signed-off-by: Steven Rostedt
    Acked-by: Dave Hansen
    Acked-by: Richard Purdie
    Acked-by: Arjan van de Ven
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Steven Rostedt
     
  • Running randconfig with ktest.pl I hit this bug:

    [ 16.101158] ICN-ISDN-driver Rev 1.65.6.8 mem=0x000d0000
    [ 16.106376] icn: (line0) ICN-2B, port 0x320 added
    [ 16.111064] Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: c1642880
    [ 16.111066]
    [ 16.121214] Pid: 1, comm: swapper Not tainted 2.6.37-rc2-test-00124-g6656b3f #8
    [ 16.128499] Call Trace:
    [ 16.130942] [] ? printk+0x1d/0x23
    [ 16.135200] [] panic+0x5c/0x162
    [ 16.139286] [] ? icn_addcard+0x6d/0xbe
    [ 16.143975] [] print_tainted+0x0/0x8c
    [ 16.148582] [] ? icn_init+0xd8/0xdf
    [ 16.153012] [] icn_init+0xd8/0xdf
    [ 16.157271] [] do_one_initcall+0x8c/0x143
    [ 16.162222] [] ? icn_init+0x0/0xdf
    [ 16.166566] [] kernel_init+0x13f/0x1da
    [ 16.171256] [] ? kernel_init+0x0/0x1da
    [ 16.175945] [] kernel_thread_helper+0x6/0x10
    [ 16.181181] panic occurred, switching back to text console

    Looking into it I found that the stack was corrupted by the assignment
    of the Rev #. The variable rev is given 10 bytes, and in this output the
    characters that were copied was: " 1.65.6.8 $". Which was 11 characters
    plus the null ending character for a total of 12 bytes, thus corrupting
    the stack.

    This patch ups the variable size to 20 bytes as well as changes the
    strcpy to strncpy. I also added a check to make sure '$' is found.

    Signed-off-by: Steven Rostedt
    Signed-off-by: David S. Miller

    Steven Rostedt