aboutsummaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* include/drm: sync up drm.hJuston Li2020-02-121-0/+2
| | | | | | | | | | | | | | a) delta: Adds DRM_IOCTL_MODE_GETFB2 b) Generated using make headers_install c) Taken from drm-next-misc: commit 3ff4c24bdb1f494c217c80348f9db4896043ed81 Author: Lyude Paul <lyude@redhat.com> Date: Fri Jan 17 17:47:48 2020 -0500 drm/dp_mst: Fix indenting in drm_dp_mst_topology_mgr_set_mst() Signed-off-by: Juston Li <juston.li@intel.com> Acked-by: Eric Engestrom <eric@engestrom.ch>
* sync up drm.hChunming Zhou2019-10-261-1/+2
| | | | | | | | a) delta: drm: use pad as flags in drm_syncobj_timeline_array. b) Generated using make headers_install. c) Generated from origin/drm-misc-next commit 949561eb85bcee10248e7da51d44a0325d5e0d1b" Signed-off-by: Chunming Zhou <david1.zhou@amd.com>
* include: update amdgpu_drm.hMarek Olšák2019-10-151-7/+17
| | | | | | | Generated from kernel commit: 815fb4c9d7da862 "drm/amdgpu: return tcc_disabled_mask to userspace" Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
* libdrm/amdgpu: add new vram type (GDDR6) for navi10Tao Zhou2019-06-211-0/+1
| | | | | | | | | AMDGPU_VRAM_TYPE_GDDR6 is a new vram type for navi10 Reviewed-by: Tim Writer <Tim.Writer@amd.com> Signed-off-by: Tao Zhou <tao.zhou1@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Marek Olšák <marek.olsak@amd.com>
* libdrm/amdgpu: add new member in drm_amdgpu_device_info for navi10Hawking Zhang2019-06-211-0/+2
| | | | | | | | pa_sc_tile_steering_override is a new member introduced for gfx10 Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Signed-off-by: Marek Olšák <marek.olsak@amd.com>
* amdgpu: add navi family idHuang Rui2019-06-211-0/+1
| | | | | | | Reviewed-by: Tim Writer <Tim.Writer@amd.com> Signed-off-by: Huang Rui <ray.huang@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Marek Olšák <marek.olsak@amd.com>
* update drm.hChunming Zhou2019-06-111-0/+2
| | | | | | | | | | a) delta: only DRM_CAP_SYNCOBJ_TIMELINE b) Generated using make headers_install. c) Generated from origin/drm-misc-next commit 982c0500fd1a8012c31d3c9dd8de285129904656" Signed-off-by: Chunming Zhou <david1.zhou@amd.com> Suggested-by: Michel Dänzer <michel@daenzer.net> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
* add cs chunk for syncobj timelineChunming Zhou2019-05-161-0/+9
| | | | | Signed-off-by: Chunming Zhou <david1.zhou@amd.com> Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
* fix various typosEric Engestrom2019-04-175-9/+9
| | | | | | | | | | | Saw a couple of typos fixes in the patch DragonFlyBSD carries [1], so I ran codespell (a spell checker for code) on the whole repo. [1] https://github.com/DragonFlyBSD/DPorts/blob/master/graphics/libdrm/files/patch-xf86drm.c Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
* headers: Sync with drm-nextAyan Halder2019-04-124-36/+396
| | | | | | | | | | | | | | | | | | | | | | | | | | | Generated using make headers_install from the drm-next tree - git://anongit.freedesktop.org/drm/drm branch - drm-next commit - 14d2bd53a47a7e1cb3e03d00a6b952734cf90f3f The changes were as follows :- core: (drm.h, drm_fourcc.h, drm_mode.h) - Added 'struct drm_syncobj_transfer', 'struct drm_syncobj_timeline_wait' and 'struct drm_syncobj_timeline_array' - Added various DRM_IOCTL_SYNCOBJ_ ioctls - Added some new RGB and YUV formats - Added 'DRM_FORMAT_MOD_VENDOR_ALLWINNER' - Added 'SAMSUNG' and Arm's 'AFBC' and 'ALLWINNER' format modifiers - Added 'struct drm_mode_rect' i915: - Added struct 'struct i915_user_extension' and various 'struct drm_i915_gem_context_' - Added different modes of per-process Graphics Translation Table Changes from v1:- - Removed the changes to 'msm_drm.h' as it breaks the build for 'freedreno' platform. Signed-off-by: Ayan Kumar halder <ayan.halder@arm.com> Acked-by: Eric Engestrom <eric.engestrom@intel.com>
* amdgpu: update amdgpu_drm.h from drm-next for 5.2Alex Deucher2019-04-041-1/+43
| | | | | | | | | | | | From drm-next commit b4e4538a0ab5079ae5dc401970e11f0ff2ba13a7 Adds support for: - RAS queries - context priority updates - CS chunks support for scheduled dependencies - IB flag for GDS max wave id Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* virtgpu: Update kernel headerGurchetan Singh2019-04-031-3/+10
| | | | | | | | | | | | | Generated using make headers_install. This brings in the in/out fence support for explicit synchronization. v2: don't use experimental kernel branch Signed-off-by: Gurchetan Singh <gurchetansingh@chromium.org> Reviewed-by: Robert Foss <robert.foss@collabora.com> Signed-off-by: Rob Clark <robclark@freedesktop.org>
* amdgpu: update amdgpu_drm.hMarek Olšák2019-01-161-0/+8
| | | | | | it's in kernel 5.0 Reviewed-by: Christian König <christian.koenig@amd.com>
* libdrm: headers: Sync with drm-nextAyan Kumar Halder2018-10-048-17/+825
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Generated using make headers_install from the drm-next tree - git://anongit.freedesktop.org/drm/drm branch - drm-next commit - 2dc7bad71cd310dc94d1c9907909324dd2b0618f The changes were as follows :- core: (drm.h, drm_fourcc.h, drm_mode.h) - Added client capabilities for ASPECT_RATIO and WRITEBACK_CONNECTORS - Added Arm AFBC modifiers - Added BROADCOM's SAND and UIF modifiers - Added Qualcomm's modifiers - Added some picture aspect ratio and content type options - Added some drm mode flags - Added writeback connector id amdgpu: - Added GEM domain mask - Added some GEM flags - Added some hardware ip flags - Added chunk id and IB fence. - Added some query ids i915: -Added an IOCTL (I915_PARAM_MMAP_GTT_COHERENT) qxl: - Minor changes tegra: - Added some comments about struct drm_tegra* members - Modified DRM_IOCTL_TEGRA_CLOSE_CHANNEL vc4: - Added some members for 'struct drm_vc4_submit_cl' Changes in v2: - Mentioned 'libdrm' in the commit header. Changes in v3: - Removed the changes to radeon_drm.h, sis_drm.h and via_drm.h as suggested by Emil Velikov <emil.l.velikov@gmail.com> Changes in v4: - Removed the changes to vmwgfx_drm.h as it caused a build break ie 'make check' failed. Change-Id: I018a06f65bf4a6a68400ab252b9cd05d041299b3 Signed-off-by: Ayan Kumar halder <ayan.halder@arm.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
* headers/README: fix/add link to drm-nextEric Engestrom2018-09-181-1/+1
| | | | | Reviewed-by: Sean Paul <seanpaul@chromium.org> Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
* libdrm: add msm drm uapi headerTanmay Shah2018-08-232-5/+308
| | | | | | | | | | | | | | | | | | | | msm_drm.h file Generated using make headers_install. Generated from tree - git://people.freedesktop.org/~airlied/linux branch - drm-next commit - 6d08b06e67cd117f6992c46611dfb4ce267cd71e Remove freedreno/msm/msm_drm.h to maintain only one copy of msm_drm.h and change freedreno Makefile and meson.build file accordingly. v2: Remove private freedreno/msm/msm_drm.h v3: meson.build update v3: README update (by anholt) Signed-off-by: Tanmay Shah <tanmay@codeaurora.org> Reviewed-by: Eric Anholt <eric@anholt.net>
* headers: Update READMEDaniel Stone2018-03-301-5/+1
| | | | | | | | Nouveau has made a very deliberate choice to hide its actual kernel ABI behind libdrm. i915 is no longer out of date. Signed-off-by: Daniel Stone <daniels@collabora.com> Acked-by: Alex Deucher <alexander.deucher@amd.com>
* headers: Sync with drm-nextDaniel Stone2018-03-307-26/+444
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Taken from the drm-next pull for 4.17-rc1 (694f54f680f7), and manually reconciled: core: - Dropped DRM_MODE_TYPE_ALL and DRM_MODE_FLAG_ALL; these are purely internal details of the bits accepted by the currently running kernel, and can not be generally relied on by userspace - Add HDCP flags - Note CTM entry representation is sign-magnitude format, not two's-complement amdgpu: - Add QUERY_STATE2 context op - Add VCN firmware version query etnaviv: - Add more GPU feature flags i915: - Add caps, params and ioctls for PMU / perf-stream - Add support for explicit fencing nouveau: - Add TILE_COMP layout vc4: - Add perfmon ioctls virtgpu: - Add capset-fix param vmware: - Add handle-close ioctl and explicit-fencing support Signed-off-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
* headers: sync up amdgpu_drm.h with drm-nextRex Zhu2018-03-301-0/+4
| | | | | | | | | Add sensor_info type AMDGPU_INFO_SENSOR_STABLE_PSTATE_GFX_MCLK AMDGPU_INFO_SENSOR_STABLE_PSTATE_GFX_SCLK Reviewed-by: Evan Quan <evan.quan@amd.com> Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
* drm/tegra: Sanitize format modifiersThierry Reding2018-02-191-17/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The existing format modifier definitions were merged prematurely, and recent work has unveiled that the definitions are suboptimal in several ways: - The format specifiers, except for one, are not Tegra specific, but the names don't reflect that. - The number space is split into two, reserving 32 bits for some "parameter" which most of the modifiers are not going to have. - Symbolic names for the modifiers are not using the standard DRM_FORMAT_MOD_* prefix, which makes them awkward to use. - The vendor prefix NV is somewhat ambiguous. Fortunately, nobody's started using these modifiers, so we can still fix the above issues. Do so by using the standard prefix. Also, remove TEGRA from the name of those modifiers that exist on NVIDIA GPUs as well. In case of the block linear modifiers, make the "parameter" smaller (4 bits, though only 6 values are valid) and don't let that leak into any of the other modifiers. Finally, also use the more canonical NVIDIA instead of the ambiguous NV prefix. This is based on commit 5843f4e02fbe86a59981e35adc6cabebee46fdc0 from Linux v4.16-rc1 and also updates modetest to use the new defines. Acked-by: Emil Velikov <emil.velikov@collabora.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
* drm/fourcc: Fix fourcc_mod_code() definitionThierry Reding2018-02-191-1/+1
| | | | | | | | | | Avoid compiler warnings when the val parameter is an expression. This is based on commit 5843f4e02fbe86a59981e35adc6cabebee46fdc0 from Linux v4.16-rc1. Acked-by: Emil Velikov <emil.velikov@collabora.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
* headers: sync up amdgpu_drm.h with drm-nextChristian König2018-01-091-0/+4
| | | | | | | Sync up amdgpu changes from drm-next. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
* headers: Drop outdated node about a delta in drm_mode.h.Eric Anholt2017-11-101-5/+0
| | | | | | | Fixed in 9433b702fc16 ("headers: Sync drm{,_mode}.h with the kernel") Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
* headers: Sync up kernel changes to use kernel types instead of stdint.h.Eric Anholt2017-11-104-149/+144
| | | | | | | | | This pulls in pieces of drm-next d65d31388a23 ("Merge tag 'drm-misc-next-fixes-2017-11-07' of git://anongit.freedesktop.org/drm/drm-misc into drm-next") Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
* headers: Sync up mga_drm.h from drm-next.Eric Anholt2017-11-102-5/+1
| | | | | | | The kernel started using the struct from drm.h instead of the typedef. Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
* headers: Sync up some comment spelling and whitespace fixes from drm-next.Eric Anholt2017-11-103-7/+7
| | | | | | | | | This pulls in pieces of drm-next d65d31388a23 ("Merge tag 'drm-misc-next-fixes-2017-11-07' of git://anongit.freedesktop.org/drm/drm-misc into drm-next") Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
* headers: Sync up some header guard changes from drm-next.Eric Anholt2017-11-1010-7/+84
| | | | | | | | | This pulls in pieces of drm-next d65d31388a23 ("Merge tag 'drm-misc-next-fixes-2017-11-07' of git://anongit.freedesktop.org/drm/drm-misc into drm-next") Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
* headers: Sync vc4 header from drm-next.Eric Anholt2017-11-101-3/+44
| | | | | | | | | This updates the header with the contents from drm-next d65d31388a23 ("Merge tag 'drm-misc-next-fixes-2017-11-07' of git://anongit.freedesktop.org/drm/drm-misc into drm-next") Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
* Revert "amdgpu: use the high VA range if possible"Christian König2017-11-091-4/+0
| | | | | | | | This reverts commit 6c0ea4b0c5452bfc1e67b74ce723696ef3c80b25. Accidentially pushed an incomplete patch. Signed-off-by: Christian König <christian.koenig@amd.com>
* amdgpu: use the high VA range if possibleChristian König2017-11-081-0/+4
| | | | | | This frees up the low range for HMM. Signed-off-by: Christian König <christian.koenig@amd.com>
* drm: sync drm headers from drm-next.Dave Airlie2017-10-252-9/+124
| | | | | | | This updates the headers with the contents in drm-next at 62884cd386b876638720ef88374b31a84ca7ee5f This adds leasing and aspect ratio.
* amdgpu: add padding to the fence to handle ioctlMarek Olšák2017-10-211-0/+1
| | | | copied from Dave's kernel patch.
* headers: Sync amdgpu_drm.h with drm-nextAndres Rodriguez2017-10-201-1/+30
| | | | | | | | | Generated using make headers_install from: airlied/drm-next 282dc83 Merge tag 'drm-intel-next-2017-10-12' ... Signed-off-by: Andres Rodriguez <andresx7@gmail.com> Acked-by: Dave Airlie <airlied@redhat.com> Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
* include: sync drm.h and amdgpu_drm.h with airlied/drm-nextMarek Olšák2017-10-121-0/+21
|
* headers: sync syncobj ioctl defines.Dave Airlie2017-10-111-0/+22
| | | | | | | This syncs the drm.h header with my drm-next branch as of bb7a9c8d712f37385a706a594d6edf6e6d2669d0 Signed-off-by: Dave Airlie <airlied@redhat.com>
* headers: sync DRM_MODE_ROTATE/REFLECT defines from kernel v4.14-rc1Rob Herring2017-10-091-0/+47
| | | | | | | | | Add the new DRM_MODE_ROTATE_* and DRM_MODE_REFLECT_* defines from v4.14-rc1 kernel. Reviewed-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Robert Foss <robert.foss@collabora.com> Signed-off-by: Rob Herring <robh@kernel.org>
* drm: Pull new modifier uapi into drm_fourcc and drm_modeJason Ekstrand2017-08-152-0/+81
| | | | Reviewed-by: Daniel Stone <daniels@collabora.com>
* drm: update drm.h to latest in drm-next.Dave Airlie2017-06-291-0/+26
| | | | | | | | | | | | | | | This syncs the drm.h header with my drm-next branch as of 6d61e70ccc21606ffb8a0a03bd3aba24f659502b. It brings over the semaphore API changes. Generated using make headers_install. Generated from git://people.freedesktop.org/~airlied/linux drm-next commit 6d61e70ccc2. [airlied: I split patch in two, split reviewed by across both] Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Dave Airlie <airlied@redhat.com>
* amdgpu: sync amdgpu_drm with kernel.Dave Airlie2017-06-271-1/+53
| | | | | | | | | | | | | This syncs the amdgpu_drm header with my drm-next branch as of 6d61e70ccc21606ffb8a0a03bd3aba24f659502b. It brings over the VM and semaphore API changes. Generated using make headers_install. Generated from git://people.freedesktop.org/~airlied/linux drm-next commit 6d61e70ccc2. Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
* headers: Update drm_fourcc and vc4_drm.h with new VC4 tiling UAPI.Eric Anholt2017-06-222-4/+41
| | | | | | | Taken from make headers_install of drm-misc-next (34c8ea400ff6383b028f63df2453914163afc07c) Reviewed-by: Daniel Stone <daniels@collabora.com>
* headers: sync drm_sarea.h with airlied/drm-nextEric Engestrom2017-06-031-0/+8
| | | | | | | | | | | Adds the C++ extern guards from ebbb0e5cfd2ceb1150b1 drm: add extern C guard for the UAPI headers Generated using `make headers_install` from airlied/drm-next at commit 2a1720376adda5ecf8e636fbfb05339c7dad1c55 Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
* headers: sync drm_fourcc.h with airlied/drm-nextEric Engestrom2017-06-031-0/+126
| | | | | | | | | | | | | | | | | | This adds a bunch of modifiers stuff, as well as a few new formats. Includes the following changes: ebbb0e5cfd2ceb1150b1 drm: add extern C guard for the UAPI headers b9fb2a21ac8058965a6b drm_fourcc: Document linear modifier af913418261d6d3e7a29 drm_fourcc: Fix DRM_FORMAT_MOD_LINEAR #define fd056f05b9fcba35b77e drm: add fourcc codes for 16bit R and RG 73f1a5858bf82f3bf232 drm/fourcc: add vivante tiled layout format modifiers ba2b5277dc52cc96944d drm: add RGB formats with separate alpha plane 5e91144dd702d068b22a drm/tegra: Add tiling FB modifiers Generated using `make headers_install` from airlied/drm-next at commit 2a1720376adda5ecf8e636fbfb05339c7dad1c55 Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
* amdgpu/drm: add AMDGPU_HW_IP_VCN_ENCLeo Liu2017-05-231-1/+2
| | | | | | | Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
* amdgpu/drm: add AMDGPU_HW_IP_VCN_DECLeo Liu2017-05-231-1/+2
| | | | | | | Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
* amdgpu: add raven family idHawking Zhang2017-05-231-0/+1
| | | | | | | | Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Chunming Zhou <David1.Zhou@amd.com> Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
* Headers: Sync drm{,_mode}.h with the kernelDaniel Stone2017-04-062-15/+33
| | | | | | | | | | | | | | | | | Generated using make headers_install, based on drm-misc-next commit 5db06a8a98f515f67446a69c57577c4c363ec65d. This clarifies the comments around modifiers such that they are per-framebuffer rather than per-plane, adds the beginnings of aspect ratio mode flags, link status properties, and updates the 'reserved' field from vblank events to include the CRTC ID. v2: Split into separate patch, pull in full kernel changes. v3: Undo revert of connector-type enums, since it is not actually harmful. Signed-off-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
* headers: the uint*_t vs. __u* discrepancy in amdgpu_drm is fixedNicolai Hähnle2017-04-031-4/+0
| | | | | | | | | This was already done in commit 3dc002df3e5 ("amdgpu: sync amdgpu_drm.h with kernel 4.11-rc2"), now update the README accordingly. Signed-off-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Acked-by: Emil Velikov <emil.velikov@collabora.com>
* headers: sync amdgpu_drm.h from airlied/drm-nextNicolai Hähnle2017-04-031-1/+55
| | | | | | | | | | | | Changes include: PRT and preemption flags, sensor info, and some more changes for Vega10. Generated using make headers_install from airlied/drm-next commit 320d8c3d38739fa8e31a076b86cbdafcf8897d5e. Signed-off-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Acked-by: Emil Velikov <emil.velikov@collabora.com>
* amdgpu_drm: add AMDGPU_HW_IP_UVD_ENCLeo Liu2017-03-271-1/+2
| | | | | | Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Marek Olšák <marek.olsak@amd.com>
* amdgpu: update amdgpu_drm.h for Vega10Marek Olšák2017-03-271-2/+8
| | | | Reviewed-by: Alex Deucher <alexander.deucher@amd.com>