[Intel-gfx] drm_modes: signed integer overflow

Simon Ser contact at emersion.fr
Fri Oct 23 16:02:03 UTC 2020


On Friday, October 23, 2020 5:27 PM, Ville Syrjälä <ville.syrjala at linux.intel.com> wrote:

> These are two extreme cases:

Thanks!

> > I'm trying to get
> > a fix for my user-space 1, and I'm wondering if int32_t is enough
> > after dividing by mode->htotal.
> > CC Pekka, just FYI (I think Weston has similar code).
>
> What's with those 1000000LL constants? Are you storing
> clock in Hz units?

We're storing the vertical refresh rate in mHz (milli-Hertz).


More information about the Intel-gfx mailing list