From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755649Ab1HRPKH (ORCPT ); Thu, 18 Aug 2011 11:10:07 -0400 Received: from nat28.tlf.novell.com ([130.57.49.28]:39426 "EHLO nat28.tlf.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751319Ab1HRPKF convert rfc822-to-8bit (ORCPT ); Thu, 18 Aug 2011 11:10:05 -0400 Message-Id: <4E4D47A30200007800051DAC@nat28.tlf.novell.com> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Thu, 18 Aug 2011 16:10:59 +0100 From: "Jan Beulich" To: "Tejun Heo" Cc: , , , , Subject: Re: [PATCH] i386/bigsmp: eliminate false warnings regarding logical APIC ID mismatches References: <4E4D27B40200007800051D40@nat28.tlf.novell.com> <20110818130424.GC20085@htj.dyndns.org> <4E4D36980200007800051D6E@nat28.tlf.novell.com> <20110818140216.GD20085@htj.dyndns.org> In-Reply-To: <20110818140216.GD20085@htj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8BIT Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>> On 18.08.11 at 16:02, Tejun Heo wrote: > On Thu, Aug 18, 2011 at 02:58:16PM +0100, Jan Beulich wrote: >> >>> On 18.08.11 at 15:04, Tejun Heo wrote: >> > On Thu, Aug 18, 2011 at 01:54:44PM +0100, Jan Beulich wrote: >> >> Fix this (for the time being, i.e. until x86_32_early_logical_apicid() >> >> will get removed again, as Tehun says ought to be possible) by >> >> overriding the previously stored values at the point where the APIC >> >> driver gets overridden. >> > >> > Hmmm... how about just removing the WARN_ON() in setup_local_APIC()? >> > We already don't depend on the value so just overriding it isn't >> > dangerous at all. >> >> I was not able to prove for myself that all of the uses of >> early_per_cpu(x86_cpu_to_logical_apicid, ...) are actually only >> possible to be hit after setup_local_APIC(), so I can't really >> propose a patch like this. > > Hmmm... the only thing it can break is numa affinity of static percpu > areas (it doesn't even affect that anymore), which didn't work at all > on i386 before and keeps to not working for those exotic apic machines > anyway. Silencing the warnings wouldn't hurt anything at all. If > you're still concerned that something legitimate might trigger it, > wouldn't converting WARN_ON() there to printk_once() be enough? That > doesn't change the behavior at all sans lesser noise. That might be reasonable to do, yet I still think that changing what got produced with by the older APIC driver to what the new one would have produced when the driver gets changed is more consistent than just printing something, until the method in question is gone altogether. Jan