Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4383592pxv; Tue, 29 Jun 2021 05:57:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlvzlTMzX4qTbxr/cpXq213+dpaW6pUk3BtCyP/C++MnXa3RQtaAaFZPZ8/OnweZY6CPT0 X-Received: by 2002:a17:906:3755:: with SMTP id e21mr30350709ejc.0.1624971451789; Tue, 29 Jun 2021 05:57:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624971451; cv=none; d=google.com; s=arc-20160816; b=ZgPrYyAXy95CTVkwu6X/lcc7hHc6XR+stIx/AUu9XHpFh4bNXGpa/1xgkB3NS41ggP hjUfFdjVMz9LS3qEKUqGvErywaZjyz7GSEKZcAqHpkoxVH5/AvYQyygA8mAciIkDMOwK YWtPSxNna/Tfxdde3ktTrNiPIgV2T8PTgYot603rfevuy/sC3Xr0GqazBoTJnoeBy9r0 gI7NYHHxOQvdBnHZ2j0NG4rFxgPMAVq9H+qy0oCNq1C8GiNnnfg1lRr4w8V/vHGfhgtt KsV3P0vCLg/8/wf6hFu0RyMRkJZ8DMLJX2nbTgswr9a/xjm6pygrUkMKrfNmRHt1hx5m Q6aw== 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; bh=of+30rYyxKv86z5b0Y5gZNJE5mPQKVcaRYmYNekbCpo=; b=WDB/6y7AysHCo0xKbsQ1vFnmKbFTMQNQ1wHyHZBNYLRsYFfLc/DEf9RRukCtyN/t6O 2WaDPyvAEM4ebnvaR2bU4sx6+eOk5SwKb1JvnfRiquA+IKEZnrTwGtJWuolM5sRsMQeW 8Lulljk3/MooTHks6Oo+Gueo9mwHCOwjxQ2zSQaRY6EPTw2LXfvYq8L+AcktE//NesDB qcNaZBILFtDV3fKj5yxxTuV93Bjl6YCOHz7iP1sGGQO09aKH28nDpA1EgC4Cv2T7jbZC fVDVWv3nm7orZjFT68KbI0zggo0ZPpWpV4KpBEga0VmEWxoqsaUKSAKj3G6dMid5Stq6 iI6A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h24si16736046ejl.97.2021.06.29.05.57.08; Tue, 29 Jun 2021 05:57:31 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233299AbhF2M4e (ORCPT + 99 others); Tue, 29 Jun 2021 08:56:34 -0400 Received: from muru.com ([72.249.23.125]:58584 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232498AbhF2M4a (ORCPT ); Tue, 29 Jun 2021 08:56:30 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id C6DF580FC; Tue, 29 Jun 2021 12:54:13 +0000 (UTC) Date: Tue, 29 Jun 2021 15:53:58 +0300 From: Tony Lindgren To: Mike Rapoport Cc: Mike Rapoport , linux-arm-kernel@lists.infradead.org, Andrew Morton , Kefeng Wang , Russell King , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-omap@vger.kernel.org, regressions@lists.linux.dev Subject: Re: [PATCH v2 3/3] arm: extend pfn_valid to take into accound freed memory map alignment Message-ID: References: <20210519141436.11961-1-rppt@kernel.org> <20210519141436.11961-4-rppt@kernel.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 * Mike Rapoport [210629 12:50]: > On Tue, Jun 29, 2021 at 02:52:39PM +0300, Tony Lindgren wrote: > > * Mike Rapoport [210629 10:51]: > > > As it seems, the new version of pfn_valid() decides that last pages are not > > > valid because of the overflow in memblock_overlaps_region(). As the result, > > > __sync_icache_dcache() skips flushing these pages. > > > > > > The patch below should fix this. I've left the prints for now, hopefully > > > they will not appear anymore. > > > > Yes this allows the system to boot for me :) > > > > I'm still seeing these three prints though: > > > > ... > > smp: Brought up 1 node, 2 CPUs > > SMP: Total of 2 processors activated (3994.41 BogoMIPS). > > CPU: All CPU(s) started in SVC mode. > > pfn_valid(__pageblock_pfn_to_page+0x14/0xa8): pfn: afe00: is_map: 0 overlaps: 1 > > pfn_valid(__pageblock_pfn_to_page+0x28/0xa8): pfn: affff: is_map: 0 overlaps: 1 > > pfn_valid(__pageblock_pfn_to_page+0x38/0xa8): pfn: afe00: is_map: 0 overlaps: 1 > > These pfns do have memory map despite they are stolen in > arm_memblock_steal(): > > memblock_free: [0xaff00000-0xafffffff] arm_memblock_steal+0x50/0x70 > memblock_remove: [0xaff00000-0xafffffff] arm_memblock_steal+0x5c/0x70 > ... > memblock_free: [0xafe00000-0xafefffff] arm_memblock_steal+0x50/0x70 > memblock_remove: [0xafe00000-0xafefffff] arm_memblock_steal+0x5c/0x70 > > But the struct pages there are never initialized. > > I'll resend v3 of the entire set with an addition patch to take care of > that as well. OK sounds good to me :) Thanks, Tony