lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID:
 <SA1PR12MB7199A8A0D17CDC980F819CC6B0D6A@SA1PR12MB7199.namprd12.prod.outlook.com>
Date: Tue, 18 Nov 2025 07:59:20 +0000
From: Ankit Agrawal <ankita@...dia.com>
To: Leon Romanovsky <leon@...nel.org>, Bjorn Helgaas <bhelgaas@...gle.com>,
	Logan Gunthorpe <logang@...tatee.com>, Jens Axboe <axboe@...nel.dk>, Robin
 Murphy <robin.murphy@....com>, Joerg Roedel <joro@...tes.org>, Will Deacon
	<will@...nel.org>, Marek Szyprowski <m.szyprowski@...sung.com>, Jason
 Gunthorpe <jgg@...pe.ca>, Andrew Morton <akpm@...ux-foundation.org>, Jonathan
 Corbet <corbet@....net>, Sumit Semwal <sumit.semwal@...aro.org>,
	Christian König <christian.koenig@....com>, Kees Cook
	<kees@...nel.org>, "Gustavo A. R. Silva" <gustavoars@...nel.org>, Yishai
 Hadas <yishaih@...dia.com>, Shameer Kolothum <skolothumtho@...dia.com>, Kevin
 Tian <kevin.tian@...el.com>, Alex Williamson <alex@...zbot.org>
CC: Krishnakant Jaju <kjaju@...dia.com>, Matt Ochs <mochs@...dia.com>,
	"linux-pci@...r.kernel.org" <linux-pci@...r.kernel.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"linux-block@...r.kernel.org" <linux-block@...r.kernel.org>,
	"iommu@...ts.linux.dev" <iommu@...ts.linux.dev>, "linux-mm@...ck.org"
	<linux-mm@...ck.org>, "linux-doc@...r.kernel.org"
	<linux-doc@...r.kernel.org>, "linux-media@...r.kernel.org"
	<linux-media@...r.kernel.org>, "dri-devel@...ts.freedesktop.org"
	<dri-devel@...ts.freedesktop.org>, "linaro-mm-sig@...ts.linaro.org"
	<linaro-mm-sig@...ts.linaro.org>, "kvm@...r.kernel.org"
	<kvm@...r.kernel.org>, "linux-hardening@...r.kernel.org"
	<linux-hardening@...r.kernel.org>, Alex Mastro <amastro@...com>, Nicolin Chen
	<nicolinc@...dia.com>
Subject: Re: [PATCH v8 11/11] vfio/nvgrace: Support get_dmabuf_phys

+       if (nvdev->resmem.memlength && region_index == RESMEM_REGION_INDEX) {
+               /*
+                * The P2P properties of the non-BAR memory is the same as the
+                * BAR memory, so just use the provider for index 0. Someday
+                * when CXL gets P2P support we could create CXLish providers
+                * for the non-BAR memory.
+                */
+               mem_region = &nvdev->resmem;
+       } else if (region_index == USEMEM_REGION_INDEX) {
+               /*
+                * This is actually cachable memory and isn't treated as P2P in
+                * the chip. For now we have no way to push cachable memory
+                * through everything and the Grace HW doesn't care what caching
+                * attribute is programmed into the SMMU. So use BAR 0.
+                */
+               mem_region = &nvdev->usemem;
+       }
+

Can we replace this with nvgrace_gpu_memregion()?




Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ