Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp304873pxk; Thu, 17 Sep 2020 03:40:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaxoSQRxzO6OAhN05g0SwODJwDK0hJmdqFkjpkA4kLPfh3EkLmfNRgJmRIX49RVqSgn2X3 X-Received: by 2002:a17:906:2e83:: with SMTP id o3mr31141437eji.47.1600339206430; Thu, 17 Sep 2020 03:40:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600339206; cv=none; d=google.com; s=arc-20160816; b=VGfUX5mArLrbYTOqQMgczEmUoKMu/a5oAch68jQvhfkWGPprH+Ox6iBQfygJSZoXvq 5rUO4VClwE4bhR6inmEUlYU/kOu69g1ejEgEBImVHiNxs+ww75fCRtZrGFHwNIPuVoPm sEWHApHzRh9UlIWV9hsWNFnubNjCeKRg0aSCn2EUShBZ5hgURalxxySGez7QcZNCC135 NWX7+nMLqONDaxSHyyz9cGuqsQTesKUIf8zJDCJ3E9EqO9aA3Rh2TVLgBP3modsqx/pH adB22OOlNL4uUcr+S4IyRKXboB8xoCz9mlw4OoeQwur/G6HyEKfYGxrwc214wTmU/XsI xBWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=giB45ale7a27o6cvoqhhZzCNQwbxgQJ9++MCfiKpbI0=; b=j7kPfVkRlES1l2i2ds79jSfy2gwszrxGA7PGNZhlVtY52PUngkI0WxM7h6J927pVej q9WxMgjKMFEEmorj4XOKZ+yXfDpfM5BNa56FpeX1SGU+PhtQYDF9Ur5Bo0bi3ljnlZH1 7G3s53qvnoTselI+TwM0u2VlVYkETnTnP/0QiXhOm619IUsBWMiB6VFAMx9O9hDHT8pY UJYrMNuxwzLLnfGbI8dt31XZV0Xxls6K/Wb6Nv+L9zux7O1V7aTRfSBRi50n41e4qlp4 68CgLnEA93KyOzZ0ZWT8ldDlPyj0RyIeCiac5eWG0Q6tmdU60gA6daB65b63ZpvbDdQM Tb6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=Rnwi1r+w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i25si13723390eds.204.2020.09.17.03.39.42; Thu, 17 Sep 2020 03:40:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=Rnwi1r+w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726631AbgIQKhu (ORCPT + 99 others); Thu, 17 Sep 2020 06:37:50 -0400 Received: from mail.skyhub.de ([5.9.137.197]:35386 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726410AbgIQKhp (ORCPT ); Thu, 17 Sep 2020 06:37:45 -0400 X-Greylist: delayed 7002 seconds by postgrey-1.27 at vger.kernel.org; Thu, 17 Sep 2020 06:37:35 EDT Received: from zn.tnic (p200300ec2f1053000730ae91ea344e59.dip0.t-ipconnect.de [IPv6:2003:ec:2f10:5300:730:ae91:ea34:4e59]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 5D0651EC027B; Thu, 17 Sep 2020 12:37:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1600339047; 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:in-reply-to:in-reply-to: references:references; bh=giB45ale7a27o6cvoqhhZzCNQwbxgQJ9++MCfiKpbI0=; b=Rnwi1r+wrSTxVoowS9WlyaAiUz+Zz7Ljp/osqVnyPqZZaSzYclgG+PyJmk7UVKLtWBG18n KuREpCutJG8S1B44iUCQLkxuO88K9/zqqFUBBq8EnyDBV0eC7b04Bf24iwTGxQveejTWjk mn2e6suBhLasfO3QM2w3ZYCv13X38Qc= Date: Thu, 17 Sep 2020 12:37:20 +0200 From: Borislav Petkov To: Yazen Ghannam Cc: linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, tony.luck@intel.com, x86@kernel.org, Smita.KoralahalliChannabasappa@amd.com Subject: Re: [PATCH v2 1/8] x86/CPU/AMD: Save NodeId on AMD-based systems Message-ID: <20200917103720.GG31960@zn.tnic> References: <20200903200144.310991-1-Yazen.Ghannam@amd.com> <20200903200144.310991-2-Yazen.Ghannam@amd.com> <20200909180647.GF12237@zn.tnic> <20200909201755.GB3014671@yaz-nikka.amd.com> <20200910101443.GC8357@zn.tnic> <20200914192039.GA39519@yaz-nikka.amd.com> <20200915083259.GC14436@zn.tnic> <20200916195152.GA3042858@yaz-nikka.amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200916195152.GA3042858@yaz-nikka.amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 16, 2020 at 02:51:52PM -0500, Yazen Ghannam wrote: > What do you think? Yeah, forget logical_proc_id - the galactic senate of x86 maintainers said that we're keeping that for when BIOS vendors f*ck up with the phys_proc_id enumeration on AMD. Then we'll need that as a workaround. Look instead at: struct cpuinfo_x86 { ... u16 cpu_die_id; u16 logical_die_id; and 7745f03eb395 ("x86/topology: Add CPUID.1F multi-die/package support") "Some new systems have multiple software-visible die within each package." and you could map the AMD packages to those dies. And if you guys implement CPUID.1F to enumerate those packages the same way, then all should just work (famous last words). Because Intel dies is basically AMD packages consisting of a CCX, caches and DF. We would have to update the documentation in the end to denote that but let's see if this should work for you too first. Because the concepts sound very similar, if not identical... Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette