You've already forked linux-t2-patches
mirror of
https://github.com/t2linux/linux-t2-patches.git
synced 2026-04-30 13:52:11 -07:00
34 lines
1.3 KiB
Diff
34 lines
1.3 KiB
Diff
From: Ashish Arora <ashisharora.linux@outlook.com>
|
|
Subject: Re: [PATCH] drm/i915: Discard large BIOS framebuffers causing display corruption.
|
|
Date: Sat, 08 Jan 2022 21:43:18 +1100
|
|
|
|
On certain 4k panels, the BIOS framebuffer is larger than what panel
|
|
requires causing display corruption. Introduce a check for the same.
|
|
|
|
Signed-off-by: Ashish Arora <ashisharora.linux@outlook.com>
|
|
---
|
|
drivers/gpu/drm/i915/display/intel_fbdev.c | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/drivers/gpu/drm/i915/display/intel_fbdev.c b/drivers/gpu/drm/i915/display/intel_fbdev.c
|
|
index 49a1ac4f549195..c8c10a6104c4e9 100644
|
|
--- a/drivers/gpu/drm/i915/display/intel_fbdev.c
|
|
+++ b/drivers/gpu/drm/i915/display/intel_fbdev.c
|
|
@@ -199,10 +199,10 @@ static int intelfb_create(struct drm_fb_helper *helper,
|
|
ifbdev->fb = NULL;
|
|
|
|
if (fb &&
|
|
- (sizes->fb_width > fb->base.width ||
|
|
- sizes->fb_height > fb->base.height)) {
|
|
+ (sizes->fb_width != fb->base.width ||
|
|
+ sizes->fb_height != 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",
|
|
fb->base.width, fb->base.height,
|
|
sizes->fb_width, sizes->fb_height);
|
|
--
|
|
1.8.3.1
|
|
|