Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1325781rwb; Wed, 16 Nov 2022 15:58:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf7HIFUZr1EfYDTTYPQlrdZ++agDH3u4IdvYa0a4s98/NqY9sOH8GLVQSw67M74NzQPlF7C4 X-Received: by 2002:a63:5307:0:b0:45b:f8be:7402 with SMTP id h7-20020a635307000000b0045bf8be7402mr22143434pgb.484.1668643124111; Wed, 16 Nov 2022 15:58:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668643124; cv=none; d=google.com; s=arc-20160816; b=XZRJCoNv3CYRM/0x8Cplz646POhUV0XFvfD6cA+EB26rabVVtCklZNxtdvIVLqsRSo k9So8VSLe7OENUw/iN6AcsVNFDIyxv824m6Gt87OsPT3AafWodAcLfFi5lpLKcw4M8oQ 9qJ6Tit1uwXoKxCbnj5juZL5dFt0ep7hp4nzyU51hn5e0BKUcSJNKIlqSWjqv4qNnoFX Z8YsWsPha9jOciLo/wkkuLmoW6WDN+IVNfpuwPpSy9MTV8UGWGMco/kWJfaAW+0LXrar Ih933BhurtZCGoI95SngP2/1zk+Uv3NfKV1HkKMpZN6u7PWP+QQc6Ve9/pFoV89F89hQ /SlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:message-id:date:from :content-transfer-encoding:mime-version:subject:dkim-signature; bh=Xi1Kqn/tR9/2IKLlUPT8p6H6Dlt0a/3+b5cKUWoAB/s=; b=eL0EuktzNiRpVQvyY445yCI2kgK7+ljlP9EtMwIXBh4LCNefzMwBQrEZ5c3/pqoGYm zIm3WHzjkc/VTQgECmEDl0XBy0FXA+JV8BDBhKf2nufEoK+ryrdGKq2A/POBgpMYF2Ic gx9Bz3w2cx/mS+rIAwukFlrv0bltpxHrWUzG3VnZbeFlhyUgXqyGDBJCNMoM8kyHOuOW /9B0snF/uswtn/fXXJM2MuCMldGoKVZE0lYoHMw/R+cnZAbM8T1vPE3EW+eT2nA1tVOX sjC3MMjUzEIy8eDUmpl4ktXwjM1TWyX6KarGg0MK541Xxc4eO3+p+Jq4CcknIRZcsPYw CM+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gvC8nGez; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 70-20020a630249000000b00476ca041d89si5396805pgc.790.2022.11.16.15.58.33; Wed, 16 Nov 2022 15:58:44 -0800 (PST) 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=gvC8nGez; 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 S234525AbiKPXmt (ORCPT + 91 others); Wed, 16 Nov 2022 18:42:49 -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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE 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 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, -- Vishal Verma