Re: [PATCH] drm/amd/display: 64-bit division on 32-bit arch issue

2021-01-22 Thread Lakha, Bhawanpreet
iday, January 22, 2021 5:04 PM To: Yu, Lang Cc: Deucher, Alexander ; Lakha, Bhawanpreet ; amd-gfx@lists.freedesktop.org Subject: Re: [PATCH] drm/amd/display: 64-bit division on 32-bit arch issue On Fri, Jan 22, 2021 at 05:00:59PM +0800, Yu, Lang wrote: > Replace "/" with div_u64 for 32

RE: [PATCH] drm/amd/display: 64-bit division on 32-bit arch issue

2021-01-22 Thread Yu, Lang
ux/math64.h Regards, Lang -Original Message- From: Chen, Guchun Sent: Friday, January 22, 2021 5:32 PM To: Huang, Ray ; Yu, Lang Cc: Deucher, Alexander ; Lakha, Bhawanpreet ; amd-gfx@lists.freedesktop.org Subject: RE: [PATCH] drm/amd/display: 64-bit division on 32-bit arch issue [AMD P

RE: [PATCH] drm/amd/display: 64-bit division on 32-bit arch issue

2021-01-22 Thread Chen, Guchun
ng Cc: Deucher, Alexander ; Lakha, Bhawanpreet ; amd-gfx@lists.freedesktop.org Subject: Re: [PATCH] drm/amd/display: 64-bit division on 32-bit arch issue On Fri, Jan 22, 2021 at 05:00:59PM +0800, Yu, Lang wrote: > Replace "/" with div_u64 for 32-bit arch. On 32-bit arch, the use o

Re: [PATCH] drm/amd/display: 64-bit division on 32-bit arch issue

2021-01-22 Thread Huang Rui
On Fri, Jan 22, 2021 at 05:00:59PM +0800, Yu, Lang wrote: > Replace "/" with div_u64 for 32-bit arch. On 32-bit arch, > the use of "/" for 64-bit division will cause build error, > i.e. "__udivdi3/__divdi3 undefined!". > > Fixes: 27755cdf83f1 > drm/amd/display: Update dcn30_apply_idle_power_optimi