pci express : setting max payload size in endpoint
Hi,
We have RC max payload size setting of 256bytes and EP maxpayload size setting of 128 bytes. We do have the driver of RC and not of EP. As per the datasheet of EP, the RC has to set the Maxpayload size in the device control register of EP(less than or equal to the payload size advertised in teh device capability register, which is set to 512 bytes in our case). This I could not find anywhere in the code. please answer the following queries:
1. Is it possible to change the Max Payload Size from shell? (i.e. after the link is up and using shell commands)
2. If not possible from shell, when it has to be updated to work on 256B payload size?
3. If it has to be done at driver initialization level, at what point of time the change should take place?
Last edited by nagarasr; 02-03-2011 at 03:27 AM.
|