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 B5CC7CE79A8 for ; Tue, 19 Sep 2023 17:02:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 71BA410E13A; Tue, 19 Sep 2023 17:02:59 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7634D10E13A for ; Tue, 19 Sep 2023 17:02:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695142976; x=1726678976; h=date:message-id:from:to:subject:in-reply-to:references: mime-version; bh=cSiud5HA+QLofa3qfSvcutAWF9EE8+iz0X3XFydqRgs=; b=n9j8F8O3a1Zo4Ikdx5Z+vFd5d7RQlKprzHy+rc4X4448qE9Nx26GQTME qCTK6wijsBeIdKmYcUa9tSYru9MFXbUnlwYxZmwGEM+fdGKRVf4jDNm5I rimno6bJBj18/aaGgR5g1NGocgBq4Sji927d0YvMA55ClzVmmtIBGFjHg wNna1Z6cbAJUP3O3FIvLAxVXEWctMIs8JhIMPNo30Zsx1tlMX0p3bPAaE qrMretQc0HzDtpFMiNKuQQUDyZfC42+zN45J+8jaDC2qs1rTm+xDtZwHU 14oRtPbQu1RF9cbD8hnY1OzjYcDWkKeRlR6F45AN6ja4fsDcCA1Zrv6AZ A==; X-IronPort-AV: E=McAfee;i="6600,9927,10838"; a="360256552" X-IronPort-AV: E=Sophos;i="6.02,160,1688454000"; d="scan'208";a="360256552" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2023 10:02:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10838"; a="861629695" X-IronPort-AV: E=Sophos;i="6.02,160,1688454000"; d="scan'208";a="861629695" Received: from adixit-mobl.amr.corp.intel.com (HELO adixit-arch.intel.com) ([10.209.82.48]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2023 10:02:55 -0700 Date: Tue, 19 Sep 2023 10:02:53 -0700 Message-ID: <87fs3axfia.wl-ashutosh.dixit@intel.com> From: "Dixit, Ashutosh" To: intel-xe@lists.freedesktop.org In-Reply-To: <20230919161049.2307855-20-ashutosh.dixit@intel.com> References: <20230919161049.2307855-1-ashutosh.dixit@intel.com> <20230919161049.2307855-20-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 19/21] drm/xe/uapi: Drop OA_IOCTL_VERSION 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:47 -0700, Ashutosh Dixit wrote: > > OA version was previously used to track which OA properties were introduced > at which version. However OA version is an outlier in that a similar > version is not used anywhere else in the kernel. This is not strictly true. E.g. AMD's include/uapi/linux/kfd_ioctl.h contains KFD_IOCTL_MAJOR_VERSION/KFD_IOCTL_MINOR_VERSION. > For XE, we will track addition of new properties by means of > xe_user_extension. Userland can either maintain a mapping of OA properties > against the kernel version, or rely on return codes (e.g. ENOTSUPP) to > "discover" OA properties. But let's see if we need a version for OA or the kernel version itself is sufficient. > > Suggested-by: Umesh Nerlige Ramappa > Signed-off-by: Ashutosh Dixit Thanks. -- Ashutosh