Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2532790rdh; Sun, 26 Nov 2023 09:32:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IExPTrTD4BgsrwgWOZmzQKzKQlD6sOUcqKkPG5K+q2GI8M2KaO0O8ECKhF+7EFRbWlRAAxE X-Received: by 2002:a17:902:e9d5:b0:1cc:4a70:1373 with SMTP id 21-20020a170902e9d500b001cc4a701373mr8356766plk.58.1701019927748; Sun, 26 Nov 2023 09:32:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701019927; cv=none; d=google.com; s=arc-20160816; b=O6u7vAwchRARnoLT5zVY+wHygHP5gOagK/wmn/ZTiSmAR+Rq1DtOXFDcnNueKIUarl 3d66c4KwVwUPFLqgCmZlp0Akal0muXEQNxpbehMyVb2xkz01EOFheXU20lMtfvIVGMxS TthmzV6i7nWZsKCh3dDRNNokJUAhPAEwDbkANt4BUO56JJKDNH0Vrwrow0CONA0HLMqV rman0S0oDkGNVM+Bf6X9cq/pKGjpZ5f9iwz66Ya3z2jcxqUcoHttuEzZDcqnbvJk8jwN 57NosbjdrcmDHjpWKgjOz16Nxx+cNM0c4Mn/U3lIY3p/uNSR3XMgeQ645btJY6uJNQnm 5OZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=qOf5rFkVB9ZrADq3GYMfs8+JbkHeeQyVitB7WftJ0fQ=; fh=7FJLPR1bYzg0zqoujnKaLdcqpSdYG7GxeKtx6TEG9WQ=; b=MEn6BGd8hv7u3iLaPCLSMVZa477BQM4wfqmtFtQk00mQ+UxZxU0oHapVNnvSvMerhc utUpLXC8FZ0iLjmWGf/o+ACmJYGT3IGl8m4woKECLYMibqDAKksTdd04YOk2wY9ACfUX JJ1c9W3U/jCxNUdv4o/SagLlkibHU/mCqDbdwlTVKbiLX+4C3CsE8Z74G/i2uLMseLrv eloBOa5quDfFFu5ofO0ReuN08YIJIMfSXAsTFFrjmf+efbKXnmhctndlvWFjf3S5I3Ep BkJhdWXdrQ2wnz8B7vF6DHjtp0qf4NLDcEjRre/28otwaZAp5TNKlXGoJ+2pGJU3H3ZG 8OCg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id g4-20020a170902934400b001cc2853bfe6si7714622plp.192.2023.11.26.09.32.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 09:32:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 96E2D8073299; Sun, 26 Nov 2023 09:32:05 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230383AbjKZRbv convert rfc822-to-8bit (ORCPT + 99 others); Sun, 26 Nov 2023 12:31:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbjKZRbt (ORCPT ); Sun, 26 Nov 2023 12:31:49 -0500 Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDA88CB for ; Sun, 26 Nov 2023 09:31:55 -0800 (PST) Received: by mail-lj1-f181.google.com with SMTP id 38308e7fff4ca-2c501bd6ff1so45588391fa.3 for ; Sun, 26 Nov 2023 09:31:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701019913; x=1701624713; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VmBLcu5qy11F4jhHivQd10kXFKmqA7ke47zHNPeSxzo=; b=IvSggtJYzVbrEjqAXRiaFN1d0pU6JQRMz7b2jzcYB/By5/4+7Zv+HGTu5KvzKGajGg IsA94TYcSfw0nIlSeS/evmrjmIVc7D0+AA8ekQO7FlJJPbtfnCxywv/w3Hio/f9m164A Fp2zHFaIyAKR6RLhjH++X+zsF4LhmNqpMkwiPSFWFWtcldrVYzsuK8Ypjs4neQMpsL4N 4NVyAImbvTaTtYoyLLRbXtAC1iJE5VO7jpPbJEqJg1wljQ4WHTbabgJvJb0SYPHzAkLX PkKiAjeV0chw/8a6HkDwPDP+/QvEsmMKMFwvjxS//JGGPzabK7it1pLfr1vyP2PWtavc vngA== X-Gm-Message-State: AOJu0Yyqb0bOm9StF+2GqevOVY3BEgJAIyshHFjvZHmHgAMaOBibYdoV 2PPR4Sv/XoGlYsWt/1BiycIodzg6CSsF721i X-Received: by 2002:a19:ca0f:0:b0:50b:ad16:38f9 with SMTP id a15-20020a19ca0f000000b0050bad1638f9mr1509187lfg.68.1701019913299; Sun, 26 Nov 2023 09:31:53 -0800 (PST) Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com. [209.85.208.52]) by smtp.gmail.com with ESMTPSA id u9-20020a170906c40900b009dd98089a48sm4726926ejz.43.2023.11.26.09.31.52 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 26 Nov 2023 09:31:52 -0800 (PST) Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-54af4f2838dso2915478a12.2 for ; Sun, 26 Nov 2023 09:31:52 -0800 (PST) X-Received: by 2002:a05:6402:31e5:b0:54a:f8e9:a9a8 with SMTP id dy5-20020a05640231e500b0054af8e9a9a8mr6153886edb.20.1701019912624; Sun, 26 Nov 2023 09:31:52 -0800 (PST) MIME-Version: 1.0 References: <20231126162009.17934-1-sven@svenpeter.dev> In-Reply-To: <20231126162009.17934-1-sven@svenpeter.dev> From: Neal Gompa Date: Sun, 26 Nov 2023 12:31:15 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] iommu: dart: Use readl instead of readl_relaxed for consistency To: Sven Peter Cc: Hector Martin , Joerg Roedel , Will Deacon , Robin Murphy , Alyssa Rosenzweig , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-0.8 required=5.0 tests=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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Sun, 26 Nov 2023 09:32:05 -0800 (PST) On Sun, Nov 26, 2023 at 11:20 AM 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 > > Reviewed-by: Neal Gompa -- 真実はいつも一つ!/ Always, there's only one truth!