Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3719480pxt; Tue, 10 Aug 2021 09:45:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNoywQisqyAl+9BKzCGSBny3um3fengS7phcz8kIOwyo+Sac8PR78kYqK5nOgoA9ZP4uex X-Received: by 2002:a05:6e02:810:: with SMTP id u16mr1229654ilm.236.1628613942025; Tue, 10 Aug 2021 09:45:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628613942; cv=none; d=google.com; s=arc-20160816; b=MNmyLN0RtvR6S+8OiRx+WOC6Z8Kz+lhnchjTRzuRnZcys/vfDcgUqxcxoUziJrZSPS cNTsstGwm7QG4VWDuw9N0bKLayfP9AFQPD9ldUmaUs37ODeo3vu/oXTuLLb74o0LTFz/ bHakV+SMJdlhLRRq1vQuZFEXanLwThv3Dlflk+Pg7jHel/fGgvAFRnulWXWX0vB/biPR Ux7y7/VP+w+tFMI1MSMhbKD6/hwGdgRX4hp488gIahphpPaUzC/NvltFcFbnFV4BtjKf AUuTirylMWgmqwuT4lAFiGM9sUAQvv8axKLrAtyWbeqevga61UgM3HYytTh893aRghJq SbmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=HoMj0mMO6xAUg5GMCZFVNlnJZBOz0xgUmuKeX+YmITo=; b=dCmdJ4/Klbf3QGeLKhiFRs5aGaIUxJtZ2rox9bzidJk36aHLD1+HlNWT3rU12aXslA aI5ifcy/GdYYfjxc8ktEBjDxcqDW5gOoPk283OfaYLBXtFzubHk4w7kFgfxTDrI/IJ7G lxSizoUm7lxyQNE+3Iio0W+IoUKZRfptfB357nHrIugvATiKG+NanHu5eppXVGuMFH1P uDHc5IbOnYsgOz+iVhdsHrBBzNIHA2HGjbQfujS/2KHw2W8NUBZmKj4x/8LItQFv03UP 1o97fbwkNXGxe1NG/8QnYHN7MKsJvhR846zWkBj98JVdVgp+NQ111M4drX+arBvTVdAg GrDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="c6kaag/K"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r3si4168393ile.126.2021.08.10.09.45.30; Tue, 10 Aug 2021 09:45:42 -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=k20201202 header.b="c6kaag/K"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238910AbhHJP7z (ORCPT + 99 others); Tue, 10 Aug 2021 11:59:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:43682 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236598AbhHJP7y (ORCPT ); Tue, 10 Aug 2021 11:59:54 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6275E60EDF; Tue, 10 Aug 2021 15:59:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628611172; bh=6RkQphdjckd+qub6KtWUN9S2yyFXyL19GDUrNRmexHA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=c6kaag/KlN8JjHM0wTc5OBUEnDUdCVTM9N752Dw9VdVerRdGY+BTKn9E/fwixQFTE V4x+MRkSAWLo4SNnpgGhJ9cl4hzakfKHFX7L9Cqfm/9+ttNYT/NRTOyHy84LX0oZd4 cYHmUVe8sZSG/Q7hcKZqGL6raK4NVkHDReOOx915njzEJO3pGaUEwm4CgYIzM86EGG gYj5XyNMc8aLt4xkXKY64Zkybs2B5ergNo2DRjsVs6O3ckMM1naaWudpoLP3k2XI0Y f+1DKjb7yktTCbv9YRRBcsV3Qbi6RaNSrFtM5Q/4ZIDVFSPs+ZTxOiLVOA+VjOqNav ffXp1DLf1ikZQ== Date: Tue, 10 Aug 2021 18:59:26 +0300 From: Mike Rapoport To: Geert Uytterhoeven Cc: Mikael Pettersson , Finn Thain , Linux Kernel list , linux-m68k , stable , Peter Xu Subject: Re: [BISECTED][REGRESSION] 5.10.56 longterm kernel breakage on m68k/aranym Message-ID: References: <31298797-f791-4ac5-cfda-c95d7c7958a4@linux-m68k.org> <380dd57-4b60-ac9c-508c-826d8ec1b0aa@linux-m68k.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 09, 2021 at 03:40:04PM +0200, Geert Uytterhoeven wrote: > CC Mike > > On Mon, Aug 9, 2021 at 3:32 PM Mikael Pettersson wrote: > > On Mon, Aug 9, 2021 at 3:59 AM Finn Thain wrote: > > > On Sun, 8 Aug 2021, Mikael Pettersson wrote: > > > > On Sun, Aug 8, 2021 at 1:20 AM Finn Thain wrote: > > > > > On Sat, 7 Aug 2021, Mikael Pettersson wrote: > > > > > > I updated the 5.10 longterm kernel on one of my m68k/aranym VMs from > > > > > > 5.10.47 to 5.10.56, and the new kernel failed to boot: > > > > > > > > > > > > ARAnyM 1.1.0 > > > > > > Using config file: 'aranym1.headless.config' > > > > > > Could not open joystick 0 > > > > > > ARAnyM RTC Timer: /dev/rtc: Permission denied > > > > > > ARAnyM LILO: Error loading ramdisk 'root.bin' > > > > > > Blitter tried to read byte from register ff8a00 at 0077ee > > > > > > > > > > > > At this point it kept running, but produced no output to the console, > > > > > > and would never get to the point of starting user-space. Attaching gdb > > > > > > to aranym showed nothing interesting, i.e. it seemed to be executing > > > > > > normally. > > > > My initial bisect was wrong. I tried reverting 8f34f1eac382 from > > 5.10.57 but that made no difference, so I re-ran the git bisect with > > all known good points pre-marked. This landed on: > > # first bad commit: [ce6ee46e0f39ed97e23ebf7b5a565e0266a8a1a3] > > mm/page_alloc: fix memory map initialization for descending nodes > > > > Reverting _that_ from 5.10.57 does unbreak that kernel. Indeed there is a problem with that commit in 5.10. The memmap initialization relies on availability of zone_to_nid() to link struct page to a node. But in 5.10 zone_to_nid() is only defined for NUMA, but not for DISCONTIGMEM. Mikael, can you please try the patch below: diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index 9d0c454d23cd..63b550403317 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h @@ -445,7 +445,7 @@ struct zone { */ long lowmem_reserve[MAX_NR_ZONES]; -#ifdef CONFIG_NUMA +#ifdef CONFIG_NEED_MULTIPLE_NODES int node; #endif struct pglist_data *zone_pgdat; @@ -896,7 +896,7 @@ static inline bool populated_zone(struct zone *zone) return zone->present_pages; } -#ifdef CONFIG_NUMA +#ifdef CONFIG_NEED_MULTIPLE_NODES static inline int zone_to_nid(struct zone *zone) { return zone->node; -- Sincerely yours, Mike.