Skip to contentSkip to conversation

Problem with i915 driver when mixing Skylake CPU with Kabylake chipset

DISCUSSION Rainer Koenig 2 participants 3 messages Feb 1, 2017

lore
Share & tools
lore
#0 lore raw

Hello,

I'm investigating a problem on a machine that has a Kabylake PCH but a Skylake CPU i5-6500.

Problem is that I can install and use distributions that are based on an older kernel, but newer Linux dristributions fail to boot even the installer.

So far I managed to get Fedora 25 with a 4.9 kernel installed, but I cannot reach runlevel 5. Booting to runlevel 3 shows this message in the dmesg:

[    1.816627] ------------[ cut here ]------------
[    1.816943] WARNING: CPU: 5 PID: 373 at
drivers/gpu/drm/i915/i915_drv.c:210 i915_driver_load+0x1157/0x1410 [i915]
[    1.817193] WARN_ON(!((&({ struct drm_i915_private *__p; if

(__builtin_types_compatible_p(typeof(*dev), struct drm_i915_private)) __p = (struct drm_i915_private *)dev; else if (__builtin_types_compatible_p(typeof(*dev), struct drm_device)) __p = to_i915((struct drm_device *)dev); else do { bool __cond = !(!(1)); extern void __compiletime_assert_210(void) __attribute__((error("BUILD_BUG failed"))); if (__cond) __compiletime_assert_210(); do { } while (0); } while (0); __p; })->info)->is_kabylake))

[    1.817251] e1000e 0000:00:1f.6 enp0s31f6: renamed from eth0
[    1.818020] Modules linked in:
[    1.818185]  i915(+) i2c_algo_bit e1000e drm_kms_helper crc32c_intel
drm ptp serio_raw pps_core video i2c_hid fjes
[    1.819091] CPU: 5 PID: 373 Comm: systemd-udevd Not tainted

4.9.5-200.fc25.x86_64 #1

Looking at i95_drv.c I find this code snipped that seems to be responsible:

                        } else if (id == INTEL_PCH_SPT_DEVICE_ID_TYPE) {
                                dev_priv->pch_type = PCH_SPT;
                                DRM_DEBUG_KMS("Found SunrisePoint PCH\n");
                                WARN_ON(!IS_SKYLAKE(dev_priv) &&
                                        !IS_KABYLAKE(dev_priv));
                        } else if (id == INTEL_PCH_SPT_LP_DEVICE_ID_TYPE) {
                                dev_priv->pch_type = PCH_SPT;
                                DRM_DEBUG_KMS("Found SunrisePoint LP
PCH\n");
                                WARN_ON(!IS_SKYLAKE(dev_priv) &&
                                        !IS_KABYLAKE(dev_priv));
                        } else if (id == INTEL_PCH_KBP_DEVICE_ID_TYPE) {
                                dev_priv->pch_type = PCH_KBP;
                                DRM_DEBUG_KMS("Found KabyPoint PCH\n");
                                WARN_ON(!IS_KABYLAKE(dev_priv));

I read from that, that the driver issues the warning when PCH is a Kabypoint PCH, but the CPU based graphics is not from a Kabylake CPU.

This explains the warnings in the dmesg. But if I want to start the GUI, the next problem rises:

[  125.777880] gnome-shell[1665]: segfault at 0 ip 00007f49b6712789 sp

00007fff9100ca30 error 4 in libEGL.so.1.0.0[7f49b66f8000+30000]

So from my perspective it looks like, that something inside the i915 driver is going wrong when we mix up Skylake CPUs with Kabylake Chipsets. The same system works pretty well when I replace the Skylake CPU with a Kabylake CPU.

On the other hand we have boards with a H110 chipset (Sunrise Point) that also support Kabylake CPUs and where this problem doesn't occur.

So my questions is what is the status of the driver regarding the combination of Skylake CPU with Kabylake chipset?

Thanks
Rainer

Signature · 19 lines
Dipl.-Inf. (FH) Rainer Koenig
Project Manager Linux Clients
FJ EMEIA PR PSO PM&D CCD ENG SW OSS&C

Fujitsu Technology Solutions
Bürgermeister-Ullrich-Str. 100
86199 Augsburg
Germany

Telephone: +49-821-804-3321
Telefax:   +49-821-804-2131
Mail:      mailto:[email protected]

Internet         ts.fujtsu.com
Company Details  ts.fujitsu.com/imprint.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw
Quoted 53 lines · Rainer Koenig

Hello,

I'm investigating a problem on a machine that has a Kabylake PCH but a Skylake CPU i5-6500.

Problem is that I can install and use distributions that are based on an older kernel, but newer Linux dristributions fail to boot even the installer.

So far I managed to get Fedora 25 with a 4.9 kernel installed, but I cannot reach runlevel 5. Booting to runlevel 3 shows this message in the dmesg:

[    1.816627] ------------[ cut here ]------------
[    1.816943] WARNING: CPU: 5 PID: 373 at
drivers/gpu/drm/i915/i915_drv.c:210 i915_driver_load+0x1157/0x1410 [i915]
[    1.817193] WARN_ON(!((&({ struct drm_i915_private *__p; if

(__builtin_types_compatible_p(typeof(*dev), struct drm_i915_private)) __p = (struct drm_i915_private *)dev; else if (__builtin_types_compatible_p(typeof(*dev), struct drm_device)) __p = to_i915((struct drm_device *)dev); else do { bool __cond = !(!(1)); extern void __compiletime_assert_210(void) __attribute__((error("BUILD_BUG failed"))); if (__cond) __compiletime_assert_210(); do { } while (0); } while (0); __p; })->info)->is_kabylake))

[    1.817251] e1000e 0000:00:1f.6 enp0s31f6: renamed from eth0
[    1.818020] Modules linked in:
[    1.818185]  i915(+) i2c_algo_bit e1000e drm_kms_helper crc32c_intel
drm ptp serio_raw pps_core video i2c_hid fjes
[    1.819091] CPU: 5 PID: 373 Comm: systemd-udevd Not tainted

4.9.5-200.fc25.x86_64 #1

Looking at i95_drv.c I find this code snipped that seems to be responsible:

                        } else if (id == INTEL_PCH_SPT_DEVICE_ID_TYPE) {
                                dev_priv->pch_type = PCH_SPT;
                                DRM_DEBUG_KMS("Found SunrisePoint PCH\n");
                                WARN_ON(!IS_SKYLAKE(dev_priv) &&
                                        !IS_KABYLAKE(dev_priv));
                        } else if (id == INTEL_PCH_SPT_LP_DEVICE_ID_TYPE) {
                                dev_priv->pch_type = PCH_SPT;
                                DRM_DEBUG_KMS("Found SunrisePoint LP
PCH\n");
                                WARN_ON(!IS_SKYLAKE(dev_priv) &&
                                        !IS_KABYLAKE(dev_priv));
                        } else if (id == INTEL_PCH_KBP_DEVICE_ID_TYPE) {
                                dev_priv->pch_type = PCH_KBP;
                                DRM_DEBUG_KMS("Found KabyPoint PCH\n");
                                WARN_ON(!IS_KABYLAKE(dev_priv));
Quoted 2 lines

I read from that, that the driver issues the warning when PCH is a Kabypoint PCH, but the CPU based graphics is not from a Kabylake CPU.

It's just a warning. But if there really are such combos out there, we should get rid of the warning. Patch sent [1].

[1] http://patchwork.freedesktop.org/patch/msgid/[email protected]

Quoted 11 lines

This explains the warnings in the dmesg. But if I want to start the GUI, the next problem rises:

[  125.777880] gnome-shell[1665]: segfault at 0 ip 00007f49b6712789 sp

00007fff9100ca30 error 4 in libEGL.so.1.0.0[7f49b66f8000+30000]

So from my perspective it looks like, that something inside the i915 driver is going wrong when we mix up Skylake CPUs with Kabylake Chipsets. The same system works pretty well when I replace the Skylake CPU with a Kabylake CPU.

Quoted 5 lines

On the other hand we have boards with a H110 chipset (Sunrise Point) that also support Kabylake CPUs and where this problem doesn't occur.

So my questions is what is the status of the driver regarding the combination of Skylake CPU with Kabylake chipset?

I'm not aware of any issues, IIUC there shouldn't be differences between the PCHs that would affect your perceived userspace segfault, and it shouldn't segfault anyway based on what i915 does.

BR,
Jani.

Quoted 3 lines

Thanks
Rainer

Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#2 lore raw

Am 01.02.2017 um 14:50 schrieb Jani Nikula:

Quoted 5 lines
Quoted 2 lines

I read from that, that the driver issues the warning when PCH is a Kabypoint PCH, but the CPU based graphics is not from a Kabylake CPU.

It's just a warning. But if there really are such combos out there, we should get rid of the warning. Patch sent [1].

Seent the patch, thanks. Those combos are defined by our product managers to satisfy the demand for systems with the latest chipset that can be used with Windows 7. ;-) My job is to make them usable for Linux and now I run into problemns...

Quoted 6 lines
Quoted 2 lines

So my questions is what is the status of the driver regarding the combination of Skylake CPU with Kabylake chipset?

I'm not aware of any issues, IIUC there shouldn't be differences between the PCHs that would affect your perceived userspace segfault, and it shouldn't segfault anyway based on what i915 does.

Ack. The segfault thing was the best I could get so far. Other distros like SLED 12 SP2 just die during bootup. I have to find a way to get debugger access / serial console working on that system so that I can find out more...

Thanks
Rainer

Signature · 19 lines
Dipl.-Inf. (FH) Rainer Koenig
Project Manager Linux Clients
FJ EMEIA PR PSO PM&D CCD ENG SW OSS&C

Fujitsu Technology Solutions
Bürgermeister-Ullrich-Str. 100
86199 Augsburg
Germany

Telephone: +49-821-804-3321
Telefax:   +49-821-804-2131
Mail:      mailto:[email protected]

Internet         ts.fujtsu.com
Company Details  ts.fujitsu.com/imprint.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx