Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5054664pxb; Sun, 13 Feb 2022 06:17:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJzEaxQyH890xPl5AP+T0T2ylonRbn2lcHODHMBGuL96RR37Dt5Uu/QMwGchrBU6dGc9asZl X-Received: by 2002:a63:6b8a:: with SMTP id g132mr8233052pgc.540.1644761865691; Sun, 13 Feb 2022 06:17:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644761865; cv=none; d=google.com; s=arc-20160816; b=pyweSjeb8s6k0aEBaCC4CHNKg5cP8mk0KatRLmZU+Oy17MbWeYgRdgvezEK52DV0Un bOeHRvFr2aF/3Adox6KSA/F4JTHj8M0nF6mrqQxkiofBbdHmJ/meh1tQD7Rp8btn3DWX smqY78ejhA7OVN/32btKnXpfpFab8FSQ/xNC+ifgKfcPJVAliCMYgCx9H5oArgmVgyp6 DSnbQrjrGWNhqPC39xZnIXCAUKgoAmVJSU5rhxQqRkdJ9Xg/hYfEzM2F39oF3WzeDxsG VMK3qhNqpjB0yeVAkHutNZu6uftY+Qjnepb0HYw8XWRidBcmI+dNQVrxXEs3Kwk6t4EL pTWA== 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=fJfng9gR+A6HTUtmCM7G1p+xKC5NpxsyHzJEVcQe9G8=; b=0CXV5cB2bn3nWCeCSDEGz1z+LpBF0/opnOkocjbpG8OWEi/jA2+QTcp6u9aUo98PKa VdJ+RexXmlOxkDe0DWAX6Ht65L3W9I1OfkLE1D7Sf0ENdEEjvn28p4OboEBZdViWDskh 4nKBwd58tu2Nf2+442g//rlKzUh2PDrYAEtQuAHU5fOz0Oy15ZPvCBjy3utQSPuKpz3B skgbIpxC0CYfyVSkLE1+5kX5uOldz21AW2vz1FtGr01WMhJjECTtLqahS5GfUqhm2UDP 1lJam4nI8mMWaWc3hGXlCh3S0UIjgcnTomx7jINvpcOKClFW1UMVTlV1D7jpzv4VOUFv 7LTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=a78VohSq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f71si27463879pgc.681.2022.02.13.06.17.10; Sun, 13 Feb 2022 06:17:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=a78VohSq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234953AbiBMKci (ORCPT + 99 others); Sun, 13 Feb 2022 05:32:38 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:48924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229935AbiBMKci (ORCPT ); Sun, 13 Feb 2022 05:32:38 -0500 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E82735D197 for ; Sun, 13 Feb 2022 02:32:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644748352; x=1676284352; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Qsj3cN0svAa5+INjWCMJ8VFAtqlZqT7rv64xhdOQ0QM=; b=a78VohSqeyDMPpF20Onl6F2Mytif6WTE3lHkeyNMojCI9vDBZJ6XBgjr aWVbU4MB3Y2mC0nm1iewQEavzWYkOUoc3iZ+lhmLRUsgY/ahQA9DMzs4K dC58sdfax2Ox8gqZLUeYIwxTuEVfz1492TflAhXoddbTI5qOGM8exPxFf B8RS+LJw5oH6Vkd1MQMPFdP/WbfEh26vDGimRn/OyRKy3ccIJXlzclD0G GUCgkA5JPWeog744+akTIPH3iz+NjcndAcEnUZWhuAyjgb49AKPFqpFe2 A+6qtLCz30ghJw0AN8COTVIYbpTCwtjxMzNgEUa8lkjOCSCviG0OdsGuJ g==; X-IronPort-AV: E=McAfee;i="6200,9189,10256"; a="247532536" X-IronPort-AV: E=Sophos;i="5.88,365,1635231600"; d="scan'208";a="247532536" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Feb 2022 02:32:32 -0800 X-IronPort-AV: E=Sophos;i="5.88,365,1635231600"; d="scan'208";a="527474240" Received: from sannilnx.jer.intel.com ([10.12.231.79]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Feb 2022 02:32:29 -0800 From: Alexander Usyskin To: Greg Kroah-Hartman , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie , Daniel Vetter Cc: Tomas Winkler , Alexander Usyskin , Vitaly Lubart , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v7 0/5] Add driver for GSC controller Date: Sun, 13 Feb 2022 12:32:10 +0200 Message-Id: <20220213103215.2440248-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=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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. 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 Reviewed-by: Greg Kroah-Hartman 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 | 196 ++++++++++++++++++ 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, 618 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