From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2357EE14D0 for ; Wed, 6 Sep 2023 20:00:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243617AbjIFUAl (ORCPT ); Wed, 6 Sep 2023 16:00:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243302AbjIFUAd (ORCPT ); Wed, 6 Sep 2023 16:00:33 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E62271997 for ; Wed, 6 Sep 2023 13:00:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694030426; x=1725566426; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=aLHdwHegQ7tLlT9wHPePgjb01oI+kFc/uUNfIiMGb/g=; b=ElErUnf2v2dIeFT7XXXhAqKZl4qgfFOrwitpMqs3n0i8wF8zDFqOMU3F drrRJn3GyJih9ystNCobAjrd06djA8XPBzRNM6oUWyr3EW8OSiidWVnon nGPtptO2voTsgd6XOOmeQ27cZYJkKCU4UgtsyD+e8RYv1gHMzjXxclIzA RnOddAksbDI1Wqbegexi8lgCvQfIKJVbw+3kPXO+PwipmiE9N6L57hVvO XVefyxxNdJ3YMlDPp9HaPN8W2oG8WOHz1RpPu4lXLsw/tkC9LwyoudzZZ cPjBsb/EX7llJrITEr0mwu/qd0QIdDDyseRzUhd+qP8XvAXUMlw+ig7aV A==; X-IronPort-AV: E=McAfee;i="6600,9927,10825"; a="376070681" X-IronPort-AV: E=Sophos;i="6.02,233,1688454000"; d="scan'208";a="376070681" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Sep 2023 13:00:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10825"; a="718405716" X-IronPort-AV: E=Sophos;i="6.02,233,1688454000"; d="scan'208";a="718405716" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga006.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Sep 2023 13:00:22 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qdyhH-00792D-2P; Wed, 06 Sep 2023 23:00:19 +0300 Date: Wed, 6 Sep 2023 23:00:19 +0300 From: Andy Shevchenko To: Bjorn Helgaas Cc: Bartosz Pawlowski , linux-pci@vger.kernel.org, bhelgaas@google.com, Sheena Mohan , Aahil Awatramani , Justin Tai , joel.a.gibson@intel.com, emil.s.tantilov@intel.com, gaurav.s.emmanuel@intel.com, mike.conover@intel.com, shaopeng.he@intel.com, anthony.l.nguyen@intel.com, pavan.kumar.linga@intel.com, Alexander Lobakin Subject: Re: [PATCH 2/2] PCI: Disable ATS for specific Intel IPU E2000 devices Message-ID: References: <20230816172115.1375716-3-bartosz.pawlowski@intel.com> <20230906190623.GA234852@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org On Wed, Sep 06, 2023 at 10:59:20PM +0300, Andy Shevchenko wrote: > On Wed, Sep 06, 2023 at 02:06:23PM -0500, Bjorn Helgaas wrote: > > On Wed, Aug 16, 2023 at 05:21:15PM +0000, Bartosz Pawlowski wrote: ... > > > +/* > > > + * Intel IPU E2000 revisions before C0 implement incorrect endianness > > > + * in ATS Invalidate Request message body. Although there is existing software > > > + * workaround for this issue, it is not functionally complete (no 5-lvl paging > > > + * support) and it requires changes in all IOMMU implementations supporting > > > + * ATS. Therefore, disabling ATS seems to be more reasonable. > > > > Can we reference the commit that added the existing software > > workaround? > See below. Oh, I meant the second question here, i.e. > > It sounds like systems that (a) don't require 5-level paging and (b) > > use an IOMMU implementation that include the appropriate changes might > > still be able to use ATS? Is there a way for them to do that? ^^^ this one. > > > + */ > > > +static void quirk_intel_e2000_no_ats(struct pci_dev *pdev) > > > +{ > > > > + if (pdev->revision < 0x20) > > Isn't it the answer to your question? > > > > + quirk_no_ats(pdev); > > > +} -- With Best Regards, Andy Shevchenko