lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e149e79446be4ed99178eedda3e8a674@huawei.com>
Date: Wed, 24 Apr 2024 16:35:54 +0000
From: Salil Mehta <salil.mehta@...wei.com>
To: Marc Zyngier <maz@...nel.org>, Jonathan Cameron
	<jonathan.cameron@...wei.com>
CC: Thomas Gleixner <tglx@...utronix.de>, Peter Zijlstra
	<peterz@...radead.org>, "linux-pm@...r.kernel.org"
	<linux-pm@...r.kernel.org>, "loongarch@...ts.linux.dev"
	<loongarch@...ts.linux.dev>, "linux-acpi@...r.kernel.org"
	<linux-acpi@...r.kernel.org>, "linux-arch@...r.kernel.org"
	<linux-arch@...r.kernel.org>, "linux-kernel@...r.kernel.org"
	<linux-kernel@...r.kernel.org>, "linux-arm-kernel@...ts.infradead.org"
	<linux-arm-kernel@...ts.infradead.org>, "kvmarm@...ts.linux.dev"
	<kvmarm@...ts.linux.dev>, "x86@...nel.org" <x86@...nel.org>, Russell King
	<linux@...linux.org.uk>, "Rafael J . Wysocki" <rafael@...nel.org>, "Miguel
 Luis" <miguel.luis@...cle.com>, James Morse <james.morse@....com>,
	Jean-Philippe Brucker <jean-philippe@...aro.org>, Catalin Marinas
	<catalin.marinas@....com>, Will Deacon <will@...nel.org>, Linuxarm
	<linuxarm@...wei.com>, Ingo Molnar <mingo@...hat.com>, Borislav Petkov
	<bp@...en8.de>, Dave Hansen <dave.hansen@...ux.intel.com>,
	"justin.he@....com" <justin.he@....com>, "jianyong.wu@....com"
	<jianyong.wu@....com>
Subject: RE: [PATCH v7 11/16] irqchip/gic-v3: Add support for ACPI's disabled
 but 'online capable' CPUs

>  From: Marc Zyngier <maz@...nel.org>
>  Sent: Wednesday, April 24, 2024 4:33 PM
>  To: Jonathan Cameron <jonathan.cameron@...wei.com>
>  Cc: Thomas Gleixner <tglx@...utronix.de>; Peter Zijlstra
>  <peterz@...radead.org>; linux-pm@...r.kernel.org;
>  loongarch@...ts.linux.dev; linux-acpi@...r.kernel.org; linux-
>  arch@...r.kernel.org; linux-kernel@...r.kernel.org; linux-arm-
>  kernel@...ts.infradead.org; kvmarm@...ts.linux.dev; x86@...nel.org;
>  Russell King <linux@...linux.org.uk>; Rafael J . Wysocki
>  <rafael@...nel.org>; Miguel Luis <miguel.luis@...cle.com>; James Morse
>  <james.morse@....com>; Salil Mehta <salil.mehta@...wei.com>; Jean-
>  Philippe Brucker <jean-philippe@...aro.org>; Catalin Marinas
>  <catalin.marinas@....com>; Will Deacon <will@...nel.org>; Linuxarm
>  <linuxarm@...wei.com>; Ingo Molnar <mingo@...hat.com>; Borislav
>  Petkov <bp@...en8.de>; Dave Hansen <dave.hansen@...ux.intel.com>;
>  justin.he@....com; jianyong.wu@....com
>  Subject: Re: [PATCH v7 11/16] irqchip/gic-v3: Add support for ACPI's
>  disabled but 'online capable' CPUs
>  
>  On Wed, 24 Apr 2024 13:54:38 +0100,
>  Jonathan Cameron <Jonathan.Cameron@...wei.com> wrote:
>  >
>  > On Tue, 23 Apr 2024 13:01:21 +0100
>  > Marc Zyngier <maz@...nel.org> wrote:
>  >
>  > > On Mon, 22 Apr 2024 11:40:20 +0100,
>  > > Jonathan Cameron <Jonathan.Cameron@...wei.com> wrote:
>  > > >
>  > > > On Thu, 18 Apr 2024 14:54:07 +0100 Jonathan Cameron
>  > > > <Jonathan.Cameron@...wei.com> wrote:
>  
>  [...]
>  
>  > > >
>  > > > > +	/*
>  > > > > +	 * Capable but disabled CPUs can be brought online later.  What about
>  > > > > +	 * the redistributor? ACPI doesn't want to say!
>  > > > > +	 * Virtual hotplug systems can use the MADT's "always-on"  GICR entries.
>  > > > > +	 * Otherwise, prevent such CPUs from being brought online.
>  > > > > +	 */
>  > > > > +	if (!(gicc->flags & ACPI_MADT_ENABLED)) {
>  > > > > +		pr_warn_once("CPU %u's redistributor is  inaccessible: this CPU can't be brought online\n", cpu);
>  > > > > +		set_cpu_present(cpu, false);
>  > > > > +		set_cpu_possible(cpu, false);

(a digression) shouldn't we be clearing the enabled mask as well?

                                          set_cpu_enabled(cpu, false);


Best regards
Salil

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ