Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2375940imw; Wed, 6 Jul 2022 05:04:31 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tmpX5P7v2lOtXS5ju7zOItJ2t6RusaclW/8OCaMwdPloKgHOX4GKA0pfJDencN/0H02J18 X-Received: by 2002:a05:6a00:14c7:b0:525:89c1:35fb with SMTP id w7-20020a056a0014c700b0052589c135fbmr46594254pfu.36.1657109071043; Wed, 06 Jul 2022 05:04:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657109071; cv=none; d=google.com; s=arc-20160816; b=kTyZO8z8/Cn/ZTBMJIj4q3NKkZJJW5UHCh6HvXUdSBe711pjbEZSMFe4WoHl+C+FZ3 ClDq4+XvDhXDPpNvFejPAqG5aDK/vE3LpaMq/wcu1gRpBxSIuYwP8XdEjX3B4nhRg4XQ PuRk0HCO2XN7azZOws7ydVcrioonZ7/KsHym0WArBklM8DvvHPRCn7Sgpf48MyOQ+lP3 rVfl//NAeihKU0BgqF6gvPU/hgUM0UZ5J1bR00Ogev2gYexqfY+IqRtnh6ZBdw9oLkD2 hSb5ZCRRYPok5K1e/++5X17+OqafOdh0BioeFnBEgU6KZMGno4xKFKvdD/Xmsk1qi2JG TxfA== 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=VCKStwAobf0q3YWo1L6JhQHXQOReVTeFY1MH6yZcphE=; b=j95DUvCUpPzpneQQk9kgYEoSL2+Uz3ruPKK347x56a0h4eehxk5xYivGoZxBnSgs+3 m+Py9gP+JUjnY8Qcwog8EAlfYlH3C/reXta9wVQB8vbo6sssbVFHvO5MDp4gMRCj7vwt dIh0bsAIpw71s87BKBc4FrURyN9dbsF0MUGu+DEMvT5F2gd1Q1BH5Td2wYM5VBca2QLH A7pTVQnJ5H25RSb5P+GopU3b60PblxN/2HZNMUJ+Ws62pftw9AzBfl3PLyCcVz0PycpY BDwFMguqcvQxfsWmZ73D06sWLnAppVcIpAQwDP0LH3c7fW4m8yhQ7QImOb91Zk2o+WRF 9Few== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Ln1B1Y9+; 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 w9-20020a631609000000b0040cf0420ba0si4854751pgl.33.2022.07.06.05.04.17; Wed, 06 Jul 2022 05:04:31 -0700 (PDT) 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=Ln1B1Y9+; 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 S233386AbiGFLpN (ORCPT + 99 others); Wed, 6 Jul 2022 07:45:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233212AbiGFLon (ORCPT ); Wed, 6 Jul 2022 07:44:43 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A06328723 for ; Wed, 6 Jul 2022 04:44:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657107875; x=1688643875; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=UHTaQFFkZyFF6l7RdwqSCvPJR0up0T0TyDDl+sOX43Y=; b=Ln1B1Y9+43y/42mhuB0udsc/JtWEk2AMhV64nDdHD57jKn4VZFzQVSzg GK18HpG7OxcmE4zgSKx6CN92PVKyKo+Bn0gu8vc2BtG2xubFseFvtrQef fi+vcoHiu4YR3Wuc2qfhuT45TiqWBw4Ij54Id5Mq0fjSM87nMBuoYSVkD NrKjSPxzfsSPrpKGpsW5h7QRTD9JYVZ9gOkFbijsahQrofeNFjR1wkCFW mwE/3p8tzodV/S08gZvoA+KWd7N6CF5AGE+MA0Jdj64dPq6oDA6573ige +KKDfSnqdzQDmp+heOofABEGMaDDV1T9bd7TruzsnYdtB4oazvvRQR6E6 Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10399"; a="347707562" X-IronPort-AV: E=Sophos;i="5.92,249,1650956400"; d="scan'208";a="347707562" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2022 04:44:35 -0700 X-IronPort-AV: E=Sophos;i="5.92,249,1650956400"; d="scan'208";a="650630276" Received: from sannilnx.jer.intel.com ([10.12.26.175]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2022 04:44:32 -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 v5 11/14] mei: gsc: add transition to PXP mode in resume flow Date: Wed, 6 Jul 2022 14:43:42 +0300 Message-Id: <20220706114345.1128018-12-alexander.usyskin@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220706114345.1128018-1-alexander.usyskin@intel.com> References: <20220706114345.1128018-1-alexander.usyskin@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 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 Signed-off-by: Alexander Usyskin --- 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 c8a167b57cc9..71f247f5e7ca 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.34.1