-
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.
drm/nouveau/flcn/cmdq: move command generation to subdevs
This moves the code to generate commands for the ACR unit of the PMU/SEC2 LS firmwares to those subdevs. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
- Loading branch information
Ben Skeggs
committed
Jan 15, 2020
1 parent
25fd061
commit 86ce2a7
Showing
16 changed files
with
300 additions
and
276 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#ifndef __NVFW_PMU_H__ | ||
#define __NVFW_PMU_H__ | ||
|
||
#define NV_PMU_UNIT_ACR 0x0a | ||
|
||
struct nv_pmu_acr_cmd { | ||
struct nv_falcon_cmd hdr; | ||
#define NV_PMU_ACR_CMD_INIT_WPR_REGION 0x00 | ||
#define NV_PMU_ACR_CMD_BOOTSTRAP_FALCON 0x01 | ||
#define NV_PMU_ACR_CMD_BOOTSTRAP_MULTIPLE_FALCONS 0x03 | ||
u8 cmd_type; | ||
}; | ||
|
||
struct nv_pmu_acr_msg { | ||
struct nv_falcon_cmd hdr; | ||
u8 msg_type; | ||
}; | ||
|
||
struct nv_pmu_acr_bootstrap_falcon_cmd { | ||
struct nv_pmu_acr_cmd cmd; | ||
#define NV_PMU_ACR_BOOTSTRAP_FALCON_FLAGS_RESET_YES 0x00000000 | ||
#define NV_PMU_ACR_BOOTSTRAP_FALCON_FLAGS_RESET_NO 0x00000001 | ||
u32 flags; | ||
u32 falcon_id; | ||
}; | ||
|
||
struct nv_pmu_acr_bootstrap_falcon_msg { | ||
struct nv_pmu_acr_msg msg; | ||
u32 falcon_id; | ||
}; | ||
|
||
struct nv_pmu_acr_bootstrap_multiple_falcons_cmd { | ||
struct nv_pmu_acr_cmd cmd; | ||
#define NV_PMU_ACR_BOOTSTRAP_MULTIPLE_FALCONS_FLAGS_RESET_YES 0x00000000 | ||
#define NV_PMU_ACR_BOOTSTRAP_MULTIPLE_FALCONS_FLAGS_RESET_NO 0x00000001 | ||
u32 flags; | ||
u32 falcon_mask; | ||
u32 use_va_mask; | ||
u32 wpr_lo; | ||
u32 wpr_hi; | ||
}; | ||
|
||
struct nv_pmu_acr_bootstrap_multiple_falcons_msg { | ||
struct nv_pmu_acr_msg msg; | ||
u32 falcon_mask; | ||
}; | ||
#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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#ifndef __NVFW_SEC2_H__ | ||
#define __NVFW_SEC2_H__ | ||
|
||
#define NV_SEC2_UNIT_ACR 0x08 | ||
|
||
struct nv_sec2_acr_cmd { | ||
struct nv_falcon_cmd hdr; | ||
#define NV_SEC2_ACR_CMD_BOOTSTRAP_FALCON 0x00 | ||
u8 cmd_type; | ||
}; | ||
|
||
struct nv_sec2_acr_msg { | ||
struct nv_falcon_cmd hdr; | ||
u8 msg_type; | ||
}; | ||
|
||
struct nv_sec2_acr_bootstrap_falcon_cmd { | ||
struct nv_sec2_acr_cmd cmd; | ||
#define NV_SEC2_ACR_BOOTSTRAP_FALCON_FLAGS_RESET_YES 0x00000000 | ||
#define NV_SEC2_ACR_BOOTSTRAP_FALCON_FLAGS_RESET_NO 0x00000001 | ||
u32 flags; | ||
u32 falcon_id; | ||
}; | ||
|
||
struct nv_sec2_acr_bootstrap_falcon_msg { | ||
struct nv_sec2_acr_msg msg; | ||
u32 error_code; | ||
u32 falcon_id; | ||
}; | ||
#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
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.