Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp2583745pxu; Sat, 10 Oct 2020 00:05:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkvBIT2IuLiTvUFQ0KdxA+p/kn5blpCq2ie6GsDDxmZT6i8gzdTcT5Bw7Pkw5+YcrYC2mk X-Received: by 2002:aa7:d719:: with SMTP id t25mr3181330edq.11.1602313534602; Sat, 10 Oct 2020 00:05:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602313534; cv=none; d=google.com; s=arc-20160816; b=nkAZsf9EU6OkifJl0KfHNcRHYGzDUJjH18jRzqwWqnZvABxEGHFDqNMwD2T7Vrh6YE Hyx4jRmzikh/HzfAiEszqaqL3qjVI4+J+Isrxjnh8KYuLlifahPt2x2HqoNx1NvdyUWX lKJN12wUuDJrVrpWebRM3u0Ilwy9Rj3nVYNh4xXV02CN0rVOeW34l2lkysXZX2LpMgfF ZeFd0FnYQFVpuO390DVOR9Csz0eUk1vRAutzfe8zqNHYI+LTUj92ADhPrTrTUvD6U+xp zZQ7i3FeL27Aub0CyMnIlzeLsRzrCr6Zqu3mlMnAd6aTfBNXTV/pziTHi4LCwBNUlGne zBLQ== 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=F5/qH043zEuGeatUEpHVuXqbPsOkFkmiSQ+O0T+kgNI=; b=T5GD04DqKocBC3g969/EcMGloKQWsrSa5y+gKBU6CitEB1Lublcx96OKzoInCdp7UP UzPel0m85Mi1ZJLeUnZiqy0+o+TcfVlJXc0w4xtAVNQwcgiDASD+BMX5eCD4pMkScvHS iCjGJ8u4xZVnuLb/nTX9l9q31M36lW6zm/svV7XPDlYlzHTHm+0upkd5WtkJiZvujba+ s6lHu+SiR7SB5dFlwp+ge26i8lKOs6/kEO2h4eq89YbjxN8CYtHnKDQ4jFv2koNQG1Fe 3z+Hy27Dh+ADLndWjzMHe5hnM6KGpsFZDI78IyT2SJlE/CtiLt39STfWa81NRpQQ0uWz 6Mxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="OY0/mr8F"; 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 n12si7809792edt.67.2020.10.10.00.05.10; Sat, 10 Oct 2020 00:05:34 -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="OY0/mr8F"; 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 S1729422AbgJJBHw (ORCPT + 99 others); Fri, 9 Oct 2020 21:07:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729121AbgJJAjy (ORCPT ); Fri, 9 Oct 2020 20:39:54 -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 AEDCDC0613D7 for ; Fri, 9 Oct 2020 17:39:54 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id 144so8255820pfb.4 for ; Fri, 09 Oct 2020 17:39:54 -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=F5/qH043zEuGeatUEpHVuXqbPsOkFkmiSQ+O0T+kgNI=; b=OY0/mr8FkN7fSU5zYf/x9oHuQmQYqIF3NZteXcH28gcYzCSf5+MT4y49z8aUjOjqBv lha3BSSjRHKCiX9eo/5oSgg3mzkB27HCrpXBOvuU8f2fnOZ/YBvY6fZmuOjh//FvW6kL O7ol4CBYBbsd7yhoCo0gpIi6aDg3ajTAUIbi4= 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=F5/qH043zEuGeatUEpHVuXqbPsOkFkmiSQ+O0T+kgNI=; b=ot5soRVSBjDb2oOVO05UHIjT7KM8UXKEzQtH4B752QeOn5RNaGea/RAocnuFmeDYdx /AhMB1PrUr9FZVNIjqSt1UzXhs5wzpJlqtRFZF4qOKeteRuWekSnrGBdhU3ohovRYhyv ai4J1G4Qd8aoENqUmcxCFX+oHGJ2g712Sm3l523XigaVl9ReslwKyRtkS1tDbuskRAut 9yDhFD8ivVk++Zfj5b6ELg0wLXwooA2RLJ4KbnA9abw3K6HhmXYWgD4a78AzivOp37X0 uQgnLZY7n1CCuR4RUP9Oa54sh/s7m4ZfmPMgUylyeUd+i2wfFaYjZ5eRMAZRO8ioS2nM 6Wmw== X-Gm-Message-State: AOAM533cisqWeLS6J/OeT0ZxFehv9lOZOLJ5sIN4ERkFibIy2uSgEUwB LTgIo9dRbRRHMGl+tBg3hriXnw== X-Received: by 2002:aa7:9009:0:b029:154:f822:27c9 with SMTP id m9-20020aa790090000b0290154f82227c9mr14645151pfo.48.1602290394214; Fri, 09 Oct 2020 17:39:54 -0700 (PDT) Received: from chromium.org ([2620:15c:202:201:3e52:82ff:fe6c:83ab]) by smtp.gmail.com with ESMTPSA id m4sm11572541pgv.87.2020.10.09.17.39.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Oct 2020 17:39:53 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20201008155154.2.I7b22281453b8a18ab16ef2bfd4c641fb1cc6a92c@changeid> References: <20201008225235.2035820-1-dianders@chromium.org> <20201008155154.2.I7b22281453b8a18ab16ef2bfd4c641fb1cc6a92c@changeid> Subject: Re: [PATCH 2/3] Revert "i2c: i2c-qcom-geni: Fix DMA transfer race" From: Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, linux-i2c@vger.kernel.org, Douglas Anderson , Andy Gross , Mukesh Savaliya , linux-kernel@vger.kernel.org To: Akash Asthana , Bjorn Andersson , Douglas Anderson , Wolfram Sang Date: Fri, 09 Oct 2020 17:39:52 -0700 Message-ID: <160229039221.310579.11648298092136196056@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Douglas Anderson (2020-10-08 15:52:34) > This reverts commit 02b9aec59243c6240fc42884acc958602146ddf6. >=20 > As talked about in the patch ("soc: qcom: geni: More properly switch > to DMA mode"), swapping the order of geni_se_setup_m_cmd() and > geni_se_xx_dma_prep() can sometimes cause corrupted transfers. Thus > we traded one problem for another. Now that we've debugged the > problem further and fixed the geni helper functions to more disable > FIFO interrupts when we move to DMA mode we can revert it and end up > with (hopefully) zero problems! >=20 > To be explicit, the patch ("soc: qcom: geni: More properly switch > to DMA mode") is a prerequisite for this one. >=20 > Fixes: 02b9aec59243 ("i2c: i2c-qcom-geni: Fix DMA transfer race") > Signed-off-by: Douglas Anderson > --- Reviewed-by: Stephen Boyd