Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2403133imw; Wed, 6 Jul 2022 05:28:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tg3Fcf6LWMK5j/PZse+5af0gufpva5geLfh0Q/qFoTJHvbaRLMAfnFAcywWnkBahVpJfY+ X-Received: by 2002:a17:90b:4a0b:b0:1ed:4a56:d805 with SMTP id kk11-20020a17090b4a0b00b001ed4a56d805mr51094868pjb.246.1657110518658; Wed, 06 Jul 2022 05:28:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657110518; cv=none; d=google.com; s=arc-20160816; b=gll3JTqqfPbAnEQ9N1EjGNA0XwkZyt7epwgJbeUzxjLY6nzH7FByVAVWJJvFl5h0bD w/7sG6N0bAbNLfWguKN38BVP87qOkb5jn2ox6npncUWgoQCQjvQ7E4RSWYhsTZ5E++GL VonS0majAF/MHG7EvDrRkK/ZHCldWDfM4GHSsDaSNQORAJLabJwuEa8+F5UyF7X4e6x4 /8ulXiVszYUBlOSJzfooXnNBiPKANFHUe+cX74pJg/cr1fn5zShvwKa/MJA66W0CMJHg 7TM/kWBzMgysbe/4i5ZQal/GafJYI2uGdnhgYprKhYciUzWG22QFSTWQVZrqsU0OJkfP 13Dw== 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=8QytNdtVZ3HKKSx+4AxX6c+vq87SC8Cmg1MzDT2jtgM=; b=ogX2K0ilZdZG+6qpo7ovSzv7mBNHXc+R8m1eCw4PRS9xIUUfFU0oUYn+svMjw+zX0R ufJqOFT61wu72bKFhUQy1ZB7AUSHY6kTH51BJR60PkPkqOT4KecMzBk2dS4q23kmvDrH JAWqy1cjGiKxdBpNVQAdzzdViwyt0YNd7fsXxNNExUXaJeKMlJjsDSRwnczPemWVyDHL YU/N2LdOcEUes8wzqbFQMkDniX/ONid7Dkcng9wCJnXEqyLjMemqWZnocn7VK8mMFqtX CsaOJQPuBcV/5dhRDV+idz1sqdTd038BeSQ8mgPOetj+a35zGD2FTMu7L/Ug3G3lfKG9 WJnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=S5ly7cLJ; 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 w189-20020a6382c6000000b0040c676a3cfcsi47221266pgd.272.2022.07.06.05.28.25; Wed, 06 Jul 2022 05:28:38 -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=S5ly7cLJ; 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 S233369AbiGFLpG (ORCPT + 99 others); Wed, 6 Jul 2022 07:45:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233090AbiGFLoh (ORCPT ); Wed, 6 Jul 2022 07:44:37 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DBC928718 for ; Wed, 6 Jul 2022 04:44:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657107870; x=1688643870; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=nLYIZ6/0SiQCIHFfcPcARbsfv0VSpDS4mZ3F8uURntA=; b=S5ly7cLJ4pi9ib3MuSZvZ9kSlo7uUnNQqHeKixK9Xg6NOQ4Oac3myOqu EoNXGZ2CLUFcwYJej+M1EEq28SsH3KWSuqVsnWusBrR1UzSZbDn+hbXv4 caRQ3wtQ0LU2XRrEX7FbkFaznVnnJACEWByp6P5GR3yPiNpQDav2Kesl1 EucsNtzx3X/1C/PeP/MplWc4vzpoJH72JndWQF5lD5WojOhmtybYKPsE5 Wf10K46zJh8/DtYcrfLathxR1TFLRPQH9wALZH36n8w5l9ZdRhf+SrhCW DdUiZYSn571udcwL69CST86QmfAH8aqUzPnlFD3zXFgIBAsdrgZnYAK3n A==; X-IronPort-AV: E=McAfee;i="6400,9594,10399"; a="347707533" X-IronPort-AV: E=Sophos;i="5.92,249,1650956400"; d="scan'208";a="347707533" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2022 04:44:28 -0700 X-IronPort-AV: E=Sophos;i="5.92,249,1650956400"; d="scan'208";a="650630235" Received: from sannilnx.jer.intel.com ([10.12.26.175]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2022 04:44:25 -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 v5 09/14] mei: mkhi: add memory ready command Date: Wed, 6 Jul 2022 14:43:40 +0300 Message-Id: <20220706114345.1128018-10-alexander.usyskin@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220706114345.1128018-1-alexander.usyskin@intel.com> References: <20220706114345.1128018-1-alexander.usyskin@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.1 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 Signed-off-by: Alexander Usyskin --- 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