On Wed, 22 Dec 2021, Ryan Zezeski wrote:
> In both of your cases the stack trace confuses me, in that I don't
> understand why that ena_free_host_info() is there.

That's a red herring.

NOTICE: ena0 unregistered
WARNING: ena0: unexpected status code: 6
WARNING: ena0: failed Destroy SQ: 5
WARNING: ena0: failed to destroy Rx SQ 0: 5

panic[cpu0]/thread=fffffe00027efc20:
timed out waiting for admin response

fffffe00027ef6f0 ena:ena_free_host_info+0 ()
fffffe00027ef7d0 ena:ena_destroy_sq+af ()
fffffe00027ef800 ena:ena_cleanup_rxq+99 ()
fffffe00027ef840 ena:ena_cleanup_rxqs+44 ()
fffffe00027ef880 ena:ena_cleanup+73 ()
fffffe00027ef8c0 ena:ena_detach+47 ()

Based on the panic message, this is in ena_admin_poll_for_resp(). Since the
compiler has placed the panic() call at the end of this function and knows
that panic() is non-return, there's no function epilogue which is why the
stack trace is showing that we're at the very start of the next function.

> ena_admin_poll_for_resp::dis ! tail
ena_admin_poll_for_resp+0x74:   movl   -0x34(%rbp),%eax
ena_admin_poll_for_resp+0x77:   addq   $0x18,%rsp
ena_admin_poll_for_resp+0x7b:   popq   %rbx
ena_admin_poll_for_resp+0x7c:   popq   %r12
ena_admin_poll_for_resp+0x7e:   popq   %r13
ena_admin_poll_for_resp+0x80:   leave
ena_admin_poll_for_resp+0x81:   ret
ena_admin_poll_for_resp+0x82:   movq   $0xfffffffff7faf8b0,%rdi
ena_admin_poll_for_resp+0x89:   xorl   %eax,%eax
ena_admin_poll_for_resp+0x8b:   call   +0x38fc240       <panic>
> ::dis
ena_free_host_info:             pushq  %rbp
ena_free_host_info+1:           movq   %rsp,%rbp
ena_free_host_info+4:           pushq  %rdi
ena_free_host_info+5:           addq   $0x2d8,%rdi
ena_free_host_info+0xc:         subq   $0x8,%rsp
ena_free_host_info+0x10:        call   +0xd0b   <ena_dma_free>
ena_free_host_info+0x15:        leave
ena_free_host_info+0x16:        ret

So, presumably this is something related to waiting for an admin response to a
request that failed.

Andy


------------------------------------------
illumos: illumos-discuss
Permalink: 
https://illumos.topicbox.com/groups/discuss/Ta838d1d97b3f9153-M97935da7f6dd41f6286ff1f8
Delivery options: https://illumos.topicbox.com/groups/discuss/subscription

Reply via email to