From patchwork Thu Aug 29 12:32:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Pisati X-Patchwork-Id: 1155235 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46K2791ST9z9sNm; Thu, 29 Aug 2019 22:32:20 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1i3Jb6-0008CG-SO; Thu, 29 Aug 2019 12:32:16 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.86_2) (envelope-from ) id 1i3Jb5-0008Bs-73 for kernel-team@lists.ubuntu.com; Thu, 29 Aug 2019 12:32:15 +0000 Received: from 1.general.ppisati.uk.vpn ([10.172.193.134] helo=canonical.com) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1i3Jb4-0001gt-RV for kernel-team@lists.ubuntu.com; Thu, 29 Aug 2019 12:32:14 +0000 From: Paolo Pisati To: kernel-team@lists.ubuntu.com Subject: [PATCH 0/2] [B/snapdragon] [SRU] Dragonboard hangs after SMMU init Date: Thu, 29 Aug 2019 14:32:12 +0200 Message-Id: <20190829123214.15565-1-paolo.pisati@canonical.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1841893 Impact: Ubuntu-snapdragon-4.15.0-1061.68 hangs during boot: ... [ 1.856849] arm-smmu da0000.arm,smmu: probing hardware configuration... [ 1.859296] arm-smmu da0000.arm,smmu: SMMUv2 with: [ 1.865845] arm-smmu da0000.arm,smmu: stage 1 translation [ 1.870658] arm-smmu da0000.arm,smmu: address translation ops [ 1.876121] arm-smmu da0000.arm,smmu: non-coherent table walk [ 1.881936] arm-smmu da0000.arm,smmu: (IDR0.CTTW overridden by FW configuration) [ 1.887760] arm-smmu da0000.arm,smmu: stream matching with 4 register groups [ 1.895337] arm-smmu da0000.arm,smmu: 2 context banks (0 stage-2 only) [ 1.902455] arm-smmu da0000.arm,smmu: Supported page sizes: 0x63315000 [ 1.908852] arm-smmu da0000.arm,smmu: Stage-1: 32-bit VA -> 36-bit IPA [hangs here] Fix: During the Ubuntu-snapdragon-4.15.0-1061.68, the qcom smmuv2 implementation was replaced with an upstream generic version that didn't explicit clocks, power requirements and early init via IOMMU_OF_DECLARE() - reverting the upstream patch, and reapplying the original qcom patch that was dropped, fixes this hang. How to test: Try to boot a patched kernel and see if it reaches userspace. Regression potential: None, since the current kernel version doesn't boot at all. Paolo Pisati (1): Revert "iommu/arm-smmu: Add support for qcom,smmu-v2 variant" Vivek Gautam (1): iommu/arm-smmu: Add support for qcom,smmu-v2 variant .../devicetree/bindings/iommu/arm,smmu.txt | 42 ++++++++++++++++++++++ drivers/iommu/arm-smmu.c | 13 ++++++- 2 files changed, 54 insertions(+), 1 deletion(-) Acked-by: Sultan Alsawaf Acked-by: Kleber Sacilotto de Souza