linux_dsm_epyc7002/drivers/gpu/drm/msm/disp/mdp4
Jordan Crouse 7ad0e8cf63 drm/msm: Count how many times iova memory is pinned
Add a reference count to track how many times a particular
chunk of iova memory is pinned (mapped) in the iomu and
add msm_gem_unpin_iova to give up references.

It is important to note that msm_gem_unpin_iova replaces
msm_gem_put_iova because the new implicit behavior
that an assigned iova in a given vma is now valid for the
life of the buffer and what we are really focusing on is
the use of that iova.

For now the unmappings are lazy; once the reference counts
go to zero they *COULD* be unmapped dynamically but that
will require an outside force such as a shrinker or
mm_notifiers.  For now, we're just focusing on getting
the counting right and setting ourselves up to be ready
for the future.

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
2018-12-11 13:05:32 -05:00
..
mdp4_crtc.c drm/msm: Count how many times iova memory is pinned 2018-12-11 13:05:32 -05:00
mdp4_dsi_encoder.c drm/msm: rename mdp->disp 2018-03-19 06:33:35 -04:00
mdp4_dtv_encoder.c drm: msm: Use DRM_DEV_* instead of dev_* 2018-12-11 13:05:22 -05:00
mdp4_irq.c drm/msm: rename mdp->disp 2018-03-19 06:33:35 -04:00
mdp4_kms.c drm/msm: Count how many times iova memory is pinned 2018-12-11 13:05:32 -05:00
mdp4_kms.h drm/msm: rename mdp->disp 2018-03-19 06:33:35 -04:00
mdp4_lcdc_encoder.c drm: msm: Use DRM_DEV_* instead of dev_* 2018-12-11 13:05:22 -05:00
mdp4_lvds_connector.c drm: drop _mode_ from drm_mode_connector_attach_encoder 2018-07-13 18:40:27 +02:00
mdp4_lvds_pll.c drm/msm: rename mdp->disp 2018-03-19 06:33:35 -04:00
mdp4_plane.c drm: msm: Use DRM_DEV_* instead of dev_* 2018-12-11 13:05:22 -05:00
mdp4.xml.h drm/msm: update generated headers 2018-08-10 18:49:18 -04:00