]> xenbits.xensource.com Git - people/aperard/xen-unstable.git/commitdiff
x86/acpi: Drop acpi_video_flags and use bootsym(video_flags) directly
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 4 Sep 2024 13:48:53 +0000 (14:48 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 6 Sep 2024 17:04:41 +0000 (18:04 +0100)
This removes a level of indirection, as well as removing a somewhat misleading
name; the variable is really "S3 video quirks".

More importantly however it makes it very clear that, right now, parsing the
cmdline and quirks depends on having already placed the trampoline; a
dependency which is going to be gnarly to untangle.

That said, fixing the quirk is easy.  The Toshiba Satellite 4030CDT has an
Intel Celeron 300Mhz CPU (Pentium 2 era) from 1998 when MMX was the headline
feature, sporting 64M of RAM.  Being a 32-bit processor, it hasn't been able
to run Xen for about a decade now, so drop the quirk entirely.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Alejandro Vallejo <alejandro.vallejo@cloud.com>
xen/arch/x86/acpi/power.c
xen/arch/x86/dmi_scan.c
xen/arch/x86/include/asm/acpi.h

index 610937f42e959ecf2b31881de1ccc947530be065..557faf312b0971b5799c026914f0aa00b0c90a4f 100644 (file)
@@ -56,7 +56,7 @@ static int __init cf_check parse_acpi_sleep(const char *s)
         s = ss + 1;
     } while ( *ss );
 
-    acpi_video_flags |= flag;
+    bootsym(video_flags) |= flag;
 
     return rc;
 }
index 81f80c053a7a5472584508b0042629c4f15ac82a..9257aee2ab978aa0efcdd028990f3cb9ce0a5ae0 100644 (file)
@@ -499,13 +499,6 @@ static int __init cf_check ich10_bios_quirk(const struct dmi_system_id *d)
     return 0;
 }
 
-static __init int cf_check reset_videomode_after_s3(const struct dmi_blacklist *d)
-{
-       /* See wakeup.S */
-       acpi_video_flags |= 2;
-       return 0;
-}
-
 static __init int cf_check dmi_disable_acpi(const struct dmi_blacklist *d)
 { 
        if (!acpi_force) { 
@@ -546,11 +539,6 @@ static __init int cf_check force_acpi_ht(const struct dmi_blacklist *d)
  
 static const struct dmi_blacklist __initconstrel dmi_blacklist[] = {
 
-       { reset_videomode_after_s3, "Toshiba Satellite 4030cdt", { /* Reset video mode after returning from ACPI S3 sleep */
-                       MATCH(DMI_PRODUCT_NAME, "S4030CDT/4.3"),
-                       NO_MATCH, NO_MATCH, NO_MATCH
-                       } },
-
        { ich10_bios_quirk, "Intel board & BIOS",
                /*
                 * BIOS leaves legacy USB emulation enabled while
index 3c47b216d0e05570a3eef50a1bffe6a4d63e43bc..217819dd619cd4067752d02caca3efaa401283ed 100644 (file)
@@ -103,7 +103,6 @@ extern unsigned long acpi_wakeup_address;
 extern int8_t acpi_numa;
 
 extern struct acpi_sleep_info acpi_sinfo;
-#define acpi_video_flags bootsym(video_flags)
 struct xenpf_enter_acpi_sleep;
 extern int acpi_enter_sleep(const struct xenpf_enter_acpi_sleep *sleep);
 extern int acpi_enter_state(u32 state);