From patchwork Tue Jul 26 20:07:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 593706 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 963F5C00140 for ; Tue, 26 Jul 2022 20:07:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232529AbiGZUHn (ORCPT ); Tue, 26 Jul 2022 16:07:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231648AbiGZUHn (ORCPT ); Tue, 26 Jul 2022 16:07:43 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3203232470 for ; Tue, 26 Jul 2022 13:07:42 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id mf4so28125609ejc.3 for ; Tue, 26 Jul 2022 13:07:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=cl21jvm8/i18W+G2Dp96sq2YT7qNueybJU+4cdncXPw=; b=U13mmqGzcmzWb0EKUrA4kB7s7tMzu6q+l4RblJKQ00zPQ4+7m3FwXyVCE87ry6V1kZ sKORedh3MR+G+I1H9tP6E1N3O/zdxTv9nlsw1+icTnVo3sqzJQE5fZkatjiL7z7s/Enu 4qKcAW0kCJmyl/EzsrTTTKeRrA5/ol04PhdMrRVzXyJ3a3hGL4HjdTyQqibP6x7u25en U3ncncw/T9cB6a41bBVzvYy3ZlJAFzYPtlCe3U9JoIzuk6VrrPyq3SktT1U8gfCOFhY7 bWzrISlmDVhU1ejCZkQF9TQeletEngxIXgbinFJ9VNRM2nGdlOzpk0U8obPc6axsTuiK vbng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=cl21jvm8/i18W+G2Dp96sq2YT7qNueybJU+4cdncXPw=; b=grvy79eiRCOq0M09XjEzGBM5tAYwMzlWWnGcQ6BNbvk6OrRbRBBLUqBqgt0rFS+qAt d75UqDCd304iF277CZ4g3XA0Yii5Ecr0hMAO/H4XIfCbEdbf60ES40nzL0ASp/KlEAMI 01rArqey7wHUr5nt9jWzU8zxfKUyou/7nh3rO+suf66AAGmRSn048LmCwiBjSoFDAup8 z42AX+/2wvPbGSgu5zGhac5yuAi+x1qSJypw96bpxi6liMYu10NcmTRhVqkJrUOBn7Zz 5WxnC0A0+bYRRF7NGCy+HXwNmrx3e+Ujtzy/w8hB2BoQcemwgAFNwkEZVAGblNQmTmcJ Db5Q== X-Gm-Message-State: AJIora+1G2cai1nswFNUe3JdueUkLoKiCNbPCRflRiK4wShvFN5s2h2d QKNwe5jS6KGQEajTTObgQaAFGw== X-Google-Smtp-Source: AGRyM1t5Wt6O9sdWkph8CILpfneT+aE9nPQuJidjIxem+m7LXnzboEHCUJeiqep+kJlkPyV5eK5lXg== X-Received: by 2002:a17:907:6087:b0:72f:36ff:7fa2 with SMTP id ht7-20020a170907608700b0072f36ff7fa2mr15123309ejc.162.1658866060598; Tue, 26 Jul 2022 13:07:40 -0700 (PDT) Received: from localhost ([31.134.121.151]) by smtp.gmail.com with ESMTPSA id kz20-20020a17090777d400b00722e203633esm6829623ejc.122.2022.07.26.13.07.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jul 2022 13:07:40 -0700 (PDT) From: Sam Protsenko To: Marek Szyprowski , Krzysztof Kozlowski Cc: Joerg Roedel , Will Deacon , Robin Murphy , Janghyuck Kim , Cho KyongHo , Daniel Mentz , David Virag , Sumit Semwal , iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] iommu/exynos: Add fault handling on SysMMU v7 Date: Tue, 26 Jul 2022 23:07:37 +0300 Message-Id: <20220726200739.30017-1-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Exynos IOMMU driver implements fault handling for SysMMU v1..v5. But the abstraction currently used is not suited for SysMMU v7, as it has quite different fault related register set. This patch series reworks the mentioned fault handling abstraction and adds fault handling support for SysMMU v7. Sam Protsenko (2): iommu/exynos: Abstract getting the fault info iommu/exynos: Implement fault handling on SysMMU v7 drivers/iommu/exynos-iommu.c | 208 ++++++++++++++++++++++++----------- 1 file changed, 143 insertions(+), 65 deletions(-)