1. 11 3月, 2012 1 次提交
  2. 03 3月, 2012 2 次提交
    • N
      hwmon: (f75375s) Catch some attempts to write to r/o registers · 15d1ad0c
      Nikolaus Schulz 提交于
      It makes no sense to attempt to manually configure the fan in auto mode,
      or set the duty cycle directly in closed loop mode.  The corresponding
      registers are then read-only.  If the user tries it nonetheless, error out
      with EINVAL instead of silently doing nothing.
      Signed-off-by: NNikolaus Schulz <mail@microschulz.de>
      [guenter.roeck@ericsson.com: Minor formatting cleanup]
      Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com>
      15d1ad0c
    • N
      hwmon: (f75375s) Properly map the F75387 automatic modes to pwm_enable · b17d6561
      Nikolaus Schulz 提交于
      The F75387 supports automatic fan control using either PWM duty cycle or
      RPM speed values.  Make the driver detect the latter mode, and expose the
      different modes in sysfs as per pwm_enable, so that the user can switch
      between them.
      
      The interpretation of the pwm_enable attribute for the F75387 is adjusted
      to be a superset of those values used for similar Fintek chips which do
      not support automatic duty mode, with 2 mapping to automatic speed mode,
      and moving automatic duty mode to the new value 4.
      
      Toggling the duty mode via pwm_enable is currently denied for the F75387,
      as the chip then simply reinterprets the fan configuration register values
      according to the new mode, switching between RPM and PWM units, which
      makes this a dangerous operation.
      
      This patch introduces a new pwm mode into the driver. This is necessary
      because the new mode (automatic pwm mode, 4) may already be enabled by the
      BIOS, and the driver should not break existing functionality. This was seen
      on at least one board.
      Signed-off-by: NNikolaus Schulz <mail@microschulz.de>
      Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com>
      b17d6561
  3. 01 3月, 2012 4 次提交
  4. 29 2月, 2012 9 次提交
  5. 28 2月, 2012 2 次提交
    • P
      crypto: mv_cesa - fix final callback not ignoring input data · f8f54e19
      Phil Sutter 提交于
      Broken by commit 6ef84509 for users
      passing a request with non-zero 'nbytes' field, like e.g. testmgr.
      
      Cc: <stable@kernel.org> # 3.0+
      Signed-off-by: NPhil Sutter <phil.sutter@viprinet.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      f8f54e19
    • C
      drm/i915: Remove use of the autoreported ringbuffer HEAD position · 5d031e5b
      Chris Wilson 提交于
      This is a revert of 6aa56062.
      
      This was originally introduced to workaround reads of the ringbuffer
      registers returning 0 on SandyBridge causing hangs due to ringbuffer
      overflow. The root cause here was reads through the GT powerwell require
      the forcewake dance, something we only learnt of later. Now it appears
      that reading the reported head position from the HWS is returning
      garbage, leading once again to hangs.
      
      For example, on q35 the autoreported head reports:
        [  217.975608] head now 00010000, actual 00010000
        [  436.725613] head now 00200000, actual 00200000
        [  462.956033] head now 00210000, actual 00210010
        [  485.501409] head now 00400000, actual 00400020
        [  508.064280] head now 00410000, actual 00410000
        [  530.576078] head now 00600000, actual 00600020
        [  553.273489] head now 00610000, actual 00610018
      which appears reasonably sane. In contrast, if we look at snb:
        [  141.970680] head now 00e10000, actual 00008238
        [  141.974062] head now 02734000, actual 000083c8
        [  141.974425] head now 00e10000, actual 00008488
        [  141.980374] head now 032b5000, actual 000088b8
        [  141.980885] head now 03271000, actual 00008950
        [  142.040628] head now 02101000, actual 00008b40
        [  142.180173] head now 02734000, actual 00009050
        [  142.181090] head now 00000000, actual 00000ae0
        [  142.183737] head now 02734000, actual 00009050
      
      In addition, the automatic reporting of the head position is scheduled
      to be defeatured in the future. It has no more utility, remove it.
      
      Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=45492Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Tested-by: NEric Anholt <eric@anholt.net>
      Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      5d031e5b
  6. 27 2月, 2012 3 次提交
  7. 25 2月, 2012 8 次提交
  8. 24 2月, 2012 11 次提交