1. 16 6月, 2018 1 次提交
  2. 15 6月, 2018 6 次提交
  3. 14 6月, 2018 14 次提交
  4. 09 6月, 2018 1 次提交
  5. 08 6月, 2018 2 次提交
  6. 07 6月, 2018 4 次提交
  7. 05 6月, 2018 6 次提交
  8. 04 6月, 2018 6 次提交
    • A
      drm/msm: Don't subclass drm_atomic_state anymore · c21c731d
      Archit Taneja 提交于
      With the addition of "private_objs" in drm_atomic_state, we no longer
      need to subclass drm_atomic_state to store state of share resources
      that don't perfectly fit within planes/crtc/connector state information.
      We can now save this state within drm_atomic_state itself using
      the private objects.
      
      Remove the infrastructure that allowed subclassing of drm_atomic_state
      in the driver.
      
      Changes in v3:
      - Added to the msm atomic helper patch set
      Changes in v4:
      - None
      Signed-off-by: NArchit Taneja <architt@codeaurora.org>
      Signed-off-by: NRob Clark <robdclark@gmail.com>
      Signed-off-by: NSean Paul <seanpaul@chromium.org>
      c21c731d
    • A
      drm/msm/mdp5: Use the new private_obj state · 7907a0d7
      Archit Taneja 提交于
      This replaces the usage of the subclassed atomic state (mdp5_state)
      with a private_obj state embedded within drm_atomic_state. The latter
      method is the preferred approach, since it's simpler to implement
      and less prone to errors.
      
      The new API replaces the older and equivalent mdp5_state usage in the
      following pattern:
      - References to "mdp5_kms->state" (i.e, the old/existing state) is
        replaced with mdp5_get_existing_global_state(). In the atomic_check
        path, this should be called with the glob_state_lock drm_modeset_lock
        alredy taken.
      - References to "mdp5_get_state()" are replaced with
        mdp5_get_global_state(). This acquires glob_state_lock and uses
        drm_atomic_get_private_obj_state() to create a new duplicated state.
      
      Changes in v3:
      - Acquire glob_state_lock in mdp5_smp.c
      - Added to the msm atomic helper patch set
      Changes in v4:
      - None
      Signed-off-by: NArchit Taneja <architt@codeaurora.org>
      Signed-off-by: NRob Clark <robdclark@gmail.com>
      Signed-off-by: NSean Paul <seanpaul@chromium.org>
      7907a0d7
    • A
      drm/msm/mdp5: Add global state as a private atomic object · 8d58ef34
      Archit Taneja 提交于
      Global shared resources (hwpipes, hwmixers and SMP) for MDP5 are
      implemented as a part of atomic state by subclassing drm_atomic_state.
      
      The preferred approach is to use the drm_private_obj infrastructure
      available in the atomic core.
      
      mdp5_global_state is introduced as a drm atomic private object. The two
      funcs mdp5_get_global_state() and mdp5_get_existing_global_state() are
      the two variants that will be used to access mdp5_global_state.
      
      This will replace the existing mdp5_state struct (which subclasses
      drm_atomic_state) and the funcs around it. These will be removed later
      once we mdp5_global_state is put to use everywhere.
      
      Changes in v3:
      - Added glob_state_lock instead of pushing it into the core
      - Added to the msm atomic helper patch set
      Changes in v4:
      - None
      Signed-off-by: NArchit Taneja <architt@codeaurora.org>
      Signed-off-by: NRob Clark <robdclark@gmail.com>
      Signed-off-by: NSean Paul <seanpaul@chromium.org>
      8d58ef34
    • D
      drm/msm: use correct aspace pointer in msm_gem_put_iova() · acb1acdb
      Daniel Mack 提交于
      Even though msm_gem_put_iova() is currently a NOP function, the caller
      should pass in the address space pointer it used to obtain the object.
      
      Other call sites were changed in 8bdcd949 ("drm/msm: pass
      address-space to _get_iova() and friends"), but this one seems to have
      been forgotten.
      Signed-off-by: NDaniel Mack <daniel@zonque.org>
      Cc: Rob Clark <robdclark@gmail.com>
      Signed-off-by: NRob Clark <robdclark@gmail.com>
      acb1acdb
    • D
      drm/msm: remove unbalanced mutex unlock · 3c9620cd
      Daniel Mack 提交于
      This regression stems from 0e08270a ("drm/msm: Separate locking of
      buffer resources from struct_mutex").
      Signed-off-by: NDaniel Mack <daniel@zonque.org>
      Cc: Sushmita Susheelendra <ssusheel@codeaurora.org>
      Cc: Rob Clark <rclark@redhat.com>
      Fixes: 0e08270a ("drm/msm: Separate locking of buffer resources from struct_mutex")
      Signed-off-by: NRob Clark <robdclark@gmail.com>
      3c9620cd
    • E
      drm/msm: don't deref error pointer in the msm_fbdev_create error path · 641be142
      Emil Velikov 提交于
      Currently the error pointer returned by msm_alloc_stolen_fb gets passed
      to drm_framebuffer_remove. The latter handles only NULL pointers, thus
      a nasty crash will occur.
      
      Drop the unnecessary fail label and the associated checks - both err and
      fb will be set at this stage.
      
      Cc: Rob Clark <robdclark@gmail.com>
      Cc: linux-arm-msm@vger.kernel.org
      Cc: dri-devel@lists.freedesktop.org
      Cc: freedreno@lists.freedesktop.org
      Signed-off-by: NEmil Velikov <emil.velikov@collabora.com>
      Signed-off-by: NRob Clark <robdclark@gmail.com>
      641be142