MGS-4868 [#ccc] enable userspace register read
authorAdrian Negreanu <adrian.negreanu@nxp.com>
Mon, 15 Jul 2019 13:01:24 +0000 (16:01 +0300)
committerXianzhong <xianzhong.li@nxp.com>
Mon, 22 Jul 2019 15:38:51 +0000 (23:38 +0800)
In v6.2.4, userspace register access was controlled by defining
gcdREGISTER_ACCESS_FROM_USER, enabled by default.

This changed in v6.4.0 where gcdREGISTER_ACCESS_FROM_USER is replaced by
gcdREGISTER_READ_FROM_USER and gcdREGISTER_WRITE_FROM_USER,
both disabled by default.

For the moment, gputop uses userspace register access ioctl to
read the GPU performance counters.

Signed-off-by: Adrian Negreanu <adrian.negreanu@nxp.com>
drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx.config

index 56fcc26..532c532 100644 (file)
@@ -17,7 +17,7 @@ ifneq ($(CONFIG_ARCH_FSL_IMX8QM),)
 EXTRA_CFLAGS += -DIMX8_SCU_CONTROL=1 -DIMX8_PHYS_BASE=0x80000000 -DIMX8_PHYS_SIZE=0x80000000
 endif
 
-EXTRA_CFLAGS += -DLINUX_CMA_FSL=1
+EXTRA_CFLAGS += -DLINUX_CMA_FSL=1 -DgcdREGISTER_READ_FROM_USER=1
 ALLOCATOR_ARRAY_H_LOCATION := $(OS_KERNEL_DIR)/allocator/freescale
 CUSTOMER_ALLOCATOR_OBJS := $(ALLOCATOR_ARRAY_H_LOCATION)/gc_hal_kernel_allocator_cma.o