Merge "drm/msm: Add API support for getting GPU hang timeout"
This commit is contained in:
commit
8bec3c2383
2 changed files with 11 additions and 7 deletions
|
@ -61,6 +61,9 @@ int adreno_get_param(struct msm_gpu *gpu, uint32_t param, uint64_t *value)
|
||||||
case MSM_PARAM_NR_RINGS:
|
case MSM_PARAM_NR_RINGS:
|
||||||
*value = gpu->nr_rings;
|
*value = gpu->nr_rings;
|
||||||
return 0;
|
return 0;
|
||||||
|
case MSM_PARAM_GPU_HANG_TIMEOUT:
|
||||||
|
*value = DRM_MSM_HANGCHECK_PERIOD;
|
||||||
|
return 0;
|
||||||
default:
|
default:
|
||||||
DBG("%s: invalid param: %u", gpu->name, param);
|
DBG("%s: invalid param: %u", gpu->name, param);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
|
@ -119,6 +119,7 @@ struct drm_msm_ext_panel_hdr_properties {
|
||||||
#define MSM_PARAM_TIMESTAMP 0x05
|
#define MSM_PARAM_TIMESTAMP 0x05
|
||||||
#define MSM_PARAM_GMEM_BASE 0x06
|
#define MSM_PARAM_GMEM_BASE 0x06
|
||||||
#define MSM_PARAM_NR_RINGS 0x07
|
#define MSM_PARAM_NR_RINGS 0x07
|
||||||
|
#define MSM_PARAM_GPU_HANG_TIMEOUT 0xa0 /* timeout in ms */
|
||||||
|
|
||||||
struct drm_msm_param {
|
struct drm_msm_param {
|
||||||
__u32 pipe; /* in, MSM_PIPE_x */
|
__u32 pipe; /* in, MSM_PIPE_x */
|
||||||
|
|
Loading…
Add table
Reference in a new issue