From mboxrd@z Thu Jan 1 00:00:00 1970 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 04FCCC021A4 for ; Fri, 14 Feb 2025 07:05:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AEF7210E162; Fri, 14 Feb 2025 07:05:23 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="ZQ1azTAW"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8993210E162 for ; Fri, 14 Feb 2025 07:05:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1739516722; x=1771052722; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=ogxxrLWLyqWwc1FjLpbdur7cyIh0yOSyxArAT/bBMM4=; b=ZQ1azTAWDcswBEJnbRJ1q5AuWvTfBpoZTfaEtl3vFxiigu+EzMz1Tbqx aczN7hxfGfrgQi95VRlb/SAU+fYfCMWF+cFxekFVzqG6QLZaKlQlWJtpz K/nqvebQlzDpVqE4afZPRKVKLyexGPpUeZ1B7c5v2LtPvzFjiZuqmG16s hthniRLPY5k4U5o2+WcieMw05F96M3GojKIWYXEkQV4nPN9tNDaPckKQf +fy3g3GDmF/lUYnyi5W6bI+AVEMlMrErQ9YMBacuKbIg/AXgAgydzFQFg r3mgkaJy4E/SZqtf8WrgBEGl126x0uwFh00iXYQIlxkxSckQiiX+tbd+a Q==; X-CSE-ConnectionGUID: 1zIoK5SAS0WNx5MisjvWuQ== X-CSE-MsgGUID: 1IJwbjxfRk6DLjShGBRGXg== X-IronPort-AV: E=McAfee;i="6700,10204,11344"; a="51232568" X-IronPort-AV: E=Sophos;i="6.13,285,1732608000"; d="scan'208";a="51232568" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Feb 2025 23:05:22 -0800 X-CSE-ConnectionGUID: LiMRsW6mQoKET7oYCryYKg== X-CSE-MsgGUID: 5iQmFyKYSA+sVXhTPVl8qg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,224,1728975600"; d="scan'208";a="117513007" Received: from dut2146ptlh.iind.intel.com ([10.190.234.52]) by fmviesa003.fm.intel.com with ESMTP; 13 Feb 2025 23:05:19 -0800 From: sai.gowtham.ch@intel.com To: igt-dev@lists.freedesktop.org, sai.gowtham.ch@intel.com, zbigniew.kempczynski@intel.com Subject: [PATCH] lib/intel_compute_square_kernels: Extend compute test for ptl Date: Fri, 14 Feb 2025 07:05:18 +0000 Message-ID: <20250214070518.53840-1-sai.gowtham.ch@intel.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: Sai Gowtham Ch Current compute square kernel tests dosen't support on PTL, this enables tests to work on PTL. CC: Zbigniew KempczyƄski Signed-off-by: Sai Gowtham Ch --- lib/intel_compute.c | 10 +++++++ lib/intel_compute_square_kernels.c | 42 ++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/lib/intel_compute.c b/lib/intel_compute.c index 233835c6c..5350389df 100644 --- a/lib/intel_compute.c +++ b/lib/intel_compute.c @@ -1729,6 +1729,16 @@ static const struct { .compute_exec = xe2lpg_compute_exec, .compat = COMPAT_DRIVER_XE, }, + { + .ip_ver = IP_VER(30, 00), + .compute_exec = xe2lpg_compute_exec, + .compat = COMPAT_DRIVER_XE, + }, + { + .ip_ver = IP_VER(30, 01), + .compute_exec = xe2lpg_compute_exec, + .compat = COMPAT_DRIVER_XE, + }, }; static bool __run_intel_compute_kernel(int fd, diff --git a/lib/intel_compute_square_kernels.c b/lib/intel_compute_square_kernels.c index b0912e7e4..18f90c4fe 100644 --- a/lib/intel_compute_square_kernels.c +++ b/lib/intel_compute_square_kernels.c @@ -3889,6 +3889,38 @@ unsigned char xelpg_kernel_square_bin[] = { 0x00, 0x00, 0x00, 0x00 }; +static const unsigned char ptl_kernel_square_bin[] = { + 0x65, 0xa0, 0x00, 0x80, 0x20, 0x82, 0x05, 0x1f, 0x04, 0x00, 0x00, + 0x02, 0xc0, 0xff, 0xff, 0xff, 0x40, 0x19, 0x00, 0x80, 0x20, 0x82, + 0x05, 0x1f, 0x04, 0x1f, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x31, + 0x22, 0x03, 0x80, 0x00, 0x00, 0x0c, 0x05, 0x8f, 0x1f, 0x00, 0xfa, + 0x03, 0x00, 0x70, 0xf6, 0x61, 0x80, 0x24, 0x2c, 0x02, 0x00, 0x10, + 0x00, 0x66, 0x09, 0x00, 0x80, 0x20, 0x82, 0x01, 0x80, 0x00, 0x80, + 0x00, 0x02, 0xc0, 0x04, 0x00, 0x40, 0x41, 0x22, 0x03, 0x80, 0x60, + 0x06, 0x01, 0x20, 0x54, 0x05, 0x00, 0x01, 0x14, 0x02, 0x00, 0x00, + 0x53, 0x81, 0x00, 0x80, 0x60, 0x06, 0x05, 0x03, 0x54, 0x05, 0x00, + 0x06, 0x14, 0x02, 0x00, 0x00, 0x52, 0x19, 0x14, 0x00, 0x60, 0x06, + 0x04, 0x06, 0x04, 0x03, 0x0e, 0x01, 0x04, 0x01, 0x04, 0x04, 0x70, + 0x19, 0x14, 0x00, 0x20, 0x02, 0x01, 0x00, 0x04, 0x06, 0x10, 0x52, + 0x44, 0x05, 0x00, 0x00, 0x2e, 0x00, 0x14, 0x14, 0x00, 0xc0, 0x00, + 0x00, 0x88, 0x00, 0x00, 0x00, 0x88, 0x00, 0x00, 0x00, 0x61, 0x00, + 0x00, 0xb4, 0x15, 0x06, 0x10, 0x00, 0x61, 0x00, 0x08, 0xb4, 0x17, + 0x07, 0x10, 0x00, 0x69, 0x1a, 0x10, 0x00, 0x70, 0x86, 0x05, 0x19, + 0x04, 0x15, 0x20, 0x05, 0x02, 0x00, 0x02, 0x00, 0x69, 0x1a, 0x10, + 0x02, 0x70, 0x86, 0x05, 0x1b, 0x04, 0x17, 0x20, 0x05, 0x02, 0x00, + 0x02, 0x00, 0x40, 0x1a, 0x00, 0x38, 0x08, 0x19, 0x10, 0x05, 0x40, + 0x1a, 0x08, 0x38, 0x0a, 0x1b, 0x10, 0x05, 0x31, 0x23, 0x17, 0x00, + 0x00, 0x00, 0x14, 0x0c, 0x24, 0x08, 0x00, 0xfb, 0x00, 0x00, 0x00, + 0x00, 0x40, 0x00, 0x00, 0x38, 0x10, 0x19, 0x30, 0x05, 0x40, 0x00, + 0x08, 0x38, 0x12, 0x1b, 0x30, 0x05, 0x41, 0x83, 0x20, 0x20, 0x0e, + 0x0c, 0x00, 0x0c, 0x31, 0x24, 0x15, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x24, 0x10, 0x08, 0xfb, 0x14, 0x0e, 0x00, 0x00, 0x2f, 0x00, 0x14, + 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, + 0x00, 0x00, 0x61, 0x00, 0x10, 0x28, 0x14, 0x02, 0x10, 0x00, 0x31, + 0x20, 0x02, 0x80, 0x04, 0x00, 0x00, 0x00, 0x0c, 0x14, 0x20, 0x30, + 0x00, 0x00, 0x00, 0x00 +}; + const struct intel_compute_kernels intel_compute_square_kernels[] = { { .ip_ver = IP_VER(12, 0), @@ -3933,5 +3965,15 @@ const struct intel_compute_kernels intel_compute_square_kernels[] = { .sip_kernel = xe2lpg_kernel_sip_bin, .sip_kernel_size = sizeof(xe2lpg_kernel_sip_bin), }, + { + .ip_ver = IP_VER(30, 00), + .size = sizeof(ptl_kernel_square_bin), + .kernel = ptl_kernel_square_bin, + }, + { + .ip_ver = IP_VER(30, 01), + .size = sizeof(ptl_kernel_square_bin), + .kernel = ptl_kernel_square_bin, + }, {} }; -- 2.43.0