linux/drivers/gpu/drm/arm
Jamie Fox 1f23a56a46 drm/malidp: Enable MMU prefetch on Mali-DP650
Mali-DP650 supports warming up the SMMU translations, by sending
requsts to the SMMU before a buffer is read.

There are two modes supported:

- PARTIAL: could be enabled when the buffer is composed of 4K or 64K
  pages, the display hardware will send a configurable number of
  requests before the actual reading.

- FULL: could be enabled when the buffer is composed of 1M or 2M
  pages, the display hardware will send requests before reading for
  all pages composing the buffer.

This patch adds a mechanism for detecting the page size and set the
MMU prefetch mode if possible.

Changes since v1:
 - For imported buffers use the already populated
   drm_gem_cma_object.sgt instead of calling
   driver.gem_prime_get_sg_table, which works just for buffers
   allocated through the gem_cma API.

Signed-off-by: Jamie Fox <jamie.fox@arm.com>
Signed-off-by: Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com>
Acked-by: Liviu Dudau <liviu.dudau@arm.com>
[rebased and re-ordered functions]
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
2018-10-02 11:59:36 +01:00
..
hdlcd_crtc.c drm/arm/hdlcd: Reject atomic commits that disable only the plane 2018-07-31 16:31:50 +01:00
hdlcd_drv.c drm/arm/hdlcd: Use drm_fbdev_generic_setup() 2018-09-25 11:30:43 +02:00
hdlcd_drv.h drm/arm/hdlcd: Use drm_fb_cma_fbdev_init/fini() 2018-07-31 16:31:50 +01:00
hdlcd_regs.h
Kconfig
Makefile drm: mali-dp: Add writeback connector 2018-07-05 15:19:03 +01:00
malidp_crtc.c drm: mali-dp: Add writeback connector 2018-07-05 15:19:03 +01:00
malidp_drv.c drm: mali-dp: Call drm_crtc_vblank_reset on device init 2018-10-02 11:54:26 +01:00
malidp_drv.h drm/malidp: Enable MMU prefetch on Mali-DP650 2018-10-02 11:59:36 +01:00
malidp_hw.c drm/malidp: Enable MMU prefetch on Mali-DP650 2018-10-02 11:59:36 +01:00
malidp_hw.h drm/malidp: Enable MMU prefetch on Mali-DP650 2018-10-02 11:59:36 +01:00
malidp_mw.c drm/malidp: Fix writeback in NV12 2018-10-02 11:54:26 +01:00
malidp_mw.h drm: mali-dp: Add writeback connector 2018-07-05 15:19:03 +01:00
malidp_planes.c drm/malidp: Enable MMU prefetch on Mali-DP650 2018-10-02 11:59:36 +01:00
malidp_regs.h drm/malidp: Enable MMU prefetch on Mali-DP650 2018-10-02 11:59:36 +01:00