Skip to content

Commit 3f11bcc

Browse files
committed
drm/xe/guc: Add PF2GUC_UPDATE_VF_CFG to ABI
In upcoming patches the PF driver will add support to change VFs configuration and will need to use PF2GUC_UPDATE_VF_CFG messages. Add necessary definitions to our GuC firmware ABI header. Definitions of the GuC VF Configuration KLVs used by this action are already present in abi/guc_klvs_abi.h Reviewed-by: Piotr Piórkowski <[email protected]> Signed-off-by: Michal Wajdeczko <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent bda438b commit 3f11bcc

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

drivers/gpu/drm/xe/abi/guc_actions_sriov_abi.h

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,61 @@
260260
#define PF2GUC_UPDATE_VGT_POLICY_RESPONSE_MSG_LEN GUC_HXG_RESPONSE_MSG_MIN_LEN
261261
#define PF2GUC_UPDATE_VGT_POLICY_RESPONSE_MSG_0_COUNT GUC_HXG_RESPONSE_MSG_0_DATA0
262262

263+
/**
264+
* DOC: PF2GUC_UPDATE_VF_CFG
265+
*
266+
* The `PF2GUC_UPDATE_VF_CFG`_ message is used by PF to provision single VF in GuC.
267+
*
268+
* This message must be sent as `CTB HXG Message`_.
269+
*
270+
* +---+-------+--------------------------------------------------------------+
271+
* | | Bits | Description |
272+
* +===+=======+==============================================================+
273+
* | 0 | 31 | ORIGIN = GUC_HXG_ORIGIN_HOST_ |
274+
* | +-------+--------------------------------------------------------------+
275+
* | | 30:28 | TYPE = GUC_HXG_TYPE_REQUEST_ |
276+
* | +-------+--------------------------------------------------------------+
277+
* | | 27:16 | MBZ |
278+
* | +-------+--------------------------------------------------------------+
279+
* | | 15:0 | ACTION = _`GUC_ACTION_PF2GUC_UPDATE_VF_CFG` = 0x5503 |
280+
* +---+-------+--------------------------------------------------------------+
281+
* | 1 | 31:0 | **VFID** - identifier of the VF that the KLV |
282+
* | | | configurations are being applied to |
283+
* +---+-------+--------------------------------------------------------------+
284+
* | 2 | 31:0 | **CFG_ADDR_LO** - dword aligned GGTT offset that represents |
285+
* | | | the start of a list of virtualization related KLV configs |
286+
* | | | that are to be applied to the VF. |
287+
* | | | If this parameter is zero, the list is not parsed. |
288+
* | | | If full configs address parameter is zero and configs_size is|
289+
* | | | zero associated VF config shall be reset to its default state|
290+
* +---+-------+--------------------------------------------------------------+
291+
* | 3 | 31:0 | **CFG_ADDR_HI** - upper 32 bits of configs address. |
292+
* +---+-------+--------------------------------------------------------------+
293+
* | 4 | 31:0 | **CFG_SIZE** - size (in dwords) of the config buffer |
294+
* +---+-------+--------------------------------------------------------------+
295+
*
296+
* +---+-------+--------------------------------------------------------------+
297+
* | | Bits | Description |
298+
* +===+=======+==============================================================+
299+
* | 0 | 31 | ORIGIN = GUC_HXG_ORIGIN_GUC_ |
300+
* | +-------+--------------------------------------------------------------+
301+
* | | 30:28 | TYPE = GUC_HXG_TYPE_RESPONSE_SUCCESS_ |
302+
* | +-------+--------------------------------------------------------------+
303+
* | | 27:0 | **COUNT** - number of KLVs successfully applied |
304+
* +---+-------+--------------------------------------------------------------+
305+
*/
306+
#define GUC_ACTION_PF2GUC_UPDATE_VF_CFG 0x5503u
307+
308+
#define PF2GUC_UPDATE_VF_CFG_REQUEST_MSG_LEN (GUC_HXG_REQUEST_MSG_MIN_LEN + 4u)
309+
#define PF2GUC_UPDATE_VF_CFG_REQUEST_MSG_0_MBZ GUC_HXG_REQUEST_MSG_0_DATA0
310+
#define PF2GUC_UPDATE_VF_CFG_REQUEST_MSG_1_VFID GUC_HXG_REQUEST_MSG_n_DATAn
311+
#define PF2GUC_UPDATE_VF_CFG_REQUEST_MSG_2_CFG_ADDR_LO GUC_HXG_REQUEST_MSG_n_DATAn
312+
#define PF2GUC_UPDATE_VF_CFG_REQUEST_MSG_3_CFG_ADDR_HI GUC_HXG_REQUEST_MSG_n_DATAn
313+
#define PF2GUC_UPDATE_VF_CFG_REQUEST_MSG_4_CFG_SIZE GUC_HXG_REQUEST_MSG_n_DATAn
314+
315+
#define PF2GUC_UPDATE_VF_CFG_RESPONSE_MSG_LEN GUC_HXG_RESPONSE_MSG_MIN_LEN
316+
#define PF2GUC_UPDATE_VF_CFG_RESPONSE_MSG_0_COUNT GUC_HXG_RESPONSE_MSG_0_DATA0
317+
263318
/**
264319
* DOC: PF2GUC_VF_CONTROL
265320
*

0 commit comments

Comments
 (0)