1. 12 5月, 2016 29 次提交
  2. 09 5月, 2016 1 次提交
  3. 08 5月, 2016 10 次提交
    • A
      drm/msm: Drop load/unload drm_driver ops · 2b669875
      Archit Taneja 提交于
      The load/unload drm_driver ops are deprecated. They should be removed as
      they result in creation of devices visible to userspace even before
      the drm_device is registered.
      
      Drop these ops and use drm_dev_alloc/register and drm_dev_unregister/unref
      to explicitly create and destroy the drm device in the msm platform
      driver's bind and unbind ops. With this in use, the drm connectors are
      only registered once the drm_device is registered.
      
      It also fixes the issue of stray debugfs files after the msm module is
      removed. With this, all the debugfs files are removed, and allows
      successive module insertions/removals.
      Signed-off-by: NArchit Taneja <architt@codeaurora.org>
      2b669875
    • A
      drm/msm: Centralize connector registration/unregistration · 8208ed93
      Archit Taneja 提交于
      Move the drm_connector registration from the encoder(HDMI/DSI etc) drivers
      to the msm platform driver. This will simplify the task of ensuring that
      the connectors are registered only after the drm_device itself is
      registered.
      
      The connectors' destroy ops are made to use kzalloc instead of
      devm_kzalloc to ensure that that the connectors can be successfully
      unregistered when the msm driver module is removed. The memory for the
      connectors is unallocated when drm_mode_config_cleanup() is called
      during either during an error or during driver remove.
      Signed-off-by: NArchit Taneja <architt@codeaurora.org>
      Signed-off-by: NRob Clark <robdclark@gmail.com>
      8208ed93
    • A
      drm/msm/hdmi: Prevent gpio_free related kernel warnings · c899f935
      Archit Taneja 提交于
      Calling the legacy gpio_free on an invalid GPIO (a GPIO numbered -1)
      results in kernel warnings. This causes a lot of backtraces when
      we try to unload the drm/msm module.
      
      Call gpio_free only on valid GPIOs.
      Signed-off-by: NArchit Taneja <architt@codeaurora.org>
      Signed-off-by: NRob Clark <robdclark@gmail.com>
      c899f935
    • R
      drm/msm: print offender task name on hangcheck recovery · 4816b626
      Rob Clark 提交于
      Track the pid per submit, so we can print the name of the task which
      submitted the batch that caused the gpu to hang.
      Signed-off-by: NRob Clark <robdclark@gmail.com>
      4816b626
    • R
      drm/msm: fix leak in failed submit path · 40e6815b
      Rob Clark 提交于
      Signed-off-by: NRob Clark <robdclark@gmail.com>
      40e6815b
    • R
      drm/msm: de-indent submit_create() · 6860b56c
      Rob Clark 提交于
      Signed-off-by: NRob Clark <robdclark@gmail.com>
      6860b56c
    • R
      drm/msm: drop return from gpu->submit() · 1193c3bc
      Rob Clark 提交于
      At this point, there is nothing left to fail.  And submit already has a
      fence assigned and is added to the submit_list.  Any problems from here
      on out are asynchronous (ie. hangcheck/recovery).
      Signed-off-by: NRob Clark <robdclark@gmail.com>
      1193c3bc
    • A
      drm/msm/mdp4: Don't manage DSI PLL regulators in MDP driver · ed19075b
      Archit Taneja 提交于
      The MDP4 driver tries to request and set voltages for regulators required
      by the DSI PLLs.
      
      Firstly, the MDP4 driver shouldn't manage the DSI regulators, this should
      be handled in the DSI driver. Secondly, it shouldn't try to set a fixed
      voltage for regulators. Voltage constraints should be specified on the
      regulator via DT and managed by the regulator core.
      
      Remove all the DSI PLL regulator related code from the MDP4 driver. It's
      managed in the DSI driver for MSM8960/APQ8064 already.
      Signed-off-by: NArchit Taneja <architt@codeaurora.org>
      Signed-off-by: NRob Clark <robdclark@gmail.com>
      ed19075b
    • A
      drm/msm/edp: Drop regulator_set_voltage call · 1d15c165
      Archit Taneja 提交于
      The eDP driver tries to set a fixed voltage for one of its regulators(vdda)
      before enabling it. This shouldn't be done by the driver, the voltage
      constraints should be specified on the regulator via DT and managed by
      the regulator core. A driver should call regulator_set_voltage only if
      it needs to change the voltage during runtime. Drop the
      regulator_set_voltage call. Mention in a comment the voltage that the
      regulator expects.
      Signed-off-by: NArchit Taneja <architt@codeaurora.org>
      Signed-off-by: NRob Clark <robdclark@gmail.com>
      1d15c165
    • A
      drm/msm/dsi: Fix regulator API abuse · f377d597
      Archit Taneja 提交于
      The voltage changing code in this driver is broken and should be
      removed.  The driver sets a single, exact voltage on probe.  Unless
      there is a very good reason for this (which should be documented in
      comments) constraints like this need to be set via the machine
      constraints, voltage setting in a driver is expected to be used in cases
      where the voltage varies at runtime.
      
      In addition client drivers should almost never be calling
      regulator_can_set_voltage(), if the device needs to set a voltage it
      needs to set the voltage and the regulator core will handle the case
      where the regulator is fixed voltage.  If the driver simply skips
      setting the voltage if it doesn't have permission then it should just
      not bother in the first place.
      
      Originally authored by Mark Brown <broonie@kernel.org>
      
      Remove the min/max voltage data entries per SoC managed by the driver.
      These aren't needed as we don't try to set voltages any more. Mention in
      comments the voltages that each regulator expects.
      Signed-off-by: NArchit Taneja <architt@codeaurora.org>
      Signed-off-by: NRob Clark <robdclark@gmail.com>
      f377d597