[PATCH i-g-t v1 1/3] drm-uapi/xe_drm: Read flat ccs value from drm_xe_query_config

Jahagirdar, Akshata akshata.jahagirdar at intel.com
Tue Mar 26 05:29:26 UTC 2024


On 3/25/2024 10:19 PM, Zbigniew Kempczyński wrote:
> On Tue, Mar 26, 2024 at 02:54:36AM -0700, Akshata Jahagirdar wrote:
>> Add an additional drm_xe_query_config_flag for reading the value
>> of flat_ccs of the platform.
>> This can be used in respective igt testcases.
>>
>> Signed-off-by: Akshata Jahagirdar <akshata.jahagirdar at intel.com>
>> ---
>>   include/drm-uapi/xe_drm.h | 3 +++
>>   1 file changed, 3 insertions(+)
>>
>> diff --git a/include/drm-uapi/xe_drm.h b/include/drm-uapi/xe_drm.h
>> index 4353595a4..b43c8cf76 100644
>> --- a/include/drm-uapi/xe_drm.h
>> +++ b/include/drm-uapi/xe_drm.h
>> @@ -389,6 +389,8 @@ struct drm_xe_query_mem_regions {
>>    *
>>    *    - %DRM_XE_QUERY_CONFIG_FLAG_HAS_VRAM - Flag is set if the device
>>    *      has usable VRAM
>> + *    - %DRM_XE_QUERY_CONFIG_FLAG_HAS_FLAT_CCS - Flag is set if the device
>> + *      has flat ccs enabled
>>    *  - %DRM_XE_QUERY_CONFIG_MIN_ALIGNMENT - Minimal memory alignment
>>    *    required by this device, typically SZ_4K or SZ_64K
>>    *  - %DRM_XE_QUERY_CONFIG_VA_BITS - Maximum bits of a virtual address
>> @@ -405,6 +407,7 @@ struct drm_xe_query_config {
>>   #define DRM_XE_QUERY_CONFIG_REV_AND_DEVICE_ID	0
>>   #define DRM_XE_QUERY_CONFIG_FLAGS			1
>>   	#define DRM_XE_QUERY_CONFIG_FLAG_HAS_VRAM	(1 << 0)
>> +	#define DRM_XE_QUERY_CONFIG_FLAG_HAS_FLAT_CCS	(1 << 1)
> May you point me out which kernel patch includes this flag into
> xe_query.c?
>
> --
> Zbigniew

https://patchwork.freedesktop.org/series/131609/

-- Akshata

>>   #define DRM_XE_QUERY_CONFIG_MIN_ALIGNMENT		2
>>   #define DRM_XE_QUERY_CONFIG_VA_BITS			3
>>   #define DRM_XE_QUERY_CONFIG_MAX_EXEC_QUEUE_PRIORITY	4
>> -- 
>> 2.34.1
>>


More information about the igt-dev mailing list