Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp3053363lqt; Tue, 23 Apr 2024 09:07:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWmz9FkGugrJnLEPXKTHxKZkqq65JwS6SmIfjFtCN8BuVwErs1AuIJVKgrww1Fy/tIf+DD2RWz9jAMAyyK/V9z90amkBrO3shwY5WkkvA== X-Google-Smtp-Source: AGHT+IG8WcrrlfmwXloU0oGvnDOvtmPOoHNn0VXjad/aAahj6GWOWHLctYt0SehynycvzAB/364c X-Received: by 2002:a2e:8ec3:0:b0:2db:98d0:fd1b with SMTP id e3-20020a2e8ec3000000b002db98d0fd1bmr10950895ljl.46.1713888447571; Tue, 23 Apr 2024 09:07:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713888447; cv=pass; d=google.com; s=arc-20160816; b=eiR1vsTzMADp7DHvt1zekPWb9mmXhN/uJqAkMUb05gv3MtmB/fF9YWYuWxAbHv60xS ElxoQjm99Iyng2YubCyC0V0/JY+J2rfyiEDj0liuft07vnrqCWaf6qsBEeU3PdsIcnoq SP2ypPcYDuCFR6vGBYKQIJCmTfr6PuuV9wuH9y+iWgQ4rl5VGYwdZj/v7hW1BremIaDZ 1X0ShW2/eHRapv1G9XSyiPJn29V+o5JW0L+mtXD3MGi80b7X0qAPsMHVT4/fxTlmamjK rekf0K46hD5+MK9MD4IKf+VfvUju4zfm1vS+uw7FFFBcoLoxOSWa2duHHYtYoNu1e+DX sHig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=pt39q7sx6c5yNjZcVGN1xWDToDBp7/zJlg+fsFxinKE=; fh=sgZNZy4F/7s7E0kP7zf6hvn456QwJsq+JjXpfk7rjK0=; b=sj5cC8vFqY4YWxXeUGNAUDBzgM+nI/UnBdt7832XMnqgJ2scLaCy4ukKkolj6hguIG JLAzG4WmVXcQFxdENkWmbRHf4lw2EAkcmx12LvxMm+/KQ6ai6djezH8sje/kFQxchswq TSv7xmii1M6InETKkvHUjXrveNtVufIsJig1a+jiPQHJs7qNq1StHg4tfQzrJFfcI/E/ yC6ug6Yzc3TkHFkmgbLq/elTIjot0fDGe5vTUXLmMR4BW0US7/xBCkMWJi7sSvfEi9hM UeCJ+pDlsORGTvXG0O9N7FrG9RoGXlhGosuAWxgM5WRr7EpCPJua5VrsOSlpt/dz37Xq iGjQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bmhJjkWF; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-155516-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155516-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id y10-20020a50eb0a000000b0056c06c4ac81si7302197edp.486.2024.04.23.09.07.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 09:07:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155516-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bmhJjkWF; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-155516-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155516-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 25A9C1F2223B for ; Tue, 23 Apr 2024 16:06:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BD00313CA9C; Tue, 23 Apr 2024 16:06:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="bmhJjkWF" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5DBFB13CA85 for ; Tue, 23 Apr 2024 16:06:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.8 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713888398; cv=none; b=rOBeTHtgtE7QOPFFoaN7scM9NljJpgzKMPO/n6Q7K8BONiiBsTdvbW8FiGwp7jq/CRbgigjLFSWTOZiKxFLi/+DIzfLq6Jpzhbs+ybJDq3h8aAhwCJTKf+DOgexndPE2JdDjQFrHNF9UoH1i9jAFZwZswEXzHF9NjgL9i+16jhk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713888398; c=relaxed/simple; bh=rz8v7GIZzAfZBSS+u7zhv0RpH1opYCbH7jQyaPOBrDk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=BJ/kyRTf6TJRwqaua3qkUV/hWLW68x67Mbx5kFF/3CXT6LbL/OpefdiC2s1Gc8/U66HcuXMZIczYacCJ6woaxWzDBDjHpNnSeXErl2F1Sr+YzevtgFFew0J0r/9yPakh5q3UUjIEBAXgCFQAVlaYTgHi7DCY60/vZrwL8uLakCE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=bmhJjkWF; arc=none smtp.client-ip=192.198.163.8 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713888396; x=1745424396; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=rz8v7GIZzAfZBSS+u7zhv0RpH1opYCbH7jQyaPOBrDk=; b=bmhJjkWFsEr2+9Ai6JdbJrsiZQylorV6DqL6nODBwqqjle3Kygso3TcA x8A9M7qqE9Um8nvFIQ5S2LN4dZk95wFMEpmvU+CJipdsLlmO/HaGW/peA DsUnRhXJCnCvtPz8sMhRy0c36DIAKw1T5WPl/LT2orOQc4U93JG6UYYBw Zx+/FnuHWTc4zZgZEbSkbQwyTaDc/TK3m/vo1hM2q2B2FtBdardXqhST+ mr3gke3/VQ36CyxiArBc8fivVrYFNo7riFRfvjLNxXqkj1/Eu+gm5our3 XoygOYKP61MNw9dc87lOGb/sBVuXu9Yknjq4sDmNOzsDN7dTBqCtWffc+ A==; X-CSE-ConnectionGUID: f/fPf4L9Qr6sDbcfqaCUog== X-CSE-MsgGUID: XreGWFB+QTCJ1HYz83cisA== X-IronPort-AV: E=McAfee;i="6600,9927,11053"; a="26998814" X-IronPort-AV: E=Sophos;i="6.07,222,1708416000"; d="scan'208";a="26998814" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Apr 2024 09:06:36 -0700 X-CSE-ConnectionGUID: qDtkmvRNSd2lTeZuZ+gmgQ== X-CSE-MsgGUID: I6NKywfHQgq2h0ztgUKHHg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,222,1708416000"; d="scan'208";a="24462354" Received: from josouza-mobl2.bz.intel.com ([10.87.243.88]) by fmviesa010-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Apr 2024 09:06:34 -0700 From: =?UTF-8?q?Jos=C3=A9=20Roberto=20de=20Souza?= To: linux-kernel@vger.kernel.org, intel-xe@lists.freedesktop.org Cc: Rodrigo Vivi , Matt Roper , Zhanjun Dong , =?UTF-8?q?Jos=C3=A9=20Roberto=20de=20Souza?= Subject: [PATCH CI 1/3] drm/xe: Store xe_he_engine in xe_hw_engine_snapshot Date: Tue, 23 Apr 2024 09:05:48 -0700 Message-ID: <20240423160626.77110-1-jose.souza@intel.com> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A future patch will require gt and xe device structs, so here replacing class by hwe. Cc: Rodrigo Vivi Cc: Matt Roper Cc: Zhanjun Dong Reviewed-by: Rodrigo Vivi Signed-off-by: José Roberto de Souza --- drivers/gpu/drm/xe/xe_hw_engine.c | 6 +++--- drivers/gpu/drm/xe/xe_hw_engine_types.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_hw_engine.c b/drivers/gpu/drm/xe/xe_hw_engine.c index 455f375c1cbd6..c84dbe8a8ed1d 100644 --- a/drivers/gpu/drm/xe/xe_hw_engine.c +++ b/drivers/gpu/drm/xe/xe_hw_engine.c @@ -791,7 +791,7 @@ xe_hw_engine_snapshot_capture(struct xe_hw_engine *hwe) return NULL; snapshot->name = kstrdup(hwe->name, GFP_ATOMIC); - snapshot->class = hwe->class; + snapshot->hwe = hwe; snapshot->logical_instance = hwe->logical_instance; snapshot->forcewake.domain = hwe->domain; snapshot->forcewake.ref = xe_force_wake_ref(gt_to_fw(hwe->gt), @@ -842,7 +842,7 @@ xe_hw_engine_snapshot_capture(struct xe_hw_engine *hwe) snapshot->reg.ring_eir = hw_engine_mmio_read32(hwe, RING_EIR(0)); snapshot->reg.ipehr = hw_engine_mmio_read32(hwe, RING_IPEHR(0)); - if (snapshot->class == XE_ENGINE_CLASS_COMPUTE) + if (snapshot->hwe->class == XE_ENGINE_CLASS_COMPUTE) snapshot->reg.rcu_mode = xe_mmio_read32(hwe->gt, RCU_MODE); return snapshot; @@ -887,7 +887,7 @@ void xe_hw_engine_snapshot_print(struct xe_hw_engine_snapshot *snapshot, drm_printf(p, "\tBBADDR: 0x%016llx\n", snapshot->reg.ring_bbaddr); drm_printf(p, "\tDMA_FADDR: 0x%016llx\n", snapshot->reg.ring_dma_fadd); drm_printf(p, "\tIPEHR: 0x%08x\n", snapshot->reg.ipehr); - if (snapshot->class == XE_ENGINE_CLASS_COMPUTE) + if (snapshot->hwe->class == XE_ENGINE_CLASS_COMPUTE) drm_printf(p, "\tRCU_MODE: 0x%08x\n", snapshot->reg.rcu_mode); } diff --git a/drivers/gpu/drm/xe/xe_hw_engine_types.h b/drivers/gpu/drm/xe/xe_hw_engine_types.h index d7f828c76cc5f..27deaa31efd31 100644 --- a/drivers/gpu/drm/xe/xe_hw_engine_types.h +++ b/drivers/gpu/drm/xe/xe_hw_engine_types.h @@ -158,8 +158,8 @@ struct xe_hw_engine { struct xe_hw_engine_snapshot { /** @name: name of the hw engine */ char *name; - /** @class: class of this hw engine */ - enum xe_engine_class class; + /** @hwe: hw engine */ + struct xe_hw_engine *hwe; /** @logical_instance: logical instance of this hw engine */ u16 logical_instance; /** @forcewake: Force Wake information snapshot */ -- 2.44.0