ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: community@altlinux.ru
Subject: Re: [Comm] USB Flash Travelling Disk
Date: Thu, 8 Jan 2004 19:57:17 +0300
Message-ID: <20040108165717.GI19034@master.mivlgu.local> (raw)
In-Reply-To: <20040108183249.3062d83c.x@linux.by>

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

On Thu, Jan 08, 2004 at 06:32:49PM +0200, X-Stranger wrote:
> После долгого сбора инфы о том, как же это все работает, выяснилось, в чем дело.
> Это баг некоторых версий БИОСа, как например на моем Acer TravelMate: USB-controller
> поддерживает только 9-е прерывание (mask==0x200 -->bit 9), правильно будет запускать
> его на irq 9, следуя данным БИОСа. Но, как сказал один из разработчиков: "But according
> to the piix irq router, it's connected to irq 10."

Так 10 или 11?  В dmesg было написано 11.

> Нужно было выяснить, где БИОС врет. Выяснили. Проблему решает следующий патч (ядро версий 2.4):
> 
> --- 2.4/arch/i386/kernel/pci-irq.c
> +++ build-2.4/arch/i386/kernel/pci-irq.c
> @@ -629,6 +629,18 @@
>  		    	if (dev2->irq && dev2->irq != irq) {
>  		    		printk(KERN_INFO "IRQ routing conflict for %s, have irq %d, want irq %d\n",
>  				       dev2->slot_name, dev2->irq, irq);
> +				if (!strcmp(msg, "Found")) {
> +					/* ok, the bios lied. Try to recover */
> +					if (r->set && (dev->class >> 8) != PCI_CLASS_DISPLAY_VGA) {
> +						printk(KERN_ERR "trying set.\n");
> +						if (r->set(pirq_router_dev, dev2, pirq, dev2->irq)) {
> +							printk(KERN_ERR "set succedded.\n");
> +							eisa_set_level_irq(dev2->irq);
> +						} else {
> +							printk(KERN_ERR "set failed.\n");
> +						}
> +					}
> +				}
>  		    		continue;
>  		    	}
>  			dev2->irq = irq;
> 
> Компилим ядро, ставим, перезагружаемся - вуаля! Никаких кофликтов в dmesg даже и не наблюдалось!
> Как и с PCMCIA. Протестено было на 2.4.21 (за неимением под рукой других версий). Инфа, помогающая
> обнаружить трабл датирована 2001 годом, почему же в ядре до сих пор не сделано такой поправки? Кто
> знает, кому из ALT Linux Team надо писать, чтобы такую поправку хотя бы в Альтовское ядро включили?

Очевидно, эта ошибка встречается достаточно редко, и это изменение
просто не пропихнули в ядро...

Хотя подобные правки чреваты неожиданными последствиями.  Видимо,
придётся добавить флаг pirq_router_override и ставить его только для
известных машин по информации DMI.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2004-01-08 16:57 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-26  8:47 [Comm] Организация Quake 2 сервера unix9
2003-12-31  5:01 ` Александр Никольников
2003-12-31  8:50   ` [Comm]Организация " unix9
2004-01-05 11:30     ` бМЕЛУБОДТ оЙЛПМШОЙЛПЧ
2004-01-05 13:13       ` unix9
2004-01-05 13:52         ` [Comm] USB Flash Travelling Disk X-Stranger
2004-01-05 14:52           ` Sergey Vlasov
2004-01-06  1:20             ` X-Stranger
2004-01-06 23:05             ` X-Stranger
2004-01-08 16:32           ` X-Stranger
2004-01-08 16:57             ` Sergey Vlasov [this message]
2004-01-08 17:22               ` X-Stranger
2004-01-08 17:43                 ` Sergey Vlasov
2004-01-08 17:47                   ` X-Stranger
2004-01-08 19:55                     ` Sergey Vlasov
2004-01-09  8:37                       ` X-Stranger
2004-01-05 15:40         ` [Comm]Организация Quake 2 сервера Pyatnitskich Evgeniy
2004-01-06  5:47         ` Александр Никольников

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=20040108165717.GI19034@master.mivlgu.local \
    --to=vsu@altlinux.ru \
    --cc=community@altlinux.ru \
    /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

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git