Messages in this thread | | | Date | Tue, 6 Sep 2022 20:13:29 -0300 | From | Jason Gunthorpe <> | Subject | Re: [PATCH v8] mm/hmm/test: use char dev with struct device to get device node |
| |
On Fri, Aug 26, 2022 at 08:06:31AM +0300, mpenttil@redhat.com wrote: > From: Mika Penttilä <mpenttil@redhat.com> > > HMM selftests use an in-kernel pseudo device to emulate device > memory. The pseudo device registers a major device range for two or > four pseudo device instances. User space has a script that > reads /proc/devices in order to find the assigned major number, > and sends that to mknod(1), once for each node. > > Change this to properly use cdev and struct device APIs. > > Delete the /proc/devices parsing from the user-space test script, now > that it is unnecessary. > > Also, deleted an unused field in struct dmirror_device: devmem. > > Signed-off-by: Mika Penttilä <mpenttil@redhat.com> > Reviewed-by: John Hubbard <jhubbard@nvidia.com> > Reviewed-by: Christoph Hellwig <hch@lst.de> > Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> > Cc: Alistair Popple <apopple@nvidia.com> > Cc: Ralph Campbell <rcampbell@nvidia.com> > Cc: Vlastimil Babka <vbabka@suse.cz>
Andrew, this looks OK, can you pick it up?
Thanks, Jason
| |