Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7AA89C53219 for ; Tue, 28 Jul 2026 19:41:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2919410E5E2; Tue, 28 Jul 2026 19:41:33 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=imgtec.com header.i=@imgtec.com header.b="qJqJ10Qt"; dkim-atps=neutral Received: from mx08-00376f01.pphosted.com (mx08-00376f01.pphosted.com [91.207.212.86]) by gabe.freedesktop.org (Postfix) with ESMTPS id A78C010E5E2 for ; Tue, 28 Jul 2026 19:39:50 +0000 (UTC) Received: from pps.filterd (m0168888.ppops.net [127.0.0.1]) by mx08-00376f01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66SIBOc23124863; Tue, 28 Jul 2026 20:39:45 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=imgtec.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=dk201812; bh=q 9ppr+o5HqA+FFXvInTDTocCVSZ9RU5NMBNxLxqA9D0=; b=qJqJ10QtrbnEvEceF 2oMeli57VCGroPpU76QeDp7OYwQnN91pFZY8Oo42PRTkWJU0sfF3v6f/eLW2VnqU 0XbAUBfTSm57Eutmmd5ymdfH6e/R9fe/YHElpWOHVEx7p5kH2jOZHZ7CWnDYZW36 a+J3iSXEHO34nvB4XstMGE5eqSXueKSH/wosEsicAd4PC8oZ2fNHTKPYIrKZlpnC czdcfOZ25QdLz58AvIDbNa0o0U3VGjt2JeJpMB0h/YNFLSz3VjRt+ZACRHZggUdP 38i4brnNZVc+hwPiFEYQ0ebpXaGAC2B9bIPft6FYgpAVXbGRhOYMSMCCmyyagEeg xdHgw== Received: from hhmail01.hh.imgtec.org (83-244-153-141.cust-83.exponential-e.net [83.244.153.141]) by mx08-00376f01.pphosted.com (PPS) with ESMTPS id 4fq0pe031g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 Jul 2026 20:39:45 +0100 (BST) Received: from [127.0.1.1] (172.25.9.35) by HHMAIL01.hh.imgtec.org (10.100.10.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.43; Tue, 28 Jul 2026 20:39:44 +0100 From: Robert Mazur Date: Tue, 28 Jul 2026 21:39:34 +0200 Subject: [PATCH i-g-t 2/2] tests/imagination: Add DEV_QUERY runtime_info tests MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20260728-test-imagination-additional-dev_query-tests-v1-2-f361c7c2b513@imgtec.com> References: <20260728-test-imagination-additional-dev_query-tests-v1-0-f361c7c2b513@imgtec.com> In-Reply-To: <20260728-test-imagination-additional-dev_query-tests-v1-0-f361c7c2b513@imgtec.com> To: CC: Alessio Belle , Luigi Santivetti , Brajesh Gupta , Robert Mazur , Donald Robson , Kamil Konieczny X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1785267583; l=1989; i=robert.mazur@imgtec.com; s=20260324; h=from:subject:message-id; bh=PRcEDajejMQb5KBzO/uLAtClktRqdgkCAofAm3rHUNk=; b=BoWJvllKfcbGo5BrZiz3r/jSEMPB80YK+0VdT+RgfbAwzObPJ/Zqm6Z0Yf0N1kkBOiKHqf8Jd TlXPsoKAsuXBMEb4kflS1J7o9wWOmX6on75JxoEJ3SQ3t60DBcfWC+6 X-Developer-Key: i=robert.mazur@imgtec.com; a=ed25519; pk=X5uhazsNnVDpw/srawR3m7WOmgzFZXdecapAeML2ZgM= X-Originating-IP: [172.25.9.35] X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzI4MDE2OSBTYWx0ZWRfXzQdX8iwAxmYb NCMwsydTNciHcSlZHA3BYndJcFAarif05s05hzqN11i47cBIIczmZ25YE2pPKhVInb07cpeZ/bh Hwjc2rvsQg5TbtmU/t5Qmg6JRpIh+sHQ6KFyO+EuM4B3SYncB7eyXqdY5swgayiJfoELGuPoOBn sYx9j3tN2H50AwEC+KE1CT3Jye2RAv2ErjTBLPdyvkMDIzRzKhXqOcSJW+kSLxTq56/LPaf4Ftu iMJvXBSTvSOxtuVGJyi1wkh8RWD2Ug3wXEmvsIfwUEt2Has1V/e8ieQh9NRIFt41tAOgDLyh1Mh 66f7epxhvRv6I2fncpHTByAIwz5lT/phovLMiCj/oiRymj5qjgu9zr1oDHG3EMr037YLLExNRt/ 4XAoXwDCQ3wBq/hfzHfrszyS+4A6uKcbmiY8fyGN9NUHHvpAopbCrFbdowbGpJE46UaQCI8lZHr ii0hZHCHRT79boB3NTQ== X-Proofpoint-GUID: xnyKAK3QokpFB4fFtPiWV9n_UiSXTtlx X-Authority-Analysis: v=2.4 cv=a8sAM0SF c=1 sm=1 tr=0 ts=6a690581 cx=c_pps a=AKOq//PuzOIrVTIF9yBwbA==:117 a=AKOq//PuzOIrVTIF9yBwbA==:17 a=CNmLAE0vrksA:10 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=VkNPw1HP01LnGYTKEx00:22 a=kQ-hrUj2-E3RCbRHssb7:22 a=qZQ2PDNLMSdLoqI-hfl9:22 a=r_1tXGB3AAAA:8 a=QyXUC8HyAAAA:8 a=TGuEv08zWsqiZ48y0AwA:9 a=QEXdDO2ut3YA:10 a=t8nPyN_e6usw4ciXM-Pk:22 X-Proofpoint-Spam-Info: AW1haW4tMjYwNzI4MDE2OSBTYWx0ZWRfX1ssVaNewL77Z 8vZLbSn/8fTTa5aHs7nvzx66Asqr3/jgg1OgESYfjQdOPQVc+R/scSDRCPWXdu5WWFHKlkqYBVq LxP6BXhIlAnK+Cr3LvwohcFq6gNAS0Q= X-Proofpoint-ORIG-GUID: xnyKAK3QokpFB4fFtPiWV9n_UiSXTtlx X-BeenThere: igt-dev@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development mailing list for IGT GPU Tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" From: Donald Robson Add test validating runtime info fields from DEV_QUERY. Signed-off-by: Donald Robson Signed-off-by: Robert Mazur Acked-by: Kamil Konieczny --- tests/imagination/meson.build | 1 + tests/imagination/pvr_runtime_info.c | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/tests/imagination/meson.build b/tests/imagination/meson.build index dc08a5d8b..59749b51e 100644 --- a/tests/imagination/meson.build +++ b/tests/imagination/meson.build @@ -5,6 +5,7 @@ pvr_progs = [ 'pvr_dev_query', 'pvr_heap_info', 'pvr_hwrt', 'pvr_quirks_enhancements', + 'pvr_runtime_info', 'pvr_vm_context', ] diff --git a/tests/imagination/pvr_runtime_info.c b/tests/imagination/pvr_runtime_info.c new file mode 100644 index 000000000..02496e043 --- /dev/null +++ b/tests/imagination/pvr_runtime_info.c @@ -0,0 +1,31 @@ +// SPDX-License-Identifier: GPL-2.0 or MIT +/* Copyright (c) 2026 Imagination Technologies Ltd. All Rights Reserved */ + +#include + +#include "igt.h" +#include "igt_pvr.h" + +#include "pvr_drm.h" + +IGT_TEST_DESCRIPTION("Test that the runtime info query returns valid data"); + +int igt_simple_main() +{ + int fd = drm_open_driver(DRIVER_POWERVR); + struct drm_pvr_dev_query_runtime_info runtime_info = {0}; + + igt_pvr_ioctl_dev_query(fd, DRM_PVR_DEV_QUERY_RUNTIME_INFO_GET, + sizeof(runtime_info), &runtime_info, 0); + + igt_assert_neq_u64(runtime_info.free_list_min_pages, 0); + igt_assert_lt_u64(runtime_info.free_list_min_pages, + runtime_info.free_list_max_pages); + + igt_assert_neq(runtime_info.common_store_alloc_region_size, 0); + igt_assert_neq(runtime_info.common_store_partition_space_size, 0); + + igt_assert_neq(runtime_info.max_coeffs, 0); + + igt_assert_neq(runtime_info.cdm_max_local_mem_size_regs, 0); +} -- 2.43.0