Re: [PATCH] drm: refuse ADDFB2 ioctl for broken bigendian drivers

2018-09-06 Thread Daniel Vetter
On Thu, Sep 06, 2018 at 09:28:50AM +0200, Gerd Hoffmann wrote: > Drivers must set the quirk_addfb_prefer_host_byte_order quirk to make > the drm_mode_addfb() compat code work correctly on bigendian machines. > > If they don't they interpret pixel_format values incorrectly for bug > compatibility,

[PATCH] drm: refuse ADDFB2 ioctl for broken bigendian drivers

2018-09-06 Thread Gerd Hoffmann
Drivers must set the quirk_addfb_prefer_host_byte_order quirk to make the drm_mode_addfb() compat code work correctly on bigendian machines. If they don't they interpret pixel_format values incorrectly for bug compatibility, which in turn implies the ADDFB2 ioctl does not work correctly then. So