mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-21 06:33:31 +00:00
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:
parent
579a5e7845
commit
0cf2b1be89
@ -154,7 +154,7 @@ class Igd::Ggtt
|
|||||||
/* make the last entry/page unavailable */
|
/* make the last entry/page unavailable */
|
||||||
_num_entries((_size / 8) - 1),
|
_num_entries((_size / 8) - 1),
|
||||||
_entries((uint64_t*)_base),
|
_entries((uint64_t*)_base),
|
||||||
_scratch_page(platform, PAGE_SIZE, Genode::UNCACHED),
|
_scratch_page(platform, PAGE_SIZE, Genode::CACHED),
|
||||||
_aperture_size(aperture_size),
|
_aperture_size(aperture_size),
|
||||||
_aperture_entries(_aperture_size / PAGE_SIZE)
|
_aperture_entries(_aperture_size / PAGE_SIZE)
|
||||||
{
|
{
|
||||||
|
@ -111,7 +111,7 @@ struct Igd::Device
|
|||||||
return retry<Genode::Out_of_ram>(
|
return retry<Genode::Out_of_ram>(
|
||||||
[&] () {
|
[&] () {
|
||||||
return retry<Genode::Out_of_caps>(
|
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) {
|
if (_env.pd().avail_caps().value < UPGRADE_CAPS) {
|
||||||
|
Loading…
Reference in New Issue
Block a user