[Intel-xe] [PATCH 1/4] Revert "drm/i915/display: use intel_bo_to_drm_bo in intel_fbdev"

Jouni Högander jouni.hogander at intel.com
Fri Dec 1 15:39:20 UTC 2023


This reverts commit 866520a50df6c22a2af9254e39770517cb874495.

We are about to backport same patch from upstream. Revert local
version.

Signed-off-by: Jouni Högander <jouni.hogander at intel.com>
---
 drivers/gpu/drm/i915/display/intel_fbdev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_fbdev.c b/drivers/gpu/drm/i915/display/intel_fbdev.c
index 05f614f992d6..252f254345a2 100644
--- a/drivers/gpu/drm/i915/display/intel_fbdev.c
+++ b/drivers/gpu/drm/i915/display/intel_fbdev.c
@@ -332,12 +332,12 @@ static bool intel_fbdev_init_bios(struct drm_device *dev,
 			continue;
 		}
 
-		if (intel_bo_to_drm_bo(obj)->size > max_size) {
+		if (obj->base.size > max_size) {
 			drm_dbg_kms(&i915->drm,
 				    "found possible fb from [PLANE:%d:%s]\n",
 				    plane->base.base.id, plane->base.name);
 			fb = to_intel_framebuffer(plane_state->uapi.fb);
-			max_size = intel_bo_to_drm_bo(obj)->size;
+			max_size = obj->base.size;
 		}
 	}
 
-- 
2.34.1



More information about the Intel-xe mailing list