summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2022-07-09vm_bind: import uapi definitionsNiranjana Vishwanathapura
Import required VM_BIND kernel uapi definitions. Signed-off-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
2022-06-14include/drm-uapi: Update to latest i915_drm.hJohn Harrison
Update to the latest master version of the DRM UAPI header file from git://anongit.freedesktop.org/git/drm/drm: c4955d9cd2fc Merge tag 'drm-intel-next-fixes-2022-05-24' of git://anongit.freedesktop.org/drm/drm-intel into drm-next Signed-off-by: John Harrison <John.C.Harrison@Intel.com> Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
2022-05-25drm/fourcc: Import drm_fourcc header from 9035039e1ed69Jeevan B
commit 9035039e1ed691cd893777a42e048003a2f349d6 Author: Mika Kahola <mika.kahola@intel.com> Date: Mon Apr 11 17:34:04 2022 +0300 drm/fourcc: Introduce format modifier for DG2 clear color Signed-off-by: Jeevan B <jeevan.b@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
2022-03-09include/drm-uapi: Import drm_fourcc header from c6e7deb0f092Jeevan B
Generated with make headers_install: commit c6e7deb0f092616bd8cb19e8c436b212c64daaab Author: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com> Date: Tue Jan 18 13:55:43 2022 +0200 drm/i915: Introduce new Tile 4 format Signed-off-by: Jeevan B <jeevan.b@intel.com> Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
2021-11-11i915_drm.h sync with drm-nextMatthew Brost
Also delete PXP defines / structures from i915_drm_local.h. Taken from 806acd381960 ("Merge tag 'amd-drm-fixes-5.16-2021-11-03' of https://gitlab.freedesktop.org/agd5f/linux into drm-next") Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> Signed-off-by: Matthew Brost <matthew.brost@intel.com>
2021-10-07include: Introduce linux-uapi for non-drm-uapi files.Rodrigo Vivi
sync_file.h is needed for dma-buf, but it is part of the linux-uapi include dir. The patch aims to have a drm-uapi directory that is a pure copy of the generated drm-uapi include dir. Cc: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
2021-10-07include/drm-uapi: Sync with drm-nextRodrigo Vivi
Sync to: 1e3944578b74 ("Merge tag 'amd-drm-next-5.16-2021-09-27' of https://gitlab.freedesktop.org/agd5f/linux into drm-next") Cc: Petri Latvala <petri.latvala@intel.com> Cc: Ashutosh Dixit <ashutosh.dixit@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Acked-by: Petri Latvala <petri.latvala@intel.com>
2021-10-07i915_drm.h sync with drm-nextRodrigo Vivi
Let's do a catch-up on i915_drm.h here. Only on i915_drm.h for now so we can have a clean view of the LOCAL_ ones that we need to remove. Taken from 25fed6b324ac ("Merge tag 'drm-intel-gt-next-2021-08-06-1' of ssh://git.freedesktop.org/git/drm/drm-intel into drm-next") Cc: Petri Latvala <petri.latvala@intel.com> Cc: Ashutosh Dixit <ashutosh.dixit@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Acked-by: Petri Latvala <petri.latvala@intel.com>
2021-10-06Revert include/drm-uapi/i915_drm.h back to a drm-next one.Rodrigo Vivi
That was my mistake during review and merge since I had ignored the rules documented at README.md and considered drm-intel branches would be enough. I'm sorry. Instead, I should had used the new lib/i915/i915_drm_local.h as Ashutosh pointed out. Fixes: 4d5f8bcd2e35 ("i915_drm.h sync") Cc: Ashutosh Dixit <ashutosh.dixit@intel.com> Cc: Alan Previn <alan.previn.teres.alexis@intel.com> Cc: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
2021-10-06i915_drm.h syncAlan Previn
Sync UAPI changes to get I915_PROTECTED_CONTENT_DEFAULT_SESSION value as well as GEM_CREATE_EXT's I915_OBJECT_PARAM_PROTECTED_CONTENT and GEM_CONTEXT_CREATE's I915_CONTEXT_PARAM_PROTECTED_CONTENT. Taken from kernel commit: commit d3ac8d42168a9be7380be8035df8b6d3780ec2a1 ("drm/i915/pxp: interfaces for using protected objects") Signed-off-by: Alan Previn <alan.previn.teres.alexis@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2021-09-02i915_drm.h syncTejas Upadhyay
Sync to get I915_MMAP_OFFSET_FIXED define value. Taken from kernel commit: commit 7961c5b60f23 ("drm/i915: Add TTM offset argument to mmap.") Acked-by: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Tejas Upadhyay <tejaskumarx.surendrakumar.upadhyay@intel.com>
2021-07-15include/drm-uapi: sync kernel headersLucas De Marchi
Sync with drm-next: 21c355b09711 ("Merge tag 'drm-misc-next-fixes-2021-07-01' of git://anongit.freedesktop.org/drm/drm-misc into drm-next") Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
2021-05-27i915_drm.h syncMatthew Auld
Sync to get gem_create_ext and the regions query stuff. Generated from kernel commit: 2459e56fd8af ("drm/i915/uapi: implement object placement extension") Signed-off-by: Matthew Auld <matthew.auld@intel.com> Acked-by: Petri Latvala <petri.latvala@intel.com>
2021-02-22drm-uapi: Add AMD DRM Modifier update to IGTSung Joon Kim
Aligns IGT drm_fourcc.h to the AMD's latest commit to this file in drm-next: 8ba16d5993749c3f31fd2b49e16f0dc1e1770b9c: drm/fourcc: Add AMD DRM modifiers. Signed-off-by: Sung Joon Kim <sungkim@amd.com> Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
2020-12-17i915/perf_pmu: Exercise I915_PMU_SOFTWARE_GT_AWAKE_TIMEChris Wilson
Measure the sample gt-awake time while each engine and every engine is busy. They should all report the same duration, the elapsed runtime of the batch. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
2020-09-30drm-uapi: Re-synchronize drm_fourcc.h with kernelMatt Roper
drm_fourcc.h should generally be a direct copy of the kernel's header file. There have recently been a couple IGT commits that added not-yet-upstream framebuffer modifiers to IGT's copy of this header which isn't the standard procedure for handling pre-upstream changes like this. We've already ensured that the IGT tests and libraries that use those pre-upstream IDs has switched to pulling their values from a different local IGT header instead, so let's re-synchronize the drm_fourcc.h header with the latest copy from drm-tip now. This aligns IGT's drm_fourcc.h to the latest kernel commit da3a9e9a6aa9 ("drm/fourcc: fix Amlogic Video Framebuffer Compression macro") v2: Split handling of non-upstream CCS_CC modifier into separate patch from the drm_fourcc.h resync. (Lucas) Cc: Mika Kahola <mika.kahola@intel.com> Cc: Lucas De Marchi <lucas.demarchi@intel.com> Fixes: 37bc7b51024b ("drm-uapi/drm_fourcc: Format modifier for GEN12 render engine with Color Clear") Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
2020-08-05drm-uapi: bump i915_drm.h for timeline semaphores testsLionel Landwerlin
Update i915_drm.h to dc61199c09b1e191ebf21e8e15fc23c280781088 Author: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Date: Tue Aug 4 11:59:54 2020 +0300 drm/i915: add syncobj timeline support to expose execbuffer extensions. Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
2020-03-27include/drm-uapi: Update i915_drm.h for perf OA APIsLionel Landwerlin
Add APIs to configure poll delay in perf OA. v2: (Umesh) - Remove interrupt and flush APIs - Change commit message v3: (Umesh) - Rebase - Rename uapi parameter used to set poll timer interval v4: - Update uapi comment to reflect the kerne uapi header (Ashutosh) Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com> Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
2020-03-06include/drm-uapi: Import headers from e62bf83aa1bbJuston Li
Generated with make headers_install from drm-misc-next: commit e62bf83aa1bb9d9953eec2e3663528c766b148ea Author: Jani Nikula <jani.nikula@intel.com> Date: Tue Feb 11 16:47:53 2020 +0200 drm/irq: remove check on dev->dev_private include/drm-uapi/drm_fourcc.h was not synced as the local copy has changes not merged upstream. Changes since v5: - Rebase and resync imported headers Signed-off-by: Juston Li <juston.li@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2020-02-25i915: Exercise I915_CONTEXT_PARAM_RINGSIZEChris Wilson
I915_CONTEXT_PARAM_RINGSIZE specifies how large to create the command ringbuffer for logical ring contects. This directly affects the number of batches userspace can submit before blocking waiting for space. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com>
2020-02-07headers: Bump drm uapi headersNicholas Kazlauskas
Updating them to the latest version from drm-next for HDR static metadata uapi structures: commit a09db883e5d9 ("drm: Fix docbook warnings in hdr metadata helper structures") v2: Bumped to latest drm-next headers Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com> Reviewed-by: Uma Shankar <uma.shankar@intel.com>
2019-12-04Sync i915_drm.hChris Wilson
Sync upto kernel commit cc662126b4134e25fcfb6cad480de0fa95a4d3d8 Author: Abdiel Janulgue <abdiel.janulgue@linux.intel.com> Date: Wed Dec 4 12:00:32 2019 +0000 drm/i915: Introduce DRM_I915_GEM_MMAP_OFFSET to expose MMAP_OFFSET_IOCTL Signed-off-by: Chris Wilson <ickle@braswell.alporthouse.com> Acked-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
2019-12-04drm-uapi/drm_fourcc: Format modifier for GEN12 render engine with Color ClearMika Kahola
Gen12 display can decompress surfaces compressed by render engine with Clear Color, add a new modifier as the driver needs to know the surface was compressed by render engine. Signed-off-by: Mika Kahola <mika.kahola@intel.com> Reviewed-by: Radhakrishna Sripada<radhakrishna.sripada@intel.com>
2019-11-18Format modifier for Intel Gen-12 render compressionMika Kahola
Gen-12 has a new compression format for render compression. For this, a new modifier is needed to indicate that. Signed-off-by: Mika Kahola <mika.kahola@intel.com> Reviewed-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com> Signed-off-by: Imre Deak <imre.deak@intel.com>
2019-10-29i915_drm.h syncChris Wilson
Update to commit a0e047156cde ("drm/i915/gem: Make context persistence optional") for I915_CONTEXT_PARAM_PERSISTENCE Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Andi Shyti <andi.shyti@intel.com>
2019-05-22drm-uapi: Import i915_drm.h upto c5d3e39caa456b1e061644b739131f2b54c84c08Tvrtko Ursulin
commit c5d3e39caa456b1e061644b739131f2b54c84c08 Author: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Date: Wed May 22 10:00:54 2019 +0100 drm/i915: Engine discovery query Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
2019-05-22drm-uapi: Import i915_drm.h upto a88b6e4cbafdChris Wilson
commit a88b6e4cbafd6f23b3450c087acdbe23d90e7606 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Tue May 21 22:11:34 2019 +0100 drm/i915: Allow specification of parallel execbuf Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
2019-05-13drm-uapi: Add panfrost headerTomeu Vizoso
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Acked-by: Petri Latvala <petri.latvala@intel.com>
2019-04-17i915: Update i915_drm.hChris Wilson
Copy uapi/i915_drm.h across from kernel commit d1172ab3d443e84ade75285f8c107bfac7e386d8 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Fri Apr 12 08:14:16 2019 +0100 drm/i915: Introduce struct class_instance for engines across the uAPI and adapt gem_ctx_sseu to match the new struct. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
2019-03-29lib/igt_fb: Add support for Y21x formats as well, v3.Maarten Lankhorst
Those formats are packed like YUYV, but only 16 bits per component. Changes since v1: - Rebase on top of upstream YUV changes. Changes since v2: - Use drm_fourcc.h from upstream. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2019-03-16lib/i915: Pretty print HW semaphoresChris Wilson
Include whether the scheduler is using HW semaphore assistance in our pretty debug strings, and make the caps known for requires. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Antonio Argenziano <antonio.argenziano@intel.com>
2019-02-18drm-uapi: Update i915_drm.h for I915_CONTEXT_PARAM_RECOVERABLEChris Wilson
Copying i915_drm.h from commit ba4fda620a5f7db521aa9e0262cf49854c1b1d9c (HEAD -> drm-intel-next-queued, drm-intel/drm-intel-next-queued) Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Mon Feb 18 10:58:21 2019 +0000 drm/i915: Optionally disable automatic recovery after a GPU reset in order to expose the I915_CONTEXT_PARAM_RECOVERABLE for testing. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
2019-02-13lib/igt_fb: Add support for P01x formats, v5.Maarten Lankhorst
The P01x formats are planar 16 bits per component, with the unused lower bits set to 0. This means they can all be converted the same way. Only the range is slightly different, and this is handled in the color_encoding implementation. This requires cairo 1.17.2 and pixman 0.36. This works but doesn't give extra precision. For more than 8 bits precision a few more patches are required to pixman, pending review: https://lists.freedesktop.org/archives/pixman/2019-January/004815.html https://lists.freedesktop.org/archives/pixman/2019-January/004809.html Once those are merged, we will require the next pixman release for better precision. Changes since v1: - Add fallback color definitions when compiling on cairo version < 1.17.2. - Skip when FB creation fails on HDR formats, instead of failing. Changes since v2: - Complain slightly harder when pixman/cairo are out of date. - Create a fb with alpha when converting to pixman formats with alpha. - Oops, s/pixman_format_code_t/cairo_format_t/ Changes since v3: - Rebase on top of upstream YUV changes. Changes since v4: - Rebase again. - Use drm_fourcc.h from drm-misc-next. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> #v4
2019-02-05headers: bumpTvrtko Ursulin
Sync with latest drm headers from drm-tip. Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
2019-01-29automake: Ditch all EXTRA_DIST directivesDaniel Vetter
We're not using automake to build tarballs anymore. Acked-by: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2018-12-18lib/igt_fb: Added XYUV8888 format support for testingStanislav Lisovskiy
XYUV8888 format support has been added to DRM, modified IGT to reflect those changes. v2: Fixed merge conflict, started to use new yuv<=>rgb conversion functions. v3: Fixed kms_available_modes_crc test to support new XYUV format. Fixed a problem, where test complains that two outputs might use same pipe at the same time. v4: Fixed convertion procedure in igt_fb to support XYUV properly. v5: Fixed a coding typo. v6: Set depth equal to -1 for XYUV format in order to prevent it to be used by igt_bpp_depth_to_drm_format, as we do not want YUV formats to be used in that case. v7: Fix "black" color initialization for create_bo_for_fb with proper value. Changed naming "planar_stride" to "xyuv_stride". v8: Change naming from DRM_FORMAT_XYUV to DRM_FORMAT_XYUV8888 v9: Fixed compilation errors by rebasing to recent master. v10: Adding reference to correspondent kernel commit with the new format in include/drm-uapi v11: Removed unnecessary sizeof's in rgb <=> yuv444 convert functions. v12: Rebased against master branch, fixed rebase conflict caused by new fb_convert functions. Removed drm kernel commit reference as it is still not merged, so doesn't make sense to use it. v13: Resolved one more rebase conflict. Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
2018-12-04include/drm-uapi: bump headersLukasz Kalamarz
Taken from drm-next : commit 1ec28f8b8ada4e4f77d1af006a3a474f4f83b8e3 Merge: 61647c77cb15 2e6e902d1850 Author: Dave Airlie <airlied@redhat.com> Date: Thu Nov 29 10:34:03 2018 +1000 Merge v4.20-rc4 into drm-next Generated by 'make headers_install' Signed-off-by: Lukasz Kalamarz <lukasz.kalamarz@intel.com>
2018-11-26v3d: Import the V3D DRM UAPI header.Eric Anholt
Copied from make headers_install at drm-misc-next 783195ec1cad ("drm/syncobj: disable the timeline UAPI for now v2") Signed-off-by: Eric Anholt <eric@anholt.net> Acked-by: Petri Latvala <petri.latvala@intel.com>
2018-03-12include: bump drm uAPI headersLionel Landwerlin
Taken from drm-tip : commit 1e6aa7e55c28ecd842b8b4599e4273c2429ee061 Author: Jani Nikula <jani.nikula@intel.com> Date: Tue Mar 6 12:41:55 2018 +0200 drm/i915/icl: do not save DDI A/E sharing bit for ICL Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Acked-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
2017-12-27lib: Convert sw_sync to use sync_file uapi imported from the kernelChris Wilson
Similar to how we are now importing the drm uapi directly into igt, we also would like to have a copy of auxiliary uAPI such as sync_file. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
2017-12-08include/drm-uapi: bump headersLionel Landwerlin
Taken from drm-next : commit 9c606cd4117a3c45e04a6616b1a0dbeb18eeee62 Merge: c5dd52f653fa 3997eea57caf Author: Dave Airlie <airlied@redhat.com> Date: Thu Dec 7 06:28:22 2017 +1000 Merge branch 'drm-next-4.16' of git://people.freedesktop.org/~agd5f/linux into drm-next Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-11-22automake: include drm-uapi headers in EXTRA_DISTDaniel Vetter
This breaks make distcheck otherwise. Cc: Eric Anholt <eric@anholt.net> Cc: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Petri Latvala <petri.latvala@intel.com> Tested-by: Petri Latvala <petri.latvala@intel.com>
2017-11-21headers: Import drm-next uapi headers.Eric Anholt
These will be used for tests that want to use a local copy of the headers instead of depending on libdrm releases. Taken from drm-next d65d31388a23 ("Merge tag 'drm-misc-next-fixes-2017-11-07' of git://anongit.freedesktop.org/drm/drm-misc into drm-next") See README for rules on updating these headers. Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Acked-by: Petri Latvala <petri.latvala@intel.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>