From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 05071C433E0 for ; Thu, 28 Jan 2021 12:18:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C3F4C64DDC for ; Thu, 28 Jan 2021 12:18:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231398AbhA1MSi (ORCPT ); Thu, 28 Jan 2021 07:18:38 -0500 Received: from 8bytes.org ([81.169.241.247]:53324 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231127AbhA1MSf (ORCPT ); Thu, 28 Jan 2021 07:18:35 -0500 Received: by theia.8bytes.org (Postfix, from userid 1000) id 9A61D51D; Thu, 28 Jan 2021 13:17:49 +0100 (CET) Date: Thu, 28 Jan 2021 13:17:48 +0100 From: Joerg Roedel To: Lu Baolu Cc: Will Deacon , Ashok Raj , Jacob Pan , Guo Kaijie , Liu Yi L , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] iommu/vt-d: Correctly check addr alignment in qi_flush_dev_iotlb_pasid() Message-ID: <20210128121747.GK32671@8bytes.org> References: <20210119043500.1539596-1-baolu.lu@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210119043500.1539596-1-baolu.lu@linux.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 19, 2021 at 12:35:00PM +0800, Lu Baolu wrote: > An incorrect address mask is being used in the qi_flush_dev_iotlb_pasid() > to check the address alignment. This leads to a lot of spurious kernel > warnings: > > [ 485.837093] DMAR: Invalidate non-aligned address 7f76f47f9000, order 0 > [ 485.837098] DMAR: Invalidate non-aligned address 7f76f47f9000, order 0 > [ 492.494145] qi_flush_dev_iotlb_pasid: 5734 callbacks suppressed > [ 492.494147] DMAR: Invalidate non-aligned address 7f7728800000, order 11 > [ 492.508965] DMAR: Invalidate non-aligned address 7f7728800000, order 11 > > Fix it by checking the alignment in right way. > > Fixes: 288d08e780088 ("iommu/vt-d: Handle non-page aligned address") > Reported-and-tested-by: Guo Kaijie > Signed-off-by: Lu Baolu > Cc: Liu Yi L > --- > drivers/iommu/intel/dmar.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied for 5.11, thanks.