Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp1940703imi; Sun, 24 Jul 2022 01:30:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sMNQi16JfG6s1Bet3rDGtVqn8XIJJa3CxSpuOny1TscwEqMwd65I1BCHg8gEWh8RgeUSvU X-Received: by 2002:a17:907:2c5b:b0:72b:54bd:40f8 with SMTP id hf27-20020a1709072c5b00b0072b54bd40f8mr5785296ejc.137.1658651424610; Sun, 24 Jul 2022 01:30:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658651424; cv=none; d=google.com; s=arc-20160816; b=LFHoQ/KoYQOLkMsRfvsoSBryipGLP0GgBXAkZ6+0LCx6aWsdRnrWdT1V747CiN1NbD YRK3l5WtLJpT2Q9lbI0F2k0ZfZCGiRzHTOFdbDhU8ICnivyw0/nAu3ybCQOOBd3Jb5Pk 6RDDf4uTIVqC5HSAn6aySOLuJL8+q+mFinrTx6+KHkAGGflwsWAj7/4CanjAoI/0nGBj taCWzzCwDkxnaYwnCYuW/MzBjxuniBKLOCZgMkw8dVibyfOIhwlaU/mcfLFETPkat0wM zqNP5hSAqx/N4biL1fY9SHOe745N9foLUTdvduNzTwksS7mh+EgCpOZWjxFWe2YPiQgR vdSQ== 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=ydbY7lpdqnW3XCkTj4jB5hnpUYXDFpCaja8BixFCzV0=; b=L+19DXedhaefi9AQLZLQDbd9YjzFB7jCBzxlgQjUMkFQcqXysSy2tMD4lu2iQru1l8 rPHgH+rYqP04MoIyiMK+zLj6KYRt+2i/dvVwX/RTOKfHAl9NPzFhBTsGRxdS46bESf8M A3EHbPpwtoD1YZB/tenCvCdx7vjiX5P3ycaZ73GuebYnTgUJ6BG07UdM1Dy8Ephi94hA UuTyNdnIpJWZ1IgKesMmjkTE0KK81OrlVkklMg+zDQnTYcB4HO+u7nAhjpCiz1o2+ym2 /HeJUJFKwrajQEgnOsTXL/iXoMR4FQuVl3gijnp6496TU1drhnW0zjHjHCKTeYyLZTxE vcKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BonpIuap; 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 s17-20020a170906285100b006feb76dbd51si8980090ejc.289.2022.07.24.01.30.00; Sun, 24 Jul 2022 01:30:24 -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=BonpIuap; 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 S231830AbiGXIZ6 (ORCPT + 99 others); Sun, 24 Jul 2022 04:25:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231578AbiGXIZ2 (ORCPT ); Sun, 24 Jul 2022 04:25:28 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C00ABB495 for ; Sun, 24 Jul 2022 01:25:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658651120; x=1690187120; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=q7UkJSFP8tnBcDGRtM+tZjMitNlV6lhVVZJ+l16R8xw=; b=BonpIuape3JU7CEcygOgS0hbpbYpt8pWumH2YFTrBQsOceJw8yUWaM2L AhSB+iSyaCHO1BcS3sraik31foK+YRApzD5DTeB+xThYyQm+GZQjNYA2e +VRxPCmKoHa2egnnDrH574Znu1U0LNHiZpdIJfBwm2M5bcbCbLIzhgz5+ jSnsKX6re2YnSctFoM/L8/zzhjy/xDAJ4cD5Uok8TI6hVYcNBcAuYQQv8 qb0jgV0yuVSiwW3RJwpm52mn/QDEfLLsAKuLE9pAbQ9aDb1NtxJYDyode ZvQbAKnE6150ikzT9I1iFPgXWk18fZBZtiF9EqZaj+9YURo9cRZ1gX1ke w==; X-IronPort-AV: E=McAfee;i="6400,9594,10417"; a="288708503" X-IronPort-AV: E=Sophos;i="5.93,190,1654585200"; d="scan'208";a="288708503" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jul 2022 01:25:20 -0700 X-IronPort-AV: E=Sophos;i="5.93,190,1654585200"; d="scan'208";a="657756350" 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; 24 Jul 2022 01:25:17 -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 v6 09/14] mei: mkhi: add memory ready command Date: Sun, 24 Jul 2022 11:24:23 +0300 Message-Id: <20220724082428.218628-10-tomas.winkler@intel.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220724082428.218628-1-tomas.winkler@intel.com> References: <20220724082428.218628-1-tomas.winkler@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.9 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 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..056b76e73d40 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; + u32 flags; +} __packed; + #endif /* _MEI_MKHI_H_ */ -- 2.35.3