Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/etnaviv: add internal representation of perfmon_request

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>

authored by

Christian Gmeiner and committed by
Lucas Stach
8d3d56ce 05916bed

+16
+4
drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.h
··· 21 21 22 22 struct etnaviv_gpu; 23 23 struct etnaviv_cmdbuf_suballoc; 24 + struct etnaviv_perfmon_request; 24 25 25 26 struct etnaviv_cmdbuf { 26 27 /* suballocator this cmdbuf is allocated from */ ··· 39 38 u32 exec_state; 40 39 /* per GPU in-flight list */ 41 40 struct list_head node; 41 + /* perfmon requests */ 42 + unsigned int nr_pmrs; 43 + struct etnaviv_perfmon_request *pmrs; 42 44 /* BOs attached to this command buffer */ 43 45 unsigned int nr_bos; 44 46 struct etnaviv_vram_mapping *bo_map[0];
+12
drivers/gpu/drm/etnaviv/etnaviv_perfmon.h
··· 22 22 struct drm_etnaviv_pm_domain; 23 23 struct drm_etnaviv_pm_signal; 24 24 25 + struct etnaviv_perfmon_request 26 + { 27 + u32 flags; 28 + u8 domain; 29 + u8 signal; 30 + u32 sequence; 31 + 32 + /* bo to store a value */ 33 + u32 *bo_vma; 34 + u32 offset; 35 + }; 36 + 25 37 int etnaviv_pm_query_dom(struct etnaviv_gpu *gpu, 26 38 struct drm_etnaviv_pm_domain *domain); 27 39