From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F19C9C53210 for ; Wed, 4 Jan 2023 22:07:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=SDOtgNFWFCmdE/xfCrCF1EZXAkZYEwD8oLyPTh3LqiM=; b=v5Z3qKs2r5Hco4 z+A6H1J4ur1cCTLHMZJyDKNkquCchV8fG/Ngha/jQrC5qjPUzoJNWtbiJSS93ARzEnSQtI18eNHqX fuGc4UOlln0H+5oLjzmTLmrNJg18h0a4fldv720ioVUWu6zKvRLuE67I/VJ0IfW1ddJ887smLFJ6K vAtkX+84WPPmV5zMWj13inuQHMOy5b1HGH6EVyEAazWzroCfghKa/evqDky67JpoKH9EfaeGdL9m5 5nibGO1V0iJDQDGiA8mB6tcM370x+EzUmYkv65Nr+7RbgPjw8OOytyL2SQe+uurtnpocPLazIVtER 9SxzWXnIMZRMcdGGbDyA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pDBuI-00CLor-HN; Wed, 04 Jan 2023 22:06:46 +0000 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pDBuF-00CLji-8Q for linux-arm-kernel@lists.infradead.org; Wed, 04 Jan 2023 22:06:44 +0000 Received: by mail-ej1-x62d.google.com with SMTP id kw15so85847654ejc.10 for ; Wed, 04 Jan 2023 14:06:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BHNB4xUxc83E7S0i8SezgHCvjQP7q2U3o8WSif5WD7Q=; b=MfQGj99SlUr1fOLRLRVILmz4F6okd8DXBufbVYhWmMNUyXZGvvIb4j1ugYSTxxCHJE DI1qPtmY+k9HTBSLVnNUEduzc0cC2DYr/PjEcEbxMaCyhHpcHkZOD9wWIRKLn6H+AEHA rL8W4BxLBtu5Ky2McPF6Ih2tWFK1LIkpLNlHuUNiuEGhPYUGlXF7D/qw+qKYoCYBMeHv uOE47EVbdCGvsHYVQ5AMsuAB7X84ub1yyFi8SAi14Fi4RQUDtIe3+B/JLO2XzYGCjKWo IV19+kK46W29k+g7AlabmKUfu4ePT+KSYU36oXfklmSB3qYtrvn+zh90KjO0LvDNPUCZ Yw+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BHNB4xUxc83E7S0i8SezgHCvjQP7q2U3o8WSif5WD7Q=; b=024nrlc+qhFvE4O+egzVpLihElxYvUrEkk8tGeALP7vaZ5AmWcMnbobUC3yp0u7y8Z 4MgMYZu8/X8H3JKiTi1TD9LoaR4U0xxbi3KcPcEzpJ6XQGCPk22vlAozZ7+TE0bNxDnC pP70sEPT115XO86sJArpZ2YCsTj8i464Yha3o/20Iij8eAMCJGZYSB7Ye0uWGCiJod+2 zquKdWnHhB9OSyN6JPplD6Ucu2Cpb3N85cu5FepwKBnLt4LAVQXKcKrIXXoQfNmFzwhM gDtwAgCOtNlA0KubtIA9QHCRwHlZQj0oD9tLwLXeA29DtKtvniO0WJSMlBUvq83T81Vh p1Cw== X-Gm-Message-State: AFqh2koosu9SF9/nIr2iWHsZ26fsF9KZD3l8yZNCHiJjCxiOvo/+qnDL e2a9y7lf1IdKY1GnjhGed5k= X-Google-Smtp-Source: AMrXdXtfxwTmyABikpZ/U2qwnWLwnM/iIR2n2N7XSsqhvHK/LVPaI/WQnVEHgFS1Gmdc3b2A3eVV3Q== X-Received: by 2002:a17:906:b752:b0:7c0:b292:e56b with SMTP id fx18-20020a170906b75200b007c0b292e56bmr46452874ejb.68.1672870001298; Wed, 04 Jan 2023 14:06:41 -0800 (PST) Received: from jernej-laptop.localnet (82-149-19-102.dynamic.telemach.net. [82.149.19.102]) by smtp.gmail.com with ESMTPSA id a15-20020a170906368f00b007a9c3831409sm15713919ejc.137.2023.01.04.14.06.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Jan 2023 14:06:40 -0800 (PST) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Joerg Roedel , Will Deacon , Robin Murphy , Chen-Yu Tsai , Krzysztof Kozlowski , Rob Herring , Samuel Holland Cc: iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Maxime Ripard , Samuel Holland Subject: Re: [PATCH v2 3/6] iommu/sun50i: Keep the bypass register up to date Date: Wed, 04 Jan 2023 23:06:39 +0100 Message-ID: <3394428.QJadu78ljV@jernej-laptop> In-Reply-To: <20230103010903.11181-4-samuel@sholland.org> References: <20230103010903.11181-1-samuel@sholland.org> <20230103010903.11181-4-samuel@sholland.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230104_140643_329445_51178683 X-CRM114-Status: GOOD ( 11.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Dne torek, 03. januar 2023 ob 02:09:00 CET je Samuel Holland napisal(a): > Currently, the IOMMU driver leaves the bypass register at its default > value. The H6 variant of the hardware disables bypass by default. So > once the first device is attached to the IOMMU, translation is enabled > for all masters, even those not attached to an IOMMU group/domain. > > On the other hand, the D1 hardware variant enables bypass by default, so > keeping the default value prevents the IOMMU from functioning entirely. > > Fixes: 4100b8c229b3 ("iommu: Add Allwinner H6 IOMMU driver") > Signed-off-by: Samuel Holland Reviewed-by: Jernej Skrabec Best regards, Jernej _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel