]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
drivers/video: drop framebuffer size constraints
authorMarek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Mon, 13 May 2019 08:13:24 +0000 (10:13 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 13 May 2019 08:13:24 +0000 (10:13 +0200)
The limit 1900x1200 do not match real world devices (1900 looks like a
typo, should be 1920). But in practice the limits are arbitrary and do
not serve any real purpose. As discussed in "Increase framebuffer size
to todays standards" thread, drop them completely.

This fixes graphic console on device with 3840x2160 native resolution.

Suggested-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/drivers/video/lfb.c

index 0475a68296856d0f2f1c9fd800f78c07ba3215a9..5022195ae5ade10c9cc0e303449055ea8f17c806 100644 (file)
@@ -10,9 +10,6 @@
 #include "lfb.h"
 #include "font.h"
 
-#define MAX_XRES 1900
-#define MAX_YRES 1200
-
 struct lfb_status {
     struct lfb_prop lfbp;
 
@@ -146,13 +143,6 @@ void lfb_carriage_return(void)
 
 int __init lfb_init(struct lfb_prop *lfbp)
 {
-    if ( lfbp->width > MAX_XRES || lfbp->height > MAX_YRES )
-    {
-        printk(XENLOG_WARNING "Couldn't initialize a %ux%u framebuffer early.\n",
-               lfbp->width, lfbp->height);
-        return -EINVAL;
-    }
-
     lfb.lfbp = *lfbp;
 
     lfb.lbuf = xmalloc_bytes(lfb.lfbp.bytes_per_line);