From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.2 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0CE5AC4338F for ; Wed, 11 Aug 2021 12:18:08 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id C94CC60FC0 for ; Wed, 11 Aug 2021 12:18:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C94CC60FC0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Date:Message-ID:Subject:From:Cc:To: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=7wG1ZfNQMLRTBf3ouOjCZk5qs8mL05pG1Jf1QBnfuXs=; b=puUPVLW/vs3+5CBn/eU9mV4flm 5SdkdrHnrnhLrK/UcEhGHut6Hxm/IZ57HqEaWcpvvQetfeoe4MsBgd1Cd427DumUrs80sOWHRWgKy dPzu6Zptlffu1Z7Vj4fp3Gk3k0FsxqD26MRdHWyP/v1D8QdK7rKOc9iRd9HQbuoTxu1AGURYcP+TI /duMEf2PxMCS0ntUB8iC1dUmeTMa9L/6v9Fu3b7tr3N9oOlxf5swdXHixpQXTjfH+WCyHvNde5xUS J12l6+s+H9tlmBOHewlb9ugXYtNunJcvqiH2k5tkuaQlO66LQd5F2dA0TMTNE57ZDepdlpOBndeAF BGY7KSGA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mDn96-006xHE-PL; Wed, 11 Aug 2021 12:15:44 +0000 Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mDn8z-006xEo-5N for linux-arm-kernel@lists.infradead.org; Wed, 11 Aug 2021 12:15:39 +0000 Received: by mail-lj1-x22a.google.com with SMTP id n7so4295052ljq.0 for ; Wed, 11 Aug 2021 05:15:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:cc:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=3V0TkA1LykYL2GSvy5CqeTe7n02l7NtRUy5DodtlPUU=; b=nhevJbXCIH7KrZtXegu+zpJd3x04RISOyzdBXbMDSyPe7dgJBgfhHM+piz6x1LI6OD pPuRYS9dBH7h7QlAfqNaMBEf0G9Gp1d0SplgIVU6GNZxYT3TI4j8ebN/qqr38Ji4FRNg VXlB8bh0EB4+ZsYIRNOAv9yA8Gu9PFlKRADZfzO+8gpgAaiNXuUDrQLugobOD/PGoMk/ wuZKbLPZrEHyI2EUE5It78M5JnyxJOyzpXwZI8yOOAPNFsxBi6g1ATY873Xt25vHTQZB Sunf3xBIL609uNIb27EEUUet7Gd3Ev2YC2lKO1Zcmh/6sVUThpwtBrCz8v9nJrXN5zbB SPIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=3V0TkA1LykYL2GSvy5CqeTe7n02l7NtRUy5DodtlPUU=; b=IbfwXO8atzEBMSu+rnOX9ialBYkqqdGxouf+925I9us0XRqX4lnI8BR3aqmX4bM/bF MhP1CKxdK8JcppMvo+dqqxUsWzDa3Mueyl5yYAU9lQ64rZBXRKtyD7GxBA82C64vQG0I 2mEqM8L82Y81C41tYkeQaztYshi1HibaMRMqXwSadEyPcvwmwKbZ0azALZg9icmWd+dV bSn7MzRQcDyLn0llBudVGv8YQr6NPxC3DoRjk8rI9OzVqHxLNZCu8vVYMBel0/kLXIw7 MYw/S9ksGHN2ALWF9azug50Fpk9EW8hDD7gpNyWAeKpCq4DtNjxVCCoszONkKit3NgxQ 4ebA== X-Gm-Message-State: AOAM532aQ9WxyzGye1E+aU9lUHeo4kLoAT4+oJdVzWTZu27io0uAjGSa x1EVIvwiDxZ0h345cGs1sg8= X-Google-Smtp-Source: ABdhPJwoV12A7sWdaUidCUDcR6xtdVWZ0CqRRTsNwsU5vpt1THiOCaTga+t4QfQ1Pa3QU5eNqbEk9A== X-Received: by 2002:a2e:a44f:: with SMTP id v15mr22245634ljn.301.1628684134019; Wed, 11 Aug 2021 05:15:34 -0700 (PDT) Received: from localhost.localdomain (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.googlemail.com with ESMTPSA id n5sm2349464lfq.82.2021.08.11.05.15.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 Aug 2021 05:15:33 -0700 (PDT) To: Marc Zyngier , David Brazdil , Catalin Marinas , Will Deacon , linux-arm-kernel Cc: Mark Rutland , David Brazdil , Ard Biesheuvel , Andrey Konovalov , Marco Elver , BCM Kernel Feedback , Florian Fainelli From: =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= Subject: arm64 regression in kernel 5.12 related to the (n)VHE Message-ID: <53f3a2d2-22f8-edee-2507-d41a4090dad7@gmail.com> Date: Wed, 11 Aug 2021 14:15:31 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210811_051537_260308_DB99FF64 X-CRM114-Status: GOOD ( 19.57 ) 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: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, I just tried upgrading from the old good LTS kernel 5.10 and I discovered that my bcm4908 boards don't boot anymore with the 5.14-rc5. The problem is kernel doesn't seem to start booting at all. I see CFE bootloader messages: Starting program at 0x0000000000080000 /memory = 0x40000000 and then nothing. Normally the first kernel line should follow like a: Linux version 5.11.0-rc4 (rmilecki@localhost.localdomain) (aarch64-buildroot-linux-uclibc-gcc.br_real (Buildroot -g91617ed) 9.3.0, GNU ld (GNU Binutils) 2.33.1) #30 SMP Wed Aug 11 14:01:00 CEST 2021 I have zero knowledge of low level arm64 or assembler stuff. I also don't own any bcm4908 development board or bcm4908 datasheets. All I could do to help debugging this regression was bisecting. The first bad commit (I verified it after bisecting process) is: commit 0c93df9622d4d921bcd0dc83f71fed9e98f5119f Author: Marc Zyngier Date: Mon Feb 8 09:57:14 2021 +0000 arm64: Initialise as nVHE before switching to VHE As we are aiming to be able to control whether we enable VHE or not, let's always drop down to EL1 first, and only then upgrade to VHE if at all possible. This means that if the kernel is booted at EL2, we always start with a nVHE init, drop to EL1 to initialise the the kernel, and only then upgrade the kernel EL to EL2 if possible (the process is obviously shortened for secondary CPUs). The resume path is handled similarly to a secondary CPU boot. Signed-off-by: Marc Zyngier Acked-by: David Brazdil Acked-by: Catalin Marinas Link: https://lore.kernel.org/r/20210208095732.3267263-6-maz@kernel.org [will: Avoid calling switch_to_vhe twice on kaslr path] Signed-off-by: Will Deacon Could you look at this issue, please? I'm happy to test any patches or provide any extra info I can obtain using kernel 5.11. My defconfig for bcm4908 is: CONFIG_BLK_DEV_INITRD=y CONFIG_INITRAMFS_SOURCE="${BR_BINARIES_DIR}/rootfs.cpio" CONFIG_ARCH_BCM4908=y CONFIG_NR_CPUS=4 CONFIG_CMDLINE="earlycon=bcm63xx_uart,0xff800640" CONFIG_CMDLINE_FORCE=y CONFIG_PCI=y CONFIG_PCIEPORTBUS=y CONFIG_PCIE_BRCMSTB=y CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y CONFIG_SERIAL_BCM63XX=y CONFIG_SERIAL_BCM63XX_CONSOLE=y CONFIG_I2C=y CONFIG_I2C_CHARDEV=y CONFIG_I2C_SLAVE=y CONFIG_SPI=y CONFIG_PINCTRL=y CONFIG_GPIO_SYSFS=y CONFIG_GPIO_GENERIC_PLATFORM=y CONFIG_POWER_RESET_SYSCON=y CONFIG_THERMAL=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_PLATFORM=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_HCD_PLATFORM=y CONFIG_USB_OHCI_HCD=y CONFIG_USB_OHCI_HCD_PLATFORM=y CONFIG_DMADEVICES=y CONFIG_RESET_CONTROLLER=y _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel