Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3276033pxu; Tue, 8 Dec 2020 07:58:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJyVw4DE7pwzDZ16BJaqCBEtZKPrYFFSdjRjuXaPX97bbJfy4Fplrb+lIDSEusVL3VDuApDC X-Received: by 2002:a05:6402:1d24:: with SMTP id dh4mr24932558edb.161.1607443109467; Tue, 08 Dec 2020 07:58:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607443109; cv=none; d=google.com; s=arc-20160816; b=yUwlBcAj57C0oO6DgoyJUdFZaiKYoNLkio+28h8RciEfMCZPdxzcWpiDCxJg4yyClE /8cMrkhCk75bqxE5gWzld1PvBxj8xThOGnSG6Pp9Rlv2zXToK91AJVZfO1MobBOnmvgY t631mezyaU0LqwMEevZAICCJvc2YKQ/m0BOLe18w9kg8ABacEkkQuOqcJcgYXar/4NEB sE0cnODXCiOWFKwt7RZjw5drnJpmR0ejh1jkkzQ5n8uYvB7mjWBuyAd4uW79nOFy92aT x6NnI1pRbM3BBvrN0pBfbEWSnSSurNIbSfitvzBoF+3RRo20MZHhRIMDMVjqL2LHm4BF Bv+g== 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; bh=ByPTYIta467Jsgs7JWpGpYYONvpjVHxwfV5T7N7TeJs=; b=WeZ7RoDoVppACHfvFPJe9YDV34s4aAPFnsLJvdQZGS0xlOHEOmWLIm5rP+bjTe4v9c 3Nw4Tc/oVn3jksYPsDCe46e1mIe5dKe/ba6AjEChvZBAgMLkeIdLnqsWLYFkMiWKWfDI w1Lno+NE5kiuPUDXI7uh2YJhQP55TOK4vqtBo8by1l4OaE1xwTBDAXAPvCEixUerhSzN yHnHni6n2WGXt6TXpmPd63fV3XIbDElTMMdNKeqOj9Wcmr202zAGGiGHO6PI9BoibdGx Oy/x6420UCJYuI6aw5xE9moiHJnRGrERDJvbrYnUzJ4wxdf1KKHXqhcxbVca5lWg/8s7 40Jw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ce21si5237619edb.418.2020.12.08.07.58.05; Tue, 08 Dec 2020 07:58:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1730175AbgLHPz1 (ORCPT + 99 others); Tue, 8 Dec 2020 10:55:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:48816 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729817AbgLHPz1 (ORCPT ); Tue, 8 Dec 2020 10:55:27 -0500 From: Will Deacon Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: iommu@lists.linux-foundation.org, Keqian Zhu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: catalin.marinas@arm.com, kernel-team@android.com, Will Deacon , Joerg Roedel , Suzuki K Poulose , jiangkunkun@huawei.com, wanghaibin.wang@huawei.com, Sean Christopherson , Robin Murphy , Andrew Morton , Mark Brown , Marc Zyngier , Thomas Gleixner , Julien Thierry , Alexios Zavras , James Morse Subject: Re: [PATCH v2] iommu: Defer the early return in arm_(v7s/lpae)_map Date: Tue, 8 Dec 2020 15:54:32 +0000 Message-Id: <160743579041.2814165.8711661573048681201.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201207115758.9400-1-zhukeqian1@huawei.com> References: <20201207115758.9400-1-zhukeqian1@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 7 Dec 2020 19:57:58 +0800, Keqian Zhu wrote: > Although handling a mapping request with no permissions is a > trivial no-op, defer the early return until after the size/range > checks so that we are consistent with other mapping requests. Applied to arm64 (for-next/iommu/misc), thanks! [1/1] iommu: Defer the early return in arm_(v7s/lpae)_map https://git.kernel.org/arm64/c/f12e0d22903e Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev