From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qt1-f176.google.com (mail-qt1-f176.google.com [209.85.160.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F0FE319C56B for ; Thu, 3 Oct 2024 13:38:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727962733; cv=none; b=pEbsaw8k2n63r9nMdwMWFfiS1QdixaYB4Xx90RJ4Oj187y7CHQLvC5i/PErqEawFpZL4Glf3k0NUqkqihrZRztpmKi2fATVZHLl7xMkg60VbC4IidS7rOaaZqiQmbJHg/rF+OHJ0cMARBdODH98MkdGDLFZDkiAwTqss8tpfJI0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727962733; c=relaxed/simple; bh=2yRHoyoZovFhtKX/Tu0sqMjpkMS+w41Nsd0gnTQ9W0o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=INi6y0taxBv9wqDg+ZQAc2J1ngvKH58iRUeQAq0MI9pjXfRnuIXxcKgvzKn+haZzMDAA4YFEmCwXBKjHgssKqC1dgyZykZM3+jhM5ZHoqbhHQP92bzYQE5HahuFy6i4hXY8gObK/rnmuWc21JCg5wk2iPpWNP+R8K/KjiZQh77I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=IWyIHgdE; arc=none smtp.client-ip=209.85.160.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="IWyIHgdE" Received: by mail-qt1-f176.google.com with SMTP id d75a77b69052e-4583068795eso8346831cf.1 for ; Thu, 03 Oct 2024 06:38:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1727962731; x=1728567531; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=7cYlQ8sS3dSodfjWbJOUDRW+BCri6YPN6Z8wFgeEOOM=; b=IWyIHgdEIAYIvvo8M/x0YnNA0KN7yB9ejBqtkur3ScdlZQyxNduRq0jYw7SNbMxyF4 7MGCrkKW4sJr1OOhW7zuqVovOJxjWTWuq3B9eij1y1HByuiI+V8DcDB5ZXkmji8Ec4qK sBZADW8Le7x21pEq8TtXoMIhGmWA2aETfCfZxbbknI+y7c8N+qBt/uETaRG8pU0oSq65 ufC7HKUP9oPCI6J9g9LQJU8859pcCgWJWrXvmY1uK6IWaEjjdInV2B8yqvpSuuI/WY+r TLv0NwkHxX9bWB959A/pEaivLiBtoNTj34wXMxIumHMSNPviZIGa2uhfhOisOFjn0tHY B7wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727962731; x=1728567531; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=7cYlQ8sS3dSodfjWbJOUDRW+BCri6YPN6Z8wFgeEOOM=; b=UswnikHcyZeCmZrOUOHPoQErpibxLOfJPHsxHM/8WeSqhLumpwTzdG7E/8ELYk6ACo /dxw6CSkG+RdutBmkemYdFxin7D6ibMe0HXVAMbSO339yB1dVidJfVqCZyCio5Y3Devn FqacK65do7Y8HUW6v/psNeOu9LLNLfZfNjMejZmqcEOOBdOrteezQtcWStBrAY5vNRvt Wd1Ed1F69aOvRn6ztTfvS49eDNiKqL8H+gligvbbgLo5B6Y2ccZbOfi1LHfQRm9ucqZq jYtUTRZYhwyeSzs4cygSEqUNDJaLO/HrUDBFD9vdTatKIQvqx3AW3JETMl3YE5DDbmHF BQOQ== X-Forwarded-Encrypted: i=1; AJvYcCUaz3Odd5nFd/qJlCbXaRGsNAbDV0aE5q4hG/hWwy7pqTFQlkgoMKlAYaRaPFeznnXSHgVzrCPcVhUuYOw=@vger.kernel.org X-Gm-Message-State: AOJu0YzJ4lJ0HfgNO+V1nuN9JPmsO21xFRr3j1t3A82vl0+XvZ0bvhQh FgAXLl6+YalA8qwLfEJpPAdKfAldJAsNH2NNzfFUrO0WuUPIPEAap3HBMgM9w/0= X-Google-Smtp-Source: AGHT+IEeXln8uxBBs7r0qbtw2wolKdiK0oe/fV/z2xXXfZUZhaM6OzDUMtsWVXSO1oxDdjO6OayXDA== X-Received: by 2002:ac8:58c4:0:b0:458:2795:4853 with SMTP id d75a77b69052e-45d804d3296mr96964851cf.32.1727962730877; Thu, 03 Oct 2024 06:38:50 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-68-128-5.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.128.5]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-45d92ed4dcesm5550881cf.69.2024.10.03.06.38.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2024 06:38:50 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1swM2b-00ASZK-KP; Thu, 03 Oct 2024 10:38:49 -0300 Date: Thu, 3 Oct 2024 10:38:49 -0300 From: Jason Gunthorpe To: Timothy Pearson Cc: Shivaprasad G Bhat , 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 Subject: Re: [RFC PATCH 1/3] powerpc/pseries/iommu: Bring back userspace view for single level TCE tables Message-ID: <20241003133849.GD2456194@ziepe.ca> References: <171026724548.8367.8321359354119254395.stgit@linux.ibm.com> <171026725393.8367.17497620074051138306.stgit@linux.ibm.com> <20240319143202.GA66976@ziepe.ca> <1386271253.24278379.1710873411133.JavaMail.zimbra@raptorengineeringinc.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <1386271253.24278379.1710873411133.JavaMail.zimbra@raptorengineeringinc.com> On Tue, Mar 19, 2024 at 01:36:51PM -0500, Timothy Pearson wrote: > > 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 ?? > > Just FYI Raptor is working on porting things over to the new APIs. > RFC patches should be posted in the next week or two. There was a discussion about this at LPC a few weeks ago, did any patches get prepared? Jason