linux/drivers/gpu/drm/xe
Nirmoy Das e977499820
drm/xe: Carve out wopcm portion from the stolen memory
The top of stolen memory is WOPCM, which shouldn't be accessed. Remove
this portion from the stolen memory region for discrete platforms.
This was already done for integrated, but was missing for discrete
platforms.

This also moves get_wopcm_size() so detect_bar2_dgfx() and
detect_bar2_integrated can use the same function.

v2: Improve commit message and suitable stable version tag(Lucas)

Fixes: d8b52a02cb ("drm/xe: Implement stolen memory.")
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: stable@vger.kernel.org # v6.11+
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250210143654.2076747-1-nirmoy.das@intel.com
Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
(cherry picked from commit 2c7f45cc7e)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2025-02-12 09:08:24 -05:00
..
abi drm/xe: Fix all typos in xe 2025-01-09 17:58:09 +01:00
compat-i915-headers drm/i915/uncore: add to_intel_uncore() and use it 2024-12-16 18:09:38 +02:00
display Merge drm/drm-next into drm-intel-next 2025-01-07 18:07:54 +02:00
instructions Revert "drm/xe: Force write completion of MI_STORE_DATA_IMM" 2025-01-02 05:35:16 -08:00
regs drm/xe/oa: Preserve oa_ctrl unused bits 2025-02-03 12:56:34 -05:00
tests drm next for 6.14-rc1 2025-01-21 16:09:47 -08:00
.gitignore
.kunitconfig
Kconfig
Kconfig.debug drm/xe: Fix all typos in xe 2025-01-09 17:58:09 +01:00
Kconfig.profile
Makefile Merge drm/drm-next into drm-intel-next 2025-01-07 18:07:54 +02:00
xe_args.h
xe_assert.h
xe_bb.c drm/xe: Fix all typos in xe 2025-01-09 17:58:09 +01:00
xe_bb.h
xe_bb_types.h
xe_bo.c drm/xe: Fix all typos in xe 2025-01-09 17:58:09 +01:00
xe_bo.h drm/xe/display: fix ttm_bo_access() usage 2024-12-04 10:28:33 +00:00
xe_bo_doc.h drm/xe: Fix all typos in xe 2025-01-09 17:58:09 +01:00
xe_bo_evict.c
xe_bo_evict.h
xe_bo_types.h UAPI Changes: 2024-12-13 10:19:44 +10:00
xe_debugfs.c
xe_debugfs.h
xe_devcoredump.c drm/xe: Fix and re-enable xe_print_blob_ascii85() 2025-02-03 12:56:52 -05:00
xe_devcoredump.h drm/xe: Fix and re-enable xe_print_blob_ascii85() 2025-02-03 12:56:52 -05:00
xe_devcoredump_types.h drm/xe: Add mutex locking to devcoredump 2024-12-02 15:50:44 -08:00
xe_device.c Mainly individually changelogged singleton patches. The patch series in 2025-01-26 17:50:53 -08:00
xe_device.h drm/xe/irq: Separate MSI and MSI-X flows 2024-12-13 13:38:13 -05:00
xe_device_sysfs.c
xe_device_sysfs.h
xe_device_types.h drm/xe/irq: Manage MSI-X interrupts allocation 2024-12-13 13:38:13 -05:00
xe_dma_buf.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
xe_dma_buf.h
xe_drm_client.c drm/xe/client: bo->client does not need bos_lock 2025-02-10 11:39:08 -05:00
xe_drm_client.h
xe_drv.h drm: remove driver date from struct drm_driver and all drivers 2024-12-05 12:35:42 +02:00
xe_exec.c drm/xe: Fix all typos in xe 2025-01-09 17:58:09 +01:00
xe_exec.h
xe_exec_queue.c Linux 6.13-rc6 2025-01-10 14:24:17 +10:00
xe_exec_queue.h
xe_exec_queue_types.h drm/xe: Remove "graphics tile" from kernel doc 2025-01-03 12:43:02 -08:00
xe_execlist.c drm/xe: Initial MSI-X support for HW engines 2024-12-13 13:38:13 -05:00
xe_execlist.h
xe_execlist_types.h
xe_force_wake.c
xe_force_wake.h
xe_force_wake_types.h
xe_gen_wa_oob.c
xe_ggtt.c drm/xe: Fix all typos in xe 2025-01-09 17:58:09 +01:00
xe_ggtt.h
xe_ggtt_types.h
xe_gpu_scheduler.c
xe_gpu_scheduler.h
xe_gpu_scheduler_types.h
xe_gsc.c
xe_gsc.h
xe_gsc_debugfs.c
xe_gsc_debugfs.h
xe_gsc_proxy.c
xe_gsc_proxy.h
xe_gsc_submit.c
xe_gsc_submit.h
xe_gsc_types.h
xe_gt.c drm/xe/pf: Fix migration initialization 2025-02-03 12:56:39 -05:00
xe_gt.h drm next for 6.14-rc1 2025-01-21 16:09:47 -08:00
xe_gt_ccs_mode.c drm/xe: make change ccs_mode a synchronous action 2025-01-15 11:32:50 +01:00
xe_gt_ccs_mode.h
xe_gt_clock.c
xe_gt_clock.h
xe_gt_debugfs.c drm/xe: introduce xe_gt_reset and xe_gt_wait_for_reset 2025-01-15 11:32:50 +01:00
xe_gt_debugfs.h
xe_gt_freq.c drm/xe: Introduce the RPa information 2025-01-08 15:49:21 -05:00
xe_gt_freq.h
xe_gt_idle.c drm/xe/dg1: Fix power gate sequence. 2025-01-09 10:38:56 +01:00
xe_gt_idle.h
xe_gt_idle_types.h
xe_gt_mcr.c drm/xe/guc: Adding steering info support for GuC register lists 2025-01-15 11:32:50 +01:00
xe_gt_mcr.h drm/xe/guc: Adding steering info support for GuC register lists 2025-01-15 11:32:50 +01:00
xe_gt_pagefault.c
xe_gt_pagefault.h
xe_gt_printk.h drm/xe: Introduce xe_gt_dbg_printer() 2024-12-11 07:28:08 -08:00
xe_gt_sriov_pf.c drm/xe/pf: Fix migration initialization 2025-02-03 12:56:39 -05:00
xe_gt_sriov_pf.h drm/xe/pf: Fix migration initialization 2025-02-03 12:56:39 -05:00
xe_gt_sriov_pf_config.c drm/xe: Fix all typos in xe 2025-01-09 17:58:09 +01:00
xe_gt_sriov_pf_config.h
xe_gt_sriov_pf_config_types.h
xe_gt_sriov_pf_control.c
xe_gt_sriov_pf_control.h
xe_gt_sriov_pf_control_types.h
xe_gt_sriov_pf_debugfs.c
xe_gt_sriov_pf_debugfs.h
xe_gt_sriov_pf_helpers.h
xe_gt_sriov_pf_migration.c
xe_gt_sriov_pf_migration.h
xe_gt_sriov_pf_migration_types.h
xe_gt_sriov_pf_monitor.c
xe_gt_sriov_pf_monitor.h
xe_gt_sriov_pf_monitor_types.h
xe_gt_sriov_pf_policy.c
xe_gt_sriov_pf_policy.h
xe_gt_sriov_pf_policy_types.h
xe_gt_sriov_pf_service.c
xe_gt_sriov_pf_service.h
xe_gt_sriov_pf_service_types.h
xe_gt_sriov_pf_types.h
xe_gt_sriov_printk.h
xe_gt_sriov_vf.c
xe_gt_sriov_vf.h
xe_gt_sriov_vf_debugfs.c
xe_gt_sriov_vf_debugfs.h
xe_gt_sriov_vf_types.h
xe_gt_stats.c drm/xe: Remove "graphics tile" from kernel doc 2025-01-03 12:43:02 -08:00
xe_gt_stats.h
xe_gt_stats_types.h
xe_gt_sysfs.c
xe_gt_sysfs.h
xe_gt_sysfs_types.h
xe_gt_throttle.c drm/xe/throttle: Log throttle reasons 2024-12-02 12:07:28 -05:00
xe_gt_throttle.h
xe_gt_tlb_invalidation.c drm/xe: Fix tlb invalidation when wedging 2025-01-09 10:38:56 +01:00
xe_gt_tlb_invalidation.h drm/xe: Fix tlb invalidation when wedging 2025-01-09 10:38:56 +01:00
xe_gt_tlb_invalidation_types.h
xe_gt_topology.c
xe_gt_topology.h
xe_gt_types.h
xe_guc.c drm/xe/guc: Enable WA_DUAL_QUEUE for newer platforms 2024-12-16 13:24:27 -08:00
xe_guc.h
xe_guc_ads.c drm/xe/guc: Adding steering info support for GuC register lists 2025-01-15 11:32:50 +01:00
xe_guc_ads.h
xe_guc_ads_types.h
xe_guc_capture.c drm/xe: Fix all typos in xe 2025-01-09 17:58:09 +01:00
xe_guc_capture.h
xe_guc_capture_types.h drm/xe: Fix all typos in xe 2025-01-09 17:58:09 +01:00
xe_guc_ct.c drm/xe: Fix and re-enable xe_print_blob_ascii85() 2025-02-03 12:56:52 -05:00
xe_guc_ct.h
xe_guc_ct_types.h
xe_guc_db_mgr.c
xe_guc_db_mgr.h
xe_guc_debugfs.c
xe_guc_debugfs.h
xe_guc_exec_queue_types.h
xe_guc_fwif.h
xe_guc_hwconfig.c
xe_guc_hwconfig.h
xe_guc_hxg_helpers.h
xe_guc_id_mgr.c
xe_guc_id_mgr.h
xe_guc_klv_helpers.c
xe_guc_klv_helpers.h
xe_guc_klv_thresholds_set.h
xe_guc_klv_thresholds_set_types.h
xe_guc_log.c drm/xe: Fix and re-enable xe_print_blob_ascii85() 2025-02-03 12:56:52 -05:00
xe_guc_log.h
xe_guc_log_types.h
xe_guc_pc.c drm/xe/slpc: Remove unnecessary force wakes 2025-01-08 18:05:16 -05:00
xe_guc_pc.h drm/xe: Introduce the RPa information 2025-01-08 15:49:21 -05:00
xe_guc_pc_types.h drm/xe: Introduce the RPa information 2025-01-08 15:49:21 -05:00
xe_guc_relay.c
xe_guc_relay.h
xe_guc_relay_types.h
xe_guc_submit.c drm/xe: Fix all typos in xe 2025-01-09 17:58:09 +01:00
xe_guc_submit.h
xe_guc_submit_types.h
xe_guc_types.h
xe_heci_gsc.c
xe_heci_gsc.h
xe_hmm.c drm/xe: Fix all typos in xe 2025-01-09 17:58:09 +01:00
xe_hmm.h
xe_huc.c
xe_huc.h
xe_huc_debugfs.c
xe_huc_debugfs.h
xe_huc_types.h
xe_hw_engine.c drm next for 6.14-rc1 2025-01-21 16:09:47 -08:00
xe_hw_engine.h
xe_hw_engine_class_sysfs.c
xe_hw_engine_class_sysfs.h
xe_hw_engine_group.c
xe_hw_engine_group.h
xe_hw_engine_group_types.h
xe_hw_engine_types.h drm/xe: Remove "graphics tile" from kernel doc 2025-01-03 12:43:02 -08:00
xe_hw_fence.c
xe_hw_fence.h
xe_hw_fence_types.h drm/xe: Remove "graphics tile" from kernel doc 2025-01-03 12:43:02 -08:00
xe_hwmon.c
xe_hwmon.h
xe_irq.c drm/xe/irq: Manage MSI-X interrupts allocation 2024-12-13 13:38:13 -05:00
xe_irq.h drm/xe/irq: Manage MSI-X interrupts allocation 2024-12-13 13:38:13 -05:00
xe_lmtt.c
xe_lmtt.h
xe_lmtt_2l.c
xe_lmtt_ml.c
xe_lmtt_types.h
xe_lrc.c drm/xe: Initial MSI-X support for HW engines 2024-12-13 13:38:13 -05:00
xe_lrc.h drm/xe: Initial MSI-X support for HW engines 2024-12-13 13:38:13 -05:00
xe_lrc_types.h
xe_macros.h
xe_map.h
xe_memirq.c drm/xe: Use managed BO in memirq 2024-12-05 07:37:53 -08:00
xe_memirq.h
xe_memirq_types.h
xe_migrate.c drm/xe: Fix all typos in xe 2025-01-09 17:58:09 +01:00
xe_migrate.h
xe_migrate_doc.h
xe_mmio.c
xe_mmio.h
xe_mocs.c
xe_mocs.h
xe_module.c
xe_module.h
xe_oa.c drm/xe/oa: Set stream->pollin in xe_oa_buffer_check_unlocked 2025-02-03 12:56:44 -05:00
xe_oa.h
xe_oa_types.h xe/oa: Drop the unused logic to parse context image 2024-12-23 19:10:43 -08:00
xe_observation.c treewide: const qualify ctl_tables where applicable 2025-01-28 13:48:37 +01:00
xe_observation.h
xe_pat.c
xe_pat.h
xe_pci.c drm/xe: Fix all typos in xe 2025-01-09 17:58:09 +01:00
xe_pci.h
xe_pci_sriov.c
xe_pci_sriov.h
xe_pci_types.h
xe_pcode.c drm/xe: Fix all typos in xe 2025-01-09 17:58:09 +01:00
xe_pcode.h
xe_pcode_api.h
xe_platform_types.h
xe_pm.c Driver Changes: 2025-01-13 11:07:40 +10:00
xe_pm.h
xe_preempt_fence.c
xe_preempt_fence.h
xe_preempt_fence_types.h
xe_pt.c drm/xe: Fix all typos in xe 2025-01-09 17:58:09 +01:00
xe_pt.h
xe_pt_types.h
xe_pt_walk.c
xe_pt_walk.h
xe_query.c drm/xe/oa/uapi: Expose an unblock after N reports OA property 2024-12-16 18:04:14 -08:00
xe_query.h
xe_range_fence.c
xe_range_fence.h
xe_reg_sr.c drm/xe/reg_sr: Remove register pool 2024-12-12 16:57:28 +01:00
xe_reg_sr.h
xe_reg_sr_types.h drm/xe/reg_sr: Remove register pool 2024-12-12 16:57:28 +01:00
xe_reg_whitelist.c drm/xe: Apply whitelist to engine save-restore 2024-12-11 07:28:58 -08:00
xe_reg_whitelist.h
xe_res_cursor.h
xe_ring_ops.c xe/oa: Fix query mode of operation for OAR/OAC 2025-01-02 19:01:21 +01:00
xe_ring_ops.h
xe_ring_ops_types.h
xe_rtp.c drm/xe/rtp: Add match helper to omit SR-IOV VF device 2025-01-07 15:22:00 -08:00
xe_rtp.h drm/xe: Fix all typos in xe 2025-01-09 17:58:09 +01:00
xe_rtp_helpers.h
xe_rtp_types.h
xe_sa.c
xe_sa.h
xe_sa_types.h
xe_sched_job.c
xe_sched_job.h
xe_sched_job_types.h xe/oa: Fix query mode of operation for OAR/OAC 2025-01-02 19:01:21 +01:00
xe_sriov.c
xe_sriov.h
xe_sriov_pf.c
xe_sriov_pf.h
xe_sriov_pf_helpers.h
xe_sriov_printk.h
xe_sriov_types.h
xe_sriov_vf.c
xe_sriov_vf.h
xe_step.c
xe_step.h
xe_step_types.h
xe_sync.c
xe_sync.h
xe_sync_types.h
xe_tile.c
xe_tile.h
xe_tile_sysfs.c
xe_tile_sysfs.h
xe_tile_sysfs_types.h
xe_trace.c
xe_trace.h
xe_trace_bo.c
xe_trace_bo.h drm/xe/tracing: Fix a potential TP_printk UAF 2024-12-23 18:28:50 +01:00
xe_trace_guc.c
xe_trace_guc.h
xe_trace_lrc.c
xe_trace_lrc.h
xe_ttm_stolen_mgr.c drm/xe: Carve out wopcm portion from the stolen memory 2025-02-12 09:08:24 -05:00
xe_ttm_stolen_mgr.h
xe_ttm_sys_mgr.c
xe_ttm_sys_mgr.h
xe_ttm_vram_mgr.c DMEM cgroup pull request 2025-01-11 07:20:29 +10:00
xe_ttm_vram_mgr.h
xe_ttm_vram_mgr_types.h
xe_tuning.c
xe_tuning.h
xe_uc.c
xe_uc.h
xe_uc_debugfs.c
xe_uc_debugfs.h
xe_uc_fw.c
xe_uc_fw.h
xe_uc_fw_abi.h
xe_uc_fw_types.h drm/xe: Fix all typos in xe 2025-01-09 17:58:09 +01:00
xe_uc_types.h
xe_vm.c Driver Changes: 2025-01-13 11:07:40 +10:00
xe_vm.h
xe_vm_doc.h drm/xe/vm_doc: fix more doc typos 2024-12-02 15:03:58 -05:00
xe_vm_types.h
xe_vram.c
xe_vram.h
xe_vram_freq.c
xe_vram_freq.h
xe_vsec.c Merge drm/drm-next into drm-xe-next 2024-12-09 09:59:47 -05:00
xe_vsec.h drm/xe/vsec: Support BMG devices 2024-12-03 15:02:55 -05:00
xe_wa.c
xe_wa.h
xe_wa_oob.rules drm/xe/vf: Don't apply Wa_22019338487 for VF 2025-01-07 15:22:19 -08:00
xe_wait_user_fence.c
xe_wait_user_fence.h
xe_wopcm.c
xe_wopcm.h
xe_wopcm_types.h