Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp218895rwn; Wed, 7 Sep 2022 15:28:41 -0700 (PDT) X-Google-Smtp-Source: AA6agR5ijFc3C+AsKPiQCUtEnuYmsEWQT85Svxf6ilu57mXJWun66gkG9Kd09b2XknEFfu0S7mg4 X-Received: by 2002:a17:907:8686:b0:773:6f77:f110 with SMTP id qa6-20020a170907868600b007736f77f110mr682205ejc.547.1662589720971; Wed, 07 Sep 2022 15:28:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662589720; cv=none; d=google.com; s=arc-20160816; b=U0493bvEtjYoteQP+nVhXLd8fftcZTIowcrjcpj4CvAm7212EyMHrpufD15b5hs4yf 3UaDnhIMCPNK/g8HXyQRmV7SEbE1sHYv5sfQHR4AKHD+I465EX2GDHyybCdx66/IuW+M ihHrRWSNQCwmOpn7kMplGditkvZV2oHbF3+nY+/pop5rTKKX6YSCWcuuI+FWJWp+Rwkd kcXWmp4bsIoNYQj8jUKItH1zofQ8tiYYnptf0itXmieKosO+uq3H+jdvQdwrIMicEOEO DDFVVgvHZZ5eT5SFqp3m64bRiF0pbJWUwIvcvndkcFM7+uv0qv12au1CmWJfJ0Skjx49 vv/g== 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=ta1vZSNLN8aqNvcSqxC76ur57Zn6BEdswNCWAVKxLCg=; b=LFraKgjldqGo6QQ58hdAVYhCdsrtjDTAxTAqr5VIgJWZrV0npYKeIAjxW8NhJa30Jp JK8z1/g9ymG2vnIjzsYGKoxv/2UAxCyGfH5+k/6iGYxzNc41zE3uGRzHLu8G6bH7UcLk 7pXb+IpgZcVQ+6vFTpargWLnjPYzIrhzRwtb5M93PwV1riw8FQoY7ZMhYbQd7Xg5dHCa YxZYsx4ZUF/legiNNuJnwO9hMWz7/XZ83xx0FOWg+4zjMQ91DsiHCzKzZge/p5ooWrb+ ai4AjIJlZbUCHiDJCwluKNfxEBxo/dxgq4z5XI6jg3mGmOCTCAH7xxKL+u1jnC4gqsxn tkHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZHtIt7dN; 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 i16-20020a170906699000b0073ddec832bcsi386496ejr.721.2022.09.07.15.28.15; Wed, 07 Sep 2022 15:28:40 -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=ZHtIt7dN; 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 S230460AbiIGVwg (ORCPT + 99 others); Wed, 7 Sep 2022 17:52:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230446AbiIGVw0 (ORCPT ); Wed, 7 Sep 2022 17:52:26 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84EE8BD1D7 for ; Wed, 7 Sep 2022 14:52:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662587538; x=1694123538; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=1+JuCAfQRR/iRVxLWGIckHUYTUZdDyLz75/NjPG/Ivs=; b=ZHtIt7dNmi7VQz9e1HI2RU726Vy8nxhSaxVh5FaNQ240T7sMGCihMFKJ 7S3Gxui+KWx5UXBlOeZkpZqBfPxgfCYA2CZotGxWyzm/sVS9Onn/txbbo ABLOFnnspENVVfWTWOC5erd9vQX3P57f6AyU/7ndBz6lZZ5jQw0xkKBmS GxKbPzyKuXVG9iVnziD58QYlAWgI+0thoq+OyyEdbiEZJlxLX/QOi9Idb N4TZjVegOw+sZFzh6RKLC07tz8YZTYvW59WY5aW4lYFue7VnTM4nu5J5r 5SYqC0fc/uJn2lTYDLWJ4FWFRvp0JkSyx6y4rFjsgQVZkTx7WAdQEtXiP w==; X-IronPort-AV: E=McAfee;i="6500,9779,10463"; a="295740371" X-IronPort-AV: E=Sophos;i="5.93,298,1654585200"; d="scan'208";a="295740371" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2022 14:52:18 -0700 X-IronPort-AV: E=Sophos;i="5.93,298,1654585200"; d="scan'208";a="790208046" Received: from twinkler-lnx.jer.intel.com ([10.12.87.143]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2022 14:52:14 -0700 From: Tomas Winkler To: Greg Kroah-Hartman , David Airlie , Daniel Vetter Cc: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, Tomas Winkler , Alexander Usyskin , Vitaly Lubart , Daniele Ceraolo Spurio Subject: [PATCH v9 12/16] mei: gsc: add transition to PXP mode in resume flow Date: Thu, 8 Sep 2022 00:51:09 +0300 Message-Id: <20220907215113.1596567-13-tomas.winkler@intel.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220907215113.1596567-1-tomas.winkler@intel.com> References: <20220907215113.1596567-1-tomas.winkler@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 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 Reviewed-by: Daniele Ceraolo Spurio --- V9: rebase 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 6b22726aed55..75765e4df4ed 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.37.2