mirror_ubuntu-kernels/drivers/gpu/drm/i915/gt
John Harrison 58ea7d620c drm/i915/guc: Split guc_lrc_desc_pin apart
The LRC descriptor pool is going away. Further, the function that was
populating it was also doing a bunch of logic about the context
registration sequence. So, split that code apart into separate state
setup and try to register functions. Note that some of those 'try to
register' code paths actually undo the state setup and leave it to be
redone again later (with potentially different values). This is
inefficient. The next patch will correct this.

Also, move a comment about ignoring return values to the place where
the return values are actually ignored.

v2: Move some more splitting from a later patch (and do it correctly).

Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220302003357.4188363-5-John.C.Harrison@Intel.com
2022-03-03 15:03:08 -08:00
..
selftests
shaders
uc drm/i915/guc: Split guc_lrc_desc_pin apart 2022-03-03 15:03:08 -08:00
gen2_engine_cs.c drm/i915: Only include i915_reg.h from .c files 2022-02-02 07:59:54 -08:00
gen2_engine_cs.h
gen6_engine_cs.c drm/i915/gt: Move engine registers to their own header 2022-01-11 14:03:25 -08:00
gen6_engine_cs.h
gen6_ppgtt.c Merge tag 'drm-intel-gt-next-2022-02-17' of git://anongit.freedesktop.org/drm/drm-intel into drm-intel-next 2022-02-23 15:03:51 -05:00
gen6_ppgtt.h drm/i915: Create a dummy object for gen6 ppgtt 2021-11-19 17:38:03 +00:00
gen6_renderstate.c
gen7_renderclear.c drm/i915: Move GT registers to their own header file 2022-02-02 07:59:14 -08:00
gen7_renderclear.h
gen7_renderstate.c
gen8_engine_cs.c drm/i915/xehp: compute engine pipe_control 2022-03-02 06:45:18 -08:00
gen8_engine_cs.h
gen8_ppgtt.c drm/i915/gtt: add xehpsdv_ppgtt_insert_entry 2022-02-19 22:26:46 -08:00
gen8_ppgtt.h drm/i915: Reduce the number of objects subject to memcpy recover 2021-09-24 08:19:16 +02:00
gen8_renderstate.c
gen9_renderstate.c
hsw_clear_kernel.c
intel_breadcrumbs_types.h
intel_breadcrumbs.c drm/i915/guc: Implement GuC priority management 2021-07-27 17:32:27 -07:00
intel_breadcrumbs.h
intel_context_param.h
intel_context_sseu.c drm/i915/lrc: move lrc_get_runtime() to intel_lrc.c 2022-02-17 15:42:09 +02:00
intel_context_types.h drm/i915: Don't disable interrupts and pretend a lock as been acquired in __timeline_mark_lock(). 2021-12-13 09:25:58 +00:00
intel_context.c drm/i915/guc: Better name for context id limit 2022-03-03 15:03:06 -08:00
intel_context.h drm/i915: Don't disable interrupts and pretend a lock as been acquired in __timeline_mark_lock(). 2021-12-13 09:25:58 +00:00
intel_engine_cs.c drm/i915/xehp: handle fused off CCS engines 2022-03-02 06:52:42 -08:00
intel_engine_heartbeat.c drm/i915: remove IS_ACTIVE 2021-10-07 11:04:05 -07:00
intel_engine_heartbeat.h
intel_engine_pm.c drm/i915: Add ww ctx to i915_gem_object_trylock 2021-12-21 13:27:29 +01:00
intel_engine_pm.h drm/i915/guc: Take engine PM when a context is pinned with GuC submission 2021-10-15 10:37:26 -07:00
intel_engine_regs.h drm/i915/gt: Use parameterized RING_MI_MODE 2022-02-16 12:29:46 -08:00
intel_engine_stats.h drm/i915/pmu: Add a name to the execlists stats 2021-10-28 11:02:18 -07:00
intel_engine_types.h drm/i915/xehp: Define context scheduling attributes in lrc descriptor 2022-03-02 06:45:21 -08:00
intel_engine_user.c drm/i915/xehp: Define compute class and engine 2022-03-02 06:45:16 -08:00
intel_engine_user.h
intel_engine.h drm/i915/xehp: Enable ccs/dual-ctx in RCU_MODE 2022-03-02 06:45:21 -08:00
intel_execlists_submission.c drm/i915/xehp: Enable ccs/dual-ctx in RCU_MODE 2022-03-02 06:45:21 -08:00
intel_execlists_submission.h
intel_ggtt_fencing.c Merge tag 'drm-intel-gt-next-2022-02-17' of git://anongit.freedesktop.org/drm/drm-intel into drm-intel-next 2022-02-23 15:03:51 -05:00
intel_ggtt_fencing.h
intel_ggtt.c Merge tag 'drm-intel-gt-next-2022-02-17' of git://anongit.freedesktop.org/drm/drm-intel into drm-intel-next 2022-02-23 15:03:51 -05:00
intel_gpu_commands.h drm/i915/xehp: compute engine pipe_control 2022-03-02 06:45:18 -08:00
intel_gt_buffer_pool_types.h
intel_gt_buffer_pool.c drm/i915: split out i915_gem_internal.h from i915_drv.h 2022-02-11 12:52:50 +02:00
intel_gt_buffer_pool.h
intel_gt_clock_utils.c drm/i915: Only include i915_reg.h from .c files 2022-02-02 07:59:54 -08:00
intel_gt_clock_utils.h
intel_gt_debugfs.c drm/i915/gt: move remaining debugfs interfaces into gt 2021-10-14 21:47:49 -07:00
intel_gt_debugfs.h drm/i915/guc: Speed up GuC log dumps 2021-12-20 15:33:16 -08:00
intel_gt_engines_debugfs.c drm/i915: rename debugfs_engines files 2021-09-18 23:33:22 -07:00
intel_gt_engines_debugfs.h drm/i915: rename debugfs_engines files 2021-09-18 23:33:22 -07:00
intel_gt_irq.c drm/i915/xehp: Add Compute CS IRQ handlers 2022-03-02 06:45:17 -08:00
intel_gt_irq.h
intel_gt_pm_debugfs.c drm/i915: Move MCHBAR registers to their own header 2022-02-16 12:29:47 -08:00
intel_gt_pm_debugfs.h drm/i915/gt: move remaining debugfs interfaces into gt 2021-10-14 21:47:49 -07:00
intel_gt_pm_irq.c drm/i915: Move GT registers to their own header file 2022-02-02 07:59:14 -08:00
intel_gt_pm_irq.h
intel_gt_pm.c drm/i915/gt: Hold RPM wakelock during PXP suspend 2021-11-24 09:07:18 -05:00
intel_gt_pm.h drm/i915/guc: Take engine PM when a context is pinned with GuC submission 2021-10-15 10:37:26 -07:00
intel_gt_regs.h drm/i915/xehp: Add compute workarounds 2022-03-02 06:52:42 -08:00
intel_gt_requests.c
intel_gt_requests.h drm/i915: use linux/stddef.h due to "isystem: trim/fixup stdarg.h and other headers" 2021-09-06 09:31:23 +02:00
intel_gt_types.h drm/i915: Flush TLBs before releasing backing store 2022-01-25 20:06:06 +02:00
intel_gt.c drm/i915: add I915_BO_ALLOC_GPU_ONLY 2022-02-28 08:47:34 +00:00
intel_gt.h drm/i915/lmem: Enable lmem for platforms with Flat CCS 2022-02-19 22:42:07 -08:00
intel_gtt.c drm/i915: Clarify vma lifetime 2022-02-28 15:04:53 +01:00
intel_gtt.h drm/i915/gtt: allow overriding the pt alignment 2022-02-19 22:26:45 -08:00
intel_llc_types.h
intel_llc.c drm/i915: Move MCHBAR registers to their own header 2022-02-16 12:29:47 -08:00
intel_llc.h
intel_lrc_reg.h drm/i915/gt: Move engine registers to their own header 2022-01-11 14:03:25 -08:00
intel_lrc.c drm/i915/xehp: Add compute workarounds 2022-03-02 06:52:42 -08:00
intel_lrc.h drm/i915/xehp: Define context scheduling attributes in lrc descriptor 2022-03-02 06:45:21 -08:00
intel_migrate_types.h
intel_migrate.c drm/i915/migrate: add acceleration support for DG2 2022-02-19 22:26:47 -08:00
intel_migrate.h drm/i915: Avoid using the i915_fence_array when collecting dependencies 2021-12-22 08:14:30 +01:00
intel_mocs.c drm/i915: Move GT registers to their own header file 2022-02-02 07:59:14 -08:00
intel_mocs.h drm/i915/gt: Add "intel_" as prefix in set_mocs_index() 2021-09-20 08:23:27 -07:00
intel_ppgtt.c drm/i915/gtt: allow overriding the pt alignment 2022-02-19 22:26:45 -08:00
intel_rc6_types.h
intel_rc6.c drm/i915: Only include i915_reg.h from .c files 2022-02-02 07:59:54 -08:00
intel_rc6.h drm/i915: Only include i915_reg.h from .c files 2022-02-02 07:59:54 -08:00
intel_region_lmem.c drm/i915: add io_size plumbing 2022-02-28 08:47:27 +00:00
intel_region_lmem.h drm/i915: Kill the fake lmem support 2022-02-18 22:31:46 -08:00
intel_renderstate.c drm/i915: split out i915_gem_internal.h from i915_drv.h 2022-02-11 12:52:50 +02:00
intel_renderstate.h
intel_reset_types.h
intel_reset.c Merge tag 'drm-intel-gt-next-2022-02-17' of git://anongit.freedesktop.org/drm/drm-intel into drm-intel-next 2022-02-23 15:03:51 -05:00
intel_reset.h
intel_ring_submission.c drm/i915: don't include drm_cache.h in i915_drv.h 2022-02-14 13:19:37 +02:00
intel_ring_types.h
intel_ring.c drm/i915: split out i915_gem_internal.h from i915_drv.h 2022-02-11 12:52:50 +02:00
intel_ring.h
intel_rps_types.h
intel_rps.c Merge drm/drm-next into drm-intel-gt-next 2022-02-25 13:44:44 +00:00
intel_rps.h drm/i915/guc: Request RP0 before loading firmware 2021-12-21 11:24:55 -08:00
intel_sseu_debugfs.c drm/i915: Move GT registers to their own header file 2022-02-02 07:59:14 -08:00
intel_sseu_debugfs.h
intel_sseu.c drm/i915/xehp: handle fused off CCS engines 2022-03-02 06:52:42 -08:00
intel_sseu.h drm/i915/xehp: handle fused off CCS engines 2022-03-02 06:52:42 -08:00
intel_timeline_types.h
intel_timeline.c drm/i915: don't include drm_cache.h in i915_drv.h 2022-02-14 13:19:37 +02:00
intel_timeline.h
intel_workarounds_types.h drm/i915: Only include i915_reg.h from .c files 2022-02-02 07:59:54 -08:00
intel_workarounds.c drm/i915/xehpsdv: Move render/compute engine reset domains related workarounds 2022-03-02 06:52:42 -08:00
intel_workarounds.h drm/i915: Make wa list per-gt 2021-09-20 08:06:36 -07:00
ivb_clear_kernel.c
mock_engine.c drm/i915: Add ww ctx to i915_gem_object_trylock 2021-12-21 13:27:29 +01:00
mock_engine.h
selftest_context.c drm/i915/gt: Use to_gt() helper 2021-12-17 21:50:06 -08:00
selftest_engine_cs.c drm/i915/gt: Use to_gt() helper 2021-12-17 21:50:06 -08:00
selftest_engine_heartbeat.c drm/i915/gt: Use to_gt() helper 2021-12-17 21:50:06 -08:00
selftest_engine_heartbeat.h drm/i915/selftest: Fix hangcheck self test for GuC submission 2021-07-27 17:32:23 -07:00
selftest_engine_pm.c Merge drm/drm-next into drm-intel-next 2022-01-31 13:19:33 -05:00
selftest_engine.c drm/i915/gt: Use to_gt() helper 2021-12-17 21:50:06 -08:00
selftest_engine.h
selftest_execlists.c drm/i915: split out i915_gem_internal.h from i915_drv.h 2022-02-11 12:52:50 +02:00
selftest_gt_pm.c Merge drm/drm-next into drm-intel-next 2022-01-31 13:19:33 -05:00
selftest_hangcheck.c Merge tag 'drm-intel-gt-next-2022-02-17' of git://anongit.freedesktop.org/drm/drm-intel into drm-intel-next 2022-02-23 15:03:51 -05:00
selftest_llc.c drm/i915/pcode: rename sandybridge_pcode_* to snb_pcode_* 2022-01-13 15:20:57 +02:00
selftest_llc.h
selftest_lrc.c drm/i915: split out i915_gem_internal.h from i915_drv.h 2022-02-11 12:52:50 +02:00
selftest_migrate.c drm/i915: split out i915_gem_internal.h from i915_drv.h 2022-02-11 12:52:50 +02:00
selftest_mocs.c drm/i915/gt: Use to_gt() helper 2021-12-17 21:50:06 -08:00
selftest_rc6.c
selftest_rc6.h
selftest_reset.c drm/i915/gt: Use to_gt() helper for GGTT accesses 2022-01-05 10:33:44 -08:00
selftest_ring_submission.c drm/i915/gt: Use to_gt() helper 2021-12-17 21:50:06 -08:00
selftest_ring.c
selftest_rps.c drm/i915: split out i915_gem_internal.h from i915_drv.h 2022-02-11 12:52:50 +02:00
selftest_rps.h
selftest_slpc.c drm/i915/gt: Use to_gt() helper 2021-12-17 21:50:06 -08:00
selftest_timeline.c Merge drm/drm-next into drm-intel-next 2022-01-31 13:19:33 -05:00
selftest_workarounds.c drm/i915: split out i915_gem_internal.h from i915_drv.h 2022-02-11 12:52:50 +02:00
shmem_utils.c drm/i915/gt: Add helper for shmem copy to iosys_map 2022-02-25 15:23:18 -08:00
shmem_utils.h drm/i915/gt: Add helper for shmem copy to iosys_map 2022-02-25 15:23:18 -08:00
st_shmem_utils.c
sysfs_engines.c
sysfs_engines.h