RE: [RFC] drm/i915/display: Update vtotal math to address 32b build

2024-06-11 Thread Golani, Mitulkumar Ajitkumar
Hi @De Marchi, Lucas > -Original Message- > From: De Marchi, Lucas > Sent: Wednesday, June 12, 2024 10:02 AM > To: Golani, Mitulkumar Ajitkumar > Cc: intel...@lists.freedesktop.org; intel-gfx@lists.freedesktop.org > Subject: Re: [RFC] drm/i915/display: Update vtotal m

Re: [RFC] drm/i915/display: Update vtotal math to address 32b build

2024-06-11 Thread Lucas De Marchi
On Wed, Jun 12, 2024 at 12:02:08AM GMT, Mitul Golani wrote: Fix few divisions which may not work on 32b builds. Use DIV_ROUND_UP, with that expecting deviate params from +/- 1 accuracy in value. Fixes: 1676ecd303ac ("drm/i915: Compute CMRR and calculate vtotal") Signed-off-by: Mitul Golani ---

[RFC] drm/i915/display: Update vtotal math to address 32b build

2024-06-11 Thread Mitul Golani
Fix few divisions which may not work on 32b builds. Use DIV_ROUND_UP, with that expecting deviate params from +/- 1 accuracy in value. Fixes: 1676ecd303ac ("drm/i915: Compute CMRR and calculate vtotal") Signed-off-by: Mitul Golani --- drivers/gpu/drm/i915/display/intel_vrr.c | 10 ++ 1