-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The GSC uC needs to communicate with the CSME to perform certain operations. Since the GSC can't perform this communication directly on platforms where it is integrated in GT, the graphics driver needs to transfer the messages from GSC to CSME and back. The proxy flow must be manually started after the GSC is loaded to signal to GSC that we're ready to handle its messages and allow it to query its init data from CSME. Note that the component must be removed before the pci_remove call completes, so we can't use a drmm helper for it and we need to instead perform the cleanup as part of the removal flow. v2: add function documentation, more targeted memory clear, clearer logs and variable names (Alan) Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> Cc: Alan Previn <alan.previn.teres.alexis@intel.com> Cc: Suraj Kandpal <suraj.kandpal@intel.com> Reviewed-by: Alan Previn <alan.previn.teres.alexis@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240117182621.2653049-2-daniele.ceraolospurio@intel.com
- Loading branch information
Daniele Ceraolo Spurio
committed
Jan 18, 2024
1 parent
6af7ee0
commit 997a55c
Showing
14 changed files
with
659 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* SPDX-License-Identifier: MIT */ | ||
/* | ||
* Copyright © 2023 Intel Corporation | ||
*/ | ||
|
||
#ifndef _ABI_GSC_PROXY_COMMANDS_ABI_H | ||
#define _ABI_GSC_PROXY_COMMANDS_ABI_H | ||
|
||
#include <linux/types.h> | ||
|
||
/* Heci client ID for proxy commands */ | ||
#define HECI_MEADDRESS_PROXY 10 | ||
|
||
/* FW-defined proxy header */ | ||
struct xe_gsc_proxy_header { | ||
/* | ||
* hdr: | ||
* Bits 0-7: type of the proxy message (see enum xe_gsc_proxy_type) | ||
* Bits 8-15: rsvd | ||
* Bits 16-31: length in bytes of the payload following the proxy header | ||
*/ | ||
u32 hdr; | ||
#define GSC_PROXY_TYPE GENMASK(7, 0) | ||
#define GSC_PROXY_PAYLOAD_LENGTH GENMASK(31, 16) | ||
|
||
u32 source; /* Source of the Proxy message */ | ||
u32 destination; /* Destination of the Proxy message */ | ||
#define GSC_PROXY_ADDRESSING_KMD 0x10000 | ||
#define GSC_PROXY_ADDRESSING_GSC 0x20000 | ||
#define GSC_PROXY_ADDRESSING_CSME 0x30000 | ||
|
||
u32 status; /* Command status */ | ||
} __packed; | ||
|
||
/* FW-defined proxy types */ | ||
enum xe_gsc_proxy_type { | ||
GSC_PROXY_MSG_TYPE_PROXY_INVALID = 0, | ||
GSC_PROXY_MSG_TYPE_PROXY_QUERY = 1, | ||
GSC_PROXY_MSG_TYPE_PROXY_PAYLOAD = 2, | ||
GSC_PROXY_MSG_TYPE_PROXY_END = 3, | ||
GSC_PROXY_MSG_TYPE_PROXY_NOTIFICATION = 4, | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.