Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp681201rdb; Fri, 26 Jan 2024 07:37:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IF47VprwXSKQGB1Oo1jny6yUxXR8rc0RXZpvtlXzdMXBt6L61TUvbFFIr0tGd9qfMlRBJjK X-Received: by 2002:a05:6830:90f:b0:6df:b694:e27d with SMTP id v15-20020a056830090f00b006dfb694e27dmr1638280ott.38.1706283420419; Fri, 26 Jan 2024 07:37:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706283420; cv=pass; d=google.com; s=arc-20160816; b=FK3lQPj/x/PPjG3CD3TOwntuMH8WKjzxoC6H2BKBcum7y+wdU0SXChHdb1fx+3HlVD kNQGMCWGCwq3lU5ONIPC3M2sIyh/bjqHKywoxYkzR24et68SWIWhhTTFI78fAyiLTZfy 9Xt88SGsCSqXi2LScE1QtzRpcueUqsU2fdJU89Nov/GloerR9okziY0/gkE2GFzCvnl0 g+W2hrMofJ9NK8wvg4+kUa/ajkM4f92OhBdt1BNHhp1HySTWumLz6NBB36j74o2D4LCX OUiGUZgQ+GRf4Ja+bShMCAR9MUoNHrb3lL1Q59bd4SAHqVtl3oDC2So4ReQuP1WsEgvz FaqQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=thread-index:thread-topic:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject :references:in-reply-to:message-id:cc:to:from:date:dkim-signature :dkim-filter; bh=fTWP5W9iG5QwHlage5ElLeYnTs1G1oJw4CN9sU4XTVk=; fh=9WfcGBJO/5mqprv7RzzVjA7un+xGUiuyOCyGC/cKsRg=; b=Up1kMZf+81AuRtLb7mkpzqjDpE0qWxLRGlUWTsvFce1mMzq2D2u8x7aFJ8DPunWCZF nhYc7+lYkrRpCCkhsatx0Y0LXMUNPB8fqTKfd5jKvY8/3zYcyZKRGiGZd4Q8WXOG+OYm Om0JldpHXjjVzvvQo1zgr4ttXGc40cEzQTChSoZAVCb3Us8rrQ1oxQQKk3O2JPQ1ax3G BkM02Ayk9JxPzZTd8MkFxl+wJJpWaKeMr6VEQNmrlImwua7EEQEzcZ3wZMRJMDnGzAoI oqkHZpD2ZTY+rgrJEjLnZyRLxqx7nCcsM8vlGSuxZBWPX1J41Ycezzds/mv0z/fvr0v3 5/Yw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@raptorengineering.com header.s=B8E824E6-0BE2-11E6-931D-288C65937AAD header.b=RJyHoW22; 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-40286-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40286-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 k6-20020ac85fc6000000b0042a07670740si1393293qta.242.2024.01.26.07.37.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 07:37:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-40286-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=RJyHoW22; 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-40286-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40286-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 2FC6E1C2142E for ; Fri, 26 Jan 2024 15:37:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1999C1CFAD; Fri, 26 Jan 2024 15:36:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=raptorengineering.com header.i=@raptorengineering.com header.b="RJyHoW22" 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 B87381D540 for ; Fri, 26 Jan 2024 15:36:45 +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=1706283408; cv=none; b=FghSJsVAOR0v7O+CgXJmLohrR16513+EBXEn8Cnt4fFAZV7fPHP6/Ju+x83CAyb4und5Jv9piTCgJDc7t4o7Dn3B2eWyeVLL3oMsrjn1I+gCuknbnr6C+foqGxuS/Fr5sgUv4+N+WhgNr6oQ3AhlEsH4DX2RxgcC7j7dYK9EdOk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706283408; c=relaxed/simple; bh=a0C7dY4YzMHGcQ7i8kF3thKZT23LiPNWR3wj3Bxv2vM=; h=Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject: MIME-Version:Content-Type; b=Ap4aV5OnQwa4AXUcqwPbhBHEZxJhOTMLRRpg48UCBm627+pxnJ/UnJtr04wB5aFWZsgxA6zHYA/KkVd9848To+qYbNNytbjwTg2EX99zRCw9m1jCsxTw8geus0hmJcRIiEugkILmhOean+YM1na+DY4To6AcAElQODNiX3/6QgU= 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=RJyHoW22; 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 1E346828564A; Fri, 26 Jan 2024 09:29:57 -0600 (CST) 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 Z4Bl9NmigOym; Fri, 26 Jan 2024 09:29:56 -0600 (CST) Received: from localhost (localhost [127.0.0.1]) by mail.rptsys.com (Postfix) with ESMTP id 29B658285898; Fri, 26 Jan 2024 09:29:56 -0600 (CST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.rptsys.com 29B658285898 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raptorengineering.com; s=B8E824E6-0BE2-11E6-931D-288C65937AAD; t=1706282996; bh=fTWP5W9iG5QwHlage5ElLeYnTs1G1oJw4CN9sU4XTVk=; h=Date:From:To:Message-ID:MIME-Version; b=RJyHoW22j6T7Bj4DC8orxCYKkaCSZusi8O1gZHUpIGJIhxHflzHPU559T+rrrzzUS JhXngyRdJ45kGSDwzbdsjuGyowgEjj2vMy2z0r0tsQn/ayuqOMpp1dDgAz4X890yt5 tnL/UykXiv2oGwwc3JAbs0x1c1JFxSSnSl7Q63CE= 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 iyprsa7HK8WJ; Fri, 26 Jan 2024 09:29:55 -0600 (CST) Received: from vali.starlink.edu (localhost [127.0.0.1]) by mail.rptsys.com (Postfix) with ESMTP id D610E828564A; Fri, 26 Jan 2024 09:29:55 -0600 (CST) Date: Fri, 26 Jan 2024 09:29:55 -0600 (CST) From: Timothy Pearson To: Jason Gunthorpe Cc: Shivaprasad G Bhat , iommu@lists.linux.dev, linuxppc-dev , linux-kernel , Michael Ellerman , npiggin , christophe leroy , aneesh kumar , naveen n rao , jroedel@suse.de, Timothy Pearson , aik@amd.com, bgray@linux.ibm.com, Greg Kroah-Hartman , gbatra@linux.vnet.ibm.com, vaibhav@linux.ibm.com Message-ID: <392247278.10124607.1706282995795.JavaMail.zimbra@raptorengineeringinc.com> In-Reply-To: <20240126151701.GZ50608@ziepe.ca> References: <170618450592.3805.8216395093813382208.stgit@ltcd48-lp2.aus.stglab.ibm.com> <170618451433.3805.9015493852395837391.stgit@ltcd48-lp2.aus.stglab.ibm.com> <20240125155017.GW50608@ziepe.ca> <20240126151701.GZ50608@ziepe.ca> Subject: Re: [PATCH 1/2] powerpc: iommu: Bring back table group release_ownership() call Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Mailer: Zimbra 8.5.0_GA_3042 (ZimbraWebClient - GC112 (Linux)/8.5.0_GA_3042) Thread-Topic: powerpc: iommu: Bring back table group release_ownership() call Thread-Index: BFoIxDhAfBmdu+WWYcEeQbWvy98cLw== ----- Original Message ----- > From: "Jason Gunthorpe" > To: "Shivaprasad G Bhat" > Cc: iommu@lists.linux.dev, "linuxppc-dev" , "linux-kernel" > , "Michael Ellerman" , "npiggin" , "christophe > leroy" , "aneesh kumar" , "naveen n rao" > , jroedel@suse.de, "Timothy Pearson" , aik@amd.com, > bgray@linux.ibm.com, "Greg Kroah-Hartman" , gbatra@linux.vnet.ibm.com, > vaibhav@linux.ibm.com > Sent: Friday, January 26, 2024 9:17:01 AM > Subject: Re: [PATCH 1/2] powerpc: iommu: Bring back table group release_ownership() call > On Fri, Jan 26, 2024 at 08:43:12PM +0530, Shivaprasad G Bhat wrote: >> > Also, is there any chance someone can work on actually fixing this to >> > be a proper iommu driver? I think that will become important for power >> > to use the common dma_iommu code in the next year... >> We are looking into it. > > Okay, let me know, I can possibly help make parts of this happen > > power is the last still-current architecture to be outside the modern > IOMMU and DMA API design and I'm going to start proposing things that > will not be efficient on power because of this. I can get development resources on this fairly rapidly, including testing. We should figure out the best way forward and how to deal with the VFIO side of things, even if that's a rewrite at the end of the day the machine-specific codebase isn't *that* large for our two target flavors (64-bit PowerNV and 64-bit pSeries). > I think a basic iommu driver using the dma API would not be so hard. > > I don't know what to do about the SPAPR VFIO mess though. :( > > Jason