Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3536452ioa; Tue, 26 Apr 2022 05:39:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweW7KCuS7MeyP9JHFEh0F7yvahKkWuZYd5pCPBZVLi0Gq3lXwiMOFJw0sv1rffXp7HbUM2 X-Received: by 2002:a17:906:cb09:b0:6f3:87ca:1351 with SMTP id lk9-20020a170906cb0900b006f387ca1351mr12039705ejb.674.1650976774556; Tue, 26 Apr 2022 05:39:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650976774; cv=none; d=google.com; s=arc-20160816; b=L8yaO7X1qlHAcLNRLAiu8z1GW7dp1BP8Sd0RUrpupcMHnpnJEl+1XVAcDm68Rhe/1J tpGOZooTo5X95aN9NYB035fWj1X4dgKmxa3iu5bRdv95DX0jBQY8mArZPZjPQSTBarU2 Sr3aipvVl/g65Y9nRdm0y5sgfb7xmMyCU+qTPTG44zyzIW2u6xPZnD3/o6sh5g8ib9pT eS6gH3mcnM+h08XYcLPRlOiNiQVlLINVhhulkWaYyuP4Am/nsfAMX2ddV3L9QqoqqX85 TryupAh1qFUzXma641cGU8GOW+O6QDyt3ws2vwIU8cSaAuYMUiUCsJ06a9pjEZKNW15c a7ig== 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=klMlOzVzA0wfq3qp/oJUtfZFb+MM5mKsKLzZgiag3cQ=; b=0pQci2Ca6UTysB/QVKTG28F9muA46/BH7L0V3RfvBVWQ4PxtujwjK7IKSoRlR2sIYc BZHURXb0L1Kw6j4qsr8f4nC5CQxnC4VkTxu+dR6N1Dq9BEJ/2qHK/hV1UASBKtwovbL5 WlCTJ3mistBod3hvhEHxPCXbV9oSkn14D0CbZm9OW/iQ6ep2+HvW1H7KXreyGrOAQG0S 6eqcil5hZ1LB/ZnV3bq4cUlr6n1AxYrEtqESahdCR+gcSXuO+PndUeQ9SqiZSa83ftbE 3bNbw06qendrPjEUQ11NWlG1awWVKsOce5gcY4r/MXiiyG82K2UZRDZOj5Xzk4d3tnxl apkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Ovlfohc0; 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 w7-20020a1709062f8700b006e8d2490511si15228223eji.34.2022.04.26.05.39.10; Tue, 26 Apr 2022 05:39:34 -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=Ovlfohc0; 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 S235492AbiDYHy0 (ORCPT + 99 others); Mon, 25 Apr 2022 03:54:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241497AbiDYHwt (ORCPT ); Mon, 25 Apr 2022 03:52:49 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7746113 for ; Mon, 25 Apr 2022 00:49:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650872986; x=1682408986; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=FqQD8V1tZDNnF7Zs/RsGtMzs5YtWuA1/y2GnU/ZA+R8=; b=Ovlfohc0vSd0xTwX2hymuIy9UFVfnAzZCxTWrpMys1FgztB7CwG4PNa1 lVeWkW2IJw0PmBuRozYSM8olMDKVN1jMeXjhoXbYMKA6sliB2qv9Q5Q8h bZDwMvlF0rgORz+ICvE2RLvF6skv1jyrbHBcltsmZGa7fdAHxoRWsceWr tfU6sE5MKaWSMdFzt54DBwYKgxkfh1W7BljiQmqy8n/th9Dah4QkABRoO rvbrEje04dGhja2pQY3iWu/iCKsPCa6SuD64inSGAWt4ctzDfxIad0ce5 VPLDgiEWEGBODl13ydJFD1tchoUw8NV0PBcoyy65XO8yDG7E4NnDkC705 A==; X-IronPort-AV: E=McAfee;i="6400,9594,10327"; a="264973771" X-IronPort-AV: E=Sophos;i="5.90,287,1643702400"; d="scan'208";a="264973771" 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:46 -0700 X-IronPort-AV: E=Sophos;i="5.90,287,1643702400"; d="scan'208";a="557600023" 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:43 -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 10/14] mei: mkhi: add memory ready command Date: Mon, 25 Apr 2022 10:48:57 +0300 Message-Id: <20220425074901.3991274-11-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: Tomas Winkler 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 --- drivers/misc/mei/mkhi.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/misc/mei/mkhi.h b/drivers/misc/mei/mkhi.h index 27a9b476904e..ea9fe487cb0f 100644 --- a/drivers/misc/mei/mkhi.h +++ b/drivers/misc/mei/mkhi.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0 */ /* - * Copyright (c) 2003-2020, Intel Corporation. All rights reserved. + * Copyright (c) 2003-2021, Intel Corporation. All rights reserved. * Intel Management Engine Interface (Intel MEI) Linux driver */ @@ -18,6 +18,13 @@ #define MCHI_GROUP_ID 0xA +#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; @@ -42,4 +49,9 @@ struct mkhi_msg { u8 data[]; } __packed; +struct mkhi_gfx_mem_ready { + struct mkhi_msg_hdr hdr; + uint32_t flags; +} __packed; + #endif /* _MEI_MKHI_H_ */ -- 2.32.0