Re: [PATCH] drm/amd/pp: Fix truncated clock value when set watermark

2018-11-13 Thread Wentland, Harry
On 2018-11-12 10:32 p.m., Rex Zhu wrote: > the clk value should be tranferred to MHz first and > then transfer to uint16. otherwise, the clock value > will be truncated. > > Reported-by: Hersen Wu > Signed-off-by: Rex Zhu Reviewed-by: Harry Wentland Harry > --- > drivers/gpu/drm/amd/powerpl

Re: [PATCH] drm/amd/pp: Fix truncated clock value when set watermark

2018-11-12 Thread Alex Deucher
On Mon, Nov 12, 2018 at 10:34 PM Rex Zhu wrote: > > the clk value should be tranferred to MHz first and > then transfer to uint16. otherwise, the clock value > will be truncated. > > Reported-by: Hersen Wu > Signed-off-by: Rex Zhu Reviewed-by: Alex Deucher > --- > drivers/gpu/drm/amd/powerpl

[PATCH] drm/amd/pp: Fix truncated clock value when set watermark

2018-11-12 Thread Rex Zhu
the clk value should be tranferred to MHz first and then transfer to uint16. otherwise, the clock value will be truncated. Reported-by: Hersen Wu Signed-off-by: Rex Zhu --- drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c | 32 1 file changed, 16 insertions(+), 16 delet