Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5890672rwb; Wed, 7 Sep 2022 09:22:42 -0700 (PDT) X-Google-Smtp-Source: AA6agR5bwZNlAlZKQFNvQO5SgkNhz0Ry1FHXFQ8xolWBJaOWO/3Nt1CcrOOMX9n5bnxJDnskyKVY X-Received: by 2002:a17:907:eaa:b0:772:b571:bd7c with SMTP id ho42-20020a1709070eaa00b00772b571bd7cmr135127ejc.563.1662567761966; Wed, 07 Sep 2022 09:22:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662567761; cv=none; d=google.com; s=arc-20160816; b=E6M6pCyFT6IpbxcF4orSKQdIfgpJX8xLow++4wiF1KDpUrvK6cJzHQH1+K7JvqvwN5 zMkLzRdpM/b+BQWoANaUBXi6TGB+a98srbdEdaB7I+6mY7FxTfgz9FEkODaD/XRcA2lH KtmChTSei2GF0TSU6+RhIFR6lypLEiQpkeLas4M9yfoxKiVWvlXHlfOPFf4aEqdzzSD6 dLBz1MXfY0EPXCd2D3HOERNWKhG6yA914HTtnXwPMshOqGbzzquxfiO7Kaq2ezxd7/al f/VrJuy6ZkLJzylTfQfeodqaVPvC2/EmdkddjwLPWSWB9PgmZT3obkgOlI8SkRdsrgjO /3fQ== 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=rwDDtkMQdu2Db49zFW0/O39iWbrlyhLylOa4nKUmAwo=; b=FX3WWu2QGe9Ai42qVkFUIGYpIA1SOcj8qya+Sh/zJW0gzyj5lBGR55nvQIzbHWK3Xq 9CwUVXNoJ51mvkAC5rzOdawxuDlqW72bGawQwDV+dmtpickLoVbQUZVfZFv6xKdLTszq av4GL/dnuZ4GztcQ3wrecRaE1u1u9EQVUVywLkwx/qwys8Sv6+M6/mhiFDsF3Xwbhc6R m8rTBZ7s1ofBe8WFv/X5y1H6xiWqMGidIouhobxtM4fSqGww6IqkT/JIAQ/d1G8VHrpK y2to2DDEDuu+quuohlHOX135aIzAFfUWnIyUyGgSLMrROGNQ+hucaHkWjbnuQBha1jHv MBWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jWAMiCFJ; 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 da26-20020a056402177a00b0044f288e02edsi532468edb.15.2022.09.07.09.22.17; Wed, 07 Sep 2022 09:22:41 -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=jWAMiCFJ; 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 S230145AbiIGQAn (ORCPT + 99 others); Wed, 7 Sep 2022 12:00:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230146AbiIGQAM (ORCPT ); Wed, 7 Sep 2022 12:00:12 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 577B3248DD for ; Wed, 7 Sep 2022 08:59:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662566386; x=1694102386; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=k8WXuqM2Btnztwxu+hZDAOvoXEutBVbE7ajm9wvLA1E=; b=jWAMiCFJm9y7W/Hrm40wosgZ+Xvbf+LhqpCFTUejjPSo36kOj5lrGudr nMOH9eu2pOeYjoAk6aBezhs+erYRNxVRLaisiB+4DD/2Q/isfDK2M1/ac x894zuhAPKU3z6MmWxRVFgh7l1PmePrYakdsCvCLED2Zvhn1Orsq8a6m+ tqmhJ0RtLiKER4EnYlSQRgXYSiEpJIUF0Wr41xcWFzkguvjcWkjs9qWSa zetOob5YFxzduS1jBWpS15SbqqguRsFtMV+dSenR0mqLnZIkoNkJIdv4n tJz1U8lB1FV3mJK0oRANpjsqJRzPR5TJG660YNCBepK4TvK9EvG+p9sMi Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10463"; a="297701444" X-IronPort-AV: E=Sophos;i="5.93,297,1654585200"; d="scan'208";a="297701444" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2022 08:59:22 -0700 X-IronPort-AV: E=Sophos;i="5.93,297,1654585200"; d="scan'208";a="676248078" Received: from twinkler-lnx.jer.intel.com ([10.12.87.143]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2022 08:59:18 -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 v8 10/16] mei: mkhi: add memory ready command Date: Wed, 7 Sep 2022 18:58:07 +0300 Message-Id: <20220907155813.1427526-11-tomas.winkler@intel.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220907155813.1427526-1-tomas.winkler@intel.com> References: <20220907155813.1427526-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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 Add GSC memory ready command. The command indicates to the firmware that extend operation memory was setup and the firmware may enter PXP mode. CC: Daniele Ceraolo Spurio Signed-off-by: Tomas Winkler Signed-off-by: Alexander Usyskin --- drivers/misc/mei/mkhi.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/misc/mei/mkhi.h b/drivers/misc/mei/mkhi.h index 43cadfb1b990..c9d0b2b9dfa0 100644 --- a/drivers/misc/mei/mkhi.h +++ b/drivers/misc/mei/mkhi.h @@ -30,6 +30,13 @@ /* Allow transition to PXP mode without approval */ #define MKHI_GFX_MEM_READY_PXP_ALLOWED 0x1 +#define MKHI_GROUP_ID_GFX 0x30 +#define MKHI_GFX_RESET_WARN_CMD_REQ 0x0 +#define MKHI_GFX_MEMORY_READY_CMD_REQ 0x1 + +/* Allow transition to PXP mode without approval */ +#define MKHI_GFX_MEM_READY_PXP_ALLOWED 0x1 + struct mkhi_rule_id { __le16 rule_type; u8 feature_id; @@ -54,4 +61,9 @@ struct mkhi_msg { u8 data[]; } __packed; +struct mkhi_gfx_mem_ready { + struct mkhi_msg_hdr hdr; + u32 flags; +} __packed; + #endif /* _MEI_MKHI_H_ */ -- 2.37.2