From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out30-124.freemail.mail.aliyun.com (out30-124.freemail.mail.aliyun.com [115.124.30.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 25B4738F24C for ; Wed, 13 May 2026 09:46:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778665605; cv=none; b=Mv+FwAdOaIiRK6682ZPdbjl8hIYgnAB+iQSB8LS/r99/Rrm1kBKQDYNEi7ntGlQ3dH1aFg+YssxMn4ksq2PlYQhPBB3Gv+bJMr+GceMOs8XYkx144zqf1zkXrO+PSOP69gckkk8FS4/wqR2+Re9iWmfUr/fgNDLqru3+/fmGvm4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778665605; c=relaxed/simple; bh=4cVrELoKgliQixmbiGLXq+TPi6bnZ+Pc7JhU4X8N52I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=F7QDM5Ro2Dv3IueQOuKpPLGvGp6LzdqJ84oz460iea6yUBUrY3kuVDM9LEgtjSkHmfgcq6alHFXUu4HmQWL0AJPXHDOhASuznEh9I2cl0tpZ3ldCgkz+0lfU4whWFq80iB2yeXNbNMhJf0tUsUFES5ukXHnxv4YOEE7a5suPIFk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=p/utiWlV; arc=none smtp.client-ip=115.124.30.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="p/utiWlV" DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1778665595; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type; bh=YJtUFTd6iY9ZibaH/hP7Zb3krsqEIIG+g+nc3BLdIVw=; b=p/utiWlVyxBwphTS6guN0Q418NIe7ZYj6FNoQTd56ICfYoXCX+paD/+Bs3fxLAOe3Wu2Fh4Gdl9rRmnyrAOTKlOKc8Rxa8I3BHFI2ew3NMg/AqgB2NMWY+dTO4IapKQNscakBpig9MUUkCz7Um46pUf/Welo9vPJWB8poz5zZdM= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033045098064;MF=feng.tang@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0X2tYYpP_1778665593; Received: from localhost(mailfrom:feng.tang@linux.alibaba.com fp:SMTPD_---0X2tYYpP_1778665593 cluster:ay36) by smtp.aliyun-inc.com; Wed, 13 May 2026 17:46:34 +0800 Date: Wed, 13 May 2026 17:46:33 +0800 From: Feng Tang To: Greg Kroah-Hartman Cc: Sudeep Holla , rafael@kernel.org, Danilo Krummrich , Catalin Marinas , Will Deacon , David Hildenbrand , linux-kernel@vger.kernel.org, driver-core@lists.linux.dev Subject: Re: [PATCH RFC] arch_topology: Introduce nr_possible_packages Message-ID: References: <20260512150505.43871-1-feng.tang@linux.alibaba.com> <2026051214-supermom-brim-4608@gregkh> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Wed, May 13, 2026 at 09:35:30AM +0800, Feng Tang wrote: [...] > > And you don't have a user for this, so we can't verify how it actually > > works :( > > Good point. Internally we have some PMU driver using this, but the HW is > not public and the drive hasn't been posted yet. > > As for validation, we tested on production 1P platform, internal 2P > platform, and QEMU's multi-socket case. > > I checked a production arm64 2P platform 'Kunpeng 920', and from the > output of "cat /sys/devices/system/cpu/cpu*/topology/physical_package_id", > the patch should work fine. I don't have root right of it yet, will try > to really run the patch on it. Just tried 7.1-rc3 + this patch on the 2P arm64 'Kunpeng 920' server, and it showed the correct package number: "[ 0.011284] ACPI: System has 2 Package(s) detected" Thanks, Feng