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=-3.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS 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 A9F12C433DF for ; Wed, 15 Jul 2020 21:02:28 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (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 3F9D12067D for ; Wed, 15 Jul 2020 21:02:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=ozlabs.org header.i=@ozlabs.org header.b="d63s8WY9" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3F9D12067D Authentication-Results: mail.kernel.org; dmarc=pass (p=none dis=none) header.from=ozlabs.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4B6VFY3PsvzDqJk for ; Thu, 16 Jul 2020 07:02:25 +1000 (AEST) Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4B6VCT0SK0zDqlp for ; Thu, 16 Jul 2020 07:00:37 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=d63s8WY9; dkim-atps=neutral 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 ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4B6VCR6BX1z9sRK; Thu, 16 Jul 2020 07:00:35 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1594846836; bh=XhVOLxVfBnZHiqAzYmWw8Uh1CSzj1P31KTli2xRb354=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=d63s8WY9YdmG8OcOJoUzQnG/7jA4CRVQ6QoIe9zm+7/ovknSCXhdnedTo8WTvrXJy 5Y53uQAvQT7H+VBHknt5fN7ADotqI0eAK20gEa0x75ltvJkNKBsyXLrDFgiQDKqrgI XXQaUhkF/mlgFeal+mUmE5Ur41MkJJRwZ6kDSvivWH+5Fu69YLrYuTORmJinRrzW8R V1Co8+MIskr8YkWp3XbardgAkbJGapuVVjSChkHkivBK67hEkMlL3zTU3q5dbQtz8V p5gSKFPuDTMGTrVK1bBHZ6skdlvd9JolxxAfdkf0WrNLsoMMyHCg++wOiyfMyd1XTk 58FUc/jjrRYyA== Date: Thu, 16 Jul 2020 07:00:34 +1000 From: Anton Blanchard To: "Aneesh Kumar K.V" Subject: Re: [PATCH] pseries: Fix 64 bit logical memory block panic Message-ID: <20200716070034.344e3d7d@kryten.localdomain> In-Reply-To: <87d04x3q6m.fsf@linux.ibm.com> References: <20200715000820.1255764-1-anton@ozlabs.org> <87d04x3q6m.fsf@linux.ibm.com> X-Mailer: Mutt/1.8.0 (2017-02-23) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: nathanl@linux.ibm.com, paulus@samba.org, linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" Hi Aneesh, > > Booting with a 4GB LMB size causes us to panic: > > > > qemu-system-ppc64: OS terminated: OS panic: > > Memory block size not suitable: 0x0 > > > > Fix pseries_memory_block_size() to handle 64 bit LMBs. > We need similar changes at more places? I agree. I wanted to get a minimal and tested fix (using QEMU) that could make it into stable, so that the distros will at least boot. Thanks, Anton