Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2399513lqp; Sun, 24 Mar 2024 17:51:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUwECTA0uc2bKLr51fLwor44sZBcbFEd39cLxvORjpBdXvisby1cy8/54pF4lfQaE6mhAwnoIHqyaTgLbgcv0pdlYn+hziLtSj8lTmmnQ== X-Google-Smtp-Source: AGHT+IGwvvucbQrxwSUwrXWK5gUaCKe5QLqxiiGYlSs3Dc1SROWWBPsrEZ5hzs+gpujHjRV/RKvK X-Received: by 2002:a05:6a21:78a2:b0:1a3:a821:f297 with SMTP id bf34-20020a056a2178a200b001a3a821f297mr7019646pzc.2.1711327895324; Sun, 24 Mar 2024 17:51:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711327895; cv=pass; d=google.com; s=arc-20160816; b=mfANf+Vm0GOV0s2840RwXPLu8uG5VfFYR0eTp0d7fihasEEj3ql85xcIL1M4GQenxr D7w7Wia13meeXaQcWw5KVYgz/uxbA1tGMznUVzrgmgVhrHRBFePQCt/Ckxw2LjWCNC+K cxWtXI302JD6VKT/Mu/eLyWll6UiGn7LpGBmIlYSIthgyK3ZgIzBcHvZSpnTZeEC5hTI ep75wpcmxdXADvGE3PjfZRwwEFc058V0EqGxPFAhIB7cfWaaT7KUUj9jB+UpEA2G7efv 6WbYBUeD5OqgbLUxc0Eo/aNK32Oq/v4KywyigrY+np3y+pHb/H/BPuNP/WR1FiNpFeLl 0u+g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=F2owZlSIBiLiYUfuVnMg870SDPjmqNR9DFk2nLVY+Ls=; fh=gIhFx0a/tL3Fq3MzXlydXprTZx2zeX4CBo7VUAcHj0Y=; b=q3doC2IQfHT7SJxtTitaFE8prAEf3zbIjlXDxc+Rhy0+89Y/JzwHUqTfgl9QaIdDOA Fgz44uRWT5ODzK7vBE9wIGk4CBFzHt2q6cvu1/NO62Kh6GGORw1Jjk4vqeTk7sOZpPqR ACHoB1JsCpAh8/iSOBahhNfAHQAXl2Do+aipYbduit4cw4tlV0kFKRQkmnfbylCmByWP +SwgeVtl/egGgnJkoOTyDVFLRcY3jEpkPEgzNcz96Mgar0Je70xuHl/ezrforbItGkHY ZIerpX2Qio3YT/rOakhnd3RsdpcGH5FKnj6RgXDNnXsu+pYbTri/0DMlCEr4enmMgW2Q NYsw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lwKhKGGF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113485-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113485-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id v11-20020a056a00148b00b006eaab856030si1080807pfu.86.2024.03.24.17.51.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:51:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113485-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lwKhKGGF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113485-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113485-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 12E0B284822 for ; Mon, 25 Mar 2024 00:48:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 637231B6FB0; Sun, 24 Mar 2024 22:44:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lwKhKGGF" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5FDCF1B6777; Sun, 24 Mar 2024 22:44:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320286; cv=none; b=Cgz1y1fwxxanzf5AinTmaLpDzT42rz+UZiJsq/wxdRtfVw5LITh4OpEfHwS+Urgqbmt7UE8tAvwRfQFnxwsYUlgeZkMAnKt1EE64horxS6r0PK/MCHFatk2Xtj5Dze+SHI207jnKm5ilUul6X1dtN1ubSHUnWBZqmXEY3pKAQGk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320286; c=relaxed/simple; bh=xadalg1Sr91bx1/Rxh82aDwXOY/crHp5LGjE7QOmfNo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IO0Jw6ISdOizbYjoY6DVDZiVyTPHf6MOTgnZHb31eXdCuu40W/THVlU4jYbllYp22e8bMXXgzvY6WtjftF2pLZyQmAd6T+G1sQjlGl7KfwlcuBENxc99V8vk+1gbdq/x+N22dHlPytYw42x08g3VIzH9OIHOmUExH8ulBLq9Wms= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lwKhKGGF; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 660F0C433C7; Sun, 24 Mar 2024 22:44:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320286; bh=xadalg1Sr91bx1/Rxh82aDwXOY/crHp5LGjE7QOmfNo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lwKhKGGF4PaUyC81+6g4HUYrmp/3zFYodyrxcvzD5UW4VlaaFMGvjDSdA3IAFfppG 7a6DQt19XVQ9+O8F+hvoPSa2dwVowMVUnrN00lamDyxaVvQJ+g672UegiEv+WYHPos iGqlFgZLsMWDuvNrvYM+HIHyxxTA6vHHRlqMIlVUPByQzMkoYG/kyF8vWL2e/Ndxa9 M/iDgqZlcQyuhIUQFc5uONgZT7L0L/Q3Bo7xc/g1bM81bTRejH9qBmjO6Ti5A9IaBQ G9Igs/+F8tounB2ijFc4cN1vf1bwte2quluc8pMhNP92POKP61MZpo5tIcyzGEbFOp PQvywTNABPmeA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Dave Jiang , "Rafael J . Wysocki" , Jonathan Cameron , Dan Williams , Sasha Levin Subject: [PATCH 6.8 594/715] ACPI: HMAT: Remove register of memory node for generic target Date: Sun, 24 Mar 2024 18:32:53 -0400 Message-ID: <20240324223455.1342824-595-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Dave Jiang [ Upstream commit 54b9460b0a28c4c76a7b455ec1b3b61a13e97291 ] For generic targets, there's no reason to call register_memory_node_under_compute_node() with the access levels that are only visible to HMAT handling code. Only update the attributes and rename hmat_register_generic_target_initiators() to hmat_update_generic_target(). The original call path ends up triggering register_memory_node_under_compute_node(). Although the access level would be "3" and not impact any current node arrays, it introduces unwanted data into the numa node access_coordinate array. Fixes: a3a3e341f169 ("acpi: numa: Add setting of generic port system locality attributes") Cc: Rafael J. Wysocki Reviewed-by: Jonathan Cameron Tested-by: Jonathan Cameron Signed-off-by: Dave Jiang Link: https://lore.kernel.org/r/20240308220055.2172956-2-dave.jiang@intel.com Signed-off-by: Dan Williams Signed-off-by: Sasha Levin --- drivers/acpi/numa/hmat.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/acpi/numa/hmat.c b/drivers/acpi/numa/hmat.c index d6b85f0f6082f..a26e7793ec4ef 100644 --- a/drivers/acpi/numa/hmat.c +++ b/drivers/acpi/numa/hmat.c @@ -770,12 +770,12 @@ static void __hmat_register_target_initiators(struct memory_target *target, } } -static void hmat_register_generic_target_initiators(struct memory_target *target) +static void hmat_update_generic_target(struct memory_target *target) { static DECLARE_BITMAP(p_nodes, MAX_NUMNODES); - __hmat_register_target_initiators(target, p_nodes, - NODE_ACCESS_CLASS_GENPORT_SINK); + hmat_update_target_attrs(target, p_nodes, + NODE_ACCESS_CLASS_GENPORT_SINK); } static void hmat_register_target_initiators(struct memory_target *target) @@ -835,7 +835,7 @@ static void hmat_register_target(struct memory_target *target) */ mutex_lock(&target_lock); if (*(u16 *)target->gen_port_device_handle) { - hmat_register_generic_target_initiators(target); + hmat_update_generic_target(target); target->registered = true; } mutex_unlock(&target_lock); -- 2.43.0