Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp411292pxb; Thu, 21 Apr 2022 02:19:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUEwxiQYQ0kWpBVDkhQyTZaWqyD4oQS0oBVEutDANxkDmyyT5Jn4CEttDixjFdxHxh89tJ X-Received: by 2002:a17:90a:e388:b0:1d7:24f4:e6a7 with SMTP id b8-20020a17090ae38800b001d724f4e6a7mr461971pjz.11.1650532788106; Thu, 21 Apr 2022 02:19:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650532788; cv=none; d=google.com; s=arc-20160816; b=sw1fS1s0nuE5Bhps8qyJ+ZcLWAxiRPqVvJyo6yrroBUIlMxK+IjHD71ptSqclbu/ZO JmpNnCpigoML4oFdvVUKc62kYPu80iQyWhMWPFmGPb1B1RJeFLCW1sUCZ9pgkH772HJC PDMlBGQNOC+hYjcJHZb6u/e/3jg4OA3/XufVXKo0DRyGhBrhQhHPLR8q/AOyLWrFacBp EsIWgdsDfppR4EHTZH2gxR2seFyR58ZAAtTj3O5JTSXseB1Cd7fdlUrNqrSLE3ijM5do RCkrXO3Lesc8sJ0nFZCSGWVZXhXDhTgBLgfqstdMyBYRa1ctifarafyNzX1JfKFPjwan fn5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Z01TuwaNpAdqBEPqdz4nvu0ZBY+wUE6IGLdLcJR/NV8=; b=k9+y/DtEW7nK+eolJvmqTeSCAgGaJRRAy1UrNWJv6+3L6KLlPm8UuYY4UUhPHWjCZ6 hynX+WJ8Kkl0JjpfRR9jz5hWaj+Fyl2M08gsKwat5ARCFR8Of2ZOX9fuk79Gs04+zp6K kPBLAfgLcwbWttE0B6g61FTkT83AyX801jnwjFL62atf/y3qwMdXi7I52Nq3iQfFZhwU 7psYHfGxNSEHkthrY1ujEjt0dW95MYwfMQUBY3eWsDI/ZnHqB57TqoYav2QNiZOLX3bb qeyX8trDlPuaggdRgV6FxRz0hCir/BozorU6gDb3AIeN8st5MDNtvBLEPDl3uur3CP3h KNWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VvD6eMwn; 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 j10-20020aa78dca000000b004fa3a8e001asi3720709pfr.209.2022.04.21.02.19.33; Thu, 21 Apr 2022 02:19: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=VvD6eMwn; 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 S1378572AbiDTMeX (ORCPT + 99 others); Wed, 20 Apr 2022 08:34:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378580AbiDTMeS (ORCPT ); Wed, 20 Apr 2022 08:34:18 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D6BA41615; Wed, 20 Apr 2022 05:31:30 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 54137B81ED1; Wed, 20 Apr 2022 12:31:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34703C385A1; Wed, 20 Apr 2022 12:31:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1650457888; bh=xFBxXROoKf7u+JAvuiZg1qFNSkoOxNBQ8DLIUz0UXt0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VvD6eMwnKgud8prkIqkDyIzKkAwnMUG4UDyyfYe5GozZoG+JQD9ZC+MWEawYLhELH 0hs82Censkr6ZKriGuk5xCI8kZvqNjS2ShtpnewUZGs/rHnoy7JER51sXpcFOHyHJd 4w+zU+Ph3yxGaGChG7V0qCp4ZV33CvLWCyxvRqHGJgCMa3G6ckchns1V8GDedi7lls x9z5xtoClxAUKqZt9X+vrgmAIL0TCf+Td8S1Xd/FyCAytoUxrZ4tVXTsZaH6oZw9SI L7UBS0eW7oRNR9gmS8JUdYIodtOY26V6MAWwBDUsh1SnJ6sjmEgj/wBJ4T44IezRCD 6O7NfTrnHhCGg== From: Will Deacon To: joro@8bytes.org, jgg@ziepe.ca, robin.murphy@arm.com, Nicolin Chen , jean-philippe@linaro.org Cc: catalin.marinas@arm.com, kernel-team@android.com, Will Deacon , stable@vger.kernel.org, jacob.jun.pan@linux.intel.com, linux-arm-kernel@lists.infradead.org, fenghua.yu@intel.com, iommu@lists.linux-foundation.org, rikard.falkeborn@gmail.com, linux-kernel@vger.kernel.org, baolu.lu@linux.intel.com Subject: Re: [PATCH] iommu/arm-smmu-v3: Fix size calculation in arm_smmu_mm_invalidate_range() Date: Wed, 20 Apr 2022 13:31:21 +0100 Message-Id: <165044753398.180787.4069543281631212706.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220419210158.21320-1-nicolinc@nvidia.com> References: <20220419210158.21320-1-nicolinc@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 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 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 Tue, 19 Apr 2022 14:01:58 -0700, Nicolin Chen wrote: > The arm_smmu_mm_invalidate_range function is designed to be called > by mm core for Shared Virtual Addressing purpose between IOMMU and > CPU MMU. However, the ways of two subsystems defining their "end" > addresses are slightly different. IOMMU defines its "end" address > using the last address of an address range, while mm core defines > that using the following address of an address range: > > [...] Applied to will (for-joerg/arm-smmu/fixes), thanks! [1/1] iommu/arm-smmu-v3: Fix size calculation in arm_smmu_mm_invalidate_range() https://git.kernel.org/will/c/95d4782c34a6 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev