Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp431027lqc; Fri, 8 Mar 2024 01:32:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX76e04mW94KGmDo/iuUlNOxAyHwij1R8JedUHzfuQegJ/Zbm5t8bPNiJyfVBSxXcVR/C6di//PTM2Xy+nJiLmoWY8PLwY979Uyk1JV4Q== X-Google-Smtp-Source: AGHT+IFhNkIdRXTy4bwm3gn044kVNlTsTkaoPszdOywsjIRwdsVRWtWuT1BHPmx94qxyOejzdpCW X-Received: by 2002:a05:6a20:7485:b0:1a1:6ceb:92fc with SMTP id p5-20020a056a20748500b001a16ceb92fcmr6898420pzd.6.1709890336773; Fri, 08 Mar 2024 01:32:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709890336; cv=pass; d=google.com; s=arc-20160816; b=09LF6deN3SkyMxU9TCDYtHuNiKvfJQDzG+S/z2MZw6oeexsPhJxdTqHaWFVp5Vb88F CclsD7ZSkK1P7u8Ml2PK2bvxSDT82YsFvtdzLwkTXnbOLy0WEqCK4w3i4NJPSTG0y/kl FF1DDuJF6TjAo/rRxvW3s9/wJ6/FT/8KTRXKu7TL7yo45RHStlVyUV1bRnCHLnHDH/1Q GFsqXgraXFMN2aqSNfviDYLZXUnmGe6jy3iIZ2fiYruKXrBDico2xuHbLvO85TtFC3EI tkR2q2bnROYiR+6rLl72GZXZ1SU1hbNIckeZv+pZcp5EG/WK67rO9WpFxGBpx0m/ZFej sbpA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=YrG1vi6s/nTwQkG4YsY+XqFiQyMrqUljBKJEXiaxAlo=; fh=hp3YjCSSqUFXXjTOUkAsFY3cM/tYCcYSyyF4aoOXyRY=; b=UmLwl3IWq0lmG48ySF28Dthw0Edm6XMmf7APr3TRQX3wgQCbugw+efNzv9ziNq1dAX xM3AEO+dg2GpTF/7I/AEYkGe99kx97skWHxP9i4/AxD2Nr/EIHZelCX68SnSIUWjpDRF JV2WX03A49QK5uHJkY+haFe7b9pqPd/r9cuSFYGyoiM4nd7M7QwLABbwy+xcy8m7OYkj n8QDx74oPlI+DzILEugdqkeFUTcLwHMzQBJmEfN5T9O25kJs4FIK8Noxg+RpZsx1eClc JcZC7uOxoRKoa+h1OxYwHgaEysyXO1gqOLwihQzm9q8wdLkqAT8uC/4Uld+1+ZHthlHs X8ow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=poqyepOR; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au dkim=pass dkdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-96747-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96747-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id k201-20020a6284d2000000b006e61c99617csi9682152pfd.216.2024.03.08.01.32.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 01:32:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96747-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=poqyepOR; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au dkim=pass dkdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-96747-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96747-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 6C240B22505 for ; Fri, 8 Mar 2024 09:30:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 339FC535A0; Fri, 8 Mar 2024 09:30:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ellerman.id.au header.i=@ellerman.id.au header.b="poqyepOR" Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6755722F0F for ; Fri, 8 Mar 2024 09:30:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=150.107.74.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709890247; cv=none; b=hVmYI+aYMqy+QvJ0awXzSkGIu5f8umwapzPInJNH85AXOzjUb3pbUoixy2604Hu9TYjGCkRyWATO9Kzb6J6kb4ZPuyht3l4LHQXjxCetqS+0O7cm0b4bvxx6HDY/BJ6ghMjSetOiWFMIYt4L0dUsj0hexVspApMPlYOYt21HxOM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709890247; c=relaxed/simple; bh=tiO0bXgsOr+PuXLGnaMqo6dxWeWjXreRkFH/dObAfKs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=AC6fJibJfOj6KOChzSymPo/UWwCtyFttyOj62gipJIsT2MybE77pwAoncQkU4zludHQquIrXHPpvajJpP3L4xB6Qj3OYy8ndEaQnlqVy84w+7e9Z6NB/ymgPYb7zZ6uT4JUsqoQMoxpG/hn3WtaYzp1Bccz7WfIBxDmtGXbopfg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au; spf=pass smtp.mailfrom=ellerman.id.au; dkim=pass (2048-bit key) header.d=ellerman.id.au header.i=@ellerman.id.au header.b=poqyepOR; arc=none smtp.client-ip=150.107.74.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ellerman.id.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1709890241; bh=YrG1vi6s/nTwQkG4YsY+XqFiQyMrqUljBKJEXiaxAlo=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=poqyepOR/C++MsETS/6QVuyHg2UIBvlhqaSA6Ce5Go5wIxdCFrubcjS2LSzyhflBx 5Q8AwLdlL2B59MTdND6P3EKY3yJHoSAF5lQwj+e3T5JjlYw/NFKrOAMlt7OKAil0jj YW14/V32vV7XsCKTeyA889fdfzECaYF2iEYktWeiycbVj5Ac8St5Le2sG+/b3PSqVw xXOvXyMSA0SUfjBYo24HFVHSMiUygB5X8tWiLkyxMM6aDZHznE3RrumAU5gQIRV9eN Je+IdqrXNZpGz8tPt0SXHU475HQ0xcw7+qbjPtDVRAgtHtZmA515omGgpXybBDi7Nq etlkkl91F1cxA== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4Trgrc6vwJz4wc4; Fri, 8 Mar 2024 20:30:40 +1100 (AEDT) From: Michael Ellerman To: Joel Savitz Cc: linux-kernel@vger.kernel.org, Nicholas Piggin , Christophe Leroy , "Aneesh Kumar K.V" , "Naveen N. Rao" , Benjamin Gray , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, Gonzalo Siero Subject: Re: [PATCH] powerpc: align memory_limit to 16MB in early_parse_mem In-Reply-To: References: <20240301203023.2197451-1-jsavitz@redhat.com> <87cysdfsef.fsf@mail.lhotse> Date: Fri, 08 Mar 2024 20:30:39 +1100 Message-ID: <87zfv9m5og.fsf@mail.lhotse> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Joel Savitz writes: > On Fri, Mar 1, 2024 at 6:23=E2=80=AFPM Michael Ellerman wrote: >> Joel Savitz writes: >> > On 64-bit powerpc, usage of a non-16MB-aligned value for the mem=3D ke= rnel >> > cmdline parameter results in a system hang at boot. >> >> Can you give us any more details on that? It might be a bug we can fix. > > The console freezes after the following output: > > Booting a command list > > OF stdout device is: /vdevice/vty@30000000 > Preparing to boot Linux version 6.8.0-rc6.memNOfix-00120-g87adedeba51a > (root@ibm-p9z-26-lp11.virt.pnr.lab.eng.rdu2.redhat.com) (gcc (GCC) > 11.4.1 20231218 (Red Hat 11.4.1-3), GNU ld version 2.35.2-43.el9) #3 > SMP Fri Mar 1 10:45:45 EST 2024 > Detected machine type: 0000000000000101 > command line: BOOT_IMAGE=3D(ieee1275//vdevice/v-scsi@30000003/disk@810000= 0000000000,msdos2)/vmlinuz-6.8.0-rc6.memNOfix-00120-g87adedeba51a > root=3D/dev/mapper/rhel_ibm--p9z--26--lp11-root ro > crashkernel=3D2G-4G:384M,4G-16G:512M,16G-64G:1G,64G-128G:2G,128G-:4G > rd.lvm.lv=3Drhel_ibm-p9z-26-lp11/root > rd.lvm.lv=3Drhel_ibm-p9z-26-lp11/swap mem=3D4198400K > Max number of cores passed to firmware: 256 (NR_CPUS =3D 2048) > Calling ibm,client-architecture-support... done > Ignoring mem=3D0000000101000000 >=3D ram_top. > memory layout at init: > memory_limit : 0000000000000000 (16 MB aligned) > alloc_bottom : 00000000114f0000 > alloc_top : 0000000020000000 > alloc_top_hi : 0000000020000000 > rmo_top : 0000000020000000 > ram_top : 0000000020000000 > instantiating rtas at 0x000000001ecb0000... done > prom_hold_cpus: skipped > copying OF device tree... > Building dt strings... > Building dt structure... > Device tree strings 0x0000000011500000 -> 0x00000000115017b7 > Device tree struct 0x0000000011510000 -> 0x0000000011520000 > Quiescing Open Firmware ... > Booting Linux via __start() @ 0x000000000a6e0000 ... Thanks. I haven't been able to reproduce this unfortunately, and I don't see the bug. As Aneesh pointed out the code should be aligning later anyway. Can you build a kernel with CONFIG_PPC_EARLY_DEBUG_LPAR=3Dy and boot it without the patch? That should hopefully give you some more output. cheers