Commit 9882d63
committed
ALSA: memalloc: Drop x86-specific hack for WC allocations
The recent report for a crash on Haswell machines implied that the
x86-specific (rather hackish) implementation for write-cache memory
buffer allocation in ALSA core is buggy with the recent kernel in some
corner cases. This patch drops the x86-specific implementation and
uses the standard dma_alloc_wc() & co generically for avoiding the bug
and also for simplification.
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=216112
Cc: <stable@vger.kernel.org> # v5.18+
Link: https://lore.kernel.org/r/20220620073440.7514-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>1 parent d499512 commit 9882d63
1 file changed
Lines changed: 1 addition & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
| 434 | + | |
442 | 435 | | |
443 | 436 | | |
444 | 437 | | |
445 | 438 | | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | 439 | | |
452 | 440 | | |
453 | 441 | | |
454 | 442 | | |
455 | 443 | | |
456 | 444 | | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | 445 | | |
462 | 446 | | |
463 | 447 | | |
| |||
471 | 455 | | |
472 | 456 | | |
473 | 457 | | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | 458 | | |
479 | 459 | | |
480 | 460 | | |
| |||
497 | 477 | | |
498 | 478 | | |
499 | 479 | | |
500 | | - | |
501 | 480 | | |
502 | 481 | | |
503 | 482 | | |
| |||
0 commit comments