[lkml]   [2012]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH v1 6/8] dmaengine: enhance network subsystem to support DMA device hotplug
    On Mon, Apr 23, 2012 at 6:51 AM, Jiang Liu <> wrote:
    > Enhance network subsystem to correctly update DMA channel reference counts,
    > so it won't break DMA device hotplug logic.
    > Signed-off-by: Jiang Liu <>

    This introduces an atomic action on every channel touch, which is more
    expensive than what we had previously. There has always been a
    concern about the overhead of offload that sometimes makes ineffective
    or a loss compared to cpu copies. In the cases where net_dma shows
    improvement this will eat into / maybe eliminate that advantage.

    Take a look at where dmaengine started [1]. It was from the beginning
    going through contortions to avoid something like this. We made it
    simpler here [2], but still kept the principle of not dirtying a
    shared cacheline on every channel touch, and certainly not locking it.

    If you are going to hotplug the entire IOH, then you are probably ok
    with network links going down, so could you just down the links and
    remove the driver with the existing code?



     \ /
      Last update: 2012-04-23 20:33    [W:2.629 / U:0.880 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site