summaryrefslogtreecommitdiff
path: root/include/drm
Commit message (Collapse)AuthorAgeFilesLines
* drm_fourcc: sync drm_fourcc with latest drm-next kernelPhilipp Zabel2022-11-301-4/+59
| | | | | | | | | | | Update drm_fourcc.h to include latest changes from drm-next branch. This brings in sub-8bpp formats, AVUY and XVUY 8:8:8:8, and Vivante tile-status and compression modifiers. Generated using make headers_install. Generated from drm-next branch commit 077bd80083ab Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
* include/drm/i915_drm.h: Update from Linux v6.0-rc7Jordan Justen2022-09-281-130/+1939
| | | | | | | Generated from the Linux v6.0-rc7 tag with a sha1 of f76349cf41451c5c42a99f18a9163377e4b364ff. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
* include/drm/drm_fourcc.h: Update from Linux v6.0-rc7Jordan Justen2022-09-281-3/+97
| | | | | | | Generated from the Linux v6.0-rc7 tag with a sha1 of f76349cf41451c5c42a99f18a9163377e4b364ff. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
* tests/amdgpu/vcn: align comments for AMDGPU_HW_IP_VCN_ENCRuijing Dong2022-07-201-0/+4
| | | | | | | | From VCN4, AMDGPU_HW_IP_VCN_ENC is re-used to support both encoding and decoding jobs. Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com> Signed-off-by: Ruijing Dong <ruijing.dong@amd.com>
* tegra: Update for new UABIThierry Reding2022-02-231-25/+404
| | | | | | | | This new UABI is a more modern version that works better with both old and recent chips. Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
* amdgpu: update_drm.h for new CTX OP to set/get stable pstatesSamuel Pitoiset2022-01-201-9/+23
| | | | | | | Based on agd5f/drm-next. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
* drm_fourcc: sync drm_fourcc with latest drm-next kernelDennis Tsiang2021-10-041-3/+106
| | | | | | | | | | Update drm_fourcc.h to include latest changes from drm-next branch. This brings in AFRC (Arm Fixed-Rate Compression) modifiers. Generated using make headers_install. Generated from drm-next branch commit 6880fa6 Signed-off-by: Dennis Tsiang <dennis.tsiang@arm.com>
* headers: drm: Sync with drm-nextMario Kleiner2021-08-024-102/+366
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Generated using make headers_install from the drm-next tree - git://anongit.freedesktop.org/drm/drm branch - drm-next commit - 8a02ea42bc1d4c448caf1bab0e05899dad503f74 Some changes were omitted, e.g., to nouveau_drm.h, i915_drm.h, and msm_drm.h, as the nouveau and i915 changes looked to me as if they could break compatibility or require other compatibility fixes to libdrm which i can not judge. msm_drm.h broke the build, as there are definitely changes needed to libdrm's msm support code. The shortlog below is edited to only list what corresponds to files that are included here, because it looked safe to me. The changes were as follows (shortlog from b10733527bfd864605c33ab2e9a886eec317ec39..HEAD): Aaron Liu (1): drm/amdgpu: add uapi to define yellow carp series Alex Deucher (1): drm/amdgpu: add INFO ioctl support for querying video caps (v4) Christian Gmeiner (1): drm/etnaviv: provide more ID values via GET_PARAM ioctl. Felix Kuehling (1): drm/amdgpu: Add new placement for preemptible SG BOs Jiawei Gu (1): drm/amdgpu: Add vbios info ioctl interface Lionel Landwerlin (1): drm: fix drm_mode_create_blob comment Mario Kleiner (1): drm/fourcc: Add 16 bpc fixed point framebuffer formats. Nirmoy Das (1): drm/amdgpu: remove AMDGPU_GEM_CREATE_SHADOW flag Noralf Trønnes (1): drm/uapi: Add USB connector type Radhakrishna Sripada (1): drm/framebuffer: Format modifier for Intel Gen 12 render compression with Clear Color Simon Ser (13): drm: improve kernel-docs in drm_mode.h drm: document drm_mode_get_connector drm: document drm_mode_modeinfo drm: document that user-space should force-probe connectors drm/doc: atomic implicitly enables other caps drm/doc: re-format drm.h file comment drm/doc: demote old doc-comments in drm.h drm/fourcc: fix Amlogic format modifier masks drm/uapi: document kernel capabilities drm/connector: demote connector force-probes for non-master clients drm: reference mode flags in DRM_CLIENT_CAP_* docs drm: clarify and linkify DRM_CLIENT_CAP_WRITEBACK_CONNECTORS docs drm: document minimum kernel version for DRM_CLIENT_CAP_* Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
* amdgpu: sync up amdgpu_drm.h with latest from kernelLeo Liu2021-04-061-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From drm-next: commit 2cbcb78c9ee5520c8d836c7ff57d1b60ebe8e9b7 Merge: 06debd6e1b28 8c44390d8872 Author: Daniel Vetter <daniel.vetter@ffwll.ch> Date: Fri Mar 26 15:52:01 2021 +0100 Merge tag 'amd-drm-next-5.13-2021-03-23' of https://gitlab.freedesktop.org/agd5f/linux into drm-next amd-drm-next-5.13-2021-03-23: amdgpu: ... UAPI: - amdgpu: Add a new INFO ioctl interface to query video capabilities rather than hardcoding them in userspace. This allows us to provide fine grained asic capabilities (e.g., if a particular part is bandwidth limited, we can limit the capabilities). Proposed userspace: https://gitlab.freedesktop.org/leoliu/drm/-/commits/info_video_caps https://gitlab.freedesktop.org/leoliu/mesa/-/commits/info_video_caps ... Danvet: A bunch of conflicts all over, but it seems to compile ... I did put the call to dc_allow_idle_optimizations() on a single line since it looked a bit too jarring to be left alone. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> From: Alex Deucher <alexander.deucher@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210324040147.1990338-1-alexander.deucher@amd.com Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
* amdgpu_drm: sync up with the latest amdgpu_drm.h based on drm-next ↵Leo Liu2021-02-211-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (https://cgit.freedesktop.org/drm/drm) What are these headers? Adding currently missing stuff from https://cgit.freedesktop.org/drm/drm/tree/include/uapi/drm/amdgpu_drm.h based on the latest commit there: commit f730f39eb981af249d57336b47cfe3925632a7fd (HEAD -> drm-next, tag: drm-next-2021-02-19, origin/drm-next, origin/HEAD) Merge: 4f8ad4045b38 81ce8f04aa96 Author: Dave Airlie <airlied@redhat.com> Date: Fri Feb 19 13:54:29 2021 +1000 Merge tag 'drm-intel-next-fixes-2021-02-18' of git://anongit.freedesktop.org/drm/drm-intel into drm-next Which headers go where? From https://cgit.freedesktop.org/drm/drm/tree/include/uapi/drm/amdgpu_drm.h to https://cgit.freedesktop.org/mesa/drm/tree/include/drm/amdgpu_drm.h When and which headers to update? If the kernel uapi drm header changes, the header here should be sync-ed. When and how to update these files The steps for generating this patch: - Switch to freedesktop drm-next kernel branch (https://cgit.freedesktop.org/drm/drm); - Install the headers via `make headers_install'; - Copy from kernel "include/uapi/drm/amdgpu_drm.h" to libdrm "include/drm/amdgpu_drm.h"; - generate the patch; The commits from drm-next (https://cgit.freedesktop.org/drm/drm) are: Mauro Carvalho Chehab (1) c45dd3bda1c809eb120452597097e14a96b58c1f drm/amdgpu: fix some kernel-doc markups Huang Rui(3) 6fbcb00c7984fa7d49af2c361453c0397cdea400 drm/amdgpu: add TOC firmware definition 1e483203965bdab466af0739c1edf7da07da241d drm/amdgpu: add uapi to define van gogh memory type f7b2cdb23abf62bc3d33c2e0b0009a09412ff475 drm/amdgpu: add uapi to define van gogh series Pierre-Eric Pelloux-Prayer(1) 16c642ec3fe9a144fbe1e97dc56f13a6308f1381 drm/amdgpu: new ids flag for tmz (v2) Yong Zhao(1) 130c88931f6cbdb4513d307b4a13fcfff08a8041 drm/amdgpu: Improve the MTYPE comments Signed-off-by: Leo Liu <leo.liu@amd.com>
* headers: drm: Sync with drm-nextAntonin Décimo2021-01-112-26/+628
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Generated using make headers_install from the drm-next tree - git://anongit.freedesktop.org/drm/drm branch - drm-next commit - b10733527bfd864605c33ab2e9a886eec317ec39 The changes were as follows (shortlog from 14d2bd53a47a7e1cb3e03d00a6b952734cf90f3f): core: (drm_mode.h) Alexander A. Klimov (1): drm: Replace HTTP links with HTTPS ones Noralf Trønnes (1): drm: Add SPI connector type Oleg Vasilev (1): drm: report dp downstream port type as a subconnector property Simon Ser (1): drm: document that blobs are ref'counted Uma Shankar (3): drm: Add HDR source metadata property drm: Fixed doc warnings in drm uapi header drm: Fix docbook warnings in hdr metadata helper structures core: (drm_fourcc.h) Adam Jackson (1): drm/fourcc: Fix undefined left shift in DRM_FORMAT_BIG_ENDIAN macros Bas Nieuwenhuizen (2): drm/fourcc: Add AMD DRM modifiers. drm/fourcc: Fix modifier field mask for AMD modifiers. Ben Davis (2): drm: drm_fourcc: add NV15, Q410, Q401 YUV formats drm: drm_fourcc: Add uncompressed AFBC modifier Brian Starkey (1): drm: drm_fourcc: Add generic alias for 16_16_TILE modifier Dave Airlie (1): Merge tag 'amd-drm-next-5.11-2020-11-05' of git://people.freedesktop.org/~agd5f/linux into drm-next Dhinakaran Pandiyan (2): drm/framebuffer: Format modifier for Intel Gen-12 render compression drm/framebuffer: Format modifier for Intel Gen-12 media compression James Jones (1): drm: Generalized NV Block Linear DRM format mod Maarten Lankhorst (1): Backmerge remote-tracking branch 'drm/drm-next' into drm-misc-next Matteo Franchin (1): drm/fourcc: Add AXBXGXRX106106106106 format Mika Kahola (1): uapi/drm/drm_fourcc.h: Note on platform specificity for format modifiers Neil Armstrong (2): drm/fourcc: Add modifier definitions for describing Amlogic Video Framebuffer Compression drm/fourcc: fix Amlogic Video Framebuffer Compression macro Raymond Smith (1): drm/fourcc: Add Arm 16x16 block modifier Simon Ser (4): drm/fourcc: document modifier uniqueness requirements drm: deprecate DRM_FORMAT_MOD_NONE drm/fourcc: add table describing AMD modifiers bit layout drm/fourcc: fix AMD modifiers PACKERS field doc Signed-off-by: Antonin Décimo <antonin.decimo@gmail.com>
* amdgpu: sync up amdgpu_drm.h with latest from kernelAlex Deucher2020-10-151-3/+26
| | | | | | | | | | | | | | | | | | | | | | From drm-next: commit c41219fda6e04255c44d37fd2c0d898c1c46abf1 Merge: e20bb857dea2 d96536f0fe69 Author: Dave Airlie <airlied@redhat.com> Date: Thu May 21 10:44:32 2020 +1000 Merge tag 'drm-intel-next-fixes-2020-05-20' of git://anongit.freedesktop.org/drm/drm-intel into drm-next Fix for TypeC power domain toggling on resets (Cc: stable). Two compile time warning fixes. Signed-off-by: Dave Airlie <airlied@redhat.com> From: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200520123227.GA21104@jlahtine-desk.ger.corp.intel.com Acked-by: Huang Rui <ray.huang@amd.com> Acked-by: Leo Liu <leo.liu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* nouveau: sync up with nouveau_abi16.h and nouveau_drm.hKarol Herbst2020-05-061-21/+56
| | | | | Signed-off-by: Karol Herbst <kherbst@redhat.com> Reviewed-by: Ben Skeggs <bskeggs@redhat.com>
* 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>