Skip to content

Commit c5c7e1e

Browse files
committed
intel_adsp: debug_window: Describe the partial slot in page0
Resize the reserved part of the debug window to cover the first 1K and define the partial_page0 which will cover the partial slot in page 0. Add comment to describe the debug window layout. Signed-off-by: Peter Ujfalusi <[email protected]>
1 parent e5078e1 commit c5c7e1e

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

soc/intel/intel_adsp/common/include/adsp_debug_window.h

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,34 @@
3535
* u32 res_id;
3636
* u32 type;
3737
* u32 vma;
38+
*
39+
* The descriptor layout is:
40+
*
41+
* --------------------
42+
* | Desc0 - slot0 |
43+
* --------------------
44+
* | Desc1 - slot1 |
45+
* --------------------
46+
* | Desc2 - slot2 |
47+
* --------------------
48+
* | ... |
49+
* --------------------
50+
* | Desc13 - slot13 |
51+
* --------------------
52+
* | Desc14 - slot14 |
53+
* --------------------
54+
*
55+
* Additional descriptor to descibe the function of the partial slot at page0:
56+
*
57+
* --------------------------
58+
* | Desc15 - page0 + 1024 |
59+
* --------------------------
3860
*/
3961

4062
#define ADSP_DW_PAGE_SIZE 0x1000
4163
#define ADSP_DW_SLOT_SIZE ADSP_DW_PAGE_SIZE
4264
#define ADSP_DW_SLOT_COUNT 15
65+
#define ADSP_DW_PAGE0_SLOT_OFFSET 1024
4366
#define ADSP_DW_DESC_COUNT (ADSP_DW_SLOT_COUNT + 1)
4467

4568
/* debug window slots usage, mutually exclusive options can reuse slots */
@@ -73,7 +96,9 @@ struct adsp_dw_desc {
7396

7497
struct adsp_debug_window {
7598
struct adsp_dw_desc descs[ADSP_DW_DESC_COUNT];
76-
uint8_t reserved[ADSP_DW_SLOT_SIZE - ADSP_DW_DESC_COUNT * sizeof(struct adsp_dw_desc)];
99+
uint8_t reserved[ADSP_DW_PAGE0_SLOT_OFFSET -
100+
ADSP_DW_DESC_COUNT * sizeof(struct adsp_dw_desc)];
101+
uint8_t partial_page0[ADSP_DW_SLOT_SIZE - ADSP_DW_PAGE0_SLOT_OFFSET];
77102
uint8_t slots[ADSP_DW_SLOT_COUNT][ADSP_DW_SLOT_SIZE];
78103
} __packed;
79104

0 commit comments

Comments
 (0)