Skip to contentSkip to conversation

crb state transition question

DISCUSSION Jerry Snitselaar 2 participants 2 messages Mar 24, 2017 – Mar 25, 2017 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

How closely should the driver adhere to the state transitions documented in the ptp spec? I think in an earlier patch Tomas mentioned that PTT (at least some versions) was handling idle state management itself. With something other than PTT coming along to use crb, I'm wondering if we should be doing something like crb_cmd_ready at the beginning of crb_send, and crb_go_idle at the end of crb_recv.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot

#2 lore raw
In reply to a message not in the archive
Quoted 7 lines · Jerry Snitselaar

How closely should the driver adhere to the state transitions documented in the ptp spec? I think in an earlier patch Tomas mentioned that PTT (at least some versions) was handling idle state management itself. With something other than PTT coming along to use crb, I'm wondering if we should be doing something like crb_cmd_ready at the beginning of crb_send, and crb_go_idle at the end of crb_recv.

There are pm_runtime calls in tpm_transmit and callbacks to tpm_crb. The transition to powered state and back happens once per trasmission. This works for all Intel platforms. I would consider fixing it if there was a regression related to power gating in ARM64 for example.

Can't really even recall what was exactly said in the specification about this. I took the timeouts from the spec basically (the power gating patch was originally done by me and further refined by Tomas).

/Jarkko

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot