Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp937088ybh; Wed, 22 Jul 2020 17:51:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5mNPOm9aAl7qfJ2tKXfgdxte7wXDoL5EUzBYMtiO6qpoC1VdAbv4zAlfBg+GUyzEIMOgA X-Received: by 2002:a05:6402:363:: with SMTP id s3mr1874263edw.238.1595465473696; Wed, 22 Jul 2020 17:51:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595465473; cv=none; d=google.com; s=arc-20160816; b=YYYJbRe9/dxbp2J2VU/KL9zimiFPSYks/IZZWfKaasuhkRbIxuxTjSvyE7A8mBXNs7 5J5Ou5ZUdgUy16YfkET3ms8HwETUvFO3SjgShR6tvbJfDOfspPfu6STlHl7SI89cJ0gD hISF0mvOliT3ykEytTpoeEJe7XT5BLwUlWSwoBW3H9jtspo0ERTZ0dlALFEaZd+q3DS9 nU0WEdtNzD8tYFisUeDj5vnaSLYhWSJuLE6+fXNy+SpI9gjJZQn5wIeHy8niQmXb/X6C CvVr6hery/5xQqvsWdpH+Z1ZjTHnxmuHjDqScHk7uEEuH6yMSAWPxpLnp+4NGL72EeoQ dzAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:date:to:cc:from :subject:references:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=79nT7TCbavlKTvAjlFmsWU03rk/qHwKF6zh8YUZSTdQ=; b=DZC0uZrg+jGJUBbmjuYyvCSt6K+f2K03qENIbZOVtyRXrJvwAIJEauNLXF3b+lbYNh go6HGDgy/3Z0+CNkBgd7eqQIBWEDUGeolNwh6sTcG79LLBARcsyxzB6EcIiExCAFB+zh oQUfbVwjAu7l8SDjLbcVSk+JJcEg+uY4IUiO9oDGzBUJHiND53+m62YPJRZwElCz+rSh 8UUCp3Rk2vvuYTXiZZVr9Gf4r5iDSoXz31AX44R8kR0A7nWgylfnJ+PCTP4g40ZhnaMN PuP3g/VaeNNguEc+v8GmqLQgzLesOFnI7JKJ+gaHZ4xwkVmygCKG8JsZeOa6D6ZxJy3s /0KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=YGcbcvjo; 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 dx22si987754ejb.18.2020.07.22.17.50.51; Wed, 22 Jul 2020 17:51:13 -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=YGcbcvjo; 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 S1729401AbgGWAu1 (ORCPT + 99 others); Wed, 22 Jul 2020 20:50:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728607AbgGWAu0 (ORCPT ); Wed, 22 Jul 2020 20:50:26 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F514C0619DC for ; Wed, 22 Jul 2020 17:50:26 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id s189so2177623pgc.13 for ; Wed, 22 Jul 2020 17:50:26 -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=79nT7TCbavlKTvAjlFmsWU03rk/qHwKF6zh8YUZSTdQ=; b=YGcbcvjoJjGEJsEwK341b8LPPW7cY21tCnUUKGLZdYMzOpv1ClesbiLphb7xZEIZS6 vw5zovR/9Q/GbHbAg8bdOPaF+YsjC4p4UCxlugGH/DR6WIBtE9r5Ek9ZuqnL5pMkhuyC OGvlX+dW1ci8SrYuWRKyzsfVBEwt7BMr/51Ds= 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=79nT7TCbavlKTvAjlFmsWU03rk/qHwKF6zh8YUZSTdQ=; b=Onrpua8rCzy67y0GtZqpQLWV23bmqMBl3vwEEnZWyc/Vqmt19unWTU6azeVrydUp1z Lc9/5zWm6qoFvR29FEFw48KMGO/HqVkSBKDmgw32b1CMYH/UhhWKLsolDpuwyg/gUHRm dXxkAgBFxun7aAa+BgGYCk4wAVne5H6yds1ed9tURle8KfP3hr2OCAck7lgiyjcMA90Q 231w3tjXssfnnxtzfJcD/ke3KgLyX80L8afLluV4gmxVZ1aMjgw1jVY+2dAKPqTC6anV D1QoDJla6cc0hxpd9JBXO+3YVTg4dkgYBApriXcaBPfmLLmzivKeKvggR5mMd2LKjGg4 7wAA== X-Gm-Message-State: AOAM532MgUxxM5yUSvcoyNhL0ZBtbua6UAYxqoU6pdu7wNj4LGiP1oej eu261rURPw46Tp/a8f4vxT1ewQ== X-Received: by 2002:a65:448c:: with SMTP id l12mr2045251pgq.234.1595465426001; Wed, 22 Jul 2020 17:50:26 -0700 (PDT) Received: from chromium.org ([2620:15c:202:1:3e52:82ff:fe6c:83ab]) by smtp.gmail.com with ESMTPSA id m9sm815681pjs.18.2020.07.22.17.50.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jul 2020 17:50:25 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20200722150113.1.Ia50ab5cb8a6d3a73d302e6bdc25542d48ffd27f4@changeid> References: <20200722150113.1.Ia50ab5cb8a6d3a73d302e6bdc25542d48ffd27f4@changeid> Subject: Re: [PATCH] soc: qcom-geni-se: Don't use relaxed writes when writing commands From: Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, Rajendra Nayak , Akash Asthana , Sai Prakash Ranjan , Wolfram Sang , msavaliy@codeaurora.org, Douglas Anderson , Greg Kroah-Hartman , Matthias Kaehlcke , linux-kernel@vger.kernel.org To: Andy Gross , Bjorn Andersson , Douglas Anderson Date: Wed, 22 Jul 2020 17:50:24 -0700 Message-ID: <159546542444.3847286.3076597427214316886@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Douglas Anderson (2020-07-22 15:01:20) > Writing the command is the final step in kicking off a transfer. > Let's use writel() to ensure that any other memory accesses are done > before the command kicks off. It's expected that this is mostly > relevant if we're in DMA mode but since it doesn't appear to regress > performance in a measurable way [1] even in PIO mode and it's easier > to reason about then let's just always use it. >=20 > NOTE: this patch came about due to code inspection. No actual > problems were observed that this patch fixes. >=20 > [1] Tested by timing "flashrom -p ec" on a Chromebook which stresses > GENI SPI a lot. >=20 > Suggested-by: Stephen Boyd > Signed-off-by: Douglas Anderson > --- Reviewed-by: Stephen Boyd