Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp24415pxh; Thu, 7 Apr 2022 12:51:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJc1fNdeB+SL9GBQvDKEA1I9JoLobZFGLlSfjJDnGvqC90AJ6tHUnZnH6k6U7OCrBXEU6v X-Received: by 2002:a65:554c:0:b0:39c:ec55:3149 with SMTP id t12-20020a65554c000000b0039cec553149mr1487320pgr.372.1649361105064; Thu, 07 Apr 2022 12:51:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649361105; cv=none; d=google.com; s=arc-20160816; b=N9Q0DD3FnJ/jJRzBHnzaPifwOzrM0HyKQThPYYr1lOv6EzTsG+CI7PTAjk2GGhwodE u7kQKLx81nriyGO2agrze67VSOQ2GgBWFX2t8+2E7KR0bDinPzpIYRy47Vw7M4qfeZSp wBVBA2AVWwOxmNIZee8FR+2fabiYSCdkyW/CCu/T6clekkWeU268NBvCMw1KoirFzQua V40Zo8CvOSmvQ6xng0XV5zv7uWkC0uFRxAAMhAtWuZxywt4cqzDTK5VhJ8ODwqbZBjwf 8C3mdx6stUoO3cenPpgXLu64YFfqhx7ILhiRq58fLiPo3knO0JOl2kKV9wad3EK1UTBW hI1w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gZjIatCHrVrhxj2x1LhD/33E2oPe1J/FOBP9ouTdimk=; b=NpbrjB/C/N5Vzaz+JOISdOSb28AUdILQdHQCnxhp6LObAfe5Sadodh08R1UViImURS yU6OIYhTSBBvyv79b9EHO3cvfQmd2bGR1Idn9rvTV2f4OWw0bc3b9VEoPPXvhFuhKJhP rKnVYq7X9x1GwSa096qFjZspeJ0gWACSSiIZIIavN7D4Y4KJlO3t8FSrf0raKynXEyoU PfMZqqNjd+lTIrjwQIPKoas1rdkfGoEp1ZPOJ8Lf0ovnO1yLEnX4srP5fH8DyYdd2yIX ZAyOHsgTpOGwXuraVij2/IHl1KcrdpAlPP4T6Xga7BB8WeJVCgK+gxbIvrNKcY46TmRg I1CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HcrGOBBm; 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 j4-20020a056a00234400b0050571cecaefsi1519999pfj.14.2022.04.07.12.51.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 12:51:45 -0700 (PDT) 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=HcrGOBBm; 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 7BD8D26ECAE; Thu, 7 Apr 2022 12:23:00 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343527AbiDGNEl (ORCPT + 99 others); Thu, 7 Apr 2022 09:04:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245730AbiDGNCk (ORCPT ); Thu, 7 Apr 2022 09:02:40 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F3D01B9323 for ; Thu, 7 Apr 2022 06:00:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649336439; x=1680872439; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=4lq/fxTcfzik3Gbxv4g6RIwLKGG6lLXnNVzN+4ZV73Q=; b=HcrGOBBmO10e60nWEKbeWA80NkGi8CMqDzTTNtJ/yOBAq1VTS2uCyhGB JUFHqnUo0l0lCYPruZOJwUSTYLY2++3rkUJ8nYIDjvzllohSsYu2zq/m/ 91YAPsuhhJkSNWlBwAXZwTQzD7WYsc1dSZDv1johkyQOeDcPuG+d161Uk 7af5ZHgq+HrvUA6lVbA0h069Ip8UhTFE1WMvt+oVxP/yBc7Q3O5HFdeBK nOgJYvSLhbxwhrN9FaroJcRjh2PLhTLyjUfiROgKk1N0anADnvmFtZ7cm Drwegse14s5XL2ixeAJ9bmtB3R54OEYqN7b/1j7MzFADvroP6he1HIYzi g==; X-IronPort-AV: E=McAfee;i="6400,9594,10309"; a="286293693" X-IronPort-AV: E=Sophos;i="5.90,242,1643702400"; d="scan'208";a="286293693" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2022 06:00:36 -0700 X-IronPort-AV: E=Sophos;i="5.90,242,1643702400"; d="scan'208";a="571041312" Received: from sannilnx.jer.intel.com ([10.12.231.73]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2022 06:00:33 -0700 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, Daniele Ceraolo Spurio Subject: [PATCH 18/20] mei: gsc: add transition to PXP mode in resume flow Date: Thu, 7 Apr 2022 15:58:37 +0300 Message-Id: <20220407125839.1479249-19-alexander.usyskin@intel.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220407125839.1479249-1-alexander.usyskin@intel.com> References: <20220407125839.1479249-1-alexander.usyskin@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 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, URIBL_BLOCKED autolearn=no 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 From: Vitaly Lubart Added transition to PXP mode in resume flow. CC: Daniele Ceraolo Spurio Signed-off-by: Vitaly Lubart Signed-off-by: Tomas Winkler --- drivers/misc/mei/gsc-me.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/misc/mei/gsc-me.c b/drivers/misc/mei/gsc-me.c index fc9419054290..d75fce49e4f7 100644 --- a/drivers/misc/mei/gsc-me.c +++ b/drivers/misc/mei/gsc-me.c @@ -182,11 +182,22 @@ static int __maybe_unused mei_gsc_pm_suspend(struct device *device) static int __maybe_unused mei_gsc_pm_resume(struct device *device) { struct mei_device *dev = dev_get_drvdata(device); + struct auxiliary_device *aux_dev; + struct mei_aux_device *adev; int err; + struct mei_me_hw *hw; if (!dev) return -ENODEV; + hw = to_me_hw(dev); + aux_dev = to_auxiliary_dev(device); + adev = auxiliary_dev_to_mei_aux_dev(aux_dev); + if (adev->ext_op_mem.start) { + mei_gsc_set_ext_op_mem(hw, &adev->ext_op_mem); + dev->pxp_mode = MEI_DEV_PXP_INIT; + } + err = mei_restart(dev); if (err) return err; -- 2.32.0