From: Chris Wilson <chris@chris-wilson.co.uk> To: linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org Cc: linux-mm@kvack.org, Chris Wilson <chris@chris-wilson.co.uk>, Pavel Machek <pavel@ucw.cz>, Andrew Morton <akpm@linux-foundation.org>, Joerg Roedel <jroedel@suse.de>, Linus Torvalds <torvalds@linux-foundation.org>, Dave Airlie <airlied@redhat.com>, Joonas Lahtinen <joonas.lahtinen@linux.intel.com>, Rodrigo Vivi <rodrigo.vivi@intel.com>, stable@vger.kernel.org Subject: [PATCH 2/4] drm/i915/gem: Sync the vmap PTEs upon construction Date: Fri, 21 Aug 2020 09:50:09 +0100 [thread overview] Message-ID: <20200821085011.28878-2-chris@chris-wilson.co.uk> (raw) In-Reply-To: <20200821085011.28878-1-chris@chris-wilson.co.uk> Since synchronising the PTE after assignment is a manual step, use the newly exported interface to flush the PTE after assigning via alloc_vm_area(). Reported-by: Pavel Machek <pavel@ucw.cz> References: 2ba3e6947aed ("mm/vmalloc: track which page-table levels were modified") Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Joerg Roedel <jroedel@suse.de> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Dave Airlie <airlied@redhat.com> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com> Cc: Pavel Machek <pavel@ucw.cz> Cc: <stable@vger.kernel.org> # v5.8+ --- drivers/gpu/drm/i915/gem/i915_gem_pages.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/i915/gem/i915_gem_pages.c b/drivers/gpu/drm/i915/gem/i915_gem_pages.c index 7050519c87a4..0fee67f34d74 100644 --- a/drivers/gpu/drm/i915/gem/i915_gem_pages.c +++ b/drivers/gpu/drm/i915/gem/i915_gem_pages.c @@ -304,6 +304,7 @@ static void *i915_gem_object_map(struct drm_i915_gem_object *obj, for_each_sgt_daddr(addr, iter, sgt) **ptes++ = iomap_pte(iomap, addr, pgprot); } + flush_vm_area(area); if (mem != stack) kvfree(mem); -- 2.20.1
WARNING: multiple messages have this Message-ID (diff)
From: Chris Wilson <chris@chris-wilson.co.uk> To: linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org Cc: Joerg Roedel <jroedel@suse.de>, stable@vger.kernel.org, Chris Wilson <chris@chris-wilson.co.uk>, linux-mm@kvack.org, Pavel Machek <pavel@ucw.cz>, Dave Airlie <airlied@redhat.com>, Andrew Morton <akpm@linux-foundation.org>, Linus Torvalds <torvalds@linux-foundation.org> Subject: [Intel-gfx] [PATCH 2/4] drm/i915/gem: Sync the vmap PTEs upon construction Date: Fri, 21 Aug 2020 09:50:09 +0100 [thread overview] Message-ID: <20200821085011.28878-2-chris@chris-wilson.co.uk> (raw) In-Reply-To: <20200821085011.28878-1-chris@chris-wilson.co.uk> Since synchronising the PTE after assignment is a manual step, use the newly exported interface to flush the PTE after assigning via alloc_vm_area(). Reported-by: Pavel Machek <pavel@ucw.cz> References: 2ba3e6947aed ("mm/vmalloc: track which page-table levels were modified") Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Joerg Roedel <jroedel@suse.de> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Dave Airlie <airlied@redhat.com> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com> Cc: Pavel Machek <pavel@ucw.cz> Cc: <stable@vger.kernel.org> # v5.8+ --- drivers/gpu/drm/i915/gem/i915_gem_pages.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/i915/gem/i915_gem_pages.c b/drivers/gpu/drm/i915/gem/i915_gem_pages.c index 7050519c87a4..0fee67f34d74 100644 --- a/drivers/gpu/drm/i915/gem/i915_gem_pages.c +++ b/drivers/gpu/drm/i915/gem/i915_gem_pages.c @@ -304,6 +304,7 @@ static void *i915_gem_object_map(struct drm_i915_gem_object *obj, for_each_sgt_daddr(addr, iter, sgt) **ptes++ = iomap_pte(iomap, addr, pgprot); } + flush_vm_area(area); if (mem != stack) kvfree(mem); -- 2.20.1 _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2020-08-21 8:50 UTC|newest] Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-08-21 8:50 [PATCH 1/4] mm: Export flush_vm_area() to sync the PTEs upon construction Chris Wilson 2020-08-21 8:50 ` [Intel-gfx] " Chris Wilson 2020-08-21 8:50 ` Chris Wilson [this message] 2020-08-21 8:50 ` [Intel-gfx] [PATCH 2/4] drm/i915/gem: Sync the vmap " Chris Wilson 2020-08-21 12:41 ` Linus Torvalds 2020-08-21 12:41 ` [Intel-gfx] " Linus Torvalds 2020-08-21 12:41 ` Linus Torvalds 2020-08-21 13:01 ` Chris Wilson 2020-08-21 13:01 ` [Intel-gfx] " Chris Wilson 2020-08-21 8:50 ` [PATCH 3/4] drm/i915/gem: Use set_pte_at() for assigning the vmapped PTE Chris Wilson 2020-08-21 8:50 ` [Intel-gfx] " Chris Wilson 2020-08-21 8:50 ` [PATCH 4/4] drm/i915/gem: Replace reloc chain with terminator on error unwind Chris Wilson 2020-08-21 8:50 ` [Intel-gfx] " Chris Wilson 2020-08-21 9:14 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/4] mm: Export flush_vm_area() to sync the PTEs upon construction Patchwork 2020-08-21 9:16 ` [Intel-gfx] ✗ Fi.CI.SPARSE: " Patchwork 2020-08-21 9:29 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork 2020-08-21 9:51 ` [PATCH 1/4] " Joerg Roedel 2020-08-21 9:51 ` [Intel-gfx] " Joerg Roedel 2020-08-21 9:54 ` Chris Wilson 2020-08-21 9:54 ` [Intel-gfx] " Chris Wilson 2020-08-21 10:22 ` Joerg Roedel 2020-08-21 10:22 ` [Intel-gfx] " Joerg Roedel 2020-08-21 10:36 ` Chris Wilson 2020-08-21 10:36 ` [Intel-gfx] " Chris Wilson 2020-08-21 10:09 ` [PATCH] mm: Track page table modifications in __apply_to_page_range() construction Joerg Roedel 2020-08-21 10:09 ` [Intel-gfx] " Joerg Roedel 2020-08-21 10:13 ` Chris Wilson 2020-08-21 10:13 ` [Intel-gfx] " Chris Wilson 2020-08-21 10:23 ` Joerg Roedel 2020-08-21 10:23 ` [Intel-gfx] " Joerg Roedel 2020-08-21 10:39 ` Chris Wilson 2020-08-21 10:39 ` [Intel-gfx] " Chris Wilson 2020-08-21 11:38 ` Chris Wilson 2020-08-21 11:38 ` [Intel-gfx] " Chris Wilson 2020-08-21 12:18 ` Joerg Roedel 2020-08-21 12:18 ` [Intel-gfx] " Joerg Roedel 2020-08-21 10:53 ` Greg KH 2020-08-21 10:53 ` [Intel-gfx] " Greg KH 2020-08-21 10:27 ` [Intel-gfx] ✗ Fi.CI.BUILD: failure for series starting with mm: Track page table modifications in __apply_to_page_range() construction (rev2) Patchwork 2020-08-21 11:33 ` [Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [1/4] mm: Export flush_vm_area() to sync the PTEs upon construction Patchwork
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200821085011.28878-2-chris@chris-wilson.co.uk \ --to=chris@chris-wilson.co.uk \ --cc=airlied@redhat.com \ --cc=akpm@linux-foundation.org \ --cc=intel-gfx@lists.freedesktop.org \ --cc=joonas.lahtinen@linux.intel.com \ --cc=jroedel@suse.de \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-mm@kvack.org \ --cc=pavel@ucw.cz \ --cc=rodrigo.vivi@intel.com \ --cc=stable@vger.kernel.org \ --cc=torvalds@linux-foundation.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.