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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80E1CC53210 for ; Wed, 4 Jan 2023 22:06:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231244AbjADWGp (ORCPT ); Wed, 4 Jan 2023 17:06:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231463AbjADWGp (ORCPT ); Wed, 4 Jan 2023 17:06:45 -0500 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCE9111805; Wed, 4 Jan 2023 14:06:42 -0800 (PST) Received: by mail-ej1-x630.google.com with SMTP id ud5so86070681ejc.4; 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=kQsC6Ez5P2Yojk48GcjjApvPxxd8g4jtnjd75Zb/nebmAM/riXXA6qeYjR6tJPEzXF OjWuPjFPTnv5DxvXEKWMeUzpu2yGcTt3jCt0vih7i08MczkYXJGis+L3SwX8xK9coHeg jxURkkEXQi+ifuC0lyqy/YIS/ACqrErquyHJccGDa9nGvjr4nLu52ZkIwtlxt1uQwtDZ 5qisKjN1hyu845AYZ7ilQv4Nt4GXSuDTm5ssoAcLD37atdnAV5cSNfySEo7dx3J9dWN6 QNdRNhU0hmtz1NwrTgvQie1vzbj0MkFTmTU5zOGmlTpOjLgMB3XUCDrUNmwnGZZw8VGQ XjXA== X-Gm-Message-State: AFqh2kpc20gsyUTiZrTd5Tu7qgQeGKMyj8YRMMHXyuSTxRKeiwnspi5J NlbqQT8gWCj0wgAWdQjzTaE= 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 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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