artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db1b00f
)
drm/i915: taint kernel when force probing unsupported devices
author
jsg
<jsg@openbsd.org>
Thu, 15 Jun 2023 02:46:22 +0000
(
02:46
+0000)
committer
jsg
<jsg@openbsd.org>
Thu, 15 Jun 2023 02:46:22 +0000
(
02:46
+0000)
From Jani Nikula
dcd289136bccf2bdd519ee1eb355ed71c73cbe75
in linux-6.1.y/6.1.30
79c901c93562bdf1c84ce6c1b744fbbe4389a6eb
in mainline linux
sys/dev/pci/drm/i915/i915_pci.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/i915/i915_pci.c
b/sys/dev/pci/drm/i915/i915_pci.c
index
ef72617
..
7869032
100644
(file)
--- a/
sys/dev/pci/drm/i915/i915_pci.c
+++ b/
sys/dev/pci/drm/i915/i915_pci.c
@@
-1344,6
+1344,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