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.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, 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 73E08ECE58C for ; Fri, 11 Oct 2019 10:59:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 490482084C for ; Fri, 11 Oct 2019 10:59:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727823AbfJKK71 (ORCPT ); Fri, 11 Oct 2019 06:59:27 -0400 Received: from foss.arm.com ([217.140.110.172]:56512 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726885AbfJKK71 (ORCPT ); Fri, 11 Oct 2019 06:59:27 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5BF3428; Fri, 11 Oct 2019 03:59:26 -0700 (PDT) Received: from bogus (e107155-lin.cambridge.arm.com [10.1.196.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2293E3F703; Fri, 11 Oct 2019 03:59:25 -0700 (PDT) Date: Fri, 11 Oct 2019 11:59:23 +0100 From: Sudeep Holla To: Marek Szyprowski Cc: James Morse , Lorenzo Pieralisi , Catalin Marinas , Liviu Dudau , Sudeep Holla , LKML , Will Deacon , linux-arm-kernel@lists.infradead.org Subject: Re: ARM Juno r1 + CONFIG_PROVE_LOCKING=y => boot failure Message-ID: <20191011105923.GB5122@bogus> References: <33a83dce-e9f0-7814-923b-763d33e70257@samsung.com> <20191011100521.GA5122@bogus> <7655fb41-cd13-0bc4-e656-040e0875bab8@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7655fb41-cd13-0bc4-e656-040e0875bab8@arm.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 11, 2019 at 11:38:17AM +0100, James Morse wrote: > Hi guys, > > On 11/10/2019 11:05, Sudeep Holla wrote: > > On Fri, Oct 11, 2019 at 11:26:04AM +0200, Marek Szyprowski wrote: > >> Recently I've got access to ARM Juno R1 board and did some tests with > >> current mainline kernel on it. I'm a bit surprised that enabling > >> CONFIG_PROVE_LOCKING causes a boot failure on this board. After enabling > >> this Kconfig option, I get no single message from the kernel, although I > >> have earlycon enabled. > > > I don't have Juno R1 but I tried defconfig + CONFIG_PROVE_LOCKING and > > it boots fine. > > I just tried this on my r1, v5.4-rc1 with this configuration worked just fine. > > My cmdline is: > | root=/dev/sda6 loglevel=9 earlycon=pl011,0x7ff80000 hugepagesz=2M hugepages=512 > | crashkernel=1G console=ttyAMA0 resume=/dev/sda2 no_console_suspend efi=debug > > > >> I've did my test with default defconfig and current linux-next, > >> v5.4-rc1, v5.3 and v4.19. In all cases the result is the same. I'm > >> booting kernel using a precompiled uboot from Linaro release and TFTP > >> download. > > > OK, I use UEFI+GRUB but I don't think that should cause any issue. > > ... same ... this uboot binary looks like the main difference. > Is it using u-boots UEFI support? Is it possible to turn that off? > Did give a quick try with mainline uboot on my Juno R2 and it boots fine. Not sure if EFI support is default there. I am using vexpress_aemv8a_juno_defconfig > It may that lockdep is just perturbing the size of the binary. It adds an > extra 4MB for me. The image size was 35MB. I was thinking if it has some wrongly configured firmware, but since defconfig works, it must have sane firmware. -- Regards, Sudeep 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.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,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 5C3E6C47404 for ; Fri, 11 Oct 2019 10:59:30 +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 32B9B2084C for ; Fri, 11 Oct 2019 10:59:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="WZOmlo/T" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 32B9B2084C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com 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=a+jo4eFJiaEMNXXhNITwCVmt7dmZD5fT1n9hN+hw19w=; b=WZOmlo/TAI/Vf1 LvxvyREf4malE493/qe3BNsmkigPzrzbD++hs4YZdTv40wL5fntkyun9plFidRcdeV0r97nY6CxOh PNSMY6z+Ft9FbXqgVBBHepWEdbU/zd4OI7lSzfGV/r1krIfBefZkDV4C9l4U5dUt/b1+7V1oCNGRn eNX5DHhJzoOWkfmgFUgvdzbcaibAET3sWkejsJfdfoR31w/Zc9Lk8qhMIrl2qwiXcb/gVj1bA+Zhe HIU9aik3+hf4PX2FuMOonohyxCLlg0Jep/4Lvv8dLbdBWJVvzVmZHL3vrNcMEuOFG2kTsgE4WqpJ3 OYl+Na15c5TJk2kv/AyQ==; 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 1iIsdt-0005LB-Rm; Fri, 11 Oct 2019 10:59:29 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iIsdr-0005K5-8r for linux-arm-kernel@lists.infradead.org; Fri, 11 Oct 2019 10:59:28 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5BF3428; Fri, 11 Oct 2019 03:59:26 -0700 (PDT) Received: from bogus (e107155-lin.cambridge.arm.com [10.1.196.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2293E3F703; Fri, 11 Oct 2019 03:59:25 -0700 (PDT) Date: Fri, 11 Oct 2019 11:59:23 +0100 From: Sudeep Holla To: Marek Szyprowski Subject: Re: ARM Juno r1 + CONFIG_PROVE_LOCKING=y => boot failure Message-ID: <20191011105923.GB5122@bogus> References: <33a83dce-e9f0-7814-923b-763d33e70257@samsung.com> <20191011100521.GA5122@bogus> <7655fb41-cd13-0bc4-e656-040e0875bab8@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <7655fb41-cd13-0bc4-e656-040e0875bab8@arm.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191011_035927_364108_B5007340 X-CRM114-Status: GOOD ( 18.43 ) 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: Lorenzo Pieralisi , Catalin Marinas , Liviu Dudau , LKML , James Morse , Sudeep Holla , Will Deacon , linux-arm-kernel@lists.infradead.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 Fri, Oct 11, 2019 at 11:38:17AM +0100, James Morse wrote: > Hi guys, > > On 11/10/2019 11:05, Sudeep Holla wrote: > > On Fri, Oct 11, 2019 at 11:26:04AM +0200, Marek Szyprowski wrote: > >> Recently I've got access to ARM Juno R1 board and did some tests with > >> current mainline kernel on it. I'm a bit surprised that enabling > >> CONFIG_PROVE_LOCKING causes a boot failure on this board. After enabling > >> this Kconfig option, I get no single message from the kernel, although I > >> have earlycon enabled. > > > I don't have Juno R1 but I tried defconfig + CONFIG_PROVE_LOCKING and > > it boots fine. > > I just tried this on my r1, v5.4-rc1 with this configuration worked just fine. > > My cmdline is: > | root=/dev/sda6 loglevel=9 earlycon=pl011,0x7ff80000 hugepagesz=2M hugepages=512 > | crashkernel=1G console=ttyAMA0 resume=/dev/sda2 no_console_suspend efi=debug > > > >> I've did my test with default defconfig and current linux-next, > >> v5.4-rc1, v5.3 and v4.19. In all cases the result is the same. I'm > >> booting kernel using a precompiled uboot from Linaro release and TFTP > >> download. > > > OK, I use UEFI+GRUB but I don't think that should cause any issue. > > ... same ... this uboot binary looks like the main difference. > Is it using u-boots UEFI support? Is it possible to turn that off? > Did give a quick try with mainline uboot on my Juno R2 and it boots fine. Not sure if EFI support is default there. I am using vexpress_aemv8a_juno_defconfig > It may that lockdep is just perturbing the size of the binary. It adds an > extra 4MB for me. The image size was 35MB. I was thinking if it has some wrongly configured firmware, but since defconfig works, it must have sane firmware. -- Regards, Sudeep _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel