* [Qemu-devel] [PATCH] sun4m: add display width and height to the firmware configuration
@ 2013-06-15 13:55 Mark Cave-Ayland
2013-06-15 14:54 ` Andreas Färber
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Mark Cave-Ayland @ 2013-06-15 13:55 UTC (permalink / raw)
To: qemu-devel
Currently the graphics resolution for TCX is fixed at 1024x768, however
other framebuffers are capable of supporting additional resolutions.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
---
hw/sparc/sun4m.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hw/sparc/sun4m.c b/hw/sparc/sun4m.c
index 0e86ca7..5b7868e 100644
--- a/hw/sparc/sun4m.c
+++ b/hw/sparc/sun4m.c
@@ -66,6 +66,8 @@
#define PROM_FILENAME "openbios-sparc32"
#define CFG_ADDR 0xd00000510ULL
#define FW_CFG_SUN4M_DEPTH (FW_CFG_ARCH_LOCAL + 0x00)
+#define FW_CFG_SUN4M_WIDTH (FW_CFG_ARCH_LOCAL + 0x01)
+#define FW_CFG_SUN4M_HEIGHT (FW_CFG_ARCH_LOCAL + 0x02)
#define MAX_CPUS 16
#define MAX_PILS 16
@@ -991,6 +993,8 @@ static void sun4m_hw_init(const struct sun4m_hwdef *hwdef, ram_addr_t RAM_size,
fw_cfg_add_i64(fw_cfg, FW_CFG_RAM_SIZE, (uint64_t)ram_size);
fw_cfg_add_i16(fw_cfg, FW_CFG_MACHINE_ID, hwdef->machine_id);
fw_cfg_add_i16(fw_cfg, FW_CFG_SUN4M_DEPTH, graphic_depth);
+ fw_cfg_add_i16(fw_cfg, FW_CFG_SUN4M_WIDTH, graphic_width);
+ fw_cfg_add_i16(fw_cfg, FW_CFG_SUN4M_HEIGHT, graphic_height);
fw_cfg_add_i32(fw_cfg, FW_CFG_KERNEL_ADDR, KERNEL_LOAD_ADDR);
fw_cfg_add_i32(fw_cfg, FW_CFG_KERNEL_SIZE, kernel_size);
if (kernel_cmdline) {
--
1.7.10.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] sun4m: add display width and height to the firmware configuration
2013-06-15 13:55 [Qemu-devel] [PATCH] sun4m: add display width and height to the firmware configuration Mark Cave-Ayland
@ 2013-06-15 14:54 ` Andreas Färber
2013-06-16 10:08 ` Mark Cave-Ayland
2013-07-23 21:23 ` Mark Cave-Ayland
2013-07-29 20:24 ` Anthony Liguori
2 siblings, 1 reply; 5+ messages in thread
From: Andreas Färber @ 2013-06-15 14:54 UTC (permalink / raw)
To: Mark Cave-Ayland; +Cc: Blue Swirl, qemu-devel
Am 15.06.2013 15:55, schrieb Mark Cave-Ayland:
> Currently the graphics resolution for TCX is fixed at 1024x768, however
> other framebuffers are capable of supporting additional resolutions.
>
> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Looks fine,
Reviewed-by: Andreas Färber <afaerber@suse.de>
Does this require corresponding OpenBIOS patches or was that already
prepared? (only see your cleanups and bug fixes there)
Cheers,
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] sun4m: add display width and height to the firmware configuration
2013-06-15 14:54 ` Andreas Färber
@ 2013-06-16 10:08 ` Mark Cave-Ayland
0 siblings, 0 replies; 5+ messages in thread
From: Mark Cave-Ayland @ 2013-06-16 10:08 UTC (permalink / raw)
To: Andreas Färber; +Cc: Blue Swirl, qemu-devel
On 15/06/13 15:54, Andreas Färber wrote:
> Looks fine,
>
> Reviewed-by: Andreas Färber<afaerber@suse.de>
>
> Does this require corresponding OpenBIOS patches or was that already
> prepared? (only see your cleanups and bug fixes there)
Yes, I rolled up some code for this in the corresponding OpenBIOS
patchset but forgot to mention it in the commit message - see patch 11/20.
Incidentally I also forgot to mention in that same commit message that I
had to tweak switch-arch to enable CONFIG_QEMU in the SPARC32 build too.
Given the size of the patchset, I'll see if any comments come in over
the next few days and if nothing surfaces I'll simply tweak the message
before commit.
ATB,
Mark.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] sun4m: add display width and height to the firmware configuration
2013-06-15 13:55 [Qemu-devel] [PATCH] sun4m: add display width and height to the firmware configuration Mark Cave-Ayland
2013-06-15 14:54 ` Andreas Färber
@ 2013-07-23 21:23 ` Mark Cave-Ayland
2013-07-29 20:24 ` Anthony Liguori
2 siblings, 0 replies; 5+ messages in thread
From: Mark Cave-Ayland @ 2013-07-23 21:23 UTC (permalink / raw)
To: qemu-devel; +Cc: Blue Swirl
On 15/06/13 14:55, Mark Cave-Ayland wrote:
> Currently the graphics resolution for TCX is fixed at 1024x768, however
> other framebuffers are capable of supporting additional resolutions.
>
> Signed-off-by: Mark Cave-Ayland<mark.cave-ayland@ilande.co.uk>
> ---
> hw/sparc/sun4m.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/hw/sparc/sun4m.c b/hw/sparc/sun4m.c
> index 0e86ca7..5b7868e 100644
> --- a/hw/sparc/sun4m.c
> +++ b/hw/sparc/sun4m.c
> @@ -66,6 +66,8 @@
> #define PROM_FILENAME "openbios-sparc32"
> #define CFG_ADDR 0xd00000510ULL
> #define FW_CFG_SUN4M_DEPTH (FW_CFG_ARCH_LOCAL + 0x00)
> +#define FW_CFG_SUN4M_WIDTH (FW_CFG_ARCH_LOCAL + 0x01)
> +#define FW_CFG_SUN4M_HEIGHT (FW_CFG_ARCH_LOCAL + 0x02)
>
> #define MAX_CPUS 16
> #define MAX_PILS 16
> @@ -991,6 +993,8 @@ static void sun4m_hw_init(const struct sun4m_hwdef *hwdef, ram_addr_t RAM_size,
> fw_cfg_add_i64(fw_cfg, FW_CFG_RAM_SIZE, (uint64_t)ram_size);
> fw_cfg_add_i16(fw_cfg, FW_CFG_MACHINE_ID, hwdef->machine_id);
> fw_cfg_add_i16(fw_cfg, FW_CFG_SUN4M_DEPTH, graphic_depth);
> + fw_cfg_add_i16(fw_cfg, FW_CFG_SUN4M_WIDTH, graphic_width);
> + fw_cfg_add_i16(fw_cfg, FW_CFG_SUN4M_HEIGHT, graphic_height);
> fw_cfg_add_i32(fw_cfg, FW_CFG_KERNEL_ADDR, KERNEL_LOAD_ADDR);
> fw_cfg_add_i32(fw_cfg, FW_CFG_KERNEL_SIZE, kernel_size);
> if (kernel_cmdline) {
Ping?
ATB,
Mark.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] sun4m: add display width and height to the firmware configuration
2013-06-15 13:55 [Qemu-devel] [PATCH] sun4m: add display width and height to the firmware configuration Mark Cave-Ayland
2013-06-15 14:54 ` Andreas Färber
2013-07-23 21:23 ` Mark Cave-Ayland
@ 2013-07-29 20:24 ` Anthony Liguori
2 siblings, 0 replies; 5+ messages in thread
From: Anthony Liguori @ 2013-07-29 20:24 UTC (permalink / raw)
To: Mark Cave-Ayland, qemu-devel; +Cc: Blue Swirl
Applied. Thanks.
Regards,
Anthony Liguori
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-07-29 20:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-15 13:55 [Qemu-devel] [PATCH] sun4m: add display width and height to the firmware configuration Mark Cave-Ayland
2013-06-15 14:54 ` Andreas Färber
2013-06-16 10:08 ` Mark Cave-Ayland
2013-07-23 21:23 ` Mark Cave-Ayland
2013-07-29 20:24 ` Anthony Liguori
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).