Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3242104pxb; Tue, 20 Apr 2021 04:03:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYK5oiOedQr2fQE8BE1F8p0loSbzklGVsGDXPHmM8jifRRqm/olAEmxjSbzqhl7gpwTh9y X-Received: by 2002:a05:6402:3ce:: with SMTP id t14mr15290723edw.142.1618916609215; Tue, 20 Apr 2021 04:03:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618916609; cv=none; d=google.com; s=arc-20160816; b=Stw7MJpHPnfGLBmeXt+ETL8Xa1qkq1TiXy6YEC3Y8Ft6ijNCSntBXfTAla+iYsmB9K BF+SlNlinBm+ZETZeNLreyrBwHhNA3LgZZp5YVdUyddxSw8OzR9Mlefv1QrRlZQAi9KS vmz0kjj3ez+0DVG9PKY/tuBZd9uar+vJ92vTcnBb2PITgl+VQs9L2k35cv58AT7U0w40 dpRV+PVals9OqR+HMzdlvKkgep1/WwhvpFTEOT+z4bY1u1CdetfSfgpoUQcyx4LdgaAo h9ENXvnoSM9Nl3xtlIiu6k/VYDODgBTAbzU7g5fcGnNfhdozjNam1pqlV0IyDqyoktJB pf5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=wMY0339CtMHVPGDMAI/wCHMHZwCMPtpAi9xg8PGitpY=; b=ZX8yFoUrfJbLx09kMpRqvcKxojGBfc/OZ1qq0IRouTqsvHyj4ivR5ZpCpylXqTKDat W385CqeHcM6v4CNFiCaFg9qbAK8ytbXhXw5NIbRfpISziaIdeEL4FoJ4Hq5GDx99RglW /VtSYFdoUr8A/hxt3LnN8iFwPMdf4eBgYM0k1CpvQ3Ih+1dCarcnFkxymBOvWrhbdwoc RToJ1Z7JxaHVFPVEl+KI8rcASNljwcLOXj8YV7FXhHyfJtf24H+YGL715R1uvQnD1ij8 8mDXmIsJNZJHUkKFQut3DqPBeRtRhZp4ga46Dx8Fap7M+bGHPlkaH4DxNoJiz44hBKmF Kwgg== 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 js8si15173359ejc.236.2021.04.20.04.03.04; Tue, 20 Apr 2021 04:03:29 -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 S231690AbhDTLCn (ORCPT + 99 others); Tue, 20 Apr 2021 07:02:43 -0400 Received: from mga17.intel.com ([192.55.52.151]:36275 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230290AbhDTLCm (ORCPT ); Tue, 20 Apr 2021 07:02:42 -0400 IronPort-SDR: 2EVMTZrDV0uNWNJxSa6hAgYuqHyo7uuazqskb234BCzm2xjRU2FGRE3UsTNtjsXDes1TXLKjk4 5Hm4lLjgKteQ== X-IronPort-AV: E=McAfee;i="6200,9189,9959"; a="175593013" X-IronPort-AV: E=Sophos;i="5.82,236,1613462400"; d="scan'208";a="175593013" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Apr 2021 04:02:10 -0700 IronPort-SDR: N9iqe5rW/vWlxZk0379oiq5CffC1Hbl+wY8nYTO3bqO3IjZx+G2xwnfFGXI0c4Jmv7UrdqGyQo SpkKMgYJjIOw== X-IronPort-AV: E=Sophos;i="5.82,236,1613462400"; d="scan'208";a="390958865" Received: from paasikivi.fi.intel.com ([10.237.72.42]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Apr 2021 04:02:06 -0700 Received: from paasikivi.fi.intel.com (localhost [127.0.0.1]) by paasikivi.fi.intel.com (Postfix) with SMTP id B2A7922C62; Tue, 20 Apr 2021 13:56:40 +0300 (EEST) Date: Tue, 20 Apr 2021 13:56:40 +0300 From: Sakari Ailus To: Bingbu Cao Cc: Andy Shevchenko , Bingbu Cao , linux-kernel@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 Subject: Re: [RESEND v2] iommu/vt-d: Use passthrough mode for the Intel IPUs Message-ID: <20210420105640.GI3@paasikivi.fi.intel.com> References: <1618886913-6594-1-git-send-email-bingbu.cao@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bingbu, On Tue, Apr 20, 2021 at 06:34:26PM +0800, Bingbu Cao wrote: > 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. When you're submitting a patch and want it reach the stable kernels, you'll need to add a Cc tag: Cc: stable@vger.kernel.org But not actually add the address to cc. I dropped stable@vger address from distribution. Please change this for v3. -- Kind regards, Sakari Ailus