/openbmc/linux/drivers/gpu/drm/panfrost/ |
H A D | panfrost_gpu.c | 25 u32 state = gpu_read(pfdev, GPU_INT_STAT); in panfrost_gpu_irq_handler() 26 u32 fault_status = gpu_read(pfdev, GPU_FAULT_STATUS); in panfrost_gpu_irq_handler() 32 u64 address = (u64) gpu_read(pfdev, GPU_FAULT_ADDRESS_HI) << 32; in panfrost_gpu_irq_handler() 33 address |= gpu_read(pfdev, GPU_FAULT_ADDRESS_LO); in panfrost_gpu_irq_handler() 126 quirks = gpu_read(pfdev, GPU_TILER_CONFIG); in panfrost_gpu_init_quirks() 231 pfdev->features.l2_features = gpu_read(pfdev, GPU_L2_FEATURES); in panfrost_gpu_init_features() 245 pfdev->features.as_present = gpu_read(pfdev, GPU_AS_PRESENT); in panfrost_gpu_init_features() 247 pfdev->features.js_present = gpu_read(pfdev, GPU_JS_PRESENT); in panfrost_gpu_init_features() 258 pfdev->features.l2_present = gpu_read(pfdev, GPU_L2_PRESENT_LO); in panfrost_gpu_init_features() 267 gpu_id = gpu_read(pfdev, GPU_ID); in panfrost_gpu_init_features() [all …]
|
H A D | panfrost_dump.c | 97 dumpreg->value = gpu_read(pfdev, reg); in panfrost_core_dump_registers()
|
H A D | panfrost_regs.h | 330 #define gpu_read(dev, reg) readl(dev->iomem + reg) macro
|
/openbmc/linux/drivers/gpu/drm/msm/adreno/ |
H A D | a5xx_gpu.c | 1026 gpu_read(gpu, REG_A5XX_RBBM_SW_RESET_CMD); in a5xx_recover() 1094 gpu_read(gpu, REG_A5XX_RBBM_STATUS), in a5xx_idle() 1096 gpu_read(gpu, REG_A5XX_CP_RB_RPTR), in a5xx_idle() 1097 gpu_read(gpu, REG_A5XX_CP_RB_WPTR)); in a5xx_idle() 1145 gpu_read(gpu, REG_A5XX_CP_HW_FAULT)); in a5xx_cp_err_irq() 1245 gpu_read(gpu, REG_A5XX_RBBM_STATUS), in a5xx_fault_detect_irq() 1246 gpu_read(gpu, REG_A5XX_CP_RB_RPTR), in a5xx_fault_detect_irq() 1247 gpu_read(gpu, REG_A5XX_CP_RB_WPTR), in a5xx_fault_detect_irq() 1249 gpu_read(gpu, REG_A5XX_CP_IB1_BUFSZ), in a5xx_fault_detect_irq() 1251 gpu_read(gpu, REG_A5XX_CP_IB2_BUFSZ)); in a5xx_fault_detect_irq() [all …]
|
H A D | a2xx_gpu.c | 274 gpu_read(gpu, REG_AXXX_CP_SCRATCH_REG0 + i)); in a2xx_recover() 282 gpu_read(gpu, REG_A2XX_RBBM_SOFT_RESET); in a2xx_recover() 306 if (spin_until(!(gpu_read(gpu, REG_A2XX_RBBM_STATUS) & in a2xx_idle() 321 mstatus = gpu_read(gpu, REG_A2XX_MASTER_INT_SIGNAL); in a2xx_irq() 324 status = gpu_read(gpu, REG_A2XX_MH_INTERRUPT_STATUS); in a2xx_irq() 328 gpu_read(gpu, REG_A2XX_MH_MMU_PAGE_FAULT)); in a2xx_irq() 334 status = gpu_read(gpu, REG_AXXX_CP_INT_STATUS); in a2xx_irq() 344 status = gpu_read(gpu, REG_A2XX_RBBM_INT_STATUS); in a2xx_irq() 451 gpu_read(gpu, REG_A2XX_RBBM_STATUS)); in a2xx_dump() 464 state->rbbm_status = gpu_read(gpu, REG_A2XX_RBBM_STATUS); in a2xx_gpu_state_get() [all …]
|
H A D | a6xx_gpu.c | 28 if (gpu_read(gpu, REG_A6XX_RBBM_STATUS) & in _a6xx_check_idle() 45 gpu_read(gpu, REG_A6XX_RBBM_STATUS), in a6xx_idle() 46 gpu_read(gpu, REG_A6XX_RBBM_INT_0_STATUS), in a6xx_idle() 47 gpu_read(gpu, REG_A6XX_CP_RB_RPTR), in a6xx_idle() 48 gpu_read(gpu, REG_A6XX_CP_RB_WPTR)); in a6xx_idle() 1486 gpu_read(gpu, REG_A6XX_RBBM_STATUS)); in a6xx_dump() 1645 gpu_read(gpu, REG_A6XX_CP_HW_FAULT)); in a6xx_cp_hw_err_irq() 1692 gpu_read(gpu, REG_A6XX_RBBM_STATUS), in a6xx_fault_detect_irq() 1693 gpu_read(gpu, REG_A6XX_CP_RB_RPTR), in a6xx_fault_detect_irq() 1694 gpu_read(gpu, REG_A6XX_CP_RB_WPTR), in a6xx_fault_detect_irq() [all …]
|
H A D | a5xx_debugfs.c | 23 gpu_read(gpu, REG_A5XX_CP_PFP_STAT_DATA)); in pfp_print() 36 gpu_read(gpu, REG_A5XX_CP_ME_STAT_DATA)); in me_print() 49 gpu_read(gpu, REG_A5XX_CP_MEQ_DBG_DATA)); in meq_print() 64 val[j] = gpu_read(gpu, REG_A5XX_CP_ROQ_DBG_DATA); in roq_print()
|
H A D | a4xx_gpu.c | 277 val = gpu_read(gpu, REG_A4XX_RBBM_CLOCK_DELAY_HLSQ); in a4xx_hw_init() 358 gpu_read(gpu, REG_AXXX_CP_SCRATCH_REG0 + i)); in a4xx_recover() 366 gpu_read(gpu, REG_A4XX_RBBM_SW_RESET_CMD); in a4xx_recover() 392 if (spin_until(!(gpu_read(gpu, REG_A4XX_RBBM_STATUS) & in a4xx_idle() 406 status = gpu_read(gpu, REG_A4XX_RBBM_INT_0_STATUS); in a4xx_irq() 410 uint32_t reg = gpu_read(gpu, REG_A4XX_CP_PROTECT_STATUS); in a4xx_irq() 560 state->rbbm_status = gpu_read(gpu, REG_A4XX_RBBM_STATUS); in a4xx_gpu_state_get() 568 gpu_read(gpu, REG_A4XX_RBBM_STATUS)); in a4xx_dump() 586 reg = gpu_read(gpu, REG_A4XX_RBBM_POWER_STATUS); in a4xx_pm_resume() 626 ring->memptrs->rptr = gpu_read(gpu, REG_A4XX_CP_RB_RPTR); in a4xx_get_rptr()
|
H A D | a3xx_gpu.c | 359 gpu_read(gpu, REG_AXXX_CP_SCRATCH_REG0 + i)); in a3xx_recover() 367 gpu_read(gpu, REG_A3XX_RBBM_SW_RESET_CMD); in a3xx_recover() 393 if (spin_until(!(gpu_read(gpu, REG_A3XX_RBBM_STATUS) & in a3xx_idle() 408 status = gpu_read(gpu, REG_A3XX_RBBM_INT_0_STATUS); in a3xx_irq() 462 gpu_read(gpu, REG_A3XX_RBBM_STATUS)); in a3xx_dump() 475 state->rbbm_status = gpu_read(gpu, REG_A3XX_RBBM_STATUS); in a3xx_gpu_state_get() 492 ring->memptrs->rptr = gpu_read(gpu, REG_AXXX_CP_RB_RPTR); in a3xx_get_rptr()
|
H A D | a6xx_gpu_state.c | 177 data[0] = gpu_read(gpu, REG_A6XX_DBGC_CFG_DBGBUS_TRACE_BUF2); in debugbus_read() 178 data[1] = gpu_read(gpu, REG_A6XX_DBGC_CFG_DBGBUS_TRACE_BUF1); in debugbus_read() 220 data[i] = gpu_read(gpu, REG_A6XX_VBIF_TEST_BUS_OUT); in vbif_debugbus_read() 250 clk = gpu_read(gpu, REG_A6XX_VBIF_CLKON); in a6xx_get_vbif_debugbus_block() 770 obj->data[index++] = gpu_read(gpu, in a6xx_get_ahb_gpu_registers() 948 return gpu_read(gpu, REG_A6XX_CP_ROQ_THRESHOLDS_2) >> 14; in a6xx_get_cp_roq_size() 972 obj->data[i] = gpu_read(gpu, indexed->data); in a6xx_get_indexed_regs() 994 val = gpu_read(gpu, REG_A6XX_CP_CHICKEN_DBG); in a6xx_get_indexed_registers() 1007 mempool_size = gpu_read(gpu, REG_A6XX_CP_MEM_POOL_SIZE); in a6xx_get_indexed_registers() 1033 bool stalled = !!(gpu_read(gpu, REG_A6XX_RBBM_STATUS3) & in a6xx_gpu_state_get()
|
H A D | a5xx_gpu.h | 145 if ((gpu_read(gpu, reg) & mask) == value) in spin_usecs()
|
H A D | a5xx_power.c | 267 u32 val = gpu_read(gpu, REG_A5XX_GPMU_GENERAL_1); in a5xx_gpmu_init()
|
H A D | a5xx_preempt.c | 193 status = gpu_read(gpu, REG_A5XX_CP_CONTEXT_SWITCH_CNTL); in a5xx_preempt_irq()
|
H A D | adreno_gpu.c | 708 state->registers[pos++] = gpu_read(gpu, addr); in adreno_gpu_state_get() 945 uint32_t val = gpu_read(gpu, addr); in adreno_dump()
|
/openbmc/linux/drivers/gpu/drm/etnaviv/ |
H A D | etnaviv_gpu.c | 189 specs[0] = gpu_read(gpu, VIVS_HI_CHIP_SPECS); in etnaviv_hw_specs() 190 specs[1] = gpu_read(gpu, VIVS_HI_CHIP_SPECS_2); in etnaviv_hw_specs() 546 idle = gpu_read(gpu, VIVS_HI_IDLE_STATE); in etnaviv_hw_reset() 573 idle = gpu_read(gpu, VIVS_HI_IDLE_STATE); in etnaviv_hw_reset() 926 dma_lo = gpu_read(gpu, VIVS_FE_DMA_LOW); in etnaviv_gpu_debugfs() 927 dma_hi = gpu_read(gpu, VIVS_FE_DMA_HIGH); in etnaviv_gpu_debugfs() 928 axi = gpu_read(gpu, VIVS_HI_AXI_STATUS); in etnaviv_gpu_debugfs() 929 idle = gpu_read(gpu, VIVS_HI_IDLE_STATE); in etnaviv_gpu_debugfs() 1317 val = gpu_read(gpu, VIVS_HI_CLOCK_CONTROL); in sync_point_perfmon_sample_pre() 1340 val = gpu_read(gpu, VIVS_HI_CLOCK_CONTROL); in sync_point_perfmon_sample_post() [all …]
|
H A D | etnaviv_perfmon.c | 46 return gpu_read(gpu, domain->profile_read); in perf_reg_read() 61 u32 clock = gpu_read(gpu, VIVS_HI_CLOCK_CONTROL); in pipe_perf_reg_read() 80 u32 clock = gpu_read(gpu, VIVS_HI_CLOCK_CONTROL); in pipe_reg_read() 86 value += gpu_read(gpu, signal->data); in pipe_reg_read() 106 return gpu_read(gpu, reg); in hi_total_cycle_read() 120 return gpu_read(gpu, reg); in hi_total_idle_cycle_read()
|
H A D | etnaviv_iommu_v2.c | 172 if (gpu_read(gpu, VIVS_MMUv2_CONTROL) & VIVS_MMUv2_CONTROL_ENABLE) in etnaviv_iommuv2_restore_nonsec() 196 if (gpu_read(gpu, VIVS_MMUv2_SEC_CONTROL) & VIVS_MMUv2_SEC_CONTROL_ENABLE) in etnaviv_iommuv2_restore_sec()
|
H A D | etnaviv_sched.c | 53 dma_addr = gpu_read(gpu, VIVS_FE_DMA_ADDRESS); in etnaviv_sched_timedout_job()
|
H A D | etnaviv_gpu.h | 171 static inline u32 gpu_read(struct etnaviv_gpu *gpu, u32 reg) in gpu_read() function
|
H A D | etnaviv_dump.c | 94 reg->value = cpu_to_le32(gpu_read(gpu, read_addr)); in etnaviv_core_dump_registers()
|
/openbmc/linux/drivers/gpu/drm/msm/ |
H A D | msm_gpu.h | 561 static inline u32 gpu_read(struct msm_gpu *gpu, u32 reg) in gpu_read() function
|
H A D | msm_gpu.c | 555 current_cntrs[i] = gpu_read(gpu, gpu->perfcntrs[i].sample_reg); in update_hw_cntrs()
|