From patchwork Tue Apr 24 17:44:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 134168 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2520418lji; Tue, 24 Apr 2018 10:45:44 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+dHuICCeT8VEvrgBZknyDMhaFcsfK/Ez4cpn20kOdiweWvtWHAaDk4FAz/MWhbw7ai3RqN X-Received: by 10.80.210.215 with SMTP id q23mr34945503edg.12.1524591944879; Tue, 24 Apr 2018 10:45:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524591944; cv=none; d=google.com; s=arc-20160816; b=JJEoBTskjlKNpb6DWOeUiWIIpNsFPija9lAUe6OClomHS8PcyWks5neKj6s4NJE3gC SRGI8txsJxnYNIuNth5b8arL6iAyKBIweVa39IzVynKPGBdOAb1qU4HPfheMgLLp5lB9 6J/z8qajRi3f+3rBptUPThtdqP8Wjx50EMQKxlPKzFVY0OjOZJ064+4f43TgkZZrbe02 o3Xz7IdKtiV+tGU0zGsihin1aRSWSY1Y1Kb12j1/gzRkY7+IiixSH2BDegpDXs5+PPbm bO6vhCK3KQtvzQt9PlU+J6+Iqbq20DkZ+nJ+DsScB+rH9bsx/1tqh3e8MQR8BHKlEl+q RLRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:arc-authentication-results; bh=XC3VRan7z9VyW9k27v8YkS2koTMxXZ9ijg6EdFyvrB8=; b=PsddOOWSqpZMNyGDXu1PZ5aOLRqKK9xKj8Q9uQm3TXtPJBsg3Mn24rTgokqVAj0B19 SN7l1JLDRUanpfctPnmAzTGvl87HTALYB/sXa9lajN69udgtLlyYkyPXS8v1bcNhBgw7 9xzV0C09+SxjuPF2Dln3hs51EHagKgnECUjXMqi4MEG+cv9ujL9/CbocrYtglZ+h3Kkj dxNn9jOflip5K4Mq3vua6e18ZfZKKgGpcaQUdMA45oig9t/wgJY17JJzi9VstJCqv7pa 3frsKHvdQy7RPIxfN3ffyfnyTdLSSgf5EcwzwsfzGhhg2smtD9tfGW3AFoj4RNUt0+8q NIiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=XreiiHnR; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id n10si6575099edf.166.2018.04.24.10.45.44; Tue, 24 Apr 2018 10:45:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=XreiiHnR; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 6FCD9C21F1D; Tue, 24 Apr 2018 17:44:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id CDA73C21ED6; Tue, 24 Apr 2018 17:44:39 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id C9B55C21E2B; Tue, 24 Apr 2018 17:44:37 +0000 (UTC) Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by lists.denx.de (Postfix) with ESMTPS id 630EBC21E0D for ; Tue, 24 Apr 2018 17:44:37 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id w195so2673086wmw.2 for ; Tue, 24 Apr 2018 10:44:37 -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:in-reply-to:references; bh=iceomhfnBjaM1K8qcSTHX2oSALQWtJYce2T4CvZG3vA=; b=XreiiHnRRFH1UkA+ZmDFkn3uviPpZQnonXViaFaiR5QC7uB4E84dIPm2VQpc5YwBTu LneffESOYHVZUziFosY72W11cs/iZObwo7iZb+d6AyWus56Etc0ARyyeO8TwLaqb8Ne1 tGFsq3tInZuRIC3c0D2wlRQ5hbZV3j16ACwL8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=iceomhfnBjaM1K8qcSTHX2oSALQWtJYce2T4CvZG3vA=; b=PehU8YzChLUTAOlQwMQvD22+6Smse4oNJ0Lm5ILqr0gQzVaBH98Sg+n8+yUdqFBz6z lqfhUNzaBAnr2Sjy0xGJ22MzL2mWzgLAx9s7X7/7l+awlYhTGlv1cgYDjv0SDDXxJifH u2DhRF7UiGN9CwtsanmDfW0fQlaBr9/Fx/It4/SvVeq7aIWDhvxaX9BA9fsE0vE8y/Vr 9ASNmCgiibNryWWwF3Ub5TFT0YmDtRnw0eWln7AS7c8rlWZtpLt9VLzK0o8IG7MC3IuK i+cVmDLTm3juxeAjUDWnUJ0bbbzB3T4R0/na/Cx0vqt+IxNsqGpzSBQxTuKFRotAp6a4 CQEQ== X-Gm-Message-State: ALQs6tA2g8UZvJveGH1KVsLFGDPZxBVlC20TSG55Iwf8Pd0UT9KzEZzt YTUxNy8ndZjroLHSmheqexolYAfPOjI= X-Received: by 10.80.158.141 with SMTP id a13mr28572914edf.78.1524591876778; Tue, 24 Apr 2018 10:44:36 -0700 (PDT) Received: from event-horizon.net ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id l9sm9686327edk.9.2018.04.24.10.44.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 10:44:36 -0700 (PDT) From: Bryan O'Donoghue To: u-boot@lists.denx.de, sbabic@denx.de, fabio.estevam@nxp.com, breno.lima@nxp.com Date: Tue, 24 Apr 2018 18:44:30 +0100 Message-Id: <20180424174432.11757-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424174432.11757-1-bryan.odonoghue@linaro.org> References: <20180424174432.11757-1-bryan.odonoghue@linaro.org> Subject: [U-Boot] [PATCH v5 1/3] warp7: defconfig: Fix CAAM on boot with tip-of-tree X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Booting the following image with tip-of-tree we get a CAAM DECO error (and subsequent crash due to a kernel bug in 4.1). http://freescale.github.io/#download -> BoardsWaRPboard community - WaRP - Wearable Reference PlatformFSL Community BSP 2.3fsl-image-multimediawayland Image: fsl-image-multimedia-imx7s-warp-20180323-90.rootfs.sdcard Error: caam 30900000.caam: Entropy delay = 3200 caam 30900000.caam: failed to acquire DECO 0 caam 30900000.caam: failed to acquire DECO 0 caam 30900000.caam: Entropy delay = 12400 caam 30900000.caam: failed to acquire DECO 0 caam 30900000.caam: failed to instantiate RNG ------------[ cut here ]------------ WARNING: CPU: 0 PID: 1 at /home/jenkins/workspace/fsl-community-bsp-pyro_xwayland_2/build/tmp/work-shared/imx7s-warp/kernel-source/mm/vmalloc.c:1465 caam_remove+0x6) Trying to vfree() nonexistent vm area (88047000) Modules linked in: CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.1.36-4.1-1.0.x-imx-warp7+ga543d1b #1 Hardware name: Freescale i.MX7 Dual (Device Tree) [<80015d54>] (unwind_backtrace) from [<80012688>] (show_stack+0x10/0x14) [<80012688>] (show_stack) from [<8076e810>] (dump_stack+0x78/0x8c) [<8076e810>] (dump_stack) from [<800346a0>] (warn_slowpath_common+0x80/0xb0) [<800346a0>] (warn_slowpath_common) from [<80034700>] (warn_slowpath_fmt+0x30/0x40) [<80034700>] (warn_slowpath_fmt) from [<8054c278>] (caam_remove+0x6c/0x3f4) [<8054c278>] (caam_remove) from [<8054ce74>] (caam_probe+0x874/0xfa8) [<8054ce74>] (caam_probe) from [<80382a7c>] (platform_drv_probe+0x48/0xa4) [<80382a7c>] (platform_drv_probe) from [<80381328>] (driver_probe_device+0x174/0x2a8) [<80381328>] (driver_probe_device) from [<8038152c>] (__driver_attach+0x8c/0x90) [<8038152c>] (__driver_attach) from [<8037f9d4>] (bus_for_each_dev+0x68/0x9c) [<8037f9d4>] (bus_for_each_dev) from [<80380a68>] (bus_add_driver+0xf4/0x1e8) [<80380a68>] (bus_add_driver) from [<80381b38>] (driver_register+0x78/0xf4) [<80381b38>] (driver_register) from [<80009738>] (do_one_initcall+0x8c/0x1d0) [<80009738>] (do_one_initcall) from [<80a66dac>] (kernel_init_freeable+0x140/0x1d0) [<80a66dac>] (kernel_init_freeable) from [<8076aa38>] (kernel_init+0x8/0xe8) [<8076aa38>] (kernel_init) from [<8000f468>] (ret_from_fork+0x14/0x2c) ---[ end trace d5f941204ed8cb28 ]--- caam: probe of 30900000.caam failed with error -11 Unable to handle kernel NULL pointer dereference at virtual address 00000004 pgd = 80004000 [00000004] *pgd=00000000 Internal error: Oops: 805 [#1] PREEMPT SMP ARM [<8055cdf8>] (caam_sm_startup) from [<80aa83c8>] (caam_sm_init+0x50/0x58) [<80aa83c8>] (caam_sm_init) from [<80009738>] (do_one_initcall+0x8c/0x1d0) [<80009738>] (do_one_initcall) from [<80a66dac>] (kernel_init_freeable+0x140/0x1d0) [<80a66dac>] (kernel_init_freeable) from [<8076aa38>] (kernel_init+0x8/0xe8) [<8076aa38>] (kernel_init) from [<8000f468>] (ret_from_fork+0x14/0x2c) Code: e59d300c e2832010 e5843008 e5834068 (e58a2004) ---[ end trace d5f941204ed8cb29 ]--- Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b Fix: Enable the CAAM correctly by setting CONFIG_ARMV7_BOOT_SEC_DEFAULT=y in the upstream defconfig. Signed-off-by: Bryan O'Donoghue Cc: Fabio Estevam Cc: Breno Lima Reviewed-by: Fabio Estevam Tested-by: Breno Lima --- configs/warp7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/warp7_defconfig b/configs/warp7_defconfig index 3901a2741b..540dafd120 100644 --- a/configs/warp7_defconfig +++ b/configs/warp7_defconfig @@ -2,6 +2,7 @@ CONFIG_ARM=y CONFIG_ARCH_MX7=y CONFIG_SYS_TEXT_BASE=0x87800000 CONFIG_TARGET_WARP7=y +CONFIG_ARMV7_BOOT_SEC_DEFAULT=y # CONFIG_ARMV7_VIRT is not set CONFIG_IMX_RDC=y CONFIG_IMX_BOOTAUX=y