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 916D8C4332F for ; Tue, 14 Nov 2023 13:34:52 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 10D8210E448; Tue, 14 Nov 2023 13:34:52 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by gabe.freedesktop.org (Postfix) with ESMTPS id ABF3510E206 for ; Tue, 14 Nov 2023 13:34: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=1699968890; x=1731504890; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=AEyRJMspimTdXBCf4dHbElhA5DCqILoymebtRrP/T8w=; b=lzNi83JlHmFF74f0JQjma4FDwy4cxUxjF/d7pfFak5OJmUn7wqdpYDcu tktMycEhZXDq5fV/yYCd8ZMPnh6jWSx+DeQWsQ87SCKeYkuYuINEWrS8B zYkc4n/UA3d30VbFZnsUH5Niy+c6HE8JDW4F66nICyysfrU2UhqNGjffs Yd12vJP3S+if560o53jJT3pJvbaxnNHnIB28JGNyFeGJDIc5sC/zJ0Yw3 eGH5QgV51aJ9UYgmFfhv3Jc+DTLJ316Gi2V4swqhuZOkz5eXk3lQn5Vr9 P3ZOpDQcr0Tbz5qpI9JgeY+bV4Tsu5a0hVQXQIYFr4omuWukBPdIuzVNS w==; X-IronPort-AV: E=McAfee;i="6600,9927,10894"; a="9293960" X-IronPort-AV: E=Sophos;i="6.03,302,1694761200"; d="scan'208";a="9293960" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Nov 2023 05:34:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10894"; a="764661283" X-IronPort-AV: E=Sophos;i="6.03,302,1694761200"; d="scan'208";a="764661283" Received: from kdijkstr-mobl.ger.corp.intel.com (HELO localhost.localdomain) ([10.251.218.123]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Nov 2023 05:34:48 -0800 From: Francois Dugast To: intel-xe@lists.freedesktop.org Date: Tue, 14 Nov 2023 13:34:29 +0000 Message-Id: <20231114133434.7-4-francois.dugast@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231114133434.7-1-francois.dugast@intel.com> References: <20231114133434.7-1-francois.dugast@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Intel-xe] [PATCH v1 3/8] drm/xe/uapi: Change rsvd to pad in struct drm_xe_class_instance 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: , Cc: Francois Dugast Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" Change rsvd to pad in struct drm_xe_class_instance to prevent the field from being used in future. v2: Change from fixup to regular commit because this touches the uAPI (Francois Dugast) Signed-off-by: Umesh Nerlige Ramappa Signed-off-by: Francois Dugast --- drivers/gpu/drm/xe/xe_query.c | 5 ++++- include/uapi/drm/xe_drm.h | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_query.c b/drivers/gpu/drm/xe/xe_query.c index 565a716302bb..48befd9f0812 100644 --- a/drivers/gpu/drm/xe/xe_query.c +++ b/drivers/gpu/drm/xe/xe_query.c @@ -215,7 +215,10 @@ static int query_engines(struct xe_device *xe, xe_to_user_engine_class[hwe->class]; hw_engine_info[i].engine_instance = hwe->logical_instance; - hw_engine_info[i++].gt_id = gt->info.id; + hw_engine_info[i].gt_id = gt->info.id; + hw_engine_info[i].pad = 0; + + i++; } if (copy_to_user(query_ptr, hw_engine_info, size)) { diff --git a/include/uapi/drm/xe_drm.h b/include/uapi/drm/xe_drm.h index f6346a8351e4..a8d351c9fa7c 100644 --- a/include/uapi/drm/xe_drm.h +++ b/include/uapi/drm/xe_drm.h @@ -141,7 +141,8 @@ struct drm_xe_engine_class_instance { __u16 engine_instance; __u16 gt_id; - __u16 rsvd; + /** @pad: MBZ */ + __u16 pad; }; /** -- 2.34.1