Commit aaeef7a
committed
drm/xe/migrate: rework size restrictions for sram pte emit
We allow the input size to not be aligned to PAGE_SIZE, which leads to
various bugs in build_pt_update_batch_sram() for PAGE_SIZE > 4K systems.
For example if ptes is exactly one gpu_page_size then the chunk size is
rounded down to zero. The simplest fix looks to be forcing PAGE_SIZE
aligned inputs.
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20251022163836.191405-3-matthew.auld@intel.com1 parent 3c767f7 commit aaeef7a
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1798 | 1798 | | |
1799 | 1799 | | |
1800 | 1800 | | |
| 1801 | + | |
| 1802 | + | |
1801 | 1803 | | |
1802 | 1804 | | |
1803 | 1805 | | |
| |||
1811 | 1813 | | |
1812 | 1814 | | |
1813 | 1815 | | |
1814 | | - | |
1815 | | - | |
| 1816 | + | |
| 1817 | + | |
1816 | 1818 | | |
1817 | 1819 | | |
1818 | 1820 | | |
1819 | 1821 | | |
| 1822 | + | |
1820 | 1823 | | |
1821 | 1824 | | |
1822 | 1825 | | |
| |||
1827 | 1830 | | |
1828 | 1831 | | |
1829 | 1832 | | |
1830 | | - | |
| 1833 | + | |
1831 | 1834 | | |
1832 | 1835 | | |
1833 | 1836 | | |
| |||
1918 | 1921 | | |
1919 | 1922 | | |
1920 | 1923 | | |
1921 | | - | |
| 1924 | + | |
1922 | 1925 | | |
1923 | 1926 | | |
1924 | | - | |
| 1927 | + | |
1925 | 1928 | | |
1926 | 1929 | | |
1927 | 1930 | | |
| |||
0 commit comments