Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1250418pxa; Thu, 20 Aug 2020 06:46:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXB1YoClMs8zID070xs7itoS230469l9NXxftNXyX/uR+KC62RQJf3kCFW2NKJK5qft+S1 X-Received: by 2002:aa7:c0d3:: with SMTP id j19mr2877685edp.157.1597931204444; Thu, 20 Aug 2020 06:46:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597931204; cv=none; d=google.com; s=arc-20160816; b=BR8eDHxPIDpacnY47MupJTs9IX3IfxZk3hCY+C1A5W7GapRYf/0Ut3nzJaHXbyTXiY Sy7b6wJh3XaXDbnJEkuTzTUTN7d1IbQaO6bT+sKc9/xj+r+/jbzCRMYBbinL/zpL+VrK sMc3ppjBT6y/La4Z6MCV2cK7gBCC46t0EO6brWzHqmi3gC5Kg/F2HeRR1dCa7J219UEF uxKeIXvpTciaVoXDxC44kdd3YpwXARMJqBg3+aJ9UP3sFelS2nk+ZxWK2iz7/XQN0gnl fSb9ywGiiIiih+48QW+Tibg1HnmjiRyPvsdOR+NwolqeEFoZFO1Cs8rwDdxBzcj+GFII o/ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=6SByqWyqait5g7CBVZsOZi2j3fzh+oU1HoigL/ofhmc=; b=GEJt2tLrEdiI6kJoBQkbeyNr/t3c2KOxoz/APl1DHqNuKHnQ1WAp4RVlnPw2kFLgja hpu2LSFO2wHFAKY4JacpyPu+ti/LrXK8n+Gu0EiC/wtq7gLCwwTpNrqCmoR3WqBPgjVW X1gb/2vcRZ8jdsHdGCNjSnJhUG4XU0RZkPcXrMkhjfx/GVh+wb06kFqfKWoc+u5mkE46 4SvfbNvAsCV+aouhPRfwlqOdyAJ+4cqeSBSiWaZ055cQZtwfpWmOvrAgS4wFBqlLWztb 8nDaGx8hwjOOAns0h4OJcudk7mZ+vY02nnPRglu7cI1wX29Ua1vzOOf+DEQ3ulLG0zzs zwTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uqpiOHEu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o9si1382815edq.412.2020.08.20.06.46.20; Thu, 20 Aug 2020 06:46:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uqpiOHEu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727926AbgHTNnI (ORCPT + 99 others); Thu, 20 Aug 2020 09:43:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:37472 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728070AbgHTJ30 (ORCPT ); Thu, 20 Aug 2020 05:29:26 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 3058722BEB; Thu, 20 Aug 2020 09:29:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597915765; bh=UpYTKo9YBI4Wb/ngMmtCZOnOgqcl6SDDieR0IfyJbOU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uqpiOHEujkCTcssyErT/yW2+AQUPLrgIWbWnDnKgLXAnzn+3LBmRXdWyMfKn551Dx eH1HUThmZMjRbuPS6tynlhcE2LFo9CRSF/ye62/Mr9xk3YYuD75ebAPShw4z99kRMI V1CRFueLPnYo1n9HhQMrHifuR1pGcZQnW0YXsQm4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Anton Blanchard , Michael Ellerman Subject: [PATCH 5.8 097/232] pseries: Fix 64 bit logical memory block panic Date: Thu, 20 Aug 2020 11:19:08 +0200 Message-Id: <20200820091617.529573410@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200820091612.692383444@linuxfoundation.org> References: <20200820091612.692383444@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Anton Blanchard commit 89c140bbaeee7a55ed0360a88f294ead2b95201b upstream. 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. Cc: stable@vger.kernel.org Signed-off-by: Anton Blanchard Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20200715000820.1255764-1-anton@ozlabs.org Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/platforms/pseries/hotplug-memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/powerpc/platforms/pseries/hotplug-memory.c +++ b/arch/powerpc/platforms/pseries/hotplug-memory.c @@ -27,7 +27,7 @@ static bool rtas_hp_event; unsigned long pseries_memory_block_size(void) { struct device_node *np; - unsigned int memblock_size = MIN_MEMORY_BLOCK_SIZE; + u64 memblock_size = MIN_MEMORY_BLOCK_SIZE; struct resource r; np = of_find_node_by_path("/ibm,dynamic-reconfiguration-memory");