Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp693359lqo; Fri, 10 May 2024 11:43:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWsqQdS4GzFMkBPN+dgSdjpgxOmv8PHKvF8gYK4YYkKf3QmsDt9XoqTjkGGbD+0OSnPHPElUEroCpLdgLrBMrJ19dRo1/+3ybxwGwgBdg== X-Google-Smtp-Source: AGHT+IFDzg2TRkojij/0Y73uMQBPAr5bz/j46qBVEI24ZCklqA/+b33vDDFZjF2TZyinDSV3bdJ7 X-Received: by 2002:a05:620a:5a43:b0:792:9f96:f7a with SMTP id af79cd13be357-792c7600b84mr340315685a.66.1715366602660; Fri, 10 May 2024 11:43:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715366602; cv=pass; d=google.com; s=arc-20160816; b=AvDXVBrM8uoSI4PvzpaB8hRHnOfn/ZoBg+sXJ0jv5T4EHTNPC7ezRWTaFA3Krq4QBT EvLIhYMUqyAQALNPDjwfrBv0UDpr0hDOb4tMxKG+MdLavpCxdFwycrJB52q0FlzxyLMM K+7n0Lxfl/jMKpnQoKz4qiYb19h4QqwbqS4CBVJuRxjvZiehgc128PPzHgCpucYYyWm/ wuguaCNVVUoNd4LPVGgMz1+xAUsHaINspHXk8oQV2O3I+3Mk15SbbgvL2+8ZjvucO61a 7pArLM/4FcdQ/8BqMluFeS7f2AVXMV5/JXPlGj6L+kaZXA+pvXUbte1L+H8SfsD/2waT cQ5A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature :dkim-filter; bh=/XIFIR9y/2aocYtN3V2XjaxnPUosdNnwRa6IYBoAXzA=; fh=rBpsPTMcDoHqhDrmJ99x3ZT8FBblfjErn+UcK8Dsa8U=; b=R4GhTg4UgKLj3x/4zhdMmJJIq3iy4ZjyVsgN3WYdez4AOjRZxsfucwIyfVvOf9FWp8 CFJRHzyC3geuLGWnPxobubK4HM0drlQDtJ/nw3G8F+bXIDWsrEqqZjVXBx8VENCnfN1E txYJ4Fz9suYnAV5GA4YMUEeX//ObK2wqiez//HzbNCxZAUCBozNvrBdA/Wz+GKt41BIq NuERJsxR9InRgFwtq2KuJCNBQgGNXIO71uvbQ+h7SOKdyYTnby2LnMo1MN71FxUgK1t0 cZ5m2xWGAD6k4kR291M5b8Sj2sXx/6mP2K/XGODnEzFdI+MbpRpaEZn4Ga6QO84eTIe5 qbtw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@raptorengineering.com header.s=B8E824E6-0BE2-11E6-931D-288C65937AAD header.b=CJy1hrkt; arc=pass (i=1 spf=pass spfdomain=raptorengineering.com dkim=pass dkdomain=raptorengineering.com dmarc=pass fromdomain=raptorengineering.com); spf=pass (google.com: domain of linux-kernel+bounces-176112-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176112-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=raptorengineering.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-792bf309c7asi250247485a.278.2024.05.10.11.43.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 11:43:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176112-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@raptorengineering.com header.s=B8E824E6-0BE2-11E6-931D-288C65937AAD header.b=CJy1hrkt; arc=pass (i=1 spf=pass spfdomain=raptorengineering.com dkim=pass dkdomain=raptorengineering.com dmarc=pass fromdomain=raptorengineering.com); spf=pass (google.com: domain of linux-kernel+bounces-176112-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176112-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=raptorengineering.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 64E011C2180E for ; Fri, 10 May 2024 18:43:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2211B4437F; Fri, 10 May 2024 18:43:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=raptorengineering.com header.i=@raptorengineering.com header.b="CJy1hrkt" Received: from raptorengineering.com (mail.raptorengineering.com [23.155.224.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 07FC345012; Fri, 10 May 2024 18:43:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=23.155.224.40 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715366594; cv=none; b=qiiUeuWJktCzFUsrlXi8b6jAeCSenRUsASbuLkWa0CEbPLaA9yO6++zyUs1tnJRXW2uqFq1m/SHWaqTTX1e8rRcIHCQcbNDbrKsiK+dLuD6BSSEp0jZSG+1XCWYl4rai7LEeWfGeKvJhxnMOxKbGNSq6u0KpwvsqkmPM/GYPWEM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715366594; c=relaxed/simple; bh=HgF/3Xa5VSNjvU/9axvTODFvHXS3OxmrPA3wQpo+6SY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=SwS1hvQQsW3nlUhKYcyfKfPKOH9UYfUwwLsPC4cJ/La/5HnxYYAJyZf5qHTERL9taKz6TvopgYC2iikMD9rTmJHgr+fNui2jjN6ZmiQXGdQTk0s9Z07+k6we7PKw09Q3Ift4ZenX4ejN8tHON1ioO+eGv5u5uLDC7fEGE6Wzbt0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=raptorengineering.com; spf=pass smtp.mailfrom=raptorengineering.com; dkim=pass (1024-bit key) header.d=raptorengineering.com header.i=@raptorengineering.com header.b=CJy1hrkt; arc=none smtp.client-ip=23.155.224.40 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=raptorengineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=raptorengineering.com Received: from localhost (localhost [127.0.0.1]) by mail.rptsys.com (Postfix) with ESMTP id 8AD098286B62; Fri, 10 May 2024 13:33:16 -0500 (CDT) Received: from mail.rptsys.com ([127.0.0.1]) by localhost (vali.starlink.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 6_lArAH4eB26; Fri, 10 May 2024 13:33:15 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by mail.rptsys.com (Postfix) with ESMTP id BE7B9828545C; Fri, 10 May 2024 13:33:15 -0500 (CDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.rptsys.com BE7B9828545C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raptorengineering.com; s=B8E824E6-0BE2-11E6-931D-288C65937AAD; t=1715365995; bh=/XIFIR9y/2aocYtN3V2XjaxnPUosdNnwRa6IYBoAXzA=; h=Message-ID:Date:MIME-Version:To:From; b=CJy1hrktEB9x2OiZs64ig8A6vj/hAO/TrVpn4xyLbZrYt1jiF5E6+9uKZ8lcnwXhs UTYcm1KtnLbVMzjSISe55+IxF/BbadMrJ3848lhIIXnj9P2J3ZR3iypriRFHaJsL0I MYgsa2Nqe9lxgudeG0G8f12VdNsjaUYb2e4/U6/w= X-Virus-Scanned: amavisd-new at rptsys.com Received: from mail.rptsys.com ([127.0.0.1]) by localhost (vali.starlink.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id DW4fhZglJ2dW; Fri, 10 May 2024 13:33:15 -0500 (CDT) Received: from [10.11.0.2] (5.edge.rptsys.com [23.155.224.38]) by mail.rptsys.com (Postfix) with ESMTPSA id CCE2E82853A8; Fri, 10 May 2024 13:33:14 -0500 (CDT) Message-ID: <202e8af6-8073-4d87-a38f-746644bb338d@raptorengineering.com> Date: Fri, 10 May 2024 13:33:13 -0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH v2 0/6] powerpc: pSeries: vfio: iommu: Re-enable support for SPAPR TCE VFIO To: Jason Gunthorpe , Shivaprasad G Bhat Cc: kvm@vger.kernel.org, aik@ozlabs.ru, linux-kernel@vger.kernel.org, oohall@gmail.com, ruscur@russell.cc, brking@linux.vnet.ibm.com, robh@kernel.org, svaidy@linux.ibm.com, aneesh.kumar@kernel.org, joel@jms.id.au, naveen.n.rao@linux.ibm.com, msuchanek@suse.de, jroedel@suse.de, gbatra@linux.vnet.ibm.com, npiggin@gmail.com, alex.williamson@redhat.com, mahesh@linux.ibm.com, tpearson@raptorengineering.com, Alexey Kardashevskiy , vaibhav@linux.ibm.com, linuxppc-dev@lists.ozlabs.org References: <171450753489.10851.3056035705169121613.stgit@linux.ibm.com> <20240501140942.GA1723318@ziepe.ca> <703f15b0-d895-4518-9886-0827a6c4e769@amd.com> <8c28a1d5-ac84-445b-80e6-a705e6d7ff1b@linux.ibm.com> <20240506174357.GF901876@ziepe.ca> Content-Language: en-US From: Shawn Anastasio In-Reply-To: <20240506174357.GF901876@ziepe.ca> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 5/6/24 12:43 PM, Jason Gunthorpe wrote: > On Sat, May 04, 2024 at 12:33:53AM +0530, Shivaprasad G Bhat wrote: >> We have legacy workloads using VFIO in userspace/kvm guests running >> on downstream distro kernels. We want these workloads to be able to >> continue running on our arch. > > It has been broken since 2018, I don't find this reasoning entirely > reasonable :\ > Raptor is currently working on an automated test runner setup to exercise the VFIO subsystem on PowerNV and (to a lesser extent) pSeries, so breakages like this going forward will hopefully be caught much more quickly. >> I firmly believe the refactoring in this patch series is a step in >> that direction. > > But fine, as long as we are going to fix it. PPC really needs this to > be resolved to keep working. > Agreed. Modernizing/de-cluttering PPC's IOMMU code in general is another task that we're working towards. As mentioned previously on the list, we're working towards a more standard IOMMU driver for PPC that can be used with dma_iommu, which I think will be a good step towards cleaning this up. Initially PowerNV is going to be our target, but to the extent that it is possible and useful, pSeries support could be brought in later. > Jason Thanks, Shawn