Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4159872pxk; Tue, 22 Sep 2020 11:47:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUWLeirdk2o7Rg07e9DOY1h8cy1u0fdYivlgcLdLsEL+7LYf8IwisDJ4ifBl79W9oiCLP8 X-Received: by 2002:aa7:cf05:: with SMTP id a5mr5522845edy.313.1600800465009; Tue, 22 Sep 2020 11:47:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600800465; cv=none; d=google.com; s=arc-20160816; b=EBbq8BBh54umK+LYabUMg02+WugGYVeFpO71GKHc+u+xQ9/BM2N1PdE7RbT7MuZBrE MZ57OuvZ38ee9lprarHmncKpBailgIuhxB10wXkRDjkgRlUlJSnZierhPuIxkk1Zm1Si Hx+Dsy2ZMHhT+N4Kct9hd7whJ26uoadYnZ/egvY1jYi/+p+DUKhyonuVrVuMEW8tBTeS /aRCEolSYpR+mkSZqacWRq9igdHse6ebmJC/89gPCczkepDuKfpOgPPK4gSkfHrNEAOz IgTIv8cpjDKPWjLaGJIgOHJbC8aXqeleEk8FfJmrPa5KRdAvwLc7y/G+iPPgcBbb82lK bQYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:dkim-signature; bh=X7NUEq0ufXOsugZoq6CuHmrSiYQPXwP5Ooq9psOTR50=; b=O7JZRbRI79m/bkLYxhHnxt55hGumrnoYIJwGhdML5TIKwYuvzwFMp141BHebiX4Dzh XmMrI/H9hSPnVCbpFAHGB5YvIPBs3ddKVkSeB/os3Qek76gP/29DkLWlMrp/O7Ra8NTs Np7m7O2UGN/gocuxAhbkKhst1T2EMHrBUQoQlf73kbUx7JDUorKfmtYwMwNbMghv6Nre /Zmj7TLnA2eWTRDwQ6z0AXvTlCLDSNn8WtjLNmOelkloPpcaSULFsUjUAbmlidiLOubB s85b5NYg2JfEL6EzE0rhd4rngjxLM0YMGcZjIuFwb2vHJMdZEzlFS7Y22rNyzUOZrRLq lFFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@deltatee.com header.s=20200525 header.b=hgbszfn8; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e5si11469091ejk.275.2020.09.22.11.47.20; Tue, 22 Sep 2020 11:47:45 -0700 (PDT) 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; dkim=fail header.i=@deltatee.com header.s=20200525 header.b=hgbszfn8; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726672AbgIVSp6 (ORCPT + 99 others); Tue, 22 Sep 2020 14:45:58 -0400 Received: from ale.deltatee.com ([204.191.154.188]:49034 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726573AbgIVSp6 (ORCPT ); Tue, 22 Sep 2020 14:45:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deltatee.com; s=20200525; h=Subject:Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Sender: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=X7NUEq0ufXOsugZoq6CuHmrSiYQPXwP5Ooq9psOTR50=; b=hgbszfn8Q8M+LUV4fO4UmpVrpo W9L10nlBf4AUaJi6wIOyIwMb1CFqMtZY/o9YPR7nGiqdkOmv1tNNRIf5ZhnERq1qVDJh1Nc9vL0nD dJqxD7xLNbLfgkEh7EKiYDePwAfQG01lcQHmMnJJ5jiTFq0cpwqA1E2mIuGRHrpQb4tjqdv1ALsZs vmVwl83kpB1glfzXJMV2KiZK6XxfrMW9wMHWuwarvQfq7GqHyqSNYYu9JgOnHZUQVZuUBmsOf9Ie/ p4RgmnFrS92unexkZnUWkGuAIAFVc5EX/1pxqIwTMeQ9QJAqoKDGK/mQj+ZDdpwWf1oUhOiALDh9a CILlE2Bg==; Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtp (Exim 4.92) (envelope-from ) id 1kKnIa-0003mC-Kv; Tue, 22 Sep 2020 12:45:57 -0600 To: Robin Murphy , Lu Baolu , Joerg Roedel , Tom Murphy , David Woodhouse , Christoph Hellwig Cc: Intel-gfx@lists.freedesktop.org, Ashok Raj , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org References: <20200912032200.11489-1-baolu.lu@linux.intel.com> <776771a2-247a-d1be-d882-bee02d919ae0@deltatee.com> From: Logan Gunthorpe Message-ID: <3f50d09c-c9a1-77aa-0228-985c5d1f5b2b@deltatee.com> Date: Tue, 22 Sep 2020 12:45:52 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-CA Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 172.16.1.162 X-SA-Exim-Rcpt-To: linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, ashok.raj@intel.com, Intel-gfx@lists.freedesktop.org, hch@infradead.org, dwmw2@infradead.org, murphyt7@tcd.ie, joro@8bytes.org, baolu.lu@linux.intel.com, robin.murphy@arm.com X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-8.7 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE,MYRULES_FREE,NICE_REPLY_A autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [Intel-gfx] [PATCH v3 0/6] Convert the intel iommu driver to the dma-iommu api X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-09-22 3:51 a.m., Robin Murphy wrote: > On 2020-09-18 21:47, Logan Gunthorpe wrote: >> Hi Lu, >> >> On 2020-09-11 9:21 p.m., Lu Baolu wrote: >>> Tom Murphy has almost done all the work. His latest patch series was >>> posted here. >>> >>> https://lore.kernel.org/linux-iommu/20200903201839.7327-1-murphyt7@tcd.ie/ >>> >>> Thanks a lot! >>> >>> This series is a follow-up with below changes: >>> >>> 1. Add a quirk for the i915 driver issue described in Tom's cover >>> letter. >>> 2. Fix several bugs in patch "iommu: Allow the dma-iommu api to use >>> bounce buffers" to make the bounce buffer work for untrusted devices. >>> 3. Several cleanups in iommu/vt-d driver after the conversion. >>> >> >> I'm trying to test this on an old Sandy Bridge, but found that I get >> spammed with warnings on boot. I've put a sample of a few of them below. >> They all seem to be related to ioat. >> >> I had the same issue with Tom's v2 but never saw this on his v1. > > I think this might have more to do with ioat being totally broken - > AFAICS it appears to allocate descriptors with a size of 2MB, but free > them with a size of 512KB. Try throwing CONFIG_DMA_API_DEBUG at it to > confirm. Ah, yes, nice catch. Looks like it was broken recently by the following commit, but nobody noticed and the dma-iommu patch set added a warning which caught it. a02254f8a676 ("dmaengine: ioat: Decreasing allocation chunk size 2M->512K") Reverting that fixes the issue. I'll try to send patch or two for this. Logan