Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3933117ioo; Wed, 25 May 2022 10:57:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWH+LrbGBvM2DNUxtHcAntyQ14lIu3Ggf2Q6qPDqc9zOxU96zwGWHqQ9Aj3RJE5ksvBn3V X-Received: by 2002:a05:6402:2382:b0:42b:7fec:1abf with SMTP id j2-20020a056402238200b0042b7fec1abfmr10930648eda.111.1653501435842; Wed, 25 May 2022 10:57:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653501435; cv=none; d=google.com; s=arc-20160816; b=EMc5z+I+pIicIOv8prajANEH8CBEtnraleqXIt6byBUg5WYqdYQyWEo0QSTsJuiHjI 1l08nMNSyHijito9yN1iAYKnvl/lrNH0RbdGnhsB4oyJhrLHqAzdP+/2iu1uFj7WHuJh LEo1MaCswtWiexDWaZ3VNbn0vwz3qJ6tUDvnvrkhMxe3TwS1McaPF/tZRa/Yw+AgtGlC vz/7hO4lTQUky8qV4Yd6gIB3jCKDMVnKbjoiSoRUHkYyX7b6TmwQdJZJCr9Gfn8TriAe Of5/q5rDvUQwvQRdPrMnw3OvXbEywUQcDP7XQPOAV3lXxMdU8nx6cpUhSTWC9vuClLkg Tcdw== 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=7RYa86+kofdPyPOosnc2LwIS7NyKpnDpwm7WGqKsOdU=; b=kg9BFNkh84DlV94kFN49zC12bF9ddVnEC2oamYeps9pSjueI/ECLvLJTvEd9YP5gwD d9RPFPENusaAyhsRp9SvvBnf2UgcyMLVuAAuki3cAgOt8wYml/9dzRywloHnELmNcOlU mQbVnwHvKOKVbjENs22HPRo1ZJ2Y5AS7TwV5O2f3kuN869ANF4k63ojtbnFkB4XxqS+5 6MTvOoXsKR27luS3mjHJbklbcDDVcGil+G+BEjFbdzyLr6Dv6yk2zmFqzOC7Hb0MTPUj a/uOEcjtap1110tkTIwlszq7EVBjho57YhUaw5ejhM8CeGFbDZiBis6hvW4IwJydq1BU 1bYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i2-20020a05640200c200b0042601e4fe63si11406068edu.197.2022.05.25.10.56.49; Wed, 25 May 2022 10:57:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241304AbiEYLXq (ORCPT + 99 others); Wed, 25 May 2022 07:23:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241512AbiEYLXn (ORCPT ); Wed, 25 May 2022 07:23:43 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A23899CF17 for ; Wed, 25 May 2022 04:23:39 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1C66A23A; Wed, 25 May 2022 04:23:39 -0700 (PDT) Received: from wubuntu (unknown [10.57.65.214]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5571B3F70D; Wed, 25 May 2022 04:23:37 -0700 (PDT) Date: Wed, 25 May 2022 12:23:34 +0100 From: Qais Yousef To: Mel Gorman Cc: Andrew Morton , Nicolas Saenz Julienne , Marcelo Tosatti , Vlastimil Babka , Michal Hocko , LKML , Linux-MM Subject: Re: [PATCH 3/6] mm/page_alloc: Split out buddy removal code from rmqueue into separate helper Message-ID: <20220525112334.k5ovoydr4iv3wuna@wubuntu> References: <20220512085043.5234-1-mgorman@techsingularity.net> <20220512085043.5234-4-mgorman@techsingularity.net> <20220523160921.k34jjbpd62bmc7fj@wubuntu> <20220524115543.GX3441@techsingularity.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220524115543.GX3441@techsingularity.net> X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/24/22 12:55, Mel Gorman wrote: > On Mon, May 23, 2022 at 05:09:21PM +0100, Qais Yousef wrote: > > On 05/12/22 09:50, Mel Gorman wrote: > > > This is a preparation page to allow the buddy removal code to be reused > > > in a later patch. > > > > > > No functional change. > > > > > > Signed-off-by: Mel Gorman > > > Tested-by: Minchan Kim > > > Acked-by: Minchan Kim > > > --- > > > > I see this splat when this patch is applied on 5.10.107 kernel: > > > > > > > I could resolve it by applying this patch: > > > > diff --git a/mm/vmstat.c b/mm/vmstat.c > > index 80c1e0a0f094e..92fb0c08296ef 100644 > > --- a/mm/vmstat.c > > +++ b/mm/vmstat.c > > @@ -957,11 +957,11 @@ void __inc_numa_state(struct zone *zone, > > u16 __percpu *p = pcp->vm_numa_stat_diff + item; > > u16 v; > > > > - v = __this_cpu_inc_return(*p); > > + v = this_cpu_inc_return(*p); > > > > if (unlikely(v > NUMA_STATS_THRESHOLD)) { > > zone_numa_state_add(v, zone, item); > > - __this_cpu_write(*p, 0); > > + this_cpu_write(*p, 0); > > } > > } > > > > 5.18 does not have __inc_numa_state() so it's likely you are missing > backports, probably f19298b9516c1a031b34b4147773457e3efe743b at minimum. Thanks Mel. Sorry it seems I stopped my analysis tad too soon. It seems the dependency chain is more than that commit. I couldn't backport it on its own. I just happened to be an accidental user of that kernel (it's an Android 5.10 tree). I did report it there too, but I thought (wrongly) this could benefit this upstream discussion. I'll take it there. Thanks! -- Qais Yousef