Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp211997rwn; Wed, 7 Sep 2022 15:20:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR7uVlgZ9/6md6FngQl3q01vlMDql6XYxO2Y29hXcNhkfjs4WB2Hnc4GfCOp9T+v/zYtgsL1 X-Received: by 2002:a17:906:9c82:b0:6df:baa2:9f75 with SMTP id fj2-20020a1709069c8200b006dfbaa29f75mr3893039ejc.762.1662589225739; Wed, 07 Sep 2022 15:20:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662589225; cv=none; d=google.com; s=arc-20160816; b=Q0LhWoTTRYoxsyDeNrJqJMckbVKVfRAwMSFSvL3F3RxecFSVT3OagkyxmK7geqO+2C 9tGtw25O6ARGNk84sBMnAPwlekCurKyrqS5rh9ppJOLkNOmHakelv5pqat4ayCRkCjIa nUP+P0VE3ZU+udXvvtrf0V89K0SyDZ02gThH6CDWXKRygjjh96Fhy1yC/8uYeiqnDNwR JRqTcxGrDaC4+5qn8YAGEQnpgJ4j6AZgmnO4ZfdTFlzaRaiAcb18Vd+oIplO/1llgxe7 bsWFkTXZ5Okm4YUiN/HA6UXmgB2sBBNt3uKBV06lfHKn2iiEKK06MD/M9TvVNu4PUIud l/HQ== 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=ONfGk2IPsp9BnjH35uEjUuxMDtrocckFhNx5l21RJnM=; b=KS6zs3jY4WCtaIx/zEiviJWyC1eJcsBxF+KyAs2GXxBpkj9Cy88dDCiMViLg5fGAwf /QRCKxl7kZ3F3I3icZYXwSlyNkccVbE923a+fXhQpupWBY2gO5Y8oKyTZ7GE8HKtkg6E s0Aebfe/f+8K7eIzgo269sq/CuDmHYIfEoXmw1ikS8U872N2Zt/NhCD4oZmX0OvPUjur r7R9pVeXCag7+EZwoujSdoO5qIFUGtXdHf5BVkPxEqp/ED/UEoTBVRZMuijcD+DpJtWf NXfGIaGiGrOEHvoEGbLhkbH8bXwebtYjEek6fTpAlClDU0HNxrOiFP1QYyhSfyv+2sBi 4aCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=B1RUkusv; 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 hk17-20020a170906c9d100b0072ab5d0fc33si343028ejb.863.2022.09.07.15.20.01; Wed, 07 Sep 2022 15:20:25 -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=B1RUkusv; 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 S230464AbiIGVw3 (ORCPT + 99 others); Wed, 7 Sep 2022 17:52:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230426AbiIGVwO (ORCPT ); Wed, 7 Sep 2022 17:52:14 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D675DBFC4E for ; Wed, 7 Sep 2022 14:52:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662587531; x=1694123531; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=KBsG7ppneVMzQMeXF0dx5cWmvIENucelny52hbNLWdE=; b=B1RUkusv8sfQ9kLDtmdXFbKcSLJS1LJn7DtvEg76EnJUex6UV5VRyhOl wP3qO3RYS54kT8W9yvYDpJF+5Sf3HPZikjekqNGLik2fU4bfuvh6FCQOE fPCfJkiuw9KBYkP1PCtI5XQ5nwTlqRgwa4P61TO+4/eiQUnr7kYxVp+RZ v04YC7tR7CJ79hOOSBhfNWXfpm6yo2JJqjQIsksIZMov3dHKI5dNkj+c9 pB5N3VFyXaY0/HN06YAFcw4bfuM4ExZbeKkDbA30YZH4uVjFUnMPOmbaN EPEADb2MwwAyVSpgBSbDCucWODCeBPCU3fvAuqNblFiZK11zyqYScw/FZ g==; X-IronPort-AV: E=McAfee;i="6500,9779,10463"; a="295740360" X-IronPort-AV: E=Sophos;i="5.93,298,1654585200"; d="scan'208";a="295740360" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2022 14:52:11 -0700 X-IronPort-AV: E=Sophos;i="5.93,298,1654585200"; d="scan'208";a="790207996" Received: from twinkler-lnx.jer.intel.com ([10.12.87.143]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2022 14:52:05 -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 v9 10/16] mei: mkhi: add memory ready command Date: Thu, 8 Sep 2022 00:51:07 +0300 Message-Id: <20220907215113.1596567-11-tomas.winkler@intel.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220907215113.1596567-1-tomas.winkler@intel.com> References: <20220907215113.1596567-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, 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 --- V9: Fix duplicated defines caused by wrong --amend 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 c3fa3c5d5cb6..1473ea489666 100644 --- a/drivers/misc/mei/mkhi.h +++ b/drivers/misc/mei/mkhi.h @@ -16,6 +16,13 @@ #define MKHI_GEN_GROUP_ID 0xFF #define MKHI_GEN_GET_FW_VERSION_CMD 0x2 +#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; @@ -40,4 +47,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