Skip to contentSkip to conversation

drm/i915: taint kernel when force probing unsupported devices

PATCH Superseded Jani Nikula 5 participants 6 messages May 3, 2023

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915: taint kernel when force probing unsupported devices

For development and testing purposes, the i915.force_probe module parameter and DRM_I915_FORCE_PROBE kconfig option allow probing of devices that aren't supported by the driver.

The i915.force_probe module parameter is "unsafe" and setting it taints the kernel. However, using the kconfig option does not.

Always taint the kernel when force probing a device that is not supported.

Fixes 7ef5ef5cdead ("drm/i915: add force_probe module parameter to replace alpha_support")
Cc Joonas Lahtinen <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Tvrtko Ursulin <[email protected]>
Cc Daniel Vetter <[email protected]>
Cc Dave Airlie <[email protected]>
---
 drivers/gpu/drm/i915/Kconfig    | 13 ++++++++-----
 drivers/gpu/drm/i915/i915_pci.c |  6 ++++++
 2 files changed, 14 insertions(+), 5 deletions(-)
drivers/gpu/drm/i915/Kconfig +8 -5
index 06a0ca157e89..12ba19da9bc3 100644
@@ -58,14 +58,16 @@ config DRM_I915
 config DRM_I915_FORCE_PROBE
 	string "Force probe i915 for selected Intel hardware IDs"
 	depends on DRM_I915
+	depends on EXPERT
 	help
 	  This is the default value for the i915.force_probe module
 	  parameter. Using the module parameter overrides this option.
 
-	  Force probe the i915 for Intel graphics devices that are
-	  recognized but not properly supported by this kernel version. It is
-	  recommended to upgrade to a kernel version with proper support as soon
-	  as it is available.
+	  Force probe the i915 driver for Intel graphics devices that are
+	  recognized but not properly supported by this kernel version. Force
+	  probing an unsupported device taints the kernel. It is recommended to
+	  upgrade to a kernel version with proper support as soon as it is
+	  available.
 
 	  It can also be used to block the probe of recognized and fully
 	  supported devices.
@@ -75,7 +77,8 @@ config DRM_I915_FORCE_PROBE
 	  Use "<pci-id>[,<pci-id>,...]" to force probe the i915 for listed
 	  devices. For example, "4500" or "4500,4571".
 
-	  Use "*" to force probe the driver for all known devices.
+	  Use "*" to force probe the driver for all known devices. Not
+	  recommended.
 
 	  Use "!" right before the ID to block the probe of the device. For
 	  example, "4500,!4571" forces the probe of 4500 and blocks the probe of
drivers/gpu/drm/i915/i915_pci.c +6 -0
index 5fcc9cfed671..c509ea4aa70f 100644
@@ -1346,6 +1346,12 @@ static int i915_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 		return -ENODEV;
 	}
 
+	if (intel_info->require_force_probe) {
+		dev_info(&pdev->dev, "Force probing unsupported Device ID %04x, tainting kernel\n",
+			 pdev->device);
+		add_taint(TAINT_USER, LOCKDEP_STILL_OK);
+	}
+
 	/* Only bind to function 0 of the device. Early generations
 	 * used function 1 as a placeholder for multi-head. This causes
 	 * us confusion instead, especially on the systems where both
Signature · 1 line
2.39.2
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Jani Nikula

For development and testing purposes, the i915.force_probe module parameter and DRM_I915_FORCE_PROBE kconfig option allow probing of devices that aren't supported by the driver.

The i915.force_probe module parameter is "unsafe" and setting it taints the kernel. However, using the kconfig option does not.

Always taint the kernel when force probing a device that is not supported.

Quoted 7 lines
Fixes 7ef5ef5cdead ("drm/i915: add force_probe module parameter to replace alpha_support")
Cc Joonas Lahtinen <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Tvrtko Ursulin <[email protected]>
Cc Daniel Vetter <[email protected]>
Cc Dave Airlie <[email protected]>
Quoted 60 lines
---
 drivers/gpu/drm/i915/Kconfig    | 13 ++++++++-----
 drivers/gpu/drm/i915/i915_pci.c |  6 ++++++
 2 files changed, 14 insertions(+), 5 deletions(-)
drivers/gpu/drm/i915/Kconfig +8 -5
index 06a0ca157e89..12ba19da9bc3 100644
@@ -58,14 +58,16 @@ config DRM_I915
 config DRM_I915_FORCE_PROBE
        string "Force probe i915 for selected Intel hardware IDs"
        depends on DRM_I915
+       depends on EXPERT
        help
          This is the default value for the i915.force_probe module
          parameter. Using the module parameter overrides this option.
 
-         Force probe the i915 for Intel graphics devices that are
-         recognized but not properly supported by this kernel version. It is
-         recommended to upgrade to a kernel version with proper support as soon
-         as it is available.
+         Force probe the i915 driver for Intel graphics devices that are
+         recognized but not properly supported by this kernel version. Force
+         probing an unsupported device taints the kernel. It is recommended to
+         upgrade to a kernel version with proper support as soon as it is
+         available.
 
          It can also be used to block the probe of recognized and fully
          supported devices.
@@ -75,7 +77,8 @@ config DRM_I915_FORCE_PROBE
          Use "<pci-id>[,<pci-id>,...]" to force probe the i915 for listed
          devices. For example, "4500" or "4500,4571".
 
-         Use "*" to force probe the driver for all known devices.
+         Use "*" to force probe the driver for all known devices. Not
+         recommended.
 
          Use "!" right before the ID to block the probe of the device. For
          example, "4500,!4571" forces the probe of 4500 and blocks the probe of
drivers/gpu/drm/i915/i915_pci.c +6 -1
index 5fcc9cfed671..c509ea4aa70f 100644
@@ -1346,6 +1346,12 @@ static int i915_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
                return -ENODEV;
        }
 
+       if (intel_info->require_force_probe) {
+               dev_info(&pdev->dev, "Force probing unsupported Device ID %04x, tainting kernel\n",
+                        pdev->device);
+               add_taint(TAINT_USER, LOCKDEP_STILL_OK);
+       }
+
        /* Only bind to function 0 of the device. Early generations
         * used function 1 as a placeholder for multi-head. This causes
         * us confusion instead, especially on the systems where both
--

2.39.2

Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
#2 lore raw

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: taint kernel when force probing unsupported devices

In reply to Jani Nikula
== Series Details ==

== Series Details ==

Series: drm/i915: taint kernel when force probing unsupported devices
URL : https://patchwork.freedesktop.org/series/117231/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_13102 -> Patchwork_117231v1
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_117231v1/index.html

Participating hosts (38 -> 38)
------------------------------

Additional (1): fi-kbl-soraka
Missing (1): fi-snb-2520m

Known issues
------------

Here are the changes found in Patchwork_117231v1 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@gem_exec_suspend@basic-s3@smem:
- bat-rpls-1: [PASS][1] -> [ABORT][2] ([i915#6687] / [i915#7978] / [i915#8407])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13102/bat-rpls-1/igt@gem_exec_suspend@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_117231v1/bat-rpls-1/igt@gem_exec_suspend@[email protected]

* igt@gem_huc_copy@huc-copy:
- fi-kbl-soraka: NOTRUN -> [SKIP][3] ([fdo#109271] / [i915#2190])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_117231v1/fi-kbl-soraka/igt@[email protected]

* igt@gem_lmem_swapping@basic:
- fi-kbl-soraka: NOTRUN -> [SKIP][4] ([fdo#109271] / [i915#4613]) +3 similar issues
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_117231v1/fi-kbl-soraka/igt@[email protected]

* igt@i915_selftest@live@gt_pm:
- fi-kbl-soraka: NOTRUN -> [DMESG-FAIL][5] ([i915#1886] / [i915#7913])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_117231v1/fi-kbl-soraka/igt@i915_selftest@live@gt_pm.html

* igt@kms_chamelium_frames@hdmi-crc-fast:
- fi-kbl-soraka: NOTRUN -> [SKIP][6] ([fdo#109271]) +16 similar issues
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_117231v1/fi-kbl-soraka/igt@[email protected]

#### Possible fixes ####

* igt@i915_selftest@live@migrate:
- bat-dg2-11: [DMESG-WARN][7] ([i915#7699]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13102/bat-dg2-11/igt@i915_selftest@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_117231v1/bat-dg2-11/igt@i915_selftest@[email protected]

* igt@i915_selftest@live@slpc:
- bat-rpls-1: [DMESG-WARN][9] ([i915#6367]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13102/bat-rpls-1/igt@i915_selftest@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_117231v1/bat-rpls-1/igt@i915_selftest@[email protected]

* igt@kms_pipe_crc_basic@nonblocking-crc@pipe-d-dp-1:
- bat-dg2-8: [FAIL][11] ([i915#7932]) -> [PASS][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13102/bat-dg2-8/igt@kms_pipe_crc_basic@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_117231v1/bat-dg2-8/igt@kms_pipe_crc_basic@[email protected]

[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[i915#1886]: https://gitlab.freedesktop.org/drm/intel/issues/1886
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#6367]: https://gitlab.freedesktop.org/drm/intel/issues/6367
[i915#6687]: https://gitlab.freedesktop.org/drm/intel/issues/6687
[i915#7699]: https://gitlab.freedesktop.org/drm/intel/issues/7699
[i915#7913]: https://gitlab.freedesktop.org/drm/intel/issues/7913
[i915#7932]: https://gitlab.freedesktop.org/drm/intel/issues/7932
[i915#7978]: https://gitlab.freedesktop.org/drm/intel/issues/7978
[i915#8407]: https://gitlab.freedesktop.org/drm/intel/issues/8407

Build changes
-------------

* Linux: CI_DRM_13102 -> Patchwork_117231v1

CI-20190529: 20190529
CI_DRM_13102: b0492ca8c1cec314da218999babaa016df4cf9d1 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7277: 1cb3507f3ff28d11bd5cfabcde576fe78ddab571 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_117231v1: b0492ca8c1cec314da218999babaa016df4cf9d1 @ git://anongit.freedesktop.org/gfx-ci/linux

### Linux commits

c28ab3f844ff drm/i915: taint kernel when force probing unsupported devices

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_117231v1/index.html

#3 lore raw
In reply to Jani Nikula
kernel test robot noticed the following build errors:

Hi Jani,

kernel test robot noticed the following build errors:

[auto build test ERROR on drm-tip/drm-tip]

url:    https://github.com/intel-lab-lkp/linux/commits/Jani-Nikula/drm-i915-taint-kernel-when-force-probing-unsupported-devices/20230503-175009
base:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
patch link:    https://lore.kernel.org/r/20230503094826.1467208-1-jani.nikula%40intel.com
patch subject: [Intel-gfx] [PATCH] drm/i915: taint kernel when force probing unsupported devices
config: x86_64-rhel-8.3 (https://download.01.org/0day-ci/archive/20230503/[email protected]/config)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0

reproduce (this is a W=1 build):
# https://github.com/intel-lab-lkp/linux/commit/ad183c591dae931a7242f95f3cd5888502e38ab5
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Jani-Nikula/drm-i915-taint-kernel-when-force-probing-unsupported-devices/20230503-175009 git checkout ad183c591dae931a7242f95f3cd5888502e38ab5
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=x86_64 olddefconfig
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/gpu/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email protected]>
| Link: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/i915/i915_params.h:77:36: error: 'CONFIG_DRM_I915_FORCE_PROBE' undeclared here (not in a function); did you mean 'CONFIG_DRM_I915_FENCE_TIMEOUT'?
      77 |         param(char *, force_probe, CONFIG_DRM_I915_FORCE_PROBE, 0400) \
         |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/i915_params.c:52:50: note: in definition of macro 'MEMBER'
      52 | #define MEMBER(T, member, value, ...) .member = (value),
         |                                                  ^~~~~
   drivers/gpu/drm/i915/i915_params.c:53:9: note: in expansion of macro 'I915_PARAMS_FOR_EACH'
      53 |         I915_PARAMS_FOR_EACH(MEMBER)
         |         ^~~~~~~~~~~~~~~~~~~~

vim +77 drivers/gpu/drm/i915/i915_params.h

121981fafe699d Michal Wajdeczko       2017-12-06  36  
7012033033dafc Jani Nikula            2018-12-27  37  /*
7012033033dafc Jani Nikula            2018-12-27  38   * Invoke param, a function-like macro, for each i915 param, with arguments:
7012033033dafc Jani Nikula            2018-12-27  39   *
c43c5a8818d4c3 Jani Nikula            2019-12-05  40   * param(type, name, value, mode)
7012033033dafc Jani Nikula            2018-12-27  41   *
c43c5a8818d4c3 Jani Nikula            2019-12-05  42   * type: parameter type, one of {bool, int, unsigned int, unsigned long, char *}
7012033033dafc Jani Nikula            2018-12-27  43   * name: name of the parameter
7012033033dafc Jani Nikula            2018-12-27  44   * value: initial/default value of the parameter
c43c5a8818d4c3 Jani Nikula            2019-12-05  45   * mode: debugfs file permissions, one of {0400, 0600, 0}, use 0 to not create
c43c5a8818d4c3 Jani Nikula            2019-12-05  46   *       debugfs file
7012033033dafc Jani Nikula            2018-12-27  47   */
54fea2b974a076 Michal Wajdeczko       2017-09-25  48  #define I915_PARAMS_FOR_EACH(param) \
c43c5a8818d4c3 Jani Nikula            2019-12-05  49  	param(char *, vbt_firmware, NULL, 0400) \
c43c5a8818d4c3 Jani Nikula            2019-12-05  50  	param(int, modeset, -1, 0400) \
c43c5a8818d4c3 Jani Nikula            2019-12-05  51  	param(int, lvds_channel_mode, 0, 0400) \
c43c5a8818d4c3 Jani Nikula            2019-12-05  52  	param(int, panel_use_ssc, -1, 0600) \
c43c5a8818d4c3 Jani Nikula            2019-12-05  53  	param(int, vbt_sdvo_panel_type, -1, 0400) \
c43c5a8818d4c3 Jani Nikula            2019-12-05  54  	param(int, enable_dc, -1, 0400) \
c43c5a8818d4c3 Jani Nikula            2019-12-05  55  	param(int, enable_fbc, -1, 0600) \
c43c5a8818d4c3 Jani Nikula            2019-12-05  56  	param(int, enable_psr, -1, 0600) \
c5de248484afeb Ville Syrjälä          2023-03-20  57  	param(bool, enable_dpt, true, 0400) \
64218f91ab49a8 José Roberto de Souza  2021-02-04  58  	param(bool, psr_safest_params, false, 0400) \
7f6002e58025cf José Roberto de Souza  2021-09-29  59  	param(bool, enable_psr2_sel_fetch, true, 0400) \
419e505dab203b Ville Syrjälä          2023-03-22  60  	param(bool, enable_sagv, true, 0600) \
c43c5a8818d4c3 Jani Nikula            2019-12-05  61  	param(int, disable_power_well, -1, 0400) \
c43c5a8818d4c3 Jani Nikula            2019-12-05  62  	param(int, enable_ips, 1, 0600) \
c43c5a8818d4c3 Jani Nikula            2019-12-05  63  	param(int, invert_brightness, 0, 0600) \
47c65b3853f88d John Harrison          2021-06-03  64  	param(int, enable_guc, -1, 0400) \
c43c5a8818d4c3 Jani Nikula            2019-12-05  65  	param(int, guc_log_level, -1, 0400) \
c43c5a8818d4c3 Jani Nikula            2019-12-05  66  	param(char *, guc_firmware_path, NULL, 0400) \
c43c5a8818d4c3 Jani Nikula            2019-12-05  67  	param(char *, huc_firmware_path, NULL, 0400) \
c43c5a8818d4c3 Jani Nikula            2019-12-05  68  	param(char *, dmc_firmware_path, NULL, 0400) \
242c4b91cd35b6 Daniele Ceraolo Spurio 2022-12-08  69  	param(char *, gsc_firmware_path, NULL, 0400) \
bd56c63ca1d953 Chris Wilson           2021-12-08  70  	param(bool, memtest, false, 0400) \
c43c5a8818d4c3 Jani Nikula            2019-12-05  71  	param(int, mmio_debug, -IS_ENABLED(CONFIG_DRM_I915_DEBUG_MMIO), 0600) \
c43c5a8818d4c3 Jani Nikula            2019-12-05  72  	param(int, edp_vswing, 0, 0400) \
aae970d8454bb9 Chris Wilson           2020-02-05  73  	param(unsigned int, reset, 3, 0600) \
dbf4081ffb68c0 Jani Nikula            2020-06-02  74  	param(unsigned int, inject_probe_failure, 0, 0) \
c43c5a8818d4c3 Jani Nikula            2019-12-05  75  	param(int, fastboot, -1, 0600) \
9ac7d53d70a2b4 Lyude Paul             2020-01-16  76  	param(int, enable_dpcd_backlight, -1, 0600) \
c43c5a8818d4c3 Jani Nikula            2019-12-05 @77  	param(char *, force_probe, CONFIG_DRM_I915_FORCE_PROBE, 0400) \
615160334f3f09 Tvrtko Ursulin         2021-05-26  78  	param(unsigned int, request_timeout_ms, CONFIG_DRM_I915_REQUEST_TIMEOUT, CONFIG_DRM_I915_REQUEST_TIMEOUT ? 0600 : 0) \
be658e705d08d1 CQ Tang                2022-03-24  79  	param(unsigned int, lmem_size, 0, 0400) \
17cd10a44a8962 Priyanka Dandamudi     2022-07-13  80  	param(unsigned int, lmem_bar_size, 0, 0400) \
b8cf691e28fa48 Chris Wilson           2017-02-06  81  	/* leave bools at the end to not create holes */ \
c43c5a8818d4c3 Jani Nikula            2019-12-05  82  	param(bool, enable_hangcheck, true, 0600) \
c43c5a8818d4c3 Jani Nikula            2019-12-05  83  	param(bool, load_detect_test, false, 0600) \
c43c5a8818d4c3 Jani Nikula            2019-12-05  84  	param(bool, force_reset_modeset_test, false, 0600) \
615160334f3f09 Tvrtko Ursulin         2021-05-26  85  	param(bool, error_capture, true, IS_ENABLED(CONFIG_DRM_I915_CAPTURE_ERROR) ? 0600 : 0) \
c43c5a8818d4c3 Jani Nikula            2019-12-05  86  	param(bool, disable_display, false, 0400) \
c43c5a8818d4c3 Jani Nikula            2019-12-05  87  	param(bool, verbose_state_checks, true, 0) \
c43c5a8818d4c3 Jani Nikula            2019-12-05  88  	param(bool, nuclear_pageflip, false, 0400) \
c43c5a8818d4c3 Jani Nikula            2019-12-05  89  	param(bool, enable_dp_mst, true, 0600) \
615160334f3f09 Tvrtko Ursulin         2021-05-26  90  	param(bool, enable_gvt, false, IS_ENABLED(CONFIG_DRM_I915_GVT) ? 0400 : 0)

b8cf691e28fa48 Chris Wilson 2017-02-06 91

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
Reviewed-by on v1 1/1
#4 lore raw
In reply to Jani Nikula
Quoted 10 lines · Jani Nikula

For development and testing purposes, the i915.force_probe module parameter and DRM_I915_FORCE_PROBE kconfig option allow probing of devices that aren't supported by the driver.

The i915.force_probe module parameter is "unsafe" and setting it taints the kernel. However, using the kconfig option does not.

Always taint the kernel when force probing a device that is not supported.

Quoted 7 lines
Fixes 7ef5ef5cdead ("drm/i915: add force_probe module parameter to replace alpha_support")
Cc Joonas Lahtinen <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Tvrtko Ursulin <[email protected]>
Cc Daniel Vetter <[email protected]>
Cc Dave Airlie <[email protected]>

Are you planing to send the xe version of this to intel-xe ml as well?

Quoted 60 lines
---
 drivers/gpu/drm/i915/Kconfig    | 13 ++++++++-----
 drivers/gpu/drm/i915/i915_pci.c |  6 ++++++
 2 files changed, 14 insertions(+), 5 deletions(-)
drivers/gpu/drm/i915/Kconfig +8 -5
index 06a0ca157e89..12ba19da9bc3 100644
@@ -58,14 +58,16 @@ config DRM_I915
 config DRM_I915_FORCE_PROBE
 	string "Force probe i915 for selected Intel hardware IDs"
 	depends on DRM_I915
+	depends on EXPERT
 	help
 	  This is the default value for the i915.force_probe module
 	  parameter. Using the module parameter overrides this option.
 
-	  Force probe the i915 for Intel graphics devices that are
-	  recognized but not properly supported by this kernel version. It is
-	  recommended to upgrade to a kernel version with proper support as soon
-	  as it is available.
+	  Force probe the i915 driver for Intel graphics devices that are
+	  recognized but not properly supported by this kernel version. Force
+	  probing an unsupported device taints the kernel. It is recommended to
+	  upgrade to a kernel version with proper support as soon as it is
+	  available.
 
 	  It can also be used to block the probe of recognized and fully
 	  supported devices.
@@ -75,7 +77,8 @@ config DRM_I915_FORCE_PROBE
 	  Use "<pci-id>[,<pci-id>,...]" to force probe the i915 for listed
 	  devices. For example, "4500" or "4500,4571".
 
-	  Use "*" to force probe the driver for all known devices.
+	  Use "*" to force probe the driver for all known devices. Not
+	  recommended.
 
 	  Use "!" right before the ID to block the probe of the device. For
 	  example, "4500,!4571" forces the probe of 4500 and blocks the probe of
drivers/gpu/drm/i915/i915_pci.c +6 -0
index 5fcc9cfed671..c509ea4aa70f 100644
@@ -1346,6 +1346,12 @@ static int i915_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 		return -ENODEV;
 	}
 
+	if (intel_info->require_force_probe) {
+		dev_info(&pdev->dev, "Force probing unsupported Device ID %04x, tainting kernel\n",
+			 pdev->device);
+		add_taint(TAINT_USER, LOCKDEP_STILL_OK);
+	}
+
 	/* Only bind to function 0 of the device. Early generations
 	 * used function 1 as a placeholder for multi-head. This causes
 	 * us confusion instead, especially on the systems where both
Signature · 1 line
2.39.2
#5 lore raw

[Intel-gfx] ✗ Fi.CI.IGT: failure for drm/i915: taint kernel when force probing unsupported devices

In reply to Jani Nikula
== Series Details ==

== Series Details ==

Series: drm/i915: taint kernel when force probing unsupported devices
URL : https://patchwork.freedesktop.org/series/117231/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_13102_full -> Patchwork_117231v1_full
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with Patchwork_117231v1_full absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in Patchwork_117231v1_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.

Participating hosts (7 -> 8)
------------------------------

Additional (1): shard-rkl0

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in Patchwork_117231v1_full:

### IGT changes ###

#### Possible regressions ####

* igt@kms_fbcon_fbt@fbc-suspend:
- shard-apl: [PASS][1] -> [ABORT][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13102/shard-apl1/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_117231v1/shard-apl2/igt@[email protected]

Known issues
------------

Here are the changes found in Patchwork_117231v1_full that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@gem_barrier_race@remote-request@rcs0:
- shard-glk: [PASS][3] -> [ABORT][4] ([i915#7461] / [i915#8211])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13102/shard-glk1/igt@gem_barrier_race@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_117231v1/shard-glk7/igt@gem_barrier_race@[email protected]

* igt@gem_exec_fair@basic-pace-share@rcs0:
- shard-glk: [PASS][5] -> [FAIL][6] ([i915#2842])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13102/shard-glk6/igt@gem_exec_fair@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_117231v1/shard-glk5/igt@gem_exec_fair@[email protected]

* igt@gem_ppgtt@blt-vs-render-ctx0:
- shard-snb: [PASS][7] -> [DMESG-FAIL][8] ([i915#8295])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13102/shard-snb2/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_117231v1/shard-snb6/igt@[email protected]

* igt@kms_cursor_crc@cursor-sliding-256x256@pipe-a-hdmi-a-1:
- shard-glk: [PASS][9] -> [DMESG-WARN][10] ([i915#118])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13102/shard-glk4/igt@kms_cursor_crc@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_117231v1/shard-glk8/igt@kms_cursor_crc@[email protected]

* igt@kms_plane_scaling@plane-upscale-with-modifiers-20x20@pipe-b-vga-1:
- shard-snb: NOTRUN -> [SKIP][11] ([fdo#109271]) +32 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_117231v1/shard-snb5/igt@kms_plane_scaling@[email protected]

#### Possible fixes ####

* igt@gem_barrier_race@remote-request@rcs0:
- {shard-rkl}: [ABORT][12] ([i915#7461] / [i915#8211]) -> [PASS][13]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13102/shard-rkl-3/igt@gem_barrier_race@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_117231v1/shard-rkl-1/igt@gem_barrier_race@[email protected]

* igt@gem_eio@hibernate:
- {shard-tglu}: [ABORT][14] ([i915#7975] / [i915#8213] / [i915#8398]) -> [PASS][15]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13102/shard-tglu-10/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_117231v1/shard-tglu-7/igt@[email protected]

* igt@i915_pm_rpm@modeset-lpsp-stress:
- {shard-rkl}: [SKIP][16] ([i915#1397]) -> [PASS][17] +1 similar issue
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13102/shard-rkl-2/igt@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_117231v1/shard-rkl-7/igt@[email protected]

* igt@i915_selftest@live@gt_heartbeat:
- shard-glk: [DMESG-FAIL][18] ([i915#5334]) -> [PASS][19]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13102/shard-glk7/igt@i915_selftest@live@gt_heartbeat.html
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_117231v1/shard-glk8/igt@i915_selftest@live@gt_heartbeat.html

* igt@kms_cursor_legacy@forked-bo@pipe-b:
- {shard-rkl}: [INCOMPLETE][20] ([i915#8011]) -> [PASS][21]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13102/shard-rkl-7/igt@kms_cursor_legacy@[email protected]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_117231v1/shard-rkl-4/igt@kms_cursor_legacy@[email protected]

* igt@kms_flip@flip-vs-expired-vblank@b-hdmi-a1:
- shard-glk: [FAIL][22] ([i915#79]) -> [PASS][23]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13102/shard-glk4/igt@kms_flip@[email protected]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_117231v1/shard-glk6/igt@kms_flip@[email protected]

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109274]: https://bugs.freedesktop.org/show_bug.cgi?id=109274
[fdo#109280]: https://bugs.freedesktop.org/show_bug.cgi?id=109280
[fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289
[fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[fdo#110189]: https://bugs.freedesktop.org/show_bug.cgi?id=110189
[fdo#111615]: https://bugs.freedesktop.org/show_bug.cgi?id=111615
[fdo#111825]: https://bugs.freedesktop.org/show_bug.cgi?id=111825
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#118]: https://gitlab.freedesktop.org/drm/intel/issues/118
[i915#1397]: https://gitlab.freedesktop.org/drm/intel/issues/1397
[i915#1825]: https://gitlab.freedesktop.org/drm/intel/issues/1825
[i915#1937]: https://gitlab.freedesktop.org/drm/intel/issues/1937
[i915#2575]: https://gitlab.freedesktop.org/drm/intel/issues/2575
[i915#2587]: https://gitlab.freedesktop.org/drm/intel/issues/2587
[i915#2672]: https://gitlab.freedesktop.org/drm/intel/issues/2672
[i915#2681]: https://gitlab.freedesktop.org/drm/intel/issues/2681
[i915#2705]: https://gitlab.freedesktop.org/drm/intel/issues/2705
[i915#280]: https://gitlab.freedesktop.org/drm/intel/issues/280
[i915#2842]: https://gitlab.freedesktop.org/drm/intel/issues/2842
[i915#315]: https://gitlab.freedesktop.org/drm/intel/issues/315
[i915#3297]: https://gitlab.freedesktop.org/drm/intel/issues/3297
[i915#3458]: https://gitlab.freedesktop.org/drm/intel/issues/3458
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3591]: https://gitlab.freedesktop.org/drm/intel/issues/3591
[i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637
[i915#3689]: https://gitlab.freedesktop.org/drm/intel/issues/3689
[i915#3804]: https://gitlab.freedesktop.org/drm/intel/issues/3804
[i915#3955]: https://gitlab.freedesktop.org/drm/intel/issues/3955
[i915#3989]: https://gitlab.freedesktop.org/drm/intel/issues/3989
[i915#4070]: https://gitlab.freedesktop.org/drm/intel/issues/4070
[i915#4078]: https://gitlab.freedesktop.org/drm/intel/issues/4078
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4270]: https://gitlab.freedesktop.org/drm/intel/issues/4270
[i915#4349]: https://gitlab.freedesktop.org/drm/intel/issues/4349
[i915#454]: https://gitlab.freedesktop.org/drm/intel/issues/454
[i915#4579]: https://gitlab.freedesktop.org/drm/intel/issues/4579
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4816]: https://gitlab.freedesktop.org/drm/intel/issues/4816
[i915#5176]: https://gitlab.freedesktop.org/drm/intel/issues/5176
[i915#5235]: https://gitlab.freedesktop.org/drm/intel/issues/5235
[i915#5286]: https://gitlab.freedesktop.org/drm/intel/issues/5286
[i915#5334]: https://gitlab.freedesktop.org/drm/intel/issues/5334
[i915#5354]: https://gitlab.freedesktop.org/drm/intel/issues/5354
[i915#6095]: https://gitlab.freedesktop.org/drm/intel/issues/6095
[i915#6433]: https://gitlab.freedesktop.org/drm/intel/issues/6433
[i915#6786]: https://gitlab.freedesktop.org/drm/intel/issues/6786
[i915#6946]: https://gitlab.freedesktop.org/drm/intel/issues/6946
[i915#7461]: https://gitlab.freedesktop.org/drm/intel/issues/7461
[i915#7711]: https://gitlab.freedesktop.org/drm/intel/issues/7711
[i915#7828]: https://gitlab.freedesktop.org/drm/intel/issues/7828
[i915#79]: https://gitlab.freedesktop.org/drm/intel/issues/79
[i915#7975]: https://gitlab.freedesktop.org/drm/intel/issues/7975
[i915#8011]: https://gitlab.freedesktop.org/drm/intel/issues/8011
[i915#8211]: https://gitlab.freedesktop.org/drm/intel/issues/8211
[i915#8213]: https://gitlab.freedesktop.org/drm/intel/issues/8213
[i915#8292]: https://gitlab.freedesktop.org/drm/intel/issues/8292
[i915#8295]: https://gitlab.freedesktop.org/drm/intel/issues/8295
[i915#8398]: https://gitlab.freedesktop.org/drm/intel/issues/8398

Build changes
-------------

* Linux: CI_DRM_13102 -> Patchwork_117231v1

CI-20190529: 20190529
CI_DRM_13102: b0492ca8c1cec314da218999babaa016df4cf9d1 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7277: 1cb3507f3ff28d11bd5cfabcde576fe78ddab571 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_117231v1: b0492ca8c1cec314da218999babaa016df4cf9d1 @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_117231v1/index.html