diff mbox series

[08/18] video: kconfig: Set default FB size for Bochs

Message ID 20230723044041.1089804-9-bmeng@tinylab.org
State Accepted
Commit f91f0e74df814d5c96382d1d8ce29d63c8f0b343
Delegated to: Anatolij Gustschin
Headers show
Series video: bochs: Remove the x86 limitation | expand

Commit Message

Bin Meng July 23, 2023, 4:40 a.m. UTC
Set up a default frame buffer size of 8MiB for Bochs for non-x86
architecturs as PCI is normally not enumerated before relocation
on these architectures.

Signed-off-by: Bin Meng <bmeng@tinylab.org>
---

 drivers/video/Kconfig | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Comments

Simon Glass July 23, 2023, 10:58 p.m. UTC | #1
On Sat, 22 Jul 2023 at 22:41, Bin Meng <bmeng@tinylab.org> wrote:
>
> Set up a default frame buffer size of 8MiB for Bochs for non-x86
> architecturs as PCI is normally not enumerated before relocation
> on these architectures.
>
> Signed-off-by: Bin Meng <bmeng@tinylab.org>
> ---
>
>  drivers/video/Kconfig | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)

Reviewed-by: Simon Glass <sjg@chromium.org>
Anatolij Gustschin Aug. 1, 2023, 1:01 p.m. UTC | #2
On Sun, 23 Jul 2023 12:40:31 +0800
Bin Meng bmeng@tinylab.org wrote:

> Set up a default frame buffer size of 8MiB for Bochs for non-x86
> architecturs as PCI is normally not enumerated before relocation
> on these architectures.
> 
> Signed-off-by: Bin Meng <bmeng@tinylab.org>
> ---
> 
>  drivers/video/Kconfig | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)


applied to u-boot-video/master, thanks!

--
Anatolij
diff mbox series

Patch

diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig
index 3f6b7d71b8..e32ce13fb6 100644
--- a/drivers/video/Kconfig
+++ b/drivers/video/Kconfig
@@ -65,7 +65,8 @@  config BACKLIGHT
 config VIDEO_PCI_DEFAULT_FB_SIZE
 	hex "Default framebuffer size to use if no drivers request it"
 	default 0x1000000 if X86
-	default 0 if !X86
+	default 0x800000 if !X86 && VIDEO_BOCHS
+	default 0 if !X86 && !VIDEO_BOCHS
 	help
 	  Generally, video drivers request the amount of memory they need for
 	  the frame buffer when they are bound, by setting the size field in
@@ -1037,7 +1038,8 @@  config SPL_SYS_WHITE_ON_BLACK
 config SPL_VIDEO_PCI_DEFAULT_FB_SIZE
 	hex "Default framebuffer size to use if no drivers request it at SPL"
 	default 0x1000000 if X86
-	default 0 if !X86
+	default 0x800000 if !X86 && VIDEO_BOCHS
+	default 0 if !X86 && !VIDEO_BOCHS
 	help
 	  Generally, video drivers request the amount of memory they need for
 	  the frame buffer when they are bound, by setting the size field in