linux/drivers/gpu/drm/i915
Jani Nikula dcd289136b drm/i915: taint kernel when force probing unsupported devices
[ Upstream commit 79c901c935 ]

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.

v2: Drop "depends on EXPERT" to avoid build breakage (kernel test robot)

Fixes: 7ef5ef5cde ("drm/i915: add force_probe module parameter to replace alpha_support")
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Dave Airlie <airlied@gmail.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230504103508.1818540-1-jani.nikula@intel.com
(cherry picked from commit 3312bb4ad0)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-24 17:32:33 +01:00
..
display drm/i915/dp: prevent potential div-by-zero 2023-05-24 17:32:33 +01:00
gem drm/i915/dpt: Treat the DPT BO as a framebuffer 2023-04-06 12:10:56 +02:00
gt drm/i915/guc: Don't capture Gen8 regs on Xe devices 2023-05-24 17:32:33 +01:00
gvt drm/i915/gvt: fix vgpu debugfs clean in remove 2023-01-12 12:02:53 +01:00
pxp Merge tag 'drm-intel-gt-next-2022-09-16' of git://anongit.freedesktop.org/drm/drm-intel into drm-next 2022-09-21 07:42:47 +10:00
selftests drm/i915/selftest: fix intel_selftest_modify_policy argument types 2023-02-01 08:34:44 +01:00
.gitignore
i915_active_types.h
i915_active.c drm/i915/active: Fix missing debug object activation 2023-03-30 12:49:28 +02:00
i915_active.h
i915_cmd_parser.c
i915_cmd_parser.h
i915_config.c
i915_debugfs_params.c
i915_debugfs_params.h
i915_debugfs.c Merge tag 'drm-intel-next-2022-09-16-1' of git://anongit.freedesktop.org/drm/drm-intel into drm-next 2022-09-21 07:51:00 +10:00
i915_debugfs.h
i915_deps.c
i915_deps.h
i915_driver.c drm/i915: Remove unused variable 2023-01-24 07:24:40 +01:00
i915_driver.h
i915_drm_client.c
i915_drm_client.h
i915_drv.h drm/i915/display: remove ipc_enabled from struct drm_i915_private 2022-09-27 11:05:15 +01:00
i915_file_private.h
i915_fixed.h
i915_gem_evict.c drm/i915: improve the catch-all evict to handle lock contention 2023-01-07 11:12:03 +01:00
i915_gem_evict.h drm/i915: improve the catch-all evict to handle lock contention 2023-01-07 11:12:03 +01:00
i915_gem_gtt.c treewide: use get_random_u32() when possible 2022-10-11 17:42:58 -06:00
i915_gem_gtt.h
i915_gem_ww.c
i915_gem_ww.h
i915_gem.c drm/i915: Encapsulate lmem rpm stuff in intel_runtime_pm 2022-12-31 13:32:06 +01:00
i915_gem.h Merge tag 'drm-intel-next-2022-09-16-1' of git://anongit.freedesktop.org/drm/drm-intel into drm-next 2022-09-21 07:51:00 +10:00
i915_getparam.c drm/i915: move overlay to display.overlay 2022-08-29 13:24:26 +03:00
i915_getparam.h
i915_gpu_error.c drm/i915: Fix up locking around dumping requests lists 2023-02-09 11:28:07 +01:00
i915_gpu_error.h drm/i915/guc: Rename GuC register state capture node to be more obvious 2023-03-30 12:49:06 +02:00
i915_ioc32.c
i915_ioc32.h
i915_ioctl.c
i915_ioctl.h
i915_iosf_mbi.h
i915_irq.c drm/i915/dsi: add support for ICL+ native MIPI GPIO sequence 2023-01-12 12:02:57 +01:00
i915_irq.h
i915_memcpy.c
i915_memcpy.h
i915_mitigations.c
i915_mitigations.h
i915_mm.c
i915_mm.h
i915_module.c
i915_params.c drm/i915: Expand force_probe to block probe of devices as well. 2023-05-24 17:32:33 +01:00
i915_params.h drm/i915/guc: Remove log size module parameters 2022-08-29 15:02:48 +03:00
i915_pci.c drm/i915: taint kernel when force probing unsupported devices 2023-05-24 17:32:33 +01:00
i915_pci.h drm/i915: Sanitycheck PCI BARs 2022-08-10 13:11:17 +03:00
i915_perf_oa_regs.h
i915_perf_types.h
i915_perf.c drm/i915: fix race condition UAF in i915_perf_add_config_ioctl 2023-04-13 16:55:36 +02:00
i915_perf.h
i915_pmu.c
i915_pmu.h
i915_priolist_types.h
i915_pvinfo.h
i915_query.c
i915_query.h
i915_reg_defs.h
i915_reg.h drm/i915/color: Fix typo for Plane CSC indexes 2023-05-17 11:53:47 +02:00
i915_request.c
i915_request.h
i915_scatterlist.c
i915_scatterlist.h drm/i915: stop abusing swiotlb_max_segment 2022-10-31 12:32:04 +00:00
i915_scheduler_types.h
i915_scheduler.c
i915_scheduler.h
i915_selftest.h Revert "drm/i915/guc: Add delay to disable scheduling after pin count goes to zero" 2022-08-20 09:41:56 -07:00
i915_suspend.c
i915_suspend.h
i915_sw_fence_work.c
i915_sw_fence_work.h
i915_sw_fence.c drm/i915/fence: replace BUG_ON() with BUILD_BUG_ON() 2022-08-31 18:34:11 +03:00
i915_sw_fence.h drm/i915/fence: replace BUG_ON() with BUILD_BUG_ON() 2022-08-31 18:34:11 +03:00
i915_switcheroo.c drm/i915: Allow switching away via vga-switcheroo if uninitialized 2023-01-24 07:24:40 +01:00
i915_switcheroo.h
i915_syncmap.c
i915_syncmap.h
i915_sysfs.c
i915_sysfs.h
i915_tasklet.h
i915_trace_points.c
i915_trace.h
i915_ttm_buddy_manager.c drm/i915: Implement intersect/compatible functions 2022-08-22 15:35:45 +02:00
i915_ttm_buddy_manager.h
i915_user_extensions.c
i915_user_extensions.h
i915_utils.c
i915_utils.h drm/i915/utils: remove unused KBps/MBps/GBps macros 2022-08-23 15:38:30 +03:00
i915_vgpu.c
i915_vgpu.h
i915_vma_resource.c drm/i915/gt: Batch TLB invalidations 2022-08-08 14:06:55 -04:00
i915_vma_resource.h drm/i915/gt: Batch TLB invalidations 2022-08-08 14:06:55 -04:00
i915_vma_types.h drm/i915: Rename ggtt_view as gtt_view 2022-09-08 10:24:17 +01:00
i915_vma.c drm/i915: Reserve enough fence slot for i915_vma_unbind_async 2023-01-18 11:58:13 +01:00
i915_vma.h drm/i915: Rename ggtt_view as gtt_view 2022-09-08 10:24:17 +01:00
intel_device_info.c drm/i915: fix device info for devices without display 2022-09-27 11:05:26 +01:00
intel_device_info.h Merge tag 'drm-intel-next-2022-09-16-1' of git://anongit.freedesktop.org/drm/drm-intel into drm-next 2022-09-21 07:51:00 +10:00
intel_dram.c drm/i915/mtl: Fix dram info readout 2022-11-29 08:49:14 +00:00
intel_dram.h
intel_gvt_mmio_table.c drm pull for 6.1-rc1 2022-10-05 11:24:12 -07:00
intel_gvt.c
intel_gvt.h
intel_mchbar_regs.h drm/i915/guc/slpc: Allow SLPC to use efficient frequency 2022-08-24 09:17:15 -04:00
intel_memory_region.c
intel_memory_region.h
intel_pch.c drm/i915/mtl: Add PCH support 2022-08-25 12:50:40 -07:00
intel_pch.h drm/i915/mtl: Add PCH support 2022-08-25 12:50:40 -07:00
intel_pci_config.h drm/i915: Use of BARs names instead of numbers 2022-08-10 13:11:14 +03:00
intel_pcode.c
intel_pcode.h
intel_pm_types.h
intel_pm.c Merge tag 'drm-intel-next-2022-09-16-1' of git://anongit.freedesktop.org/drm/drm-intel into drm-next 2022-09-21 07:51:00 +10:00
intel_pm.h drm/i915: Extract skl_watermark.c 2022-09-09 16:50:33 +03:00
intel_region_ttm.c
intel_region_ttm.h
intel_runtime_pm.c drm/i915/dgfx: Grab wakeref at i915_ttm_unmap_virtual 2022-12-31 13:32:06 +01:00
intel_runtime_pm.h drm/i915/dgfx: Grab wakeref at i915_ttm_unmap_virtual 2022-12-31 13:32:06 +01:00
intel_sbi.c
intel_sbi.h
intel_step.c
intel_step.h
intel_uncore.c Merge tag 'drm-intel-gt-next-2022-09-16' of git://anongit.freedesktop.org/drm/drm-intel into drm-next 2022-09-21 07:42:47 +10:00
intel_uncore.h drm/i915/uncore: Add GSI offset to uncore 2022-09-12 15:23:12 +03:00
intel_wakeref.c
intel_wakeref.h
intel_wopcm.c
intel_wopcm.h
Kconfig drm/i915: taint kernel when force probing unsupported devices 2023-05-24 17:32:33 +01:00
Kconfig.debug
Kconfig.profile
Kconfig.unstable
Makefile drm/i915/tgl+: Add locking around DKL PHY register accesses 2022-10-31 12:31:57 +00:00
TODO.txt
vlv_sideband_reg.h
vlv_sideband.c
vlv_sideband.h
vlv_suspend.c
vlv_suspend.h