[Bug 97621] [SKL] System boots with [drm:i915_stolen_to_physical] *ERROR* conflict detected with stolen region: [0xc6000000 - 0xc8000000] on dmesg

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Sep 12 13:14:53 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=97621

--- Comment #5 from Jari Tahvanainen <jari.tahvanainen at intel.com> ---
(In reply to Chris Wilson from comment #4)
> Try:
> 
> diff --git a/arch/x86/include/uapi/asm/e820.h
> b/arch/x86/include/uapi/asm/e820.h
> index 9dafe59cf6e2..5b40b4abef35 100644
> --- a/arch/x86/include/uapi/asm/e820.h
> +++ b/arch/x86/include/uapi/asm/e820.h
> @@ -45,6 +45,8 @@
>   */
>  #define E820_PRAM      12
>  
> +#define E820_RESERVED_GFX 64
> +
>  /*
>   * reserved RAM used by kernel itself
>   * if CONFIG_INTEL_TXT is enabled, memory of this type will be
> diff --git a/arch/x86/kernel/early-quirks.c b/arch/x86/kernel/early-quirks.c
> index f306698a4cb4..e84f6afbb578 100644
> --- a/arch/x86/kernel/early-quirks.c
> +++ b/arch/x86/kernel/early-quirks.c
> @@ -546,7 +546,7 @@ intel_graphics_stolen(int num, int slot, int func,
>                &base, &end);
>  
>         /* Mark this space as reserved */
> -       e820_add_region(base, size, E820_RESERVED);
> +       e820_add_region(base, size, E820_RESERVED_GFX);
>         sanitize_e820_map(e820.map, ARRAY_SIZE(e820.map), &e820.nr_map);
>  }

Did the changes, compiled and rebooted SKL. Outcome is still the same
(~conflict still causes *ERROR*) in dmesg:
[    0.000000] Reserving Intel graphics memory at
0x00000000c6000000-0x00000000c7ffffff
...
[    1.861126] [drm:i915_stolen_to_physical] *ERROR* conflict detected with
stolen region: [0xc6000000 - 0xc8000000]

BTW: the latest code in drm-intel-nightly has the intel_graphics_stolen
modified compared your example:
commit ee0629cfd3c16c716801c84e939ff5db5e23f54d
Author: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
Date:   Fri Apr 22 13:45:49 2016 +0300
...
-static void __init intel_graphics_stolen(int num, int slot, int func)
+static void __init
+intel_graphics_stolen(int num, int slot, int func,
+                     const struct intel_early_ops *early_ops)
 ...

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20160912/7067202d/attachment.html>


More information about the intel-gfx-bugs mailing list