Hi Andrew,
Can you please also add/merge this patch as well? It fixes bugs in
gxfb-add-power-management-functionality.patch (currently in your tree).
Two suspend/resume fixes:
- we weren't saving/restoring the palette correctly; I wasn't setting
PAL_ADDRESS correctly.
- the original GP restore code had an off-by-one bug that I happily
reproduced in this code. This fixes that, which fixes the RASTER_MODE
register not getting set.
And drop an unnecessary comment.
Signed-off-by: Andres Salomon <dilinger@debian.org>
---
drivers/video/geode/suspend_gx.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/video/geode/suspend_gx.c b/drivers/video/geode/suspend_gx.c
index bc1f2b9..9aff32e 100644
--- a/drivers/video/geode/suspend_gx.c
+++ b/drivers/video/geode/suspend_gx.c
@@ -39,7 +39,7 @@ static void gx_save_regs(struct gxfb_par *par)
memcpy(par->fp, par->vid_regs + VP_FP_START, sizeof(par->fp));
/* save the palette */
- write_gp(par, DC_PAL_ADDRESS, 0);
+ write_dc(par, DC_PAL_ADDRESS, 0);
for (i = 0; i < ARRAY_SIZE(par->pal); i++)
par->pal[i] = read_dc(par, DC_PAL_DATA);
}
@@ -73,10 +73,10 @@ static void gx_restore_gfx_proc(struct gxfb_par *par)
for (i = 0; i < ARRAY_SIZE(par->gp); i++) {
switch (i) {
- case GP_RASTER_MODE:
case GP_VECTOR_MODE:
case GP_BLT_MODE:
case GP_BLT_STATUS:
+ case GP_HST_SRC:
/* don't restore these registers */
break;
default:
@@ -130,7 +130,7 @@ static void gx_restore_display_ctlr(struct gxfb_par *par)
}
/* restore the palette */
- write_gp(par, DC_PAL_ADDRESS, 0);
+ write_dc(par, DC_PAL_ADDRESS, 0);
for (i = 0; i < ARRAY_SIZE(par->pal); i++)
write_dc(par, DC_PAL_DATA, par->pal[i]);
}
@@ -163,7 +163,7 @@ static void gx_restore_video_proc(struct gxfb_par *par)
case VP_RSVD_3:
case VP_CRC32:
case VP_AWT:
- case VP_VTM: /* this is r/w, shouldn't we restore? -dil */
+ case VP_VTM:
/* don't restore these registers */
break;
default:
--
1.5.3.7
--
| Tomasz Kłoczko | Is it time for remove (crap) ALSA from kernel tree ? |
| Greg Kroah-Hartman | [PATCH 008/196] Chinese: add translation of volatile-considered-harmful.txt |
| David Miller | Slow DOWN, please!!! |
| Aubrey | O_DIRECT question |
git: | |
| Martin Langhoff | Re: pack operation is thrashing my server |
| Francis Moreau | emacs and git... |
| Mirko Stocker | Working with Git and CVS in a team. |
| Keith Packard | Re: parsecvs tool now creates git repositories |
| Chris Peterson | [PATCH] drivers/net: remove network drivers' last few uses of IRQF_SAMPLE_RANDOM |
| Natalie Protasevich | [BUG] New Kernel Bugs |
| Karen Xie | [RFC][PATCH 1/1] cxgb3i: cxgb3 iSCSI initiator |
| Jeff Garzik | [git patches] net driver updates for .27 |
| Jonathan Thornburg | svnd questions (encrypting all of a partition or disk) |
| Richard Stallman | Real men don't attack straw men |
| Daniel Ouellet | identifying sparse files and get ride of them trick available? |
| Brandon Lee | DELL PERC 5iR slow performance |
| high memory | 3 hours ago | Linux kernel |
| semaphore access speed | 6 hours ago | Applications and Utilities |
| the kernel how to power off the machine | 7 hours ago | Linux kernel |
| Easter Eggs in windows XP | 10 hours ago | Windows |
| Shared swap partition | 11 hours ago | Linux general |
| Root password | 11 hours ago | Linux general |
| Where/when DNOTIFY is used? | 13 hours ago | Linux kernel |
| How to convert Linux Kernel built-in module into a loadable module | 15 hours ago | Linux kernel |
| Linux 2.6.24 and I/O schedulers | 16 hours ago | Linux kernel |
| USB Driver -- Interrupt Polling -- A Little Help Please | 21 hours ago | Linux general |
