Received: by 2002:a05:6a10:5594:0:0:0:0 with SMTP id ee20csp67696pxb; Mon, 25 Apr 2022 06:01:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzL6IiQrRFnTcVODxH5KmOdqsEaHi1kUtZzOpgtqEdgnrUvO2TtmC+Dh7+41S9oai9Met8z X-Received: by 2002:a05:6402:27d0:b0:41a:68bf:ff26 with SMTP id c16-20020a05640227d000b0041a68bfff26mr18922434ede.102.1650891700477; Mon, 25 Apr 2022 06:01:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650891700; cv=none; d=google.com; s=arc-20160816; b=e8p6+7bk1gfx2k50KnHOPBhOay8twfQIE9ZhQocFILT6FAJ4NN5M0712fTsvwRtSuM 3vWn64KZEexyhM1w5njFzocEhwzsVLlLUaqIr2iiu3Z9/6ASW8T7nE4WxDQd5IhYJecA pwgCjcisimPHvzUoW5CBR1jNAaU44ZjAIKwYbIoti1L40mXvlC+u47oIGTBWpo3/zI99 kSfH3I152qdbo34a/aoiahJyMoxVZA1yjGV7eXzCkf9mcLvMpN1IT0Tk9sUGq4aboI6/ 9Ex+I1irDBhKE1RdYXSyCb9cOsGNv1D/utZng1jZ1ZwAJcOfJB1hC5LrAfHkT0vCwNXD QY+A== 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=EdOHqMZnScvZ42ZtPkxVVNx3D0XVqILAs88UV/NOE1E=; b=lFCAxEGN60hC7XDHUflJ/yWc6MHM0t2xH80VmKO26ad4DAIfjlsjtvotNDMCgH8FlH FI179vA/UrIIVKoMrRjSi80OTLrp5MIfRO3gOz3IjZ2voEgkxM5BkG/UbY22+SExVxmr JL6Tdc5+45J1iQplnCSmN1ZIBoOBQuX1e0f04JlecOLbqEQV8SUyL/Eh9N/RPaHL1237 9Tjqt9w9bU0cOoz3UDN7fWGwL7XCThy4LK5DQALvtAENVySh29mNibQo8NAab5JOGbMH 3I7DyT9glGFzX4xYSAqn0i6vS2AUJr5k/uAUD+qM97SF0Dh1e7nzFaeIDqXKlcM+IWEY 6uMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EjUVTQSu; 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 j19-20020a17090686d300b006ef9bb0f0e3si12189705ejy.215.2022.04.25.06.01.06; Mon, 25 Apr 2022 06:01: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=EjUVTQSu; 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 S240739AbiDYHyo (ORCPT + 99 others); Mon, 25 Apr 2022 03:54:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241510AbiDYHw4 (ORCPT ); Mon, 25 Apr 2022 03:52:56 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E48F4D0 for ; Mon, 25 Apr 2022 00:49:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650872993; x=1682408993; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=VYZG1amkkydTFSBCroQ3sciekwSL9RQh1BuuV3tEt8I=; b=EjUVTQSu1Sa8h/wAqM1Xzde464bF5VfrWi1tZJZKQ6kgu+LRKbADYNCa Bc7i4Pizuyu/1BXDRpvoNZ4S/tsKveY7pcNH2Mx+fKtjzFrYj9rPyUihO pnvK4KHe6hxAxgTRLrh/q5VuYaGTPI5DB+qcF7JNW334gQbfOt5UOx8af 3SLb312O6z6TxhlVpxY7Z97Q7+8le4DDJ/xfaxyVSNPJT98Kbpbji6zz0 nDxiXy4WuUKUdg83p2rYOthgigHMnxpBXLz/uNGm8q/gD/AgmBBvCIK+H SmiZ7VweKfhZuusjlsPdDX5iPEDGucmdQzf5BeJUF2s25QAgZvnx+1Kc+ w==; X-IronPort-AV: E=McAfee;i="6400,9594,10327"; a="264973797" X-IronPort-AV: E=Sophos;i="5.90,287,1643702400"; d="scan'208";a="264973797" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2022 00:49:53 -0700 X-IronPort-AV: E=Sophos;i="5.90,287,1643702400"; d="scan'208";a="557600055" Received: from sannilnx.jer.intel.com ([10.12.231.73]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2022 00:49:50 -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 v2 12/14] mei: gsc: add transition to PXP mode in resume flow Date: Mon, 25 Apr 2022 10:48:59 +0300 Message-Id: <20220425074901.3991274-13-alexander.usyskin@intel.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220425074901.3991274-1-alexander.usyskin@intel.com> References: <20220425074901.3991274-1-alexander.usyskin@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.0 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 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 --- 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.32.0