23 Jul, 2010

1 commit

  • Workqueue can now handle high concurrency. Convert drm_crtc_helper to
    use system_nrt_wq instead of slow-work. The conversion is mostly
    straight forward. One difference is that drm_helper_hpd_irq_event()
    no longer blocks and can be called from any context.

    Signed-off-by: Tejun Heo
    Acked-by: David Airlie
    Cc: dri-devel@lists.freedesktop.org

    Tejun Heo
     

02 Jul, 2010

1 commit

  • libata has two concurrency related limitations.

    a. ata_wq which is used for polling PIO has single thread per CPU. If
    there are multiple devices doing polling PIO on the same CPU, they
    can't be executed simultaneously.

    b. ata_aux_wq which is used for SCSI probing has single thread. In
    cases where SCSI probing is stalled for extended period of time
    which is possible for ATAPI devices, this will stall all probing.

    #a is solved by increasing maximum concurrency of ata_wq. Please note
    that polling PIO might be used under allocation path and thus needs to
    be served by a separate wq with a rescuer.

    #b is solved by using the default wq instead and achieving exclusion
    via per-port mutex.

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

    Tejun Heo
     

29 Jun, 2010

2 commits

  • ACPI works need to be executed on cpu0 and acpi/osl.c achieves this by
    creating singlethread workqueue and then binding it to cpu0 from a
    work which is quite unorthodox. Make it create regular workqueues and
    use queue_work_on() instead. This is in preparation of concurrency
    managed workqueue and the extra workers won't be a problem after it's
    implemented.

    Signed-off-by: Tejun Heo

    Tejun Heo
     
  • Upcoming workqueue updates will no longer guarantee fixed workqueue to
    worker kthread association, so giving RT priority to the irq worker
    won't work. Use kthread_worker which guarantees specific kthread
    association instead. This also makes setting the priority cleaner.

    Signed-off-by: Tejun Heo
    Cc: Andy Walls
    Cc: Andrew Morton
    Cc: ivtv-devel@ivtvdriver.org
    Cc: linux-media@vger.kernel.org

    Tejun Heo
     

12 Jun, 2010

8 commits


11 Jun, 2010

3 commits

  • fix a race at the end of NAPI complete processing, it had
    better do __napi_complete() first before re-enable interrupt.

    Signed-off-by:Figo.zhang

    Signed-off-by: David S. Miller

    Figo.zhang
     
  • The data in the cmd_block buffers may reach the main memory after the
    writel() to the device ports. This patch introduces two calls to wmb()
    to ensure the relative ordering.

    Signed-off-by: Catalin Marinas
    Tested-by: Colin Tuckley
    Cc: Tejun Heo
    Cc: Jeff Garzik
    Signed-off-by: Jeff Garzik

    Catalin Marinas
     
  • cb->atapi.cdb is an array of 16 u8 elements. The call too memset()
    would set the first part of the sge array to zero as well. It's not
    a packed struct.

    This one has been around for five years. I found it with Smatch. I
    think the reason no one has seen it before is because we normally call
    sil24_fill_sg() and that overwrites sge with proper information?

    Signed-off-by: Dan Carpenter
    Signed-off-by: Jeff Garzik

    Dan Carpenter
     

10 Jun, 2010

6 commits

  • Realtek confirmed that a 20us delay is needed after mdio_read and
    mdio_write operations. Reduce the delay in mdio_write, and add it
    to mdio_read too. Also add a comment that the 20us is from hw specs.

    Signed-off-by: Timo Teräs
    Acked-by: Francois Romieu
    Signed-off-by: David S. Miller

    Timo Teräs
     
  • Since commit cc772ab7cdcaa24d1fae332d92a1602788644f7a ("gianfar: Add
    hardware RX timestamping support"), the driver no longer works on
    at least MPC8313ERDB and MPC8568EMDS boards (and possibly much more
    boards as well).

    That's how MPC8313 Reference Manual describes RCTRL_TS_ENABLE bit:

    Timestamp incoming packets as padding bytes. PAL field is set
    to 8 if the PAL field is programmed to less than 8. Must be set
    to zero if TMR_CTRL[TE]=0.

    I see that the commit above sets this bit, but it doesn't handle
    TMR_CTRL. Manfred probably had this bit set by the firmware for
    his boards. But obviously this isn't true for all boards in the
    wild.

    Also, I recall that Freescale BSPs were explicitly disabling the
    timestamping because of a performance drop.

    For now, the best way to deal with this is just disable the
    timestamping, and later we can discuss proper device tree bindings
    and implement enabling this feature via some property.

    Signed-off-by: Anton Vorontsov
    Signed-off-by: David S. Miller

    Anton Vorontsov
     
  • This patch implements a work around for Erratum 5, "3.3 V Fiber Speed
    Selection." If the hardware wiring does not respect this erratum, then
    fiber optic mode will not work properly.

    Signed-off-by: Richard Cochran
    Signed-off-by: David S. Miller

    Richard Cochran
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (21 commits)
    mac80211: fix deauth before assoc
    iwlwifi: add missing rcu_read_lock
    mac80211: fix function pointer check
    wireless: remove my name from the maintainer list
    ath5k: fix NULL pointer in antenna configuration
    p54usb: Add device ID for Dell WLA3310 USB
    wl1251: fix a memory leak in probe
    ipmr: dont corrupt lists
    8139too: fix buffer overrun in rtl8139_init_board
    asix: check packet size against mtu+ETH_HLEN instead of ETH_FRAME_LEN
    r8169: fix random mdio_write failures
    ip6mr: fix a typo in ip6mr_for_each_table()
    iwlwifi: move sysfs_create_group to post request firmware
    iwlwifi: add name to Maintainers list
    iwl3945: fix internal scan
    iwl3945: enable stuck queue detection on 3945
    ipv6: avoid high order allocations
    ath5k: retain promiscuous setting
    ath5k: depend on CONFIG_PM_SLEEP for suspend/resume functions
    mac80211: process station blockack action frames from work
    ...

    Linus Torvalds
     
  • David S. Miller
     
  • * 'msm-urgent' of git://codeaurora.org/quic/kernel/dwalker/linux-msm:
    mmc: msm: fix compile error on MSM7x30
    msm: dma: add completion.h header

    Linus Torvalds
     

09 Jun, 2010

10 commits

  • MSM7x30 isn't supported in this driver yet. If ones tried to compile it in
    with MSM7x30 configure you get,

    linux-2.6/drivers/mmc/host/msm_sdcc.c: In function 'msmsdcc_fifo_addr':
    linux-2.6/drivers/mmc/host/msm_sdcc.c:165: error: 'MSM_SDC1_PHYS' undeclared (first use in this function)
    linux-2.6/drivers/mmc/host/msm_sdcc.c:165: error: (Each undeclared identifier is reported only once
    linux-2.6/drivers/mmc/host/msm_sdcc.c:165: error: for each function it appears in.)
    linux-2.6/drivers/mmc/host/msm_sdcc.c:167: error: 'MSM_SDC2_PHYS' undeclared (first use in this function)
    linux-2.6/drivers/mmc/host/msm_sdcc.c:169: error: 'MSM_SDC3_PHYS' undeclared (first use in this function)
    linux-2.6/drivers/mmc/host/msm_sdcc.c:171: error: 'MSM_SDC4_PHYS' undeclared (first use in this function)

    So we add a Kconfig check to prevent this.

    Signed-off-by: Daniel Walker

    Daniel Walker
     
  • 10, 233 is allocated officially to /dev/kmview which is shipping in
    Ubuntu and Debian distributions. vhost_net seem to have borrowed it
    without making a proper request and this causes regressions in the other
    distributions.

    vhost_net can use a dynamic minor so use that instead. Also update the
    file with a comment to try and avoid future misunderstandings.

    cc: stable@kernel.org
    Signed-off-by: Alan Cox
    [ We should have caught this before 2.6.34 got released. - Linus ]
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6:
    firewire: core: check for 1394a compliant IRM, fix inaccessibility of Sony camcorder

    Linus Torvalds
     
  • This reverts commit cfecde435dda78248d6fcdc424bed68d5db6be0b, since it
    seems to cause some systems to not come up with any video output at all
    (or video that only comes on when X starts up).

    Fixes bugzilla:

    http://bugzilla.kernel.org/show_bug.cgi?id=16163

    Reported-and-tested-by: David John
    Tested-by: Nick Bowler
    Acked-by: Carl Worth
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • * 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6: (23 commits)
    drm/radeon: don't poll tv dac if crtc2 is in use.
    drm/radeon: reset i2c valid to avoid incorrect tv-out polling.
    drm/nv50: fix iommu errors caused by device reading from address 0
    drm/nouveau: off by one in init_i2c_device_find()
    nouveau: off by one in nv50_gpio_location()
    drm/nouveau: completely fail init if we fail to map the PRAMIN BAR
    drm/nouveau: match U/DP script against SOR link
    drm/radeon/kms/pm: resurrect printing power states
    drm/radeon/kms: add trivial debugging for voltage
    drm/radeon/kms/r600+: use voltage from requested clock mode (v3)
    drm/radeon/kms/pm: track current voltage (v2)
    drm/radeon/kms/pm: Disable voltage adjust on RS780/RS880
    drm/radeon/kms: fix typo in printing the HPD info
    drm/radeon/kms/pm: add mid profile
    drm/radeon/kms/pm: Misc fixes
    drm/radeon/kms/combios: fix typo in voltage fix
    drm/radeon/kms/evergreen: set accel_enabled
    drm/vmwgfx: return -EFAULT for copy_to_user errors
    drm/drm_crtc: return -EFAULT on copy_to_user errors
    drm/fb: use printk to print out the switching to text mode error.
    ...

    Linus Torvalds
     
  • * 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6:
    [S390] Update default configuration.
    [S390] arch/s390/kvm: Use GFP_ATOMIC when a lock is held
    [S390] kprobes: add parameter check to module_free()
    [S390] appldata/extmem/kvm: add missing GFP_KERNEL flag

    Linus Torvalds
     
  • * 'bkl/fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/frederic/random-tracing:
    hp_sdc_rtc: fix broken ioctl conversion

    Linus Torvalds
     
  • Commit 55929332c92 "drivers: Push down BKL into various drivers"
    introduced a regression in hp_sdc_rtc, caused by a missing
    change of the .unlocked_ioctl pointer to the newly introduced
    function.

    Fixes:

    drivers/input/misc/hp_sdc_rtc.c:681: warning: initialization from
    incompatible pointer type
    drivers/input/misc/hp_sdc_rtc.c:665: warning:
    ‘hp_sdc_rtc_unlocked_ioctl’ defined but not used

    Reported-by: Geert Uytterhoeven
    Signed-off-by: Arnd Bergmann
    Acked-by: Geert Uytterhoeven
    Signed-off-by: Frederic Weisbecker

    Arnd Bergmann
     
  • Using ieee80211_find_sta() needs to be under
    RCU read lock, which iwlwifi currently misses,
    so fix it.

    Cc: stable@kernel.org
    Reported-by: Miles Lane
    Signed-off-by: Johannes Berg
    Acked-by: Reinette Chatre
    Tested-by: Miles Lane
    Signed-off-by: John W. Linville

    Johannes Berg
     
  • Add missing GFP flag to memory allocations. The part in cio only
    changes a comment.

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

    Heiko Carstens
     

08 Jun, 2010

9 commits