public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [culprit found] Re: [boot hang] 2.6.7-rc2, VIA VT8237
  2004-06-04 23:12     ` David Ford
@ 2004-06-12  0:53       ` David Ford
  0 siblings, 0 replies; 3+ messages in thread
From: David Ford @ 2004-06-12  0:53 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Bartlomiej Zolnierkiewicz

[-- Attachment #1: Type: text/plain, Size: 288 bytes --]

Culprit found.  If CONFIG_IOMMU_DEBUG is enabled, the machine will hang 
on boot at the partition check when using the VIA driver.

David Ford wrote:

> Both 2.6.5 and 2.6.7 will boot using the GENERIC IDE driver.  I 
> haven't yet gotten any kernel to not lock up using the VIA driver.


[-- Attachment #2: david+challenge-response.vcf --]
[-- Type: text/x-vcard, Size: 183 bytes --]

begin:vcard
fn:David Ford
n:Ford;David
email;internet:david@blue-labs.org
title:Industrial Geek
tel;home:Ask please
tel;cell:(203) 650-3611
x-mozilla-html:TRUE
version:2.1
end:vcard


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

* Re: [culprit found] Re: [boot hang] 2.6.7-rc2, VIA VT8237
       [not found]       ` <2652y-760-19@gated-at.bofh.it>
@ 2004-06-12 13:58         ` Andi Kleen
  2004-06-12 18:14           ` David Ford
  0 siblings, 1 reply; 3+ messages in thread
From: Andi Kleen @ 2004-06-12 13:58 UTC (permalink / raw)
  To: David Ford; +Cc: akpm, B.Zolnierkiewicz, linux-kernel

David Ford <david+challenge-response@blue-labs.org> writes:

> Culprit found.  If CONFIG_IOMMU_DEBUG is enabled, the machine will
> hang on boot at the partition check when using the VIA driver.

The real culprit is buggy VIA silicon. Use this patch.

-Andi

---------------------------------------------------------------
Enable VIA softmmu workaround for iommu=force/IOMMU_DEBUG too

diff -u linux-2.6.7rc3-bk3/arch/x86_64/kernel/io_apic.c-o linux-2.6.7rc3-bk3/arch/x86_64/kernel/io_apic.c
--- linux-2.6.7rc3-bk3/arch/x86_64/kernel/io_apic.c-o	2004-06-11 03:02:42.000000000 +0200
+++ linux-2.6.7rc3-bk3/arch/x86_64/kernel/io_apic.c	2004-06-12 15:46:35.000000000 +0200
@@ -252,7 +252,8 @@
 				switch (vendor) { 
 				case PCI_VENDOR_ID_VIA:
 #ifdef CONFIG_GART_IOMMU
-					if (end_pfn >= (0xffffffff>>PAGE_SHIFT) &&
+					if ((end_pfn >= (0xffffffff>>PAGE_SHIFT) ||
+					     force_iommu) &&
 					    !iommu_aperture_allowed) {
 						printk(KERN_INFO
     "Looks like a VIA chipset. Disabling IOMMU. Overwrite with \"iommu=allowed\"\n");


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

* Re: [culprit found] Re: [boot hang] 2.6.7-rc2, VIA VT8237
  2004-06-12 13:58         ` [culprit found] Re: [boot hang] 2.6.7-rc2, VIA VT8237 Andi Kleen
@ 2004-06-12 18:14           ` David Ford
  0 siblings, 0 replies; 3+ messages in thread
From: David Ford @ 2004-06-12 18:14 UTC (permalink / raw)
  To: Andi Kleen; +Cc: akpm, B.Zolnierkiewicz, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1177 bytes --]

Yep, that patch makes this thing bootable now :)

Thank you,
David

Andi Kleen wrote:

>David Ford <david+challenge-response@blue-labs.org> writes:
>
>  
>
>>Culprit found.  If CONFIG_IOMMU_DEBUG is enabled, the machine will
>>hang on boot at the partition check when using the VIA driver.
>>    
>>
>
>The real culprit is buggy VIA silicon. Use this patch.
>
>-Andi
>
>---------------------------------------------------------------
>Enable VIA softmmu workaround for iommu=force/IOMMU_DEBUG too
>
>diff -u linux-2.6.7rc3-bk3/arch/x86_64/kernel/io_apic.c-o linux-2.6.7rc3-bk3/arch/x86_64/kernel/io_apic.c
>--- linux-2.6.7rc3-bk3/arch/x86_64/kernel/io_apic.c-o	2004-06-11 03:02:42.000000000 +0200
>+++ linux-2.6.7rc3-bk3/arch/x86_64/kernel/io_apic.c	2004-06-12 15:46:35.000000000 +0200
>@@ -252,7 +252,8 @@
> 				switch (vendor) { 
> 				case PCI_VENDOR_ID_VIA:
> #ifdef CONFIG_GART_IOMMU
>-					if (end_pfn >= (0xffffffff>>PAGE_SHIFT) &&
>+					if ((end_pfn >= (0xffffffff>>PAGE_SHIFT) ||
>+					     force_iommu) &&
> 					    !iommu_aperture_allowed) {
> 						printk(KERN_INFO
>     "Looks like a VIA chipset. Disabling IOMMU. Overwrite with \"iommu=allowed\"\n");
>
>  
>

[-- Attachment #2: david+challenge-response.vcf --]
[-- Type: text/x-vcard, Size: 183 bytes --]

begin:vcard
fn:David Ford
n:Ford;David
email;internet:david@blue-labs.org
title:Industrial Geek
tel;home:Ask please
tel;cell:(203) 650-3611
x-mozilla-html:TRUE
version:2.1
end:vcard


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

end of thread, other threads:[~2004-06-12 18:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <23tuk-7Os-7@gated-at.bofh.it>
     [not found] ` <23tDX-7UV-17@gated-at.bofh.it>
     [not found]   ` <23tNH-834-27@gated-at.bofh.it>
     [not found]     ` <23wix-1FP-19@gated-at.bofh.it>
     [not found]       ` <2652y-760-19@gated-at.bofh.it>
2004-06-12 13:58         ` [culprit found] Re: [boot hang] 2.6.7-rc2, VIA VT8237 Andi Kleen
2004-06-12 18:14           ` David Ford
2004-06-04 20:18 David Ford
2004-06-04 20:38 ` Bartlomiej Zolnierkiewicz
2004-06-04 20:42   ` David Ford
2004-06-04 23:12     ` David Ford
2004-06-12  0:53       ` [culprit found] " David Ford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox