12 Oct, 2008

9 commits

  • Conflicts:

    sound/core/memalloc.c

    David S. Miller
     
  • …://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip

    * 'x86-v28-for-linus-phase4-D' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (186 commits)
    x86, debug: print more information about unknown CPUs
    x86 setup: handle more than 8 CPU flag words
    x86: cpuid, fix typo
    x86: move transmeta cap read to early_init_transmeta()
    x86: identify_cpu_without_cpuid v2
    x86: extended "flags" to show virtualization HW feature in /proc/cpuinfo
    x86: move VMX MSRs to msr-index.h
    x86: centaur_64.c remove duplicated setting of CONSTANT_TSC
    x86: intel.c put workaround for old cpus together
    x86: let intel 64-bit use intel.c
    x86: make intel_64.c the same as intel.c
    x86: make intel.c have 64-bit support code
    x86: little clean up of intel.c/intel_64.c
    x86: make 64 bit to use amd.c
    x86: make amd_64 have 32 bit code
    x86: make amd.c have 64bit support code
    x86: merge header in amd_64.c
    x86: add srat_detect_node for amd64
    x86: remove duplicated force_mwait
    x86: cpu make amd.c more like amd_64.c v2
    ...

    Linus Torvalds
     
  • Conflicts:
    arch/x86/kernel/apic_32.c
    arch/x86/kernel/apic_64.c
    arch/x86/kernel/setup.c
    drivers/pci/intel-iommu.c
    include/asm-x86/cpufeature.h
    include/asm-x86/dma-mapping.h

    Ingo Molnar
     
  • * 'x86-v28-for-linus-phase3-B' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (74 commits)
    AMD IOMMU: use iommu_device_max_index, fix
    AMD IOMMU: use iommu_device_max_index
    x86: add PCI IDs for AMD Barcelona PCI devices
    x86/iommu: use __GFP_ZERO instead of memset for GART
    x86/iommu: convert GART need_flush to bool
    x86/iommu: make GART driver checkpatch clean
    x86 gart: remove unnecessary initialization
    x86: restore old GART alloc_coherent behavior
    revert "x86: make GART to respect device's dma_mask about virtual mappings"
    x86: export pci-nommu's alloc_coherent
    iommu: remove fullflush and nofullflush in IOMMU generic option
    x86: remove set_bit_string()
    iommu: export iommu_area_reserve helper function
    AMD IOMMU: use coherent_dma_mask in alloc_coherent
    add AMD IOMMU tree to MAINTAINERS file
    AMD IOMMU: use cmd_buf_size when freeing the command buffer
    AMD IOMMU: calculate IVHD size with a function
    AMD IOMMU: remove unnecessary cast to u64 in the init code
    AMD IOMMU: free domain bitmap with its allocation order
    AMD IOMMU: simplify dma_mask_to_pages
    ...

    Linus Torvalds
     
  • * 'x86-v28-for-linus-phase2-B' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (27 commits)
    x86, cpa: make the kernel physical mapping initialization a two pass sequence, fix
    x86, pat: cleanups
    x86: fix pagetable init 64-bit breakage
    x86: track memtype for RAM in page struct
    x86, cpa: srlz cpa(), global flush tlb after splitting big page and before doing cpa
    x86, cpa: remove cpa pool code
    x86, cpa: no need to check alias for __set_pages_p/__set_pages_np
    x86, cpa: dont use large pages for kernel identity mapping with DEBUG_PAGEALLOC
    x86, cpa: make the kernel physical mapping initialization a two pass sequence
    x86, cpa: remove USER permission from the very early identity mapping attribute
    x86, cpa: rename PTE attribute macros for kernel direct mapping in early boot
    x86: make sure the CPA test code's use of _PAGE_UNUSED1 is obvious
    linux-next: fix x86 tree build failure
    x86: have set_memory_array_{uc,wb} coalesce memtypes, fix
    agp: enable optimized agp_alloc_pages methods
    x86: have set_memory_array_{uc,wb} coalesce memtypes.
    x86: {reverve,free}_memtype() take a physical address
    x86: fix pageattr-test
    agp: add agp_generic_destroy_pages()
    agp: generic_alloc_pages()
    ...

    Linus Torvalds
     
  • * 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm: (236 commits)
    [ARM] 5300/1: fixup spitz reset during boot
    [ARM] 5295/1: make ZONE_DMA optional
    [ARM] 5239/1: Palm Zire 72 power management support
    [ARM] 5298/1: Drop desc_handle_irq()
    [ARM] 5297/1: [KS8695] Fix two compile-time warnings
    [ARM] 5296/1: [KS8695] Replace macro's with trailing underscores.
    [ARM] pxa: allow multi-machine PCMCIA builds
    [ARM] pxa: add preliminary CPUFREQ support for PXA3xx
    [ARM] pxa: add missing ACCR bit definitions to pxa3xx-regs.h
    [ARM] pxa: rename cpu-pxa.c to cpufreq-pxa2xx.c
    [ARM] pxa/zylonite: add support for USB OHCI
    [ARM] ohci-pxa27x: use ioremap() and offset for register access
    [ARM] ohci-pxa27x: introduce pxa27x_clear_otgph()
    [ARM] ohci-pxa27x: use platform_get_{irq,resource} for the resource
    [ARM] ohci-pxa27x: move OHCI controller specific registers into the driver
    [ARM] ohci-pxa27x: introduce flags to avoid direct access to OHCI registers
    [ARM] pxa: move I2S register and bit definitions into pxa2xx-i2s.c
    [ARM] pxa: simplify DMA register definitions
    [ARM] pxa: make additional DCSR bits valid for PXA3xx
    [ARM] pxa: move i2c register and bit definitions into i2c-pxa.c
    ...

    Fixed up conflicts in
    arch/arm/mach-versatile/core.c
    sound/soc/pxa/pxa2xx-ac97.c
    sound/soc/pxa/pxa2xx-i2s.c
    manually.

    Linus Torvalds
     
  • NULL function pointers are very bad security wise. This one got caught by
    kerneloops.org quite a few times, so it's happening in the field....

    Fix is simple, check the function pointer for NULL, like 6 other places
    in the same function are already doing.

    Signed-off-by: Arjan van de Ven
    Signed-off-by: Linus Torvalds

    Arjan van de Ven
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6: (1075 commits)
    myri10ge: update driver version number to 1.4.3-1.369
    r8169: add shutdown handler
    r8169: preliminary 8168d support
    r8169: support additional 8168cp chipset
    r8169: change default behavior for mildly identified 8168c chipsets
    r8169: add a new 8168cp flavor
    r8169: add a new 8168c flavor (bis)
    r8169: add a new 8168c flavor
    r8169: sync existing 8168 device hardware start sequences with vendor driver
    r8169: 8168b Tx performance tweak
    r8169: make room for more specific 8168 hardware start procedure
    r8169: shuffle some registers handling around (8168 operation only)
    r8169: new phy init parameters for the 8168b
    r8169: update phy init parameters
    r8169: wake up the PHY of the 8168
    af_key: fix SADB_X_SPDDELETE response
    ath9k: Fix return code when ath9k_hw_setpower() fails on reset
    ath9k: remove nasty FAIL macro from ath9k_hw_reset()
    gre: minor cleanups in netlink interface
    gre: fix copy and paste error
    ...

    Linus Torvalds
     
  • * 'for-linus' of git://git.alsa-project.org/alsa-kernel: (258 commits)
    ALSA: hda: VREF powerdown for headphones
    ALSA: hda: STAC_HP_M4
    ALSA: ASoC: Check for machine type in GTA01 machine driver
    ALSA: mtpav - Fix race in probe
    ALSA: usb-audio: dynamic detection of MIDI interfaces in uaxx-quirk
    ALSA: Add a note on dependency of RTC stuff
    ALSA: ASoC: add new param mux to dapm_mux_update_power
    ALSA: Increase components array size
    ALSA: ASoC: Correct inverted Mic PGA Switch control in wm8510 driver
    ALSA: hda: comment typo fix
    ALSA: hda: comment typo fix
    ALSA: hda - Fix PCI SSID for ASROCK K18N78FullHD-hSLI
    ALSA: snd-usb-audio: support for Edirol UA-4FX device
    ALSA: usb - Fix possible Oops at USB-MIDI disconnection
    ALSA: hda - Fix another ALC889A (rev 0x100101)
    ALSA: hda: add more board-specific information for Realtek ALC662 rev1
    ALSA: Correct Vladimir Barinov's e-mail address
    ALSA: cs46xx: Add PCI IDs for TerraTec and Hercules cards
    ALSA: hda: SPDIF stream muting support
    ALSA: hda: appletv support
    ...

    Linus Torvalds
     

11 Oct, 2008

31 commits

  • * 'for-linus' of git://git390.osdl.marist.edu/pub/scm/linux-2.6: (27 commits)
    [S390] Fix checkstack for s390
    [S390] fix initialization of stp
    [S390] 3215: Remove tasklet.
    [S390] console flush on panic / reboot
    [S390] introduce dirty bit for kvm live migration
    [S390] Add ioctl support for EMC Symmetrix Subsystem Control I/O
    [S390] xpram: per device block request queues.
    [S390] dasd: fix message flood for unsolicited interrupts
    [S390] Move private simple udelay function to arch/s390/lib/delay.c.
    [S390] dcssblk: add >2G DCSSs support and stacked contiguous DCSSs support.
    [S390] ptrace changes
    [S390] s390: use sys_pause for 31bit pause entry point
    [S390] qdio enhanced SIGA (iqdio) support.
    [S390] cio: fix cio_tpi.
    [S390] cio: Correct use of ! and &
    [S390] cio: inline assembly cleanup
    [S390] bus_id -> dev_set_name() for css and ccw busses
    [S390] bus_id ->dev_name() conversions in qdio
    [S390] Use s390_root_dev_* in kvm_virtio.
    [S390] more bus_id -> dev_name conversions
    ...

    Linus Torvalds
     
  • * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/davej/cpufreq:
    [CPUFREQ] Fix BUG: using smp_processor_id() in preemptible code
    [CPUFREQ] Don't export governors for default governor
    [CPUFREQ][6/6] cpufreq: Add idle microaccounting in ondemand governor
    [CPUFREQ][5/6] cpufreq: Changes to get_cpu_idle_time_us(), used by ondemand governor
    [CPUFREQ][4/6] cpufreq_ondemand: Parameterize down differential
    [CPUFREQ][3/6] cpufreq: get_cpu_idle_time() changes in ondemand for idle-microaccounting
    [CPUFREQ][2/6] cpufreq: Change load calculation in ondemand for software coordination
    [CPUFREQ][1/6] cpufreq: Add cpu number parameter to __cpufreq_driver_getavg()
    [CPUFREQ] use deferrable delayed work init in conservative governor
    [CPUFREQ] drivers/cpufreq/cpufreq.c: Adjust error handling code involving cpufreq_cpu_put
    [CPUFREQ] add error handling for cpufreq_register_governor() error
    [CPUFREQ] acpi-cpufreq: add error handling for cpufreq_register_driver() error
    [CPUFREQ] Coding style fixes to arch/x86/kernel/cpu/cpufreq/powernow-k6.c
    [CPUFREQ] Coding style fixes to arch/x86/kernel/cpu/cpufreq/elanfreq.c

    Linus Torvalds
     
  • David S. Miller
     
  • Update myri10ge driver version number to 1.4.3-1.369.

    Signed-off-by: Brice Goglin
    Signed-off-by: David S. Miller

    Brice Goglin
     
  • Signed-off-by: Francois Romieu
    Cc: Edward Hsu

    Francois Romieu
     
  • Taken from Realtek's 8.007.00 r8168 driver.

    Signed-off-by: Francois Romieu
    Fixed-by: Ivan Vecera
    Cc: Edward Hsu

    Francois Romieu
     
  • Taken from Realtek's 8.007.00 r8168 driver.

    Signed-off-by: Francois Romieu
    Fixed-by: Ivan Vecera
    Cc: Edward Hsu

    Francois Romieu
     
  • The addition of a new device has so far implied a specialization of
    these masks. While they identify 8168c devices, they can be expected
    to be further refined as they have been by Realtek so far.

    The change should bring the driver closer to the version 8.006.00 of
    Realtek's 8168 driver.

    Signed-off-by: Francois Romieu
    Cc: Edward Hsu

    Francois Romieu
     
  • Taken from Realtek's 8.006.00 r8168 driver.

    I have left some bits related to jumbo frame aside for now.

    Signed-off-by: Francois Romieu
    Cc: Edward Hsu

    Francois Romieu
     
  • Taken from Realtek's 8.006.00 r8168 driver.

    I have left some bits related to jumbo frame aside for now.

    Signed-off-by: Francois Romieu
    Cc: Edward Hsu

    Francois Romieu
     
  • Taken from Realtek's 8.006.00 r8168 driver.

    Signed-off-by: Francois Romieu
    Cc: Edward Hsu

    Francois Romieu
     
  • This part of the driver should be reasonably in line with Realtek's
    8.006.00 driver.

    I have left some bits related to jumbo frame and optional features
    aside for now.

    Signed-off-by: Francois Romieu
    Cc: Edward Hsu

    Francois Romieu
     
  • Signed-off-by: Francois Romieu
    Cc: Edward Hsu

    Francois Romieu
     
  • Broadly speaking the 8168c* share some common code which will
    be factored in __rtl_hw_start_8168cp. The 8168b* share some
    code too but it will be a bit different.

    Any change of behavior should be confined to the currently
    unidentified 8168 chipsets. They will not be applied the Tx
    performance tweak and will emit a warning instead.

    Signed-off-by: Francois Romieu
    Cc: Edward Hsu

    Francois Romieu
     
  • I can not argue strongly for (or against) a specific ordering
    on a purely technical ground but the patch avoids to swallow
    Realtek's changes in one big, hard-to-read gulp.

    Let aside the way the RxConfig register is written (see
    rtl_set_rx_tx_config_registers / RxConfig / rtl_set_rx_mode),
    this change brings the registers write ordering closer with
    Realtek's driver one (version 8.006.00) for the 8168 chipsets.

    More 8168 specific code which touches the Configx registers will
    be added in the section covered by Cfg9346_UnLock / Cfg9346_Lock.

    This code should not be the cause of regression for 810x and
    8110 users.

    Signed-off-by: Francois Romieu
    Cc: Edward Hsu

    Francois Romieu
     
  • The new parameters are synced with Realtek's driver
    version 8.006.00.

    Signed-off-by: Francois Romieu
    Cc: Edward Hsu

    Francois Romieu
     
  • The modified parameters are synced with Realtek's driver
    version 8.006.00.

    The change should only be noticeable with some 8168c.

    Signed-off-by: Francois Romieu
    Cc: Edward Hsu

    Francois Romieu
     
  • This is typically needed when some other OS puts the PHY
    to sleep due to the disabling of WOL options in the BIOS
    of the system.

    Signed-off-by: Francois Romieu
    Tested-by: Chiaki Ishikawa
    Cc: Edward Hsu
    Cc: RyanKao

    Francois Romieu
     
  • …s/security-testing-2.6

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6:
    selinux: Fix an uninitialized variable BUG/panic in selinux_secattr_to_sid()
    selinux: use default proc sid on symlinks
    file capabilities: uninline cap_safe_nice
    Update selinux info in MAINTAINERS and Kconfig help text
    SELinux: add gitignore file for mdp script
    SELinux: add boundary support and thread context assignment
    securityfs: do not depend on CONFIG_SECURITY
    selinux: add support for installing a dummy policy (v2)
    security: add/fix security kernel-doc
    selinux: Unify for- and while-loop style
    selinux: conditional expression type validation was off-by-one
    smack: limit privilege by label
    SELinux: Fix a potentially uninitialised variable in SELinux hooks
    SELinux: trivial, remove unneeded local variable
    SELinux: Trivial minor fixes that change C null character style
    make selinux_write_opts() static

    Linus Torvalds
     
  • The 3215 console irq handler used to schedule a tasklet. However the
    console irq handler also gets called from the infamous cio_tpi()
    function. Which in turn does something like

    local_bh_disable()
    [call console irq handler]
    _local_bh_enable()

    _local_bh_enable() prevents execution of softirqs, which is intended
    within cio_tpi(). However there might be a new softirq pending because
    irq handler scheduled a tasklet.
    In order to prevent this behaviour we just get rid of the tasklet.
    It's not doing much anyway.

    Signed-off-by: Heiko Carstens
    Signed-off-by: Martin Schwidefsky

    Heiko Carstens
     
  • The s390 console drivers use the unblank callback of the console
    structure to flush the console buffer. In case of a panic or a
    reboot the CPU doing the callback can block on the console i/o.
    The other CPUs in the system continue to work. For panic this is
    not a good idea.

    Replace the unblank callback with proper panic/reboot notifier.
    These get called after all but one CPU have been stopped.

    Signed-off-by: Holger Smolinski
    Signed-off-by: Martin Schwidefsky

    Holger Smolinski
     
  • EMC Symmetrix Subsystem Control I/O through CKD dasd requires a
    specific parameter list sent to the array via a Perform Subsystem
    Function CCW. The Symmetrix response is retrieved from the array
    via a Read Subsystem Data CCW.

    Signed-off-by: Nigel Hislop
    Signed-off-by: Hannes Reinecke
    Signed-off-by: Martin Schwidefsky

    Nigel Hislop
     
  • The xpram driver uses a single block device queue for all of its
    devices so far. With recent kernels removing xpram module fails to
    clean up all sysfs files. The next time the xpram module is loaded
    you'll get warnings:

    WARNING: at fs/sysfs/dir.c:463 sysfs_add_one+0x5e/0x64()
    sysfs: duplicate filename '35:0' can not be created
    Modules linked in: xpram(+) [last unloaded: xpram]

    Followed by the usual WARN_ON output, followed by an error message
    from kobject_add_internal, followed by a badness in genhd. Allocating
    a block queue per device fixes this.

    Signed-off-by: Martin Schwidefsky

    Martin Schwidefsky
     
  • In the unsolicited interupt handler fake IRBs from CIO have to be
    ignored because there is nothing to do.
    The function dump_sense should not be called if there is no sense
    data available.

    Signed-off-by: Stefan Haberland
    Signed-off-by: Martin Schwidefsky

    Stefan Haberland
     
  • Move cio's private simple udelay function to lib/delay.c and turn it
    into something much more readable. So we have all implementations
    at one place.

    Signed-off-by: Heiko Carstens
    Signed-off-by: Martin Schwidefsky

    Heiko Carstens
     
  • The DCSS block device driver is modified to add >2G DCSSs support and
    allow a DCSS block device to map to a set of contiguous DCSSs. The
    extmem code is also modified to use new Diagnose x'64' subcodes for
    >2G DCSSs.

    Signed-off-by: Hongjie Yang
    Signed-off-by: Martin Schwidefsky

    Hongjie Yang
     
  • Add support for z10 HiperSockets multiwrite SBALs on output
    queues. This is used on LPAR with EDDP enabled devices.

    Signed-off-by: Klaus-Dieter Wacker
    Signed-off-by: Martin Schwidefsky

    Klaus-Dieter Wacker
     
  • In cio_tpi only disable bottom halves when not in interrupt context.
    Otherwise a WARN_ON gets triggered. Besides that, when we are in
    interrupt context bottom halves are disabled anyway.
    Fixes this one:

    Badness at kernel/softirq.c:77
    Modules linked in:
    CPU: 2 Not tainted 2.6.26 #4
    Process swapper (pid: 0, task: 000000003fe83db0, ksp: 000000003fea7d28)
    Krnl PSW : 0404c00180000000 0000000000053f4e (__local_bh_disable+0xbe/0xcc)
    R:0 T:1 IO:0 EX:0 Key:0 M:1 W:0 P:0 AS:3 CC:0 PM:0 EA:3
    Krnl GPRS: 0000000000008ee0 00000000005f95e0 0000000000000000 0000000000000001
    000000000020be92 0000000000000000 0000000000000210 00000000005d36c0
    000000003fb5f4d8 0000000000000000 000000000020bed0 000000003fb5f3c8
    00000000009be920 0000000000364898 000000003fb5f408 000000003fb5f3c8
    Krnl Code: 0000000000053f42: bf2f1000 icm %r2,15,0(%r1)
    0000000000053f46: a774ffc5 brc 7,53ed0
    0000000000053f4a: a7f40001 brc 15,53f4c
    >0000000000053f4e: a7280001 lhi %r2,1
    0000000000053f52: 50201000 st %r2,0(%r1)
    0000000000053f56: a7f4ffbd brc 15,53ed0
    0000000000053f5a: 0707 bcr 0,%r7
    0000000000053f5c: a7f13fc0 tmll %r15,16320
    Call Trace:
    ([] 0x210)
    [] local_bh_disable+0x2a/0x38
    [] wait_cons_dev+0xd4/0x154
    [] raw3215_make_room+0x6a/0x1a8
    [] raw3215_write+0x86/0x28c
    [] con3215_write+0x80/0x110
    [] __call_console_drivers+0xc8/0xe4
    [] _call_console_drivers+0x82/0xc4
    [] release_console_sem+0x218/0x2c0
    [] vprintk+0x3c0/0x504
    [] printk+0x52/0x64
    [] __print_symbol+0x40/0x50
    [] print_stack_trace+0x78/0xac
    [] print_lock_dependencies+0x148/0x208
    [] print_irq_inversion_bug+0x118/0x15c
    [] check_usage_forwards+0x72/0x84
    [] mark_lock+0x1d2/0x594
    [] __lock_acquire+0x886/0xf48
    [] lock_acquire+0xa8/0xe0
    [] _write_lock+0x56/0x98
    [] zfcp_erp_adapter_reopen+0x4e/0x8c
    [] zfcp_qdio_int_resp+0x2e4/0x2f4
    [] qdio_int_handler+0x274/0x888
    [] ccw_device_call_handler+0x6e/0xd8
    [] ccw_device_irq+0xd6/0x160
    [] io_subchannel_irq+0x8c/0x118
    [] do_IRQ+0x1d0/0x1fc
    [] io_return+0x0/0x8
    [] cpu_idle+0x178/0x21c
    ([] cpu_idle+0x158/0x21c)
    [] start_secondary+0xb6/0xc8
    INFO: lockdep is turned off.
    Last Breaking-Event-Address:
    [] __local_bh_disable+0xba/0xcc

    Signed-off-by: Heiko Carstens
    Signed-off-by: Martin Schwidefsky

    Heiko Carstens
     
  • In commit e6bafba5b4765a5a252f1b8d31cbf6d2459da337, a bug was fixed that
    involved converting !x & y to !(x & y). The code below shows the same
    pattern, and thus should perhaps be fixed in the same way. In particular,
    the result of !scsw_stctl(&request->irb.scsw) & SCSW_STCTL_STATUS_PEND is
    always just !scsw_stctl(&request->irb.scsw).

    The semantic patch that makes this change is as follows:
    (http://www.emn.fr/x-info/coccinelle/)

    //
    @@ expression E; constant C; @@
    (
    !E & !C
    |
    - !E & C
    + !(E & C)
    )
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: Heiko Carstens
    Signed-off-by: Martin Schwidefsky

    Julia Lawall
     
  • Fix incorrect in- and output constraints, remove volatile declaration
    of inline assembly parameters and reformat constraint declarations to
    be more consistent.

    Signed-off-by: Peter Oberparleiter
    Signed-off-by: Martin Schwidefsky

    Peter Oberparleiter
     
  • Convert remaining s390 users setting bus_id to dev_set_name()
    or init_name.

    Signed-off-by: Cornelia Huck
    Signed-off-by: Greg Kroah-Hartman
    Signed-off-by: Martin Schwidefsky

    Cornelia Huck