Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp586008imk; Sun, 3 Jul 2022 04:10:26 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sEVcbt9+gg7s9FWyy1kKvzGxCcWuk539UIGFE4dSQyH+j0xaLne9BbAh5CULvgRSdRfZvG X-Received: by 2002:a17:90b:1b42:b0:1ec:c483:3eb7 with SMTP id nv2-20020a17090b1b4200b001ecc4833eb7mr30990553pjb.52.1656846626453; Sun, 03 Jul 2022 04:10:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656846626; cv=none; d=google.com; s=arc-20160816; b=VW2VlUTrf7jsUFStuqEw4bi7f76sGq3DR7QMX5VIqPwmphlOJjCn3b0oOHCT7hB/o8 YzSK7+zJcOm6Omr6/BKn+yKFB+djx2Hkubm+l9xB50cKX8luvsit0CZ0Bs0UzKCfbaqQ FtlRagwcxvjGJjA/oD67bBqOUK8DXxaHl4vxjDtH0nU654myEnhytsQCgonRQWhVYgWq KiKFijyAxdKzAqr9jiK3p3uxGq9oC3ON2Iwm9h1TiUgRgG4K6l1jPj6qvkYv90OAt0AH 8nJ3B5wq5aEnwU5KBqLn7x4puhZs3TAy68NmjJzLgQmYhN3fvFtXtg3Co2tRvosaH2nn m/BA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=xtZe00jcrHCWayegr58xFfUp2h3js8Bof36AjGw58FU=; b=mOQscfVqAdKDpU7KjQWJucZnL2sdAkS0SU7YkF8ce8fCYDfXJNizGoks3hE8phXWG+ +R+xFgEpEDPcId1XiPZaFZJrGkBk6ShtN1qwoQ21iyK2FeP02cGF007ickJAEVa/bjn6 K3DlbTgr2jonHSxUKVDUf0nBlOfHAy0bdd4e/WftGBFmZTVXkydYJBhFR/MtVBvZn/Nc CKN8aTm9LJ1MsrWxIUPz9FbEO0aVSXSyoSA1f9KbB9hpMn7plrKXuUymtIY5L5h5yoYs 9FiTgaUYev1nCNXyd31F5flPZVZKKkXIT+XbRib915xaayghw1KnlRi0xC99vNAf/5UQ pRFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=LHTZ6sd9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id om18-20020a17090b3a9200b001ed5a12517bsi11384808pjb.169.2022.07.03.04.10.14; Sun, 03 Jul 2022 04:10:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=LHTZ6sd9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232297AbiGCKrm (ORCPT + 99 others); Sun, 3 Jul 2022 06:47:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232373AbiGCKrb (ORCPT ); Sun, 3 Jul 2022 06:47:31 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBA986431; Sun, 3 Jul 2022 03:47:22 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id z41so8265369ede.1; Sun, 03 Jul 2022 03:47:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :content-transfer-encoding:user-agent:mime-version; bh=xtZe00jcrHCWayegr58xFfUp2h3js8Bof36AjGw58FU=; b=LHTZ6sd9Ylw0mhtbQPt/yWf3J9vu7LgLvrQ2hPvUPpfNDO/Mv4xdqmhAlOM4oVSz9+ yP+pH7VDq5J0bfVfFX/4ofM9et9VoauQO6/67ZpO5wlZ7/nxqo8QY/sZW9qbGIMFESzJ y2GhjpLU1+yjhJ3o7oruqb/tO9oUHnpq3BD1WJwxTuMrbGBwkysz2KQxInZkjmd2+HKo 9hnAbYIlJrkOlO7IkbhGKjceeqBoVi9MdS994NI3MopaLTCo2YpYK4VAArGhkCsc/AN0 scmcnr6I9vskBSXS5H3VqnLI42uKWD0fhbgUMkZD+dkgc7swGyy/1Rn/cwisYL3CB/z3 es1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:content-transfer-encoding:user-agent:mime-version; bh=xtZe00jcrHCWayegr58xFfUp2h3js8Bof36AjGw58FU=; b=uhnbO9nDdzmNSYNLVjvQZZnuj4lUUgGNwBnMG0yWpiia69iBsr3Sl9RYWh4S0L07g7 kHSDuCEHQcMapo026/pSsB3JaqAAhnmK/OhE4ZbzieSiRJGBjfZ36oaQhLfXNSvz7EpG 0+BK4nI2o32g2zYHOZc2ZakMfQNZBqvzYjWI8wq1rC9FiS1GttOnRkObVa2LxQEfc/7H uo44e0LUOMsZnIp0xtHcET4X2XrYWCQ9trmRD6RFn7gcEx8xw+vTP1fZa44GkLwpoPNP N5xebckXdwu1JHgwbDJNwG/ADHg28x2aGA7qwgfTtxm5wr1B31q2NCxJya4wgRV++3zc 9XKA== X-Gm-Message-State: AJIora+xFTipZ1fIVoKI5sW4CPJyhXq0jaifjL7t5YvXcVcprnQy9Sjx Tf4w8p2nfSrgiwPPU5PUGuTkruDeAtQpOA== X-Received: by 2002:a05:6402:1e88:b0:435:bf05:f0f with SMTP id f8-20020a0564021e8800b00435bf050f0fmr31256381edf.2.1656845241327; Sun, 03 Jul 2022 03:47:21 -0700 (PDT) Received: from ?IPv6:2a02:ab88:368f:2080:5d6e:322:57b6:5f03? ([2a02:ab88:368f:2080:5d6e:322:57b6:5f03]) by smtp.gmail.com with ESMTPSA id kw24-20020a170907771800b0072a3216c23asm5791972ejc.154.2022.07.03.03.47.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Jul 2022 03:47:20 -0700 (PDT) Message-ID: <67943ec4dcfe85d6d616a5507437d99f6c5638a2.camel@gmail.com> Subject: Re: [PATCH 0/4] iommu/exynos: Add basic support for SysMMU v7 From: David Virag To: Sam Protsenko , Marek Szyprowski Cc: Krzysztof Kozlowski , Joerg Roedel , Will Deacon , Robin Murphy , Janghyuck Kim , Cho KyongHo , Daniel Mentz , Sumit Semwal , iommu@lists.linux-foundation.org, iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Date: Sun, 03 Jul 2022 14:47:20 +0200 In-Reply-To: References: <20220702213724.3949-1-semen.protsenko@linaro.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.2 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2022-07-03 at 00:48 +0300, Sam Protsenko wrote: [...] > Hi Marek, >=20 > As I understand, you have some board with SysMMU v7, which is not VM > capable (judging from the patches you shared earlier). Could you > please somehow verify if this series works fine for you? For example, > this testing driver [1] can be helpful. >=20 > Thanks! >=20 > [1] > https://github.com/joe-skb7/linux/commit/bbadd46fa525fe1fef2ccbdfff81f7d2= 9caf0506 Hi Sam, Not Marek here, but I wanted to try this on my jackpotlte (Exynos 7885). The driver reports it's DPU sysmmu as version 7.2, and manually reading the capabilities registers it looks like it has the 2nd capability register but not the VM capability. After applying your patches, adding your test driver (with SYSMMU_BASE corrected to 7885 value), and adding the sysmmu to dt, I tried to cat the test file that it creates in debugfs and I got an SError kernel panic. I tried tracing where the SError happens and it looks like it's this line: /* Preload for emulation */ iowrite32(rw | vpn, obj->reg_base + MMU_EMU_PRELOAD); Trying to read the EMU registers using devmem results in a "Bus error". Could these emulation registers be missing from my SysMMU? Do you have any info on what version should have it? Or maybe some capability bit? I'll try testing it with DECON/DPP later and see if it works that way. Best regards, David