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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 1C29EC433F5 for ; Sat, 19 Feb 2022 00:35:27 +0000 (UTC) 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:MIME-Version:Message-ID:Date:References :In-Reply-To:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=N4U6OtM6ujnKLiHaBHofgJH8bOugBdPBVePorXa8QuU=; b=AYgwqoy/b/+Zl4 u57aFmJ1wTHy3pKhFk49WRbc297CuXxgxNAUuIz4xHGYDg9kj99aPleG9C9nF7Iyc5+j8fX6+Vmqg CAmN3ogcD7xiX2k2UrRuz+93i7TZC3RlSzubWQYdp5Am/h4TRy1BPow47XXLOQKLVo1+XtcVbsK0R DMjxhXXVaBMLvWbYOk+/MWKBGhouvjSLwQXHC8aQG4g0N1JrHaWN73muU6BKrqEkUE90zggDHRecm MmkmHuqx0ipCoqDvCH991bntFGcAmQyZJ8gwpdIAp9ftS5sor5Z7PRGjvgsC+6j3vqfgHGKIQ+qnP 3WbKf5tdC16Z9RugZSQw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nLDhZ-00FyzP-Ps; Sat, 19 Feb 2022 00:34:17 +0000 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nLDhW-00FyyL-JO for linux-arm-kernel@lists.infradead.org; Sat, 19 Feb 2022 00:34:15 +0000 Received: by mail-pl1-x62e.google.com with SMTP id x4so8397214plb.4 for ; Fri, 18 Feb 2022 16:34:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=N2mb/fnXiK+55Vayu1WQaDGcQm6fHIlg0WJV5p4N/HY=; b=vhpvpYAs72r/uoSL/BUaAusH6XKA4rAULu6qjHWYo27jOy1C6kM9j5tc1Az/Esg0n+ FIOoL1tgzkQ9bIQz2F3q90+Bps0EPIorHHEdHbZIVqHLPyPSB73rdhlXru65MTfByH59 Newd+wujsKTxWviQyz6zZe1F9pjl4rRdCaGC92BJL9pgI6PbUqQjZx/sgR1F83Px1HYs UUdtOicItV1IdSw8I9tgzri27OuyH8j/3J+hd8TKLNaRGWCfo+74ClOd90Qrmng3KlOd b2PRktm+Sm6qOC1/T9BNb9qvzmS8jeA4BSScIvYwNokGxI37wp3LhcFPjWjivHq3pn4V Sudw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=N2mb/fnXiK+55Vayu1WQaDGcQm6fHIlg0WJV5p4N/HY=; b=xgjfkOSuPLoWphsiKE/Wbxkd+AW/JhIk2U8qq1BFBTCNohFySESgT/VR9B1iS027X0 IVz7huR/2M6OWGpwQLl2cpEzmo2d+Umi/Z5RPhHaRUvyb38Qhpu1xtyvJC0GxxzD1zNy IzGGzZjcJheDFD1dN3TOrhyH4tnkYhfZWgmJHKEzeVzQU4Z1aNKpLadI/Iz/x34Z1S5o wFnEaY0vf0QH6A5Os9NYaUFmGeUSzeKCZTkQ0vu4xzg8TRVbOYI0AhmP0VeCgDZjazun t+7B5nYt7WWjwQV0UPSMSBmvVome8HWt4FY5m2jEVytc3RDNEDdci6cnY9R/+yXhXQ1+ ykdQ== X-Gm-Message-State: AOAM5315dIg3oz2sly4DmxdRtyVR2C7usl1cBixdI4ja96hgATTUNUAv 2EOj9mOdd3iB9Uz51FMkerZupg3fXkFV0Q== X-Google-Smtp-Source: ABdhPJwVYQwlCngXM8fnMUumYkNGCOKPefj15RGXF11ZsFIDjKByrvfXXFy68PJeKQKdfkbdD+ttrA== X-Received: by 2002:a17:902:d683:b0:14c:c0a9:34f3 with SMTP id v3-20020a170902d68300b0014cc0a934f3mr9482203ply.109.1645230853581; Fri, 18 Feb 2022 16:34:13 -0800 (PST) Received: from localhost (c-71-197-186-152.hsd1.wa.comcast.net. [71.197.186.152]) by smtp.gmail.com with ESMTPSA id h16sm4149298pfh.40.2022.02.18.16.34.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Feb 2022 16:34:13 -0800 (PST) From: Kevin Hilman To: Rong Chen , Ulf Hansson , Neil Armstrong , Jerome Brunet , Martin Blumenstingl , 1131046452@qq.com, linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Cc: 45581586@qq.com, Rong Chen Subject: Re: [PATCH v2] mmc: meson: Fix usage of meson_mmc_post_req() In-Reply-To: <20220216124239.4007667-1-rong.chen@amlogic.com> References: <20220216124239.4007667-1-rong.chen@amlogic.com> Date: Fri, 18 Feb 2022 16:34:12 -0800 Message-ID: <7hiltbitiz.fsf@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220218_163414_659275_6BF4CF33 X-CRM114-Status: UNSURE ( 6.72 ) 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 Rong Chen writes: > Currently meson_mmc_post_req() is called in meson_mmc_request() right > after meson_mmc_start_cmd(). This could lead to DMA unmapping before the request > is actually finished. > > To fix, don't call meson_mmc_post_req() until meson_mmc_request_done(). > > Signed-off-by: Rong Chen Reviewed-by: Kevin Hilman _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel