[PATCH 5/5] fbdev: tdfxfb: Program the initial video mode
From: Daniel Palmer
Date: Thu Jul 30 2026 - 14:55:05 EST
If the card does not get bound to by fbcon set_par() never happens
and the initial video mode is not setup and the display detects
no signal.
Program the video mode and also clear the framebuffer memory so
random garbage isn't displayed.
Signed-off-by: Daniel Palmer <daniel@xxxxxxxx>
---
drivers/video/fbdev/tdfxfb.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/video/fbdev/tdfxfb.c b/drivers/video/fbdev/tdfxfb.c
index 9d55efd2c934..d03cb47b34a5 100644
--- a/drivers/video/fbdev/tdfxfb.c
+++ b/drivers/video/fbdev/tdfxfb.c
@@ -1692,6 +1692,13 @@ static int tdfxfb_probe(struct pci_dev *pdev, const struct pci_device_id *id)
* Our driver data
*/
pci_set_drvdata(pdev, info);
+
+ /* Program a video mode so the display detects a signal */
+ tdfxfb_set_par(info);
+
+ /* Don't scare the user with random garbage on their display */
+ memset_io(info->screen_base, 0, info->fix.smem_len);
+
return 0;
out_err_iobase:
--
2.53.0