From: Thomas Zimmermann <tzimmermann@suse.de>
To: Peter Schneider <pschneider1968@googlemail.com>,
regressions@lists.linux.dev, LKML <linux-kernel@vger.kernel.org>
Cc: dri-devel@lists.freedesktop.org, stable@vger.kernel.org,
jfalempe@redhat.com, airlied@redhat.com, dianders@chromium.org,
nbowler@draconx.ca,
Linus Torvalds <torvalds@linux-foundation.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Thorsten Leemhuis <regressions@leemhuis.info>
Subject: Re: [REGRESSION][BISECTED] Screen goes blank with ASpeed AST2300 in 6.18-rc2
Date: Thu, 23 Oct 2025 14:46:50 +0200 [thread overview]
Message-ID: <329a9f97-dd66-49c2-bc42-470566d01539@suse.de> (raw)
In-Reply-To: <3ca10b2e-fb9c-4495-9219-5e8537314751@googlemail.com>
[-- Attachment #1: Type: text/plain, Size: 2296 bytes --]
Hi
Am 22.10.25 um 13:23 schrieb Peter Schneider:
> Am 22.10.2025 um 12:20 schrieb Thomas Zimmermann:
>> Hi
>>
>> Am 22.10.25 um 11:16 schrieb Peter Schneider:
>>> Am 22.10.2025 um 11:11 schrieb Thomas Zimmermann:
>>>> Hi
>>>>
>>>> Am 22.10.25 um 10:08 schrieb Peter Schneider:
>>>>>
>>>>> Your patch applied cleanly against 6.18-rc2 and the kernel built
>>>>> fine, but unfortunately it did not solve the issue: my console
>>>>> screen stays blank after booting. This is regardless whether I do
>>>>> a soft reboot, press the reset button or power cycle and do a cold
>>>>> boot. They are all the same.
>>>>
>>>> Just to be sure: you do see output at the early boot stages (BIOS,
>>>> boot loader). It's at some later point during boot, the driver
>>>> loads and the display blanks out?
>>>
>>> Yes, that's correct.
>>>
>>>> There's another patch attached. does this make a difference?
>>>
>>> Do I have to apply that against base 6.18-rc2 or against 6.18-rc2 +
>>> your previous patch?
>>
>> Base 6.18-rc2. All the patches are against this.
>
> So with this new patch against 6.18-rc2, I first got this build error:
>
> CC [M] drivers/gpu/drm/ast/ast_mode.o
> drivers/gpu/drm/ast/ast_mode.c: In function
> ‘ast_crtc_helper_atomic_disable’:
> drivers/gpu/drm/ast/ast_mode.c:857:12: error: unused variable
> ‘vgacr17’ [-Werror=unused-variable]
> 857 | u8 vgacr17 = 0xff;
> | ^~~~~~~
> cc1: all warnings being treated as errors
>
>
> because I always do my kernel builds with CONFIG_WERROR=y. So then I
> commented out the now superfluous declaration in line 857 and the
> build succeeded. However, unfortunately the issue still persists. The
> screen still gets blanked on reboot (as clarified before, after
> BIOS/POST messages, Grub boot menu, initial boot messages).
I've been able to reproduce the problem with an AST2300 test system. The
attached patch fixes the problem for me. Can you please test and report
on the results?
Best regards
Thomas
>
> Beste Grüße,
> Peter Schneider
>
--
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstrasse 146, 90461 Nuernberg, Germany
GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
HRB 36809 (AG Nuernberg)
[-- Attachment #2: 0001-ast-clear-preserved-bits-from-output-value.patch --]
[-- Type: text/x-patch, Size: 1198 bytes --]
From b9a90d9ef266d5f9d3aeb970ae35e10b716fc466 Mon Sep 17 00:00:00 2001
From: Thomas Zimmermann <tzimmermann@suse.de>
Date: Thu, 23 Oct 2025 14:30:29 +0200
Subject: [PATCH] ast: clear preserved bits from output value
---
drivers/gpu/drm/ast/ast_drv.h | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/ast/ast_drv.h b/drivers/gpu/drm/ast/ast_drv.h
index 7be36a358e74..602bff7f98d9 100644
--- a/drivers/gpu/drm/ast/ast_drv.h
+++ b/drivers/gpu/drm/ast/ast_drv.h
@@ -298,13 +298,14 @@ static inline void __ast_write8_i(void __iomem *addr, u32 reg, u8 index, u8 val)
__ast_write8(addr, reg + 1, val);
}
-static inline void __ast_write8_i_masked(void __iomem *addr, u32 reg, u8 index, u8 read_mask,
+static inline void __ast_write8_i_masked(void __iomem *addr, u32 reg, u8 index, u8 preserve_mask,
u8 val)
{
- u8 tmp = __ast_read8_i_masked(addr, reg, index, read_mask);
+ u8 tmp = __ast_read8_i_masked(addr, reg, index, preserve_mask);
- tmp |= val;
- __ast_write8_i(addr, reg, index, tmp);
+ val &= ~preserve_mask;
+
+ __ast_write8_i(addr, reg, index, tmp | val);
}
static inline u32 ast_read32(struct ast_device *ast, u32 reg)
--
2.51.0
next prev parent reply other threads:[~2025-10-23 12:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20251014084743.18242-1-tzimmermann@suse.de>
2025-10-22 3:27 ` [REGRESSION][BISECTED] Screen goes blank with ASpeed AST2300 in 6.18-rc2 (was: Re: [PATCH v2] drm/ast: Blank with VGACR17 sync enable, always clear VGACRB6 sync off) Peter Schneider
2025-10-22 6:51 ` [REGRESSION][BISECTED] Screen goes blank with ASpeed AST2300 in 6.18-rc2 Thomas Zimmermann
2025-10-22 8:08 ` Peter Schneider
2025-10-22 9:11 ` Thomas Zimmermann
2025-10-22 9:16 ` Peter Schneider
2025-10-22 10:20 ` Thomas Zimmermann
2025-10-22 11:23 ` Peter Schneider
2025-10-23 12:46 ` Thomas Zimmermann [this message]
2025-10-23 12:50 ` Thomas Zimmermann
2025-10-23 19:11 ` Peter Schneider
2025-10-24 5:34 ` Peter Schneider
2025-10-24 6:15 ` Thomas Zimmermann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=329a9f97-dd66-49c2-bc42-470566d01539@suse.de \
--to=tzimmermann@suse.de \
--cc=airlied@redhat.com \
--cc=dianders@chromium.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=gregkh@linuxfoundation.org \
--cc=jfalempe@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=nbowler@draconx.ca \
--cc=pschneider1968@googlemail.com \
--cc=regressions@leemhuis.info \
--cc=regressions@lists.linux.dev \
--cc=stable@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®