Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751783AbcJHEO1 (ORCPT ); Sat, 8 Oct 2016 00:14:27 -0400 Received: from cn.fujitsu.com ([59.151.112.132]:18082 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751015AbcJHEOS (ORCPT ); Sat, 8 Oct 2016 00:14:18 -0400 X-IronPort-AV: E=Sophos;i="5.22,518,1449504000"; d="scan'208";a="11726170" Subject: Re: [tip:x86/apic] x86/acpi: Introduce persistent storage for cpuid <-> apicid mapping To: Thomas Gleixner References: <1472114120-3281-4-git-send-email-douly.fnst@cn.fujitsu.com> <4608f474-c49e-550b-90e2-c5f4c25e00f5@cn.fujitsu.com> CC: Yinghai Lu , Linux Kernel Mailing List , Ingo Molnar , "H. Peter Anvin" , "linux-tip-commits@vger.kernel.org" , Tony Luck From: Dou Liyang Message-ID: <866f5115-f472-d630-d73b-26eba88debad@cn.fujitsu.com> Date: Sat, 8 Oct 2016 12:14:11 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.167.226.106] X-yoursite-MailScanner-ID: D2C6C42BC52E.AC34D X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: douly.fnst@cn.fujitsu.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 417 Lines: 26 Hi tglx, At 10/07/2016 09:07 PM, Thomas Gleixner wrote: > On Thu, 6 Oct 2016, Dou Liyang wrote: >> >> + if (processor->id >= 255) { >> + ++disabled_cpus; > > Incrementing disabled_cpus here is simply wrong because 0xff is an invalid > local APIC id. So we can simply return -EINVAL and be done with it. > Yes, It is. >> + return -EINVAL; > > Thanks, > > tglx > > Thanks, Dou