From patchwork Tue Mar 19 12:14:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 781081 Delivered-To: patch@linaro.org Received: by 2002:a5d:46c1:0:b0:33e:7753:30bd with SMTP id g1csp1892575wrs; Tue, 19 Mar 2024 05:15:40 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUfVIq0lFiLa5oc8p4KzGexIR0LXEvcIPSqxlw9t71PNIN2ACeganpRs9uMo5FIVXPVc/zhdeoHuTKjTLYKzPft X-Google-Smtp-Source: AGHT+IGw1ZCoXd1OyQOrxwQV2yZlEZGDSaHeV64rcLHDJ6aZLODbbfs2V7dE4sI7nxNXBz9ra4vh X-Received: by 2002:a05:600c:3ca8:b0:414:273:67d4 with SMTP id bg40-20020a05600c3ca800b00414027367d4mr8607831wmb.30.1710850540477; Tue, 19 Mar 2024 05:15:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1710850540; cv=none; d=google.com; s=arc-20160816; b=JiqqGjMJD83a9zbLfksu4taf4QEvYeeqYiXUJLTvIW5Jxp4zqsExrvxF/w/gYrlIHj lzH9PEoXEpDqHdzQcxwE+fjfz4iKmjtq7FIqOOnScKHiDt2qP/PFwEYFHj6bFGqkRmzf 9FaoI7ViIoNq4vwY4sUJ3dDss+NqhyrbkhyCmLt1qvsw1GVjBwP09wSxOtobACjZ8up4 hFz3pC58xBH2nY8yoGRdbXrJgccz9w+Wj700z3/DodIqY43YBRnjav6WR48IfOLRFmZo Jz/sUHOYsy+1DdAXajatdyEAW/5Ziz9YhC3N6rsgmGd+qDx/eisbcm/ln2f7VLKazDOf C/lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=PaOzLG56DkFB6GBvEZTyeRoaiYCJeFBFuCa0mEQreF4=; fh=UJLfQHigVNNxRTyupVH3iuVYJLWMjRXGBkTXuIfaL+0=; b=aXVVmschbjVz5w7smySfce/CBtWQP9Z2oSqAdH7qOzl88/07gkyv8nPfK8RRFhMduW 6nBnFhCtKhMgRrVO9eD+yWYH6/ZdP/MVqIjEU7ZF1U23RBIeJKdpx5y01VknK7cNFYaU jk+qyEdr5PqnEvXOF6wwkenPAvrHOcDlrbdJ4v1EqymXLXPM5YtWsPnMGc8nHt4fMR5J r7sSMl63vM8xHXF8Orggmj4GOTjcBVwbOmhvLQQrWRrZ/LnGCpECHStDe8VUk4CGySJ2 RO3Jw+JWSU3ycjKUBqo++BVeSduJqANCzq2Chj86f5H4Y1UYnWV1gPDDXQ+2X9VZg4rU 0yXA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F9JFV7Au; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id k6-20020a7bc406000000b00412eda81f7esi7842669wmi.180.2024.03.19.05.15.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 05:15:40 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F9JFV7Au; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1A70F87F30; Tue, 19 Mar 2024 13:14:53 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="F9JFV7Au"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1FF1788024; Tue, 19 Mar 2024 13:14:51 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8013F87F88 for ; Tue, 19 Mar 2024 13:14:46 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=caleb.connolly@linaro.org Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-414617882b3so8556915e9.3 for ; Tue, 19 Mar 2024 05:14:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710850486; x=1711455286; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=PaOzLG56DkFB6GBvEZTyeRoaiYCJeFBFuCa0mEQreF4=; b=F9JFV7AuVk6xC2b5zSCNApa9jaXgizBgx/jtaGhBZyFxhnZZiE2bd5QRxmWVSJsMWx hplsUzXuEuTLnAOhxFkoffybKD6ceda8ZTBWgS6IWuaL7p2BI0WKxltPhsZtupEzF3vt JJB84Z9UrAOGA7UchHEW7LNpW6ZRIH9wkYUxEo6AwDHt6eN2Dc7V5qbbaDs9IcXIKVnH ESLqlTL989JZqUlWDM3C8eJUuHIfDuioBFRGbEd9g/PkEUWksp5V/n763AdYcL8bGET3 Ez4H4x6vZOJPcDpaU9nGPe0TRBPpk29Da4mpZpZBojEJYg0+P6LX5WvE6/PTQXLcMfSi opwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710850486; x=1711455286; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PaOzLG56DkFB6GBvEZTyeRoaiYCJeFBFuCa0mEQreF4=; b=X1B1dQQZnspbzPD91CBmTzxQ+QreO98tjHnnA9podvKTm9rtglBT9v6nvtYOx+4x1l 3zEQe2ikc2ruV4y9WUoJLsdeuSTpFLZvN7jTPtwNYnVfNW3JlSe4jzNzBUaphOe7VChw eLM/kpLNclteNWAm5/4BcfNHKMLyJxEUjVf8q54pXIz/fl/qSeN63eV3wuQbUl+zs+/R sW4aKqLZlORw5FJRJx0UQdXG6ehA/yvrt88+MQCE9fUf2QxXp9gbQ7wZWG5eyOUAWJkE UayN2YFz4u3eWmOfEIXhkjaUPgV0TcAww5C8ZX7p7k5VqiDjHavU35lLYosZ338yLG2e k6CA== X-Gm-Message-State: AOJu0Yw+/uDqBCIAuA3qo+CvU6o7kgNVkwrw4hDaJL46XtY7DFAbKPRN NkXg4ML4Hj6uF/sUsv/6UW5sIAn6m3l4OHkqszpiepU3mG4UhPNHPFLiocGNlWk= X-Received: by 2002:adf:ee4f:0:b0:341:84ec:fff8 with SMTP id w15-20020adfee4f000000b0034184ecfff8mr1636656wro.20.1710850486046; Tue, 19 Mar 2024 05:14:46 -0700 (PDT) Received: from lion.localdomain (host-92-17-96-232.as13285.net. [92.17.96.232]) by smtp.gmail.com with ESMTPSA id u8-20020a5d4688000000b0033e3c4e600asm12345792wrq.7.2024.03.19.05.14.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 05:14:45 -0700 (PDT) From: Caleb Connolly Date: Tue, 19 Mar 2024 12:14:28 +0000 Subject: [PATCH v3 5/5] iommu: qcom-smmu: fix debugging MIME-Version: 1.0 Message-Id: <20240319-b4-qcom-usb-v3-5-09ba1f86d259@linaro.org> References: <20240319-b4-qcom-usb-v3-0-09ba1f86d259@linaro.org> In-Reply-To: <20240319-b4-qcom-usb-v3-0-09ba1f86d259@linaro.org> To: Marek Vasut , Tom Rini , Lukasz Majewski , Mattijs Korpershoek , Caleb Connolly , Neil Armstrong , Sumit Garg Cc: u-boot@lists.denx.de X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=859; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=JSWCwSd/ls5fMK87FWiDEcIio+ZebyBVKrf19XCSuLQ=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhtSfjesdOa63y1j1N3Knbp6s+VFKaKt5pxSj3Nqgm7JGJ yTyHvh1lLIwCHIwyIopsoifWGbZtPayvcb2BRdg5rAygQxh4OIUgIlc+8Pwz8r7knlCbOtFEwbp Pyv4xHP2egtqXgx8phdne9Dh9+vGJkaGBr/HjK57d5yZI7XtpdT2L2fZM14YO/zYde/3btXQv6H qNQA= X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean The priv struct was wrong in dump_boot_mappings(). Causing errors when compiling with -DDEBUG. Fix this. Reviewed-by: Mattijs Korpershoek Reviewed-by: Neil Armstrong Signed-off-by: Caleb Connolly --- drivers/iommu/qcom-hyp-smmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/qcom-hyp-smmu.c b/drivers/iommu/qcom-hyp-smmu.c index 8e5cdb581550..f2b39de56f4a 100644 --- a/drivers/iommu/qcom-hyp-smmu.c +++ b/drivers/iommu/qcom-hyp-smmu.c @@ -318,9 +318,9 @@ static int qcom_smmu_connect(struct udevice *dev) return 0; } #ifdef DEBUG -static inline void dump_boot_mappings(struct arm_smmu_priv *priv) +static inline void dump_boot_mappings(struct qcom_smmu_priv *priv) { u32 val; int i;