mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-02 05:46:47 +07:00
[PATCH] savagefb: Fix black screen on load in Savage IX
This is a hack that seems to kick start the 2D engine of the Savage IX in some Toshiba laptops. Without this, the laptop starts with a black screen and occasionally crashes X. Signed-off-by: Antonino Daplas <adaplas@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
e52e15d3c1
commit
5b600464f0
@ -384,6 +384,19 @@ SavageSetup2DEngine(struct savagefb_par *par)
|
||||
BCI_SEND(0);
|
||||
BCI_SEND(BCI_CMD_SETREG | (1 << 16) | BCI_GBD2);
|
||||
BCI_SEND(GlobalBitmapDescriptor);
|
||||
|
||||
/*
|
||||
* I don't know why, sending this twice fixes the intial black screen,
|
||||
* prevents X from crashing at least in Toshiba laptops with SavageIX.
|
||||
* --Tony
|
||||
*/
|
||||
par->bci_ptr = 0;
|
||||
par->SavageWaitFifo(par, 4);
|
||||
|
||||
BCI_SEND(BCI_CMD_SETREG | (1 << 16) | BCI_GBD1);
|
||||
BCI_SEND(0);
|
||||
BCI_SEND(BCI_CMD_SETREG | (1 << 16) | BCI_GBD2);
|
||||
BCI_SEND(GlobalBitmapDescriptor);
|
||||
}
|
||||
|
||||
static void savagefb_set_clip(struct fb_info *info)
|
||||
|
Loading…
Reference in New Issue
Block a user