Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp678316lql; Mon, 11 Mar 2024 14:07:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWPd/KOo8NBvU9kbOihv07I3tcrJsLdTS14KklbhRWxSLh92/T2TKPYTktq/QNx93dKQFZRTEy4Y7hWsJ+UCZJlSK0xN+x5Wi/2leR0KQ== X-Google-Smtp-Source: AGHT+IHmRulYVRm6UH3YiSaGwG6l4ugZsef+95j43FPCbEaBTmZJAzED/ZDaTdsALhzIFJLrazYH X-Received: by 2002:a05:6a20:12cb:b0:1a1:66cf:b0ef with SMTP id v11-20020a056a2012cb00b001a166cfb0efmr6361774pzg.49.1710191241077; Mon, 11 Mar 2024 14:07:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710191241; cv=pass; d=google.com; s=arc-20160816; b=MBHVsDFg0XqSk5MKXBjYzyb+GjYR4108dYF9WHHqNoVHP5BkIh5h+TOqxaelEIABY2 54fSNmFKTs4MuZ83tDX1+6r6XzByw5qTfN4s+GaOjP/RvDEY6lDuw8UhEDpCbc2CZgrd PmJFq5YFvVWKEjOsYTgwp25+MbaH7jGU2hCwZl0z7QqUgXe5zT0vB2Nxe17ZU3WIARKf 1fnL6DbStXwTaoS+6SKuDmJhd4t6wvOSykLdOSXwd1Um5yhIOW4dTDh1oc8fIW+Mkrtf 8WIvvrbZRVbMasQkeMtIjfL6ByyK8lVjGsEvPHSl8p5739pn5tJMo9gMxjtQ3hHHOrIa d4aA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:in-reply-to:subject:cc:to:from:date; bh=s/ozaYNUtKw6Qf0v1iIoV55VqQY9Ix86/T1SYVBG6/o=; fh=GG08ikPnOiYQd+zGsDQ0v46Cs/iMfSjPibbIRoqeJzU=; b=AET9u5TpVMsfvfIREbv5FACLG1tP6ZC+wiBI22VqvRTpc150p49zCBN2EPTtNcTSuN 7cx3RdwQ3iVILgMAthhH+SxVnW39kfsgxyJhR4V482j6ySzRRVmBszJvmAb3Sj+NXOh6 2HMTpuu/HNMNmuHIh9AsdOM2VBYyWYHI5NXMgwXjNklwM2h21vZAO+n1HIF/mG3n/5U7 MtxUi9NDifZeEf6aFx3GPXxLxcAhbhhD8qnWKVrSQ5j6wXYAUYXGHnuAXvPCIC9k6FcW Ozv8HH1qc/qGqE7uIsjFGteNddwkvtEsxak9mu7o3eHqD9TsD2LirDHzU/F1CRC9EgPM KXOw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-99546-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99546-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linux.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z22-20020a056a001d9600b006e6732f45f8si5605221pfw.341.2024.03.11.14.07.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 14:07:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99546-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-99546-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99546-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linux.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id BD90E281AC9 for ; Mon, 11 Mar 2024 21:07:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 79D8156772; Mon, 11 Mar 2024 21:07:13 +0000 (UTC) Received: from gentwo.org (gentwo.org [62.72.0.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CC45240866; Mon, 11 Mar 2024 21:07:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.72.0.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710191233; cv=none; b=oQnqLVsUF+Nybc6yT/USORrJqat5YP8GTkhyp9sP6JewLo+kd44upyQUt79Xe/kGjqtZRNCdbnKB0ACCwQ9ki3I/AaiQ1+JYkjUyBjvhbtRFWl2/UsRLsMqf9KpQ9N8V0OGH0E2PHxVqA7OrgDJbxlNzQ0zqizr8qlbtQHbofIs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710191233; c=relaxed/simple; bh=6OgwzesHM65rSXWdsn8D+IVbWJE6jtaACKtpcjezFqA=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=gdRBA/WLw5iqomMukOYiHCGmggXcvK83Qb+GYB1E4/gGDrD2M6IS4jEYQ53K2N902WUZ0R43SzkjAd/uOyH81zd1vWOKkcv7g2brL++gKRjfJhDi2ES7FwVUrUOT5pa1Gl25P1XzViywZZ5KhVhboAGMnirVTR2581MHtMrNLis= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com; spf=fail smtp.mailfrom=linux.com; arc=none smtp.client-ip=62.72.0.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=linux.com Received: by gentwo.org (Postfix, from userid 1003) id 84FD440940; Mon, 11 Mar 2024 14:07:04 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id 83FD84093E; Mon, 11 Mar 2024 14:07:04 -0700 (PDT) Date: Mon, 11 Mar 2024 14:07:04 -0700 (PDT) From: "Christoph Lameter (Ampere)" To: Catalin Marinas cc: Marek Szyprowski , Mark Rutland , "linux-pm@vger.kernel.org" , "Rafael J. Wysocki" , Viresh Kumar , Will Deacon , Jonathan.Cameron@huawei.com, Matteo.Carlini@arm.com, Valentin.Schneider@arm.com, akpm@linux-foundation.org, anshuman.khandual@arm.com, Eric Mackay , dave.kleikamp@oracle.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux@armlinux.org.uk, robin.murphy@arm.com, vanshikonda@os.amperecomputing.com, yang@os.amperecomputing.com, Nishanth Menon , Stephen Boyd Subject: Re: [PATCH v3] ARM64: Dynamically allocate cpumasks and increase supported CPUs to 512 In-Reply-To: Message-ID: <9352f410-9dad-ac89-181a-b3cfc86176b8@linux.com> References: <37099a57-b655-3b3a-56d0-5f7fbd49d7db@gentwo.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed On Mon, 11 Mar 2024, Catalin Marinas wrote: >> This patch landed in today's linux-next as commit 0499a78369ad ("ARM64: >> Dynamically allocate cpumasks and increase supported CPUs to 512"). >> Unfortunately it triggers the following warning during boot on most of >> my ARM64-based test boards. Here is an example from Odroid-N2 board: > > I spent a big part of this afternoon going through the code paths but > there's nothing obvious that triggered this problem. My suspicion is > some memory corruption, algorithmically I can't see anything that could > go wrong with CPUMASK_OFFSTACK. Unfortunately I could not reproduce it > yet to be able to add some debug info. > > So I decided to revert this patch. If we get to the bottom of it during > the merging window, I can still revive it. Otherwise we'll add it to > linux-next post -rc1. I also looked through the opp source and I cannot find even anything that even uses the functionality changed by the OFFSTACK option. This could be an issue in the ARM64 arch code itself where there maybe an assumption elsewhere that a cpumask can always store up to NR_CPU cpus and not only nr_cpu_ids as OFFSTACK does. How can I exercise the opp driver in order to recreate the problem? I assume the opp driver is ARM specific? x86 defaults to OFFSTACK so if there is an issue with OFFSTACK in opp then it should fail with kernel default configuration on that platform.