Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1551680
| From | Jan Kiszka <jan.kiszka@siemens.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] serial: 8250_lpss: Release Quark MSI vectors on exit |
| Date | 2017-01-05 08:10 +0100 |
| Message-ID | <sWals-7XR-5@gated-at.bofh.it> (permalink) |
| References | <sVZT4-Ik-31@gated-at.bofh.it> <sW2ee-2r4-15@gated-at.bofh.it> <sW2xA-2xV-15@gated-at.bofh.it> <sW8MF-6Qh-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 2017-01-05 06:25, Christoph Hellwig wrote: > On Wed, Jan 04, 2017 at 11:46:58PM +0100, Jan Kiszka wrote: >>> I NAKed already third patch related to PCI managed resources (couple >>> of those regarding to pci_irq_* API)/ >>> >> >> Ah, there are resources that are managed without being allocated >> explicitly that way. Hmm, not very intuitive. Are MSI / MSI-X vectors >> the only such cases? > > MSI/MSI-X resources are not managed that way and an explicit call to > pci_free_irq_vectors is required from the API standpoint. It might not > actually free memory in many cases, but it still is a symmetric API. > Andy is referring to the following: - pcim_enable_device registers pci_devres with the devres subsystem - on device release, devres_release_all is invoked, and that calls pcim_release - the latter will invoke pci_disable_msi and pci_disable_msix if any of them is enabled The user will still call the same pci_msi_enable, pci_alloc_irq_vectors etc., but they are now "magically" managed with pcim_enable_device being used. Same for pci_request_region. Jan -- Siemens AG, Corporate Technology, CT RDA ITP SES-DE Corporate Competence Center Embedded Linux
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] serial: 8250_lpss: Release Quark MSI vectors on exit Jan Kiszka <jan.kiszka@siemens.com> - 2017-01-04 21:00 +0100
Re: [PATCH] serial: 8250_lpss: Release Quark MSI vectors on exit Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-01-04 23:30 +0100
Re: [PATCH] serial: 8250_lpss: Release Quark MSI vectors on exit Jan Kiszka <jan.kiszka@siemens.com> - 2017-01-04 23:50 +0100
Re: [PATCH] serial: 8250_lpss: Release Quark MSI vectors on exit Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-01-05 00:00 +0100
Re: [PATCH] serial: 8250_lpss: Release Quark MSI vectors on exit Christoph Hellwig <hch@lst.de> - 2017-01-05 06:30 +0100
Re: [PATCH] serial: 8250_lpss: Release Quark MSI vectors on exit Jan Kiszka <jan.kiszka@siemens.com> - 2017-01-05 08:10 +0100
Re: [PATCH] serial: 8250_lpss: Release Quark MSI vectors on exit Christoph Hellwig <hch@infradead.org> - 2017-01-08 11:30 +0100
Re: [PATCH] serial: 8250_lpss: Release Quark MSI vectors on exit Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2017-01-08 17:10 +0100
Re: [PATCH] serial: 8250_lpss: Release Quark MSI vectors on exit Christoph Hellwig <hch@infradead.org> - 2017-01-05 06:30 +0100
Re: [PATCH] serial: 8250_lpss: Release Quark MSI vectors on exit Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2017-01-05 10:10 +0100
csiph-web