Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-gfx] [PATCH v5 0/1] Use i915 macros to check for PTEs
@ 2021-11-18 20:54 Michael Cheng
  2021-11-18 20:54 ` [Intel-gfx] [PATCH v5] drm/i915: Re-use i915 macros for checking PTEs Michael Cheng
                   ` (14 more replies)
  0 siblings, 15 replies; 18+ messages in thread
From: Michael Cheng @ 2021-11-18 20:54 UTC (permalink / raw)
  To: intel-gfx
  Cc: michael.cheng, wayne.boyer, jani.nikula, lucas.demarchi,
	dri-devel, siva.mullati

Instead of using _PAGE_RW and _PAGE_PRESENT to check for 0 and 1 bits, this
series replaces them with GEN6_PTE_VALID and BYT_PTE_WRITEABLE. We should be using
macros defined for i915 to check these bits, instead of macros defined by the mmu. 
Some arch does not have these macros defined, thus leading to compilation errors.
 
v2: Corrected sender's email.
 
v3: Corrected spelling error.
 
v4: Clean up a few other macros that are checking 0 and 1 bits.

v5: Instead of introducing new macros for checking 0 and 1 bits,
    re-use already defined macros for i915.


Michael Cheng (1):
  drm/i915: Re-use i915 macros for checking PTEs

 drivers/gpu/drm/i915/gt/gen8_ppgtt.c |  6 +++---
 drivers/gpu/drm/i915/gt/intel_ggtt.c |  2 +-
 drivers/gpu/drm/i915/gvt/gtt.c       | 12 ++++++------
 3 files changed, 10 insertions(+), 10 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2021-12-03  2:47 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-18 20:54 [Intel-gfx] [PATCH v5 0/1] Use i915 macros to check for PTEs Michael Cheng
2021-11-18 20:54 ` [Intel-gfx] [PATCH v5] drm/i915: Re-use i915 macros for checking PTEs Michael Cheng
2021-12-01  0:58   ` Lucas De Marchi
2021-11-18 22:11 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2021-11-18 22:44 ` [Intel-gfx] ✗ Fi.CI.BAT: failure " Patchwork
2021-12-01 18:12 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Re-use i915 macros for checking PTEs (rev7) Patchwork
2021-12-01 18:46 ` [Intel-gfx] ✗ Fi.CI.BAT: failure " Patchwork
2021-12-01 20:18 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Re-use i915 macros for checking PTEs (rev8) Patchwork
2021-12-01 20:50 ` [Intel-gfx] ✗ Fi.CI.BAT: failure " Patchwork
2021-12-01 22:29 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Re-use i915 macros for checking PTEs (rev9) Patchwork
2021-12-01 23:02 ` [Intel-gfx] ✗ Fi.CI.BAT: failure " Patchwork
2021-12-02 18:30 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Re-use i915 macros for checking PTEs (rev10) Patchwork
2021-12-02 19:11 ` [Intel-gfx] ✗ Fi.CI.BAT: failure " Patchwork
2021-12-02 19:51 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Re-use i915 macros for checking PTEs (rev11) Patchwork
2021-12-02 20:28 ` [Intel-gfx] ✗ Fi.CI.BAT: failure " Patchwork
2021-12-02 20:29   ` Cheng, Michael
2021-12-03  2:04 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Re-use i915 macros for checking PTEs (rev12) Patchwork
2021-12-03  2:47 ` [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