From patchwork Wed Nov 16 23:37:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Verma, Vishal L" X-Patchwork-Id: 627566 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1F0FFC433FE for ; Wed, 16 Nov 2022 23:42:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234444AbiKPXms (ORCPT ); Wed, 16 Nov 2022 18:42:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238946AbiKPXme (ORCPT ); Wed, 16 Nov 2022 18:42:34 -0500 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51FD06F36D; Wed, 16 Nov 2022 15:41:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668642088; x=1700178088; h=subject:mime-version:content-transfer-encoding:from:date: message-id:to; bh=gcknXCLuemBiw6QyYPT0m60B03ddAIIJISsWvFv8N2A=; b=gvC8nGezjg2vJC8Y/Pz/9r3y13zbtrwNeatmAvIPAC8aBeBVM6MI7H2k Yz49o4s2mFNMG5q3k063JV1d5mkNgbw6KiYGQm5m6jRf+Ndr7Wsx7zC0d KwXT2vVp3/9/308iT92lbvwvchPp4hRHC87MWExmQOGe6cNOEXPh35j3G +Hdv4xHI9JE2wtWo8DxJFTVybiuL+0UTEq6T/sbsMmbtvB3PDP5CML+rg hgVOdSzRb7iKMiFd/dGk5dyLn7D/81kdLr9OEJzB/0AbIjDJKSHz7tPYR KvMquCKmVkVRjdO5cZjWsJS0XAVT9XrcyUq+nOOcOkcQsphiqx4tx/8BS A==; X-IronPort-AV: E=McAfee;i="6500,9779,10533"; a="292405778" X-IronPort-AV: E=Sophos;i="5.96,169,1665471600"; d="scan'208";a="292405778" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Nov 2022 15:41:28 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10533"; a="641848518" X-IronPort-AV: E=Sophos;i="5.96,169,1665471600"; d="scan'208";a="641848518" Received: from jjeyaram-mobl1.amr.corp.intel.com (HELO [192.168.1.28]) ([10.212.1.223]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Nov 2022 15:41:27 -0800 Subject: [PATCH v2 0/2] ACPI: HMAT: fix single-initiator target registrations MIME-Version: 1.0 X-b4-tracking: H4sIAD90dWMC/z2OwQrCMBBEf6Xs2YQk1YZ68j9EynZNzUKaSFKLUvrvBg+ehhl4M7NBcZldgXOzQX YrF06xGnNogDzGhxN8rx6MMkZr3QmkJw9+xmWY+C0s0nQcCVtLCiozYnFizBjJVyq+Qqih57Kk/Plt rLrK9V+n7Mm2ndS96rteCS3qA49BBrm6POOF4+KCpDTDbd/3L3hSabKuAAAA From: Vishal Verma Date: Wed, 16 Nov 2022 16:37:35 -0700 Message-Id: <20221116-acpi_hmat_fix-v2-0-3712569be691@intel.com> To: "Rafael J. Wysocki" , Vishal Verma , linux-kernel@vger.kernel.org, Chris Piper , nvdimm@lists.linux.dev, linux-acpi@vger.kernel.org, "Rafael J. Wysocki" , "Kirill A. Shutemov" , Dan Williams , Liu Shixin , stable@vger.kernel.org X-Mailer: b4 0.11.0-dev-d1636 X-Developer-Signature: v=1; a=openpgp-sha256; l=1380; i=vishal.l.verma@intel.com; h=from:subject:message-id; bh=gcknXCLuemBiw6QyYPT0m60B03ddAIIJISsWvFv8N2A=; b=owGbwMvMwCXGf25diOft7jLG02pJDMmlpeqLbCaqG/ZfYnqxx+nhqoR3PKfqXh/hYqsqXyDMtOJO 9MGfHaUsDGJcDLJiiix/93xkPCa3PZ8nMMERZg4rE8gQBi5OAZiInCzDP4Vfyk9MrX5umfrqYflbtu meV6foTm1bxyRpUbljS4mbyXKG/9X2l2XXX1yVdbupbdVGjmTG6hWRbzaWzyzmclKJEpdjYwYA X-Developer-Key: i=vishal.l.verma@intel.com; a=openpgp; fpr=F8682BE134C67A12332A2ED07AFA61BEA3B84DFF Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org Patch 1 is an obvious cleanup found while fixing this problem. Patch 2 Fixes a bug with initiator registration for single-initiator systems. More details on this in its commit message. Rafael - I didn't retain your ack for patch 2 since it seemed like a nontrivial change. Cc: Rafael J. Wysocki Cc: Liu Shixin Cc: Dan Williams Cc: linux-acpi@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: Cc: Chris Piper Cc: Kirill A. Shutemov Signed-off-by: Vishal Verma --- Changes in v2: - Collect Acks for patch 1. - Separate out the bitmask generation from the comparision helper to make it more explicit and easier to follow (Kirill) - Link to v1: https://lore.kernel.org/r/20221116075736.1909690-1-vishal.l.verma@intel.com --- Vishal Verma (2): ACPI: HMAT: remove unnecessary variable initialization ACPI: HMAT: Fix initiator registration for single-initiator systems drivers/acpi/numa/hmat.c | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) --- base-commit: 9abf2313adc1ca1b6180c508c25f22f9395cc780 change-id: 20221116-acpi_hmat_fix-7acf4bca37c0 Best regards,