Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5970896ybe; Tue, 10 Sep 2019 11:31:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqx3FB0hKgyN1L1rX3mkEVzwFIOg/jGnOJ2XmiR7kMY6w8vMK5M0c6Sj7MpSa8Kw+16s5gZ5 X-Received: by 2002:a50:e719:: with SMTP id a25mr10811747edn.258.1568140301449; Tue, 10 Sep 2019 11:31:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568140301; cv=none; d=google.com; s=arc-20160816; b=v3ubwSBNnmNhWdADz9GaxGw/FuC/0JE56NCjN8oCacNYQFzY458gyiEpeOJmVJQmli ZMik658ipXNxifmQVvO1BtxnNyXuF/WX2CT2DajNb3/FKpBicYwzdMBOAh+3UhVDSaCs 9Ns9sXhxYtVzeUhfGKN79UQVID1LixBTV8o5UQBJ4Sall4FbIOvm8AUGMY4+ZAwxucBM BZMqDCgDOA0dafv7aCQ4TaXbFVhB+SjpaqL5eaMbqM9UMhvViMf+tZ8MgHitB/B1tm9z 0/VFWWz6mqfrfUJ+0pU2Pk195NeFZAtk2+toqxxRVr4m2fOxAFGPpO/6bBX4d+cvCWkQ Do9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Ex7SfPjpPGrCEdpGE4bZ7WX94CX3cwfuYEx/SwwYycY=; b=jHPKL7gx0LKmQOlHDmSN0oFDYxgMsYzPPjHeMezFkqEzBnPFtaORjuVCKC+ZtPeSia kSQ9tglFh8k/zdp9pJjLztinmFUQ2VSOiIHMrqX0AexkVZ+mEuAzCHS/6uaRTV+GMNzG pX70hhv47EXEMLlL2QkDe/FXrYZJzGW/Mwqjhp0zRztzV/f8JA4XMVCFUVG8tpyq4vn8 vxFqC5nFQiVEooE/5w4aUq8occMs80VFeiS6yhR7Z7Jfb31OKrvlLCzEO94Fm2dGPtHQ YwCIBljmG3/MlXM2rnuHejODEWz4t0628/ovjazU8HZjHp+zejfED5IAqFuLBwtsqZ/0 PMSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=kU+pQQQE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id y1si10089146edr.182.2019.09.10.11.31.16; Tue, 10 Sep 2019 11:31:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=kU+pQQQE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2388225AbfIIPbt (ORCPT + 99 others); Mon, 9 Sep 2019 11:31:49 -0400 Received: from mail.skyhub.de ([5.9.137.197]:59150 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727674AbfIIPbt (ORCPT ); Mon, 9 Sep 2019 11:31:49 -0400 Received: from zn.tnic (p200300EC2F063A00610A87590F9D5C05.dip0.t-ipconnect.de [IPv6:2003:ec:2f06:3a00:610a:8759:f9d:5c05]) (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 1A4DE1EC0691; Mon, 9 Sep 2019 17:31:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1568043104; 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=Ex7SfPjpPGrCEdpGE4bZ7WX94CX3cwfuYEx/SwwYycY=; b=kU+pQQQExRjbKXisXC64gqVB3LDU+uNq4O/QqPIADJbspOhwSUSCu/So98PUDjvCnHHfv2 RzYSJzK+ffABXh+RHznFAp8aJAzgxGczKyW5NBygz8a9AG8ptuezLhBGcO2suVI2rREypj u86ykC3UarqEHMzJ/lPNN8U7ubxcLlg= Date: Mon, 9 Sep 2019 17:31:37 +0200 From: Borislav Petkov To: "Ghannam, Yazen" Cc: "linux-edac@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [RFC PATCH v3 08/10] EDAC/amd64: Gather hardware information early Message-ID: <20190909153137.GA22225@zn.tnic> References: <20190821235938.118710-1-Yazen.Ghannam@amd.com> <20190821235938.118710-9-Yazen.Ghannam@amd.com> <20190829092241.GB1312@zn.tnic> <20190906203519.GN19008@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 06, 2019 at 08:49:52PM +0000, Ghannam, Yazen wrote: > All the fields are register values, and there are unique instances for > each channel. They can potentially all be different. Hmm, ok, that's 160 bytes more per node. And on !Rome it is wasted. Oh well, let's remain conservative then and allocate it only where needed. Btw, upon a second look, compute_num_umcs() can be made part of get_hardware_info() instead of having this as a separate function which gets called only once before probe_one_instance(). Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette