public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [Intel-gfx] [RFC 0/1] Avoid parent bridge rpm on mmap mappings
@ 2022-08-08 10:35 Anshuman Gupta
  2022-08-08 10:35 ` [Intel-gfx] [RFC 1/1] drm/i915/dgfx: " Anshuman Gupta
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Anshuman Gupta @ 2022-08-08 10:35 UTC (permalink / raw)
  To: intel-gfx; +Cc: daniel, chris.p.wilson, rodrigo.vivi

RFC proposal to get community feedback to handle the lmem
mmap memory mappings. We can have two solutions.

1. Avoid rpm for any mmap mapping.
2. Update the page tables while entering to runtime suspend to raise
   a page fault while device in D3.

Solution 2 will incur huge latency versus solution 1 which effectively 
disable the runtime PM.

Caveat with solution 1 that, it doesn't address the case when user 
directly maps PCI Bar resource i.e. below mentioned resource. 
"/sys/bus/pci/devices/0000\:03\:00.0/resource2" 

Anshuman Gupta (1):
  drm/i915/dgfx: Avoid parent bridge rpm on mmap mappings

 drivers/gpu/drm/i915/gem/i915_gem_mman.c | 11 ++++++++
 drivers/gpu/drm/i915/gem/i915_gem_ttm.c  |  8 ++++++
 drivers/gpu/drm/i915/intel_runtime_pm.c  | 35 ++++++++++++++++++++++++
 drivers/gpu/drm/i915/intel_runtime_pm.h  |  2 ++
 4 files changed, 56 insertions(+)

-- 
2.26.2


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-08-17  5:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-08 10:35 [Intel-gfx] [RFC 0/1] Avoid parent bridge rpm on mmap mappings Anshuman Gupta
2022-08-08 10:35 ` [Intel-gfx] [RFC 1/1] drm/i915/dgfx: " Anshuman Gupta
2022-08-09 15:05   ` Rodrigo Vivi
2022-08-10  4:36     ` Gupta, Anshuman
2022-08-17  5:41     ` Gupta, Anshuman
2022-08-08 11:42 ` [Intel-gfx] ✗ Fi.CI.SPARSE: warning for " Patchwork
2022-08-08 12:05 ` [Intel-gfx] ✗ Fi.CI.BAT: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox