Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1096656ybe; Thu, 19 Sep 2019 08:34:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0bjocObtMvBonuPjqBH1XrL0d3f0JzjnU/EREihqB7WxOYIoX3Ia8ARIwUTMQurrTXe6T X-Received: by 2002:a17:906:bb14:: with SMTP id jz20mr14879739ejb.218.1568907245022; Thu, 19 Sep 2019 08:34:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568907245; cv=none; d=google.com; s=arc-20160816; b=yjIqFJGDu3DtrPGgXvGo3i9JZvUVm2GcQmnNrtKkMXrj5XC9KHdgbJ9agZPjjK5XS+ xj79Y9/bZUzA+Exeqre2NEoN+HCJ8EpAYWeb2jsdmZv3rhhOgsw6SI3dzZPOhPG/IjWz E4q+Tb1pbVL/1ye6nUXe+cnWSHu+ncUzXAWKd9dlqph1IJXXzkbPiIp2TWvamkOasoaI xaZeQcJIFacP/4DgF3D6SpU2IXOqMIr1ouvl1cipH3ULjKoLOnI7jcnxoLfuE/5PZQHo XK1Bk2UDSNKnBHxC8WmYC5Kp53/vlDtFw1uI0ZocnC16vrhYBo3YCaVyO3ShyzEZB2yO LWiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=WfwOF61OoR8M1e7Qa+ZZMY90GfOvjcgebJlSOMqBsC4=; b=FtvgdxJ6msfXWcvypiM8cEy7wfEnd6e6/6AY14EYfHrgBTRUbDuRr42r8KSRuti0DV vgEhcC5+ONo0qTo7vZHuaJKn3Wrf3DdJEoDoag5luPIo2EQSm49xcsiXo0INx0Gpsmys f8qOjAdFLQ9DXdzzNXq9jOeI4U4cqLVPwBKQTLAN1Cl8gZhpNAkgsrTfSqj8BC0FC2P9 J7wk9q5eY4Gj61Uc7fjE+4IiOuNadf7AWloX/uq1bxXLHTpV5ojt/5KxV0FelFX8WBkn 7ePbKcoZqqzAqD/XT3rxrFjyBB4u5EC0SX3cBnCSE3e6yWTwvwlAwCSj9jVSQcPaVxmh i3eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tmRUxVcc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v26si4742599ejw.276.2019.09.19.08.33.40; Thu, 19 Sep 2019 08:34:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tmRUxVcc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389963AbfISLhw (ORCPT + 99 others); Thu, 19 Sep 2019 07:37:52 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:41695 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389957AbfISLhw (ORCPT ); Thu, 19 Sep 2019 07:37:52 -0400 Received: by mail-lj1-f193.google.com with SMTP id f5so3228135ljg.8 for ; Thu, 19 Sep 2019 04:37:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WfwOF61OoR8M1e7Qa+ZZMY90GfOvjcgebJlSOMqBsC4=; b=tmRUxVccdHoZq6Alk7EDBGRJpqo7ps/lgBfHnrJDWLPzw3T14K2tlvbdO7/V1Xj+by X2O61E9xCs+4s5w+xOFaTY0XG52MIPGZ97lDfuwNbeq8KGuGHibjkgjq+KJ7vAA/J+3+ Lwav++NhEBRlYPOQRN879gdJ6V8Oraakm6rPEVhr4HPWixCF/6y8s3iJcr+67KaBnvjl OhsyF7nEdI95+w0AW8qDdZwyX6Ckte34WoeIzgq/kW0lC8BSJvhMuNsC2GguDwD+mjtq ke3R7EMTP1RryZmqKPgPAkQOrRk7+eSafwLdrGeTlyewV/fxm/ul4OgvJn/F76Yj/rCj ixiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WfwOF61OoR8M1e7Qa+ZZMY90GfOvjcgebJlSOMqBsC4=; b=hptrIuOqX1PX2QJ9EQ5qDHsiMt17qgwGlQRT6C0h7P/GYd1xorutI1xTGt9ea4JjWe 4jhTWE8jYXU4qd2J4O0uQ0+tEYKZjGUXvz1RcIdTWpz3USXV4UcAvgi1qB7mQiJOiC7u Y1XkY/egtXFdzAw7hjqgk7y1seLbyOgt7v1goZj+xrpfZ1ogBRZ5eG5azJxlMM3Mcniq RDD3mHiWfs6FmsJ0HKKb3COCOCT58o9+92lda4MUp8YqfwDkPEETNo+k9++BHLkx6qGL /K1zkKDEYgvd0rfAxd/4QS8kI/L46ltTAmJzosD0j0e0tynzJBAwr+QEtVSYhBzlJ6Fi cr8g== X-Gm-Message-State: APjAAAWotezIORPGmw9cQNUngo3tR4xAZZ+Q8YRYt6yKpWcaubAihdsv dOtyWvv4Lr6dpOy5UuZXTpkSiyg3ownXUVbVJBgRyYMo+Ko= X-Received: by 2002:a2e:8184:: with SMTP id e4mr5231120ljg.240.1568893070642; Thu, 19 Sep 2019 04:37:50 -0700 (PDT) MIME-Version: 1.0 References: <20190919102319.23368-1-philipp.puschmann@emlix.com> <20190919104526.29851-1-philipp.puschmann@emlix.com> <20190919104526.29851-2-philipp.puschmann@emlix.com> In-Reply-To: <20190919104526.29851-2-philipp.puschmann@emlix.com> From: Fabio Estevam Date: Thu, 19 Sep 2019 08:37:50 -0300 Message-ID: Subject: Re: [PATCH v3 1/3] dmaengine: imx-sdma: fix buffer ownership To: Philipp Puschmann Cc: linux-kernel , Robin Gong , Fugang Duan , Lucas Stach , Dan Williams , Vinod , Shawn Guo , Sascha Hauer , Sascha Hauer , NXP Linux Team , dmaengine@vger.kernel.or, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Philipp, On Thu, Sep 19, 2019 at 7:45 AM Philipp Puschmann wrote: > > BD_DONE flag marks ownership of the buffer. When 1 SDMA owns the > buffer, when 0 ARM owns it. When processing the buffers in > sdma_update_channel_loop the ownership of the currently processed > buffer was set to SDMA again before running the callback function of > the buffer and while the sdma script may be running in parallel. So > there was the possibility to get the buffer overwritten by SDMA before > it has been processed by kernel leading to kind of random errors in the > upper layers, e.g. bluetooth. > > Fixes: broken since start The Fixes tag requires a commit ID like this: Fixes: 1ec1e82f2510 ("dmaengine: Add Freescale i.MX SDMA support") Same applies to the other patch.