Files
makronix/mobile/kernel/patches/0012-drm-msm-fbdev-mark-the-framebuffer-as-system-memory.patch
T
lotherkandClaude Opus 5.5 3b2cbc44f1 mobile: kernel on kernel.org v7.0.14, named 7.0.14-makronix-unstable
The phone kernel no longer builds from the qualcomm-sm8150 fork: the base
is kernel.org stable v7.0.14 (refs/linux/7.0.14, shallow), and what hotdogb
needs from the fork is carried as kernel/patches 0001-0004 (sm8150/PMIC
DTSI nodes, the OnePlus DTS, the SMB5 charger, of/property), unchanged from
its 8e126dbc4; 0005-0025 are our series (the old 0005 is in v7.0.14 by a
stable backport).

The name comes from Makronix's versioning, the files the NetBSD side reads
(src/sys/conf/makronix-release, makronix-codename): kernel_make in
tools/lib.sh gives uname -r 7.0.14-makronix-unstable (x.99.y is -current)
and /proc/version makronix@camouflage, for the build and for every
modules_install.  make update-root defaults to /system/<Makronix version>.

Measured: slot a boots 7.0.14-makronix-unstable with /system/0.99.9,
marked successful; WLAN, Bluetooth, battery and the display work
(build/logs/flash-0.99.9-2026-11-11.log).  docs/NEXT.md 9c has what
7.3.4 showed (ftrace hangs it before the console; without ftrace a hard
freeze later).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 14:29:14 +00:00

27 lines
1.1 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: lotherk <konrad@lother.io>
Date: Sun, 8 Nov 2026 12:52:06 +0000
Subject: [PATCH 12/25] drm/msm: fbdev: mark the framebuffer as system memory
msm_fbdev draws with the fbdev sys_* helpers into a kernel mapping of a GEM
object, but never set FBINFO_VIRTFB, so the first blit warns
"sys_imageblit: framebuffer is not in virtual address space". It shows
when fbcon is already bound (to simplefb) as msm's fbdev comes up. Set the
flag, as drm_fbdev_dma does for the same kind of memory.
---
drivers/gpu/drm/msm/msm_fbdev.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/msm/msm_fbdev.c b/drivers/gpu/drm/msm/msm_fbdev.c
index fd19995b1..8cab9f47a 100644
--- a/drivers/gpu/drm/msm/msm_fbdev.c
+++ b/drivers/gpu/drm/msm/msm_fbdev.c
@@ -140,6 +140,7 @@ int msm_fbdev_driver_fbdev_probe(struct drm_fb_helper *helper,
ret = PTR_ERR(fbi->screen_buffer);
goto fail;
}
+ fbi->flags |= FBINFO_VIRTFB; /* a kernel mapping of system memory */
fbi->screen_size = bo->size;
fbi->fix.smem_start = paddr;
fbi->fix.smem_len = bo->size;