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=-2.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 1A157C2BD09 for ; Wed, 4 Dec 2019 17:57:42 +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 E5F2120863 for ; Wed, 4 Dec 2019 17:57:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="SrPia3ji"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="enD6hT5g" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E5F2120863 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PqRXLwEKiYFrWgpHB2c+SZmJP/GUpZN5Ddt+5EbRtGQ=; b=SrPia3jiI7VaFM S9wXFrr7c8XxcyDUK8iZ+SKQVT2emvUtOobREqDbymRHn0beWGJPfUVafbj1oCTOToPWMYIRy5xsK FgPSiCw0MCkqSnuC1rgS2xjrd8W4PkrhWZcayNpRHp/t38FRV9wVwI0WCZRv411C10hLOB/TZ/ez1 ml2L1uPgEXSpM1XNieHX1Hk2ZdZboDv3aHOr7C5wiZfBMyzhc/lYM463QCftupSB5WIs7Uxg+d80w /wO3WGAB5chKt8faEUGsnzbu5x03W577Or31SffzGkte2u0giJBiLVT7hZ/lGvD8K+sCEjFBLX46q Yr5TNbwXtgwOUh198WaA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1icYuD-00022w-Dd; Wed, 04 Dec 2019 17:57:41 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1icYuA-00021t-40 for linux-arm-kernel@lists.infradead.org; Wed, 04 Dec 2019 17:57:39 +0000 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 23FE82073B; Wed, 4 Dec 2019 17:57:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575482257; bh=Z4S5x43rvKxkwPW/lopNw0SaRvqYAgy+2mEVeOu402Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=enD6hT5gP4yctfIsW40Iq9QMEm0iURz+cY01stfCheUJThZeyJl97j1nPdqyvAHyY FhtUVbyAPcLxj23kBy/CS9rXRU7Eq20Dy2mbSb4PqoYPkTLF/6Wd8hyNAEEiFu/tCK Nf3H76/OUiH52ESJD+DONGhQUDh8ptxHF1vE2al4= Date: Wed, 4 Dec 2019 17:57:27 +0000 From: Will Deacon To: Jerome Forissier Subject: Re: Kernel v5.2+ on HiKey960? Message-ID: <20191204175726.GA28736@willie-the-truck> References: <20191204101851.GC13081@arrakis.emea.arm.com> <1c5e497f-4be0-e1f3-4d6d-fed9470d0406@forissier.org> <20191204142824.GB26730@arrakis.emea.arm.com> <226a53f8-9404-1aa0-ed44-22e2157e4521@forissier.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <226a53f8-9404-1aa0-ed44-22e2157e4521@forissier.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191204_095738_201120_6AF7DE1A X-CRM114-Status: GOOD ( 20.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Catalin Marinas , Vincenzo Frascino , "linux-arm-kernel@lists.infradead.org" , maz@kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Dec 04, 2019 at 03:58:57PM +0100, Jerome Forissier wrote: > On 12/4/19 3:28 PM, Catalin Marinas wrote: > > On Wed, Dec 04, 2019 at 02:15:48PM +0100, Jerome Forissier wrote: > >> On 12/4/19 11:18 AM, Catalin Marinas wrote: > >>> On Tue, Dec 03, 2019 at 04:43:22PM +0100, Jerome Forissier wrote: > >>>> Has anyone successfully run kernel v5.2 or later on a HiKey960 board? > >>>> > >>>> For some reason, anything past v5.1 doesn't work for me and I could not > >>>> figure out why. The symptom is it never gets to the login prompt. The > >>>> root FS is a Buildroot-generated one, and prior to reaching the kernel > >>>> the board runs TF-A, OP-TEE, UEFI (edk2) and Grub. > >>>> > >>>> I tried replacing /init with a shell, in which case I can type a command > >>>> but whatever it is (even a simple "ls"), the command hangs on exit and I > >>>> never get back to the prompt. > >>>> > >>>> Then I started bisecting, that was quite painful but I found several > >>>> problematic commits. I ended up reverting the following (in this order) > >>>> to be able to boot v5.4: > > [...] > >> 75a19a0202db is the first bad commit. Its parent: commit 2f1d4e24d91b > >> ("firmware: arm_sdei: Prohibit probing in '_sdei_handler'") boots fine > >> [2]. Since reverting 75a19a0202db in v5.2 does not work, I suspect we're > >> dealing with multiple problems. As I said, the set of reverts above is > >> the best I could figure out, and believe me I spent several days trying > >> to troubleshoot this :-/ (that being said, I know nothing about the VDSO > >> or the arch timer so I could not try anything meaningful other than > >> reverting some commits). > > > > Thanks. There could as well be multiple issues. Since commit > > 75a19a0202db is cc stable, could you please apply it on top of 5.1 and > > see if it fails? I don't have a HiKey960 at hand to try this. > > > > Fails indeed (panic): https://pastebin.com/F0jpktii Interesting. I followed your instructions and my board boots fine even after applying that patch, but then I see the following on shutdown: [ 83.022955] WARNING: CPU: 0 PID: 1995 at kernel/time/tick-broadcast.c:647 tick_handle_oneshot_broadcast+0x1c8/0x1e8 [ 83.033392] Modules linked in: [ 83.036447] CPU: 0 PID: 1995 Comm: init Tainted: G S 5.1.0-253105-g2b41f6584d59 #3 [ 83.045319] Hardware name: HiKey960 (DT) [ 83.049238] pstate: 00000085 (nzcv daIf -PAN -UAO) [ 83.054026] pc : tick_handle_oneshot_broadcast+0x1c8/0x1e8 [ 83.059509] lr : tick_handle_oneshot_broadcast+0x15c/0x1e8 [ 83.064990] sp : ffff000010003b40 [ 83.068298] x29: ffff000010003b40 x28: ffff0000116de0e4 [ 83.073607] x27: ffff0000118e85c0 x26: ffff0000116d7a00 [ 83.078916] x25: 0000001342080d5f x24: ffff00001198e2f0 [ 83.084225] x23: ffff0000116ddf40 x22: ffff00001198e2c0 [ 83.089533] x21: 0000000000000000 x20: 7fffffffffffffff [ 83.094842] x19: ffff00001198e280 x18: 0000000000000010 [ 83.100151] x17: 0000000000000000 x16: 0000000000000000 [ 83.105459] x15: 0000000000000000 x14: 0000000000000000 [ 83.110768] x13: ffff000010e544d0 x12: ffff000010e544c8 [ 83.116077] x11: 0720072007200720 x10: 0000000000000040 [ 83.121384] x9 : ffff000011705bd0 x8 : ffff000011705bc8 [ 83.126693] x7 : ffff8000bf0002a0 x6 : 0000000000000004 [ 83.132002] x5 : 0000000000000000 x4 : 0000000000000001 [ 83.137310] x3 : 0000000000000000 x2 : 0000000000000100 [ 83.142619] x1 : ffff0000116ddf40 x0 : 0000000000000000 [ 83.147929] Call trace: [ 83.150372] tick_handle_oneshot_broadcast+0x1c8/0x1e8 [ 83.155512] sp804_timer_interrupt+0x3c/0x50 [ 83.159782] __handle_irq_event_percpu+0x78/0x2c8 [ 83.164482] handle_irq_event_percpu+0x40/0x98 [ 83.168922] handle_irq_event+0x50/0x80 [ 83.172755] handle_fasteoi_irq+0xc0/0x178 [ 83.176847] generic_handle_irq+0x34/0x50 [ 83.180852] __handle_domain_irq+0x6c/0xc0 [ 83.184947] gic_handle_irq+0x58/0xa8 [ 83.188605] el1_irq+0xb8/0x180 [ 83.191740] __do_softirq+0xa8/0x3a0 [ 83.195314] irq_exit+0xc0/0xd0 [ 83.198450] __handle_domain_irq+0x70/0xc0 [ 83.202541] gic_handle_irq+0x58/0xa8 [ 83.206198] el1_irq+0xb8/0x180 [ 83.209339] _raw_spin_unlock_irq+0x28/0x60 [ 83.213520] do_exit+0xf0/0xa28 [ 83.216661] __se_sys_reboot+0x16c/0x248 [ 83.220581] __arm64_sys_reboot+0x24/0x30 [ 83.224590] el0_svc_common.constprop.0+0x88/0xf8 [ 83.229290] el0_svc_handler+0x34/0x90 [ 83.233035] el0_svc+0x8/0xc [ 83.235909] ---[ end trace 70f495d614c1efd2 ]--- which is unexpected. Will _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel