Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2516665rdh; Sun, 26 Nov 2023 09:02:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IEcFap+JzzXGfqBO0XZivRmJpIloUWWKrQW5zaI6k+OAnNff9Yl/oxvRmkb4BtUGfBk6tcg X-Received: by 2002:a05:6a20:6a0e:b0:18b:8158:b115 with SMTP id p14-20020a056a206a0e00b0018b8158b115mr10092473pzk.56.1701018134227; Sun, 26 Nov 2023 09:02:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701018134; cv=none; d=google.com; s=arc-20160816; b=OyZRXDSs/4v+9XCswl5dp7U4p0dYOYz2Ex0Ci4FmpOoiRTLZoQ+NqolTw81Y9iRySj 65WZnXGCD2+Ua4HlLKUs8m3L4a2lD9zds0EMIKt/SXZtkNd2Swi9a5gB5JXRZb5C2R36 zC/GsHNY24yBUA4vv2SZ0GvN6bbuHc4Oihh4TefZUUyB4bY4DKJmJ7+sV/4imjhrFs1B UPSUq8u26s25FGAn9SPitpujH2j4NxGcjN9BXEzeRKEIKxTKnnBkRG+BJvsjIu9g95xX Wh2PB1sjLjV8bEM2QHNK0los1aU3+UQ5+RghiwBdYaISMVi1SdW3hOoRXmiLB3a1G8Q8 G2Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=ZAmJjrTeu7RdpM+b+JpbyW5DOb3ge7UnfELqR9X21vo=; fh=QSR6+4yDDCgAj65XsXY79XzYqqFUDDgSReBkmZphIXo=; b=FuXwT7qcZ9C2AIk8YGbdFbkjAAiWfc3REXiywGyfySsUABNpgz8IrDsYxWb01IRErU RWUl9Zk/DnnRB2F8iQhGBFzv6j58/QrJty2khdVwq7plG1Y9dFNLa4SYyXndhA6fSDb2 MmVdds/Lejtw1Wojb3TPn3w4BCJJIEj678EUaevw/d527PqFpLtZ67DKuZUnoTJ7OTws b0OWqPwvIQ59bJyh2XsgXOh4MaOhr0FmtkFiDs6l/o+awcZqA4It/NWexUnZDvonIv8q a52cWlo55iEZajh+IG80Wz36DfA0jIhehfWn1URasVcy1d0nqczweWu+pVCy6WIGtE87 pMjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rosenzweig.io header.s=key1 header.b=wtKzHquY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=rosenzweig.io Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id u12-20020a056a00158c00b0068fcf194dacsi8220219pfk.92.2023.11.26.09.01.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 09:02:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@rosenzweig.io header.s=key1 header.b=wtKzHquY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=rosenzweig.io Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id E85E680A9ABF; Sun, 26 Nov 2023 09:01:50 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229562AbjKZRA1 (ORCPT + 99 others); Sun, 26 Nov 2023 12:00:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjKZRA0 (ORCPT ); Sun, 26 Nov 2023 12:00:26 -0500 X-Greylist: delayed 366 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 26 Nov 2023 09:00:31 PST Received: from out-172.mta1.migadu.com (out-172.mta1.migadu.com [IPv6:2001:41d0:203:375::ac]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA85CFC for ; Sun, 26 Nov 2023 09:00:31 -0800 (PST) Date: Sun, 26 Nov 2023 12:54:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rosenzweig.io; s=key1; t=1701017661; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ZAmJjrTeu7RdpM+b+JpbyW5DOb3ge7UnfELqR9X21vo=; b=wtKzHquY9kuLOewD37q4BwVrha6NkJj6WgOHRMW2fatDWrh95MB18j0uarel5fLWSUlwzm qMFnbyvDB/aofTADTJ/nlhFvUuQllx8s/wZampc23S0zO6pAPeakTYc2B72HvYNGO0ViZj ZmTQ56CtscqX2ywNCKwpNtBVW1BgBeWIle2yzRtaYZKzXdq24efeXVX9GmJhOG2xoixOzh DimbDLLlpYvGnSBjMNL0rSQqoGv07vao0UMgEopo43J6LvDeCyvYPBrp7gTcbarL4bdbDN TgHm6XFBme6tpkYZ9h6dMbGtwAGPEDCLLWRg4CxtmbklMpqA5AXPGobkAlsKRw== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Alyssa Rosenzweig To: Sven Peter Cc: Hector Martin , Joerg Roedel , Will Deacon , Robin Murphy , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] iommu: dart: Use readl instead of readl_relaxed for consistency Message-ID: References: <20231126162009.17934-1-sven@svenpeter.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231126162009.17934-1-sven@svenpeter.dev> X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Sun, 26 Nov 2023 09:01:51 -0800 (PST) r-b On Sun, Nov 26, 2023 at 05:20:09PM +0100, Sven Peter wrote: > While the readl_relaxed in apple_dart_suspend is correct the rest of the > driver uses the non-relaxed variants everywhere and the single > readl_relaxed is inconsistent and possibly confusing. > > Signed-off-by: Sven Peter > --- > drivers/iommu/apple-dart.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/iommu/apple-dart.c b/drivers/iommu/apple-dart.c > index 59cf256bf40f..c7f047ce0a7a 100644 > --- a/drivers/iommu/apple-dart.c > +++ b/drivers/iommu/apple-dart.c > @@ -1272,7 +1272,7 @@ static __maybe_unused int apple_dart_suspend(struct device *dev) > unsigned int sid, idx; > > for (sid = 0; sid < dart->num_streams; sid++) { > - dart->save_tcr[sid] = readl_relaxed(dart->regs + DART_TCR(dart, sid)); > + dart->save_tcr[sid] = readl(dart->regs + DART_TCR(dart, sid)); > for (idx = 0; idx < dart->hw->ttbr_count; idx++) > dart->save_ttbr[sid][idx] = > readl(dart->regs + DART_TTBR(dart, sid, idx)); > -- > 2.34.1 >