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 65A30E92FC9 for ; Thu, 5 Oct 2023 22:33:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0BF8810E049; Thu, 5 Oct 2023 22:33:07 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4845A10E049 for ; Thu, 5 Oct 2023 22:33:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696545186; x=1728081186; h=date:message-id:from:to:cc:subject:in-reply-to: references:mime-version; bh=1hqfGce4Plm9AUoI5HoCJgakA+HYZUzaL8AbMJJgq4M=; b=d8X7WAEEHLkMpIG8uhvFwxNBEaED75p0OwKCQyRCYOSHd+TS9N674uA/ H1RFwbrhXHtdYPU/ZG2lRULGajAUgHP3AytTZbgGFEpcb0+v5b5yJ1eKd /ScDucR2pJaZQi4aHVe2Mo7KIHEW+LiP3IUpWihyk4oRLSfsRMwcy+/iy AhoC07/J3/jZjmVUtmqoaOVy+8A1W3oqtSEeKlK23YpOBYNF7XrdFWU4j I/Eq/POO5dH4n83n15KMm7C5hB8KkLT7pRhZ9W1DDIhX8XYyPrwJkoNK6 I0/vulzhJGhmM5I5Pnaa1rZ4sA/6BiXx/GswE0BE1XFv0QxeH+x7qI9+c g==; X-IronPort-AV: E=McAfee;i="6600,9927,10854"; a="450130375" X-IronPort-AV: E=Sophos;i="6.03,203,1694761200"; d="scan'208";a="450130375" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2023 15:33:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10854"; a="822292662" X-IronPort-AV: E=Sophos;i="6.03,203,1694761200"; d="scan'208";a="822292662" Received: from adixit-mobl.amr.corp.intel.com (HELO adixit-arch.intel.com) ([10.212.194.93]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2023 15:33:04 -0700 Date: Thu, 05 Oct 2023 15:33:04 -0700 Message-ID: <87il7k1yzj.wl-ashutosh.dixit@intel.com> From: "Dixit, Ashutosh" To: intel-xe@lists.freedesktop.org In-Reply-To: <20230919161049.2307855-19-ashutosh.dixit@intel.com> References: <20230919161049.2307855-1-ashutosh.dixit@intel.com> <20230919161049.2307855-19-ashutosh.dixit@intel.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/29.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Subject: Re: [Intel-xe] [PATCH 18/21] drm/xe/uapi: More OA uapi fixes/additions X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" On Tue, 19 Sep 2023 09:10:46 -0700, Ashutosh Dixit wrote: > > +/** > + * struct drm_xe_query_oa_info - describe OA units > + * > + * If a query is made with a struct drm_xe_device_query where .query > + * is equal to DRM_XE_DEVICE_QUERY_OA_INFO, then the reply uses struct > + * drm_xe_query_oa_info in .data. > + */ > +struct drm_xe_query_oa_info { > + /** @extensions: Pointer to the first extension struct, if any */ > + __u64 extensions; > + > + /** @oa_unit_count: number of OA units returned in oau[] */ > + __u32 oa_unit_count; > + > + /** @pad: MBZ */ > + __u32 pad; After discussions with Umesh, we will add a 'capabilities' bitmask here. Umesh, could you please see if anything else should be added to this struct? Thanks. -- Ashutosh > + > + /** @reserved: MBZ */ > + __u64 reserved[4]; > + > + /** @oau: OA units returned for this device */ > + struct drm_xe_query_oa_unit { > + /** @oa_unit_id: OA unit ID */ > + __u16 oa_unit_id; > + > + /** @gt_id: GT ID for this OA unit */ > + __u16 gt_id; > + > + /** @pad: MBZ */ > + __u32 pad; > + > + /** @oa_timestamp_freq: OA timestamp freq */ > + __u64 oa_timestamp_freq; > + > + /** @reserved: MBZ */ > + __u64 reserved[4]; > + > + /** @eci: engines attached to this OA unit */ > + struct drm_xe_engine_class_instance eci[]; > + } oau[]; > +};