mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
drm/xe: Sort includes
Sort includes and split them in blocks: 1) .h corresponding to the .c. Example: xe_bb.c should have a "#include "xe_bb.h" first. 2) #include <linux/...> 3) #include <drm/...> 4) local includes 5) i915 includes This is accomplished by running `clang-format --style=file -i --sort-includes drivers/gpu/drm/xe/*.[ch]` and ignoring all the changes after the includes. There are also some manual tweaks to split the blocks. v2: Also sort includes in headers Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
committed by
Rodrigo Vivi
parent
ba11f1b7ea
commit
ea9f879d03
@@ -4,10 +4,11 @@
|
||||
*/
|
||||
|
||||
#include "xe_bb.h"
|
||||
#include "xe_sa.h"
|
||||
|
||||
#include "xe_device.h"
|
||||
#include "xe_engine_types.h"
|
||||
#include "xe_hw_fence.h"
|
||||
#include "xe_sa.h"
|
||||
#include "xe_sched_job.h"
|
||||
#include "xe_vm_types.h"
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
* Copyright © 2021 Intel Corporation
|
||||
*/
|
||||
|
||||
|
||||
#include "xe_bo.h"
|
||||
|
||||
#include <linux/dma-buf.h>
|
||||
|
||||
@@ -3,8 +3,9 @@
|
||||
* Copyright © 2022 Intel Corporation
|
||||
*/
|
||||
|
||||
#include "xe_bo.h"
|
||||
#include "xe_bo_evict.h"
|
||||
|
||||
#include "xe_bo.h"
|
||||
#include "xe_device.h"
|
||||
#include "xe_ggtt.h"
|
||||
#include "xe_gt.h"
|
||||
|
||||
@@ -3,13 +3,14 @@
|
||||
* Copyright © 2022 Intel Corporation
|
||||
*/
|
||||
|
||||
#include "xe_debugfs.h"
|
||||
|
||||
#include <linux/string_helpers.h>
|
||||
|
||||
#include <drm/drm_debugfs.h>
|
||||
|
||||
#include "xe_bo.h"
|
||||
#include "xe_device.h"
|
||||
#include "xe_debugfs.h"
|
||||
#include "xe_gt_debugfs.h"
|
||||
#include "xe_step.h"
|
||||
|
||||
|
||||
@@ -5,12 +5,12 @@
|
||||
|
||||
#include "xe_device.h"
|
||||
|
||||
#include <drm/drm_gem_ttm_helper.h>
|
||||
#include <drm/drm_aperture.h>
|
||||
#include <drm/drm_ioctl.h>
|
||||
#include <drm/xe_drm.h>
|
||||
#include <drm/drm_managed.h>
|
||||
#include <drm/drm_atomic_helper.h>
|
||||
#include <drm/drm_gem_ttm_helper.h>
|
||||
#include <drm/drm_ioctl.h>
|
||||
#include <drm/drm_managed.h>
|
||||
#include <drm/xe_drm.h>
|
||||
|
||||
#include "xe_bo.h"
|
||||
#include "xe_debugfs.h"
|
||||
@@ -20,8 +20,8 @@
|
||||
#include "xe_exec.h"
|
||||
#include "xe_gt.h"
|
||||
#include "xe_irq.h"
|
||||
#include "xe_module.h"
|
||||
#include "xe_mmio.h"
|
||||
#include "xe_module.h"
|
||||
#include "xe_pcode.h"
|
||||
#include "xe_pm.h"
|
||||
#include "xe_query.h"
|
||||
|
||||
@@ -12,8 +12,8 @@ struct xe_file;
|
||||
#include <drm/drm_util.h>
|
||||
|
||||
#include "xe_device_types.h"
|
||||
#include "xe_macros.h"
|
||||
#include "xe_force_wake.h"
|
||||
#include "xe_macros.h"
|
||||
|
||||
#include "gt/intel_gpu_commands.h"
|
||||
|
||||
|
||||
@@ -3,20 +3,19 @@
|
||||
* Copyright © 2022 Intel Corporation
|
||||
*/
|
||||
|
||||
#include "xe_dma_buf.h"
|
||||
|
||||
#include <kunit/test.h>
|
||||
#include <linux/dma-buf.h>
|
||||
#include <linux/pci-p2pdma.h>
|
||||
|
||||
#include <drm/drm_device.h>
|
||||
#include <drm/drm_prime.h>
|
||||
|
||||
#include <drm/ttm/ttm_tt.h>
|
||||
|
||||
#include <kunit/test.h>
|
||||
#include <linux/pci-p2pdma.h>
|
||||
|
||||
#include "tests/xe_test.h"
|
||||
#include "xe_bo.h"
|
||||
#include "xe_device.h"
|
||||
#include "xe_dma_buf.h"
|
||||
#include "xe_ttm_vram_mgr.h"
|
||||
#include "xe_vm.h"
|
||||
|
||||
|
||||
@@ -5,10 +5,11 @@
|
||||
|
||||
#include "xe_engine.h"
|
||||
|
||||
#include <linux/nospec.h>
|
||||
|
||||
#include <drm/drm_device.h>
|
||||
#include <drm/drm_file.h>
|
||||
#include <drm/xe_drm.h>
|
||||
#include <linux/nospec.h>
|
||||
|
||||
#include "xe_device.h"
|
||||
#include "xe_gt.h"
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
* Copyright © 2022 Intel Corporation
|
||||
*/
|
||||
|
||||
#include "xe_exec.h"
|
||||
|
||||
#include <drm/drm_device.h>
|
||||
#include <drm/drm_file.h>
|
||||
#include <drm/xe_drm.h>
|
||||
@@ -10,7 +12,6 @@
|
||||
#include "xe_bo.h"
|
||||
#include "xe_device.h"
|
||||
#include "xe_engine.h"
|
||||
#include "xe_exec.h"
|
||||
#include "xe_macros.h"
|
||||
#include "xe_sched_job.h"
|
||||
#include "xe_sync.h"
|
||||
|
||||
@@ -3,15 +3,15 @@
|
||||
* Copyright © 2021 Intel Corporation
|
||||
*/
|
||||
|
||||
#include <drm/drm_managed.h>
|
||||
|
||||
#include "xe_execlist.h"
|
||||
|
||||
#include <drm/drm_managed.h>
|
||||
|
||||
#include "xe_bo.h"
|
||||
#include "xe_device.h"
|
||||
#include "xe_engine.h"
|
||||
#include "xe_hw_fence.h"
|
||||
#include "xe_gt.h"
|
||||
#include "xe_hw_fence.h"
|
||||
#include "xe_lrc.h"
|
||||
#include "xe_macros.h"
|
||||
#include "xe_mmio.h"
|
||||
@@ -19,11 +19,11 @@
|
||||
#include "xe_ring_ops_types.h"
|
||||
#include "xe_sched_job.h"
|
||||
|
||||
#include "i915_reg.h"
|
||||
#include "gt/intel_engine_regs.h"
|
||||
#include "gt/intel_gpu_commands.h"
|
||||
#include "gt/intel_gt_regs.h"
|
||||
#include "gt/intel_lrc_reg.h"
|
||||
#include "gt/intel_engine_regs.h"
|
||||
#include "i915_reg.h"
|
||||
|
||||
#define XE_EXECLIST_HANG_LIMIT 1
|
||||
|
||||
|
||||
@@ -3,13 +3,14 @@
|
||||
* Copyright © 2022 Intel Corporation
|
||||
*/
|
||||
|
||||
#include "xe_force_wake.h"
|
||||
|
||||
#include <drm/drm_util.h>
|
||||
|
||||
#include "xe_force_wake.h"
|
||||
#include "xe_gt.h"
|
||||
#include "xe_mmio.h"
|
||||
#include "gt/intel_gt_regs.h"
|
||||
|
||||
#include "gt/intel_gt_regs.h"
|
||||
|
||||
#define XE_FORCE_WAKE_ACK_TIMEOUT_MS 50
|
||||
|
||||
|
||||
@@ -6,20 +6,20 @@
|
||||
#include "xe_ggtt.h"
|
||||
|
||||
#include <linux/sizes.h>
|
||||
#include <drm/i915_drm.h>
|
||||
|
||||
#include <drm/drm_managed.h>
|
||||
#include <drm/i915_drm.h>
|
||||
|
||||
#include "xe_device.h"
|
||||
#include "xe_bo.h"
|
||||
#include "xe_device.h"
|
||||
#include "xe_gt.h"
|
||||
#include "xe_gt_tlb_invalidation.h"
|
||||
#include "xe_map.h"
|
||||
#include "xe_mmio.h"
|
||||
#include "xe_wopcm.h"
|
||||
|
||||
#include "i915_reg.h"
|
||||
#include "gt/intel_gt_regs.h"
|
||||
#include "i915_reg.h"
|
||||
|
||||
/* FIXME: Common file, preferably auto-gen */
|
||||
#define MTL_GGTT_PTE_PAT0 BIT_ULL(52)
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
* Copyright © 2022 Intel Corporation
|
||||
*/
|
||||
|
||||
#include "xe_gt.h"
|
||||
|
||||
#include <linux/minmax.h>
|
||||
|
||||
#include <drm/drm_managed.h>
|
||||
@@ -14,7 +16,6 @@
|
||||
#include "xe_execlist.h"
|
||||
#include "xe_force_wake.h"
|
||||
#include "xe_ggtt.h"
|
||||
#include "xe_gt.h"
|
||||
#include "xe_gt_clock.h"
|
||||
#include "xe_gt_mcr.h"
|
||||
#include "xe_gt_pagefault.h"
|
||||
|
||||
@@ -3,15 +3,16 @@
|
||||
* Copyright © 2022 Intel Corporation
|
||||
*/
|
||||
|
||||
#include "i915_reg.h"
|
||||
#include "gt/intel_gt_regs.h"
|
||||
#include "xe_gt_clock.h"
|
||||
|
||||
#include "xe_device.h"
|
||||
#include "xe_gt.h"
|
||||
#include "xe_gt_clock.h"
|
||||
#include "xe_macros.h"
|
||||
#include "xe_mmio.h"
|
||||
|
||||
#include "gt/intel_gt_regs.h"
|
||||
#include "i915_reg.h"
|
||||
|
||||
static u32 read_reference_ts_freq(struct xe_gt *gt)
|
||||
{
|
||||
u32 ts_override = xe_mmio_read32(gt, GEN9_TIMESTAMP_OVERRIDE.reg);
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
* Copyright © 2022 Intel Corporation
|
||||
*/
|
||||
|
||||
#include "xe_gt_debugfs.h"
|
||||
|
||||
#include <drm/drm_debugfs.h>
|
||||
#include <drm/drm_managed.h>
|
||||
|
||||
@@ -10,7 +12,6 @@
|
||||
#include "xe_force_wake.h"
|
||||
#include "xe_ggtt.h"
|
||||
#include "xe_gt.h"
|
||||
#include "xe_gt_debugfs.h"
|
||||
#include "xe_gt_mcr.h"
|
||||
#include "xe_gt_topology.h"
|
||||
#include "xe_hw_engine.h"
|
||||
|
||||
@@ -3,8 +3,9 @@
|
||||
* Copyright © 2022 Intel Corporation
|
||||
*/
|
||||
|
||||
#include "xe_gt.h"
|
||||
#include "xe_gt_mcr.h"
|
||||
|
||||
#include "xe_gt.h"
|
||||
#include "xe_gt_topology.h"
|
||||
#include "xe_gt_types.h"
|
||||
#include "xe_mmio.h"
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
* Copyright © 2022 Intel Corporation
|
||||
*/
|
||||
|
||||
#include "xe_gt_pagefault.h"
|
||||
|
||||
#include <linux/circ_buf.h>
|
||||
|
||||
#include <drm/drm_managed.h>
|
||||
@@ -10,7 +12,6 @@
|
||||
|
||||
#include "xe_bo.h"
|
||||
#include "xe_gt.h"
|
||||
#include "xe_gt_pagefault.h"
|
||||
#include "xe_gt_tlb_invalidation.h"
|
||||
#include "xe_guc.h"
|
||||
#include "xe_guc_ct.h"
|
||||
|
||||
@@ -3,11 +3,14 @@
|
||||
* Copyright © 2022 Intel Corporation
|
||||
*/
|
||||
|
||||
#include "xe_gt_sysfs.h"
|
||||
|
||||
#include <linux/kobject.h>
|
||||
#include <linux/sysfs.h>
|
||||
|
||||
#include <drm/drm_managed.h>
|
||||
|
||||
#include "xe_gt.h"
|
||||
#include "xe_gt_sysfs.h"
|
||||
|
||||
static void xe_gt_sysfs_kobj_release(struct kobject *kobj)
|
||||
{
|
||||
|
||||
@@ -3,8 +3,9 @@
|
||||
* Copyright © 2023 Intel Corporation
|
||||
*/
|
||||
|
||||
#include "xe_gt.h"
|
||||
#include "xe_gt_tlb_invalidation.h"
|
||||
|
||||
#include "xe_gt.h"
|
||||
#include "xe_guc.h"
|
||||
#include "xe_guc_ct.h"
|
||||
#include "xe_trace.h"
|
||||
|
||||
@@ -3,10 +3,11 @@
|
||||
* Copyright © 2022 Intel Corporation
|
||||
*/
|
||||
|
||||
#include "xe_gt_topology.h"
|
||||
|
||||
#include <linux/bitmap.h>
|
||||
|
||||
#include "xe_gt.h"
|
||||
#include "xe_gt_topology.h"
|
||||
#include "xe_mmio.h"
|
||||
|
||||
#define XE_MAX_DSS_FUSE_BITS (32 * XE_MAX_DSS_FUSE_REGS)
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user