Hello all,
I'm using the C6678 SRIO peripheral.
I have some questions about the device init as found in the SRIOLoopbackDioIsr SRIO LLD example.
The final system will have one board with several C6678 and a SRIO switch.
Basically the DSP will only use DirectIO writes, reads and doorbells. No message passing, nothing else.
My questions :
a) in the Processing Element Features CAR
what does Extended Features "PE has extended features list; the extended features pointer is valid" mean ?
what are these features ?
b) for the source/destination operations CAR : OK
Let's say I disable "atomic clear" in the SOURCE op car and enable it in the DESTINATION op car.
It means the DSP won't be able to SEND SRIO atomic clear packets right ?
and that I'll still be able to receive them right ?
OK it's right.
c) about Base Device ID CSR : OK
My Processing Element is a Processor (not an endpoint)
So is it really useful for my use case to call CSL_SRIO_SetDeviceIDCSR ? YES
In the documentation it says
"This is the base ID of the device in small common transport system (endpoints only)."
here endpoint can refer to a processor too.
d) about DEV_ID CSR : Partially OK
In the documentation it says "DeviceIdentity field value should be programmed to be 0x009D"
and "Identifies the type of device. Vendor specific"
but in the device_init code we have
CSL_SRIO_SetDeviceInfo (hSrio, DEVICE_ID1_16BIT, DEVICE_VENDOR_ID, DEVICE_REVISION);
with DEVICE_ID1_16BIT = 0xBEEF
to me it's not the right value... and why do we even set it if it's hard wired ?
e) about HOST_BASE_ID_LOCK : OK
The call :
CSL_SRIO_SetHostDeviceID (hSrio, DEVICE_ID1_16BIT);
in the documentation it says "This is the base ID for the Host PE that is initializing this PE."
Host Device ID = Base device id because here our DSP (processing element) is initializating (no discovery) itself right ?
yes it would matter in a system with discovery
f) The port link time-out control CSR (SP_LT_CTL) : OK
In the init example this timeout is set to 0xFFF (4095)
Why this choice ? How do I know the optimum setting for my system ?
see ClintonRodgers reply
g)
I'll add other questions later.
Thank you
Clement