14 Jun, 2007

14 commits

  • This makes unmap_vm_area static and a wrapper around a new
    exported unmap_kernel_range that takes an explicit range instead
    of a vm_area struct.

    This makes it more versatile for code that wants to play with kernel
    page tables outside of the standard vmalloc area.

    (One example is some rework of the PowerPC PCI IO space mapping
    code that depends on that patch and removes some code duplication
    and horrible abuse of forged struct vm_struct).

    Signed-off-by: Benjamin Herrenschmidt
    Signed-off-by: Paul Mackerras

    Benjamin Herrenschmidt
     
  • Twiddle the copyright notices. Per current guidelines, the use
    of the (C) or (c) in source code is deprecated.

    Signed-off-by: Linas Vepstas

    ----
    arch/powerpc/platforms/pseries/eeh.c | 6 +++++-
    arch/powerpc/platforms/pseries/eeh_cache.c | 3 ++-
    arch/powerpc/platforms/pseries/eeh_driver.c | 6 +++---
    3 files changed, 10 insertions(+), 5 deletions(-)
    Signed-off-by: Paul Mackerras

    Linas Vepstas
     
  • Remove some dead code.

    Signed-off-by: Linas Vepstas

    ----
    arch/powerpc/platforms/pseries/eeh.c | 4 +---
    1 file changed, 1 insertion(+), 3 deletions(-)
    Signed-off-by: Paul Mackerras

    Linas Vepstas
     
  • Track and report the number of times we read an all-1s value (0xff,
    0xffff or 0xffffffff) from each device which is valid data, not
    indicating EEH isolation.

    Signed-off-by: Linas Vepstas

    ----
    arch/powerpc/platforms/pseries/eeh.c | 5 +++++
    arch/powerpc/platforms/pseries/eeh_sysfs.c | 3 +++
    include/asm-powerpc/pci-bridge.h | 1 +
    3 files changed, 9 insertions(+)
    Signed-off-by: Paul Mackerras

    Linas Vepstas
     
  • Add sysfs blinkenlights for EEH statistics. Shuffle the
    eeh_add_device_tree() call so that it appears in the correct
    sequence.

    Signed-off-by: Linas Vepstas

    ----
    arch/powerpc/platforms/pseries/Makefile | 2
    arch/powerpc/platforms/pseries/eeh.c | 4 +
    arch/powerpc/platforms/pseries/eeh_cache.c | 2
    arch/powerpc/platforms/pseries/eeh_sysfs.c | 84 +++++++++++++++++++++++++++++
    arch/powerpc/platforms/pseries/pci_dlpar.c | 7 +-
    include/asm-powerpc/ppc-pci.h | 3 +
    6 files changed, 98 insertions(+), 4 deletions(-)
    Signed-off-by: Paul Mackerras

    Linas Vepstas
     
  • Use the correct CONFIG_ option to mark off the EEH bits.
    Move the EEH bits to the bottom of the struct.
    The config_space array is used by EEH only; it does not
    need to be part of the struct for non-pseries machines.

    Signed-off-by: Linas Vepstas

    ----
    Revised patch, per commments from Michael Ellerman.

    include/asm-powerpc/pci-bridge.h | 16 +++++++++-------
    1 file changed, 9 insertions(+), 7 deletions(-)
    Signed-off-by: Paul Mackerras

    Linas Vepstas
     
  • Move common code out of if/else.

    Signed-off-by: Jon Tollefson
    ----

    hash_native_64.c | 3 +--
    1 files changed, 1 insertion(+), 2 deletions(-)
    Signed-off-by: Paul Mackerras

    Jon Tollefson
     
  • Maybe the type should have been char[] instead of __u8[]
    in the first place, but this will do.

    Signed-off-by: Segher Boessenkool
    Signed-off-by: Paul Mackerras

    Segher Boessenkool
     
  • Reserve two TIF flags for perfmon2 and shift them into the low 16 bits
    so we can use single assembly instructions to create constants based off
    them.

    Signed-off-by: Anton Blanchard
    Signed-off-by: Paul Mackerras

    Anton Blanchard
     
  • Previously, registering this early console would just result
    in dropping early buffered printk output until a udbg_putc
    was registered.

    However, commit 69331af79cf29e26d1231152a172a1a10c2df511
    clears the CON_PRINTBUFFER flag on the main console when a
    CON_BOOT (early) console has been registered, resulting in
    the buffered messages never being displayed to the user.

    This fixes the problem by making sure we don't register udbg_console
    on platforms that don't implement udbg_putc.

    Signed-off-by: Milton Miller
    Acked-by: Mark A. Greer
    Signed-off-by: Paul Mackerras

    Milton Miller
     
  • The per-cpu area(a) for the secondary CPU(s) isn't getting allocated
    on old SMP powermacs that don't have the secondary CPU(s) listed in
    the device tree, as per-cpu areas are now only allocated for CPUs in
    the cpu_possible_map, and we aren't setting the bits for the secondary
    CPU(s) until smp_prepare_cpus(), which is after per-cpu allocation.
    Therefore this sets the bits for CPUs 1..3 in cpu_possible_map in
    pmac_setup_arch, so they get per-cpu data allocated.

    Signed-off-by: Paul Mackerras

    Paul Mackerras
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
    Input: move input-polldev to drivers/input
    Input: i8042 - add ULI EV4873 to noloop list
    Input: i8042 - add ASUS P65UP5 to the noloop list
    Input: usbtouchscreen - fix fallout caused by move from drivers/usb

    Linus Torvalds
     
  • Somehow the code to read the read-only switch of SD cards got lost
    in the reorganisation.

    Signed-off-by: Pierre Ossman

    Pierre Ossman
     
  • Ignoring OMAP_MMC_STAT_CARD_ERR, treating it as if the command
    completed correctly.

    Signed-off-by: Ragner Magalhaes
    Signed-off-by: Carlos Eduardo Aguiar
    Signed-off-by: Pierre Ossman

    Ragner Magalhaes
     

13 Jun, 2007

17 commits

  • To work around deficiences in Kconfig that allows to "select"
    a symbol without automatically selecting all dependencies for
    that symbol move input-polldev from drivers/input/misc to
    drivers/input thus removing extra dependency on CONFIG_INPUT_MISC.

    Signed-off-by: Dmitry Torokhov

    Dmitry Torokhov
     
  • * 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6: (89 commits)
    myri10ge: update driver version
    myri10ge: report when the link partner is running in Myrinet mode
    myri10ge: limit the number of recoveries
    NetXen: Fix link status messages
    Revert "[netdrvr e100] experiment with doing RX in a similar manner to eepro100"
    [PATCH] libertas: convert libertas_mpp into anycast_mask
    [PATCH] libertas: actually send mesh frames to mesh netdev
    [PATCH] libertas: deauthenticate from AP in channel switch
    [PATCH] libertas: pull current channel from firmware on mesh autostart
    [PATCH] libertas: reduce SSID and BSSID mixed-case abuse
    [PATCH] libertas: remove WPA_SUPPLICANT structure
    [PATCH] libertas: remove structure WLAN_802_11_SSID and libertas_escape_essid
    [PATCH] libertas: tweak association debug output
    [PATCH] libertas: fix big-endian associate command.
    [PATCH] libertas: don't byte-swap firmware version number. It's a byte array.
    [PATCH] libertas: more endianness fixes, in tx.c this time
    [PATCH] libertas: More endianness fixes.
    [PATCH] libertas: first pass at fixing up endianness issues
    [PATCH] libertas: sparse fixes
    [PATCH] libertas: fix character set in README
    ...

    Linus Torvalds
     
  • Jeff Garzik
     
  • …inville/wireless-2.6 into upstream-fixes

    Jeff Garzik
     
  • …e/wireless-2.6 into upstream-fixes

    Jeff Garzik
     
  • Allowing attribute and symlink dentries to be reclaimed means
    sd->s_dentry can change dynamically. However, updates to the field
    are unsynchronized leading to race conditions. This patch adds
    sysfs_lock and use it to synchronize updates to sd->s_dentry.

    Due to the locking around ->d_iput, the check in sysfs_drop_dentry()
    is complex. sysfs_lock only protect sd->s_dentry pointer itself. The
    validity of the dentry is protected by dcache_lock, so whether dentry
    is alive or not can only be tested while holding both locks.

    This is minimal backport of sysfs_drop_dentry() rewrite in devel
    branch.

    Signed-off-by: Tejun Heo
    Signed-off-by: Greg Kroah-Hartman

    Tejun Heo
     
  • The condition check doesn't make much sense as it basically always
    succeeds. This causes NULL dereferencing on certain cases. It seems
    that parentheses are put in the wrong place. Fix it.

    Signed-off-by: Tejun Heo
    Signed-off-by: Greg Kroah-Hartman

    Tejun Heo
     
  • Backport of
    ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.22-rc1/2.6.22-rc1-mm1/broken-out/gregkh-driver-sysfs-allocate-inode-number-using-ida.patch

    For regular files in sysfs, sysfs_readdir wants to traverse
    sysfs_dirent->s_dentry->d_inode->i_ino to get to the inode number.
    But, the dentry can be reclaimed under memory pressure, and there is
    no synchronization with readdir. This patch follows Tejun's scheme of
    allocating and storing an inode number in the new s_ino member of a
    sysfs_dirent, when dirents are created, and retrieving it from there
    for readdir, so that the pointer chain doesn't have to be traversed.

    Tejun's upstream patch uses a new-ish "ida" allocator which brings
    along some extra complexity; this -stable patch has a brain-dead
    incrementing counter which does not guarantee uniqueness, but because
    sysfs doesn't hash inodes as iunique expects, uniqueness wasn't
    guaranteed today anyway.

    Signed-off-by: Eric Sandeen
    Signed-off-by: Tejun Heo
    Signed-off-by: Greg Kroah-Hartman

    Eric Sandeen
     
  • Update myri10ge driver version to 1.3.1-1.248.

    Signed-off-by: Brice Goglin
    Signed-off-by: Jeff Garzik

    Brice Goglin
     
  • Since Myri-10G boards may also run in Myrinet mode instead of Ethernet,
    add a message when we detect that the link partner is not running in the
    right mode.

    Signed-off-by: Brice Goglin
    Signed-off-by: Jeff Garzik

    Brice Goglin
     
  • Limit the number of recoveries from a NIC hw watchdog reset to 1 by default.
    It enables detection of defective NICs immediately since these memory parity
    errors are expected to happen very rarely (less than once per century*NIC).

    Signed-off-by: Brice Goglin
    Signed-off-by: Jeff Garzik

    Brice Goglin
     
  • NetXen: Fix incorrect link status even with switch turned OFF.
    NetXen driver failed to accurately indicate when a link is up or down.
    This was encountered during failover testing, when the first port
    indicated that the link was up even when the 10G switch it was assigned
    to in the Bladecenter was turned off completely.

    Signed-off by: Wen Xiong
    Signed-off by: Mithlesh Thukral

    Signed-off-by: Jeff Garzik

    Mithlesh Thukral
     
  • This reverts commit d52df4a35af569071fda3f4eb08e47cc7023f094.

    This patch attempted to fix e100 for non-cache coherent memory
    architectures by using the cb style code that eepro100 had and using
    the EL and s bits from the RFD list. Unfortunately the hardware
    doesn't work exactly like this and therefore this patch actually
    breaks e100. Reverting the change brings it back to the previously
    known good state for 2.6.22. The pending rewrite in progress to this
    code can then be safely merged later.

    Signed-off-by: Auke Kok
    Signed-off-by: Jeff Garzik

    Jeff Garzik
     
  • With firmware 5.220.11.p5, this allows to specify the anycast addresses the
    device will listen to.

    The anycast address range is C0:27:C0:27:C0:XX where XX goes from 00 to 1F (or
    0 to 31 in dec). The value to write on anycast_mask will specify which
    addresses the device listens to. Bits in a 32 bit int are numbered from 0
    (least significative bit) to 31. A specific address ending in YY will be
    listened to if bit YY in the value is set to one.

    Examples:

    0x00000000 : do not listen to any anycast address
    0xFFFFFFFF : listen to every anycast address from :00 to :1F
    0x00000013 : listen to anycast addresses :00, :01 and :04

    Signed-off-by: Luis Carlos Cobo
    Signed-off-by: John W. Linville

    Luis Carlos
     
  • Found by Luis; got broken during module split.

    Signed-off-by: Dan Williams
    Signed-off-by: John W. Linville

    Dan Williams
     
  • This avoids channel mismatch between driver and firmware in case we change
    channel while associated to an AP.

    Signed-off-by: Luis Carlos Cobo Rus
    Signed-off-by: John W. Linville

    Luis Carlos Cobo Rus
     
  • Signed-off-by: Luis Carlos Cobo Rus
    Signed-off-by: John W. Linville

    Luis Carlos Cobo Rus
     

12 Jun, 2007

9 commits

  • The box does not implement AUX LOOP command properly and so we
    can't test for AUX IRQ delivery so blacklist it via DMI and
    assume that AUX port is present.

    Signed-off-by: Dmitry Torokhov

    Dmitry Torokhov
     
  • This board does not raise AUX IRQ in response to AUX LOOP command
    which interferes with our test for proper AUX IRQ wiring. Put it
    in the blacklist and assume mouse is present.

    Signed-off-by: Dmitry Torokhov

    Dmitry Torokhov
     
  • During the move from drivers/usb/input into drivers/input/touchscreen
    Kconfig variables were shuffled a bit to use a new namespace
    (CONFIG_TOUCHSCREEN) while usbtouchscreen was still using old ones.

    Also noticed by Robert P. J. Day

    Signed-off-by: Ondrej Zary
    Signed-off-by: Daniel Ritz
    Signed-off-by: Dmitry Torokhov

    Ondrej Zary
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband:
    IB/mlx4: Make sure RQ allocation is always valid
    RDMA/cma: Fix initialization of next_port
    IB/mlx4: Fix zeroing of rnr_retry value in ib_modify_qp()
    mlx4_core: Don't set MTT address in dMPT entries with PA set
    mlx4_core: Check firmware command interface revision
    IB/mthca, mlx4_core: Fix typo in comment
    mlx4_core: Free catastrophic error MSI-X interrupt with correct dev_id
    mlx4_core: Initialize ctx_list and ctx_lock earlier
    mlx4_core: Fix CQ context layout

    Linus Torvalds
     
  • * 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus:
    [MIPS] Fix smp barriers in test_and_{change,clear,set}_bit
    [MIPS] Fix IP27 build
    [MIPS] Fix modpost warnings by making start_secondary __cpuinit
    [MIPS] SMTC: Fix build error caused by nonsense code.
    [MIPS] SMTC: The MT ASE requires to initialize c0_pagemask and c0_wired.
    [MIPS] SMTC: Don't continue in set_vi_srs_handler on detected bad arguments.
    [MIPS] SMTC: Fix warning.
    [MIPS] Wire up utimensat, signalfd, timerfd, eventfd
    [MIPS] Atlas: Fix build.
    [MIPS] Always install the DSP exception handler.
    [MIPS] SMTC: Don't set and restore irqregs ptr from self_ipi.
    [MIPS] Fix KMODE for the R3000

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6:
    [CIFS] CIFS should honour umask
    [CIFS] Missing flag on negprot needed for some servers to force packet signing
    [CIFS] whitespace cleanup part 2
    [CIFS] whitespace cleanup
    [CIFS] fix mempool destroy done in wrong order in cifs error path
    [CIFS] typo in previous patch
    [CIFS] Fix oops on failed cifs mount (in kthread_stop)

    Linus Torvalds
     
  • * master.kernel.org:/pub/scm/linux/kernel/git/davej/agpgart:
    [AGPGART] intel_agp: Add support for G33, Q33 and Q35 chipsets
    [AGPGART] intel_agp: add support for 945GME
    [AGPGART] intel_agp: add support for 965GME/GLE
    [AGPGART] intel_agp: use table for device probe
    [AGPGART] intel_agp: cleanup intel private data

    Linus Torvalds
     
  • * 'linus-plus-plus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev:
    libata: limit post SRST nsect/lbal wait to ~100ms
    libata: force PIO on IOMEGA ZIP 250 ATAPI
    libata passthru: update cached device paramters
    libata passthru: always enforce correct DEV bit
    libata passthru: map UDMA protocols
    libata passthru: support PIO multi commands
    libata passthru: update protocol numbers
    libata: Correct abuse of language
    libata-core/sff: Fix multiple assumptions about DMA
    ahci: Add MCP73/MCP77 support to AHCI driver
    libata: fix hw_sata_spd_limit initialization
    libata: print device model and firmware revision for ATAPI devices
    libata: fix probe time irq printouts
    libata: disable NCQ for HITACHI HTS541680J9SA00/SB21C7EP
    remove unused variable in pata_isapnp

    Linus Torvalds
     
  • * 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb:
    V4L/DVB (5751): Ivtv: fix ia64 printk format warnings.
    V4L/DVB (5761): Fix broken b2c2 dependency on non x86 architectures
    V4L/DVB (5673): Fix audio stuttering for saa711x/ivtv when in radio mode.
    V4L/DVB (5736): Add V4L2_FBUF_CAP/FLAG_LOCAL/GLOBAL_INV_ALPHA
    V4L/DVB (5732): Add ivtv CROPCAP support and fix ivtv S_CROP for video output.
    V4L/DVB (5730): Remove unused V4L2_CAP_VIDEO_OUTPUT_POS
    V4L/DVB (5720): Usbvision: fix urb allocation and submits
    V4L/DVB (5716): Tda10086,tda826x: fix tuning, STR/SNR values
    V4L/DVB (5675): Move big PIO accesses from the interrupt handler to a workhandler
    V4L/DVB (5699): Cinergyt2: fix file release handler
    V4L/DVB (5700): Saa7111: fix picture settings cache bug
    V4L/DVB (5702): Fix Kconfig items to avoid linkedition errors

    Linus Torvalds