1. 19 9月, 2012 1 次提交
  2. 14 9月, 2012 12 次提交
  3. 22 8月, 2012 19 次提交
  4. 21 8月, 2012 8 次提交
    • A
      Revert "drm/radeon: fix bo creation retry path" · 676bc2e1
      Alex Deucher 提交于
      This reverts commit d1c7871d.
      
      ttm_bo_init() destroys the BO on failure. So this patch makes
      the retry path work with freed memory.  This ends up causing
      kernel panics when this path is hit.
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      Cc: stable@vger.kernel.org
      676bc2e1
    • D
      tcm_fc: rcu_deref outside rcu lock/unlock section · 08a16208
      Denis Efremov 提交于
      Use rcu_dereference_protected in order to prevent lockdep
      complaint. Sequel of the patch 863555be
      
      Found by Linux Driver Verification project (linuxtesting.org).
      Signed-off-by: NDenis Efremov <yefremov.denis@gmail.com>
      Acked-by: NMark D. Rustad <mark.d.rustad@intel.com>
      Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
      08a16208
    • M
      tcm_vhost: Fix vhost_scsi_target structure alignment · 6de7145c
      Michael S. Tsirkin 提交于
      Here TRANSPORT_IQN_LEN is 224, which is a multiple of 4.
      Since vhost_tpgt is 2 bytes and abi_version is 4, the total size would
      be 230.  But gcc needs struct size be aligned to first field size, which
      is 4 bytes, so it pads the structure by extra 2 bytes to the total of
      232.
      
      This padding is very undesirable in an ABI:
      - it can not be initialized easily
      - it can not be checked easily
      - it can leak information between kernel and userspace
      
      Simplest solution is probably just to make the padding
      explicit.
      
      (v2: Add check for zero'ed backend->reserved field for VHOST_SCSI_SET_ENDPOINT
           and VHOST_SCSI_CLEAR_ENDPOINT ops as requested by MST)
      Reported-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
      6de7145c
    • G
      gpu/mfd/usb: Fix USB randconfig problems · 8f057d7b
      Guenter Roeck 提交于
      Fix config warning:
      
      warning: ( ... && DRM_USB) selects USB which has unmet direct dependencies
      (USB_SUPPORT && USB_ARCH_HAS_HCD)
      
      and build error:
      ERROR: "usb_speed_string" [drivers/usb/core/usbcore.ko] undefined!
      
      by adding the missing dependency on USB_ARCH_HAS_HCD to DRM_UDL and DRM_USB.
      
      This exposes:
      drivers/video/Kconfig:36:error: recursive dependency detected!
      drivers/video/Kconfig:36:       symbol FB is selected by DRM_KMS_HELPER
      drivers/gpu/drm/Kconfig:28:     symbol DRM_KMS_HELPER is selected by DRM_UDL
      drivers/gpu/drm/udl/Kconfig:1:  symbol DRM_UDL depends on USB_ARCH_HAS_HCD
      drivers/usb/Kconfig:78: symbol USB_ARCH_HAS_HCD depends on USB_ARCH_HAS_OHCI
      drivers/usb/Kconfig:16: symbol USB_ARCH_HAS_OHCI depends on I2C
      drivers/i2c/Kconfig:5:  symbol I2C is selected by FB_DDC
      drivers/video/Kconfig:86:       symbol FB_DDC is selected by FB_CYBER2000_DDC
      drivers/video/Kconfig:385:      symbol FB_CYBER2000_DDC depends on FB_CYBER2000
      drivers/video/Kconfig:373:      symbol FB_CYBER2000 depends on FB
      
      which is due to drivers/usb/Kconfig:
      config USB_ARCH_HAS_OHCI
      	...
      	default y if ARCH_PNX4008 && I2C
      
      Fix by dropping I2C from the above dependency; logic is that this is not a
      platform dependency but a configuration dependency: the _architecture_ still
      supports USB even is I2C is not selected.
      
      This exposes:
      drivers/video/Kconfig:36:error: recursive dependency detected!
      drivers/video/Kconfig:36:       symbol FB is selected by DRM_KMS_HELPER
      drivers/gpu/drm/Kconfig:28:     symbol DRM_KMS_HELPER is selected by DRM_UDL
      drivers/gpu/drm/udl/Kconfig:1:  symbol DRM_UDL depends on USB_ARCH_HAS_HCD
      drivers/usb/Kconfig:78: symbol USB_ARCH_HAS_HCD depends on USB_ARCH_HAS_OHCI
      drivers/usb/Kconfig:17: symbol USB_ARCH_HAS_OHCI depends on MFD_TC6393XB
      drivers/mfd/Kconfig:396:        symbol MFD_TC6393XB depends on GPIOLIB
      drivers/gpio/Kconfig:35:        symbol GPIOLIB is selected by FB_VIA
      drivers/video/Kconfig:1560:     symbol FB_VIA depends on FB
      
      which can be fixed by having MFD_TC6393XB select GPIOLIB instead of depending on
      it.
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      8f057d7b
    • D
      drm/i915: use hsw rps tuning values everywhere on gen6+ · 1ee9ae32
      Daniel Vetter 提交于
      James Bottomley reported [1] a massive power regression, due to the
      enabling of semaphores by default in 3.5. A workaround for him is to
      again disable semaphores. And indeed, his system has a very hard time
      to enter rc6 with semaphores enabled.
      
      Ben Widawsky run around with a kill-a-watt a lot and noticed:
      - There are indeed a few rare systems that seem to have a hard time
        entering rc6 when desktop-idle.
      - One machine, The Indestructible Toshiba regressed in this behaviour
        between 3.5 and 3.6 in a merge commit! So rc6 behaviour with the
        current setting seems to be highly timing dependent and not robust
        at all.
      - The behaviour James reported wrt semaphores seems to be a freak
        timing thing that only happens on his specific machine, confirming
        that enabling semaphores shouldn't reduce rc6 residency.
      
      Now furthermore the Google ChromeOS guys reported [2] a while ago that
      at least on some machines a simply a blinking cursor can keep the gpu
      turbo at the highest frequency. This is because the current rps limits
      used on snb/ivb are highly asymmetric.
      
      On the theory that gpu turbo and rc6 tuning values are related, we've
      tried whether the much saner looking (since much less asymmetric) rps
      tuning values used for hsw would also help entering rc6 more robustly.
      
      And it seems to mostly work, and we don't really have the resources to
      through-roughly tune things in any better way: The values from the
      ChromeOS ppl seem to fare a bit worse for James' machine, so I guess
      we better stick with something vpg (the gpu hw/windows group)
      provided, hoping that they've done their jobs.
      
      Reference[1]: http://lists.freedesktop.org/archives/dri-devel/2012-July/025675.html
      Reference[2]: http://lists.freedesktop.org/archives/intel-gfx/2012-July/018692.html
      Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=53393Tested-by: NBen Widawsky <ben@bwidawsk.net>
      Cc: stable@vger.kernel.org
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      1ee9ae32
    • M
      ideapad: add Lenovo IdeaPad Z570 support (part 3) · 0c7bbeb9
      Maxim Mikityanskiy 提交于
      The patch adds support for Lenovo IdeaPad Z570 laptop. It makes all special
      keys working, adds possibility to control fan like Windows does, controls
      Touchpad Disabled LED, toggles touchpad state via keyboard controller and
      corrects touchpad behavior on resume from suspend. It is new, modified
      version of patch. Now it does not depend on psmouse and does not need patching
      of input subsystem.
      Signed-off-by: NMaxim Mikityanskiy <maxtram95@gmail.com>
      
      This is the part 3 for fan control
      Signed-off-by: NIke Panhc <ike.pan@canonical.com>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      0c7bbeb9
    • M
      ideapad: add Lenovo IdeaPad Z570 support (part 2) · 07a4a4fc
      Maxim Mikityanskiy 提交于
      The patch adds support for Lenovo IdeaPad Z570 laptop. It makes all special
      keys working, adds possibility to control fan like Windows does, controls
      Touchpad Disabled LED, toggles touchpad state via keyboard controller and
      corrects touchpad behavior on resume from suspend. It is new, modified
      version of patch. Now it does not depend on psmouse and does not need patching
      of input subsystem.
      Signed-off-by: NMaxim Mikityanskiy <maxtram95@gmail.com>
      
      This is part 2 for touchpad toggle
      Signed-off-by: NIke Panhc <ike.pan@canonical.com>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      07a4a4fc
    • M
      ideapad: add Lenovo IdeaPad Z570 support (part 1) · 296f9fe0
      Maxim Mikityanskiy 提交于
      The patch adds support for Lenovo IdeaPad Z570 laptop. It makes all special
      keys working, adds possibility to control fan like Windows does, controls
      Touchpad Disabled LED, toggles touchpad state via keyboard controller and
      corrects touchpad behavior on resume from suspend. It is new, modified
      version of patch. Now it does not depend on psmouse and does not need patching
      of input subsystem.
      Signed-off-by: NMaxim Mikityanskiy <maxtram95@gmail.com>
      
      This is part 1 for special button handling.
      Signed-off-by: NIke Panhc <ike.pan@canonical.com>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      296f9fe0