drm/amdgpu
Pierre-Eric Pelloux-Prayer b9bf42d3e1 amdgpu: increase cpu_map_count storage size
Mesa expects to be able to map the same buffer, without unmapping it.
This leads to problem on long-running program.

On the other hand, libdrm uses cpu_map_count as a refcount and expects
its value to decrease so it can unmap buffers.

The previoulsy proprosed fix (https://patchwork.freedesktop.org/patch/258005/)
stopped increased the counter when it went past INT_MAX.

This commit instead proposes to use a larger type to store cpu_map_count.
The outcome is the same: long running apps will not crash, only the
implementation differs.

Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1423
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2020-03-23 13:18:01 +01:00
..
.editorconfig Add meson build system 2018-01-12 09:40:48 -08:00
Android.mk amdgpu: Only remember the device's marketing name 2017-12-05 12:50:20 +01:00
Makefile.sources amdgpu: remove the hash table implementation 2018-08-07 13:27:33 +02:00
amdgpu-symbols.txt amdgpu: convert to new symbols check 2019-11-11 22:57:14 +00:00
amdgpu.h libdrm: wrap new flexible syncobj query interface v2 2019-10-26 03:11:14 +00:00
amdgpu_asic_id.c meson,configure: include config.h automatically 2018-03-20 18:19:26 +00:00
amdgpu_bo.c amdgpu: Add BO handle to table in amdgpu_bo_create 2019-07-01 11:31:59 +02:00
amdgpu_cs.c amdgpu: clean up the cs structure variable 2020-02-12 19:55:22 +08:00
amdgpu_device.c amdgpu: Rename fd_mutex/list to dev_mutex/list 2019-07-01 11:32:05 +02:00
amdgpu_gpu_info.c amdgpu: annotate public functions 2018-09-19 22:46:45 -07:00
amdgpu_internal.h amdgpu: increase cpu_map_count storage size 2020-03-23 13:18:01 +01:00
amdgpu_vamgr.c amdgpu: annotate public functions 2018-09-19 22:46:45 -07:00
amdgpu_vm.c amdgpu: annotate public functions 2018-09-19 22:46:45 -07:00
handle_table.c amdgpu: fix off by one in handle_table_insert 2018-08-16 08:50:04 +02:00
handle_table.h amdgpu: add handle table implementation v2 2018-08-07 13:27:16 +02:00
libdrm_amdgpu.pc.in amdgpu: add libdrm as private requirement/dependency 2016-02-04 13:22:50 +00:00
meson.build amdgpu: convert to new symbols check 2019-11-11 22:57:14 +00:00