From patchwork Tue Apr 19 19:33:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniele Ceraolo Spurio X-Patchwork-Id: 12819376 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 78EB2C433F5 for ; Tue, 19 Apr 2022 19:33:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B34A489C28; Tue, 19 Apr 2022 19:33:24 +0000 (UTC) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4C78989BBD for ; Tue, 19 Apr 2022 19:33:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650396803; x=1681932803; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=VLQyYkWU+5MoyP4DiBjN0p8+vwVqW87CL1mWoP9Sgcg=; b=Q2pTKjWq/ix+KpmKMrdd/sB1RjTo1CLCcuRxZDU0ORN2s0/ON5oSLF7o +7W2cxloga1KvE1BJU2ydw8WaBHacLEaO+R+WExA12krKySJ+fdtC6VaD kl/1qSyn67DGd9pBuChQq27Tc20V1akwEfSk6lX25jQs0n0zw6Beef6Nd +kluDuUq3pE/qwqF/ulr2AjSViQMFgATX7hL5eAw0ElI0SI61oU1sBA/U +q22/dmyjhlzjK8UccJUk5ITkyD/dhA2Dm42r6TwTLpDOmvUSVlNbzdyG Z0CDgWr46MgcTjjQdQflWybnH7mwpXbG+/bCXzfgioprtTYW2SurNDx+z w==; X-IronPort-AV: E=McAfee;i="6400,9594,10322"; a="244437958" X-IronPort-AV: E=Sophos;i="5.90,273,1643702400"; d="scan'208";a="244437958" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2022 12:33:22 -0700 X-IronPort-AV: E=Sophos;i="5.90,273,1643702400"; d="scan'208";a="554868561" Received: from valcore-skull-1.fm.intel.com ([10.1.27.19]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2022 12:33:22 -0700 From: Daniele Ceraolo Spurio To: intel-gfx@lists.freedesktop.org Date: Tue, 19 Apr 2022 12:33:07 -0700 Message-Id: <20220419193314.526966-1-daniele.ceraolospurio@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH v3 0/7] GSC support X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alexander.usyskin@intel.com, rodrigo.vivi@intel.com Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Same as the previous rev, with the only thing changed being the MODULE_LICENSE for mei-gsc, from "GPL v2" to "GPL"; these both map to GPL v2, but the second option is preferred (see [1]) and checkpatch will complain if we use the first one. I've discussed the changes with Rodrigo before applying them to make sure I got the license right and he already gave is ack to the update, so all patches are fully reviewed. [1] https://www.kernel.org/doc/html/latest/process/license-rules.html Cc: Alexander Usyskin Cc: Rodrigo Vivi Alexander Usyskin (2): mei: gsc: setup char driver alive in spite of firmware handshake failure mei: gsc: retrieve the firmware version Daniele Ceraolo Spurio (1): HAX: drm/i915: force INTEL_MEI_GSC on for CI Tomas Winkler (4): drm/i915/gsc: add gsc as a mei auxiliary device mei: add support for graphics system controller (gsc) devices mei: gsc: add runtime pm handlers drm/i915/dg2: add gsc with special gsc bar offsets MAINTAINERS | 1 + drivers/gpu/drm/i915/Kconfig | 1 + drivers/gpu/drm/i915/Kconfig.debug | 1 + drivers/gpu/drm/i915/Makefile | 3 + drivers/gpu/drm/i915/gt/intel_gsc.c | 224 ++++++++++++++++++++ drivers/gpu/drm/i915/gt/intel_gsc.h | 37 ++++ drivers/gpu/drm/i915/gt/intel_gt.c | 3 + drivers/gpu/drm/i915/gt/intel_gt.h | 5 + drivers/gpu/drm/i915/gt/intel_gt_irq.c | 13 ++ drivers/gpu/drm/i915/gt/intel_gt_regs.h | 1 + drivers/gpu/drm/i915/gt/intel_gt_types.h | 2 + drivers/gpu/drm/i915/i915_drv.h | 8 + drivers/gpu/drm/i915/i915_pci.c | 4 +- drivers/gpu/drm/i915/i915_reg.h | 4 + drivers/gpu/drm/i915/intel_device_info.h | 2 + drivers/misc/mei/Kconfig | 14 ++ drivers/misc/mei/Makefile | 3 + drivers/misc/mei/bus-fixup.c | 25 +++ drivers/misc/mei/gsc-me.c | 259 +++++++++++++++++++++++ drivers/misc/mei/hw-me.c | 29 ++- drivers/misc/mei/hw-me.h | 2 + include/linux/mei_aux.h | 19 ++ 22 files changed, 657 insertions(+), 3 deletions(-) create mode 100644 drivers/gpu/drm/i915/gt/intel_gsc.c create mode 100644 drivers/gpu/drm/i915/gt/intel_gsc.h create mode 100644 drivers/misc/mei/gsc-me.c create mode 100644 include/linux/mei_aux.h