From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A11EAC0015E for ; Thu, 27 Jul 2023 02:11:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229721AbjG0CLI (ORCPT ); Wed, 26 Jul 2023 22:11:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229539AbjG0CLH (ORCPT ); Wed, 26 Jul 2023 22:11:07 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EA431FC2; Wed, 26 Jul 2023 19:11:05 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-686efdeabaeso317821b3a.3; Wed, 26 Jul 2023 19:11:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690423865; x=1691028665; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=cvO/SSTX/RJfVRWoJjupWhRCvEyYV01fI2j/IhxZ090=; b=eppjM8BTFRCYyNs0+hqqPoUamkRvgKF9wqRnAQS+P5B/oVn4bAOGdq2Un8JIas+D8s SIgDSfW7eTsPkqdA2c5L3Im3ovEeOgO296ZTPYd3WKkFjr+cFRmulU/R9+PZIU0hs/wm r63fCh+Gn/efTdFusPj9Ie46ffkFisSRd7P+hb6YHCRraf7+8LpFzK3Z/k+xdJ0Pvu7U qPNwKlmGJbyIE9V4ziRbPAgGsW4+XABZPuEVtUO8gBzIJyerHkGPhM5QVeYn2cPFfvos EAwcRpDlnvcOOt3rjBbCJd99K31tkwPSeTukgGZ6Aa+aPp776dJeHc3SOHmqxDIvgdoo 6Qqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690423865; x=1691028665; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=cvO/SSTX/RJfVRWoJjupWhRCvEyYV01fI2j/IhxZ090=; b=iMvYeFRmaCmXIizRVqGtuaSkXlLLu+zEsmM4XbNG5gBG4qja1Gn/eIh/DUkekVWgGh t1TdcxrehXqK//7EJRdEik6DBiPPwm4/A/5VGA/xcnz5rf0nKEPfTc1xwkX/z+OaYhC+ IzXqoO7HAUridi8zYlPhUh2w8jTQuQHhyg5SR8SsGc7KwozzO1UCVOnuInXId9Ql3kA+ cCOlBMLq5S706mROOOJLVvhpYGAJLBp36s6MD6meYOot4llxkmMRmdOTsZkZ/wWPHB0j LME+aQ5E3gVOo9DQPy0Qp96s0MpJAa2igJcPI7rv+2enAvk7cwvlHniSkGIaIPrR4O3m UvjQ== X-Gm-Message-State: ABy/qLbEgkFbIm2Ln/duWlmInhlwc8jLxD5CBBek9v/mkOyJ+VUAnXPM e317+gCebBqc4wHr4/fUikE= X-Google-Smtp-Source: APBJJlFaT25G5eZNuUB4df060xaex9EsMM+qAK+cT71OqCPtUmg5AAf2OcdDlzE2SUH5W0MHYG7TEg== X-Received: by 2002:a05:6a20:2591:b0:135:8a04:9045 with SMTP id k17-20020a056a20259100b001358a049045mr3878961pzd.1.1690423864850; Wed, 26 Jul 2023 19:11:04 -0700 (PDT) Received: from localhost ([216.228.127.130]) by smtp.gmail.com with ESMTPSA id j6-20020a170902c3c600b001b857352285sm221874plj.247.2023.07.26.19.11.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jul 2023 19:11:04 -0700 (PDT) Date: Wed, 26 Jul 2023 19:11:01 -0700 From: Yury Norov To: Guenter Roeck Cc: Jakub Kicinski , netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, Saeed Mahameed , Pawel Chmielewski , Leon Romanovsky , "David S. Miller" , Eric Dumazet , Paolo Abeni , Andy Shevchenko , Rasmus Villemoes , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , Tariq Toukan , Gal Pressman , Greg Kroah-Hartman , Heiko Carstens , Barry Song Subject: Re: [PATCH v3 8/8] lib: test for_each_numa_cpus() Message-ID: References: <20230430171809.124686-1-yury.norov@gmail.com> <20230430171809.124686-9-yury.norov@gmail.com> <68e850c3-bde7-45f2-9d9e-24aea1f2386b@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <68e850c3-bde7-45f2-9d9e-24aea1f2386b@roeck-us.net> Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org On Sat, Jul 22, 2023 at 08:47:16AM -0700, Guenter Roeck wrote: > Hi, > > On Sun, Apr 30, 2023 at 10:18:09AM -0700, Yury Norov wrote: > > Test for_each_numa_cpus() output to ensure that: > > - all CPUs are picked from NUMA nodes with non-decreasing distances to the > > original node; > > - only online CPUs are enumerated; > > - the macro enumerates each online CPUs only once; > > - enumeration order is consistent with cpumask_local_spread(). > > > > The latter is an implementation-defined behavior. If cpumask_local_spread() > > or for_each_numa_cpu() will get changed in future, the subtest may need > > to be adjusted or even removed, as appropriate. > > > > It's useful now because some architectures don't implement numa_distance(), > > and generic implementation only distinguishes local and remote nodes, which > > doesn't allow to test the for_each_numa_cpu() properly. > > > > This patch results in a crash when testing sparc64 images with qemu. Thanks Guenter for reporting. I'll remove the series until fixing the issue. Thanks, Yury