Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3009461pxu; Sat, 10 Oct 2020 15:56:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1vigVds6awzdpBmKIcCN9HHselnn0UGUBJ5Ycw454iU07LKlgcSRmUgaZMDLC2usC5tph X-Received: by 2002:a17:906:1a04:: with SMTP id i4mr22186827ejf.24.1602370604313; Sat, 10 Oct 2020 15:56:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602370604; cv=none; d=google.com; s=arc-20160816; b=lksTs7M9XimivH7H5Dv12Qbw6klXqB1rX0UBwK6OMfrBSJoXZRnOl6YIk0Afsc/Mhg tcAPjH/wTzncl4w9qdWV3gDdiHt103PGvPYLC6Cw4MGmPpCwQ8vwVerFm+ID707qtOWU N7C1XCJBVEtCNjaiBhC+W6kGeaa2mIYFkdXwQzgXk8NTWeon31e/5cHRQE1azU7ZwezY YLFVRxdF4yiCga5StGMZcZud4Lw24kLY9m9C/glb81iuf4hlpX3qjniTKVA8yP0e0K7l o05kd4aM68Cwtxm5i+TZvGUULIb7g/V0mj+U+uZjtvLT7lGacZcOhLm8sUK7LAlkijwa XO/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=931+7FHZXAAV0rm1idrhZ1WwOql8Y19KgPOMFI4H7xQ=; b=gfLqKMrZxrLpvSq5O0XePfgt3G0d9bxyZOjBpInZCWPHf9A5MfgjCZbiq5bjc4V72Z jTYOz31/38bqXOh23zo1m6AYmdkgfvZCGWWkKxsH6CJ02tD9YAZQRk2tpnaPfKjHeNRh DvEgYrsopQwzMFBIP90kA28Qxin3sFRePdy9ovcsd0XPgnxKCM/9rlLUJWyvbW4MJahB KgrPI/p+1sbOqTBz7WOJMkkYuQWiHdAs0D9ATRAFxgvDtrul1vJ6/WSj8TJM1FGhnM2o 9618OwWIK5LSKH04LviLnM7iz1+oMUr2n88SOv37iUT12OmOaAbhxTzXHNRPB/mAcuzy 1dsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=EMKUv+0Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p17si9343954edx.292.2020.10.10.15.56.21; Sat, 10 Oct 2020 15:56:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=EMKUv+0Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729150AbgJJAlO (ORCPT + 99 others); Fri, 9 Oct 2020 20:41:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728956AbgJJA0l (ORCPT ); Fri, 9 Oct 2020 20:26:41 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58913C0613D5 for ; Fri, 9 Oct 2020 17:26:41 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id b26so8245036pff.3 for ; Fri, 09 Oct 2020 17:26:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:content-transfer-encoding:in-reply-to:references :subject:from:cc:to:date:message-id:user-agent; bh=931+7FHZXAAV0rm1idrhZ1WwOql8Y19KgPOMFI4H7xQ=; b=EMKUv+0Yt3Tdmuj9FPYqLLkhAnTXo8ttooKPYhl5WbecohuCJPwMsZ9bHTvp0gPCTz QnVDkw6cef84BxPu/4TZW2RN9hfCYB3fViNggPvllqAcfI3se+HZBmA53wow3R7sTJ+V jHKxfWJiQizpDyF4tHwNhrHI6HfiIIn91SBg4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding :in-reply-to:references:subject:from:cc:to:date:message-id :user-agent; bh=931+7FHZXAAV0rm1idrhZ1WwOql8Y19KgPOMFI4H7xQ=; b=E8gRuW6F5RYBJuhVBEjqpelUOwIoxreiGle0S5B14jh7h49YTe5WLUoU7cNKb7PST4 EGFddI2jkHBBUhOYHhuxT338L9m2N9muka7avSj6Zo18z8hQrmOaEGwb6McoqP0HmYOg HSZ0fR/WreN6U7AR7X9vwBodKsqSkYjbnWhZQ4auXhG36T70V/KHWLv5KVF93EX2ozeX Wkyb9DIQjpvA/HlE9vb8TMoVj0psiXRgK6K2psGtKYNbPJDXFRVX1K92ABAALcfH/e6w MG13/MXLDD58vlr7kt/uDGumriSd5QVLAsY3szvhB0m3NywQzcS/7LT0VQANyfrl2BXt z9AA== X-Gm-Message-State: AOAM530Z1vDr0WcBlHNLbJhgXYme1XXLG1qixc14s1HHUPTxdvp71e87 p8LRUcnqu2l07HRRYVEDVT4ehQ== X-Received: by 2002:a62:bd05:0:b029:142:2501:3a02 with SMTP id a5-20020a62bd050000b029014225013a02mr13726318pff.81.1602289600806; Fri, 09 Oct 2020 17:26:40 -0700 (PDT) Received: from chromium.org ([2620:15c:202:201:3e52:82ff:fe6c:83ab]) by smtp.gmail.com with ESMTPSA id 8sm4556029pge.7.2020.10.09.17.26.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Oct 2020 17:26:39 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20201008225235.2035820-1-dianders@chromium.org> References: <20201008225235.2035820-1-dianders@chromium.org> Subject: Re: [PATCH 0/3] i2c: i2c-qcom-geni: More properly fix the DMA race From: Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, linux-i2c@vger.kernel.org, Douglas Anderson , Andy Gross , Girish Mahadevan , Karthikeyan Ramasubramanian , Mukesh Kumar Savaliya , linux-kernel@vger.kernel.org, Roja Rani Yarubandi To: Akash Asthana , Bjorn Andersson , Douglas Anderson , Wolfram Sang Date: Fri, 09 Oct 2020 17:26:37 -0700 Message-ID: <160228959768.310579.3696247619283748151@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +Roja Quoting Douglas Anderson (2020-10-08 15:52:32) > Previously I landed commit 02b9aec59243 ("i2c: i2c-qcom-geni: Fix DMA > transfer race") to fix a race we were seeing. While that most > definitely fixed the race we were seeing, it looks like it causes > problems in the TX path, which we didn't stress test until we started > trying to update firmware on devices. >=20 > Let's revert that patch and try another way: fix the original problem > by disabling the interrupts that aren't relevant to DMA transfers. > Now we can stress both TX and RX cases and see no problems. I also > can't find any place to put an msleep() that causes problems anymore. >=20 > Since this problem only affects i2c, I'm hoping for an Ack from Bjorn > and then all these patches can go through the i2c tree. However, if > maintainers want to work a different way out to land that's OK too. >=20 > NOTE: the 3rd patch in the series could certianly be squashed with > patch #1 or I could re-order / rejigger. To me it seemed like a good > idea to first fix the probelm (and make the two functions as much of > an inverse as possible) and later try to clean things up. Yell if you > want something different. >=20 >=20 > Douglas Anderson (3): > soc: qcom: geni: More properly switch to DMA mode > Revert "i2c: i2c-qcom-geni: Fix DMA transfer race" > soc: qcom: geni: Optimize select fifo/dma mode >=20 > drivers/i2c/busses/i2c-qcom-geni.c | 6 ++-- > drivers/soc/qcom/qcom-geni-se.c | 47 ++++++++++++++++++++---------- > 2 files changed, 34 insertions(+), 19 deletions(-) >=20 > --=20 > 2.28.0.1011.ga647a8990f-goog >