Re: [PATCH] Optimized division operation to shift operation

2020-04-15 Thread Deucher, Alexander
David Airlie ; Kuehling, Felix ; LKML ; amd-gfx list ; ker...@vivo.com ; Huang, Ray ; Russell, Kent ; Deucher, Alexander ; Sam Ravnborg ; Yuan, Xiaojie Subject: Re: [PATCH] Optimized division operation to shift operation Am 15.04.20 um 09:41 schrieb Jani Nikula: > On Tue, 14 Apr 2020, Alex

RE: [PATCH] Optimized division operation to shift operation

2020-04-15 Thread David Laight
From: Christian König > Sent: 15 April 2020 08:57 > Am 15.04.20 um 09:41 schrieb Jani Nikula: > > On Tue, 14 Apr 2020, Alex Deucher wrote: > >> On Tue, Apr 14, 2020 at 9:05 AM Bernard Zhao wrote: > >>> On some processors, the / operate will call the compiler`s div lib, > >>> which is low efficien

Re: [PATCH] Optimized division operation to shift operation

2020-04-15 Thread Daniel Vetter
On Wed, Apr 15, 2020 at 9:57 AM Christian König wrote: > > Am 15.04.20 um 09:41 schrieb Jani Nikula: > > On Tue, 14 Apr 2020, Alex Deucher wrote: > >> On Tue, Apr 14, 2020 at 9:05 AM Bernard Zhao wrote: > >>> On some processors, the / operate will call the compiler`s div lib, > >>> which is low

Re: [PATCH] Optimized division operation to shift operation

2020-04-15 Thread Christian König
Am 15.04.20 um 09:41 schrieb Jani Nikula: On Tue, 14 Apr 2020, Alex Deucher wrote: On Tue, Apr 14, 2020 at 9:05 AM Bernard Zhao wrote: On some processors, the / operate will call the compiler`s div lib, which is low efficient, We can replace the / operation with shift, so that we can replace

Re: [PATCH] Optimized division operation to shift operation

2020-04-15 Thread Jani Nikula
On Tue, 14 Apr 2020, Alex Deucher wrote: > On Tue, Apr 14, 2020 at 9:05 AM Bernard Zhao wrote: >> >> On some processors, the / operate will call the compiler`s div lib, >> which is low efficient, We can replace the / operation with shift, >> so that we can replace the call of the division library

Re: [PATCH] Optimized division operation to shift operation

2020-04-14 Thread Alex Deucher
On Tue, Apr 14, 2020 at 9:05 AM Bernard Zhao wrote: > > On some processors, the / operate will call the compiler`s div lib, > which is low efficient, We can replace the / operation with shift, > so that we can replace the call of the division library with one > shift assembly instruction. > > Sign

[PATCH] Optimized division operation to shift operation

2020-04-14 Thread Bernard Zhao
On some processors, the / operate will call the compiler`s div lib, which is low efficient, We can replace the / operation with shift, so that we can replace the call of the division library with one shift assembly instruction. Signed-off-by: Bernard Zhao --- drivers/gpu/drm/amd/amdgpu/gmc_v6_0.