linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] 2.4.0 agpgart with i815 and external card.
  2001-01-10 17:16 Anybody got 2.4.0 running on a 386 ? Petr Vandrovec
@ 2001-01-10 17:13 ` Charles McLachlan
  2001-01-10 19:03   ` Jeff Hartmann
  0 siblings, 1 reply; 3+ messages in thread
From: Charles McLachlan @ 2001-01-10 17:13 UTC (permalink / raw)
  To: linux-kernel, Petr Vandrovec

[-- Attachment #1: Type: TEXT/PLAIN, Size: 670 bytes --]


My problem was that I didn't pay enough attention to the configuration
options. I opted for *both* the 440LX/BX/GX, 815, 840, 850 support
(CONFIG_AGP_INTEL) *and* I810/I815 (on-board) support (CONFIG_AGP_I810).

The latter was taking precedence over the former, and getting confused.

Petr Vandrovec has made the very good point that, to stop others from
getting as confused as me, agpgart should default to generic intel if it
can't find the onboard i815 video card.

It's a very small patch (one line really) which I present for your
consideration.

Thanks to Alan Cox and Petr for putting me right.

Charlie - Queens' College - Cavendish Astrophysics - 07866 636318

[-- Attachment #2: Type: TEXT/PLAIN, Size: 580 bytes --]

--- drivers/char/agp/agpgart_be_original.c	Wed Jan 10 16:59:35 2001
+++ drivers/char/agp/agpgart_be.c	Wed Jan 10 17:00:54 2001
@@ -2373,9 +2373,9 @@
 			if (i810_dev == NULL) {
 				printk(KERN_ERR PFX "agpgart: Detected an "
 				       "Intel i815, but could not find the"
-				       " secondary device.\n");
-				agp_bridge.type = NOT_SUPPORTED;
-				return -ENODEV;
+				       " secondary device. Assuming a "
+				       "non-integrated video card.\n");
+				break;
 			}
 			printk(KERN_INFO PFX "agpgart: Detected an Intel i815 "
 			       "Chipset.\n");

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Anybody got 2.4.0 running on a 386 ?
@ 2001-01-10 17:16 Petr Vandrovec
  2001-01-10 17:13 ` [PATCH] 2.4.0 agpgart with i815 and external card Charles McLachlan
  0 siblings, 1 reply; 3+ messages in thread
From: Petr Vandrovec @ 2001-01-10 17:16 UTC (permalink / raw)
  To: Robert Kaiser; +Cc: linux-kernel

On 10 Jan 01 at 17:00, Robert Kaiser wrote:
> > not really. Could you write a small function that just reads the kernel
> > image from the first symbol to the last one, and see whether it crashes?
> > (read it into a volatile variable to make sure GCC reads it.)
> 
> I tried this: Reading the entire image never caused any crashes.
> 
> However, I did have some (rare) instances of the kernel booting
> successfully. Then it would fail again, booting the very same image
> that had worked before.
> 
> I am beginning to suspect that I may be dealing with flaky hardware.
> (I'm working from home today and I only have access to one of my 386
> specimen here).
> 
> I guess I'll better shut up until I can double check on
> some other 386 boards tomorrow....

Could you try to remove 'inb $0x92,%al','orb $02,%al','outb %al,$0x92'
from arch/i386/boot/setup.S ? Maybe it causes something to your A20.
For example A20 through KBC and bit 1 of port 0x92 are wired together
with XOR, and port 0x92 acts immediately, while KBC acts with delay.
So test for a20 succeeds, as KBC did not turned its A20 yet, but then
after KBC gets done its job, it dies... (eventually overwritting kernel
itself; do you use zImage or bzImage? with bzImage at odd megabyte it should
die almost immediately)

But it is pure speculation. Value of %ax after a20_wait loop finishes
could be interesting too - is it zero (no loop), one (0ffff:210 contained
0), or something higher (we had to wait for KBC)?

You can also try loading with loadlin from DOS with XMS manager, 
instead of through LILO, as if you'll load DOS=HIGH, it will enable A20 
for you. And temporary remove whole A20 game from boot.S.
                                                Best regards,
                                                    Petr Vandrovec
                                                    vandrove@vc.cvut.cz
                                                    
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] 2.4.0 agpgart with i815 and external card.
  2001-01-10 17:13 ` [PATCH] 2.4.0 agpgart with i815 and external card Charles McLachlan
@ 2001-01-10 19:03   ` Jeff Hartmann
  0 siblings, 0 replies; 3+ messages in thread
From: Jeff Hartmann @ 2001-01-10 19:03 UTC (permalink / raw)
  To: Charles McLachlan; +Cc: linux-kernel, Petr Vandrovec

Charles McLachlan wrote:

> My problem was that I didn't pay enough attention to the configuration
> options. I opted for *both* the 440LX/BX/GX, 815, 840, 850 support
> (CONFIG_AGP_INTEL) *and* I810/I815 (on-board) support (CONFIG_AGP_I810).
> 
> The latter was taking precedence over the former, and getting confused.
> 
> Petr Vandrovec has made the very good point that, to stop others from
> getting as confused as me, agpgart should default to generic intel if it
> can't find the onboard i815 video card.
> 
> It's a very small patch (one line really) which I present for your
> consideration.
> 
> Thanks to Alan Cox and Petr for putting me right.
> 
> Charlie - Queens' College - Cavendish Astrophysics - 07866 636318
> 
> 
> ------------------------------------------------------------------------
> 
> --- drivers/char/agp/agpgart_be_original.c	Wed Jan 10 16:59:35 2001
> +++ drivers/char/agp/agpgart_be.c	Wed Jan 10 17:00:54 2001
> @@ -2373,9 +2373,9 @@
>  			if (i810_dev == NULL) {
>  				printk(KERN_ERR PFX "agpgart: Detected an "
>  				       "Intel i815, but could not find the"
> -				       " secondary device.\n");
> -				agp_bridge.type = NOT_SUPPORTED;
> -				return -ENODEV;
> +				       " secondary device. Assuming a "
> +				       "non-integrated video card.\n");
> +				break;
>  			}
>  			printk(KERN_INFO PFX "agpgart: Detected an Intel i815 "
>  			       "Chipset.\n");
> agppatch
> 
> Content-Type:
> 
> TEXT/PLAIN
> Content-Encoding:
> 
> BASE64

This looks reasonable, and it will probably avoid alot of people from 
emailing me. ;)  It has my vote for 2.4.1.

-Jeff

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-01-10 20:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-10 17:16 Anybody got 2.4.0 running on a 386 ? Petr Vandrovec
2001-01-10 17:13 ` [PATCH] 2.4.0 agpgart with i815 and external card Charles McLachlan
2001-01-10 19:03   ` Jeff Hartmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).