1. 11 12月, 2013 10 次提交
  2. 10 12月, 2013 2 次提交
  3. 09 12月, 2013 1 次提交
    • D
      drm/i915: Remove duplicate intel_uncore_forcewake_reset. · c461562e
      Deepak S 提交于
      Since early sanitize and uncore sanitize are called one after the other,
      I think, we can remove second forcewake reset which was are calling
      twice in both the functions.
      
      Note that this is merge fallout between
      
      commit ef46e0d2
      Author: Daniel Vetter <daniel.vetter@ffwll.ch>
      Date:   Sat Nov 16 16:00:09 2013 +0100
      
          drm/i915: restore the early forcewake cleanup
      
      and
      
      commit 521198a2
      Author: Mika Kuoppala <mika.kuoppala@linux.intel.com>
      Date:   Fri Aug 23 16:52:30 2013 +0300
      
          drm/i915: sanitize forcewake registers on reset
      Signed-off-by: NDeepak S <deepak.s@intel.com>
      [danvet: Explain how this came to be.]
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      c461562e
  4. 07 12月, 2013 1 次提交
    • P
      drm/i915: change CRTC assertion on LCPLL disable · 798183c5
      Paulo Zanoni 提交于
      Currently, PC8 is enabled at modeset_global_resources, which is called
      after intel_modeset_update_state. Due to this, there's a small race
      condition on the case where we start enabling PC8, then do a modeset
      while PC8 is still being enabled. The racing condition triggers a WARN
      because intel_modeset_update_state will mark the CRTC as enabled, then
      the thread that's still enabling PC8 might look at the data structure
      and think that PC8 is being enabled while a pipe is enabled. Despite
      the WARN, this is not really a bug since we'll wait for the
      PC8-enabling thread to finish when we call modeset_global_resources.
      
      The spec says the CRTC cannot be enabled when we disable LCPLL, so we
      had a check for crtc->base.enabled. If we change to crtc->active we
      will still prevent disabling LCPLL while the CRTC is enabled, and we
      will also prevent the WARN above.
      
      This is a replacement for the previous patch named
          "drm/i915: get/put PC8 when we get/put a CRTC"
      
      Testcase: igt/pm_pc8/modeset-lpsp-stress-no-wait
      Signed-off-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      798183c5
  5. 05 12月, 2013 3 次提交
  6. 04 12月, 2013 16 次提交
  7. 03 12月, 2013 7 次提交
    • V
      [SCSI] bfa: Fix crash when symb name set for offline vport · 22a08538
      Vijaya Mohan Guvva 提交于
      This patch fixes a crash when tried setting symbolic name for an offline
      vport through sysfs. Crash is due to uninitialized pointer lport->ns,
      which gets initialized only on linkup (port online).
      Signed-off-by: NVijaya Mohan Guvva <vmohan@brocade.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      22a08538
    • B
      cpufreq: fix garbage kobjects on errors during suspend/resume · 2167e239
      Bjørn Mork 提交于
      This is effectively a revert of commit 5302c3fb ("cpufreq: Perform
      light-weight init/teardown during suspend/resume"), which enabled
      suspend/resume optimizations leaving the sysfs files in place.
      
      Errors during suspend/resume are not handled properly, leaving
      dead sysfs attributes in case of failures.  There are are number of
      functions with special code for the "frozen" case, and all these
      need to also have special error handling.
      
      The problem is easy to demonstrate by making cpufreq_driver->init()
      or cpufreq_driver->get() fail during resume.
      
      The code is too complex for a simple fix, with split code paths
      in multiple blocks within a number of functions.  It is therefore
      best to revert the patch enabling this code until the error handling
      is in place.
      
      Examples of problems resulting from resume errors:
      
      WARNING: CPU: 0 PID: 6055 at fs/sysfs/file.c:343 sysfs_open_file+0x77/0x212()
      missing sysfs attribute operations for kobject: (null)
      Modules linked in: [stripped as irrelevant]
      CPU: 0 PID: 6055 Comm: grep Tainted: G      D      3.13.0-rc2 #153
      Hardware name: LENOVO 2776LEG/2776LEG, BIOS 6EET55WW (3.15 ) 12/19/2011
       0000000000000009 ffff8802327ebb78 ffffffff81380b0e 0000000000000006
       ffff8802327ebbc8 ffff8802327ebbb8 ffffffff81038635 0000000000000000
       ffffffff811823c7 ffff88021a19e688 ffff88021a19e688 ffff8802302f9310
      Call Trace:
       [<ffffffff81380b0e>] dump_stack+0x55/0x76
       [<ffffffff81038635>] warn_slowpath_common+0x7c/0x96
       [<ffffffff811823c7>] ? sysfs_open_file+0x77/0x212
       [<ffffffff810386e3>] warn_slowpath_fmt+0x41/0x43
       [<ffffffff81182dec>] ? sysfs_get_active+0x6b/0x82
       [<ffffffff81182382>] ? sysfs_open_file+0x32/0x212
       [<ffffffff811823c7>] sysfs_open_file+0x77/0x212
       [<ffffffff81182350>] ? sysfs_schedule_callback+0x1ac/0x1ac
       [<ffffffff81122562>] do_dentry_open+0x17c/0x257
       [<ffffffff8112267e>] finish_open+0x41/0x4f
       [<ffffffff81130225>] do_last+0x80c/0x9ba
       [<ffffffff8112dbbd>] ? inode_permission+0x40/0x42
       [<ffffffff81130606>] path_openat+0x233/0x4a1
       [<ffffffff81130b7e>] do_filp_open+0x35/0x85
       [<ffffffff8113b787>] ? __alloc_fd+0x172/0x184
       [<ffffffff811232ea>] do_sys_open+0x6b/0xfa
       [<ffffffff811233a7>] SyS_openat+0xf/0x11
       [<ffffffff8138c812>] system_call_fastpath+0x16/0x1b
      
      The failure to restore cpufreq devices on cancelled hibernation is
      not a new bug. It is caused by the ACPI _PPC call failing unless the
      hibernate is completed. This makes the acpi_cpufreq driver fail its
      init.
      
      Previously, the cpufreq device could be restored by offlining the
      cpu temporarily.  And as a complete hibernation cycle would do this,
      it would be automatically restored most of the time.  But after
      commit 5302c3fb the leftover sysfs attributes will block any
      device add action.  Therefore offlining and onlining CPU 1 will no
      longer restore the cpufreq object, and a complete suspend/resume
      cycle will replace it with garbage.
      
      Fixes: 5302c3fb ("cpufreq: Perform light-weight init/teardown during suspend/resume")
      Cc: 3.12+ <stable@vger.kernel.org> # 3.12+
      Signed-off-by: NBjørn Mork <bjorn@mork.no>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      2167e239
    • H
      gpiolib: change a warning to debug message when failing to get gpio · 351cfe0f
      Heikki Krogerus 提交于
      It's the drivers responsibility to react on failure to get
      the gpio descriptors and not the frameworks. Since there are
      some common peripherals that may or may not have certain
      pins connected to gpio lines, depending on the platform,
      printing the warning there may end up generating useless bug
      reports.
      Signed-off-by: NHeikki Krogerus <heikki.krogerus@linux.intel.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      351cfe0f
    • L
      powerpc/gpio: Fix the wrong GPIO input data on MPC8572/MPC8536 · 1aeef303
      Liu Gang 提交于
      For MPC8572/MPC8536, the status of GPIOs defined as output
      cannot be determined by reading GPDAT register, so the code
      use shadow data register instead. But the code may give the
      wrong status of GPIOs defined as input under some scenarios:
      
      1. If some pins were configured as inputs and were asserted
      high before booting the kernel, the shadow data has been
      initialized with those pin values.
      2. Some pins have been configured as output first and have
      been set to the high value, then reconfigured as input.
      
      The above cases will make the shadow data for those input
      pins to be set to high. Then reading the pin status will
      always return high even if the actual pin status is low.
      
      The code should eliminate the effects of the shadow data to
      the input pins, and the status of those pins should be
      read directly from GPDAT.
      
      Cc: stable@vger.kernel.org
      Acked-by: NScott Wood <scottwood@freescale.com>
      Acked-by: NAnatolij Gustschin <agust@denx.de>
      Signed-off-by: NLiu Gang <Gang.Liu@freescale.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      1aeef303
    • A
      gpiolib: use platform GPIO mappings as fallback · 35c5d7fd
      Alexandre Courbot 提交于
      For platforms that use device tree or ACPI as the standard way to look
      GPIOs up, allow the platform-defined GPIO mappings to be used as a
      fallback. This may be useful for platforms that need extra GPIOs mappings
      not defined by the firmware.
      Signed-off-by: NAlexandre Courbot <acourbot@nvidia.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      35c5d7fd
    • A
      gpiolib: fix lookup of platform-mapped GPIOs · 7cc67b9c
      Alexandre Courbot 提交于
      A typo resulted in GPIO lookup failing unconditionally.
      Signed-off-by: NAlexandre Courbot <acourbot@nvidia.com>
      Reported-by: NStephen Warren <swarren@wwwdotorg.org>
      Reviewed-by: NMika Westerberg <mika.westerberg@linux.intel.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      7cc67b9c
    • L
      sh-pfc: sh7372: Fix pin bias setup · 71493de7
      Laurent Pinchart 提交于
      When computing the pin configuration register offset the bias setup code
      erroneously compares the pin number range with the loop index instead of
      the pin number. Fix it.
      Signed-off-by: NLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      71493de7