aboutsummaryrefslogtreecommitdiffstats
path: root/amdgpu/amdgpu_gpu_info.c
Commit message (Collapse)AuthorAgeFilesLines
* amdgpu: annotate public functionsLucas De Marchi2018-09-191-25/+26
| | | | | | | | | | | | | | | | | | | | | | | This was done with: nm --dynamic --defined-only build/amdgpu/libdrm_amdgpu.so | \ grep amdgpu_ | \ cut -d' ' -f3 > /tmp/a.txt while read sym; do read f func line _ <<<$(cscope -d -L -1 $sym) if [ ! -z "$f" ]; then line=$((line-1)) sed -i "${line}s/^/drm_public /" $f fi done < /tmp/a.txt Then the alignment of function arguments were manually fixed all over. The idea here will be to switch the default visibility to hidden so we don't export symbols we shouldn't. Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com> Acked-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
* meson,configure: include config.h automaticallyEric Engestrom2018-03-201-4/+0
| | | | | | | | | This will prevent any more missing `#include "config.h"` bug, at the cost of having to recompile some files that didn't need to be when changing build options. Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
* amdgpu/: concisely && consistently check null ptrs in canonical formEdward O'Callaghan2017-04-191-2/+3
| | | | | | | | | | Be consistent and use the canonical form while sanity checking null pointers, also combine a few branches for brevity. v2: rebase on top of 'add amdgpu_cs_wait_fences' series. Signed-off-by: Edward O'Callaghan <funfunctor@folklore1984.net> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
* amdgpu: allow to query GPU sensor related informationSamuel Pitoiset2017-04-071-0/+15
| | | | | | | | | This exposes amdgpu_query_sensor_info(). v2: - add amdgpu_query_sensor_info() to the symbols list Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
* amdgpu: stop reading CC_RB_BACKEND_DISABLE on Vega10Christian König2017-03-271-12/+12
| | | | | | | | | | Follow up to 'drm: don't access deprecated register on Vega10'. The same information is available in enabled_rb_pipes_mask and reading that register can cause GRBM bus problems. Signed-off-by: Christian König <christian.koenig@amd.com> Signed-off-by: Marek Olšák <marek.olsak@amd.com>
* amdgpu: don't read registers not present on Vega10Huang Rui2017-03-271-22/+26
| | | | Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
* amdgpu: check parameters in amdgpu_query_gpu_infoAlex Deucher2016-10-311-0/+2
| | | | | | | | | Make sure they aren't NULL. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=97993 Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* amdgpu: add SI supportRonie Salgado2016-09-051-7/+11
| | | | | | v2: without the amdgpu_drm.h change Signed-off-by: Marek Olšák <marek.olsak@amd.com>
* amdgpu: fix valgrind warnings caused by amdgpu_query_firmware_versionMarek Olšák2016-09-051-1/+1
|
* amdgpu: hide the final internal functions from global namespaceEmil Velikov2015-08-131-1/+1
| | | | | | | | | | Thus the only symbols that we export are the ones officially provided by the API. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
* amdgpu: cosmetic chances in license boilerplateEmil Velikov2015-08-131-0/+1
| | | | | | | Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
* amdgpu: add a bunch of missing config.h includesEmil Velikov2015-08-131-0/+4
| | | | | | | Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
* amdgpu: expose the PCI revision IDJammy Zhou2015-08-051-0/+1
| | | | | | | The PCI revision ID can be used to differentiate ASICs. Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
* amdgpu: add VCE harvesting instance queryLeo Liu2015-08-051-0/+1
| | | | | | Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
* amdgpu: add amdgpu_query_gds_infoJammy Zhou2015-08-051-0/+25
| | | | | Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
* amdgpu: fix valgrind warningsMarek Olšák2015-08-051-1/+1
| | | | Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
* amdgpu: add ce_ram_size for interface queryKen Wang2015-08-051-0/+1
| | | | | Signed-off-by: Ken Wang <Qingqing.Wang@amd.com> Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
* amdgpu: add vram_type and vram_bit_width for interface queryKen Wang2015-08-051-0/+2
| | | | | Signed-off-by: Ken Wang <Qingqing.Wang@amd.com> Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
* amdgpu: add max_memory_clock for interface queryKen Wang2015-08-051-0/+1
| | | | | Signed-off-by: Ken Wang <Qingqing.Wang@amd.com> Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
* amdgpu: remove active_rb_pipes from amdgpu_gpu_infoJammy Zhou2015-08-051-1/+0
| | | | | | | | The active RB pipes can be retrieved from enabled_rb_pipes_mask, for which each bit indicates one active pipe if it is '1'. Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
* drm: add libdrm_amdgpu (v7)Alex Deucher2015-08-051-0/+275
This is the new ioctl wrapper used by the new admgpu driver. It's primarily used by xf86-video-amdgpu and mesa. v2: fix amdgpu_drm.h install v3: Integrate some of the sugestions from Emil: clean up Makefile.am, configure.ac capitalize header guards fix _FILE_OFFSET_BITS with config.h use drm_mmap/drm_munmap Remove unused ARRAY_SIZE macro use shared list implementation use shared math implementation use drmGetNodeTypeFromFd helper v4: remove unused tiling defines v5: include amdgpu.h in Makefile.am v6: update amdgpu_drm.h v7: libdrm.h -> libdrm_macros.h Signed-off-by: Alex Deucher <alexander.deucher@amd.com>