Commit ab76079
char: misc: Increase the maximum number of dynamic misc devices to 1048448
On AmpereOne, 128 dynamic misc devices is not enough for the per-cpu
coresight_tmc devices. Switch the dynamic minors allocator to an ida and
add logic to allocate in the ranges [0..127] and [256..1048575], leaving
[128..255] for static misc devices. Dynamic allocations start from 127
growing downwards and then increasing from 256, so device numbering for the
first 128 devices remain the same as before.
Signed-off-by: D Scott Phillips <scott@os.amperecomputing.com>
Link: https://lore.kernel.org/r/20221114212212.9279-1-scott@os.amperecomputing.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 7b51161 commit ab76079
1 file changed
+28
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
65 | 87 | | |
66 | 88 | | |
67 | 89 | | |
| |||
183 | 205 | | |
184 | 206 | | |
185 | 207 | | |
186 | | - | |
| 208 | + | |
187 | 209 | | |
188 | | - | |
| 210 | + | |
189 | 211 | | |
190 | 212 | | |
191 | 213 | | |
192 | | - | |
193 | | - | |
| 214 | + | |
194 | 215 | | |
195 | 216 | | |
196 | 217 | | |
| |||
209 | 230 | | |
210 | 231 | | |
211 | 232 | | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
| 233 | + | |
216 | 234 | | |
217 | 235 | | |
218 | 236 | | |
| |||
240 | 258 | | |
241 | 259 | | |
242 | 260 | | |
243 | | - | |
244 | | - | |
245 | 261 | | |
246 | 262 | | |
247 | 263 | | |
248 | 264 | | |
249 | 265 | | |
250 | 266 | | |
251 | | - | |
252 | | - | |
| 267 | + | |
253 | 268 | | |
254 | 269 | | |
255 | 270 | | |
| |||
0 commit comments