Re: [RFC]avoid running out of endpoints with multiple S4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Freitag, 4. Mai 2012, 18:26:50 schrieb Sarah Sharp:
> > A while back, you reported that endpoint contexts were not getting
> > removed on a resume from hibernate.  Is this bug related?  I.e. is there

I discovered it verifying the other bug has been fixed.

> > code in the hibernate resume path that isn't cleaning up after the
> > endpoint and bandwidth tracking code?  I would rather fix the issue at
> > the resume than paper over it on re-init.

OK

> It looks like xhci_resume() will call xhci_mem_cleanup() on resume from
> S4 or power loss on resume from S3.  That will only free the xhci->rh_bw
> table, but it won't actually go through the TT or endpoint lists that
> are stored in that table and delete the items from those lists.  So we
> are leaking memory from the lists in xhci_mem_cleanup(), as well as not
> setting xhci->num_active_eps to zero.
> 
> I will attempt to look at this next week, but if you have time to look
> at it, you might be able to come up with a patch sooner than I can.

The patch is being tested.

	Regards
		Oliver
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux