Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5366410rdb; Wed, 13 Dec 2023 06:52:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IE52+znP/J2tmNIMa7tAhejrcgM3gtTXqouOIsGpqexAN10OZJ13d4pfJjDDT5bzp3HLyN/ X-Received: by 2002:a05:6a20:1455:b0:18f:97c:9266 with SMTP id a21-20020a056a20145500b0018f097c9266mr4704338pzi.75.1702479131857; Wed, 13 Dec 2023 06:52:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702479131; cv=none; d=google.com; s=arc-20160816; b=kYdwV/T+9ZPEdnLs5W0WHFGTnQ6i4j1RvOTucUp7AX1bvIFnj01RZ6TqyspqFTyyet 7ETIbVtbgVFvi18wqDEzAC+eJ2kyXAd+WZU142SYzXcgnQWjOgzDsK+rjo6TVEO9cQDO 1QaDuUgW3InUVSgsbAq0TjH8JzJBn336i6dS3Z1h64NEJpBDTqP9fm2AxIb++BXWMtUk F8l7V3p0Ec7hmCGTIKfy7QQcoS16lzSCOpeBfX/0GiJp9KPNLkChK9qQoJBACRCKdgjt vp2eo5s5Qdwrxnf73mpu1cdXJvluFDKllVLIDMN8Q/hSFNibQ8S+vuEYrDeLjQStyn5K f9bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=JHe6ZT6IqHXuvZfN2Kkv8LYZ39KD28BsElvHGdR2yLk=; fh=8PEnEJbSSN6qANKTfu7aOx+qngjtgvA8iil644W4m5M=; b=Zp6wcZxrTKZn3NVKdwPbAyNjOJhnU2BOqmg44Y3mG6Kbec3X82kYJ8oSiDftvw+W2Y UvbFKkdI7n0D2bVnSDXlWGic5BNYUR/zG1ouz1syUzXdmc2Htvet4JC0ZJJv0t6oYNoi KML2EsWiiW1vGVzBDPSX/WsCoJ19J7k7sH146oTYYo+a+LB2ud2IhQrdoB2pKxJLwVmp 7gC+j41IOxNvFTLQE4OM1GMQvDySc1djyxhfjtkaKxGNjNqqrRZi8uf++1t8W97SYVWo g5pFjYh2NkUGls1sfXlBHNVrrgl88tHYuiL9ca5b4Ur0mqDkJ+JYILEahJ1Me+Tjd0Ff 05oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=xMCS46Rk; dkim=neutral (no key) header.i=@linutronix.de header.b=XZ+HChB4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id e6-20020a654786000000b005c660ba30a7si9385895pgs.512.2023.12.13.06.52.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 06:52:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=xMCS46Rk; dkim=neutral (no key) header.i=@linutronix.de header.b=XZ+HChB4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 846FD8075938; Wed, 13 Dec 2023 06:51:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1441802AbjLMOvB (ORCPT + 99 others); Wed, 13 Dec 2023 09:51:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378944AbjLMOvA (ORCPT ); Wed, 13 Dec 2023 09:51:00 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B3B993; Wed, 13 Dec 2023 06:51:02 -0800 (PST) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1702479060; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=JHe6ZT6IqHXuvZfN2Kkv8LYZ39KD28BsElvHGdR2yLk=; b=xMCS46RkFqf5k2sd7I0D5MPvvAB63Omcbg8KLgVk2SQU7Ghd1CZw/ElA3/FOQt9X1UGnJn 6U+4YO70gazL6yuOO8oelZ79FjJU6HDxDAqifYzSuEtPn3skyg0kJqCOEGOmX5bZqoQebL 0VvVtQ/34lXz5afr0fWZWMYVBt4P1veJqfSC0Bodins7HhOHyETaQ9eXNzl1tUrCGxsbuR wl4HpmKpDljPQ6ZLzQmmxnPZOxb+n4i1Ia1Wl3GQZzuN8S39tpZv3TKuV4kCjv/mZPr8b8 RBp7hXsGw+M3j83dEIXn4bmn9S6zM4KEQ7EOhOLSigCXc11Wx1096MrpFysiyA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1702479060; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=JHe6ZT6IqHXuvZfN2Kkv8LYZ39KD28BsElvHGdR2yLk=; b=XZ+HChB4RPHfbor4Q/YW7pwBZoCQviihzZCHu8++ftZ3wCiy3NX7Or9ivo25GQwo8/o5hP sapuqCrsi4G2GLCw== To: "Zhang, Rui" , "jsperbeck@google.com" , "tip-bot2@linutronix.de" Cc: "andres@anarazel.de" , "peterz@infradead.org" , "linux-kernel@vger.kernel.org" , "linux-tip-commits@vger.kernel.org" , "x86@kernel.org" Subject: Re: [tip: x86/urgent] x86/acpi: Ignore invalid x2APIC entries In-Reply-To: References: <87ttonpbnr.ffs@tglx> Date: Wed, 13 Dec 2023 15:51:00 +0100 Message-ID: <878r5yp357.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 13 Dec 2023 06:51:11 -0800 (PST) On Wed, Dec 13 2023 at 07:39, Zhang, Rui wrote: > Yeah, I agree. > > I have posted a patch to do more strict check > https://lore.kernel.org/all/20231210143925.38722-1-rui.zhang@intel.com/ > in case there are some weird cases that LAPIC fails to probe any > enabled CPU and we also lose the X2APIC cpus. The return value of acpi_register_lapic() is not really useful. It returns an error if 1) the number of registered CPUs reached the limit. 2) the APIC entry is not enabled #1: any further X2APIC CPU will be ignored #2: the return value is bogus as the CPU is accounted for as disabled and will eventually lead to #1 In fact even 'disabled' entries are valid as they can be brought in later (that's what "physical" hotplug uses) The topology evaluation rework gets rid of this return value completely, so I really don't want to add an dependency on it. Thanks, tglx