mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-06 05:54:15 +00:00
16 lines
384 B
Diff
16 lines
384 B
Diff
|
+++ a/drivers/gpu/drm/i915/i915_gem_gtt.c
|
||
|
+++ b/drivers/gpu/drm/i915/i915_gem_gtt.c
|
||
|
@@ -1034,7 +1034,11 @@
|
||
|
unsigned int num_entries,
|
||
|
bool unused)
|
||
|
{
|
||
|
- intel_gtt_clear_range(first_entry, num_entries);
|
||
|
+ if (!unused)
|
||
|
+ intel_gtt_clear_range(first_entry, num_entries);
|
||
|
+ else
|
||
|
+ /* Fixes DMA issues on Lenovo X201 */
|
||
|
+ printk("Disable %s for Genode\n", __func__);
|
||
|
}
|
||
|
|
||
|
|