Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5418618yba; Wed, 8 May 2019 13:02:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqx5svjAw0dpRYOCuSQjNcwT7BDy4ME0vqt+LKijbaUxwRX3OcqY4w9dhN+EGT6fClCqY7Ow X-Received: by 2002:a65:64c9:: with SMTP id t9mr49124007pgv.221.1557345760080; Wed, 08 May 2019 13:02:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557345760; cv=none; d=google.com; s=arc-20160816; b=CRBCq8//ufYvbuQYBcisFSawx0Ps4yajLEJsxWg9lKusOSmw5XVcWK11zVyLmaZnMc 34BPw0RVxTjFDLWTS8lO6z0vku+Gf/0TRTDK5UGuX7tWomanVdQRj3NuFHUrOs96aYM6 0q0vupULXXnjAw0joFVTZJm0jXJUGdLcny/EjPsM0CahWf840Z1HxUTs9BTQ6r8YhOYx rigaXOYbC+kHYyoTmgd8BMnKoJycs3iKkl2CSJ+y1X5Uu2OnTPR6Uy+BDXDHBxofI5OZ I44/S7VTf3FBkCIWYDwSF4s6+7K/rDiDwClpXCMq02L5zQedeKDAuh0/9PtGE0RTbmID yKvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=xt6kSgujPUBekFrqEm4E/0l9ZP4sNoTUR2oIeyK8NJk=; b=kxRfpXCDbNXNNZYrL+lZppCR3m+QGnx4GeM0a6GaHxGZQEoqZVbcAufYEb2jraOWCu GO53wqF/RpfkiOE5RpbFenpVLFbdX/SvQGwOjU1+m2bFFyi998kbY1evhfkBX1V+MCU0 FX4B7X8xulD6MTHRyFFKRy8zv/CQFlLJxTfG7XKb5E1J7u0k7Zj/iJKUCNpmDgWhGNuK JSE3DmxASdtf+cOo7DXh3NUZsFYd0nU/ceWdtJRg6ErwVNceJArkNfPRs/KywZMFJuQi 6NoZnUwW7i9O/aYKsqQcJ3GXEQCSzczdVxfGopLGtcNGYQmHhhOG629C/FrIq0wciw6p z90Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j71si1609327pgd.226.2019.05.08.13.02.23; Wed, 08 May 2019 13:02:40 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727849AbfEHTvd (ORCPT + 99 others); Wed, 8 May 2019 15:51:33 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:42676 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726852AbfEHTvc (ORCPT ); Wed, 8 May 2019 15:51:32 -0400 Received: by mail-ed1-f68.google.com with SMTP id l25so23180326eda.9 for ; Wed, 08 May 2019 12:51:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xt6kSgujPUBekFrqEm4E/0l9ZP4sNoTUR2oIeyK8NJk=; b=sTQERpcMuUfEt6h9kooqh8PAlVuoDjLlCGqT7Uklvk+2EQBlVg89j5qvhho9BoM4JJ LniLqQheZ3gUuRUTTBtGrArqSpoVXHG+CE6WSZIhaQqfxWdJNpkKTXUvvA/v5Uclopoz 8wY2ePk2oUrNv3OC8IxGPzxlF2hDzcxapEm7XuquyYGlvhwd0V7HTBW5oYNqR389nLsN HeElSiGJma2+pBpE+A5lUS9meTTM5K0axraxQ0gNvOyMY9CqBPycaKu6qjHcZuSevE8+ 03bkNRAFH5HMtKp2VbBmA5Ist3S5QQJXpZ1Bq59hM9le7nnj4gTowiQYXKeaQjCZjTzg ex0g== X-Gm-Message-State: APjAAAVO3DBd/2CLYOrbSj64fOD5AY65SE4ui8TqLwg/x1UsKEulhOKZ DISRKsjDNTfK3KQEAM1tz+e6tz7aGg5fnPtDrwI= X-Received: by 2002:a50:b862:: with SMTP id k31mr39528025ede.27.1557345091391; Wed, 08 May 2019 12:51:31 -0700 (PDT) MIME-Version: 1.0 References: <6f53f0e494d743c79e18f6e3a98085711e6ddd0c.1557177585.git.len.brown@intel.com> <1d7c4d47cfca91c11b0e078d86a8f7f7da6d862a.1557177585.git.len.brown@intel.com> <20190507122141.GM2623@hirez.programming.kicks-ass.net> In-Reply-To: <20190507122141.GM2623@hirez.programming.kicks-ass.net> From: Len Brown Date: Wed, 8 May 2019 15:51:20 -0400 Message-ID: Subject: Re: [PATCH 16/22] perf/x86/intel/uncore: Support multi-die/package To: Peter Zijlstra Cc: X86 ML , linux-kernel@vger.kernel.org, Kan Liang , Len Brown Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 7, 2019 at 8:21 AM Peter Zijlstra wrote: > > On Mon, May 06, 2019 at 05:26:11PM -0400, Len Brown wrote: > > @@ -1411,7 +1413,7 @@ static int __init intel_uncore_init(void) > > if (boot_cpu_has(X86_FEATURE_HYPERVISOR)) > > return -ENODEV; > > > > - max_packages = topology_max_packages(); > > + max_packages = topology_max_packages() * topology_max_die_per_package(); > > That's max_dies.. To keep the patch with this functional change minimal and obvious, the rename of this variable was segregated into patch 22, which is re-names only. Len Brown, Intel Open Source Technology Center