From patchwork Mon Jun 26 19:22:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Hansen X-Patchwork-Id: 113110 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp7717927vqr; Mon, 26 Jun 2023 12:52:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4D/Kw+GoN2TKRYTd0c3axIx4iYSYxMutsVr00cYF9Vr8+efywfoZkox0CJM1SuronaapbX X-Received: by 2002:a17:906:db0b:b0:982:6bba:79c9 with SMTP id xj11-20020a170906db0b00b009826bba79c9mr24412474ejb.20.1687809177790; Mon, 26 Jun 2023 12:52:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687809177; cv=none; d=google.com; s=arc-20160816; b=jU/H7tpxiBgKIYpgn+eNTEYsIw2VnbUcgYZETUWBx5xSGjugzlgWofI4C8Di0zyWYO oUDIrvSIG5gaDNyA6F8RZOddsrwFpXxpAEMV04rd1tn4gy+ueQJC8TICZtpfdtLJcL+R SZrWREP4kq/YqTYayiUowff18ezyffImypzRFLTa2jUlspzjkBwkflIwbjxWJgMR0pCd qIcAcby4j60PEgUN1jxPBxc1cV6eompcvq+IxyjN7GB7yI+nWjTYHBs4NyT8OSCsabPk NoJsF1ELucxcVnLNQccZp9mxOg2r/9TYVhIZjSD0LaAWagUexVexJJF4Fes7VDTRNM4h SSKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=w02SGrztDmQcNfr2KtJdTZ7ylhkMpHLLzX7ir51s7CU=; fh=WnlVi/Q/6zv0fZ6Ey9Krvq5QWByVvi9tb1A26EVXDkE=; b=tBlJhm287u6Il9vMztjfzrwSI89RiQ7QkZe9GvBKP20bd2cdb5/mJxt1XLUwbeGje5 vH2zvfq9wOxYSc+bX049/nJjrN00gh19P6JCznvFK8YLSKQmgBxK1rgSUqfLFByXiXgZ 1X6TICla2nTnZ6cUs4fW9EbUjRjNQkgP19ZxG8lfF9svmA8FVKoG58grfkqnsR2JhdIF JoXIp+tAuqn+/a0XdnvXU1ZlWkHel7g7P4jxQXtbiI6vb2ZaByH1KQMUjgYSTUiXGNgS fk+l36viOdJkMZku/3a5+jsBagor8bwcaVY6dS0FiESAMuynzoSY7DGfyOuipH3W8mGp bGyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EB+OPB21; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n10-20020a170906688a00b0098f99532db8si1569952ejr.667.2023.06.26.12.52.33; Mon, 26 Jun 2023 12:52:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EB+OPB21; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229898AbjFZTWO (ORCPT + 99 others); Mon, 26 Jun 2023 15:22:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229690AbjFZTWM (ORCPT ); Mon, 26 Jun 2023 15:22:12 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CF6DE5A for ; Mon, 26 Jun 2023 12:22:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687807331; x=1719343331; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=j0rt9a3HMWTGsfmAOU7+cW8cCUNLUvJa23+4J/SXbTM=; b=EB+OPB215+j8Md5Itr/g1/Pa3tC6VhYUBlDrN3BAp1aQW7mPIzCgzI+0 xMjMb510AOD5XZzKfqIQuzr8d1rzaNWx4W38EgzpLlIU8LEJ3nq1RFE7S VZtpuXHYMieMuRChCvc34WoGb/+vU0B+Z28s+AdrzEFr2qwaq7InXPPDv MJI9ewBgRMgkAMNpl6f3zJy28a1CMpRmNbkC4pv9bYJArVLXEGN8t4owv W+9COR46fiwDsa2YAJKKVmKrvVgh5VwIsNRvyWRZz/R+bgGQdUxM+iUew ehGHFdwgZ9jgovugXjtWWyBlKQ2HiEfNdH7eHLwsqPE22kmSmGtp0IxMb A==; X-IronPort-AV: E=McAfee;i="6600,9927,10753"; a="346122766" X-IronPort-AV: E=Sophos;i="6.01,160,1684825200"; d="scan'208";a="346122766" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2023 12:22:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10753"; a="840394433" X-IronPort-AV: E=Sophos;i="6.01,160,1684825200"; d="scan'208";a="840394433" Received: from viggo.jf.intel.com (HELO ray2.intel.com) ([10.54.77.144]) by orsmga004.jf.intel.com with ESMTP; 26 Jun 2023 12:22:10 -0700 From: Dave Hansen To: torvalds@linux-foundation.org Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Dave Hansen Subject: [GIT PULL] x86/platform for 6.5 Date: Mon, 26 Jun 2023 12:22:09 -0700 Message-Id: <20230626192209.1529129-1-dave.hansen@linux.intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769796196612759799?= X-GMAIL-MSGID: =?utf-8?q?1769796196612759799?= Hi Linus, Please pull some x86/platform changes for 6.5. These allow CPUs in SGX/HPE Ultraviolet to start using Sub-NUMA clustering (SNC) mode. SNC has been around outside the UV world for a while but evidently never worked on UV systems. SNC is rather notorious for breaking bad assumptions of a 1:1 relationship between physical sockets and NUMA nodes. The UV code was rather prolific with these assumptions and took quite a bit of refactoring to remove them. --- The following changes since commit 7877cb91f1081754a1487c144d85dc0d2e2e7fc4: Linux 6.4-rc4 (2023-05-28 07:49:00 -0400) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tags/x86_platform_for_6.5 for you to fetch changes up to 73b3108dfd9d53ea565c0777a27007c1c621467d: x86/platform/uv: Update UV[23] platform code for SNC (2023-05-31 09:35:00 -0700) ---------------------------------------------------------------- Add UV platform support for sub-NUMA clustering ---------------------------------------------------------------- Steve Wahl (8): x86/platform/uv: Add platform resolving #defines for misc GAM_MMIOH_REDIRECT* x86/platform/uv: Introduce helper function uv_pnode_to_socket. x86/platform/uv: Fix printed information in calc_mmioh_map x86/platform/uv: When searching for minimums, start at INT_MAX not 99999 x86/platform/uv: Helper functions for allocating and freeing conversion tables x86/platform/uv: UV support for sub-NUMA clustering x86/platform/uv: Remove remaining BUG_ON() and BUG() calls x86/platform/uv: Update UV[23] platform code for SNC arch/x86/include/asm/uv/uv_hub.h | 32 ++-- arch/x86/include/asm/uv/uv_mmrs.h | 18 ++- arch/x86/kernel/apic/x2apic_uv_x.c | 318 +++++++++++++++++++++++-------------- 3 files changed, 232 insertions(+), 136 deletions(-)