From patchwork Mon Jul 1 16:20:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Clark X-Patchwork-Id: 13718366 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 03714C3065B for ; Mon, 1 Jul 2024 16:21:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=q1jhsbzsQSOicdV37XZ9var/nTBpCYxPxtGqd7ndFu8=; b=R7O97yQTgFv7E0WWtnQvIybnJw uLhRFI1o74nUzqX/QJIT6kSWfy7A3XxsHC5bwff70INyw3mfbBf6XC4vWjHTRt/i4YVvYQpv5kLNs Q5gOkPuePxDtPidRMA80W5ppO4NAIo13a0PyyG92FFMN9eIOdKXEO++nOMKyqafvdh662t8ng/Muf WOXXAA1mzLvKFPw54Df8FgQT5hx6xI6IBaIR98aay8dJEjISszrsLzfCw3ssKIhmf+vins/421zDI zGKXcVNovMrBhbec7h1gFN0/KGhIOOwrxs2eGI4g3Vw+fKUPgcAJex/W3/yGXsO6B/XM81oXJkkRh 5dmGW0CA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOJlr-000000045TG-402Y; Mon, 01 Jul 2024 16:20:51 +0000 Received: from mail-oo1-xc2d.google.com ([2607:f8b0:4864:20::c2d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOJlh-000000045OL-06AM for linux-arm-kernel@lists.infradead.org; Mon, 01 Jul 2024 16:20:42 +0000 Received: by mail-oo1-xc2d.google.com with SMTP id 006d021491bc7-5b9794dad09so1470873eaf.3 for ; Mon, 01 Jul 2024 09:20:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719850839; x=1720455639; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=q1jhsbzsQSOicdV37XZ9var/nTBpCYxPxtGqd7ndFu8=; b=LG9n6v/bk6I0G2ZyYXxNex/HiYJBpaWOMuMCoX8Ln+Ly4Y8GYD4D8vtk6DikqBv4cP d7QKzS8T02c5gCBqBAEBQ1mTQ8przqgyXxNCFxl5v+dcydk+8euLVNGgNaaikpN9ACqr aEs8WPnuXA69TW1eOooPrZKupqUcht3dtxO6AFUjudhIKRHgiT+oqQr7LVemEls9MLUK NuUaPk8jXxPoZef/gb1HsZWq7xApVk69vmGSg4VUI2nE5N0/viBRBL7IedxMadnGPkSt DEF9TMItG6QXv0gIqLHoJnMtsByMna2CNMUePlAKgJNB2Bc+F/7/uNMnFWyS/HOLOt9+ yYqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719850839; x=1720455639; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=q1jhsbzsQSOicdV37XZ9var/nTBpCYxPxtGqd7ndFu8=; b=D3mD0mjMq/3VfEoyAe2yWuFJltzEDP05OOBbo/Wkic3KT9IZ+na/7qmD6DeCvwL1Bu QSMhMUktL941DTnCCnenjjb4aaIdvHHBeDbgnOuQ66jIlDjgoq/VAHZ/tIyRLtq1RepI 12JXtgo4JvlHA4Z/J8AvIhWcHz8Gu1QRwrWfj9f6N8r5qFFXfIUzv7psMKlQ57vm6llO A1J08VBgmBaUMvG6V4TzanY78KmW659lINbMLe0j2nbBnJhV/8yyh0nVyS1tqabIewOO 8zNh6jFACevfiSlQ940oEMdI4JdgXCjivahW8KtDlCfSFSP3jjq59pXsy0t4V2MNBY1H 1dqA== X-Forwarded-Encrypted: i=1; AJvYcCXBjc0vJLpv8RMDv7+54zPL/HTwBcbi+26f2vSsL67Aytoxt364z4HhF5P9ka1GNbyyEfu0zGMM6F1mOcc7fsfAzj9zqq64xSmXFjX604TZJa4CZps= X-Gm-Message-State: AOJu0YxKpKpYinLtuQNsAFc8qYHSF0KMzJEdjhc+HQznmafu5L8YUBvm dpo9WowOAPjzdluktu6M1q99N3q4k0hgPGAcn2JdS+ODeutL9+0N X-Google-Smtp-Source: AGHT+IE7cvLNIICXLZ+ApTE7+JEq/r4+y8wOtGf3rrz7GsGFtHfKDk9f6EPS0mmgXO+f7YcF9Yy4cw== X-Received: by 2002:a05:6358:6f93:b0:1a6:72f2:4d03 with SMTP id e5c5f4694b2df-1a6acd61133mr706254455d.9.1719850839491; Mon, 01 Jul 2024 09:20:39 -0700 (PDT) Received: from localhost ([2a00:79e1:2e00:1301:e1c5:6354:b45d:8ffc]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-72c6a8dbb2fsm4452022a12.31.2024.07.01.09.20.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jul 2024 09:20:38 -0700 (PDT) From: Rob Clark To: iommu@lists.linux.dev Cc: linux-arm-msm@vger.kernel.org, Stephen Boyd , Robin Murphy , Pranjal Shrivastava , Rob Clark , Dmitry Baryshkov , Georgi Djakov , Jason Gunthorpe , Jerry Snitselaar , Joerg Roedel , Krishna Reddy , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org (moderated list:ARM SMMU DRIVERS), linux-kernel@vger.kernel.org (open list), linux-pm@vger.kernel.org (open list:POWER MANAGEMENT CORE), linux-tegra@vger.kernel.org (open list:TEGRA IOMMU DRIVERS), "Rafael J. Wysocki" , Rob Herring , Will Deacon Subject: [PATCH v3 0/3] iommu/arm-smmu: Prettyify context fault messages Date: Mon, 1 Jul 2024 09:20:09 -0700 Message-ID: <20240701162025.375134-1-robdclark@gmail.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240701_092041_086650_0D10A8F9 X-CRM114-Status: UNSURE ( 8.59 ) X-CRM114-Notice: Please train this message. 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Rob Clark v3: Split out the reg bitfield renaming, rework print_context_fault_info() helper Rob Clark (3): iommu/arm-smmu: Add CB prefix to register bitfields iommu/arm-smmu-qcom-debug: Do not print for handled faults iommu/arm-smmu: Pretty-print context fault related regs drivers/iommu/arm/arm-smmu/arm-smmu-nvidia.c | 2 +- .../iommu/arm/arm-smmu/arm-smmu-qcom-debug.c | 66 ++++++----------- drivers/iommu/arm/arm-smmu/arm-smmu.c | 74 ++++++++++++++----- drivers/iommu/arm/arm-smmu/arm-smmu.h | 71 +++++++++++------- drivers/iommu/arm/arm-smmu/qcom_iommu.c | 4 +- 5 files changed, 127 insertions(+), 90 deletions(-) Reviewed-by: Pranjal Shrivastava