Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp473126pxb; Mon, 8 Nov 2021 16:55:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJzoXVbIfLzKNoSFgQrkvZIeb1fmozW1wc287AiFW+71rRIj6TQe9qKrCAG4vUsyxrc/G8uv X-Received: by 2002:a05:6402:2692:: with SMTP id w18mr4524120edd.48.1636419351851; Mon, 08 Nov 2021 16:55:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636419351; cv=none; d=google.com; s=arc-20160816; b=QiEA8JSkEP6z0rFKqNvGK5GPPSFv8sZCaKzGLW9SeXrmaWj5KWI8gYu0fEn+Y6eo92 Xaoj98wjGS/G8VuUu/t6wrAq5Ud01Nj2+Z0R79JWa9/DRI0+NKW34A4ujXv9Se9Zvc5g xSQFAImAp9tgvLrUW368/G4FgKMnGufI+6zjI2d0rHedmIsNkM+dGhS8UcQPCl2FbMh6 70NwxkKtaZdxwFPESbr9wk4cMxYBWk3aZcuqIqwNArmmJ5O1pPjEMPBq0i9LxgL9F2wI tlQ9vl0+0/+jHIojwDIvhXxO1r++h2MHGTwr5fHu+xTcce3RaTzKaOuyIPiMtynzKBrG jvsQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=jc0gwrahbUXBGchzSO7YMn73+H6g1iIZAuk0kz/EYx4=; b=b4kH3WP9FYftnYCKkpLUYWBznQWP6m+SVhEskIiMyTArt4Kp6nn/7L0oto/1Z6o/It narzj4msZsf107SAAkG2pSYFet38X/rYnwjMBHEniYCA3nUdXTswBjk3L5dvo6IheV3+ sRrwfzLSYdQ9yfvFs3RW+P7j1OdkLsA4YjCqQKoon4VDLok5hCm0FiI9eWKUxBJJoH4q j06NIC4o8cqC5JU4oWONiH/IVOwGOCHapa0Bu58qz2CTlSJJ1qnksqt3A4db0A17+k+P /ZkOHa78kL6RM7e4ia/ZUnQISYj65aoI7gdz07cDzOi1wVa9lOT8TZUKfFBy4qyUnzJm cOKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=NxnDcgn5; 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 ht11si42133419ejc.333.2021.11.08.16.55.28; Mon, 08 Nov 2021 16:55:51 -0800 (PST) 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=NxnDcgn5; 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 S236549AbhKHTGq (ORCPT + 99 others); Mon, 8 Nov 2021 14:06:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236467AbhKHTGp (ORCPT ); Mon, 8 Nov 2021 14:06:45 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8B12C061570; Mon, 8 Nov 2021 11:04:00 -0800 (PST) Received: from zn.tnic (p200300ec2f3311008f2ddbd2a2570897.dip0.t-ipconnect.de [IPv6:2003:ec:2f33:1100:8f2d:dbd2:a257:897]) (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 419B11EC0464; Mon, 8 Nov 2021 20:03:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1636398239; 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=jc0gwrahbUXBGchzSO7YMn73+H6g1iIZAuk0kz/EYx4=; b=NxnDcgn5oT1vJj38T1+RGdJfzW4jyS1l3CmUXM8Vt8sTzSjSjdUOCKNptUiIt4eTWj48fd PbXz7i3SCBsYzz3xbyakXQ5N1bi56w7CYB6DLwWgVX3sH1KknlQ3PxbLIcFJkSNFxBVRMR 2UhQOK8mIDhlXnKjWqoKjTLmfwXrw50= Date: Mon, 8 Nov 2021 20:03:51 +0100 From: Borislav Petkov To: "Chatradhi, Naveen Krishna" Cc: linux-edac@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, mingo@redhat.com, mchehab@kernel.org, yazen.ghannam@amd.com, Muralidhara M K Subject: Re: [PATCH v6 1/5] x86/amd_nb: Add support for northbridges on Aldebaran Message-ID: References: <20211028130106.15701-1-nchatrad@amd.com> <20211028130106.15701-2-nchatrad@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 08, 2021 at 10:23:49PM +0530, Chatradhi, Naveen Krishna wrote: > Northbridges on CPUs and GPUs can be described using the elements in the > above structure. If you're going to describe *northbridges*, then your struct cannot be called system_topology... > I thought organizing the data in a structure would simplify the > initialization of cpus and gpus. Ehh, did you even read my mail where I tried to explain that sprinkling if (gpu) this else that all over amd_cache_northbridges() is not proper design? ;-\ > I will modify the  patch to enumerate gpu northbridge info only if there are > > gpu nodes with  pci_device to access the node_map registers. Why would you do that? What's the advantage? How about you answer my questions first so that we agree on the design first before you go and do things? Hmm. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette