Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2136203lqa; Tue, 30 Apr 2024 09:02:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWjUYPq4qHJ/MWR3qhChdx3IFwNLgURUKNEuAAHwhJNlnl7SmqE6W4rnuXP2TnMjDevV4P2Xvd4sUHXlVsm1lUNVaYnd0PqdzYtkXfPWQ== X-Google-Smtp-Source: AGHT+IFIvic2C9yW2lW+jSIeNGQlkRoj8pc3FDUa9gW4EUjLlRnQZylFfYWa3Y+dqa03cUeOlo4e X-Received: by 2002:a50:f696:0:b0:56e:2ebc:5c4 with SMTP id d22-20020a50f696000000b0056e2ebc05c4mr185869edn.20.1714492942138; Tue, 30 Apr 2024 09:02:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714492942; cv=pass; d=google.com; s=arc-20160816; b=jg6NvSXmFdMlk2ozf0mzNIH8Eu/CTlbaUOra/2tXVSgWQPpwqxAm2uT1i5rplgkNvW rhLaO8VWW+du8o7caEHtyikrJat078lRQ5aMZDtykV8kTxPSCV37gZ6HCXuQPOz5feTI O0DUTacCN3pcjUnPli65zJDWzaY5WVypco5AIwpJN6d5IoOvzoklB4pLm5dRJwNNjrBq 588RxUzxQX0z2QQ9XPfwkHC5/QfYqWxb9AfRHTSj9Z6PiyTKccG59g4hbuvMg0kDMMP6 7+L3i3o8WQ1TSPNDNDh05mvzqKXYKw5RXs26vEf8E+XuOYIXPzBk6lkO0kfFgRF9hmfS GAxA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7jFuvRWyH5WSxd4S2toCgXfxZKngMjcWZ7I0i5DAyoE=; fh=hJ5eWLkazK2677veH5umXaD4TpwhKPjhM0GX6RSVakc=; b=nEqA4vmT/tkD62/8iegUb+EBofH7Aaba2pkmqRPiKBXkXzxoIjb4t079pXOJn9b2z2 XWdnbwpbBHi0SCGTo1KK3RDSGZjiV1eZw2WyiJ3siKY5OJ7ihDtd+EyJ85I6fj2b7epE F7QVA7J0jj/C03agzC7lM310lQEtchM2a1Ifb7p7hkyD/g70+WjPUYFeOvuHpV3rJaru 7h9hG+2r972tyGN5hDLo6l6yot+wGN9NUtI4uuv3PzVCAYPzuJS5cbYPO8tUrpeGVtL6 oRFZKlhI81DYfUbPc5vvIhwmvBmEw0o3yU/AL9kZuLYWHenzHB4rgVL8Dx+j/2uwOMJX PA7A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CnA10ALa; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-164333-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164333-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id t8-20020a05640203c800b00572a1fa2f7fsi296029edw.525.2024.04.30.09.02.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 09:02:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164333-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CnA10ALa; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-164333-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164333-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 016E91F21F22 for ; Tue, 30 Apr 2024 16:01:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 39F72175551; Tue, 30 Apr 2024 16:01:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="CnA10ALa" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 68C4E143737; Tue, 30 Apr 2024 16:01:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714492893; cv=none; b=Q5K7bgVFqDbVik19PS0ZkwrUIwVUVFDX/fUeW/0yyZ1b5ZB4zzxH2LDVMx7Hl7+b+J4UlCeuvIGAxxt/G5SVE9iaP8BfN3b2yFQZb+Ffbff3MlalKjVQFujdrpwGkyQTVlGzPO48p//CGy2/wLPmTp8ty6AGa6APLc/nh8bMnoo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714492893; c=relaxed/simple; bh=pKyWEYsbQ9NofCKNs5jRrUhRqFrwHx7S3miXllop53g=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=idFOo+h12ciMlbWBEF4Q0PHqaZv3ct1dGzgZ5LF2PxggYN6uSIHx5PJpRxJO8kly17B/X/VMZAwgOLrV16rFAmWMJ+eUe6eupTyFLTDDIt1IM0LGVMSzOioWGiMymVeIE9UJmxAk4KTAeBS4H6rHjOu8Um7QCzW2Ov+DKvJdsXk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=CnA10ALa; arc=none smtp.client-ip=198.175.65.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714492892; x=1746028892; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=pKyWEYsbQ9NofCKNs5jRrUhRqFrwHx7S3miXllop53g=; b=CnA10ALaMqcADXKTECBSFtZQMsuCZoundBhJMHTy01Yc0B4ytyNbEwY6 ctqLABQcPLMWsp3D3Mqg1EFAy5oj+ruYSzKFo7T/rI3wjI0L5fNmAHQR+ zK/KEEo7gSiOmOUYn5QDp6dqY6FOF75wXe3e7+kZuE8DC7zvXBrJbYFV5 kbPbWh1aASGPV+r56ur5YPfQRKrT+3aHAkx6Jo8pyL06Qf17iLfIFrH6z V8Bl39LdY/+6TfOcqK0wLi47y0sFRaK8VO/ygK07WW6X5lSAUYwgJGsDU 6XZ3Lv8c1Pnskg/ILgAsaey5ZYRRhEXzNcMpzEWIi/PHWUfa/3er6gnKf w==; X-CSE-ConnectionGUID: eiZpjZrrT8OGgYwzGZmB3w== X-CSE-MsgGUID: 4hadta3UQJSu8K59ge1e7A== X-IronPort-AV: E=McAfee;i="6600,9927,11060"; a="10333568" X-IronPort-AV: E=Sophos;i="6.07,242,1708416000"; d="scan'208";a="10333568" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Apr 2024 09:01:30 -0700 X-CSE-ConnectionGUID: hOkCNw6dRieiRb9vDAWkOw== X-CSE-MsgGUID: FPpA8TqZRuSs8UyFiBch7A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,242,1708416000"; d="scan'208";a="26593450" Received: from aschofie-mobl2.amr.corp.intel.com (HELO aschofie-mobl2) ([10.251.17.48]) by fmviesa010-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Apr 2024 09:01:30 -0700 Date: Tue, 30 Apr 2024 09:01:27 -0700 From: Alison Schofield To: Robert Richter Cc: "Rafael J. Wysocki" , Dave Hansen , Dan Williams , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-cxl@vger.kernel.org, Len Brown Subject: Re: [PATCH v6 3/7] ACPI/NUMA: Squash acpi_numa_slit_init() into acpi_parse_slit() Message-ID: References: <20240430092200.2335887-1-rrichter@amd.com> <20240430092200.2335887-4-rrichter@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240430092200.2335887-4-rrichter@amd.com> On Tue, Apr 30, 2024 at 11:21:56AM +0200, Robert Richter wrote: > After removing architectural code the helper function > acpi_numa_slit_init() is no longer needed. Squash it into > acpi_parse_slit(). No functional changes intended. Reviewed-by: Alison Schofield > > Reviewed-by: Dan Williams > Signed-off-by: Robert Richter > --- > drivers/acpi/numa/srat.c | 23 +++++++++-------------- > 1 file changed, 9 insertions(+), 14 deletions(-) > > diff --git a/drivers/acpi/numa/srat.c b/drivers/acpi/numa/srat.c > index e4d53e3660fd..430ddcfb8312 100644 > --- a/drivers/acpi/numa/srat.c > +++ b/drivers/acpi/numa/srat.c > @@ -218,10 +218,16 @@ __weak int __init numa_fill_memblks(u64 start, u64 end) > * I/O localities since SRAT does not list them. I/O localities are > * not supported at this point. > */ > -static void __init acpi_numa_slit_init(struct acpi_table_slit *slit) > +static int __init acpi_parse_slit(struct acpi_table_header *table) > { > + struct acpi_table_slit *slit = (struct acpi_table_slit *)table; > int i, j; > > + if (!slit_valid(slit)) { > + pr_info("SLIT table looks invalid. Not used.\n"); > + return -EINVAL; > + } > + > for (i = 0; i < slit->locality_count; i++) { > const int from_node = pxm_to_node(i); > > @@ -238,6 +244,8 @@ static void __init acpi_numa_slit_init(struct acpi_table_slit *slit) > slit->entry[slit->locality_count * i + j]); > } > } > + > + return 0; > } > > static int __init > @@ -341,19 +349,6 @@ static int __init acpi_parse_cfmws(union acpi_subtable_headers *header, > return 0; > } > > -static int __init acpi_parse_slit(struct acpi_table_header *table) > -{ > - struct acpi_table_slit *slit = (struct acpi_table_slit *)table; > - > - if (!slit_valid(slit)) { > - pr_info("SLIT table looks invalid. Not used.\n"); > - return -EINVAL; > - } > - acpi_numa_slit_init(slit); > - > - return 0; > -} > - > void __init __weak > acpi_numa_x2apic_affinity_init(struct acpi_srat_x2apic_cpu_affinity *pa) > { > -- > 2.39.2 >