Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2567009rdb; Mon, 12 Feb 2024 08:50:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXiIuBUagMBlmF+dg5EK1wK9rbLEeE0KUjj+ZKbvvhScLV9S3+vUlD4hNOZyTietiCyUA3K4jk2ZkDxCCam/9T8NozCpxbxGIZ3mk9rcw== X-Google-Smtp-Source: AGHT+IHViFT2VLdSWHemUkv/7U2h1ur6oyRbywmON3SW3QSl/i36MQFxL6E+nfivzgT89MOl7V3i X-Received: by 2002:a17:90a:17a2:b0:295:f024:60d4 with SMTP id q31-20020a17090a17a200b00295f02460d4mr3730948pja.4.1707756632394; Mon, 12 Feb 2024 08:50:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707756632; cv=pass; d=google.com; s=arc-20160816; b=H+35duiZbUpH7A1oKpwppL0I/cS9MfqsxMw4d5IP+vh6JB8tT4iuPoRCJquMs/rAwN mGc/2kq1/W562dQ5I4+C/oL1xlINxyT4EjvVqqDx0QVtgHqWx0DnzxKE1IKQ/DNjR91R ynyq5/WVJwmQhVKJYyiM1r4JiG8hFxiyiyblmBjJVphbXMeceozUE5bqXA3Tpisd5PM2 kwRwiMMg5tO+WXV0ebjV3hjCeMYg5qLuVYU4p3/isB8mYcA9gdW0G0GAYGhCcgCYPkAb 1nZgSNpRdeITajGCttfWn0lmR//vTVNCNM5xz9XjjNfkS7hFNWNiW2XfGayGUPXjJ9sf mtrw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=G4Cjg5Perng8D2lFlhCaxnNUlZMDjAMNQP/UM0aHvBU=; fh=Grt8u3ltS+wDNHDhe/yrXFmB5QPv4+h0VKcg1S/4yTo=; b=gF0VxMW2mUCTbZKBU5ocasOX5Bw0XoKxd9q7YSht+k8LyD8s9pLoO+lzthpadYLn++ pFqLyyVZowaSDJd4ql3ssnQkZooubUzt2p3y6k7pMK7YAn50UScrnNRUbdliUIYntIA7 NCvcELSXd1WSRrvaAzo4jV/tmH9iMzyT25/7ekcHgrFJY/4A7OBjAOB59IeXb3l2H0bQ aKS7SgRnYAXJFdK+5yZiSFaRXdcd9nELsNAdYg1c7uyECGC5QredRA+HuM+YwLiFUGJF 0VIRF+f1R/swBxnxIDl+3e7375KBEmRI0FQHOUOSDHYoJDDJl50aqpcZhi4lX1mxUYd8 lTpg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=ZJVUbtV2; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-61999-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61999-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de X-Forwarded-Encrypted: i=2; AJvYcCVcY/UfMwpNJCiWNu5JTuCoD68zd8kI7rtPV1eswqWy4s6bFvRGavziiSh/DHdjzwdqTVXd7zDhLno8oqHJmdu43zyc9VANZboV4dZYeQ== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id y20-20020a17090ad71400b0028b21dd5308si535181pju.37.2024.02.12.08.50.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 08:50:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61999-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=ZJVUbtV2; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-61999-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61999-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 8CF10B24709 for ; Mon, 12 Feb 2024 16:44:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 148C03D3BD; Mon, 12 Feb 2024 16:40:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="ZJVUbtV2"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="8gIZXnR5" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 C7D5A3FB1F for ; Mon, 12 Feb 2024 16:40:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707756056; cv=none; b=CmTYTe1FxsTJh9QXSUvsRV4oezaeDKi3f22k/11f/JtjB8Ku5rjAkbWVwbzYT8CpHJ1G3/TNtx0zXv49/iI9xs62zGxyTtL4jm8WefmB03LfONzpLo5P8HZw7WWN7GdzObWKd2FlIwmM95u8uyg7mwTGR48iPWhDV+qEYdkug3o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707756056; c=relaxed/simple; bh=yHx9btOFGYnx+HbYbVOZNhA96GXQPGCwiMAQ2+tOCig=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=gh6KwCkrLj/YPsuHmQ5cCzGS+Kcq39cssFZ5qZegXGKqBz5/j8gaHUk06shaa59oEhqemkAAb6MBKdKDYjaO74nys0AMILYYQhtvJPnruG+uxXMMfN24LLl21vZBypcaN47LW7+eKi8eNo7MkdXdTwE1u5+Yqk5247YzXOAnBEM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=ZJVUbtV2; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=8gIZXnR5; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1707756052; 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=G4Cjg5Perng8D2lFlhCaxnNUlZMDjAMNQP/UM0aHvBU=; b=ZJVUbtV2otuFE8CO3JRHrKMNqvbGt5LRHtT/tq3AT9tRZsiBtANd1FlqaWaS1wv3nH72dm bkYUUdQWVZYAKn2Pxlx1/DycagZR095vdsz1skhXBMjLKf9xKFVvZhIUceD1sZjGQV51Mb Gd9E/8AE/9HG56ROL7EhOVhFTi0/bI8ciji5WA/0suL3QpkWxKEHiOFDUlUqZmhYhWZFXT jPEWe3gNqnyskir71gFnZYnCyrxoZ+4R450z94BBoAeqkEGysBgKNrHT5HrhuwYFt+yz2L WHzD+c1Z0Dg6sslFA1yacH8Vqy/61HKXITteRFkPHTTLoGhxL1frW4dT7KfjHg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1707756052; 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=G4Cjg5Perng8D2lFlhCaxnNUlZMDjAMNQP/UM0aHvBU=; b=8gIZXnR5qpumh7ghxTDtBkuN08pSh2NqValJuKTEdIue0BG/CffY8jMehnn/29DBUF/hve zm4ippMuxlrxqjCQ== To: "Zhang, Rui" , "linux-kernel@vger.kernel.org" Cc: "Raj, Ashok" , "mhklinux@outlook.com" , "arjan@linux.intel.com" , "ray.huang@amd.com" , "thomas.lendacky@amd.com" , "andrew.cooper3@citrix.com" , "Sivanich, Dimitri" , "Tang, Feng" , "kan.liang@linux.intel.com" , "Mehta, Sohil" , "peterz@infradead.org" , "paulmck@kernel.org" , "kprateek.nayak@amd.com" , "jgross@suse.com" , "andy@infradead.org" , "x86@kernel.org" Subject: Re: [patch v2 21/30] x86/cpu/topology: Use topology bitmaps for sizing In-Reply-To: <87fryjhmjs.ffs@tglx> References: <20240118123127.055361964@linutronix.de> <20240118123649.739960607@linutronix.de> <7c8874d971c69fb4c22c1b771983f8d5109a9387.camel@intel.com> <87fryjhmjs.ffs@tglx> Date: Mon, 12 Feb 2024 17:40:52 +0100 Message-ID: <87mss5k54b.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Fri, Jan 26 2024 at 21:22, Thomas Gleixner wrote: > On Fri, Jan 26 2024 at 07:07, Zhang, Rui wrote: >> Say, on my Adlerlake platform, which has 4 Pcores with HT + 8 Ecores, >> cnta is 12, cntb is 16, and smp_num_siblings is set to 1 erroneously. >> >> I think we should use >> smp_num_siblings = DIV_ROUND_UP(cntb, cnta); >> here. > > Indeed. That's more than obvious. I pushed out a new version which addresses this and also the fallout Michael and Sohil reported: git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git topo-full-v3 I let the robot chew on it before posting it in the next days. Thanks, tglx