Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3535016pxp; Tue, 8 Mar 2022 16:51:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJyY6xu7t5lLZBKtP4mPOFOhdwORnQg5SVoDy6GlQ7wUtwqsq8dKGPOwFRdeY8j0J14GAglk X-Received: by 2002:a62:15c6:0:b0:4f7:4392:40c7 with SMTP id 189-20020a6215c6000000b004f7439240c7mr2888118pfv.5.1646787117828; Tue, 08 Mar 2022 16:51:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646787117; cv=none; d=google.com; s=arc-20160816; b=ornkMiz6I5kXhulqw85rjcD1psRmErZpbc5P/FjBX0+WMTGueDEoVJkwUZpI8qJrwv mZHWeqx9dL7G+4JwU+KSut73HRZjlYl9SHgz9qmT9s3EbcgP1hQRLtLQxSZ+bXHl8FAL /2kKzL2FuvKJw7cEHgH2HI18uD/uvIPr9+DdRcWVMPwUMRyiwelDcVhEC2hlkFFQnNu9 13ARmWNkBc8sriI4A3rg53ZqL00tX53DCerOaJo0Los0S33ihUpll7XISyyqpKcL5HOI Wud6Yqm89hajAGsPlMwvOUcEHIDWy+8UR2ki1mjxCPpYBtrPSzvVuLJgDsZ4IxfajSvB VORQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=vJWMZHlfs04M4WBEhaoFV8pFqSbESJynWBxrRi09zGo=; b=GuRysmN2WlsD6YADc/UY5syfzkAQHqNKFBdcPXUI2q6nZ/qIcWlGEzthj69C/ZRRFx SFmmFnx3WVIflLE/dl7CY+qDFpna4o6Gh+/OpqAVKBiXOXB1JuL4nUjpqWhqlw2Zk42u LxSpwt3tQ75xAcGkMPt+2KlZRUQLA+FilRbOA/2fxmI1OWMXyRqzMnA70Pje+RsqH7Fp ezNZUiSqPqf+peOSecMh9ZdPjw444YEQyyqfyZtAK+Dos2Drjeinb/DxCOeP0BmIUERc 2JMbZDaKAcmXuK/cDom7IBgmyFoAaNqy9bk51dz6/rF3zeJdWEJ8Q8tQ+1gRXJX093Qr e+Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GfUHeBED; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e14-20020a056a00162e00b004f72d98994asi362589pfc.304.2022.03.08.16.51.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 16:51:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GfUHeBED; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D4BDC14A6DF; Tue, 8 Mar 2022 16:02:34 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348392AbiCHQjD (ORCPT + 99 others); Tue, 8 Mar 2022 11:39:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343646AbiCHQjD (ORCPT ); Tue, 8 Mar 2022 11:39:03 -0500 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F6854B1D9 for ; Tue, 8 Mar 2022 08:38:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646757486; x=1678293486; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=EH+ROyKAMQudDgIgSEXIZbvUMDDtuetNn93Y7yanV20=; b=GfUHeBED9xscTXqZWJP8/EOCcMpyzU9gSnepjU8GzJZ5qKSoDHSHwsvp Tu+HD+z+7ftaL6iy67/xzVXkEaugNzg4XS6JOksNIb7LFjOrkMn7JLjQz PkmaGyaU1/UxrMEYuCmkSpgO6Yv7XnBg3gLpLO1VI4G3C2lV6PitIB6AM ARhu7fB1GZalmAnOB/Zy3L/sgyE4EuZXcAjLIBDsn8EBU3hKotAyKn8N9 89hFn6IsOSow7p8fqP69o6bFdvfLJd6Rpp4ZQ4dvfRpHfRcWIdhky6Y0R izTtu5iHiATwvaLxPEpgMDEImq7kRKf22dRRz3xX7StsvW1x0nCjxny2Q Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10280"; a="254464268" X-IronPort-AV: E=Sophos;i="5.90,165,1643702400"; d="scan'208";a="254464268" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2022 08:38:05 -0800 X-IronPort-AV: E=Sophos;i="5.90,165,1643702400"; d="scan'208";a="537630725" Received: from sannilnx.jer.intel.com ([10.12.231.73]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2022 08:38:02 -0800 From: Alexander Usyskin To: Greg Kroah-Hartman , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie , Daniel Vetter , Tvrtko Ursulin Cc: Tomas Winkler , Alexander Usyskin , Vitaly Lubart , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v10 0/5] Add driver for GSC controller Date: Tue, 8 Mar 2022 18:36:49 +0200 Message-Id: <20220308163654.942820-1-alexander.usyskin@intel.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org GSC is a graphics system controller, it provides a chassis controller for graphics discrete cards. There are two MEI interfaces in GSC: HECI1 and HECI2. This series includes instantiation of the auxiliary devices for HECI2 and mei-gsc auxiliary device driver that binds to the auxiliary device. The prinicpal user of this interface is the Intel Graphics System Controller Firmware Update Library (IGSC FU) (https://github.com/intel/igsc) In v2 the platform device was replaced by the auxiliary device. v3 is the rebase over drm-tip to make public CI running. In v4 the not needed debug prints and empty line were removed, 'select' were replaced by 'depends on' in MEI Kconfig, the new include file now listed in the MAINTATINERS file. V5, rebase and add Greg KH Reviewed-by V6, rebase and drop redundant assignments found by the kernel test robot. V7, add Greg KH Reviewed-by to the individual patches V8, address Tvrtko comments for i915 V9, rebase and address more Tvrtko comments, use drm error printing V10, rebase Alexander Usyskin (2): mei: gsc: setup char driver alive in spite of firmware handshake failure mei: gsc: retrieve the firmware version Tomas Winkler (3): 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 MAINTAINERS | 1 + drivers/gpu/drm/i915/Kconfig | 1 + drivers/gpu/drm/i915/Makefile | 3 + drivers/gpu/drm/i915/gt/intel_gsc.c | 204 ++++++++++++++++++ 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 | 3 +- drivers/gpu/drm/i915/i915_reg.h | 2 + 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 | 252 +++++++++++++++++++++++ drivers/misc/mei/hw-me.c | 29 ++- drivers/misc/mei/hw-me.h | 2 + include/linux/mei_aux.h | 19 ++ 21 files changed, 626 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 -- 2.32.0