From: Emmanuel Thome <Emmanuel.Thome+acpi-/zGXu1G9BXs@public.gmane.org>
To: ole.rohne-vJEk5272eHo@public.gmane.org
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: Dell D600: teaching radeonfb how to wake up...
Date: Sat, 22 Nov 2003 17:31:47 +0100 [thread overview]
Message-ID: <20031122163147.GA26528@tate.loria.fr> (raw)
In-Reply-To: <yzo1xs3ijgr.fsf-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1530 bytes --]
Great big thanks ! Works for me as well (the int10 part for xfree ;
haven't tried fb code yet. According to benh, restoring pci state as you
do is likely not to help much).
I suggest you update your patch for the xf86 driver as in the attached
patch, still. The reason is that I've experienced failed int10 POSTs
when they turn out to be useless. There are many registers to choose
from if one wants to decide whether the card is at D3cold or not.
CONFIG_MEMSIZE being zero is just a reasonable guess IMHO.
Many thanks,
E.
P.S for acpi-devel folks: compiled a radeon_drv.o for XFree86-4.3.0 ;
it's available at http://www.loria.fr/~thome/radeon_drv.o.gz
On Thu, Nov 20, 2003 at 08:32:04AM +0100, ole.rohne-vJEk5272eHo@public.gmane.org wrote:
> I've done similar exercises on my Fujitsu P2120 (it's an M6), and I
> concluded that the card needed to go through the BIOS POST sequence,
> but for some reason s3_bios cannot be used. I tried backporting the
> powerbook code, with no result except a hanging computer. I suspect
> even ATI docs wouldn't help as they "provide" the BIOS for this
> purpose.
>
> I eventuall hacked it using the vm86 emulator that comes with XFree86,
> plugging in a call to BIOS POST when switching virtual console; kind
> of ugly but it worked. I think I also needed some PCI hackery in the
> radeonfb resume code, not sure if that made it back into the 2.6.0
> kernel. I haven't been able to play with it at all lately as my
> machine reboots on S3 resume with recent kernels.
>
> Regards, Ole
[-- Attachment #2: radeon_patch_xfree86 --]
[-- Type: text/plain, Size: 1007 bytes --]
--- /usr/X11R6/lib/Server/drivers/ati/radeon_driver.c 2003-10-25 00:10:20.000000000 +0200
+++ drivers/ati/radeon_driver.c 2003-11-22 17:20:14.000000000 +0100
@@ -345,6 +345,7 @@
"xf86InitInt10",
"xf86FreeInt10",
"xf86int10Addr",
+ "xf86ExecX86int10",
NULL
};
@@ -6409,9 +6410,22 @@
{
ScrnInfoPtr pScrn = xf86Screens[scrnIndex];
RADEONInfoPtr info = RADEONPTR(pScrn);
+ unsigned char * RADEONMMIO = info->MMIO;
RADEONTRACE(("RADEONEnterVT\n"));
+ if (INREG(RADEON_CONFIG_MEMSIZE) == 0) { /* Softboot V_BIOS */
+ xf86Int10InfoPtr pInt;
+ xf86DrvMsg(pScrn->scrnIndex, X_WARNING,
+ "zero MEMSIZE, probably at D3cold. Re-POSTing via int10.\n");
+ pInt = xf86InitInt10 (info->pEnt->index);
+ if (pInt) {
+ pInt->num = 0xe6;
+ xf86ExecX86int10 (pInt);
+ xf86FreeInt10 (pInt);
+ }
+ }
+
if (info->FBDev) {
unsigned char *RADEONMMIO = info->MMIO;
if (!fbdevHWEnterVT(scrnIndex,flags)) return FALSE;
next prev parent reply other threads:[~2003-11-22 16:31 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-19 18:01 Dell D600: teaching radeonfb how to wake up Emmanuel Thomé
[not found] ` <20031119180119.GB22307-xkTd+U360DcAs8EywTwl9A@public.gmane.org>
2003-11-19 19:43 ` Karol Kozimor
[not found] ` <20031119194303.GA16571-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
2003-11-19 19:51 ` Emmanuel Thome
[not found] ` <20031119205129.A19364-SAjW485I7Qt98t58zOhiHA@public.gmane.org>
2003-11-19 20:08 ` Karol Kozimor
2003-11-20 11:44 ` Ducrot Bruno
2003-11-20 11:13 ` Pavel Machek
[not found] ` <1069370504.705.32.camel@gaston>
[not found] ` <1069370504.705.32.camel-ZSGxbZoyBwc@public.gmane.org>
2003-11-20 23:47 ` Pavel Machek
[not found] ` <20031120234708.GA431-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2003-11-21 0:24 ` Benjamin Herrenschmidt
[not found] ` <1069374272.723.44.camel-ZSGxbZoyBwc@public.gmane.org>
2003-11-21 12:32 ` Karol Kozimor
[not found] ` <20031121123239.GB9973-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
2003-11-21 13:01 ` Charl P. Botha
2003-11-24 1:30 ` Benjamin Herrenschmidt
2003-11-21 14:50 ` Emmanuel Thome
[not found] ` <20031121155010.C19564-SAjW485I7Qt98t58zOhiHA@public.gmane.org>
2003-11-24 1:29 ` Benjamin Herrenschmidt
[not found] ` <1069637387.723.112.camel-ZSGxbZoyBwc@public.gmane.org>
2003-11-24 17:36 ` Pavel Machek
[not found] ` <20031124173603.GA298-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2003-11-25 2:02 ` Benjamin Herrenschmidt
[not found] ` <1069725771.876.296.camel-ZSGxbZoyBwc@public.gmane.org>
2003-11-25 12:04 ` Pavel Machek
[not found] ` <20031125120443.GA297-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2003-11-26 13:24 ` Ducrot Bruno
[not found] ` <20031126132419.GL7374-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2003-11-26 22:34 ` Pavel Machek
[not found] ` <20031126223436.GD207-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2003-11-26 23:27 ` Benjamin Herrenschmidt
2003-11-27 10:47 ` Ducrot Bruno
[not found] ` <20031127104722.GM7374-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2003-11-28 0:10 ` Benjamin Herrenschmidt
[not found] ` <yzo1xs3ijgr.fsf@localhost.localdomain>
[not found] ` <yzo1xs3ijgr.fsf-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2003-11-21 14:35 ` Emmanuel Thomé
2003-11-22 16:31 ` Emmanuel Thome [this message]
[not found] ` <20031122163147.GA26528-xkTd+U360DcAs8EywTwl9A@public.gmane.org>
2003-11-24 17:39 ` Pavel Machek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031122163147.GA26528@tate.loria.fr \
--to=emmanuel.thome+acpi-/zgxu1g9bxs@public.gmane.org \
--cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=ole.rohne-vJEk5272eHo@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox