Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1070963lqt; Tue, 19 Mar 2024 11:42:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW4z+RGANdroAjo/UGLDijM9cN6rdD9QQOn+zALKmOvRVtpM/xLfLoQ3UZG0PIgzFOkXPUZiaewcO+piwaVCLrXbMj1/lgITg1KjB0k0A== X-Google-Smtp-Source: AGHT+IHQS2QpiQhAvgIPxJ219sMRSRQ6DjuV89AYI+Q4WobgqYSRy9Mud9P3nxebwqE9WsEBGIvw X-Received: by 2002:a67:ec11:0:b0:473:21ff:cc15 with SMTP id d17-20020a67ec11000000b0047321ffcc15mr13718086vso.21.1710873749905; Tue, 19 Mar 2024 11:42:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710873749; cv=pass; d=google.com; s=arc-20160816; b=PR4hzwTHZhU2e8QaCbkdr0mq20nJRo+jLo45UXJuI3A7slHqcMQg5QMQGfwhTaggob ot7Mzx/h/VsgWsXUBaTlpsnSgpCcjxvU738+ghzAgcVl2+B86/6rstdGIF1pG+XsSWxf VjzCChL0GYJMYiBLZmNgW8fgu6zvEGwgV5NMJ+QepRKXQaH8aFFP1+BypZUAE0a3EYyS 6OFSru4gORxQPHrhR8MEoqb39aBadTtGNWCGxh0N/sZswfbujQQUzMVx9xSGkgpttrgb 7bQV9d7lVKL9/J6tu38W2B03ldZdXwe+nXoyZl52qaTAI0g3TRoJddAa3fLmeong0B4Y FqAg== 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=jjl+qmMtiRVpAUsU+d+UXWZRLmd8K+2jgNQsp7lj+04=; fh=GpMM1qwmhruCmGzLWrTt0uAULw9q7vJq+Z3PICmP3U8=; b=jorHuw+fCi5dECUimY39U3fYPu8zRSR7S535RfqctQl86VR8MdDg/cbwY68FaJU5M4 h+6kSVeYvdzNfLD016hhHmBfACDFLZ7huJQ2yvitUzlHcFOyP8U+fEbeVCczLA9/caZw uWTeZY9QvODvYrMMmQ4xVRRy7/Gm8MVdHKouejhBSiG2voSjXXboYfXyj2LLrRc8Accf +lF7XumcfQFvNsCv5PKJ9quFyoQ4FD3zD9khYsQ3siZd9488jEax+ogCt2NZeTvfzv6F G0XN2Wt2WnMwgfaMztSeR6xZAC2JBgCYoqhEGQPdoMxMGh0psQedyt1CSPyJRTSPErB/ L44g==; 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=bZRSuirt; 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-108030-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108030-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 mb10-20020a056214550a00b0069617ab87f2si5325418qvb.64.2024.03.19.11.42.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 11:42:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-108030-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=bZRSuirt; 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-108030-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108030-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 94A431C22239 for ; Tue, 19 Mar 2024 18:42:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 55A9339FC1; Tue, 19 Mar 2024 18:42:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=raptorengineering.com header.i=@raptorengineering.com header.b="bZRSuirt" 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 3B1383838F; Tue, 19 Mar 2024 18:42:20 +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=1710873743; cv=none; b=ut+VYbSRXHZyxkAFEhTTPa9oXM0w17A09TEynD1lCP9Uaipct+DRv02DSkDQIiYOoMQPPoME3LBekTSgvj2WB4RDsimwtJU67+rjh/zHMdhqNlVkGmQPNuKHJwzoFFB7D+EAvaEdL29p3m/fDV+YFdkWFsWFk8V77AXeKCJ3tuo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710873743; c=relaxed/simple; bh=VN/elIqf9LElJlgNTtPrq8H9FEwfVHcaHoZhKnOzMuw=; h=Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject: MIME-Version:Content-Type; b=AQ/n38V5DJK+f9aLNkuRxOAH5Mf/d4Hbl0TQKQvfoKrvuTK3UEn7HLi3mh+EQG/e91bZuZk7p8DgavimUh09+JI9WY/gsNW3F0SAqlvdHFxQwGNVY2NqcF6kbV8xH5KdPNJOzDdD50DtBCfFarjFWO0j7Ijz5cxbkq0oxoE9uKQ= 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=bZRSuirt; 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 6486482853FD; Tue, 19 Mar 2024 13:36:55 -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 zNGRQb1hjFIX; Tue, 19 Mar 2024 13:36:53 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by mail.rptsys.com (Postfix) with ESMTP id 95ED982857C6; Tue, 19 Mar 2024 13:36:53 -0500 (CDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.rptsys.com 95ED982857C6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raptorengineering.com; s=B8E824E6-0BE2-11E6-931D-288C65937AAD; t=1710873413; bh=jjl+qmMtiRVpAUsU+d+UXWZRLmd8K+2jgNQsp7lj+04=; h=Date:From:To:Message-ID:MIME-Version; b=bZRSuirtYJVJx6DLzBTldOSSqPcXRGEoyzhi4eq6ezoK3oOseSQDCxWemf+VcT27i P/2bOL4Vy81473wmz5gBDMJvZNe96fzmvW6jtLHauh0qPnwNM/o/JoLAm8dX1OX4HK pEZEQTCZDnUY8x8A6J7bhD/nF/t+H+0XQdN7gKfc= 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 C_5K4lh6-1JZ; Tue, 19 Mar 2024 13:36:53 -0500 (CDT) Received: from vali.starlink.edu (localhost [127.0.0.1]) by mail.rptsys.com (Postfix) with ESMTP id 531A182853FD; Tue, 19 Mar 2024 13:36:53 -0500 (CDT) Date: Tue, 19 Mar 2024 13:36:51 -0500 (CDT) From: Timothy Pearson To: Jason Gunthorpe Cc: Shivaprasad G Bhat , Timothy Pearson , Alex Williamson , linuxppc-dev , Michael Ellerman , npiggin , christophe leroy , aneesh kumar , naveen n rao , gbatra , brking@linux.vnet.ibm.com, Alexey Kardashevskiy , robh@kernel.org, linux-kernel , kvm , aik , msuchanek@suse.de, jroedel , vaibhav , svaidy@linux.ibm.com Message-ID: <1386271253.24278379.1710873411133.JavaMail.zimbra@raptorengineeringinc.com> In-Reply-To: <20240319143202.GA66976@ziepe.ca> References: <171026724548.8367.8321359354119254395.stgit@linux.ibm.com> <171026725393.8367.17497620074051138306.stgit@linux.ibm.com> <20240319143202.GA66976@ziepe.ca> Subject: Re: [RFC PATCH 1/3] powerpc/pseries/iommu: Bring back userspace view for single level TCE tables 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 - GC122 (Linux)/8.5.0_GA_3042) Thread-Topic: powerpc/pseries/iommu: Bring back userspace view for single level TCE tables Thread-Index: eRa4lP8lSoGisWT5ua6Vo0RITwt14g== ----- Original Message ----- > From: "Jason Gunthorpe" > To: "Shivaprasad G Bhat" > Cc: "Timothy Pearson" , "Alex Williamson" , "linuxppc-dev" > , "Michael Ellerman" , "npiggin" , "christophe > leroy" , "aneesh kumar" , "naveen n rao" > , "gbatra" , brking@linux.vnet.ibm.com, "Alexey Kardashevskiy" > , robh@kernel.org, "linux-kernel" , "kvm" , "aik" > , msuchanek@suse.de, "jroedel" , "vaibhav" , svaidy@linux.ibm.com > Sent: Tuesday, March 19, 2024 9:32:02 AM > Subject: Re: [RFC PATCH 1/3] powerpc/pseries/iommu: Bring back userspace view for single level TCE tables > On Tue, Mar 12, 2024 at 01:14:20PM -0500, Shivaprasad G Bhat wrote: >> The commit 090bad39b237a ("powerpc/powernv: Add indirect levels to >> it_userspace") which implemented the tce indirect levels >> support for PowerNV ended up removing the single level support >> which existed by default(generic tce_iommu_userspace_view_alloc/free() >> calls). On pSeries the TCEs are single level, and the allocation >> of userspace view is lost with the removal of generic code. > > :( :( > > If this has been broken since 2018 and nobody cared till now can we > please go in a direction of moving this code to the new iommu APIs > instead of doubling down on more of this old stuff that apparently > almost nobody cares about ?? > > Jason Just FYI Raptor is working on porting things over to the new APIs. RFC patches should be posted in the next week or two.