From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5C13EC48BE5 for ; Tue, 15 Jun 2021 19:21:39 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 16A9C60FF4 for ; Tue, 15 Jun 2021 19:21:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 16A9C60FF4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ouqr6N1yVpVi+3LbKtC6Wd5zQibEirUnAmTyknYdPnA=; b=p/yYCIbHUAotjT vYn6iqSHmbfVewgJG7EYCOGCSmrE+ktQnR9RT+oSLtj4nZ0keuPXyNErZiK03H6YQk/xur7NmYmTd 4A1aS55EasXhm5LPG6ZvCui3klQQ3DkG/ns+L9KppnnxAJYar3b8He9yN1nRCF/hQQjLexI4B/Vtn lDyQ9pVJUVvIKbuMXx2Dx0mBEUswPjS3vMQjGsSQz4EYNzIBAT9HWtvAiYj+nqf0wLwvA1MRmg4lb p23txDMcs98TbCn1nyZHJbkW4hyihud8iRnJSGB9rITR7NBevFWrHxLAN8fViyY6vxLUmq1g+06wc ws64nJ24+6R3pdrl6+AA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ltEbH-002O9F-It; Tue, 15 Jun 2021 19:19:52 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lt9M5-000DEY-Dl for linux-arm-kernel@bombadil.infradead.org; Tue, 15 Jun 2021 13:43:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=q4p8q448+JtoJp3d1p6U4lEZHqaguAEXr7zcpCrZnLk=; b=Q2dObyaqY0sunJ0kAAIjS1HA91 On2VVtRon2BOfA2y9S1ho0/g5qqxt+9fd9DMrfZp9/gNXxBjenkqmWGcwqCG9Gnxj9dSRKV7LZG3F b3WzgzjsdEfs6OqnbQn5WA0y3k95h1eGHcl/rIHeRTM5uTJU+xA+dQUhXrDUAJ1v0yEJmXDVzmt/I 350ikYv/sUgI70Nm21Ud4Uk0/kKy5+Svo21/WidjIb8FPCIA+/220BTzPNkvkDVai9V8jlvfL9rJZ OOXPUppJwZw1yz8+wc+SnQbRHhyXTSzJx4R2M8apyjyh8g9u0ADtgRMl/2HVeihl8apnfVSV1BV4p x1Y1bpoQ==; Received: from mail.kernel.org ([198.145.29.99]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lt2Dl-007OUu-Sd for linux-arm-kernel@lists.infradead.org; Tue, 15 Jun 2021 06:06:56 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id ABE996109E; Tue, 15 Jun 2021 06:06:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623737208; bh=MpmsCBWcltC7Z41R4ZBLvQ1UF4QXF8v/fU2nHODL1P0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Cd3TvAY4OhbYr1qccpe3ZqZYT9btNWpkCUgx+7jdGbjaCu3OLGHOl84AlBbfuuM0g vn8bK2wxU+seJnyvWuUmce8g0W9hMCpYsJ9qP4WRyLs9jNYP8CNvX+t46woJwI9xMT 3xz2SJQ9jkWxvjTVSa72l6q8YG2rhrMhsooyXQzbJxKhDq0H/DMG6gR18rspJJE1zt xKhdzy6iBwoX6O1GPVFkgcKVJYywbyHCZDsm7cl/3bn2BJv2xvtDMWUGmP5pbY975R PDqNjlh7bMCbgrH/m+TQp+uUX9lJALhG7G/tHiJFBo9x5Qewfa5T35dmXJhnyZbx0J kyGgUXxcUAyoA== Date: Tue, 15 Jun 2021 11:36:45 +0530 From: Vinod Koul To: Robin Gong Cc: mark.rutland@arm.com, broonie@kernel.org, robh+dt@kernel.org, catalin.marinas@arm.com, will.deacon@arm.com, shawnguo@kernel.org, festevam@gmail.com, s.hauer@pengutronix.de, martin.fuzzey@flowbird.group, u.kleine-koenig@pengutronix.de, dan.j.williams@intel.com, matthias.schiffer@ew.tq-group.com, frieder.schrempf@kontron.de, m.felsch@pengutronix.de, xiaoning.wang@nxp.com, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@pengutronix.de, dmaengine@vger.kernel.org, linux-imx@nxp.com Subject: Re: [PATCH v14 12/12] dmaengine: imx-sdma: add terminated list for freed descriptor in worker Message-ID: References: <1617809456-17693-1-git-send-email-yibin.gong@nxp.com> <1617809456-17693-13-git-send-email-yibin.gong@nxp.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1617809456-17693-13-git-send-email-yibin.gong@nxp.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210615_070655_079553_CF6DC571 X-CRM114-Status: UNSURE ( 6.68 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 07-04-21, 23:30, Robin Gong wrote: > Add terminated list for keeping descriptor so that it could be freed in > worker without any potential involving next descriptor raised up before > this descriptor freed, because vchan_get_all_descriptors get all > descriptors including the last terminated descriptor and the next > descriptor, hence, the next descriptor maybe freed unexpectly when it's > done in worker without this patch. > https://www.spinics.net/lists/dmaengine/msg23367.html Acked-By: Vinod Koul -- ~Vinod _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel