On 26.04.2024 8:34 PM, Connor Abbott wrote: > Expose the value of the software fuse to userspace. > > Signed-off-by: Connor Abbott <cwabbott0@xxxxxxxxx> > --- > drivers/gpu/drm/msm/adreno/adreno_gpu.c | 3 +++ > include/uapi/drm/msm_drm.h | 1 + > 2 files changed, 4 insertions(+) > > diff --git a/drivers/gpu/drm/msm/adreno/adreno_gpu.c b/drivers/gpu/drm/msm/adreno/adreno_gpu.c > index 074fb498706f..99ad651857b2 100644 > --- a/drivers/gpu/drm/msm/adreno/adreno_gpu.c > +++ b/drivers/gpu/drm/msm/adreno/adreno_gpu.c > @@ -376,6 +376,9 @@ int adreno_get_param(struct msm_gpu *gpu, struct msm_file_private *ctx, > case MSM_PARAM_HIGHEST_BANK_BIT: > *value = adreno_gpu->ubwc_config.highest_bank_bit; > return 0; > + case MSM_PARAM_RAYTRACING: > + *value = adreno_gpu->has_ray_tracing; > + return 0; I'd personally go with MSM_PARAM_FEATURES as a u64 bitmap, but it's not me that'll have to deal with this on the userland side, so: Reviewed-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxx> Konrad