Commit 7f4f4ad
committed
Merge tag 'drm-habanalabs-next-2023-06-08' of https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/linux into drm-next
This tag contains additional habanalabs driver changes for v6.5:
- uAPI changes:
- Return 0 when user queries if there was a h/w or f/w error and no such error happened.
Previously we returned an error in such case.
- New features and improvements:
- Add pci health check when we lose connection with the firmware. This can be used to
distinguish between pci link down and firmware getting stuck.
- Add more info to the error print when TPC interrupt occur.
- Reduce amount of code under mutex in the command submission of signal event.
- Firmware related fixes:
- Fixes to the handshake protocol during f/w initialization.
- Display information that the f/w sends us when encountering a DMA error.
- Do soft-reset using a message sent to firmware instead of writing to MMIO.
- Prepare generic code to extract f/w version numbers.
- Bug fixes and code cleanups. Notable fixes are:
- Unsecure certain TPC registers that the user should access.
- Fix handling of QMAN errors
- Fix memory leak when recording errors (to later pass them to the user)
- Multiple fixes to razwi interrupt handling code
Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Oded Gabbay <ogabbay@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230608103043.GA2699019@ogabbay-vm-u20.habana-labs.com23 files changed
Lines changed: 557 additions & 696 deletions
File tree
- drivers/accel/habanalabs
- common
- mmu
- gaudi2
- gaudi
- goya
- include
- common
- gaudi2
- asic_reg
- include/uapi/drm
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 30 | | |
37 | 31 | | |
38 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
| 283 | + | |
| 284 | + | |
291 | 285 | | |
292 | 286 | | |
293 | 287 | | |
| |||
363 | 357 | | |
364 | 358 | | |
365 | 359 | | |
366 | | - | |
367 | | - | |
| 360 | + | |
| 361 | + | |
368 | 362 | | |
369 | 363 | | |
370 | 364 | | |
371 | | - | |
372 | | - | |
373 | | - | |
| 365 | + | |
| 366 | + | |
374 | 367 | | |
375 | 368 | | |
376 | 369 | | |
| |||
804 | 797 | | |
805 | 798 | | |
806 | 799 | | |
| 800 | + | |
| 801 | + | |
807 | 802 | | |
808 | 803 | | |
| 804 | + | |
809 | 805 | | |
810 | | - | |
811 | | - | |
812 | | - | |
| 806 | + | |
| 807 | + | |
813 | 808 | | |
814 | 809 | | |
815 | 810 | | |
| |||
840 | 835 | | |
841 | 836 | | |
842 | 837 | | |
| 838 | + | |
| 839 | + | |
843 | 840 | | |
844 | 841 | | |
845 | 842 | | |
846 | | - | |
847 | | - | |
| 843 | + | |
| 844 | + | |
848 | 845 | | |
849 | 846 | | |
850 | 847 | | |
851 | 848 | | |
852 | | - | |
853 | | - | |
| 849 | + | |
| 850 | + | |
854 | 851 | | |
855 | 852 | | |
856 | 853 | | |
857 | 854 | | |
858 | | - | |
859 | | - | |
| 855 | + | |
| 856 | + | |
860 | 857 | | |
861 | 858 | | |
862 | 859 | | |
863 | 860 | | |
864 | | - | |
865 | | - | |
| 861 | + | |
| 862 | + | |
866 | 863 | | |
867 | 864 | | |
868 | 865 | | |
| |||
1139 | 1136 | | |
1140 | 1137 | | |
1141 | 1138 | | |
1142 | | - | |
| 1139 | + | |
1143 | 1140 | | |
1144 | 1141 | | |
1145 | 1142 | | |
1146 | | - | |
1147 | 1143 | | |
1148 | 1144 | | |
1149 | 1145 | | |
| |||
1948 | 1944 | | |
1949 | 1945 | | |
1950 | 1946 | | |
1951 | | - | |
1952 | | - | |
| 1947 | + | |
1953 | 1948 | | |
1954 | 1949 | | |
1955 | 1950 | | |
| |||
2152 | 2147 | | |
2153 | 2148 | | |
2154 | 2149 | | |
2155 | | - | |
| 2150 | + | |
2156 | 2151 | | |
2157 | 2152 | | |
2158 | 2153 | | |
| |||
2167 | 2162 | | |
2168 | 2163 | | |
2169 | 2164 | | |
| 2165 | + | |
| 2166 | + | |
| 2167 | + | |
2170 | 2168 | | |
2171 | 2169 | | |
| 2170 | + | |
2172 | 2171 | | |
2173 | 2172 | | |
2174 | 2173 | | |
2175 | 2174 | | |
2176 | | - | |
| 2175 | + | |
| 2176 | + | |
2177 | 2177 | | |
2178 | 2178 | | |
| 2179 | + | |
2179 | 2180 | | |
2180 | 2181 | | |
2181 | 2182 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | 258 | | |
262 | 259 | | |
263 | 260 | | |
| |||
436 | 433 | | |
437 | 434 | | |
438 | 435 | | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | 436 | | |
443 | 437 | | |
444 | 438 | | |
| |||
496 | 490 | | |
497 | 491 | | |
498 | 492 | | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | 493 | | |
503 | 494 | | |
504 | 495 | | |
| |||
535 | 526 | | |
536 | 527 | | |
537 | 528 | | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | 529 | | |
542 | 530 | | |
543 | 531 | | |
| |||
563 | 551 | | |
564 | 552 | | |
565 | 553 | | |
566 | | - | |
567 | | - | |
568 | | - | |
569 | 554 | | |
570 | 555 | | |
571 | 556 | | |
| |||
661 | 646 | | |
662 | 647 | | |
663 | 648 | | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | 649 | | |
668 | 650 | | |
669 | 651 | | |
| |||
675 | 657 | | |
676 | 658 | | |
677 | 659 | | |
678 | | - | |
| 660 | + | |
679 | 661 | | |
680 | 662 | | |
681 | 663 | | |
| |||
685 | 667 | | |
686 | 668 | | |
687 | 669 | | |
688 | | - | |
689 | | - | |
690 | | - | |
691 | 670 | | |
692 | 671 | | |
693 | 672 | | |
| |||
1756 | 1735 | | |
1757 | 1736 | | |
1758 | 1737 | | |
1759 | | - | |
| 1738 | + | |
1760 | 1739 | | |
1761 | 1740 | | |
1762 | 1741 | | |
1763 | 1742 | | |
1764 | 1743 | | |
1765 | | - | |
1766 | | - | |
1767 | | - | |
| 1744 | + | |
1768 | 1745 | | |
1769 | | - | |
| 1746 | + | |
1770 | 1747 | | |
1771 | 1748 | | |
1772 | 1749 | | |
| |||
1787 | 1764 | | |
1788 | 1765 | | |
1789 | 1766 | | |
1790 | | - | |
1791 | | - | |
1792 | | - | |
1793 | | - | |
1794 | | - | |
1795 | | - | |
| 1767 | + | |
1796 | 1768 | | |
1797 | 1769 | | |
1798 | | - | |
| 1770 | + | |
1799 | 1771 | | |
1800 | 1772 | | |
1801 | 1773 | | |
1802 | 1774 | | |
1803 | | - | |
1804 | | - | |
1805 | 1775 | | |
1806 | 1776 | | |
1807 | 1777 | | |
| |||
1814 | 1784 | | |
1815 | 1785 | | |
1816 | 1786 | | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
| 1803 | + | |
| 1804 | + | |
1817 | 1805 | | |
1818 | 1806 | | |
1819 | 1807 | | |
| |||
0 commit comments