summaryrefslogtreecommitdiff
path: root/lib/i915/i915_drm_local.h
AgeCommit message (Collapse)Author
2022-04-14tests/i915_query: Test new DRM_I915_QUERY_GEOMETRY_SUBSLICES queryMatt Roper
Ensure we get sensible responses for both valid and invalid usage of this query item. Note that unlike the traditional topology query we do not try to compare the values returned against the old I915_PARAM ioctl. Xe_HP already uses a full 32-bit mask for subslices and we expect upcoming platforms to increase the mask size to 64 or beyond (i.e., the hardware starts using multiple registers to express the mask); since the old I915_PARAM ioctl can only return a 32-bit value it will be unable to express the full mask for upcoming platforms. Cc: Matt Atwood <matthew.s.atwood@intel.com> Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Reviewed-by: Lucas De Marchi <lucas.demarchi@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-11-11i915/gem_exec_schedule: Make gem_exec_schedule understand static priority ↵Matthew Brost
mapping The i915 currently has 2k visible priority levels which are currently unique. This is changing to statically map these 2k levels into 3 buckets: low: < 0 mid: 0 high: > 0 Update gem_exec_schedule to understand this. This entails updating promotion test to use 3 levels that will map into different buckets and also add bit of delay after releasing a cork beforing completing the spinners to give time to the i915 schedule to process the fence and release and queue the requests. Also skip any tests that rely on having more than 3 priority levels. v2: Add a delay between starting releasing spinner and cork in promotion, add local define for static mapping engine info v3: (Daniele) - Update commit message explaining why delay is needed, unconditionally add delay v4: (Tvrtko) - Reduce sleep period (Daniele) - Add comment in code by sleep Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> Signed-off-by: Matthew Brost <matthew.brost@intel.com>
2021-10-25lib/i915/i915_drm_local: Add COMPUTE class enginePriyanka Dandamudi
Add I915_ENGINE_CLASS_COMPUTE define value. Signed-off-by: Priyanka Dandamudi <priyanka.dandamudi@intel.com> Cc: Ashutosh Dixit <ashutosh.dixit@intel.com> Cc: Arjun Melkaveri <arjun.melkaveri@intel.com> Reviewed-by: Ashutosh Dixit <ashutosh.dixit@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-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-08-06lib/i915/gem_mman: add FIXED mmap modeMatthew Auld
We need this for discrete. v2(Ashutosh): - use the new i915_drm_local.h infrastructure, and drop the LOCAL prefix Signed-off-by: Matthew Auld <matthew.auld@intel.com> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Cc: Ashutosh Dixit <ashutosh.dixit@intel.com> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Cc: Ramalingam C <ramalingam.c@intel.com> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
2021-07-29lib/i915: Add i915_drm_local.hAshutosh Dixit
It is necessary on occasion to add uapi declarations to IGT before they appear in imported kernel uapi headers. This is typically done at present using LOCAL declarations (or #ifndef's) which are dispersed across multiple source and header files. Such declarations sometimes linger on in the code for months or years till someone thinks of cleaning them up. As opposed to this, provide a central location (in i915_drm_local.h) for such early uapi declarations in IGT. These declarations will be added to i915_drm_local.h exactly as they are expected to appear in the kernel uapi headers, i.e. without the LOCAL_ or local_ prefix. They can be cleaned up when the uapi headers are sync'd or they can live on (if they don't conflict with the kernel headers) but at least they will be in a single place and more visible. At least that is the hope. Cc: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>