gpu/intel: use CACHED dma buffers

On x86, DMA buffers are actually always mapped as cached. We should
therefore actually ask for a cached buffer in order to avoid confusion.

genodelabs/genode#5000
This commit is contained in:
Johannes Schlatow 2023-10-03 15:52:46 +02:00 committed by Christian Helmuth
parent 579a5e7845
commit 0cf2b1be89
2 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,7 @@ class Igd::Ggtt
/* make the last entry/page unavailable */
_num_entries((_size / 8) - 1),
_entries((uint64_t*)_base),
_scratch_page(platform, PAGE_SIZE, Genode::UNCACHED),
_scratch_page(platform, PAGE_SIZE, Genode::CACHED),
_aperture_size(aperture_size),
_aperture_entries(_aperture_size / PAGE_SIZE)
{

View File

@ -111,7 +111,7 @@ struct Igd::Device
return retry<Genode::Out_of_ram>(
[&] () {
return retry<Genode::Out_of_caps>(
[&] () { return _pci.Client::alloc_dma_buffer(size, UNCACHED); },
[&] () { return _pci.Client::alloc_dma_buffer(size, CACHED); },
[&] ()
{
if (_env.pd().avail_caps().value < UPGRADE_CAPS) {