Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp965166ybh; Wed, 22 Jul 2020 18:45:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2LHzzcRIdUi1rK90HJ+df/v+cvReyI/jl83EBlY2vivmbzemaxlKD/Paud2ZVq9EMqajn X-Received: by 2002:a17:907:aad:: with SMTP id bz13mr2340157ejc.276.1595468758872; Wed, 22 Jul 2020 18:45:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595468758; cv=none; d=google.com; s=arc-20160816; b=NlR6h90P+kql1uUP5VDOgJUgkPzQbA6eNC+FQr24HKTBI8Glo2UlTQ+6F/hKvr9WRO GwPL1GYPrwn+GWY8t04BiNCLhYwgkwrTEQjSA6nR6jH73LE2HzkMJwYHAOjvSV7+KgbT cxevPtA7ZoY47vTQ751r+VysqAjPMftSnqnYim2AeIotfVdIU4SL6FkDx1Gx3YIboLx6 I17N8EBNfnnc7svrBW09liMf7dbnhfB6686mnkfiO1yv68dgVYCCFbnnbbN9u31/EJr0 HXNoLxP94nO63OtJnP8NDMJ6u+LVKZLm7+tUJhYseTPxgmRkOlIyyKGA7Xrm7aKsYmzE hATQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:cc:ironport-sdr:ironport-sdr; bh=ZuDzA9qAfAp7mc9EH/HlCwEcWpHioLeXWHBJJ/KRh28=; b=GpZxmlXe+Q/ClAzCc9EobcA8IpuG/IddpB441Hwcc7uLx0GwRYLUFnsPhddpeKlr86 rWWJHenWDhZyPWDO4XrZyz7vM/l5kbfujf+EXmoD5wP+9wEE8RPi6u/2z5+EnykcSFxb hnD8/0sLqBv8rA4wae/HsgLJq0auAjHGPRYm24TeUjl2UVjwASYlPSwtAgohPmbSjLch X49ZVVRIO4ux/pk80D6KP6EMup+Moug4NrN5Gqd8aqLsxy8r73sp3WbUwj88ij35SyfD jiJXrtKWIaesMJbYxizmPetS6Ek/3NEYPODP7EKSxkKabd8bf6szL73xumMl5pIBP5eK oZEA== 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 z10si1162643ejc.59.2020.07.22.18.45.35; Wed, 22 Jul 2020 18:45:58 -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 S2387556AbgGWBnV (ORCPT + 99 others); Wed, 22 Jul 2020 21:43:21 -0400 Received: from mga06.intel.com ([134.134.136.31]:35136 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729198AbgGWBnU (ORCPT ); Wed, 22 Jul 2020 21:43:20 -0400 IronPort-SDR: vGmSKqUiAwiT79TdRlYfUEzhn+QRTigIexKiuE57WYP+IshVvcWoYnVTzDgoGbgKjQO/xC2qOB qeV1kVAWmHJw== X-IronPort-AV: E=McAfee;i="6000,8403,9690"; a="211994130" X-IronPort-AV: E=Sophos;i="5.75,383,1589266800"; d="scan'208";a="211994130" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jul 2020 18:43:20 -0700 IronPort-SDR: qzEgg29TJShS4o3Yp4JnojIJki6kfZSSgbAjaUh16Ol/Mp5LoUetM0bF3whgosZFuwAEP/+n5K rYuL/eygxALg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,383,1589266800"; d="scan'208";a="392853121" Received: from allen-box.sh.intel.com (HELO [10.239.159.139]) ([10.239.159.139]) by fmsmga001.fm.intel.com with ESMTP; 22 Jul 2020 18:43:17 -0700 Cc: baolu.lu@linux.intel.com, Ashok Raj , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" , Koba Ko , "iommu@lists.linux-foundation.org" , Christian Kellner Subject: Re: [PATCH 1/1] iommu/vt-d: Skip TE disabling on quirky gfx dedicated iommu To: "Limonciello, Mario" , Joerg Roedel References: <20200721001713.24282-1-baolu.lu@linux.intel.com> From: Lu Baolu Message-ID: <2695916e-0dfd-6c8a-d4e7-1f4da372e123@linux.intel.com> Date: Thu, 23 Jul 2020 09:38:29 +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=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/22/20 7:45 AM, Limonciello, Mario wrote: > > >> -----Original Message----- >> From: Lu Baolu >> Sent: Tuesday, July 21, 2020 6:07 PM >> To: Limonciello, Mario; Joerg Roedel >> Cc: baolu.lu@linux.intel.com; Ashok Raj; linux-kernel@vger.kernel.org; >> stable@vger.kernel.org; Koba Ko; iommu@lists.linux-foundation.org >> Subject: Re: [PATCH 1/1] iommu/vt-d: Skip TE disabling on quirky gfx dedicated >> iommu >> >> >> [EXTERNAL EMAIL] >> >> Hi Limonciello, >> >> On 7/21/20 10:44 PM, Limonciello, Mario wrote: >>>> -----Original Message----- >>>> From: iommu On Behalf Of Lu >>>> Baolu >>>> Sent: Monday, July 20, 2020 7:17 PM >>>> To: Joerg Roedel >>>> Cc: Ashok Raj;linux-kernel@vger.kernel.org;stable@vger.kernel.org; Koba >>>> Ko;iommu@lists.linux-foundation.org >>>> Subject: [PATCH 1/1] iommu/vt-d: Skip TE disabling on quirky gfx dedicated >>>> iommu >>>> >>>> The VT-d spec requires (10.4.4 Global Command Register, TE field) that: >>>> >>>> Hardware implementations supporting DMA draining must drain any in-flight >>>> DMA read/write requests queued within the Root-Complex before completing >>>> the translation enable command and reflecting the status of the command >>>> through the TES field in the Global Status register. >>>> >>>> Unfortunately, some integrated graphic devices fail to do so after some >>>> kind of power state transition. As the result, the system might stuck in >>>> iommu_disable_translation(), waiting for the completion of TE transition. >>>> >>>> This provides a quirk list for those devices and skips TE disabling if >>>> the qurik hits. >>>> >>>> Fixes:https://bugzilla.kernel.org/show_bug.cgi?id=208363 >>> That one is for TGL. >>> >>> I think you also want to add this one for ICL: >>> Fixes:https://bugzilla.kernel.org/show_bug.cgi?id=206571 >>> >> >> Do you mean someone have tested that this patch also fixes the problem >> described in 206571? >> > > Yes, confusingly https://bugzilla.kernel.org/show_bug.cgi?id=208363#c31 actually > is the XPS 9300 ICL system and issue. > > I also have a private confirmation from another person that it resolves it for > them on another ICL platform. > Okay! Thank you very much! I just posted v2 with this tag added. Best regards, baolu