rajagopal kunhappan
2009-Jun-29 22:58 UTC
[crossbow-discuss] webrev intr retarget API, bug 6855972
Posting the webrev to crossbow-discuss. The following APIs are being provided by 6796906 (Interfaces needed for querying and re-targetting msi-x interrupts): /* Interrupt get/set affinity functions */ int ddi_intr_get_affinity(ddi_intr_handle_t h, ddi_intr_target_t *tgt_p); int ddi_intr_set_affinity(ddi_intr_handle_t h, ddi_intr_target_t tgt); ddi_intr_get_affinity() is used to get the CPU taking the interrupt given an interrupt handle. ddi_intr_set_affinity() is used to re-target an interrupt to a specific CPU. Crossbow needs to bind the poll thread to the same CPU as the interrupt CPU for best performance. The above APIs will be used to achieve this objective. The webrev with these changes is at: http://cr.opensolaris.org/~krgopi/xbow-ddi-intr/ The interfaces, ddi_intr_get_affinity() and ddi_intr_set_affinity(), aren''t yet pushed out and is targeting build 119. The changes for 6855972 will go after that. In that way the changes are preliminary and is still undergoing testing. Thanks, -krgopi On 06/23/09 15:42, rajagopal kunhappan wrote:> Webrev: > http://jurassic.eng/net/nptbld/disk1/krgopi/ws/xbow-ddi-intr/webrev/index.html > > > The webrev uses the interrupt re-target API, ddi_intr_set_affinity(), > that IO group has provided. Using this API, we can re-target the msi-x > interrupt to the same CPU as the poll CPU. Please review this changes. > > Thanks, > -krgopi >-- --