26 May, 2011

1 commit

  • * 'for-2.6.40/core' of git://git.kernel.dk/linux-2.6-block: (40 commits)
    cfq-iosched: free cic_index if cfqd allocation fails
    cfq-iosched: remove unused 'group_changed' in cfq_service_tree_add()
    cfq-iosched: reduce bit operations in cfq_choose_req()
    cfq-iosched: algebraic simplification in cfq_prio_to_maxrq()
    blk-cgroup: Initialize ioc->cgroup_changed at ioc creation time
    block: move bd_set_size() above rescan_partitions() in __blkdev_get()
    block: call elv_bio_merged() when merged
    cfq-iosched: Make IO merge related stats per cpu
    cfq-iosched: Fix a memory leak of per cpu stats for root group
    backing-dev: Kill set but not used var in bdi_debug_stats_show()
    block: get rid of on-stack plugging debug checks
    blk-throttle: Make no throttling rule group processing lockless
    blk-cgroup: Make cgroup stat reset path blkg->lock free for dispatch stats
    blk-cgroup: Make 64bit per cpu stats safe on 32bit arch
    blk-throttle: Make dispatch stats per cpu
    blk-throttle: Free up a group only after one rcu grace period
    blk-throttle: Use helper function to add root throtl group to lists
    blk-throttle: Introduce a helper function to fill in device details
    blk-throttle: Dynamically allocate root group
    blk-cgroup: Allow sleeping while dynamically allocating a group
    ...

    Linus Torvalds
     

25 May, 2011

1 commit

  • * git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6:
    pcmcia: Make struct pcmcia_device_id const, sound drivers edition
    staging: pcmcia: Convert pcmcia_device_id declarations to const
    pcmcia: Convert pcmcia_device_id declarations to const
    pcmcia: Make declaration and uses of struct pcmcia_device_id const
    pcmcia/sa1100: put sa11x0_pcmcia_hw_init[] to .devinit.data

    Linus Torvalds
     

21 May, 2011

2 commits

  • * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev:
    libata: Power off empty ports
    libata-pmp: add support for Thermaltake BlackX Duet esata drive dock
    ATA: Don't powerdown Compaq Triflex IDE device on suspend
    libata: Use Maximum Write Same Length to report discard size limit
    drivers/ata/acard-ahci.c: fix enum warning
    pata_at91: SMC settings calculation bugfixes, support for t6z and IORDY
    libata-sff: prevent irq descriptions for dummy ports
    pata_cm64x: fix boot crash on parisc

    Linus Torvalds
     
  • Since for-2.6.40/core was forked off the 2.6.39 devel tree, we've
    had churn in the core area that makes it difficult to handle
    patches for eg cfq or blk-throttle. Instead of requiring that they
    be based in older versions with bugs that have been fixed later
    in the rc cycle, merge in 2.6.39 final.

    Also fixes up conflicts in the below files.

    Conflicts:
    drivers/block/paride/pcd.c
    drivers/cdrom/viocd.c
    drivers/ide/ide-cd.c

    Signed-off-by: Jens Axboe

    Jens Axboe
     

20 May, 2011

5 commits


15 May, 2011

6 commits

  • * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev:
    libata: fix oops when LPM is used with PMP

    Linus Torvalds
     
  • * New code correctly calculates SMC registers values, adjusts calculated
    to admissible ranges, enlarges cycles when required and converts values
    into SMC's format.
    * Support for TDF cycles (ATA t6z) and IORDY line added.
    * Eliminate need in the initial_timing structure.
    * Code cleanup.

    Signed-off-by: Igor Plyatov
    Signed-off-by: Jeff Garzik

    Igor Plyatov
     
  • This is a cosmetic change to prevent libata-sff adding irq
    descriptions to dummy ports, since the information, while largely
    unused, is erroneous.

    Signed-off-by: James Bottomley
    Signed-off-by: Jeff Garzik

    James Bottomley
     
  • The old IDE cmd64x checks the status of the CNTRL register to see if
    the ports are enabled before probing them. pata_cmd64x doesn't do
    this, which causes a HPMC on parisc when it tries to poke at the
    secondary port because apparently the BAR isn't wired up (and a
    non-responding piece of memory causes a HPMC).

    Fix this by porting the CNTRL register port detection logic from IDE
    cmd64x. In addition, following converns from Alan Cox, add a check to
    see if a mobility electronics bridge is the immediate parent and forgo
    the check if it is (prevents problems on hotplug controllers).

    Signed-off-by: James Bottomley
    Signed-off-by: Jeff Garzik

    James Bottomley
     
  • ae01b2493c (libata: Implement ATA_FLAG_NO_DIPM and apply it to mcp65)
    added ATA_FLAG_NO_DIPM and made ata_eh_set_lpm() check the flag.
    However, @ap is NULL if @link points to a PMP link and thus the
    unconditional @ap->flags dereference leads to the following oops.

    BUG: unable to handle kernel NULL pointer dereference at 0000000000000018
    IP: [] ata_eh_recover+0x9a1/0x1510
    ...
    Pid: 295, comm: scsi_eh_4 Tainted: P 2.6.38.5-core2 #1 System76, Inc. Serval Professional/Serval Professional
    RIP: 0010:[] [] ata_eh_recover+0x9a1/0x1510
    RSP: 0018:ffff880132defbf0 EFLAGS: 00010246
    RAX: 0000000000000000 RBX: ffff880132f40000 RCX: 0000000000000000
    RDX: ffff88013377c000 RSI: ffff880132f40000 RDI: 0000000000000000
    RBP: ffff880132defce0 R08: ffff88013377dc58 R09: ffff880132defd98
    R10: 0000000000000000 R11: 00000000ffffffff R12: 0000000000000000
    R13: 0000000000000000 R14: ffff88013377c000 R15: 0000000000000000
    FS: 0000000000000000(0000) GS:ffff8800bf700000(0000) knlGS:0000000000000000
    CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
    CR2: 0000000000000018 CR3: 0000000001a03000 CR4: 00000000000406e0
    DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
    DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
    Process scsi_eh_4 (pid: 295, threadinfo ffff880132dee000, task ffff880133b416c0)
    Stack:
    0000000000000000 ffff880132defcc0 0000000000000000 ffff880132f42738
    ffffffff813ee8f0 ffffffff813eefe0 ffff880132defd98 ffff88013377f190
    ffffffffa00b3e30 ffffffff813ef030 0000000032defc60 ffff880100000000
    Call Trace:
    [] sata_pmp_error_handler+0x607/0xc30
    [] ahci_error_handler+0x1f/0x70 [libahci]
    [] ata_scsi_error+0x5be/0x900
    [] scsi_error_handler+0x124/0x650
    [] kthread+0x96/0xa0
    [] kernel_thread_helper+0x4/0x10
    Code: 8b 95 70 ff ff ff b8 00 00 00 00 48 3b 9a 10 2e 00 00 48 0f 44 c2 48 89 85 70 ff ff ff 48 8b 8d 70 ff ff ff f6 83 69 02 00 00 01 8b 41 18 0f 85 48 01 00 00 48 85 c9 74 12 48 8b 51 08 48 83
    RIP [] ata_eh_recover+0x9a1/0x1510
    RSP
    CR2: 0000000000000018

    Fix it by testing @link->ap->flags instead.

    stable: ATA_FLAG_NO_DIPM was added during 2.6.39 cycle but was
    backported to 2.6.37 and 38. This is a fix for that and thus
    also applicable to 2.6.37 and 38.

    Signed-off-by: Tejun Heo
    Reported-by: "Nathan A. Mourey II"
    LKML-Reference:
    Cc: Connor H
    Cc: stable@kernel.org
    Signed-off-by: Jeff Garzik

    Tejun Heo
     
  • This reverts commit 270dac35c26433d06a89150c51e75ca0181ca7e4.

    The commits causes command timeouts on AC plug/unplug. It isn't yet
    clear why. As the commit was for a single rather obscure controller,
    revert the change for now.

    The problem was reported and bisected by Gu Rui in bug#34692.

    https://bugzilla.kernel.org/show_bug.cgi?id=34692

    Also, reported by Rafael and Michael in the following thread.

    http://thread.gmane.org/gmane.linux.kernel/1138771

    Signed-off-by: Tejun Heo
    Reported-by: Gu Rui
    Reported-by: Rafael J. Wysocki
    Reported-by: Michael Leun
    Cc: Jian Peng
    Cc: Jeff Garzik
    Signed-off-by: Linus Torvalds

    Tejun Heo
     

07 May, 2011

1 commit


06 May, 2011

1 commit

  • Saves about 50KB of data.

    Old/new size of all objects:
    text data bss dec hex filename
    563015 80096 130684 773795 bcea3 (TOTALS)
    610916 32256 130632 773804 bceac (TOTALS)

    Signed-off-by: Joe Perches
    Acked-by: Kurt Van Dijck (for drivers/net/can/softing/softing_cs.c)
    Signed-off-by: Dominik Brodowski

    Joe Perches
     

24 Apr, 2011

9 commits

  • At the end of section 10.1 of AHCI spec (rev 1.3), it states

    Software shall not set PxCMD.ST to 1 until it is determined that
    a functoinal device is present on the port as determined by
    PxTFD.STS.BSY=0, PxTFD.STS.DRQ=0 and PxSSTS.DET=3h

    Even though most AHCI host controller works without this check,
    specific controller will fail under this condition.

    Signed-off-by: Jian Peng
    Signed-off-by: Jeff Garzik

    Jian Peng
     
  • The "struct ata_timing" must contain 10 members, but ".dmack_hold" member was
    forgotten for "initial_timing" initialisation. This patch fixes such a problem.

    Signed-off-by: Igor Plyatov
    Signed-off-by: Jeff Garzik

    Igor Plyatov
     
  • The AT91SAM9 microcontrollers with master clock higher then 105 MHz
    and PIO0, have overflow of the NCS_RD_PULSE value in the MSB. This
    lead to "NCS_RD_PULSE" pulse longer then "NRD_CYCLE" pulse and driver
    does not detect ATA device.

    Signed-off-by: Igor Plyatov
    Signed-off-by: Jeff Garzik

    Igor Plyatov
     
  • The previously submitted patch was word-wrapped.

    This patch adds the AHCI-mode SATA DeviceIDs for the Intel Panther Point PCH.

    Signed-off-by: Seth Heasley
    Signed-off-by: Jeff Garzik

    Seth Heasley
     
  • The previously submitted patch was word-wrapped.

    This patch adds the IDE-mode SATA DeviceIDs for the Intel Panther
    Point PCH.

    Signed-off-by: Seth Heasley
    Signed-off-by: Jeff Garzik

    Seth Heasley
     
  • Commit 4a5610a04d415ed94af75bb1159d2621d62c8328 fixed an issue with
    the Pioneer DVR-212D not handling SETXFER correctly. An openSUSE user
    reported a similar issue with his DVR-216D that the NOSETXFER horkage
    worked around for him as well.

    This patch adds the DVR-216D (1.08) to the horkage list for NOSETXFER.

    The issue was reported at:
    https://bugzilla.novell.com/show_bug.cgi?id=679143

    Reported-by: Volodymyr Kyrychenko
    Signed-off-by: Jeff Mahoney
    Signed-off-by: Jeff Garzik

    Jeff Mahoney
     
  • The ahci_pmp_attach() & ahci_pmp_detach() unmask port irqs, but they
    are also called during port initialization, before ahci host irq
    handler is registered. On ce4100 platform, this sometimes triggers
    "irq 4: nobody cared" message when loading driver.

    Fixed this by not touching the register if the port is in frozen
    state, and mark all uninitialized port as frozen.

    Signed-off-by: Maxime Bizon
    Acked-by: Tejun Heo
    Cc: stable@kernel.org
    Signed-off-by: Jeff Garzik

    Maxime Bizon
     
  • NVIDIA mcp65 familiy of controllers cause command timeouts when DIPM
    is used. Implement ATA_FLAG_NO_DIPM and apply it.

    This problem was reported by Stefan Bader in the following thread.

    http://thread.gmane.org/gmane.linux.ide/48841

    stable: applicable to 2.6.37 and 38.

    Signed-off-by: Tejun Heo
    Reported-by: Stefan Bader
    Cc: stable@kernel.org
    Signed-off-by: Jeff Garzik

    Tejun Heo
     
  • This patch adds an sysfs attribute 'em_message_supported' to the
    ahci host device which prints out the supported enclosure management
    message types.

    Signed-off-by: Hannes Reinecke
    Signed-off-by: Jeff Garzik

    Hannes Reinecke
     

31 Mar, 2011

1 commit


30 Mar, 2011

1 commit

  • * 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm: (65 commits)
    ARM: 6826/1: Merge v6 and v7 DEBUG_LL DCC support
    ARM: 6838/1: etm: fix section mismatch warning
    ARM: 6837/1: remove unused pci_fixup_prpmc1100
    ARM: 6836/1: kprobes/fix emulation of LDR/STR instruction when Rn == PC
    Fix the broken build for Marvell Dove platform.
    ARM: 6835/1: perf: ensure overflows aren't missed due to IRQ latency
    ARM: 6834/1: perf: reset counters on all CPUs during initialisation
    ARM: 6833/1: perf: add required isbs() to ARMv7 backend
    ARM: 6825/1: kernel/sleep.S: fix Thumb2 compilation issues
    ARM: 6807/1: realview: Fix secondary GIC initialisation for EB with MPCore tile
    arm: mach-mx3: pcm043: add write-protect and card-detect for SD1
    eukrea_mbimxsd51: add SD Card detect
    eukrea_mbimxsd25-baseboard: add SD card detect
    mx3/eukrea_mbimxsd-baseboard: add SD card detect support
    mx3/eukrea_mbimxsd-baseboard: fix gpio request
    ARM: mxs/mx28evk: add mmc device
    ARM: mxs/mx23evk: add mmc device
    ARM: mxs: dynamically allocate mmc device
    ARM: mx51_efika: update platform data for new mfd changes
    mx2/iomux: Set direction for CSPI2 pins
    ...

    Linus Torvalds
     

29 Mar, 2011

1 commit


26 Mar, 2011

1 commit


18 Mar, 2011

1 commit

  • * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc: (62 commits)
    powerpc/85xx: Fix signedness bug in cache-sram
    powerpc/fsl: 85xx: document cache sram bindings
    powerpc/fsl: define binding for fsl mpic interrupt controllers
    powerpc/fsl_msi: Handle msi-available-ranges better
    drivers/serial/ucc_uart.c: Add of_node_put to avoid memory leak
    powerpc/85xx: Fix SPE float to integer conversion failure
    powerpc/85xx: Update sata controller compatible for p1022ds board
    ATA: Add FSL sata v2 controller support
    powerpc/mpc8xxx_gpio: simplify searching for 'fsl, qoriq-gpio' compatiable
    powerpc/8xx: remove obsolete mgsuvd board
    powerpc/82xx: rename and update mgcoge board support
    powerpc/83xx: rename and update kmeter1
    powerpc/85xx: Workaroudn e500 CPU erratum A005
    powerpc/fsl_pci: Add support for FSL PCIe controllers v2.x
    powerpc/85xx: Fix writing to spin table 'cpu-release-addr' on ppc64e
    powerpc/pseries: Disable MSI using new interface if possible
    powerpc: Enable GENERIC_HARDIRQS_NO_DEPRECATED.
    powerpc: core irq_data conversion.
    powerpc: sysdev/xilinx_intc irq_data conversion.
    powerpc: sysdev/uic irq_data conversion.
    ...

    Fix up conflicts in arch/powerpc/sysdev/fsl_msi.c (due to getting rid of
    of_platform_driver in arch/powerpc)

    Linus Torvalds
     

17 Mar, 2011

1 commit

  • * 'devicetree/next' of git://git.secretlab.ca/git/linux-2.6: (21 commits)
    tty: serial: altera_jtaguart: Add device tree support
    tty: serial: altera_uart: Add devicetree support
    dt: eliminate of_platform_driver shim code
    dt: Eliminate of_platform_{,un}register_driver
    dt/serial: Eliminate users of of_platform_{,un}register_driver
    dt/usb: Eliminate users of of_platform_{,un}register_driver
    dt/video: Eliminate users of of_platform_{,un}register_driver
    dt/net: Eliminate users of of_platform_{,un}register_driver
    dt/sound: Eliminate users of of_platform_{,un}register_driver
    dt/spi: Eliminate users of of_platform_{,un}register_driver
    dt: uartlite: merge platform and of_platform driver bindings
    dt: xilinx_hwicap: merge platform and of_platform driver bindings
    ipmi: convert OF driver to platform driver
    leds/leds-gpio: merge platform_driver with of_platform_driver
    dt/sparc: Eliminate users of of_platform_{,un}register_driver
    dt/powerpc: Eliminate users of of_platform_{,un}register_driver
    dt/powerpc: move of_bus_type infrastructure to ibmebus
    drivercore/dt: add a match table pointer to struct device
    dt: Typo fix.
    altera_ps2: Add devicetree support
    ...

    Linus Torvalds
     

16 Mar, 2011

1 commit


15 Mar, 2011

2 commits

  • In FSL sata v2 block, the snoop bit of PRDT Word3 description
    information is at bit28 instead of bit22.

    This patch adds FSL sata v2 probe and resolve this difference.

    Signed-off-by: Lei Xu
    Signed-off-by: Roy Zang
    Acked-by: Jeff Garzik
    Signed-off-by: Kumar Gala

    Xulei
     
  • 1b4b:91a3 seems to be another PCI ID for marvell ahci. Add it.
    Reported and tested in the following thread.

    http://thread.gmane.org/gmane.linux.kernel/1068354

    Signed-off-by: Tejun Heo
    Reported-by: Borislav Petkov
    Reported-by: Alessandro Tagliapietra
    Signed-off-by: Jeff Garzik

    Tejun Heo
     

14 Mar, 2011

5 commits

  • RX_WATER_MARK sets the number of locations in Rx FIFO that can be used before
    the transport layer instructs the link layer to transmit HOLDS. Note that it
    can take some time for the HOLDs to get to the other end, and that in the
    interim there must be enough room in the FIFO to absorb all data that could
    arrive.

    Update the new recommended value to 16.

    Signed-off-by: Prabhakar Kushwaha
    Signed-off-by: Jeff Garzik

    Prabhakar Kushwaha
     
  • When a single device error is detected, the device under the error
    is indicated by the error bit set in the DER. There is a one to one
    mapping between register bit and devices on Port multiplier(PMP)
    i.e. bit 0 represents PMP device 0 and bit 1 represents PMP device
    1 etc.

    Current implementation treats Device error register value as device
    number not set of bits representing multiple device on PMP. It is
    changed to consider bit level.

    No need to check for each set bit as all command is going to be
    aborted.

    Signed-off-by: Ashish Kalra
    Signed-off-by: Prabhakar Kushwaha
    Signed-off-by: Jeff Garzik

    Prabhakar Kushwaha
     
  • As per SAT-3 the WWN ID should be included in the VPD page 0x83
    (device identification) emulation.

    Signed-off-by: Hannes Reinecke
    Acked-by: Tejun Heo
    Signed-off-by: Jeff Garzik

    Hannes Reinecke
     
  • Some DMA controllers (eg: drivers/dma/dw_dmac*) allow platform specific
    configuration for dma transfers. User drivers need to set chan->private field
    of channel with pointer to configuration data. This patch takes dma_priv data
    from platform data and passes it to chan->private_data, in order to pass
    platform specific configuration to DMAC controller.

    Signed-off-by: Viresh Kumar
    Signed-off-by: Jeff Garzik

    Viresh Kumar
     
  • Commit 40d69ba029c8d5de51aaeb5358999266c482d00a
    ("pata_hpt{37x|3x2n}: use pr_*(DRV_NAME ...) instead of printk(KERN_* ...)")
    used pr_.

    Add #define pr_fmt and remove DRV_NAME.
    Increment driver version numbers.

    Signed-off-by: Joe Perches
    Signed-off-by: Jeff Garzik

    Joe Perches