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 7CEC0CE79AC for ; Wed, 20 Sep 2023 09:23:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3949B10E474; Wed, 20 Sep 2023 09:23:46 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 86FD610E473 for ; Wed, 20 Sep 2023 09:23:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695201824; x=1726737824; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=3zi2BEJW1dCwu17DcJRllQFeOiERvZZBK0IMO5fFeyA=; b=JAoXofimTb2gX2SZbVvzTIVYjEFZiAGDE0aMlQe95TbbkTQgfp5FsAD7 0xTDZYYQ8zDgMyaIMsT+X6ub7Azbky6i1g/A+DHI+SlKF0GtgDW12tsnN btWICdRJThK4xS01sRb2EdYYxyS8dSa2eQdtNgQuCb6L+GfUE6/+shYeA V9rc7DzDC2NslgRgP9f80EN+JNTFoJrZ9WyKdovrwcm9Vs6bw4Dm5g5+O BDpwHmLeXRaH2cGmhtjzd8x7rTTn8sfc7xOwZ2x5xeaUlnUtLy+1ggM/R ryFTv9XNQ9We0I0fs7h2rqkYcSLvugfEbIGa9igm9w9nx6EQ6GRYvdPjM Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10838"; a="444267590" X-IronPort-AV: E=Sophos;i="6.02,161,1688454000"; d="scan'208";a="444267590" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Sep 2023 02:23:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10838"; a="781625259" X-IronPort-AV: E=Sophos;i="6.02,161,1688454000"; d="scan'208";a="781625259" Received: from sannilnx-dsk.jer.intel.com ([10.12.231.107]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Sep 2023 02:23:41 -0700 From: Alexander Usyskin To: Greg Kroah-Hartman , Lucas De Marchi , Daniele Ceraolo Spurio , Rodrigo Vivi Date: Wed, 20 Sep 2023 12:19:19 +0300 Message-Id: <20230920091923.1573873-1-alexander.usyskin@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Intel-xe] [PATCH v3 0/4] drm/xe/gsc: add initial gsc 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: linux-kernel@vger.kernel.org, Tomas Winkler , Alexander Usyskin , intel-xe@lists.freedesktop.org Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" Add initial GSC support for DG1 and DG2. Create mei-gscfi auxiliary device and add support for device created by Xe to the mei-gsc driver. This series intended to be merged into Xe tree, the only patch that touches char-misc is addition of id and alias in mei-gsc. V3: Review comments addressed: - xe_heci_gsc_init mover earlier - part of init flow moved to dedicated functions - KDoc fix V2: Added heci_ to struct and APIs heci_gsc moved under xe_device as GSC is not under GT Signed-off-by: Alexander Usyskin Vitaly Lubart (4): drm/xe/gsc: add HECI2 register offsets drm/xe/gsc: add has_heci_gscfi indication to device drm/xe/gsc: add gsc device support mei: gsc: add support for auxiliary device created by Xe driver drivers/gpu/drm/xe/Kconfig | 1 + drivers/gpu/drm/xe/Makefile | 1 + drivers/gpu/drm/xe/regs/xe_regs.h | 4 + drivers/gpu/drm/xe/xe_device.c | 4 + drivers/gpu/drm/xe/xe_device_types.h | 7 + drivers/gpu/drm/xe/xe_heci_gsc.c | 222 +++++++++++++++++++++++++++ drivers/gpu/drm/xe/xe_heci_gsc.h | 35 +++++ drivers/gpu/drm/xe/xe_irq.c | 21 ++- drivers/gpu/drm/xe/xe_pci.c | 9 +- drivers/misc/mei/gsc-me.c | 5 + 10 files changed, 302 insertions(+), 7 deletions(-) create mode 100644 drivers/gpu/drm/xe/xe_heci_gsc.c create mode 100644 drivers/gpu/drm/xe/xe_heci_gsc.h -- 2.34.1