From: "Jan Beulich" Subject: [PATCH] linux/x86: Obtain EDID info from Xen Date: Tue, 19 Jun 2007 11:47:13 +0100 Message-ID: <4677D051.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Taken from our 2.6.22-rc4 tree and made apply - without further testing. The patch contains the necessary adjustment to the public headers - if that's being pushed to the linux tree automatically, the respective hunk must be removed before applying. Signed-off-by: Jan Beulich Index: head-2007-05-31/arch/i386/kernel/setup-xen.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- head-2007-05-31.orig/arch/i386/kernel/setup-xen.c 2007-06-01 = 16:59:22.000000000 +0200 +++ head-2007-05-31/arch/i386/kernel/setup-xen.c 2007-06-01 = 16:59:27.000000000 +0200 @@ -132,6 +132,9 @@ struct sys_desc_table_struct { }; struct edid_info edid_info; EXPORT_SYMBOL_GPL(edid_info); +#ifndef CONFIG_XEN +#define copy_edid() (edid_info =3D EDID_INFO) +#endif struct ist_info ist_info; #if defined(CONFIG_X86_SPEEDSTEP_SMI) || \ defined(CONFIG_X86_SPEEDSTEP_SMI_MODULE) @@ -601,7 +604,7 @@ void __init setup_arch(char **cmdline_p) ROOT_DEV =3D MKDEV(UNNAMED_MAJOR,0); drive_info =3D DRIVE_INFO; screen_info =3D SCREEN_INFO; - edid_info =3D EDID_INFO; + copy_edid(); apm_info.bios =3D APM_BIOS_INFO; ist_info =3D IST_INFO; saved_videomode =3D VIDEO_MODE; Index: head-2007-05-31/arch/x86_64/kernel/setup-xen.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- head-2007-05-31.orig/arch/x86_64/kernel/setup-xen.c 2007-06-01 = 16:59:22.000000000 +0200 +++ head-2007-05-31/arch/x86_64/kernel/setup-xen.c 2007-06-01 = 16:59:27.000000000 +0200 @@ -312,7 +312,7 @@ void __init setup_arch(char **cmdline_p) } else screen_info.orig_video_isVGA =3D 0; =20 - edid_info =3D EDID_INFO; + copy_edid(); saved_video_mode =3D SAVED_VIDEO_MODE; bootloader_type =3D LOADER_TYPE; =20 Index: head-2007-05-31/drivers/xen/core/firmware.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- head-2007-05-31.orig/drivers/xen/core/firmware.c 2007-06-01 = 16:59:22.000000000 +0200 +++ head-2007-05-31/drivers/xen/core/firmware.c 2007-06-01 16:59:27.0000000= 00 +0200 @@ -2,6 +2,7 @@ #include #include #include +#include