From patchwork Thu Aug 30 13:22:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Stach X-Patchwork-Id: 10581713 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 882265A4 for ; Thu, 30 Aug 2018 13:22:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7732F2BEEC for ; Thu, 30 Aug 2018 13:22:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6ACBE2BEFF; Thu, 30 Aug 2018 13:22:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CF69F2BEEC for ; Thu, 30 Aug 2018 13:22:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728746AbeH3RYX (ORCPT ); Thu, 30 Aug 2018 13:24:23 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:60149 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728722AbeH3RYX (ORCPT ); Thu, 30 Aug 2018 13:24:23 -0400 Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7] helo=dude.pengutronix.de.) by metis.ext.pengutronix.de with esmtp (Exim 4.89) (envelope-from ) id 1fvMtp-0006KZ-SQ; Thu, 30 Aug 2018 15:22:13 +0200 From: Lucas Stach To: Vinod Koul Cc: Robin Gong , dmaengine@vger.kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, patchwork-lst@pengutronix.de Subject: [PATCH 0/4] imx-sdma fixes for 4.19-rc Date: Thu, 30 Aug 2018 15:22:09 +0200 Message-Id: <20180830132213.5958-1-l.stach@pengutronix.de> X-Mailer: git-send-email 2.18.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: dmaengine@vger.kernel.org Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi all, as mentioned previously [1], the change to switch imx-sdma to use a dma-pool for the dma descriptors is broken. This series reverts the broken commits and adds an alternative solution to the issue, which was solved with using the dma pool. Namely the freeing of dma descriptor memory from the device_terminate_all callback, which may be called with interrupts disabled, causing a warning from the dma mapping API. As the broken code is part of 4.19-rc1, this series needs to go in as a regression fix. Regards, Lucas [1] https://patchwork.kernel.org/patch/10473979/ Lucas Stach (4): Revert "dmaengine: imx-sdma: Use GFP_NOWAIT for dma allocations" Revert "dmaengine: imx-sdma: alloclate bd memory from dma pool" dmaengine: imx-sdma: implement channel termination via worker dmaengine: imx-sdma: use GFP_NOWAIT for dma descriptor allocations drivers/dma/imx-sdma.c | 58 +++++++++++++++++++++++++----------------- 1 file changed, 35 insertions(+), 23 deletions(-)