Re: [PATCH] amd/display: set backlight only if required

2022-03-13 Thread S, Shirish
On 3/11/2022 9:11 PM, Harry Wentland wrote: On 3/11/22 10:33, Shirish S wrote: [Why] comparing pwm bl values (coverted) with user brightness(converted) levels in commit_tail leads to continuous setting of backlight via dmub as they don't to match. Why do the values not match? Here is a sam

RE: [PATCH] drm/amdgpu: fixed the warnings reported by kernel test robot

2022-03-13 Thread Zhou1, Tao
[AMD Official Use Only] Reviewed-by: Tao Zhou > -Original Message- > From: Chai, Thomas > Sent: Monday, March 14, 2022 1:52 PM > To: amd-gfx@lists.freedesktop.org > Cc: Chai, Thomas ; Zhang, Hawking > ; Zhou1, Tao ; Clements, > John ; Chai, Thomas > Subject: [PATCH] drm/amdgpu: fixed t

[PATCH] drm/amdgpu: fixed the warnings reported by kernel test robot

2022-03-13 Thread yipechai
The reported warnings are as follows: 1.warning:no-previous-prototype-for-amdgpu_hdp_ras_fini. 2.warning:no-previous-prototype-for-amdgpu_mmhub_ras_fini. Amdgpu_hdp_ras_fini and amdgpu_mmhub_ras_fini are unused in the code, they are the only functions in amdgpu_hdp.c and amdgpu_mmhub.c. After

[PATCH] drm/amdgpu: reject secure submission on rings which don't support it

2022-03-13 Thread Lang Yu
Only ring GFX, SDMA and VCN_DEC support secure submission at the moment. Signed-off-by: Lang Yu --- drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 4 ++-- drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h | 8 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH v3] drm/amdgpu: add workarounds for VCN TMZ issue on CHIP_RAVEN

2022-03-13 Thread Lang Yu
It is a hardware issue that VCN can't handle a GTT backing stored TMZ buffer on CHIP_RAVEN series ASIC. Move such a TMZ buffer to VRAM domain before command submission as a wrokaround. v2: - Use patch_cs_in_place callback. v3: - Bail out early if unsecure IBs. Suggested-by: Christian König S