Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp504039iog; Wed, 29 Jun 2022 04:51:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vM3VXMwVWp7U3RV0hyX2DrLQy7LKhcA6vx8wXqNUaZaClMjNu1oGTcbG14g3CUSYqDh2xa X-Received: by 2002:a63:6c4:0:b0:40d:d290:4a84 with SMTP id 187-20020a6306c4000000b0040dd2904a84mr2622267pgg.426.1656503518383; Wed, 29 Jun 2022 04:51:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656503518; cv=none; d=google.com; s=arc-20160816; b=qESNVB1eyKyg+fZWncOcm4y4VJAGVzNHHX7bNxgc/VQhcE8DWWYZtrONgcIw4GD2uq c3UwcPV/B6ocoC2gBRevNWyrBKIRc4pAg6eKM9QyUJjqzeXfWvKlxDHNP9zU7sNo4x8i NdpAL0DR3IRRfMMzkUEK1RItKKvAb4lmq1Y1CfpafScugU7UuysYPPabxSBLP8NOxyE5 x5G9gPN5hmY9QAXh+kHaDCbXf+vvqqscGxpzRCZep1+DjNVdNXxo9r/ucw/9bJJjsPar zuBp7oGJgZcEhJAVE01QB5f3wXxi4qpd4limN8dC6wahhvoQ19KNxV+YZ2C6NgETItKL c81g== 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=PEkvqRGrUX3o9bXFc1uRqztMCAY4E9IX21twd1DYvP8=; b=bqKm117iZErNOd/ke4zV5Vhn/1F/Ws8GxItuuQPqHSRpAc7ogr0mGswi1Fm6kFimLO VJWiw86E0k0IwyAIwg1x9/GbPFPvE2NwNqyksa8joWNqD6lhuY+TMogHh6thbzBdTcrR YeSGwV3RQPCVA7boPcB2O22iN6a6WbXyAV0Spok0n1fWH+1siYhBNUU6uJA+w9jUfMj4 Uj0mA3NOb6mUeQH9ZIl53RaD2ugoJfbbm3q0pzQN8PgY452oKjKTeYtiFVbyC5Dmj5rZ qdbmJcw8ntMXHSpMRI7178WCacJjuUvaEp5Cb6Yzz7znnGXvlsPNHRzlmZ/5R7DLNdy/ t8cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=C0Ga2Bt7; 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 u18-20020a170902e5d200b0016a4a3e4fc6si24869415plf.13.2022.06.29.04.51.46; Wed, 29 Jun 2022 04:51:58 -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=C0Ga2Bt7; 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 S233112AbiF2La0 (ORCPT + 99 others); Wed, 29 Jun 2022 07:30:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232883AbiF2LaD (ORCPT ); Wed, 29 Jun 2022 07:30:03 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFEE13EAA5 for ; Wed, 29 Jun 2022 04:30:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656502200; x=1688038200; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=mSNNEtx2VCcboUnUAYN2z7VTPICG1tEINvNK6FHdhAQ=; b=C0Ga2Bt7fdLMJOUqDu9z/ElBvJDqw5tqjt2eX6jhDrgliJHqtpshTEKh lL5ZMeFbZn5yjt4eVJOU7hCaXomjQFYyK8lZv+fk5Errlhl3qQXvLss/I fwK89X3ep1Eir0eqHFil8gtVw9BajbL0qagGxVvsAXSVUmGxwzZ5mDtrc TcEMvIEeVEqHRKN4hLWLRVEv+2djiRQn/i9sF4Yd0frGs4WrKe2YLEcNo 7QU606tjDn+J3Oak8u3Irdec1/fPLrrPTJn8Htxjfd2LLATWtcMilUTh3 UjL744mFL85oRZbSZkVX5cQLvc1+TcBToVx7h/xB3gnTTwNhZvyAGBTVV A==; X-IronPort-AV: E=McAfee;i="6400,9594,10392"; a="368319316" X-IronPort-AV: E=Sophos;i="5.92,231,1650956400"; d="scan'208";a="368319316" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jun 2022 04:30:00 -0700 X-IronPort-AV: E=Sophos;i="5.92,231,1650956400"; d="scan'208";a="647353204" Received: from sannilnx.jer.intel.com ([10.12.26.157]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jun 2022 04:29:57 -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 v4 10/14] mei: mkhi: add memory ready command Date: Wed, 29 Jun 2022 14:29:09 +0300 Message-Id: <20220629112913.1210933-11-alexander.usyskin@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220629112913.1210933-1-alexander.usyskin@intel.com> References: <20220629112913.1210933-1-alexander.usyskin@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.8 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: 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.34.1