[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20120206.144249.2096673389778792309.davem@davemloft.net>
Date: Mon, 06 Feb 2012 14:42:49 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: cascardo@...ux.vnet.ibm.com
Cc: yevgenyp@...lanox.co.il, ogerlitz@...lanox.com,
eugenia@...lanox.co.il, alexg@...lanox.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] mlx4: allow device removal by fixing dma unmap size
From: Thadeu Lima de Souza Cascardo <cascardo@...ux.vnet.ibm.com>
Date: Mon, 6 Feb 2012 16:39:49 -0200
> After opening the network interface, Mellanox ConnectX device cannot be
> removed by hotplug because it has not properly unmapped all DMA memory.
>
> It happens that mlx4_en_activate_rx_rings overrides the variable that
> keeps the size of the memory mapped.
>
> This is fixed by passing to mlx4_en_destroy_rx_ring the same size that is
> given to mlx4_en_create_rx_ring.
>
> After applying this patch, hot unplugging the device works after opening
> the interface.
>
> Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@...ux.vnet.ibm.com>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists