From patchwork Thu Aug 10 08:07:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislaw Gruszka X-Patchwork-Id: 13348933 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 D17D3C001B0 for ; Thu, 10 Aug 2023 08:09:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 271E210E4EB; Thu, 10 Aug 2023 08:09:51 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6793810E4EB for ; Thu, 10 Aug 2023 08:09:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691654989; x=1723190989; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=IGvDYI8tw8XCk3r8xQTNWfLpvJAoku0Yyo9x7IbfACQ=; b=NdMwSOgd67wevc5irGWG0oClAiy6UQiPgqJKK9oXgl+TaMB7QGBEXQDB EkcdaT8n/Lfci6lWyphbj7+dDU/Ra4nCHzdRf3d2o/qQQngavWbVdsqo0 4QpCvxSb7+Ez2a4YxTzKGiJYvxltIOcpOrsYbitAH8zfGHJLg7/y14hVu a0B6tuonwY6x/USSzfJjUlrfPE4Rop9/DaWZbVA9fxLIRvlT+2epb82TK 1pWCZ0/RSi+qAApx3jEPl1BMucM+Ws1tDSP5HBPvONbc8vJ/4YUYCGT34 43+biPXOcZtCrPGZcalTazbeFXvAgtMHr8N/CmzHDbGUOomFbEkYW267C w==; X-IronPort-AV: E=McAfee;i="6600,9927,10797"; a="435227066" X-IronPort-AV: E=Sophos;i="6.01,161,1684825200"; d="scan'208";a="435227066" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2023 01:07:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10797"; a="822148391" X-IronPort-AV: E=Sophos;i="6.01,161,1684825200"; d="scan'208";a="822148391" Received: from joe-255.igk.intel.com (HELO localhost) ([10.91.220.57]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2023 01:07:09 -0700 From: Stanislaw Gruszka To: dri-devel@lists.freedesktop.org, Jeffrey Hugo Subject: [PATCH] accel/ivpu: Document DRM_IVPU_PARAM_CAPABILITIES Date: Thu, 10 Aug 2023 10:07:07 +0200 Message-Id: <20230810080707.3545883-1-stanislaw.gruszka@linux.intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stanislaw Gruszka , Oded Gabbay , Jacek Lawrynowicz Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add comments regarding new DRM_IVPU_PARAM_CAPABILITIES param. Signed-off-by: Stanislaw Gruszka Reviewed-by: Jeffrey Hugo --- include/uapi/drm/ivpu_accel.h | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/include/uapi/drm/ivpu_accel.h b/include/uapi/drm/ivpu_accel.h index a58a14c9f222..7d1ecc5bbac3 100644 --- a/include/uapi/drm/ivpu_accel.h +++ b/include/uapi/drm/ivpu_accel.h @@ -69,8 +69,21 @@ extern "C" { #define DRM_IVPU_CONTEXT_PRIORITY_FOCUS 2 #define DRM_IVPU_CONTEXT_PRIORITY_REALTIME 3 -#define DRM_IVPU_CAP_METRIC_STREAMER 1 -#define DRM_IVPU_CAP_DMA_MEMORY_RANGE 2 +/** + * DRM_IVPU_CAP_METRIC_STREAMER + * + * Metric streamer support, provides sampling of various hardware + * performance metrics (like DMA bandwidth, cache miss/hits), + * can be used for profiling. + */ +#define DRM_IVPU_CAP_METRIC_STREAMER 1 +/** + * DRM_IVPU_CAP_DMA_MEMORY_RANGE + * + * Driver has capability to allocate separate memory range + * accessible by hardware DMA. + */ +#define DRM_IVPU_CAP_DMA_MEMORY_RANGE 2 /** * struct drm_ivpu_param - Get/Set VPU parameters @@ -123,6 +136,8 @@ struct drm_ivpu_param { * %DRM_IVPU_PARAM_SKU: * VPU SKU ID (read-only) * + * %DRM_IVPU_PARAM_CAPABILITIES: + * Supported capabilities (read-only) */ __u32 param;