Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8881865rwb; Thu, 24 Nov 2022 05:33:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf6OWeKhiHa7fUsjdumRMYqSmMUfhh93+jH/Xqu4icipv49gUASM32H06I/KWb+KAgENsZby X-Received: by 2002:a05:6a00:198d:b0:569:92fa:cbbc with SMTP id d13-20020a056a00198d00b0056992facbbcmr13995294pfl.77.1669296782855; Thu, 24 Nov 2022 05:33:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669296782; cv=none; d=google.com; s=arc-20160816; b=FNmGB8qlokvHrZ9mBnF3OP34zYskPMjbh+Qds5pctwakpzlBG9Ce+DjNuNCNRdBZjr qJa6hxhN6Rsor5jHWsmk92qpezpJa4xTSWZ/81twneMC0ngEYyRuGfEnWTo9VGlbep7e z0h+FWKndGmT20iNoey0AJl8W9Ikq/UjXrSROkdaXrJi3K/vdHXsgm26CtbQi5gPTMc0 9GQOwY7kvPhLiLyuOSKjuoK9/QpLh7ZGxT3V6OPsPNBYs4FkPbU6krrDJWSOt/ODzg4T ifmQhRc4+TPhej260Acno8IFA5joF8IvuKA484a7CziY9KsvknZDU6u/plCVrGKogAKE 0PiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=RcSivvCokxNkF1QPV7TJQxglKFkFKtiHag+c/24kTJo=; b=NYELCJzvEnBgQYounZ4cFz+ZNtPxk9m/7qBR6Bf9d6QIsmXSTLMMpTBGf6slO87iVP HmMriOSU+H5ibv+WKvzavgPos54CFSDzHLaQ5TTjpjO1o1sRBCBjZZ5RScTw80KayrHq OZqRp5mEU+Mkj41uq20+Wpt72OMpnWZ/pf6Olf/GM8ZwYfzqoUHkDiDIhRw36c+H6wr1 fhA5Ej98221+Q6lHa2+5CPeRTXep/jt71F6jJ2bOUddXM8z3v0qPuCKrEVQJfoCiicsr BSTgf6l9ZjtLGN6evn6AiKGuq8d7GawFg7YU0GKjDzopukGfmy+nYUhgPgwLfe4HUFeD i2pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Jsk9wMkQ; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t21-20020a63f355000000b0046ae2a99bc3si1225381pgj.357.2022.11.24.05.32.50; Thu, 24 Nov 2022 05:33:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Jsk9wMkQ; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229682AbiKXNVI (ORCPT + 87 others); Thu, 24 Nov 2022 08:21:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbiKXNVH (ORCPT ); Thu, 24 Nov 2022 08:21:07 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B70AF725F3; Thu, 24 Nov 2022 05:21:06 -0800 (PST) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1669296065; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RcSivvCokxNkF1QPV7TJQxglKFkFKtiHag+c/24kTJo=; b=Jsk9wMkQor96JUMQd/WDKwECmSKycWCOitLA95BFxxMZP06HaH4uZocgjqURcQ668mYfNH s8Wkmdk2bjxps0GMI4l1NL4otlLMG48KvAP1qs77Tweavg/78hXazB/djxOWvpbnTrIDUr UtIEHjnoTp949AY+wvzy3//+oAo7352W/VScAdVXcJIVfG58qH6dnPX9Onk+fg+p7dh2Mq 79oPP1wuCRmBEvBeb3zsaMnafKkaFBMoXsTnS/FM0ClsBWZT/8HCDIKFk/dMPdrd63qvac aE0SPCBgWtQl96L4SfDFwcnO86b7p37iWoylHMXVXllK26t/MV/BbYPLRr2Vzg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1669296065; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RcSivvCokxNkF1QPV7TJQxglKFkFKtiHag+c/24kTJo=; b=qaa9J1jkiXljNshb+W3Dm/bLZIVPe2i9i98NrZHMyq+qtvxx61NTon850Gw4uZDP3towos byxnDgYUBjlx2XDg== To: Jason Gunthorpe Cc: "Tian, Kevin" , LKML , "x86@kernel.org" , Joerg Roedel , Will Deacon , "linux-pci@vger.kernel.org" , Bjorn Helgaas , Lorenzo Pieralisi , Marc Zyngier , Greg Kroah-Hartman , "Jiang, Dave" , Alex Williamson , "Williams, Dan J" , Logan Gunthorpe , "Raj, Ashok" , Jon Mason , Allen Hubbe Subject: Re: [patch V2 31/33] iommu/vt-d: Enable PCI/IMS In-Reply-To: References: <20221121083657.157152924@linutronix.de> <20221121091328.184455059@linutronix.de> <87ilj4d766.ffs@tglx> Date: Thu, 24 Nov 2022 14:21:04 +0100 Message-ID: <878rk0cwu7.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 24 2022 at 09:14, Jason Gunthorpe wrote: > On Thu, Nov 24, 2022 at 10:37:53AM +0100, Thomas Gleixner wrote: >> Jason said, that the envisioned Mellanox use case does not depend on the >> IOMMU because the card itself has one which takes care of the >> protections. > > Right, but that doesn't mean we need the physical iommu turned > off. Setting the mlx pci device to identity mode is usually enough to > get back to full performance. Ok. >> How are we going to resolve that dilemma? > > The outcome is we don't have a strategy right now to make IMS work in > VMs. This series is all about making it work on physical machines, > that has to be a good first step. > > I'm hoping the OCP work stream on SIOV will tackle how to fix the > interrupt problems. Some of the ideas I've seen could be formed into > something that would work in a VM. Fair enough. Let me put the limitation into effect then. Thanks, tglx