Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2436072rwb; Thu, 27 Jul 2023 07:13:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlFzL4+Lg2a+eX5sui2qSwTdLaSWR15VfSQGgWZp5Lp86nF6ows4fBvKzjHlBlXlh8hDMO7O X-Received: by 2002:a17:906:538d:b0:994:673:8afa with SMTP id g13-20020a170906538d00b0099406738afamr1947944ejo.28.1690467215911; Thu, 27 Jul 2023 07:13:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690467215; cv=none; d=google.com; s=arc-20160816; b=Sawj5oPBfRfVLJ6lBSXh9UC7ieBm2SxE88PBnC9Snin0IOWRC65Ipqyw6VBDU27R4j bCmKjvptxIeBIgNjeaYBPVxkiIaiI8L9FBrngOgeJiu9+lvy9z30EOM86YEmrJQZ/8nb SAZaZXpll12yvyrynS7Q3SjD+PSmCFQiQlqPE3GgGrJne4nFdpP/HGnH+A7CWTuws+oj dmZAKs7DilMjsxpl/q4jGsXpBUvei5A+nYIUgcqDGjQpTo5mUHjN0ey18HhXnak0BIjp 7J/9mnNou5O6lVBY2X86CepmhWgUe2QmDeCcf85SqYO/AGhwh7ApdX7xyJqoQn2unIHg Jihw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=EIofUVGKJR7qjv/4RI72FJ7/h+BQkvWcMtNlkxVr7rM=; fh=h+Z52tyc3qCBMhu8dUsECI+0sJud6NXxjdVwEgk3dsw=; b=CqfjinOcVOEnGJrUaqNUzM0kQDjLthetyYZgrtSJ13sZVBLouMMwQtyQ1Pelrc8zR/ 7fQlmG+O1qJ3qPhLGEHSQP+/bJGB6LHusuTqDifMvbCX3hBpvT7U+wAEzpB6DScJYRov mNGBaMFmSCEH4TX3p4jecrnJgc/k39qJslcRmE/8eMHnbW52/7ZdokMpmsVJXUYUnw3E g4lx94pL4xRUAgGfSkejYNgBUQJiy+qu2Lz1s9y3HxLxPNpfPpc3SjfboAjkGrbXrbE0 6wPuA+jc5c/VY+hQQ+LRQyZOhNLX13uiy48+ehZImbfsJx/2LTM+PkfNZdfKe3Smf6rn VDog== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j13-20020a17090686cd00b0099b930da46fsi1017406ejy.99.2023.07.27.07.12.53; Thu, 27 Jul 2023 07:13:35 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232505AbjG0N7K (ORCPT + 99 others); Thu, 27 Jul 2023 09:59:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232010AbjG0N7J (ORCPT ); Thu, 27 Jul 2023 09:59:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4ACABE4D; Thu, 27 Jul 2023 06:59:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DB87761E92; Thu, 27 Jul 2023 13:59:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 699AAC433C8; Thu, 27 Jul 2023 13:59:05 +0000 (UTC) Date: Thu, 27 Jul 2023 14:59:02 +0100 From: Catalin Marinas To: Lorenzo Pieralisi Cc: Guanghui Feng , guohanjun@huawei.com, sudeep.holla@arm.com, rafael@kernel.org, linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, baolin.wang@linux.alibaba.com, alikernel-developer@linux.alibaba.com, will@kernel.org Subject: Re: [PATCH v3] ACPI/IORT: Remove erroneous id_count check in iort_node_get_rmr_info() Message-ID: References: <1689593625-45213-1-git-send-email-guanghuifeng@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, 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 On Thu, Jul 27, 2023 at 03:39:27PM +0200, Lorenzo Pieralisi wrote: > On Mon, Jul 17, 2023 at 07:33:45PM +0800, Guanghui Feng wrote: > > According to the ARM IORT specifications DEN 0049 issue E, > > the "Number of IDs" field in the ID mapping format reports > > the number of IDs in the mapping range minus one. > > > > In iort_node_get_rmr_info(), we erroneously skip ID mappings > > whose "Number of IDs" equal to 0, resulting in valid mapping > > nodes with a single ID to map being skipped, which is wrong. > > > > Fix iort_node_get_rmr_info() by removing the bogus id_count > > check. > > > > Fixes: 491cf4a6735a ("ACPI/IORT: Add support to retrieve IORT RMR reserved regions") > > Signed-off-by: Guanghui Feng > > --- > > drivers/acpi/arm64/iort.c | 3 --- > > 1 file changed, 3 deletions(-) > > Acked-by: Lorenzo Pieralisi > > Catalin/Will, > > can you pick this up please ? Would you like it merged in 6.5 or 6.6 is fine? Thanks. -- Catalin