Commit dc2579c
crypto: octeontx2 - Fix address alignment issue on ucode loading
commit b7b88b4 upstream.
octeontx2 crypto driver allocates memory using kmalloc/kzalloc,
and uses this memory for dma (does dma_map_single()). It assumes
that kmalloc/kzalloc will return 128-byte aligned address. But
kmalloc/kzalloc returns 8-byte aligned address after below changes:
"9382bc44b5f5 arm64: allow kmalloc() caches aligned to the
smaller cache_line_size()"
Completion address should be 32-Byte alignment when loading
microcode.
Signed-off-by: Bharat Bhushan <bbhushan2@marvell.com>
Cc: <stable@vger.kernel.org> # v6.5+
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent fe546f5 commit dc2579c
1 file changed
+21
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1490 | 1490 | | |
1491 | 1491 | | |
1492 | 1492 | | |
| 1493 | + | |
1493 | 1494 | | |
1494 | 1495 | | |
1495 | | - | |
1496 | 1496 | | |
| 1497 | + | |
1497 | 1498 | | |
1498 | | - | |
| 1499 | + | |
1499 | 1500 | | |
1500 | 1501 | | |
1501 | 1502 | | |
| |||
1520 | 1521 | | |
1521 | 1522 | | |
1522 | 1523 | | |
1523 | | - | |
1524 | | - | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
1525 | 1527 | | |
1526 | | - | |
1527 | | - | |
| 1528 | + | |
| 1529 | + | |
1528 | 1530 | | |
1529 | 1531 | | |
1530 | 1532 | | |
1531 | | - | |
1532 | | - | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
1533 | 1536 | | |
1534 | 1537 | | |
1535 | 1538 | | |
1536 | | - | |
| 1539 | + | |
1537 | 1540 | | |
1538 | | - | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
| 1545 | + | |
1539 | 1546 | | |
1540 | 1547 | | |
1541 | 1548 | | |
| |||
1547 | 1554 | | |
1548 | 1555 | | |
1549 | 1556 | | |
1550 | | - | |
| 1557 | + | |
1551 | 1558 | | |
1552 | 1559 | | |
1553 | 1560 | | |
1554 | 1561 | | |
1555 | 1562 | | |
1556 | 1563 | | |
1557 | | - | |
| 1564 | + | |
1558 | 1565 | | |
1559 | 1566 | | |
1560 | 1567 | | |
| |||
1577 | 1584 | | |
1578 | 1585 | | |
1579 | 1586 | | |
1580 | | - | |
1581 | | - | |
| 1587 | + | |
| 1588 | + | |
1582 | 1589 | | |
1583 | 1590 | | |
1584 | 1591 | | |
| |||
0 commit comments