Received: by 10.192.165.148 with SMTP id m20csp448075imm; Fri, 27 Apr 2018 01:34:00 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpevSIAK/Kl+feng8//1C6heA/l6WUD7j5bxhbVqV+ruKpRVHMZHNgordvETMk7zCqRbg1m X-Received: by 2002:a65:550b:: with SMTP id f11-v6mr1366586pgr.252.1524818040289; Fri, 27 Apr 2018 01:34:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524818040; cv=none; d=google.com; s=arc-20160816; b=is5/0CCti7B0gHeAp/DJ3w6oCyTaxDQ2G4Eb8XjOqZoy2F6aIIa+H/Z/86B14Kkt5o gC4dhEp0cs9y+riAopqLUOf3CB0nIG1mty2W973DFOUIkTrN1Bp+TAfdPyEFgrFvb4W7 ZO+6VF9n3bGXa5/SaS3XifPiPhTMO+e8KpqpBOdLDd8pzLS6hiv34HkoMLA91jzKFNTO AhohBJpeRYHs99SCLMGEEzN9biROEvMqXr83eIHiBRcbgekARZKt/AUdqNBHrN092dSG 0524wnMu2zqQWKVBLT9/+TGtkaAXwwvRPY/9apJ12akDCxk+XOcdg9TeSQtZyG4vXa9L Chhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=ZCjHsKB98ORiYrpcsPn/cKDruBDdR1L1vtn9+FTnAtg=; b=tZ8SYXPzneAq6gpFxwuag7Xr1nvGdUXo3moOxYfVjOrfVgl0Z92DefIS2X58tA95/K n7paerar6E84XO6lfJy0bYhhPG0ZBO/DLu6G9zCkvbIWaKYr9awDeiItgwLlWsAhYFlF kQeCM7S1huVVvqynWvYIhELEgQSHommnyx0hplWHlqWMgZA98vkP8M2tKDnMwv/Fvt7C qpPl1jjsI+7v54FNIUY6fQ6YvKBC0lSe2hi52a1FcHaqAxVLruaHZtKdLIFOWGlOd3df MscIK4tFOV7XhXxSXCfW46ufj3FsN5pNvKZAB3D0jfHFzmDs7TjIfQqBa7tPSv2aJvBq cN1g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b126-v6si791699pgc.579.2018.04.27.01.33.45; Fri, 27 Apr 2018 01:34:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757621AbeD0Icl (ORCPT + 99 others); Fri, 27 Apr 2018 04:32:41 -0400 Received: from mail.cn.fujitsu.com ([183.91.158.132]:41404 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757536AbeD0Icj (ORCPT ); Fri, 27 Apr 2018 04:32:39 -0400 X-IronPort-AV: E=Sophos;i="5.43,368,1503331200"; d="scan'208";a="39370077" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 27 Apr 2018 16:32:38 +0800 Received: from G08CNEXCHPEKD02.g08.fujitsu.local (unknown [10.167.33.83]) by cn.fujitsu.com (Postfix) with ESMTP id 9B04348AE929; Fri, 27 Apr 2018 16:32:33 +0800 (CST) Received: from localhost.localdomain (10.167.226.106) by G08CNEXCHPEKD02.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.361.1; Fri, 27 Apr 2018 16:32:33 +0800 Subject: Re: recent patch "x86/acpi: Prevent X2APIC id 0xffffffff from being accounted" To: Jan Beulich , CC: References: <5AE2CF8802000078001BF017@prv1-mh.provo.novell.com> From: Dou Liyang Message-ID: <12fd36d0-1678-ed57-fec3-c94b430bd23f@cn.fujitsu.com> Date: Fri, 27 Apr 2018 16:32:31 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <5AE2CF8802000078001BF017@prv1-mh.provo.novell.com> Content-Type: text/plain; charset="gbk"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.167.226.106] X-yoursite-MailScanner-ID: 9B04348AE929.A8F3E X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: douly.fnst@cn.fujitsu.com X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jan, At 04/27/2018 03:21 PM, Jan Beulich wrote: > Hello, > > I've just stumbled across this commit, and I'm wondering if that's actually > correct (I too have at least one system where such IDs are reported in > MADT): For offline/absent CPUs, the firmware may not know the APIC IDs The MADT table is not reasonable, the Local APIC entries(xAPIC/x2APIC) in MADT is not always correct as OS want. So, we should do this sanity check. > at the point MADT is built, so I think it is quite reasonable to put ~0 in > there. The ACPID spec specifically calls out that the IDs must not change > across sleep states, which implies to me that they may change across an > offline period of a CPU. IOW I think such entries still need to contribute to > the count of disabled CPUs. > Aha, there are no CPU devices which will map it's physical ID to the illegal number 0xffffffff, So it will never be used. BTW, Limiting the number of the disabled CPUs is also a goal. Thanks, dou > I notice a similar change has been done for the xAPIC case a while ago > by you, Thomas. > > Jan > > > > >