Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3229608pxb; Tue, 20 Apr 2021 03:42:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxItYv9ewhZiCJroZR3qd19oDNMa+Qokm6Z65P54jkrCylgpHZLHEd6bCPRoStWl+gPY2Lc X-Received: by 2002:a17:906:5906:: with SMTP id h6mr11266312ejq.176.1618915379705; Tue, 20 Apr 2021 03:42:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618915379; cv=none; d=google.com; s=arc-20160816; b=smFd8nedpeYMLqEF1Ws21drCvYCGypfJQVWb6NB7o/XNCjEj04SZE6UwqPs+T//dgr olPZP3UwrhZVDBj2G7nH5R/edoi55s24T67irY2sVMBU3p6L0Ktywpal5F/PiX0OJ6ZO 9Qc26STHncqbZNN6yG2JQtoo4aNQzTsAICBNO2KaiWJ6Mx5i8F9jSpT6WSgRKAps5MUM RzhuQ4pyu7bwvIzvXpGxYuaG28TO+IIaaig1leAzh0xSdDOywZGfyyQF5aMBiJG8FtFb Taz6bFdYGi2XwQdjiQTIFPpcjg+humdw8z87l0FywddwEjHWGxZDhjjqiLKfEtQCnQUD F1XQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=gbhATThY8DOP9WFbezBCKkwXrnJEwyyJn9c/bslGed8=; b=t3t6h1J5fM1rJErjijMys95IeMjRzZNLok7cHkVwDu+uyzE3NOvccrfL3WHyWBJEUP RP2aWLIna/CusvlLElG+2EkhmBgDkFc0aqDFLO3L09jkP2WZs1YjVlxLQQJXtOmdPdlk 5/M0szLYUYLWuzuNBBLtJNJVHQsOfbjBfdK3w1ZPTDTTb1OkK+CItBjXO9GoJEcuzdKM awiT3MiJiVXrT0jmJ9SPPFVKUaPgKKKtucjod3/lJn/Gajokg/7iGufg9wWx01AeaStJ HM4d4oauzmWELmTcc7ajwzC3/xZZsNpw8Yzwy6NW2ipOw4+MZmmMTQe4hLsDO2L6cUMe wxUw== 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v8si12170167eju.354.2021.04.20.03.42.36; Tue, 20 Apr 2021 03:42:59 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231642AbhDTKmB (ORCPT + 99 others); Tue, 20 Apr 2021 06:42:01 -0400 Received: from mga07.intel.com ([134.134.136.100]:37280 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231616AbhDTKmA (ORCPT ); Tue, 20 Apr 2021 06:42:00 -0400 IronPort-SDR: 6kAnX2Oqq601rIVnshvdyJGrPfbF+Tx9vQTQ+WkiwYTcfppmjRiKbLMjch4aKx2v5kMCCTGrXL ae6BaBxz1thw== X-IronPort-AV: E=McAfee;i="6200,9189,9959"; a="259439880" X-IronPort-AV: E=Sophos;i="5.82,236,1613462400"; d="scan'208";a="259439880" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Apr 2021 03:41:28 -0700 IronPort-SDR: zBEE34l19qdqr83AHGBhxQffq+4JvC3ZbYqCOiE4ip4c669xO6weWyCL0VUIfhoj5vmAZi7aFB akOfFPKkyhLw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,236,1613462400"; d="scan'208";a="523757927" Received: from ipu5-build.bj.intel.com (HELO [10.238.232.202]) ([10.238.232.202]) by fmsmga001.fm.intel.com with ESMTP; 20 Apr 2021 03:41:24 -0700 Subject: Re: [RESEND v2] iommu/vt-d: Use passthrough mode for the Intel IPUs To: Andy Shevchenko , Bingbu Cao Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, linux-pci@vger.kernel.org, iommu@lists.linux-foundation.org, dwmw2@infradead.org, baolu.lu@linux.intel.com, joro@8bytes.org, will@kernel.org, bhelgaas@google.com, rajatja@google.com, grundler@chromium.org, tfiga@chromium.org, senozhatsky@chromium.org, sakari.ailus@linux.intel.com References: <1618886913-6594-1-git-send-email-bingbu.cao@intel.com> From: Bingbu Cao Message-ID: Date: Tue, 20 Apr 2021 18:34:26 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andy, On 4/20/21 6:20 PM, Andy Shevchenko wrote: > On Tue, Apr 20, 2021 at 10:48:33AM +0800, Bingbu Cao wrote: >> Intel IPU(Image Processing Unit) has its own (IO)MMU hardware, >> The IPU driver allocates its own page table that is not mapped >> via the DMA, and thus the Intel IOMMU driver blocks access giving >> this error: >> >> DMAR: DRHD: handling fault status reg 3 >> DMAR: [DMA Read] Request device [00:05.0] PASID ffffffff >> fault addr 76406000 [fault reason 06] PTE Read access is not set >> >> As IPU is not an external facing device which is not risky, so use >> IOMMU passthrough mode for Intel IPUs. >> >> Fixes: 26f5689592e2 ("media: staging/intel-ipu3: mmu: Implement driver") >> Signed-off-by: Bingbu Cao >> --- >> drivers/iommu/intel/iommu.c | 29 +++++++++++++++++++++++++++++ > > This misses the changelog from v1 followed by the explanation why resent. > I noticed there was a typo in the recipient list: stable.vger.kernel.org -> stable@vger.kernel.org no code change for resent. -- Best regards, Bingbu Cao