Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7486134imu; Tue, 22 Jan 2019 06:50:51 -0800 (PST) X-Google-Smtp-Source: ALg8bN5EDBQnBbssyVXoIAO1PEOXqCQvEpZ5ZmmARcvX1w8cT4ayxjGEXp7RHVkuPo9G6ZjV1sn8 X-Received: by 2002:a17:902:2e01:: with SMTP id q1mr33566512plb.97.1548168651860; Tue, 22 Jan 2019 06:50:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548168651; cv=none; d=google.com; s=arc-20160816; b=d3Evn7NuJGfealbjiNEMlHKHAATLP+Q4ZYFbB+34uc/lnXbOZ5ZUVdXXQiIdp+ps3R J8tP9eqHoYuJS0bQ2cL9mn1kHVRTkGkVnN6MQjS2I2lb1uIKhgy2GCTT+ZIPm1/Ta+xH +Q5+d0qee5dWm8AlNQb6dqhXuEGi60u69ggl0z4m90xW5i/c7W93vh8T5ZQK6MTzxj6W sAVCNsL2t6i0ZrRSwEyjD8gT5ibrV2Y7DYsF8htGvT5MykbNyo1q72XFH8Hdwfv64y09 UzDlhhxFAE1V0cDsT3UQiGo9Z6XEqOiwfMtCx/Aay5u2rr5Pk6UVu8ff1xdW3raI8a+2 k83g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:organization:from:to :content-transfer-encoding:mime-version; bh=sFkOIElKGJPlZru2lnr8rCZfjFZtbx+g7pTC8aaeg3E=; b=E1Rp7X8qkwlP3+N+pR5W5sYiadLQ5h/JriiAD0ZdqGK5r5ppS47ScvtJp4p4dwTBMX sNdY5QbLgqiXYIHpWR5OozrYPVUrINydnzoOb2dzwySHQFENcndSNmKU95EhLqEFd6Pa bEfaSuo8Ivj6535OAjqs/T1t5Pq5/3PEs08wP4OuV3cuR2fYM3kOhmJziRlLqK9jk1WP 9BLO8WZN+ipL3MHogjjUblieIoa0svgoYOtwrFl397c52UnJtAtlAj5KzBcHlHHNo/zo S3o4yXgQmjnau/uQAhxCQ05OnLaY6M/lZ0cUNFQV+82rvVNCs8X51PZ+CNkT8BSaEvvM GvAg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e4si14931097pgl.570.2019.01.22.06.50.36; Tue, 22 Jan 2019 06:50:51 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728917AbfAVOsb convert rfc822-to-8bit (ORCPT + 99 others); Tue, 22 Jan 2019 09:48:31 -0500 Received: from mga17.intel.com ([192.55.52.151]:15858 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728708AbfAVOsb (ORCPT ); Tue, 22 Jan 2019 09:48:31 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Jan 2019 06:48:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,506,1539673200"; d="scan'208";a="120376201" Received: from jlahtine-desk.ger.corp.intel.com (HELO localhost) ([10.251.82.181]) by orsmga003.jf.intel.com with ESMTP; 22 Jan 2019 06:48:27 -0800 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT To: Daniel Vetter , Joerg Roedel From: Joonas Lahtinen Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo In-Reply-To: <20190122110109.x3zoynemdl3ysbsn@8bytes.org> Cc: Eric Wong , David Woodhouse , David Airlie , Jani Nikula , Rodrigo Vivi , "list@263.net:IOMMU DRIVERS , Joerg Roedel , " , intel-gfx , dri-devel , Linux Kernel Mailing List References: <20181227114948.ev4b3jte3ubsc5us@dcvr> <154642214920.6261.102817444136744919@jlahtine-desk.ger.corp.intel.com> <20190104010626.e6yqdqkmdcqjepke@dcvr> <154659116310.4596.13613897418163029789@jlahtine-desk.ger.corp.intel.com> <20190118121705.a4usvhnskyblooja@dcvr> <20190122103914.msboylvkor5sb5lq@8bytes.org> <20190122110109.x3zoynemdl3ysbsn@8bytes.org> Message-ID: <154816850584.8871.13562920355478587539@jlahtine-desk.ger.corp.intel.com> User-Agent: alot/0.6 Subject: Re: [PATCH] iommu/intel: quirk to disable DMAR for QM57 igfx Date: Tue, 22 Jan 2019 16:48:26 +0200 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Joerg Roedel (2019-01-22 13:01:09) > Hi Daniel, > > On Tue, Jan 22, 2019 at 11:46:39AM +0100, Daniel Vetter wrote: > > Note that the string of platforms which have various issues with iommu > > and igfx is very long, thus far we only disabled it where there's no > > workaround to stop it from hanging the box, but otherwise left it > > enabled. So if we make a policy change to also disable it anywhere > > where it doesn't work well (instead of not at all), there's a pile > > more platforms to switch. > > I think its best to just disable iommu for the igfx devices on these > platforms. Can you pick up Eric's patch and extend it with the list of > affected platforms? We've been discussing this again more actively since a few months ago, and the discussion is still ongoing internally. According to our IOMMU folks there exists some desire to be able to assign the iGFX device aka have intel_iommu=on instead of intel_iommu=igfx_off due to how the devices might be grouped in IOMMU groups. Even when you would not be using the iGFX device. So for some uses, the fact that the device (group) is assignable seems to be more important than the iGFX device to be working. I'm afraid that retroactively disabling the assignment for such an old platform might break those usage scenarios. By my quick reading of the code, there's no way for user to turn the iGFX DMAR on once the quirk disables it. I guess one solution would be to default to intel_iommu=igfx_off for platforms that are older than certain threshold. But still allow user to enable. But that then requires duplicating the PCI ID database into iommu code. I don't really have winning moves to present, but I'm open to hearing how we can avoid more damage than starting to default to intel_iommu=on did already. Regards, Joonas > > Thanks, > > Joerg