Received: by 2002:a19:ee0d:0:0:0:0:0 with SMTP id g13csp4627845lfb; Tue, 27 Apr 2021 02:57:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8Yr+EgiWDlG2FSpVsRkOWFAwBdU4MajXpzx9O+wmEJ827j8NwvVQ81ttpebkyndmUXWd+ X-Received: by 2002:a25:d750:: with SMTP id o77mr26573648ybg.442.1619517450186; Tue, 27 Apr 2021 02:57:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619517450; cv=none; d=google.com; s=arc-20160816; b=v6t9lW6w1N5MS/8iBQNWH9XclCinJ8VzzA4SrD7psczoHJnlkp5Nl3xu3SuTl22A79 wbL8SeLbtILDqfoaXqNcZDQ2b3iobMkC1iH8fgbANPH/XtEsqXbU0IzOzCcxj0movXGr 00xQfQ25WZx4jx0LLp6aeWeAXkz9QHGThrAUsflh/v4zHDX0iJNveIjZCZU9UhwaLqH9 8cz4AwncOmhkOgp8TjR2v60hvubUcieCPtHdsi/xRpds2SO+3aY1cUXAdkp49XsIPbwc /nsmLvdmB4pY22WEGZlgHnXEDqImF5lBmES2MAYACdabgpZVcb4vmBrSsAZzaGF0wQJg cUdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=NdOPgJLgsTuktuVTWGp1N3xlJm8UY9kHn5krS5lw/iE=; b=l6FoljNs+jNrsDbQCZDUJuhIHeYlk1/MlmzODWRAIeGrOqo90kBRATqCzvIbTJgA5+ hx4ClMBJ/YnwTi6JS7vk+E3fj6RHwB97Ikcne17NFXRuqEikJowGF23Ks49qxFUmB0uR XjH+oLczNfIok3iLTqVrK0y+fE7TzuO9TYVjpmpehInv2Rh8mxxXN2JWPmlFmr+kBn3Y duIXPlnWrbqGp5H5UlG8KZEBMCeU9eyjaOdSO02kQ6JVCbA8bwJEEqLlYgN3mY5koCWg pGKGfRM+Idpbo6gqUTNQOG8q7970+j2tInn6700r62JUso9oHKibXbPcdka3EfFydJ2Y oRbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@redhat.com header.s=mimecast20190719 header.b=LHNFPtrp; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id s18si19166176ybp.425.2021.04.27.02.57.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Apr 2021 02:57:30 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@redhat.com header.s=mimecast20190719 header.b=LHNFPtrp; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1]:32776 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbKTB-0005bi-K6 for alex.bennee@linaro.org; Tue, 27 Apr 2021 05:57:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58370) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbKSq-0005ao-Iy for qemu-arm@nongnu.org; Tue, 27 Apr 2021 05:57:09 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:42156) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbKSo-0003Fb-V8 for qemu-arm@nongnu.org; Tue, 27 Apr 2021 05:57:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1619517426; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NdOPgJLgsTuktuVTWGp1N3xlJm8UY9kHn5krS5lw/iE=; b=LHNFPtrpSCb+CiNSw0XvyJi9/cm52bCwgctIKGaqkwFgWvT5QHmYiW2hW56PCnmjH5SyMO RyHsw9nSV/ruiEN4adglQvlj7VKXrAoORlZ4TUg12McpXfDx2AOLMreebgDS1fUV8CKNa9 e3SWwmPlc3EOOx35G6HgBetH953wj3Q= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-56-_aIKyt6eMMChpBt8stTPWg-1; Tue, 27 Apr 2021 05:57:04 -0400 X-MC-Unique: _aIKyt6eMMChpBt8stTPWg-1 Received: by mail-wr1-f70.google.com with SMTP id i43-20020adf90ae0000b029010a6364cdbaso3931184wri.18 for ; Tue, 27 Apr 2021 02:57:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=NdOPgJLgsTuktuVTWGp1N3xlJm8UY9kHn5krS5lw/iE=; b=IISRKWd6cekNANladi3oDHOiclURHQIRNy93oPK64tnmlPRynpFsuDnJbvHNO3L6YM 1sFKAtRbp7ozG2gisIow2t5aHIhm4QJTyz0fCq/UTm4SzLSXGHDAcWn9ptPyKlkyMWa5 15qN6tiXWhiaVlmLFYGJdi4dRtGyDqWLQot4Aw6PEx7NRxSv66FIdx+YGPV2O8Ym+TqH 1pizAroOKMQzTnraXGp0/wM4XDH3tC8Zr6Ke5EkXmTAKqC/XZFN8PMQRCSRl9tagTmzH Noqi1z9Wy40pxwdLl4UDhMlzWLgeTrHmf7E0vRmapmWD4XwIG5NjLNVWtESgGp/Ou64F 1xXw== X-Gm-Message-State: AOAM533jscaJFDAWObln07BUSp0UD6ynrficfuyxs/8mafeOaPQJkir7 gJH1mAD0r60CI0xusrMx+Wqqn9gZmXimyC9mqSppHjzknnpyUM2JAl0oqGausgoNR502bk8NOX2 QNmBR3TXKrFmA X-Received: by 2002:a05:600c:228a:: with SMTP id 10mr24464191wmf.115.1619517423587; Tue, 27 Apr 2021 02:57:03 -0700 (PDT) X-Received: by 2002:a05:600c:228a:: with SMTP id 10mr24464155wmf.115.1619517423335; Tue, 27 Apr 2021 02:57:03 -0700 (PDT) Received: from [192.168.1.36] (39.red-81-40-121.staticip.rima-tde.net. [81.40.121.39]) by smtp.gmail.com with ESMTPSA id f7sm3125511wrp.48.2021.04.27.02.57.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 27 Apr 2021 02:57:02 -0700 (PDT) Subject: Re: [RFC PATCH 0/6] Introduce cluster cpu topology support To: Yanan Wang , qemu-devel@nongnu.org, qemu-arm@nongnu.org References: <20210331095343.12172-1-wangyanan55@huawei.com> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Message-ID: <13983bec-8b6b-4277-288a-e243d096bfb3@redhat.com> Date: Tue, 27 Apr 2021 11:57:01 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210331095343.12172-1-wangyanan55@huawei.com> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=170.10.133.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -29 X-Spam_score: -3.0 X-Spam_bar: --- X-Spam_report: (-3.0 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.219, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Barry Song , Peter Maydell , Andrew Jones , Eduardo Habkost , "Michael S . Tsirkin" , Richard Henderson , Shannon Zhao , Igor Mammedov , Marcel Apfelbaum , Paolo Bonzini , yuzenghui@huawei.com, wanghaibin.wang@huawei.com, zhukeqian1@huawei.com, Jiajie Li Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-arm" X-TUID: UBeyk5Ar3Arf Hi Yanan, On 3/31/21 11:53 AM, Yanan Wang wrote: > Hi, > This series introduces the cluster cpu topology support, besides now > existing sockets, cores, and threads. > > A cluster means a group of cores that share some resources (e.g. cache) > among them under the LLC. For example, ARM64 server chip Kunpeng 920 has > 6 or 8 clusters in each NUMA, and each cluster has 4 cores. All clusters > share L3 cache data while cores within each cluster share the L2 cache. > > Also, there are some x86 CPU implementations (e.g. Jacobsville) where L2 > cache is shared among a cluster of cores instead of being exclusive to > one single core. For example, on Jacobsville there are 6 clusters of 4 > Atom cores, each cluster sharing a separate L2, and 24 cores sharing L3). > About this series: > Note that, this series was implemented based on [3] and [4]. Although they > have not merged into qemu mainline for now, it's still meaning to post this > series to express the thoughts first. So a RFC is sent and any comments are > welcomed and appreciated. At a glance: tests/unit/test-x86-cpuid.c should be adapted to be generic (but still supporting target-specific sub-tests) and some aarch64 tests added. Similarly the ARM PPTT tables tested in tests/qtest/bios-tables-test.c. Otherwise, the overall series looks good and coherent, but it isn't my area :) Regards, Phil.