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 5489EC4332F for ; Tue, 7 Nov 2023 12:01:20 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 02B7B10E13D; Tue, 7 Nov 2023 12:01:20 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by gabe.freedesktop.org (Postfix) with ESMTPS id 43C2D10E155 for ; Tue, 7 Nov 2023 12:01:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1699358478; x=1730894478; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=vLlJCuiq03JXDoHD9gLL1FUuJopSkqfWqd3J7ZQTsFQ=; b=OaV0oXk0gDkgc0uCO94Zeo7dHHXSgf7CuAhqfpkTronm33ftGKwgG31I H+3mg+Uq3DNKdny8ZE7vAa9X3J5zfFKeogI4s0RQDVj6Rz0X8A5W7osvR L5QIZl5CLOyRKOponMQU4q0wkwYZoIMY8RLwU3fB64CbHsQmdH7D5Ts9s DmIaitaHet5Cwl+lriHcHSuHwwXSgafIfWHHAibyWxhDHU0PotFw/KMXF 4OUx1GsLh8DBMM9A37uT6csrqCgfgDCw67O0DoyDM3jQwo5KqN7aW4HxF GPDhB6iJuXOmDIUrqJPbn+M/aFJjI9CSb8/5rW27lp/ozPU0/5TegtyBL g==; X-IronPort-AV: E=McAfee;i="6600,9927,10886"; a="11032745" X-IronPort-AV: E=Sophos;i="6.03,283,1694761200"; d="scan'208";a="11032745" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Nov 2023 04:01:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10886"; a="756158998" X-IronPort-AV: E=Sophos;i="6.03,283,1694761200"; d="scan'208";a="756158998" Received: from sannilnx-dsk.jer.intel.com ([10.12.231.107]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Nov 2023 04:01:13 -0800 From: Alexander Usyskin To: Lucas De Marchi , Daniele Ceraolo Spurio , Rodrigo Vivi Date: Tue, 7 Nov 2023 13:55:58 +0200 Message-Id: <20231107115559.248879-2-alexander.usyskin@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231107115559.248879-1-alexander.usyskin@intel.com> References: <20231107115559.248879-1-alexander.usyskin@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Intel-xe] [PATCH v2 1/2] drm/xe/gsc: enable pvc support 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: Tomas Winkler , Alexander Usyskin , intel-xe@lists.freedesktop.org Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" Configure and enable PVC HECI GSC support. Signed-off-by: Alexander Usyskin --- drivers/gpu/drm/xe/regs/xe_regs.h | 1 + drivers/gpu/drm/xe/xe_heci_gsc.c | 11 ++++++++++- drivers/gpu/drm/xe/xe_pci.c | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/xe/regs/xe_regs.h b/drivers/gpu/drm/xe/regs/xe_regs.h index a646d13af03a..ec9372aa739f 100644 --- a/drivers/gpu/drm/xe/regs/xe_regs.h +++ b/drivers/gpu/drm/xe/regs/xe_regs.h @@ -35,6 +35,7 @@ #define XEHPC_BCS8_RING_BASE 0x3ee000 #define DG1_GSC_HECI2_BASE 0x00259000 +#define PVC_GSC_HECI2_BASE 0x00285000 #define DG2_GSC_HECI2_BASE 0x00374000 #define GSCCS_RING_BASE 0x11a000 diff --git a/drivers/gpu/drm/xe/xe_heci_gsc.c b/drivers/gpu/drm/xe/xe_heci_gsc.c index 3328ddca42d0..d8e982e3d9a2 100644 --- a/drivers/gpu/drm/xe/xe_heci_gsc.c +++ b/drivers/gpu/drm/xe/xe_heci_gsc.c @@ -70,6 +70,13 @@ static const struct heci_gsc_def heci_gsc_def_dg2 = { .bar_size = GSC_BAR_LENGTH, }; +static const struct heci_gsc_def heci_gsc_def_pvc = { + .name = "mei-gscfi", + .bar = PVC_GSC_HECI2_BASE, + .bar_size = GSC_BAR_LENGTH, + .slow_firmware = true, +}; + static void heci_gsc_release_dev(struct device *dev) { struct auxiliary_device *aux_dev = to_auxiliary_dev(dev); @@ -172,7 +179,9 @@ void xe_heci_gsc_init(struct xe_device *xe) heci_gsc->irq = -1; - if (xe->info.platform == XE_DG2) { + if (xe->info.platform == XE_PVC) { + def = &heci_gsc_def_pvc; + } else if (xe->info.platform == XE_DG2) { def = &heci_gsc_def_dg2; } else if (xe->info.platform == XE_DG1) { def = &heci_gsc_def_dg1; diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c index 2fae45b9d88e..682ba188e456 100644 --- a/drivers/gpu/drm/xe/xe_pci.c +++ b/drivers/gpu/drm/xe/xe_pci.c @@ -315,6 +315,7 @@ static const struct xe_device_desc pvc_desc = { PLATFORM(XE_PVC), .has_display = false, .require_force_probe = true, + .has_heci_gscfi = 1, }; static const struct xe_device_desc mtl_desc = { -- 2.34.1