[Nouveau] [RFC PATCH v3 2/2] mm: remove extra ZONE_DEVICE struct page refcount

2020-10-01 Thread Ralph Campbell
ZONE_DEVICE struct pages have an extra reference count that complicates the code for put_page() and several places in the kernel that need to check the reference count to see that a page is not being used (gup, compaction, migration, etc.). Clean up the code so the reference count doesn't need to

[Nouveau] [RFC PATCH v3 1/2] ext4/xfs: add page refcount helper

2020-10-01 Thread Ralph Campbell
There are several places where ZONE_DEVICE struct pages assume a reference count == 1 means the page is idle and free. Instead of open coding this, add a helper function to hide this detail. Signed-off-by: Ralph Campbell --- fs/dax.c| 4 ++-- fs/ext4/inode.c | 5 +

[Nouveau] [RFC PATCH v3 0/2] mm: remove extra ZONE_DEVICE struct page refcount

2020-10-01 Thread Ralph Campbell
This is still an RFC because after looking at the pmem/dax code some more, I realized that the ZONE_DEVICE struct pages are being inserted into the process' page tables with vmf_insert_mixed() and a zero refcount on the ZONE_DEVICE struct page. This is sort of OK because insert_pfn() increments

Re: [Nouveau] Nouveau wiki migration

2020-10-01 Thread Karol Herbst
On Thu, Oct 1, 2020 at 7:53 PM Sam Ravnborg wrote: > > Hi Karol. > > On Thu, Oct 01, 2020 at 01:36:52PM +0200, Karol Herbst wrote: > > On Fri, Sep 25, 2020 at 11:27 PM Karol Herbst wrote: > > > > > > Hi everybody, > > > > > > I think it's time to finally move our wiki from the old infrastructure

Re: [Nouveau] Nouveau wiki migration

2020-10-01 Thread Sam Ravnborg
Hi Karol. On Thu, Oct 01, 2020 at 01:36:52PM +0200, Karol Herbst wrote: > On Fri, Sep 25, 2020 at 11:27 PM Karol Herbst wrote: > > > > Hi everybody, > > > > I think it's time to finally move our wiki from the old infrastructure > > over to gitlab pages. > > > > This comes with several benefits:

Re: [Nouveau] Nouveau wiki migration

2020-10-01 Thread Karol Herbst
On Fri, Sep 25, 2020 at 11:27 PM Karol Herbst wrote: > > Hi everybody, > > I think it's time to finally move our wiki from the old infrastructure > over to gitlab pages. > > This comes with several benefits: > * full control through git over the ikiwiki pipeline (setup files, > plugins, system

Re: [Nouveau] [igt-dev] [PATCH i-g-t v5 2/5] lib/igt_core: Add igt_require_fd()

2020-10-01 Thread Petri Latvala
On Wed, Sep 30, 2020 at 01:31:47PM -0400, Lyude wrote: > From: Lyude Paul > > Like igt_assert_fd(), but using igt_require() instead > > Changes since v1: > * Fix documentation error in igt_require_fd() - Petri Latvala > > Signed-off-by: Lyude Paul Reviewed-by: Petri Latvala > --- >

Re: [Nouveau] [igt-dev] [PATCH i-g-t v5 1/5] lib/igt_core: Fix igt_assert_fd() documentation

2020-10-01 Thread Petri Latvala
On Wed, Sep 30, 2020 at 01:31:46PM -0400, Lyude wrote: > From: Lyude Paul > > As Petri Latvala pointed out, some of the documentation in this macro is > mistakenly copied from the other igt_assert*() macros. Let's fix that. > > Signed-off-by: Lyude Paul Reviewed-by: Petri Latvala > --- >