Re: [PATCH v3] firmware/sysfb: Fix VESA format selection

2023-05-11 Thread Thomas Zimmermann
Hi Am 10.05.23 um 19:25 schrieb Pierre Asselin: Thomas Zimmerman writes: I found this casting mess even more unreadable. I went back to v2, fixed the style issues and committed the patch as v4 (still under your name). https://cgit.freedesktop.org/drm/drm-tip/commit?id=1b617bc93178912fa36f87a

Re: [PATCH v3] firmware/sysfb: Fix VESA format selection

2023-05-10 Thread Pierre Asselin
Thomas Zimmerman writes: > > I found this casting mess even more unreadable. I went back to v2, fixed > the style issues and committed the patch as v4 (still under your name). > > https://cgit.freedesktop.org/drm/drm-tip/commit?id=1b617bc93178912fa36f87a957c15d1f1708c299 Will this patch make it i

Re: [PATCH v3] firmware/sysfb: Fix VESA format selection

2023-04-21 Thread Pierre Asselin
Thomas Zimmerman writes: > > Am 21.04.23 um 13:32 schrieb Linux regression tracking (Thorsten > Leemhuis): >> >> Pierre, Tomas, Javier, et. al: how many "legacy BIOSes" do we suspect >> are affected by this? So far, two: 1) my Gateway laptop (Intel(R) Core(TM) Duo CPU, Phoenix BIOS 83.08 Revisi

Re: [PATCH v3] firmware/sysfb: Fix VESA format selection

2023-04-21 Thread Thomas Zimmermann
Hi Am 20.04.23 um 17:57 schrieb Pierre Asselin: Some legacy BIOSes report no reserved bits in their 32-bit rgb mode, breaking the calculation of bits_per_pixel in commit f35cd3fa7729 ("firmware/sysfb: Fix EFI/VESA format selection"). However they report lfb_depth correctly for those modes. Kee

Re: [PATCH v3] firmware/sysfb: Fix VESA format selection

2023-04-21 Thread Thomas Zimmermann
Hi Am 21.04.23 um 13:32 schrieb Linux regression tracking (Thorsten Leemhuis): On 20.04.23 17:57, Pierre Asselin wrote: Some legacy BIOSes report no reserved bits in their 32-bit rgb mode, breaking the calculation of bits_per_pixel in commit f35cd3fa7729 ("firmware/sysfb: Fix EFI/VESA format se

Re: [PATCH v3] firmware/sysfb: Fix VESA format selection

2023-04-21 Thread Linux regression tracking (Thorsten Leemhuis)
On 20.04.23 17:57, Pierre Asselin wrote: > Some legacy BIOSes report no reserved bits in their 32-bit rgb mode, > breaking the calculation of bits_per_pixel in commit f35cd3fa7729 > ("firmware/sysfb: Fix EFI/VESA format selection"). However they report > lfb_depth correctly for those modes. Keep

Re: [PATCH v3] firmware/sysfb: Fix VESA format selection

2023-04-20 Thread Pierre Asselin
I went back to nested max3() after all as Thomas asked. My first cut had casts in the innermost max3() and the code looked truly awful. I decided that two casts are tolerable. I added a comment to explain the casts. Against clamp_t(u8,lfb_depth,1,32): the clamp_t() macro does no typechecking;