Repository navigation
Commit 63e28a7
uvesafb: Clean up MTRR code
The old code allowed very strange memory types. Now it works like
all the other video drivers: ioremap_wc is used unconditionally,
and MTRRs are set if PAT is unavailable (unless MTRR is disabled
by a module parameter).
UC, WB, and WT support is gone. If there are MTRR conflicts that prevent
addition of a WC MTRR, adding a non-conflicting MTRR is pointless; it's
better to just turn off MTRR support entirely.
As an added bonus, any MTRR added is freed on unload.
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>1 parent 07ebea2 commit 63e28a7
3 files changed
Lines changed: 23 additions & 64 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
95 | 89 | | |
96 | 90 | | |
97 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | 27 | | |
31 | 28 | | |
32 | 29 | | |
| |||
1540 | 1537 | | |
1541 | 1538 | | |
1542 | 1539 | | |
1543 | | - | |
| 1540 | + | |
| 1541 | + | |
1544 | 1542 | | |
1545 | 1543 | | |
1546 | | - | |
1547 | 1544 | | |
1548 | | - | |
1549 | | - | |
1550 | | - | |
1551 | | - | |
1552 | | - | |
1553 | | - | |
1554 | | - | |
1555 | | - | |
1556 | | - | |
1557 | | - | |
1558 | | - | |
1559 | | - | |
1560 | | - | |
1561 | | - | |
1562 | | - | |
1563 | | - | |
1564 | | - | |
| 1545 | + | |
1565 | 1546 | | |
1566 | | - | |
1567 | | - | |
| 1547 | + | |
| 1548 | + | |
1568 | 1549 | | |
1569 | | - | |
1570 | | - | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
1571 | 1555 | | |
1572 | | - | |
1573 | | - | |
1574 | | - | |
1575 | | - | |
1576 | | - | |
1577 | | - | |
1578 | | - | |
| 1556 | + | |
| 1557 | + | |
1579 | 1558 | | |
1580 | | - | |
1581 | 1559 | | |
1582 | 1560 | | |
1583 | 1561 | | |
1584 | 1562 | | |
1585 | | - | |
1586 | | - | |
1587 | | - | |
1588 | | - | |
1589 | | - | |
1590 | | - | |
1591 | | - | |
1592 | | - | |
1593 | | - | |
1594 | | - | |
1595 | | - | |
1596 | | - | |
1597 | | - | |
1598 | | - | |
1599 | | - | |
1600 | | - | |
1601 | | - | |
1602 | | - | |
1603 | | - | |
| 1563 | + | |
1604 | 1564 | | |
1605 | 1565 | | |
1606 | 1566 | | |
| |||
1851 | 1811 | | |
1852 | 1812 | | |
1853 | 1813 | | |
| 1814 | + | |
1854 | 1815 | | |
1855 | 1816 | | |
1856 | 1817 | | |
| |||
1930 | 1891 | | |
1931 | 1892 | | |
1932 | 1893 | | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
1933 | 1897 | | |
1934 | 1898 | | |
1935 | 1899 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
0 commit comments