From: "Petr Vandrovec" <VANDROVE@vc.cvut.cz>
To: Pete Toscano <pete@research.netsol.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: VIA chipset discussion
Date: Thu, 18 Jan 2001 10:18:50 MET-1 [thread overview]
Message-ID: <12E94AD3749E@vcnet.vc.cvut.cz> (raw)
On 17 Jan 01 at 17:40, Pete Toscano wrote:
> according to the linux-usb maintainers, it's a pci irq routing problem.
> i've asked jeff garzik and martin mares if they'll look into it, but
> they're pretty busy and i haven't heard anything back from them (not
> that'd i'd expect to for quite a while, considering their load). i've
> asked on the list too, but i've only heard back from people with the
> same problem, not anyone who can fix the problem.
I'm using kernel module below. Find which device your USB is. If it is
0:07.2 and 0:07.3, take 7*8 + 2 = 58 (resp. 59). Then try
for irq in 16 17 18 19; do
insmod setpci devfn=58 irq=$irq
insmod setpci devfn=59 irq=$irq
modprobe <your usb ohci/uhci/alt-uhci>
does it work -> stop
done
After you'll find correct IRQ, you are done ;-) Put this into your
initscript before usb loading (you must compile USB as module), or
you can insert your devfn/irq pair somewhere into pirq_get_info()...
My BIOS (Apollo Pro 133x) returns incorrect routing table when LPT is
not in ECP mode. When it is in ECP, reported routing table is correct
(and my USB is on IRQ19, if that matters).
/*
# Based on Makefile for the Linux video drivers.
# 5 Aug 1999, James Simmons, <mailto:jsimmons@edgeglobal.com>
# Rewritten to use lists instead of if-statements.
default:
(cd /usr/src/linux; make SUBDIRS=/usr/src/linus/pci modules)
O_TARGET := setp.o
# All of the (potential) objects that export symbols.
# This list comes from 'grep -l EXPORT_SYMBOL *.[hc]'.
# Each configuration option enables a list of files.
obj-m += setpci.o
ifdef TOPDIR
include $(TOPDIR)/Rules.make
endif
clean:
rm -f core *.o *.a *.s
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/pci.h>
static unsigned int devfn = -1;
static unsigned int irq = -1;
MODULE_PARM(devfn, "i");
MODULE_PARM(irq, "i");
static int loadme(void) {
struct pci_dev* dev;
pci_for_each_dev(dev) {
printk(KERN_DEBUG "%p: %04X: %04X:%04X -> %d\n",
dev, dev->devfn, dev->vendor, dev->device, dev->irq);
if (dev->devfn == devfn)
dev->irq = irq;
}
return -EBUSY;
}
module_init(loadme);
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/
next reply other threads:[~2001-01-18 9:20 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-18 10:18 Petr Vandrovec [this message]
[not found] <20010118081259.A694@suse.cz>
[not found] ` <Pine.LNX.4.21.0101181548230.9718-100000@ns-01.hislinuxbox.com>
2001-01-21 11:54 ` VIA chipset discussion Vojtech Pavlik
-- strict thread matches above, loose matches on Subject: below --
2001-01-17 22:02 David D.W. Downey
2001-01-17 22:40 ` Pete Toscano
2001-01-18 4:04 ` Rogerio Brito
2001-01-18 18:13 ` Matthew Fredrickson
2001-01-18 23:32 ` John O'Donnell
2001-01-18 23:42 ` Howard Johnson
2001-01-19 14:53 ` Vojtech Pavlik
2001-01-19 16:42 ` John O'Donnell
2001-01-19 21:54 ` Matthew Fredrickson
2001-01-21 18:39 ` David D.W. Downey
2001-01-22 8:54 ` Howard Johnson
2001-01-19 6:42 ` Rogerio Brito
2001-01-20 8:39 ` Andy Galasso
2001-01-21 18:46 ` David D.W. Downey
2001-01-23 17:28 ` Andre Hedrick
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=12E94AD3749E@vcnet.vc.cvut.cz \
--to=vandrove@vc.cvut.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=pete@research.netsol.com \
/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