Re: [SeaBIOS] [PATCH] vgasrc: add HDTV resolutions (1280x768, 1280x720, 1920x1080)

2013-11-30 Thread Michael Tokarev
30.11.2013 04:17, Fred . wrote: 1920 × 1200 is a pretty common resolution. On computers, not on TVs. I wanted those to be the same as in lgpl vgabios, the patch that added those to vgabios was named like this. Yes, this resolution is now common on computers, but it come from TVs - it is the

Re: [SeaBIOS] [PATCH] vgasrc: add HDTV resolutions (1280x768, 1280x720, 1920x1080)

2013-11-30 Thread Michael Tokarev
30.11.2013 03:18, Kevin O'Connor wrote: [] { 0x18c, { MM_DIRECT, 2560, 1600, 32, 8, 16, SEG_GRAPH } }, +{ 0x18d, { MM_DIRECT, 1280, 720, 16, 8, 16, SEG_GRAPH } }, +{ 0x18d, { MM_DIRECT, 1280, 720, 24, 8, 16, SEG_GRAPH } }, +{ 0x18e, { MM_DIRECT, 1280, 720, 32, 8, 16,

[SeaBIOS] [PATCH] add HDTV resolutions (1280x768, 1280x720, 1920x1080)

2013-11-30 Thread Michael Tokarev
The same set were added to vgabios at version 0.7a. Signed-off-by: Michael Tokarev m...@tls.msk.ru --- vgasrc/bochsvga.c |9 + 1 file changed, 9 insertions(+) V2: actually fixed 1280x720 mode diff --git a/vgasrc/bochsvga.c b/vgasrc/bochsvga.c index b0ba1ec..35bd09d 100644 ---

Re: [SeaBIOS] [PATCH] vgasrc: add HDTV resolutions (1280x768, 1280x720, 1920x1080)

2013-11-30 Thread Fred .
Well now would be a good time for someone to write that 4K patch while this is being done anyway. Dell is now launching their new Ultrasharp UP2414Q which is a 24 screen with 4K resolution. It will feature 3 840 x 2 160 resolution. While preparing for that, take a look at 8K too.

[SeaBIOS] [PATCH 1/5] vgabios: Load the DAC palette in packed modes on Cirrus and BochsVGA.

2013-11-30 Thread Kevin O'Connor
This is a port of a patch applied to the lgpl vgabios tree (that was released in its v0.7a release). Signed-off-by: Kevin O'Connor ke...@koconnor.net --- vgasrc/bochsvga.c| 13 ++--- vgasrc/clext.c | 2 ++ vgasrc/stdvga.h | 1 + vgasrc/stdvgamodes.c | 7 +++ 4 files

[SeaBIOS] [PATCH 4/5] vgabios: Avoid possible divide by zero in bochsvga_set_displaystart.

2013-11-30 Thread Kevin O'Connor
Signed-off-by: Kevin O'Connor ke...@koconnor.net --- vgasrc/bochsvga.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vgasrc/bochsvga.c b/vgasrc/bochsvga.c index a19eccb..6da9d5d 100644 --- a/vgasrc/bochsvga.c +++ b/vgasrc/bochsvga.c @@ -212,6 +212,8 @@ bochsvga_set_displaystart(struct

[SeaBIOS] [PATCH 2/5] vgabios: Support custom fonts in vga framebuffer text writing.

2013-11-30 Thread Kevin O'Connor
Obtain the font data from int 0x43 and int 0x1f, and obtain the font height from the BDA. This enables application overrides for the font data. This patch also unifies the variable naming between the planar/CGA/linear character writing functions and uses the same names that the screen scrolling

[SeaBIOS] [PATCH 3/5] vgabios: Add bochsvga HDTV resolutions.

2013-11-30 Thread Kevin O'Connor
The same set of video modes were added to the lgpl vgabios in release 0.7a. Signed-off-by: Kevin O'Connor ke...@koconnor.net --- vgasrc/bochsvga.c | 9 + 1 file changed, 9 insertions(+) diff --git a/vgasrc/bochsvga.c b/vgasrc/bochsvga.c index 27f7615..a19eccb 100644 ---

[SeaBIOS] [PATCH 5/5] vgabios: Work around lack of support for calll in x86emu emulation.

2013-11-30 Thread Kevin O'Connor
Replace 32 bit call instructions with 16 bit call instructions in the vgabios to workaround problems in old versions of x86emu. This change allows fc13 and fc14 to boot. (Other x86emu emulation bugs still prevent fc11 and fc12 from booting.) Signed-off-by: Kevin O'Connor ke...@koconnor.net ---

Re: [SeaBIOS] [PATCH] add HDTV resolutions (1280x768, 1280x720, 1920x1080)

2013-11-30 Thread Kevin O'Connor
On Sat, Nov 30, 2013 at 01:29:15PM +0400, Michael Tokarev wrote: [...] @@ -89,6 +92,12 @@ static struct bochsvga_mode { 0x18a, { MM_DIRECT, 2560, 1600, 16, 8, 16, SEG_GRAPH } }, { 0x18b, { MM_DIRECT, 2560, 1600, 24, 8, 16, SEG_GRAPH } }, { 0x18c, { MM_DIRECT, 2560, 1600, 32, 8,

Re: [SeaBIOS] [PATCH 3/3] ahci: alloc structs in high memory, simplify realloc

2013-11-30 Thread Kevin O'Connor
On Fri, Nov 29, 2013 at 09:29:21AM +0100, Gerd Hoffmann wrote: Hi, Ideally, one wouldn't allocate in high ram and then go on to free it. (Memory fragmentation due to malloc/free could chew up some guest ram.) So, I'm not sure this is an improvement. So, we can keep the realloc but

[SeaBIOS] [PATCH] vgabios: Support allocating an extra stack for vgabios calls and default on.

2013-11-30 Thread Kevin O'Connor
Add code to allocate an extra stack for the main vgabios int 0x10 entry point. The allocation is done via the PMM spec and uses a PCI v3 permanent low memory region request. This request will work with SeaBIOS - it is unknown how many other main BIOS implementations support this PMM call. The