netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/9] I/OAT
@ 2006-03-29 22:54 Chris Leech
  2006-03-30  6:21 ` Evgeniy Polyakov
  0 siblings, 1 reply; 3+ messages in thread
From: Chris Leech @ 2006-03-29 22:54 UTC (permalink / raw)
  To: linux-kernel, netdev

[-- Attachment #1: Type: text/plain, Size: 589 bytes --]

[I/OAT] Driver for the Intel(R) I/OAT DMA engine

From: Chris Leech <christopher.leech@intel.com>

Adds a new ioatdma driver

Signed-off-by: Chris Leech <christopher.leech@intel.com>
---

 drivers/dma/Kconfig             |    9 
 drivers/dma/Makefile            |    1 
 drivers/dma/ioatdma.c           |  805
+++++++++++++++++++++++++++++++++++++++
 drivers/dma/ioatdma.h           |  126 ++++++
 drivers/dma/ioatdma_hw.h        |   52 +++
 drivers/dma/ioatdma_io.h        |  118 ++++++
 drivers/dma/ioatdma_registers.h |  128 ++++++
 7 files changed, 1239 insertions(+), 0 deletions(-)


[-- Attachment #2: ioatdma_driver.gz --]
[-- Type: application/x-gzip, Size: 9231 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 2/9] I/OAT
  2006-03-29 22:54 [PATCH 2/9] I/OAT Chris Leech
@ 2006-03-30  6:21 ` Evgeniy Polyakov
  2006-03-31 19:04   ` Chris Leech
  0 siblings, 1 reply; 3+ messages in thread
From: Evgeniy Polyakov @ 2006-03-30  6:21 UTC (permalink / raw)
  To: Chris Leech; +Cc: linux-kernel, netdev

On Wed, Mar 29, 2006 at 02:54:04PM -0800, Chris Leech (christopher.leech@intel.com) wrote:
> [I/OAT] Driver for the Intel(R) I/OAT DMA engine
> 
> From: Chris Leech <christopher.leech@intel.com>
> 
> Adds a new ioatdma driver
> 
> Signed-off-by: Chris Leech <christopher.leech@intel.com>

Let's do it again.
Could you please describe how struct ioat_dma_chan channels are freed?
For example when device is removed just after it has been added.

ioat_probe() -> enumerate_dma_channels() (failures are ok now) ->
kmalloc a lot of channels.

ioat_remove() -> dma_async_device_unregister() which does not cleanup
ioat_dma_chan channels, but only clients.
It ends up in dma_async_device_cleanup() only.

-- 
	Evgeniy Polyakov

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 2/9] I/OAT
  2006-03-30  6:21 ` Evgeniy Polyakov
@ 2006-03-31 19:04   ` Chris Leech
  0 siblings, 0 replies; 3+ messages in thread
From: Chris Leech @ 2006-03-31 19:04 UTC (permalink / raw)
  To: Evgeniy Polyakov; +Cc: linux-kernel, netdev

> Could you please describe how struct ioat_dma_chan channels are freed?

Sorry, I got distracted by other issues and never ended up following
up on this.  You're right, and it's just sloppiness on my part for
missing it, those structs are being leaked on module unload.  I'll fix
it.  Thanks.

-Chris

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-03-31 19:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-29 22:54 [PATCH 2/9] I/OAT Chris Leech
2006-03-30  6:21 ` Evgeniy Polyakov
2006-03-31 19:04   ` Chris Leech

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).