drm/i915: Discard large BIOS framebuffers causing display corruption.
Subsystems (3)
I haven't observed "display corruption", but on my MacBookPro16,1 the bottom and right edges of the TTY are not on the screen, so a few lines of text cannot be seen.
This also occurs on the internal displays of all (as far as I know) other 2018-2020 Intel Macbooks when using the Intel GPU (The 15" and 16" ones also have an AMDGPU, but this issue occurs when they have the Intel GPU set as the boot gpu).
There's a similar patch that hasn't been sent upstream that people with these Macbooks have been using:
https://github.com/aunali1/linux-mbp-arch/blob/master/7001-drm-i915-fbdev-Discard-BIOS-framebuffers-exceeding-h.patch
--
Thanks,
Orlando
LGTM
—
Aun-Ali Zaidi
Quoted 4 lines · Ashish Arora
I believe I forgot to add Aditya to the conversation. So, I am sending the patch as an attachment for those who want to test :)<0001-drm.patch>
May I add your reviewed-by Aun-Ali Zaidi ?
Quoted 12 lines · Aun-Ali Zaidi
LGTM
—
Aun-Ali ZaidiQuoted 4 lines · Ashish Arora
I believe I forgot to add Aditya to the conversation. So, I am sending the patch as an attachment for those who want to test :)<0001-drm.patch>
Hi Orlando
Thanks for informing that the Macs are also affected :). I've sne the v2 of the patch. You may try out if you want to.
Get Outlook for Android<https://aka.ms/AAb9ysg>
________________________________
From: Orlando Chamberlain <[email protected]>
Sent: Saturday, January 8, 2022 10:41:50 AM
To: [email protected] <[email protected]>
Cc: [email protected] <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>; Aun-Ali Zaidi <[email protected]>
Subject: Re: [PATCH] drm/i915: Discard large BIOS framebuffers causing display corruption.
I haven't observed "display corruption", but on my MacBookPro16,1 the bottom and right edges of the TTY are not on the screen, so a few lines of text cannot be seen.
This also occurs on the internal displays of all (as far as I know) other 2018-2020 Intel Macbooks when using the Intel GPU (The 15" and 16" ones also have an AMDGPU, but this issue occurs when they have the Intel GPU set as the boot gpu).
There's a similar patch that hasn't been sent upstream that people with these Macbooks have been using:
https://github.com/aunali1/linux-mbp-arch/blob/master/7001-drm-i915-fbdev-Discard-BIOS-framebuffers-exceeding-h.patch
--
Thanks,
Orlando
I believe I forgot to add Aditya to the conversation. So, I am sending the patch as an attachment for those who want to test :)
From: Ashish Arora <[email protected]>
On certain 4k panels, the BIOS framebuffer is larger than what panel requires causing display corruption. Introduce a check for the same.
--- drivers/gpu/drm/i915/display/intel_fbdev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/display/intel_fbdev.c +3 -3
@@ -194,10 +194,10 @@ static int intelfb_create(struct drm_fb_helper *helper,int ret;if (intel_fb && - (sizes->fb_width > intel_fb->base.width || - sizes->fb_height > intel_fb->base.height)) { + (sizes->fb_width != intel_fb->base.width || + sizes->fb_height != intel_fb->base.height)) {drm_dbg_kms (&dev_priv->drm, -"BIOS fb too small (%dx%d), we require (%dx%d)," +"BIOS fb not valid (%dx%d), we require (%dx%d)," " releasing it\n" , intel_fb->base.width, intel_fb->base.height, sizes->fb_width, sizes->fb_height);
Signature · 1 line
2.25.1