mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-23 15:32:25 +00:00
gpu/intel: let guard page handling up to client
For mesa-21 the client takes care and manages the virtual address space of the vGPU by itself and the intel/gpu driver can't add silently a guard page anymore. Move the patch to the drm/ioctl of the former mesa version. Issue #4148 #4233
This commit is contained in:
parent
067b7d7c67
commit
ffc89f3edf
@ -380,7 +380,8 @@ class Drm_call
|
||||
{
|
||||
drm_i915_gem_create * const p = reinterpret_cast<drm_i915_gem_create*>(arg);
|
||||
|
||||
uint64_t const size = (p->size + 0xfff) & ~0xfff;
|
||||
/* roundup to next page size and add guarding page */
|
||||
uint64_t const size = ((p->size + 0xfff) & ~0xfff) + 0x1000;
|
||||
Handle handle = _alloc_buffer(size);
|
||||
if (handle == INVALID_HANDLE) { return -1; }
|
||||
|
||||
|
@ -1443,8 +1443,8 @@ class Gpu::Session_component : public Genode::Session_object<Gpu::Session>
|
||||
* => better construct Buffer object as whole
|
||||
*/
|
||||
|
||||
/* roundup to next page size and add guarding page */
|
||||
size = ((size + 0xffful) & ~0xffful) + 0x1000;
|
||||
/* roundup to next page size */
|
||||
size = ((size + 0xffful) & ~0xffful);
|
||||
|
||||
try {
|
||||
Genode::Dataspace_capability cap = _device.alloc_buffer(_heap, size);
|
||||
|
Loading…
Reference in New Issue
Block a user