linux_dsm_epyc7002/drivers/gpu/drm/i915
Ben Widawsky 2f29579131 drm/i915: Reorder ctx unref on ppgtt cleanup
The comment [which was mine] is wrong. The context object can never be
bound in a PPGTT because it is only capable of living in the Global GTT.
So, remove the comment, and reorder the unref. What's nice about the
latter is it keeps the context object alive past the PPGTT. This makes
the destroy ordering symmetric with the creation ordering.

Create:
1. Create context
2. Create PPGTT

Destroy:
1. Destroy PPGTT
2. Destroy context

As far as I know, this does not fix a bug. The code previously kept the
context data structure, only the object was gone. As the code was,
nothing tried to use the object after this point.

NOTE: If in the future we have cases where the PPGTT can/should outlive
the context (which doesn't occur today, but the code permits it), this
ordering does not matter. Even if this occurs, as it stands now, we do
not expect that to be the normal case, and having this order makes
debugging a bit easier if we're tracking object lifetimes for the
context vs ppgtt

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
[danvet: Resolve conflict with Oscar's execlist prep patches.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-07-23 07:05:39 +02:00
..
dvo_ch7xxx.c
dvo_ch7017.c
dvo_ivch.c
dvo_ns2501.c
dvo_sil164.c
dvo_tfp410.c
dvo.h
i915_cmd_parser.c
i915_debugfs.c drm/i915: Fix printing proper min/min/rpe values in debugfs 2014-07-23 07:05:38 +02:00
i915_dma.c drm/i915: clear pm._irqs_disabled field after installing IRQs 2014-07-23 07:05:35 +02:00
i915_drv.c drm/i915: BDW can also detect unclaimed registers 2014-07-23 07:05:37 +02:00
i915_drv.h drm/i915: reorganize the unclaimed register detection code 2014-07-23 07:05:36 +02:00
i915_gem_context.c drm/i915: Reorder ctx unref on ppgtt cleanup 2014-07-23 07:05:39 +02:00
i915_gem_debug.c
i915_gem_dmabuf.c
i915_gem_evict.c
i915_gem_execbuffer.c
i915_gem_gtt.c drm/i915: Don't disable PPGTT for CHV based in PCI rev 2014-07-11 15:58:33 +02:00
i915_gem_gtt.h
i915_gem_render_state.c
i915_gem_stolen.c
i915_gem_tiling.c
i915_gem_userptr.c drm/i915: Initialise userptr mmu_notifier serial to 1 2014-07-23 07:05:29 +02:00
i915_gem.c drm/i915: add helper for checking whether IRQs are enabled 2014-07-23 07:05:34 +02:00
i915_gpu_error.c drm/i915/error: Check the potential ctx obj's vm 2014-07-23 07:05:38 +02:00
i915_ioc32.c
i915_irq.c drm/i915: set pm._irqs_disabled at IRQ init time 2014-07-23 07:05:34 +02:00
i915_params.c drm/i915: reorganize the unclaimed register detection code 2014-07-23 07:05:36 +02:00
i915_reg.h drm/i915/chv: calculate rc6 residency correctly 2014-07-12 11:13:47 +02:00
i915_suspend.c
i915_sysfs.c drm/i915/chv: calculate rc6 residency correctly 2014-07-12 11:13:47 +02:00
i915_trace_points.c
i915_trace.h
i915_ums.c
intel_acpi.c
intel_bios.c
intel_bios.h
intel_crt.c drm/i915: remove useless runtime PM get calls 2014-07-23 07:05:23 +02:00
intel_ddi.c drm/i915: Make the WRPLL names const 2014-07-23 07:05:30 +02:00
intel_display.c drm/i915: mark IRQs as disabled on unload 2014-07-23 07:05:36 +02:00
intel_dp.c drm/i915: remove useless runtime PM get calls 2014-07-23 07:05:23 +02:00
intel_drv.h drm/i915: add helper for checking whether IRQs are enabled 2014-07-23 07:05:34 +02:00
intel_dsi_cmd.c
intel_dsi_cmd.h
intel_dsi_panel_vbt.c
intel_dsi_pll.c
intel_dsi.c
intel_dsi.h
intel_dvo.c
intel_fbdev.c
intel_hdmi.c drm/i915: Add aspect ratio property for HDMI 2014-07-23 07:05:26 +02:00
intel_i2c.c
intel_lvds.c drm/i915: don't read LVDS regs at compute_config time 2014-07-10 22:17:57 +02:00
intel_modes.c
intel_opregion.c
intel_overlay.c
intel_panel.c
intel_pm.c drm/i915: add helper for checking whether IRQs are enabled 2014-07-23 07:05:34 +02:00
intel_renderstate_gen6.c
intel_renderstate_gen7.c
intel_renderstate_gen8.c
intel_renderstate.h
intel_ringbuffer.c drm/i915: Use genX_ prefix for gt irq enable/disable functions 2014-07-23 07:05:30 +02:00
intel_ringbuffer.h
intel_sdvo_regs.h
intel_sdvo.c
intel_sideband.c
intel_sprite.c drm/i915: Also give the sprite width for WM computation 2014-07-23 07:05:27 +02:00
intel_tv.c
intel_uncore.c drm/i915: BDW can also detect unclaimed registers 2014-07-23 07:05:37 +02:00
Kconfig
Makefile