Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2454498rwb; Thu, 27 Jul 2023 07:28:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlHzn2j8vNBg+Crcve4ab+b/QAfEGP28oJGx5Q/YIIz9De9iFR33HYAxSCjANj5TcaumB7EB X-Received: by 2002:a05:6a20:3d10:b0:133:71e4:c172 with SMTP id y16-20020a056a203d1000b0013371e4c172mr6795913pzi.15.1690468128925; Thu, 27 Jul 2023 07:28:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690468128; cv=none; d=google.com; s=arc-20160816; b=nKI5MvNKnCFx4ntbUvF5J0IIB2KrGXiss6zddMR8K5ipHSDeCY0nJ/aUwt+U6qeeuo EiBRd+3Ng4nVtk4SLHn930LezEsh5m2iuKDtQBDrUgsjw+Tp5yF4bABiug2HFuz4oJ5V 0Kr/t4hY80xXTD5vmbEKyTC1XNnFjNHog/kURCf4qef8czJ1q4pji/5oQ1d1t17cOJdK A+RjxcX01uF34FQu9iItawruyirdU7EIMjjfL58IxMIg7mr3HfomGbEFcgNd7fF+d7n7 At5wU0jC5ArDVNMHdEQDGRDE1hduneg5bjTY8hADny7VURGmd/rZvkZy62RWsZxXioXf yl2w== 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:dkim-signature; bh=csgGm8D5A6Ez7za1XAnciE08Np8/fcsxy1w8+D3nU00=; fh=hjPsnYzkawlDCNS706r6xvfcNdP0mVM4AvpbGqtOdAQ=; b=DXxKc9CW7aWrMZIOv93gscoudsXCIrGb7O4aDIYIug0Uff4xe4yIgVoExPChYjsczN HktZWBpebosNLcOELhdt9YxibT6q/s757P7BJSCHP+ddsBoVpqNfMvOKLJTyshewKNGe Kqhwm3kEu7uksfCsM9p1UUmusAic9tMTUKkk4vAp2JbLENi75tDWuoEdbSe5ahJiY1aK vUvhzkNk+UiMYqoWEGrli0e1v6MqVg8DfTA6wZlj7phLlkEzKhkoxf56tBmlAgncup7n v7+WKplMADgG33u0ZcIByLxGgndZ/eik8UiUmenYtzrDfDlDdPC4h79Dj9PZs7OGIYpw qBUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hqPkFSlW; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ch10-20020a056a00288a00b00682babd7453si1426603pfb.142.2023.07.27.07.28.35; Thu, 27 Jul 2023 07:28:48 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hqPkFSlW; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233478AbjG0OR5 (ORCPT + 99 others); Thu, 27 Jul 2023 10:17:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233560AbjG0OR4 (ORCPT ); Thu, 27 Jul 2023 10:17:56 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 787639C; Thu, 27 Jul 2023 07:17:55 -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 1648F61E95; Thu, 27 Jul 2023 14:17:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E15E5C433C7; Thu, 27 Jul 2023 14:17:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690467474; bh=E+cYYrtIJnle5ULk7Wl/qyr+CneU+qpZ7F6LQsocHM0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hqPkFSlWsEEgJ4/gLsVLDeRChjjfKC/1kZywIN70/kt49dTtDJBTh9F3N00ClTzSc lML93UcOBTOxSqh0uUHkDdehj0lgfOsMmakZIWde4HEByMdUBswt76Eimoil+X2Fw3 cx0Wb0BRC4GmgXP9P9tsMWh31sLMpdB55NsOuOEA5uk0/KObgWyCP5yx+UAzCUjf9T ltJGjtb+wfYGiDOqFOsvyGOTQ1+gH6j3y3fDx3KoegrOCpZqC83fGbRpGJ5eqAGBW6 eBqiIEFoXj/R2MK1awjKcuOkuHXvs5ttR3cURkNU/XonwdTZQanuwPPF/DZcFYGvPU RnPhzitvzHn/Q== Date: Thu, 27 Jul 2023 16:17:49 +0200 From: Lorenzo Pieralisi To: Catalin Marinas 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=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 02:59:02PM +0100, Catalin Marinas wrote: > 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? It is definitely a fix - I don't think that's super urgent though, bug has been there since v6.0 so the fix can probably wait to trickle back from v6.6. Thanks, Lorenzo > Thanks. > > -- > Catalin