Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2810025rdh; Sun, 26 Nov 2023 21:59:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IHC9N8atS46r/NaZlpbg445z3Bek/n9NImH2amerG7UDSZemeNk8Q9/d+7Na87OwmfnJHfe X-Received: by 2002:a05:6830:b8e:b0:6d8:1239:3cb8 with SMTP id a14-20020a0568300b8e00b006d812393cb8mr6580724otv.30.1701064766123; Sun, 26 Nov 2023 21:59:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701064766; cv=none; d=google.com; s=arc-20160816; b=OPcPhvKQaVpIVw/0CCyLLjjpztUdR+F1clHTEhbKfv7T3rrE2tEfujMolaIiI85ccY 7QFScqD3moeaWmXjaDY/XvocHK7ZouwJcoRQUyb6qkDpE7REVH+4ZPUOE6ii5kHxm/34 xwbRyq/midakbWre9TiqldDP38BMNIIazwexJorV+vFXr8QpiiYPT3LD26EokOfpMXGO h1P7tsuuNiCkZjtrRaBu88PH6L4xsUTv0qePwMfUadjH7utYTA5jG4sBxfiBBrcAWEqk 6uiF1dcxtJSgiMuIK9omcfcyP5Rwdt89H/csaatGfDNgke5lN+1cNuCXNW5t3+bzU18A a0GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=S/T9BVFRiaOna2vchI7UY/pk8hMvyFESn3eF3blH6bk=; fh=8aB3OL90Gf4oFfCLUYWdmXnKlT8muL/ZtgEEGeDEeDQ=; b=HcdUN+aXNLS3SrobNEQl8UcVcBQ/dot+vC/H/DqBKMN2JdEIRda4i5FboUG+NK3ZVD GyXJc9oDk7dXJISHcK/oWOLS4vQhYsk4LUwzA2rybM+ovRTnKB/CbAog9gzOfsnTr724 vXJMntVLerz4h8OvklDBnZqJB1RpATXWpyX8ph1aQwfIdw1CzXNMFzLaVVSnKcKIGon7 cF4taM4L7gK9TIH1pSV/2cZwaZg0Ra1wnzK8b/YNKOB+UHRAxyzhTsQttjyW/OUTxGTa idaxohKMKhMvbe4qiWCgwA7WgQInl5uq5XL1O3veWWPP/wlZYOfD6WGcTwDmMyjcZ+rx UUIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marcan.st header.s=default header.b=cmEfvlc8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=marcan.st Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id 16-20020a631050000000b005bd043751ccsi9109077pgq.748.2023.11.26.21.59.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 21:59:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@marcan.st header.s=default header.b=cmEfvlc8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=marcan.st Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 9F8118087F35; Sun, 26 Nov 2023 21:59:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229554AbjK0F7E (ORCPT + 99 others); Mon, 27 Nov 2023 00:59:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjK0F7D (ORCPT ); Mon, 27 Nov 2023 00:59:03 -0500 Received: from mail.marcansoft.com (marcansoft.com [212.63.210.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1ED9F136 for ; Sun, 26 Nov 2023 21:59:08 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: marcan@marcan.st) by mail.marcansoft.com (Postfix) with ESMTPSA id ADADA42499; Mon, 27 Nov 2023 05:59:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=marcan.st; s=default; t=1701064745; bh=QB9rqf5vjtZTxj6YrVQMoEPk5hNZoTD60Drtq1SmnS0=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=cmEfvlc8StbrONgt6ZkpgMd8fHTKxdbaux+xpi5Q2UuFi8l1eO9m8MbS4dYRYBPp2 YlIbzLqrM2ZBNvqM4WbPx9vuaMlrJjUY6huSfIjUcCa8yIFbBOMw4oTdgkRb80NbUd De/+I7hx8twtw4klptYNOUX57Qfyi8VM4D4blIJutdk1GHTnMsWQsUcThWdTvo3Mon PUjYlcZJhZSzv4HO/3neOHEfD1yZndALyjTrPiMMgStsq5mbMEdcS45/1t2AGicxlq aTQKq46eWu3bDX9FXFniFT7g7zGFHUp7glIgjmKMeeVN8ZwceveLqgHxNlALupPtOF yCL1r1zzsqZ3Q== Message-ID: <94634407-9bbd-4f2d-9d0f-4f02cdfadfa5@marcan.st> Date: Mon, 27 Nov 2023 14:59:00 +0900 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] iommu: dart: Use readl instead of readl_relaxed for consistency Content-Language: en-US To: Sven Peter , Joerg Roedel , Will Deacon , Robin Murphy Cc: Alyssa Rosenzweig , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org References: <20231126162009.17934-1-sven@svenpeter.dev> From: Hector Martin In-Reply-To: <20231126162009.17934-1-sven@svenpeter.dev> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 groat.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 (groat.vger.email [0.0.0.0]); Sun, 26 Nov 2023 21:59:23 -0800 (PST) On 2023/11/27 1:20, 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)); Acked-by: Hector Martin - Hector