[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOnJCULYLBV0O+xrgnCkv6FgFC2wz0U54uYV7S5hkBfQf+7vRg@mail.gmail.com>
Date: Sun, 22 Mar 2020 20:03:17 -0700
From: Atish Patra <atishp@...shpatra.org>
To: Emil Renner Berthing <emil.renner.berthing@...il.com>
Cc: Atish Patra <atish.patra@....com>,
Albert Ou <aou@...s.berkeley.edu>, Gary Guo <gary@...yguo.net>,
Nick Hu <nickhu@...estech.com>,
Anup Patel <anup@...infault.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Mike Rapoport <rppt@...ux.ibm.com>,
Vincent Chen <vincent.chen@...ive.com>,
Palmer Dabbelt <palmer@...belt.com>,
Zong Li <zong.li@...ive.com>,
Paul Walmsley <paul.walmsley@...ive.com>,
Greentime Hu <greentime.hu@...ive.com>,
linux-riscv <linux-riscv@...ts.infradead.org>,
Bin Meng <bmeng.cn@...il.com>,
Thomas Gleixner <tglx@...utronix.de>,
Mao Han <han_mao@...ky.com>
Subject: Re: [PATCH v11 00/11] Add support for SBI v0.2 and CPU hotplug
On Sun, Mar 22, 2020 at 10:49 AM Emil Renner Berthing
<emil.renner.berthing@...il.com> wrote:
>
> Hi Atish,
>
> On Wed, 18 Mar 2020 at 02:12, Atish Patra <atish.patra@....com> wrote:
> >
> > The Supervisor Binary Interface(SBI) specification[1] now defines a
> > base extension that provides extendability to add future extensions
> > while maintaining backward compatibility with previous versions.
> > The new version is defined as 0.2 and older version is marked as 0.1.
> >
> > This series adds following features to RISC-V Linux.
> > 1. Adds support for SBI v0.2
> > 2. A Unified calling convention implementation between 0.1 and 0.2.
> > 3. SBI Hart state management extension (HSM)
> > 4. Ordered booting of harts
> > 4. CPU hotplug
>
> If it's any help I tried this series with both OpenSBI v0.6 and master
> (9a74a64ae08),
> and in both cases Linux found all four cpus. I can test the hotplug
> stuff too if you send
> me instructions. In any case you can add my
>
> Tested-by: Emil Renner Berthing <kernel@...il.dk>
>
Thanks for testing the patches. Here are the steps to online/offline a cpu.
To mark a cpu offline
$echo 0 > /sys/devices/system/cpu/cpuX/online
To mark a cpu online
$echo 1 > /sys/devices/system/cpu/cpuX/online
Here are the official kernel documentation.
https://www.kernel.org/doc/html/latest/core-api/cpu_hotplug.html
> /Emil
>
--
Regards,
Atish
Powered by blists - more mailing lists