1 |
commit: 3c105a885991f3208dbf51c98306253e1f13b642 |
2 |
Author: Mike Pagano <mpagano <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 23 12:49:21 2022 +0000 |
4 |
Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 23 12:49:21 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=3c105a88 |
7 |
|
8 |
Remove duplicate patch |
9 |
|
10 |
Removed: |
11 |
2700_revert-drm-i915-dma-resv-obj-fix.patch |
12 |
|
13 |
Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org> |
14 |
|
15 |
0000_README | 4 -- |
16 |
2700_revert-drm-i915-dma-resv-obj-fix.patch | 107 ---------------------------- |
17 |
2 files changed, 111 deletions(-) |
18 |
|
19 |
diff --git a/0000_README b/0000_README |
20 |
index d3eec191..c5e283b0 100644 |
21 |
--- a/0000_README |
22 |
+++ b/0000_README |
23 |
@@ -107,10 +107,6 @@ Patch: 2000_BT-Check-key-sizes-only-if-Secure-Simple-Pairing-enabled.patch |
24 |
From: https://lore.kernel.org/linux-bluetooth/20190522070540.48895-1-marcel@××××××××.org/raw |
25 |
Desc: Bluetooth: Check key sizes only when Secure Simple Pairing is enabled. See bug #686758 |
26 |
|
27 |
-Patch: 2700_revert-drm-i915-dma-resv-obj-fix.patch |
28 |
-From: https://bugs.gentoo.org/866023 |
29 |
-Desc: Revert Revert for drm i915 thanks to Luigi 'Comio' Mantellini |
30 |
- |
31 |
Patch: 2900_tmp513-Fix-build-issue-by-selecting-CONFIG_REG.patch |
32 |
From: https://bugs.gentoo.org/710790 |
33 |
Desc: tmp513 requies REGMAP_I2C to build. Select it by default in Kconfig. See bug #710790. Thanks to Phil Stracchino |
34 |
|
35 |
diff --git a/2700_revert-drm-i915-dma-resv-obj-fix.patch b/2700_revert-drm-i915-dma-resv-obj-fix.patch |
36 |
deleted file mode 100644 |
37 |
index a9fcaf4a..00000000 |
38 |
--- a/2700_revert-drm-i915-dma-resv-obj-fix.patch |
39 |
+++ /dev/null |
40 |
@@ -1,107 +0,0 @@ |
41 |
-From d481c481ca7813d688ffcb1c5418b48f83d945c1 Mon Sep 17 00:00:00 2001 |
42 |
-From: Luigi 'Comio' Mantellini <luigi.mantellini@×××××.com> |
43 |
-Date: Sun, 28 Aug 2022 09:17:35 +0200 |
44 |
-Subject: [PATCH] Revert "drm/i915: Individualize fences before adding to |
45 |
- dma_resv obj" |
46 |
- |
47 |
-This reverts commit 842d9346b2fdda4d2fb8ccb5b87faef1ac01ab51. |
48 |
---- |
49 |
- .../gpu/drm/i915/gem/i915_gem_execbuffer.c | 3 +- |
50 |
- drivers/gpu/drm/i915/i915_vma.c | 48 ++++++++----------- |
51 |
- 2 files changed, 21 insertions(+), 30 deletions(-) |
52 |
- |
53 |
-diff --git a/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c b/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c |
54 |
-index 30fe847c6664..c326bd2b444f 100644 |
55 |
---- a/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c |
56 |
-+++ b/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c |
57 |
-@@ -999,8 +999,7 @@ static int eb_validate_vmas(struct i915_execbuffer *eb) |
58 |
- } |
59 |
- } |
60 |
- |
61 |
-- /* Reserve enough slots to accommodate composite fences */ |
62 |
-- err = dma_resv_reserve_fences(vma->obj->base.resv, eb->num_batches); |
63 |
-+ err = dma_resv_reserve_fences(vma->obj->base.resv, 1); |
64 |
- if (err) |
65 |
- return err; |
66 |
- |
67 |
-diff --git a/drivers/gpu/drm/i915/i915_vma.c b/drivers/gpu/drm/i915/i915_vma.c |
68 |
-index 16460b169ed2..e71826f0e4b1 100644 |
69 |
---- a/drivers/gpu/drm/i915/i915_vma.c |
70 |
-+++ b/drivers/gpu/drm/i915/i915_vma.c |
71 |
-@@ -23,7 +23,6 @@ |
72 |
- */ |
73 |
- |
74 |
- #include <linux/sched/mm.h> |
75 |
--#include <linux/dma-fence-array.h> |
76 |
- #include <drm/drm_gem.h> |
77 |
- |
78 |
- #include "display/intel_frontbuffer.h" |
79 |
-@@ -1839,21 +1838,6 @@ int _i915_vma_move_to_active(struct i915_vma *vma, |
80 |
- if (unlikely(err)) |
81 |
- return err; |
82 |
- |
83 |
-- /* |
84 |
-- * Reserve fences slot early to prevent an allocation after preparing |
85 |
-- * the workload and associating fences with dma_resv. |
86 |
-- */ |
87 |
-- if (fence && !(flags & __EXEC_OBJECT_NO_RESERVE)) { |
88 |
-- struct dma_fence *curr; |
89 |
-- int idx; |
90 |
-- |
91 |
-- dma_fence_array_for_each(curr, idx, fence) |
92 |
-- ; |
93 |
-- err = dma_resv_reserve_fences(vma->obj->base.resv, idx); |
94 |
-- if (unlikely(err)) |
95 |
-- return err; |
96 |
-- } |
97 |
-- |
98 |
- if (flags & EXEC_OBJECT_WRITE) { |
99 |
- struct intel_frontbuffer *front; |
100 |
- |
101 |
-@@ -1863,23 +1847,31 @@ int _i915_vma_move_to_active(struct i915_vma *vma, |
102 |
- i915_active_add_request(&front->write, rq); |
103 |
- intel_frontbuffer_put(front); |
104 |
- } |
105 |
-- } |
106 |
- |
107 |
-- if (fence) { |
108 |
-- struct dma_fence *curr; |
109 |
-- enum dma_resv_usage usage; |
110 |
-- int idx; |
111 |
-+ if (!(flags & __EXEC_OBJECT_NO_RESERVE)) { |
112 |
-+ err = dma_resv_reserve_fences(vma->obj->base.resv, 1); |
113 |
-+ if (unlikely(err)) |
114 |
-+ return err; |
115 |
-+ } |
116 |
- |
117 |
-- obj->read_domains = 0; |
118 |
-- if (flags & EXEC_OBJECT_WRITE) { |
119 |
-- usage = DMA_RESV_USAGE_WRITE; |
120 |
-+ if (fence) { |
121 |
-+ dma_resv_add_fence(vma->obj->base.resv, fence, |
122 |
-+ DMA_RESV_USAGE_WRITE); |
123 |
- obj->write_domain = I915_GEM_DOMAIN_RENDER; |
124 |
-- } else { |
125 |
-- usage = DMA_RESV_USAGE_READ; |
126 |
-+ obj->read_domains = 0; |
127 |
-+ } |
128 |
-+ } else { |
129 |
-+ if (!(flags & __EXEC_OBJECT_NO_RESERVE)) { |
130 |
-+ err = dma_resv_reserve_fences(vma->obj->base.resv, 1); |
131 |
-+ if (unlikely(err)) |
132 |
-+ return err; |
133 |
- } |
134 |
- |
135 |
-- dma_fence_array_for_each(curr, idx, fence) |
136 |
-- dma_resv_add_fence(vma->obj->base.resv, curr, usage); |
137 |
-+ if (fence) { |
138 |
-+ dma_resv_add_fence(vma->obj->base.resv, fence, |
139 |
-+ DMA_RESV_USAGE_READ); |
140 |
-+ obj->write_domain = 0; |
141 |
-+ } |
142 |
- } |
143 |
- |
144 |
- if (flags & EXEC_OBJECT_NEEDS_FENCE && vma->fence) |
145 |
--- |
146 |
-2.37.2 |
147 |
- |