Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5462370pxb; Wed, 26 Jan 2022 12:33:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJw+SmBdK9QUaKykZfqzz+EhzRwHslHWrTJ65tNt6VPnXltofonbdTkMS1IrcmtF4loCD/oX X-Received: by 2002:a17:902:fe01:: with SMTP id g1mr400376plj.130.1643229209175; Wed, 26 Jan 2022 12:33:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643229209; cv=none; d=google.com; s=arc-20160816; b=DopRJvjQ4TVeGh15p+YVhkFBhfZN87HDD6Wz1SOLMSp77yiWhe6Cnrx6m8Vj7+UpCv 4P7VZGAjBkqVZbKP3LAFV+VMW7HsiRJz3foY5X/ylCbtQ93r9GiJURQk9Ix3liEeJ9HE h0zkozzKRsW2XKV6wVwdR6ZB/qKYo3snuc9E4gqUAnYzlpjBp8Z13Cx0J8ivax23JWZh dbNk6erJRCYxyGP9D+rnMwPqB0elHmZYmqWLCJdqhiRU9xI6o5mV1YqCMqVaSaCHkPIJ L7uyohp9EbKN4XTC46S9hQNCTiwOH0DAatdGiSstLDk9lAvDQWgeaREG9ByL/HARgO1j Cyhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=7Ed2si8RhKLaGz8C9MuLECJIsE/v5RcDpMHVTl4zgGc=; b=CDYPChlXm87CwxPbtASllTNnpXiSGFQiir+FfQgRkW4TD5pRVboPXYILpOekC3x1d+ os66XZ2Scq2YByzEfevsYKdP77GnirqjTUfjS5cMIgRq5HFLQYhBOxxKazk9FQCSTHRM 7zquRUQOBy/PTC8uroii1CpvbQTDuh2wa61VAnlne2VqEsQDy9GxnKALVTjHRxnZo0zA KiK3hPU8H+uGzt0lqr6Cl+6SsCjEgbHNeJjz5gY6FJKR4cGixGpC1vEX9fTaYpbyRkZO z0D678l0uZN4XhRbdc8B35OjUH/HrAIPAPhtiLBXAKRJqRM36+Nx1JJjd38fxLGi+GRn cWAw== 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 pi9si4348038pjb.57.2022.01.26.12.33.13; Wed, 26 Jan 2022 12:33:29 -0800 (PST) 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 S238447AbiAZI3A (ORCPT + 99 others); Wed, 26 Jan 2022 03:29:00 -0500 Received: from mail-ua1-f42.google.com ([209.85.222.42]:35802 "EHLO mail-ua1-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238420AbiAZI27 (ORCPT ); Wed, 26 Jan 2022 03:28:59 -0500 Received: by mail-ua1-f42.google.com with SMTP id m90so42138713uam.2; Wed, 26 Jan 2022 00:28:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7Ed2si8RhKLaGz8C9MuLECJIsE/v5RcDpMHVTl4zgGc=; b=DNLWF85/ouu2jA9Yls8umC98rNhhyoMfETu9JW86RVCIBQ0Gxaa0c5wrVN+YE1gI8u 75trojHHrPkLFWT+uWT3BC1CTzL7ff616rhIYcuGR6m1RpyK3rYIQpYB+ShkLkJSbpHr Kr70iW2JVwJ2oaRAFtDqOh0qo8ZwYY3VWfEXLGbXUxc5ZntDqeP3znU73riCfbiKl5US NJKFsm7+RUMp5aiqnWZgan31QLvOb8R809ONHrmao5dnxuZgYTRmw+UOicFtNn4X3Ljn H4PuLw085yS5ytWXaKXYY3kbZTc/XJz2RwQRFP1Kszlm8hvy83XS5a39XVRbETrZ8a0h IV5g== X-Gm-Message-State: AOAM5335xmT6hsR1L4AMCYVrRm8d7j3GQcVH0FD5Ib8jQiXk5YDxruNo qGZu9cqUdAGa4m6aq+iEMf0H0tkPSY0dMFTp X-Received: by 2002:a67:d194:: with SMTP id w20mr4621713vsi.39.1643185738651; Wed, 26 Jan 2022 00:28:58 -0800 (PST) Received: from mail-ua1-f45.google.com (mail-ua1-f45.google.com. [209.85.222.45]) by smtp.gmail.com with ESMTPSA id c128sm1909974vsc.5.2022.01.26.00.28.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Jan 2022 00:28:58 -0800 (PST) Received: by mail-ua1-f45.google.com with SMTP id w21so41991451uan.7; Wed, 26 Jan 2022 00:28:57 -0800 (PST) X-Received: by 2002:a05:6102:a04:: with SMTP id t4mr3799826vsa.77.1643185737329; Wed, 26 Jan 2022 00:28:57 -0800 (PST) MIME-Version: 1.0 References: <20220120090918.2646626-1-atishp@rivosinc.com> <20220120090918.2646626-7-atishp@rivosinc.com> <1AA3005C-E9C8-4E4B-900D-DD48B37CEA41@jrtc27.com> In-Reply-To: From: Geert Uytterhoeven Date: Wed, 26 Jan 2022 09:28:46 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 6/6] RISC-V: Do not use cpumask data structure for hartid bitmap To: Atish Patra Cc: Jessica Clarke , Atish Patra , Linux Kernel Mailing List , Anup Patel , Albert Ou , Damien Le Moal , devicetree , Jisheng Zhang , Krzysztof Kozlowski , linux-riscv , Palmer Dabbelt , Paul Walmsley , Rob Herring Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Atish, On Wed, Jan 26, 2022 at 3:21 AM Atish Patra wrote: > On Tue, Jan 25, 2022 at 2:26 PM Jessica Clarke wrote: > > On 20 Jan 2022, at 09:09, Atish Patra wrote: > > > Currently, SBI APIs accept a hartmask that is generated from struct > > > cpumask. Cpumask data structure can hold upto NR_CPUs value. Thus, it > > > is not the correct data structure for hartids as it can be higher > > > than NR_CPUs for platforms with sparse or discontguous hartids. > > > > > > Remove all association between hartid mask and struct cpumask. > > > > > > Reviewed-by: Anup Patel (For Linux RISC-V changes) > > > Acked-by: Anup Patel (For KVM RISC-V changes) > > > Signed-off-by: Atish Patra > I am yet to reproduce it on my end. > @Geert Uytterhoeven: can you please try the below diff on your end. Unfortunately it doesn't fix the issue for me. /me debugging... Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds