linux/drivers/gpu/drm/amd/amdgpu
Christian König 76bf0db554 dma-buf/fence: make fence context 64 bit v2
Fence contexts are created on the fly (for example) by the GPU scheduler used
in the amdgpu driver as a result of an userspace request. Because of this
userspace could in theory force a wrap around of the 32bit context number
if it doesn't behave well.

Avoid this by increasing the context number to 64bits. This way even when
userspace manages to allocate a billion contexts per second it takes more
than 500 years for the context number to wrap around.

v2: fix printf formats as well.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Acked-by: Sumit Semwal <sumit.semwal@linaro.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1464786612-5010-2-git-send-email-deathsimple@vodafone.de
2016-06-02 08:27:41 +02:00
..
amdgpu_acp.c drm/amd/amdgpu: Add name field to amd_ip_funcs (v2) 2016-05-11 12:31:26 -04:00
amdgpu_acp.h drm/amd: make a type-safe cgs_device struct. (v2) 2016-05-04 20:20:28 -04:00
amdgpu_acpi.c drm/amdgpu: mv amdgpu_acpi.h to amd/include/amd_acpi.h 2015-12-21 16:42:05 -05:00
amdgpu_afmt.c drm/amdgpu: add core driver (v4) 2015-06-03 21:03:15 -04:00
amdgpu_amdkfd_gfx_v7.c drm/amdgpu: fix non-ANSI declaration of amdgpu_amdkfd_gfx_*_get_functions() 2016-01-28 14:39:34 +02:00
amdgpu_amdkfd_gfx_v8.c drm/amdgpu: fix non-ANSI declaration of amdgpu_amdkfd_gfx_*_get_functions() 2016-01-28 14:39:34 +02:00
amdgpu_amdkfd.c drm/amdgpu: Return -EPROBE_DEFER when amdkfd not loaded 2016-02-27 22:52:40 +02:00
amdgpu_amdkfd.h drm/amdgpu: Return -EPROBE_DEFER when amdkfd not loaded 2016-02-27 22:52:40 +02:00
amdgpu_atombios.c drm/amdgpu: add an interface to get gfx constants from atombios 2016-05-04 20:24:57 -04:00
amdgpu_atombios.h drm/amdgpu: add an interface to get gfx constants from atombios 2016-05-04 20:24:57 -04:00
amdgpu_atpx_handler.c drm/amdgpu: print a message if ATPX dGPU power control is missing 2016-04-27 12:27:09 -04:00
amdgpu_benchmark.c drm/amd: make some function-local tables static const 2016-05-04 20:20:20 -04:00
amdgpu_bios.c drm/amdgpu: do not store bios_header_start in amdgpu_device 2016-05-02 13:08:56 -04:00
amdgpu_bo_list.c drm: Remove unused drm_device from drm_gem_object_lookup() 2016-05-17 08:47:30 +02:00
amdgpu_cgs.c drm/amdgpu: fetch cu_info once at init 2016-05-11 12:31:21 -04:00
amdgpu_connectors.c drm/amdgpu: Fix hdmi deep color support. 2016-05-25 09:42:53 -04:00
amdgpu_connectors.h drm/amdgpu: add core driver (v4) 2015-06-03 21:03:15 -04:00
amdgpu_cs.c drm: Remove unused drm_device from drm_gem_object_lookup() 2016-05-17 08:47:30 +02:00
amdgpu_ctx.c drm/amdgpu: fix coding style in amdgpu_ctx.c 2016-02-12 15:42:54 -05:00
amdgpu_device.c drm/amd/amdgpu: Added more named DRM info messages for debugging 2016-05-11 12:31:26 -04:00
amdgpu_display.c drm: Remove unused drm_device from drm_gem_object_lookup() 2016-05-17 08:47:30 +02:00
amdgpu_dpm.c drm/amdgpu: use drm_mode_vrefresh() rather than mode->vrefresh 2016-05-04 20:31:02 -04:00
amdgpu_dpm.h drm/amdgpu: add core driver (v4) 2015-06-03 21:03:15 -04:00
amdgpu_drv.c drm/amdgpu: Add more Polaris 11 PCI IDs 2016-05-18 09:22:29 -04:00
amdgpu_drv.h drm/amdgpu: merge amdgpu_family.h into amd_shared.h (v2) 2015-08-17 16:50:21 -04:00
amdgpu_encoders.c drm/amdgpu: add core driver (v4) 2015-06-03 21:03:15 -04:00
amdgpu_fb.c drm/amdgpu: don't init fbdev if we don't have any connectors 2016-01-26 00:35:56 -05:00
amdgpu_fence.c drm/amdgpu: fix bug in fence driver fini 2016-05-25 09:42:53 -04:00
amdgpu_gart.c drm/amdgpu: optionally enable GART debugfs file 2016-05-02 15:26:57 -04:00
amdgpu_gds.h drm/amd: cleanup remaining spaces and tabs v2 2016-05-11 12:31:20 -04:00
amdgpu_gem.c drm: Remove unused drm_device from drm_gem_object_lookup() 2016-05-17 08:47:30 +02:00
amdgpu_gfx.c drm/amdgpu: add core driver (v4) 2015-06-03 21:03:15 -04:00
amdgpu_gfx.h drm/amdgpu: add core driver (v4) 2015-06-03 21:03:15 -04:00
amdgpu_i2c.c drm/amdgpu: add core driver (v4) 2015-06-03 21:03:15 -04:00
amdgpu_i2c.h drm/amdgpu: add core driver (v4) 2015-06-03 21:03:15 -04:00
amdgpu_ib.c drm/amdgpu: fix and cleanup user fence handling v2 2016-05-11 13:30:32 -04:00
amdgpu_ih.c drm/amdgpu: export reservation_object from dmabuf to ttm (v2) 2015-09-23 17:23:34 -04:00
amdgpu_ih.h drm/amdgpu: Implement irq interfaces for CGS 2015-08-17 16:50:09 -04:00
amdgpu_ioc32.c drm/amdgpu: add core driver (v4) 2015-06-03 21:03:15 -04:00
amdgpu_irq.c drm: Nuke ->vblank_disable_allowed 2016-05-21 07:03:31 +10:00
amdgpu_irq.h drm/amdgpu: add irq domain support 2016-01-11 09:52:57 -05:00
amdgpu_job.c drm/amdgpu: fix and cleanup user fence handling v2 2016-05-11 13:30:32 -04:00
amdgpu_kms.c drm/amdgpu: fetch cu_info once at init 2016-05-11 12:31:21 -04:00
amdgpu_mn.c drm/amdgpu: make amdgpu_mn_get wait for mmap_sem killable 2016-05-23 17:04:14 -07:00
amdgpu_mode.h drm/amdgpu: Support DRM_MODE_PAGE_FLIP_ASYNC (v2) 2016-05-11 12:31:25 -04:00
amdgpu_object.c drm/amdgpu: set metadata pointer to NULL after freeing. 2016-05-03 11:53:44 -04:00
amdgpu_object.h drm/ttm: remove use_ticket parameter from ttm_bo_reserve 2016-05-04 20:21:21 -04:00
amdgpu_pll.c drm/amdgpu: add core driver (v4) 2015-06-03 21:03:15 -04:00
amdgpu_pll.h drm/amdgpu: add core driver (v4) 2015-06-03 21:03:15 -04:00
amdgpu_pm.c drm/amd/powerplay: add dpm force multiple levels on cz/tonga/fiji/polaris (v2) 2016-05-04 20:29:47 -04:00
amdgpu_pm.h drm/amdgpu: add core driver (v4) 2015-06-03 21:03:15 -04:00
amdgpu_powerplay.c drm/amd/amdgpu: Add name field to amd_ip_funcs (v2) 2016-05-11 12:31:26 -04:00
amdgpu_powerplay.h drm/amd/powerplay: add basic powerplay framework 2015-12-21 16:42:07 -05:00
amdgpu_prime.c drm/amdgpu: two minor 80 char fixes 2016-05-11 12:31:18 -04:00
amdgpu_ring.c drm/amdgpu: fix the coding style in amdgpu_ring.c 2016-05-04 20:21:12 -04:00
amdgpu_sa.c dma-buf/fence: make fence context 64 bit v2 2016-06-02 08:27:41 +02:00
amdgpu_sync.c drm/amdgpu: use a sync object for VMID fences v2 2016-05-04 20:19:16 -04:00
amdgpu_test.c drm/amdgpu: clean up hw semaphore support in driver 2016-02-10 14:16:49 -05:00
amdgpu_trace_points.c drm/amdgpu: add core driver (v4) 2015-06-03 21:03:15 -04:00
amdgpu_trace.h drm/amdgpu: trace the pd_addr in vm_grab_id as well 2016-02-29 11:33:59 -05:00
amdgpu_ttm.c Linux 4.6-rc7 2016-05-09 13:49:56 +10:00
amdgpu_ucode.c drm/amdgpu: export reservation_object from dmabuf to ttm (v2) 2015-09-23 17:23:34 -04:00
amdgpu_ucode.h drm/amdgpu: add core driver (v4) 2015-06-03 21:03:15 -04:00
amdgpu_uvd.c amdgpu/uvd: separate context buffer from DPB 2016-05-11 13:30:12 -04:00
amdgpu_uvd.h drm/amdgpu: send UVD IB tests directly to the ring again 2016-02-10 14:17:23 -05:00
amdgpu_vce.c drm/amdgpu: move VM fields into job 2016-05-11 13:30:31 -04:00
amdgpu_vce.h drm/amdgpu: move VM fields into job 2016-05-11 13:30:31 -04:00
amdgpu_vm.c drm/amdgpu: Encapsulate some VM table update parameters (v2) 2016-05-11 13:53:54 -04:00
amdgpu.h dma-buf/fence: make fence context 64 bit v2 2016-06-02 08:27:41 +02:00
atom.c drm/amdgpu/atom: add support for new div32 opcodes (v3) 2015-10-14 16:16:24 -04:00
atom.h drm/amd: cleanup remaining spaces and tabs v2 2016-05-11 12:31:20 -04:00
atombios_crtc.c drm/amdgpu/atom: add support for new SetPixelClock table 2016-05-04 20:23:58 -04:00
atombios_crtc.h drm/amdgpu/atom: add SetDCEClock helper 2016-05-04 20:23:53 -04:00
atombios_dp.c drm/amdgpu: fix DP mode validation 2016-05-12 15:03:49 -04:00
atombios_dp.h drm/amdgpu: add core driver (v4) 2015-06-03 21:03:15 -04:00
atombios_encoders.c Linux 4.6-rc7 2016-05-09 13:49:56 +10:00
atombios_encoders.h drm/amdgpu: add core driver (v4) 2015-06-03 21:03:15 -04:00
atombios_i2c.c drm/amdgpu: add core driver (v4) 2015-06-03 21:03:15 -04:00
atombios_i2c.h drm/amdgpu: add core driver (v4) 2015-06-03 21:03:15 -04:00
ci_dpm.c drm/amd/amdgpu: Add name field to amd_ip_funcs (v2) 2016-05-11 12:31:26 -04:00
ci_dpm.h drm/amdgpu: Add support for CIK parts 2015-06-03 21:03:17 -04:00
ci_smc.c drm/amdgpu: Add support for CIK parts 2015-06-03 21:03:17 -04:00
cik_dpm.h drm/amdgpu: rename amdgpu_ip_funcs to amd_ip_funcs (v2) 2015-06-03 21:03:51 -04:00
cik_ih.c drm/amd/amdgpu : Remove unused variable 2016-05-18 09:21:52 -04:00
cik_ih.h drm/amdgpu: rename amdgpu_ip_funcs to amd_ip_funcs (v2) 2015-06-03 21:03:51 -04:00
cik_sdma.c drm/amdgpu: move VM fields into job 2016-05-11 13:30:31 -04:00
cik_sdma.h drm/amdgpu: rename amdgpu_ip_funcs to amd_ip_funcs (v2) 2015-06-03 21:03:51 -04:00
cik.c drm/amd/amdgpu: Add name field to amd_ip_funcs (v2) 2016-05-11 12:31:26 -04:00
cik.h drm/amdgpu: rename amdgpu_ip_funcs to amd_ip_funcs (v2) 2015-06-03 21:03:51 -04:00
cikd.h drm/amd: cleanup remaining spaces and tabs v2 2016-05-11 12:31:20 -04:00
clearstate_ci.h drm/amdgpu: Add support for CIK parts 2015-06-03 21:03:17 -04:00
clearstate_defs.h
clearstate_vi.h drm/amdgpu: Add initial VI support 2015-06-03 21:03:17 -04:00
cz_dpm.c drm/amd/amdgpu/cz_dpm: Remove unused variable 2016-05-18 09:22:07 -04:00
cz_dpm.h drm/amdgpu/cz: add code to enable forcing VCE clocks 2016-01-13 12:12:43 -05:00
cz_ih.c drm/amd/amdgpu : Remove unused variable 2016-05-18 09:22:12 -04:00
cz_ih.h drm/amdgpu: rename amdgpu_ip_funcs to amd_ip_funcs (v2) 2015-06-03 21:03:51 -04:00
cz_smc.c drm/amdgpu: Update SMC/DPM for Stoney 2015-10-21 12:19:46 -04:00
cz_smumgr.h drm/amd: cleanup remaining spaces and tabs v2 2016-05-11 12:31:20 -04:00
dce_v8_0.c drm: Remove unused drm_device from drm_gem_object_lookup() 2016-05-17 08:47:30 +02:00
dce_v8_0.h drm/amdgpu: rename amdgpu_ip_funcs to amd_ip_funcs (v2) 2015-06-03 21:03:51 -04:00
dce_v10_0.c drm: Remove unused drm_device from drm_gem_object_lookup() 2016-05-17 08:47:30 +02:00
dce_v10_0.h drm/amdgpu: rename amdgpu_ip_funcs to amd_ip_funcs (v2) 2015-06-03 21:03:51 -04:00
dce_v11_0.c Merge branch 'drm-next-4.7' of git://people.freedesktop.org/~agd5f/linux into drm-next 2016-05-27 16:03:48 +10:00
dce_v11_0.h drm/amdgpu: rename amdgpu_ip_funcs to amd_ip_funcs (v2) 2015-06-03 21:03:51 -04:00
fiji_dpm.c drm/amd/amdgpu: Add name field to amd_ip_funcs (v2) 2016-05-11 12:31:26 -04:00
fiji_smc.c drm/amdgpu/smu: skip SMC ucode loading on SR-IOV capable boards (v2) 2016-02-10 14:17:13 -05:00
fiji_smum.h drm/amdgpu: rename fiji_smumgr.h to fiji_smum.h 2015-12-21 16:42:44 -05:00
gfx_v7_0.c drm/amdgpu: move VM fields into job 2016-05-11 13:30:31 -04:00
gfx_v7_0.h drm/amdgpu: fetch cu_info once at init 2016-05-11 12:31:21 -04:00
gfx_v8_0.c drm/amdgpu: update Polaris11 golden setting 2016-05-18 09:22:29 -04:00
gfx_v8_0.h drm/amdgpu: fetch cu_info once at init 2016-05-11 12:31:21 -04:00
gmc_v7_0.c drm/amd/amdgpu: Add name field to amd_ip_funcs (v2) 2016-05-11 12:31:26 -04:00
gmc_v7_0.h drm/amdgpu: rename amdgpu_ip_funcs to amd_ip_funcs (v2) 2015-06-03 21:03:51 -04:00
gmc_v8_0.c drm/amd/amdgpu: Add name field to amd_ip_funcs (v2) 2016-05-11 12:31:26 -04:00
gmc_v8_0.h drm/amdgpu: rename amdgpu_ip_funcs to amd_ip_funcs (v2) 2015-06-03 21:03:51 -04:00
iceland_dpm.c drm/amd/amdgpu: Add name field to amd_ip_funcs (v2) 2016-05-11 12:31:26 -04:00
iceland_ih.c drm/amd/amdgpu : Remove unused variable 2016-05-18 09:22:17 -04:00
iceland_ih.h drm/amdgpu: rename amdgpu_ip_funcs to amd_ip_funcs (v2) 2015-06-03 21:03:51 -04:00
iceland_sdma_pkt_open.h drm/amdgpu: add count field for the SDMA NOP packet v2 2015-09-02 12:21:35 -04:00
iceland_smc.c drm/amdgpu/smu: skip SMC ucode loading on SR-IOV capable boards (v2) 2016-02-10 14:17:13 -05:00
iceland_smumgr.h drm/amdgpu: Add initial VI support 2015-06-03 21:03:17 -04:00
Kconfig drm/amdgpu: optionally enable GART debugfs file 2016-05-02 15:26:57 -04:00
kv_dpm.c drm/amdgpu: fix array out of bounds 2016-05-16 10:31:07 -04:00
kv_dpm.h drm/amdgpu: Add support for CIK parts 2015-06-03 21:03:17 -04:00
kv_smc.c drm/amdgpu: Add support for CIK parts 2015-06-03 21:03:17 -04:00
Makefile drm/amdgpu: rename amdgpu_sched.c to amdgpu_job.c 2016-02-10 14:17:23 -05:00
ObjectID.h
ppsmc.h drm/amdgpu: add ppsmc.h 2015-06-03 21:03:13 -04:00
sdma_v2_4.c drm/amdgpu: move VM fields into job 2016-05-11 13:30:31 -04:00
sdma_v2_4.h drm/amdgpu: rename amdgpu_ip_funcs to amd_ip_funcs (v2) 2015-06-03 21:03:51 -04:00
sdma_v3_0.c drm/amdgpu: update Polaris11 golden setting 2016-05-18 09:22:29 -04:00
sdma_v3_0.h drm/amdgpu: rename amdgpu_ip_funcs to amd_ip_funcs (v2) 2015-06-03 21:03:51 -04:00
smu_ucode_xfer_vi.h drm/amd/powerplay: Add smc_sk firmware to baffin & ellesmere. 2016-05-04 20:26:26 -04:00
tonga_dpm.c drm/amd/amdgpu: Add name field to amd_ip_funcs (v2) 2016-05-11 12:31:26 -04:00
tonga_ih.c drm/amd/amdgpu : Remove unused variable 2016-05-18 09:22:23 -04:00
tonga_ih.h drm/amdgpu: rename amdgpu_ip_funcs to amd_ip_funcs (v2) 2015-06-03 21:03:51 -04:00
tonga_sdma_pkt_open.h drm/amdgpu: add count field for the SDMA NOP packet v2 2015-09-02 12:21:35 -04:00
tonga_smc.c drm/amdgpu/smu: skip SMC ucode loading on SR-IOV capable boards (v2) 2016-02-10 14:17:13 -05:00
tonga_smum.h drm/amdgpu: rename tonga_smumgr.h to tonga_smum.h 2015-12-21 16:42:43 -05:00
uvd_v4_2.c drm/amdgpu: move VM fields into job 2016-05-11 13:30:31 -04:00
uvd_v4_2.h drm/amdgpu: rename amdgpu_ip_funcs to amd_ip_funcs (v2) 2015-06-03 21:03:51 -04:00
uvd_v5_0.c drm/amdgpu: move VM fields into job 2016-05-11 13:30:31 -04:00
uvd_v5_0.h drm/amdgpu: rename amdgpu_ip_funcs to amd_ip_funcs (v2) 2015-06-03 21:03:51 -04:00
uvd_v6_0.c drm/amdgpu: move VM fields into job 2016-05-11 13:30:31 -04:00
uvd_v6_0.h drm/amdgpu: rename amdgpu_ip_funcs to amd_ip_funcs (v2) 2015-06-03 21:03:51 -04:00
vce_v2_0.c drm/amd/amdgpu: Add name field to amd_ip_funcs (v2) 2016-05-11 12:31:26 -04:00
vce_v2_0.h drm/amdgpu: rename amdgpu_ip_funcs to amd_ip_funcs (v2) 2015-06-03 21:03:51 -04:00
vce_v3_0.c drm/amd/amdgpu: Add name field to amd_ip_funcs (v2) 2016-05-11 12:31:26 -04:00
vce_v3_0.h drm/amdgpu: rename amdgpu_ip_funcs to amd_ip_funcs (v2) 2015-06-03 21:03:51 -04:00
vi_dpm.h drm/amdgpu: Add Fiji support to SMC and DPM (v2) 2015-08-17 16:50:26 -04:00
vi.c drm/amd/amdgpu: Add name field to amd_ip_funcs (v2) 2016-05-11 12:31:26 -04:00
vi.h drm/amdgpu: rename amdgpu_ip_funcs to amd_ip_funcs (v2) 2015-06-03 21:03:51 -04:00
vid.h drm/amdgpu/dce11: fix audio offset for asics with >7 audio pins 2016-05-11 13:30:33 -04:00