drm/xe: Introduce a new DRM driver for Intel GPUs
authorMatthew Brost <matthew.brost@intel.com>
Thu, 30 Mar 2023 21:31:57 +0000 (17:31 -0400)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 12 Dec 2023 19:05:48 +0000 (14:05 -0500)
commitdd08ebf6c3525a7ea2186e636df064ea47281987
tree1d4f1667a09c9bfd36a98746d88858aecc677fe0
parenta60501d7c2d3e70b3545b9b96576628e369d8e85
drm/xe: Introduce a new DRM driver for Intel GPUs

Xe, is a new driver for Intel GPUs that supports both integrated and
discrete platforms starting with Tiger Lake (first Intel Xe Architecture).

The code is at a stage where it is already functional and has experimental
support for multiple platforms starting from Tiger Lake, with initial
support implemented in Mesa (for Iris and Anv, our OpenGL and Vulkan
drivers), as well as in NEO (for OpenCL and Level0).

The new Xe driver leverages a lot from i915.

As for display, the intent is to share the display code with the i915
driver so that there is maximum reuse there. But it is not added
in this patch.

This initial work is a collaboration of many people and unfortunately
the big squashed patch won't fully honor the proper credits. But let's
get some git quick stats so we can at least try to preserve some of the
credits:

Co-developed-by: Matthew Brost <matthew.brost@intel.com>
Co-developed-by: Matthew Auld <matthew.auld@intel.com>
Co-developed-by: Matt Roper <matthew.d.roper@intel.com>
Co-developed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Co-developed-by: Francois Dugast <francois.dugast@intel.com>
Co-developed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Co-developed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Co-developed-by: Philippe Lecluse <philippe.lecluse@intel.com>
Co-developed-by: Nirmoy Das <nirmoy.das@intel.com>
Co-developed-by: Jani Nikula <jani.nikula@intel.com>
Co-developed-by: José Roberto de Souza <jose.souza@intel.com>
Co-developed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Co-developed-by: Dave Airlie <airlied@redhat.com>
Co-developed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Co-developed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Co-developed-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
210 files changed:
Documentation/gpu/drivers.rst
Documentation/gpu/xe/index.rst [new file with mode: 0644]
Documentation/gpu/xe/xe_cs.rst [new file with mode: 0644]
Documentation/gpu/xe/xe_firmware.rst [new file with mode: 0644]
Documentation/gpu/xe/xe_gt_mcr.rst [new file with mode: 0644]
Documentation/gpu/xe/xe_map.rst [new file with mode: 0644]
Documentation/gpu/xe/xe_migrate.rst [new file with mode: 0644]
Documentation/gpu/xe/xe_mm.rst [new file with mode: 0644]
Documentation/gpu/xe/xe_pcode.rst [new file with mode: 0644]
Documentation/gpu/xe/xe_pm.rst [new file with mode: 0644]
Documentation/gpu/xe/xe_rtp.rst [new file with mode: 0644]
Documentation/gpu/xe/xe_wa.rst [new file with mode: 0644]
drivers/gpu/drm/Kconfig
drivers/gpu/drm/Makefile
drivers/gpu/drm/xe/.gitignore [new file with mode: 0644]
drivers/gpu/drm/xe/Kconfig [new file with mode: 0644]
drivers/gpu/drm/xe/Kconfig.debug [new file with mode: 0644]
drivers/gpu/drm/xe/Makefile [new file with mode: 0644]
drivers/gpu/drm/xe/abi/guc_actions_abi.h [new file with mode: 0644]
drivers/gpu/drm/xe/abi/guc_actions_slpc_abi.h [new file with mode: 0644]
drivers/gpu/drm/xe/abi/guc_communication_ctb_abi.h [new file with mode: 0644]
drivers/gpu/drm/xe/abi/guc_communication_mmio_abi.h [new file with mode: 0644]
drivers/gpu/drm/xe/abi/guc_errors_abi.h [new file with mode: 0644]
drivers/gpu/drm/xe/abi/guc_klvs_abi.h [new file with mode: 0644]
drivers/gpu/drm/xe/abi/guc_messages_abi.h [new file with mode: 0644]
drivers/gpu/drm/xe/tests/Makefile [new file with mode: 0644]
drivers/gpu/drm/xe/tests/xe_bo.c [new file with mode: 0644]
drivers/gpu/drm/xe/tests/xe_bo_test.c [new file with mode: 0644]
drivers/gpu/drm/xe/tests/xe_dma_buf.c [new file with mode: 0644]
drivers/gpu/drm/xe/tests/xe_dma_buf_test.c [new file with mode: 0644]
drivers/gpu/drm/xe/tests/xe_migrate.c [new file with mode: 0644]
drivers/gpu/drm/xe/tests/xe_migrate_test.c [new file with mode: 0644]
drivers/gpu/drm/xe/tests/xe_test.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_bb.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_bb.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_bb_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_bo.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_bo.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_bo_doc.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_bo_evict.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_bo_evict.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_bo_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_debugfs.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_debugfs.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_device.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_device.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_device_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_dma_buf.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_dma_buf.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_drv.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_engine.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_engine.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_engine_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_exec.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_exec.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_execlist.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_execlist.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_execlist_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_force_wake.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_force_wake.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_force_wake_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_ggtt.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_ggtt.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_ggtt_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gpu_scheduler.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gpu_scheduler.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gpu_scheduler_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gt.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gt.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gt_clock.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gt_clock.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gt_debugfs.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gt_debugfs.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gt_mcr.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gt_mcr.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gt_pagefault.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gt_pagefault.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gt_sysfs.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gt_sysfs.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gt_sysfs_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gt_topology.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gt_topology.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gt_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc_ads.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc_ads.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc_ads_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc_ct.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc_ct.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc_ct_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc_debugfs.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc_debugfs.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc_engine_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc_fwif.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc_hwconfig.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc_hwconfig.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc_log.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc_log.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc_log_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc_pc.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc_pc.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc_pc_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc_reg.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc_submit.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc_submit.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_huc.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_huc.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_huc_debugfs.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_huc_debugfs.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_huc_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_hw_engine.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_hw_engine.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_hw_engine_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_hw_fence.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_hw_fence.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_hw_fence_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_irq.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_irq.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_lrc.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_lrc.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_lrc_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_macros.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_map.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_migrate.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_migrate.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_migrate_doc.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_mmio.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_mmio.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_mocs.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_mocs.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_module.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_module.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_pci.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_pci.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_pcode.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_pcode.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_pcode_api.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_platform_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_pm.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_pm.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_preempt_fence.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_preempt_fence.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_preempt_fence_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_pt.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_pt.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_pt_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_pt_walk.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_pt_walk.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_query.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_query.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_reg_sr.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_reg_sr.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_reg_sr_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_reg_whitelist.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_reg_whitelist.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_res_cursor.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_ring_ops.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_ring_ops.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_ring_ops_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_rtp.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_rtp.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_rtp_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_sa.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_sa.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_sa_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_sched_job.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_sched_job.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_sched_job_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_step.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_step.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_step_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_sync.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_sync.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_sync_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_trace.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_trace.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_ttm_gtt_mgr.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_ttm_gtt_mgr.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_ttm_gtt_mgr_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_ttm_vram_mgr.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_ttm_vram_mgr.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_ttm_vram_mgr_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_tuning.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_tuning.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_uc.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_uc.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_uc_debugfs.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_uc_debugfs.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_uc_fw.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_uc_fw.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_uc_fw_abi.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_uc_fw_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_uc_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_vm.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_vm.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_vm_doc.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_vm_madvise.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_vm_madvise.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_vm_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_wa.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_wa.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_wait_user_fence.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_wait_user_fence.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_wopcm.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_wopcm.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_wopcm_types.h [new file with mode: 0644]
include/drm/xe_pciids.h [new file with mode: 0644]
include/uapi/drm/xe_drm.h [new file with mode: 0644]