From patchwork Tue Jan 7 18:34:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Dolbeau X-Patchwork-Id: 1219010 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (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 ozlabs.org (Postfix) with ESMTPS id 47sh0S1hzNz9sPJ for ; Wed, 8 Jan 2020 05:36:08 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=dolbeau.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 47sh0R6Yx5zDqLs for ; Wed, 8 Jan 2020 05:36:07 +1100 (AEDT) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=209.85.221.66; helo=mail-wr1-f66.google.com; envelope-from=romain.dolbeau@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=dolbeau.org Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) (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 47sgyk1KRBzDqJT for ; Wed, 8 Jan 2020 05:34:37 +1100 (AEDT) Received: by mail-wr1-f66.google.com with SMTP id c9so543884wrw.8 for ; Tue, 07 Jan 2020 10:34:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8TA0V4Dca+gPuRlZOy6BfS0JhdBbxKB77ud06+vEv1g=; b=JhVqO6ZE+xDurfb75Ozv3FPZ/kvwTLE23UYzTRAdgx1Cb+4cYIBy8A8pMtJr9Qa8vJ pt0CJxGmrDdfKP4Dix1lq62u5cG5ajF7p1d8aClwCEmOrAZYhuXyNHjdvxuMlIBbDBMY eIqw5wl4DB7uatVS/46+rnyD77rzLjAxCnxosOMIFLDROftQGCqZ3dvdttk+3FU7cdJT PmId10UddtkFDx0bab8AXzMrSj0RFBezHbw6r2vCKsnLH7guKE2fjlGlwg9DcMd8c75z fVTBAu9E+Ifn2WWKAR3RW0ycl4BzNuTZx05Delpw/FY1My3Pud17+ZnoMNMj1JQVNu10 NfRg== X-Gm-Message-State: APjAAAXbCOgTIpCPreuketFDJQBKqsrirh/KWxCcSWfIkB1rG/xH35XV P2BkFklkmOwBAhCyLpJ9LX68srttyejt+mIYjB4= X-Google-Smtp-Source: APXvYqwH0ZzYWIYtj7UrX9+lnsGIA+1X401Xc311caiVJjpyomhFN1bGygg9RgmkFqv2I61D/V7VrLCH8akkjez4API= X-Received: by 2002:a05:6000:1047:: with SMTP id c7mr405581wrx.341.1578422074120; Tue, 07 Jan 2020 10:34:34 -0800 (PST) MIME-Version: 1.0 References: <87eexbk3gw.fsf@linux.ibm.com> <87mubxl82x.fsf@igel.home> <87immlkytp.fsf@igel.home> <20191214103213.309bfbbb1f9c50fe47e733d9@zonnet.nl> <709f10b0-6b7f-8de2-3fac-1f4f6350afaf@gmail.com> <113ee36c-684f-9201-aea8-8cd437b6d009@gmail.com> In-Reply-To: <113ee36c-684f-9201-aea8-8cd437b6d009@gmail.com> From: Romain Dolbeau Date: Tue, 7 Jan 2020 19:34:22 +0100 Message-ID: Subject: Patch for '5.3.7 64-bits kernel doesn't boot on G5 Quad' found (was: Re: PPC64: G5 & 4k/64k page size) To: Bertrand 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: "Aneesh Kumar K.V" , Jeroen Diederen , PowerPC List Debian , Andreas Schwab , John Paul Adrian Glaubitz , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Hello all, Great news: Aneesh sent me a patch that solves the problem on my G5 Quad :-) I don't know whether he considers it a 'workaround' or if it's the 'proper' patch for upstream, so beware. It's a one-liner so I attach it to this message: those affected can test it as well to confirm if that indeed solves the problem for them as well. If it is the 'proper' patch, I expect it should get into upstream pretty quickly. Then Debian should be able to trivially backport it to their PPC64 kernel, and the G5 will still be a great machine in 2020! Thanks everyone for your help in tracking down the bug & to Aneesh for finding a fix :-) Cordially, diff --git a/arch/powerpc/include/asm/book3s/64/mmu-hash.h b/arch/powerpc/include/asm/book3s/64/mmu-hash.h index 15b75005bc34..516db8a2e6ca 100644 --- a/arch/powerpc/include/asm/book3s/64/mmu-hash.h +++ b/arch/powerpc/include/asm/book3s/64/mmu-hash.h @@ -601,7 +601,7 @@ extern void slb_set_size(u16 size); */ #define MAX_USER_CONTEXT ((ASM_CONST(1) << CONTEXT_BITS) - 2) #define MIN_USER_CONTEXT (MAX_KERNEL_CTX_CNT + MAX_VMALLOC_CTX_CNT + \ - MAX_IO_CTX_CNT + MAX_VMEMMAP_CTX_CNT) + MAX_IO_CTX_CNT + MAX_VMEMMAP_CTX_CNT + 1) /* * For platforms that support on 65bit VA we limit the context bits */