Commit 4495816
drm/xe/guc: Fix missing init value and add register order check
Fix missing initial value for last_value.
For GuC capture register definition, it is required to define 64bit
register in a pair of 2 consecutive 32bit register entries, low first,
then hi. Add code to check this order.
Changes from prior revs:
v5:- Correct cross-line comment format
v4:- Fix warn on condition and remove skipping
v3:- Move break inside brace
v2:- Correct the fix tag pointed commit
Add examples in comments for warning
Add 1 missing hi condition check
Fixes: ecb6336 ("drm/xe/guc: Plumb GuC-capture into dev coredump")
Signed-off-by: Zhanjun Dong <zhanjun.dong@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241126201052.1937079-1-zhanjun.dong@intel.com
(cherry picked from commit 6f59fbc)
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>1 parent 40384c8 commit 4495816
1 file changed
+62
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| |||
1675 | 1676 | | |
1676 | 1677 | | |
1677 | 1678 | | |
1678 | | - | |
1679 | | - | |
| 1679 | + | |
| 1680 | + | |
1680 | 1681 | | |
1681 | | - | |
| 1682 | + | |
1682 | 1683 | | |
1683 | 1684 | | |
1684 | 1685 | | |
| |||
1701 | 1702 | | |
1702 | 1703 | | |
1703 | 1704 | | |
1704 | | - | |
| 1705 | + | |
| 1706 | + | |
1705 | 1707 | | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
1706 | 1724 | | |
1707 | | - | |
1708 | | - | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
1709 | 1728 | | |
1710 | 1729 | | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
1711 | 1739 | | |
1712 | | - | |
| 1740 | + | |
1713 | 1741 | | |
1714 | 1742 | | |
1715 | | - | |
1716 | | - | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
1717 | 1754 | | |
1718 | | - | |
1719 | | - | |
1720 | | - | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
1721 | 1758 | | |
1722 | | - | |
1723 | | - | |
1724 | | - | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
1725 | 1764 | | |
1726 | 1765 | | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
1727 | 1774 | | |
1728 | 1775 | | |
1729 | 1776 | | |
| |||
0 commit comments