From mboxrd@z Thu Jan 1 00:00:00 1970 From: Borislav Petkov Subject: Re: [PATCH v7 20/25] ACPI / APEI: Use separate fixmap pages for arm64 NMI-like notifications Date: Thu, 31 Jan 2019 14:38:42 +0100 Message-ID: <20190131133842.GK6749@zn.tnic> References: <20181203180613.228133-1-james.morse@arm.com> <20181203180613.228133-21-james.morse@arm.com> <20190121172743.GN29166@zn.tnic> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu To: James Morse Cc: Rafael Wysocki , Tony Luck , Fan Wu , linux-mm@kvack.org, Marc Zyngier , Catalin Marinas , Will Deacon , Dongjiu Geng , linux-acpi@vger.kernel.org, Naoya Horiguchi , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, Len Brown List-Id: linux-acpi@vger.kernel.org On Wed, Jan 23, 2019 at 06:33:02PM +0000, James Morse wrote: > Was the best I had, but this trips the BUILD_BUG() too early. > With it, x86 BUILD_BUG()s. With just the -1 the path gets pruned out, and there > are no 'sdei' symbols in the object file. > > ...at this point, I stopped caring! Yah, you said it: __end_of_fixed_addresses will practically give you the BUG behavior: if (idx >= __end_of_fixed_addresses) { BUG(); return; } and ARM64 does the same. > We already skip registering notifiers if the kconfig option wasn't selected. > > We can't catch this at compile time, as the dead-code elimination seems to > happen in multiple passes. > > I'll switch the SDEI ones to __end_of_fixed_addresses, as both architectures > BUG() when they see this. Right. Thx. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.