Skip to contentSkip to conversation

gpu/drm, x86, PAT: Add PAT support for io_mapping_* interface

PATCH Ingo Molnar 2 participants 3 messages Feb 25, 2009 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 8 lines · Venkatesh Pallipadi

io_mapping_create_wc(), io_mapping_free() and associated map/unmap routines are relatively new set of APIs for drivers, that change memory type.

Currently, these interfaces hardcode WC type on x86 and does not go through "PAT enforcement". This patchset adds PAT support for this interface.

hm, the patches look sane and clean and mostly factor out existing code and checks and apply them to the io_mapping_*() interfaces - so it's something worth having for .29.

But it's all rather awfully late in the cycle and ioremap type of bugs typically have 1-2 rc's of latency to be fully discovered.

They will probably fix a few regressions and are easy to revert, plus they affect the one driver whose authors wrote these facilities:

drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_gem.c

so maybe we should try it as it's all a clear step forward. I'll give them a spin in tip:x86/urgent. Dunno.

Linus, do you have any preference?

Ingo

#2 lore raw
Quoted 37 lines

-----Original Message-----
From: Ingo Molnar [mailto:[email protected]]
Sent: Wednesday, February 25, 2009 4:09 AM
To: Pallipadi, Venkatesh; Linus Torvalds
Cc: Dave Airlie; Jesse Barnes; Eric Anholt; Thomas Gleixner; H Peter Anvin; Keith Packard; [email protected]
Subject: Re: [patch 0/4] gpu/drm, x86, PAT: Add PAT support for io_mapping_* interface

Quoted 1 line · Venkatesh Pallipadi

io_mapping_create_wc(), io_mapping_free() and associated

map/unmap routines

Quoted 3 lines

are relatively new set of APIs for drivers, that change memory type.

Currently, these interfaces hardcode WC type on x86 and does

not go through

Quoted 4 lines

"PAT enforcement". This patchset adds PAT support for this interface.

hm, the patches look sane and clean and mostly factor out existing code and checks and apply them to the io_mapping_*() interfaces - so it's something worth having for .29.

But it's all rather awfully late in the cycle and ioremap type of bugs typically have 1-2 rc's of latency to be fully discovered.

They will probably fix a few regressions and are easy to revert, plus they affect the one driver whose authors wrote these facilities:

Quoted 6 lines

drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_gem.c

so maybe we should try it as it's all a clear step forward. I'll give them a spin in tip:x86/urgent. Dunno.

Actual PAT support (patch 3 and 4) can probably wait until .30. As there is only one user of this interface. Patch 1 and 2 are more in bugfix category and probably considered for .29.

Thanks,
Venki

#3 lore raw
Quoted 7 lines · Pallipadi, Venkatesh
Quoted 7 lines

They will probably fix a few regressions and are easy to revert, plus they affect the one driver whose authors wrote these facilities:

drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_gem.c

Quoted 6 lines
Quoted 2 lines

so maybe we should try it as it's all a clear step forward. I'll give them a spin in tip:x86/urgent. Dunno.

Actual PAT support (patch 3 and 4) can probably wait until .30. As there is only one user of this interface. Patch 1 and 2 are more in bugfix category and probably considered for .29.

ok, i've delayed #3/#4 to .30 and kept #1/#2 in tip:x86/urgent. No complications so far with any of them.

Ingo