Skip to contentSkip to conversation

tricore: added triboard with tc27x_soc

PATCH Konopik, Andreas (EFS-GH2) 2 participants 2 messages Jun 30, 2020 – Jul 1, 2020

lore
Share & tools
lore
#0 lore raw

Hi Bastian,

Quoted 10 lines · David Brenken

Review

Quoted 5 lines

From: Andreas Konopik <[email protected]>

(quoted diff) +4 -0
+const MemmapEntry tc27x_soc_memmap[] = {
+    [TC27XD_DSPR2]     = { 0x50000000,   0x1E000 },
+    [TC27XD_DCACHE2]   = { 0x5001E000,    0x2000 },
+    [TC27XD_DTAG2]     = { 0x500C0000,     0xC00 },

The size changed from 0xa00 to 0xc00 from v2. The manual states that it has no size. I guess you inferred the size from the address range. How does real hw behave if you access DTAG2?

DTAG size of 0xa00 was a mistake, 0xc00 is correct. Even though the manual does not assign sizes, DTAG and PTAG can be mapped for memory testing purposes. Therefore memory accesses to DTAG/PTAG are possible (see Footnote 3 & 4 [1, Page 3-10]).

Real hardware has to be configured via MTU before accessing DTAG/PTAG. Because QEMU tricore has no MTU, we wanted to be less restrictive by mapping DTAG/PTAG into memory.

Quoted 2 lines

Why not use KiB/MiB sizes as before? I created a patch for that. Can you check that I didn't skrew up the sizes?

Thank you, the patch looks good to me.
How do you want to proceed? Should we send you a Patch v4?

Quoted 1 line

The remainder looks good to me.

Great!

Kind regards,

Andreas

[1] https://hitex.co.uk/fileadmin/uk-files/downloads/ShieldBuddy/tc27xD_um_v2.2.pdf

#1 lore raw

Hi Andreas,

Quoted 9 lines · On Tue, Jun 30, 2020 at 10:28:57AM +0000, Konopik, Andreas (EFS-GH2) wrote:

Hi Bastian,

Quoted 7 lines · David Brenken
Quoted 5 lines

From: Andreas Konopik <[email protected]>

(quoted diff) +4 -0
+const MemmapEntry tc27x_soc_memmap[] = {
+    [TC27XD_DSPR2]     = { 0x50000000,   0x1E000 },
+    [TC27XD_DCACHE2]   = { 0x5001E000,    0x2000 },
+    [TC27XD_DTAG2]     = { 0x500C0000,     0xC00 },
Quoted 8 lines
Quoted 3 lines

The size changed from 0xa00 to 0xc00 from v2. The manual states that it has no size. I guess you inferred the size from the address range. How does real hw behave if you access DTAG2?

DTAG size of 0xa00 was a mistake, 0xc00 is correct. Even though the manual does not assign sizes, DTAG and PTAG can be mapped for memory testing purposes. Therefore memory accesses to DTAG/PTAG are possible (see Footnote 3 & 4 [1, Page 3-10]).

Real hardware has to be configured via MTU before accessing DTAG/PTAG. Because QEMU tricore has no MTU, we wanted to be less restrictive by mapping DTAG/PTAG into memory.

Ok, that sound reasonable to me.

Quoted 6 lines
Quoted 3 lines

Why not use KiB/MiB sizes as before? I created a patch for that. Can you check that I didn't skrew up the sizes?

Thank you, the patch looks good to me.
How do you want to proceed? Should we send you a Patch v4?

Yes, that would be best.

Cheers,
Bastian