From: jsg Date: Thu, 15 Jun 2023 02:46:22 +0000 (+0000) Subject: drm/i915: taint kernel when force probing unsupported devices X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d218186b6ee9c3dca05062c1e840bf763326cefd;p=openbsd drm/i915: taint kernel when force probing unsupported devices From Jani Nikula dcd289136bccf2bdd519ee1eb355ed71c73cbe75 in linux-6.1.y/6.1.30 79c901c93562bdf1c84ce6c1b744fbbe4389a6eb in mainline linux --- diff --git a/sys/dev/pci/drm/i915/i915_pci.c b/sys/dev/pci/drm/i915/i915_pci.c index ef72617b105..7869032004d 100644 --- 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