Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp672607ybv; Thu, 13 Feb 2020 07:32:26 -0800 (PST) X-Google-Smtp-Source: APXvYqzdlCubYDUpbAQJbFM8Vg3Ec0vZJzS6R7iTe8XwSycE85NUQxt03JqqQ3TPTYylx3VM+UnP X-Received: by 2002:a05:6830:1e47:: with SMTP id e7mr14226695otj.78.1581607946739; Thu, 13 Feb 2020 07:32:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581607946; cv=none; d=google.com; s=arc-20160816; b=Cd6nmG5rsOP/sNJN2hOLMboYpGRSonQ4N0nL5E7FlcJ0K6HJy53DQr43sVxm8fM5yD CRNJzwPudBYZEJ4dW8fhLiG96p/QpDh2UKRShnjiK162grFgyiOtzPe/7orwI26KOLzY 15fTGcsirirdn2jABVdDIVr/MRVzK4ITUFM+lL/sexh2b3cBCYzkeWor+K3IHkeuqhqE CjajJRkuOPYvUIQhqZ1IsbnXrzp+nt4ojJZIfWApXy1fLZ4CVVE4l8e8SSBo192uaS5p HnwNQl0D6WaJhgmSEzL2aAmUjS2vv1L4KqJPqPg0L5mRWCJJyKL1tSs8dFxRi6AnNI4F EAfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=FEphJ1DdB/8bt6xvL1kzaVds7MKaJ77FRImGlLnHd2c=; b=sZaLF01D6rUtUs3KRKWqTGCHdFaqsUz60bxhNPgGyHRs3QXsh30jKgKiAyCJ5OnBPC Gr+Bi3lP7KgDHUWIfP0T4199Jp7bHPRAs9ghZFKfNVo5gXiSWdlTYmNQMezZMFx5h3Gn n6UiLwph7YPIkPMZs9iTyHgHuRk8rcpnpOIhZFdJEtwhY8JwW4YkMDT08J6bJ/q9pssx FeRnpu9rFDitBNFwC8bK/lIETUDtRqlqCY7Y5ixRuYES9UJeNKueZ1RQsVZI4EKCmAfR 0lp7uGb6GIpwtMyZq3p1W1CSTvXsk1xu7K4Rp1NulLazhWzRV/PYW281M0vfmIWl9N1I HwaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HcpZs5fm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 9si1142465oiz.237.2020.02.13.07.32.13; Thu, 13 Feb 2020 07:32:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HcpZs5fm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387533AbgBMPbC (ORCPT + 99 others); Thu, 13 Feb 2020 10:31:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:51830 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387698AbgBMP1j (ORCPT ); Thu, 13 Feb 2020 10:27:39 -0500 Received: from localhost (unknown [104.132.1.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 42DF1206DB; Thu, 13 Feb 2020 15:27:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581607659; bh=k3puIBjVFYmGf7IfDvzFoxSc/Urm4/cjTLMX4cl8Tvk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HcpZs5fmGRDg18v8LxcySsVf17y8GS2G9qtcdxh4o/4ucqYYpc/ZWJae8KR4jGDPm VJI6l/6LSsTIz0ZTNtIjCPX8pjYWe9Z6ZO1eY7CCa7/ylQGeWzj4z0DuchPcO0ISBj 7YPltvYfSYNuAbOPi167BF7gSfX8i4MKnswypBI0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Shameer Kolothum , Will Deacon Subject: [PATCH 5.4 59/96] iommu/arm-smmu-v3: Populate VMID field for CMDQ_OP_TLBI_NH_VA Date: Thu, 13 Feb 2020 07:21:06 -0800 Message-Id: <20200213151901.872746489@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200213151839.156309910@linuxfoundation.org> References: <20200213151839.156309910@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Shameer Kolothum commit 935d43ba272e0001f8ef446a3eff15d8175cb11b upstream. CMDQ_OP_TLBI_NH_VA requires VMID and this was missing since commit 1c27df1c0a82 ("iommu/arm-smmu: Use correct address mask for CMD_TLBI_S2_IPA"). Add it back. Fixes: 1c27df1c0a82 ("iommu/arm-smmu: Use correct address mask for CMD_TLBI_S2_IPA") Signed-off-by: Shameer Kolothum Signed-off-by: Will Deacon Signed-off-by: Greg Kroah-Hartman --- drivers/iommu/arm-smmu-v3.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/iommu/arm-smmu-v3.c +++ b/drivers/iommu/arm-smmu-v3.c @@ -856,6 +856,7 @@ static int arm_smmu_cmdq_build_cmd(u64 * cmd[1] |= FIELD_PREP(CMDQ_CFGI_1_RANGE, 31); break; case CMDQ_OP_TLBI_NH_VA: + cmd[0] |= FIELD_PREP(CMDQ_TLBI_0_VMID, ent->tlbi.vmid); cmd[0] |= FIELD_PREP(CMDQ_TLBI_0_ASID, ent->tlbi.asid); cmd[1] |= FIELD_PREP(CMDQ_TLBI_1_LEAF, ent->tlbi.leaf); cmd[1] |= ent->tlbi.addr & CMDQ_TLBI_1_VA_MASK;