Страница 1 из 4

device digi

Добавлено: 2008-06-02 14:58:02
theBas
Cдох системник на коем крутилась 4.7 фря и стоял модемный пул.
Мультипорт карта сдоровенная исашная 8-и портовая без опознавательных знаков.

Конфигурилась в старом ядре строкой:
device dgb0 at isa? port 0x220 iomem 0x0d0000

Ставлю фрю 7-ку девайса dgb нету на замене девайс digi

Но как его отконфигрить с такимиже параметрами?
man didi мну поверг в шок(с нубами всегда наверное так).

Re: device digi

Добавлено: 2008-06-02 15:12:55
Alex Keda
из простых решений - найти старый системник с ISA и туда воткнуть винт со старого сервака.
аз сложных - курить про

Код: Выделить всё

man 5 device.hints

Re: device digi

Добавлено: 2008-06-04 11:39:21
theBas
и так метод простой: перетыкаем винт

Код: Выделить всё

dmesg -a|grep dgb
dgb0: PC/Xe 64K
dgb0 at port 0x220-0x223 iomem 0xd0000-0xdffff on isa0
dgb0: 16 ports
dgb0: driver is using old-style compatability shims
Но мы не исчем ростых путей :)
bsd 7.0 digi в ядро не компилил.

Код: Выделить всё

kldload digi
dmesg -a|grep digi

digi1: 0x061: Invalid i/o address
digi0 at port 0x220-0x223 iomem 0xd0000-0xdffff on isa0
digi0: memory reservation failed (0x06)
device_attach: digi0 attach returned 6

Re: device digi

Добавлено: 2008-06-04 11:44:31
theBas
токо отправил как пришла в голову идея.

Код: Выделить всё

/root/>dmesg -a|grep 0xd0
vgapci0: <VGA-compatible display> mem 0xd0000000-0xd0ffffff,0xd2000000-0xd3ffffff at device 0.0 on pci1
digi0 at port 0x220-0x223 iomem 0xd0000-0xdffff on isa0
может быть из з видяхи?

Re: device digi

Добавлено: 2008-06-04 14:27:11
paradox
могу полистать на досуге соурсы от 4RELENG и 7RELENG
по этим дровам
уточните что за девайс id у него
pciconv -lv

Re: device digi

Добавлено: 2008-06-04 14:38:15
theBas
Девайс ISA
в pciconv -lv я его не вижу(и по идее не должен как я понимю)

Код: Выделить всё

ostb0@pci0:0:0:0:      class=0x060000 card=0x00000000 chip=0x06911106 rev=0x44 hdr=0x00
    vendor     = 'VIA Technologies Inc'
    device     = 'VT82C691/693A/694X Apollo Pro/133/133A System Controller'
    class      = bridge
    subclass   = HOST-PCI
pcib1@pci0:0:1:0:       class=0x060400 card=0x00000000 chip=0x85981106 rev=0x00 hdr=0x01
    vendor     = 'VIA Technologies Inc'
    device     = 'VT82C598MVP/694x Apollo MVP3/Pro133x PCI to AGP Bridge'
    class      = bridge
    subclass   = PCI-PCI
isab0@pci0:0:7:0:       class=0x060100 card=0x00001106 chip=0x05961106 rev=0x23 hdr=0x00
    vendor     = 'VIA Technologies Inc'
    device     = 'VT82C596/A/B "Mobile South" PCI to ISA Bridge'
    class      = bridge
    subclass   = PCI-ISA
atapci0@pci0:0:7:1:     class=0x01018a card=0x00000000 chip=0x05711106 rev=0x10 hdr=0x00
    vendor     = 'VIA Technologies Inc'
    device     = 'VT82C586A/B/VT82C686/A/B/VT823x/A/C Bus Master IDE Controller'
    class      = mass storage
    subclass   = ATA
none0@pci0:0:7:3:       class=0x060000 card=0x00000000 chip=0x30501106 rev=0x30 hdr=0x00
    vendor     = 'VIA Technologies Inc'
    device     = 'VT82C596/596A/596 Power Management and SMBus Controller'
    class      = bridge
    subclass   = HOST-PCI
rl0@pci0:0:9:0: class=0x020000 card=0x032010bd chip=0x813910ec rev=0x10 hdr=0x00
    vendor     = 'Realtek Semiconductor'
    device     = 'RT8139 (A/B/C/810x/813x/C+) Fast Ethernet Adapter'
    class      = network
    subclass   = ethernet
vgapci0@pci0:1:0:0:     class=0x030000 card=0x00000000 chip=0x002d10de rev=0x15 hdr=0x00
    vendor     = 'Nvidia Corp'
    device     = 'NV5 TNT2 Model 64 / TNT2 Model 64 Pro'
    class      = display
    subclass   = VG

Re: device digi

Добавлено: 2008-06-04 14:43:50
paradox
чет я туплю
была ж какая то команда...
мож pnpinfo

Код: Выделить всё

kldload digi
dmesg -a|grep digi

digi1: 0x061: Invalid i/o address
digi0 at port 0x220-0x223 iomem 0xd0000-0xdffff on isa0
digi0: memory reservation failed (0x06)
device_attach: digi0 attach returned 6
непонял
digi 1 ?
digi 0 ?
эт какой то глюк

а можете показать весь dmesg ядра с момента загрузки bsd без digi
и потом то что появляеться при kldload digi
и если можно запакуйте соурсы этой карты от 4.7
возможно где то в srs/sys/dev лежат

Re: device digi

Добавлено: 2008-06-04 17:31:27
theBas
по поводу digi0 digi1
Из man digi

Код: Выделить всё

This man page was originally written for the dgb driver, and should
     likely be gone over with a fine tooth comb to reflect differences with
     the digi driver.

     When not defined the number is computed:

	 default NDGBPORTS = number_of_described_DigiBoard_cards * 16

     If it is less than the actual number of ports the system will be able to
     use only the first NDGBPORTS ports.  If it is greater then all ports will
     be usable but some memory will be wasted.
Видать NDGBPORTS=32 но как повлиять на его вычисление я незнаю.

pnpinfo молчит как партизан ведь карта не пнп.

ядро я уже раз десять перекомпиливал и так и етак. Ша снова перекомпилю без диги и покажу.

девайс тут http://depositfiles.com/files/5784098

Re: device digi

Добавлено: 2008-06-04 19:28:08
paradox

Код: Выделить всё

dmesg -a|grep dgb
dgb0: PC/Xe 64K
dgb0 at port 0x220-0x223 iomem 0xd0000-0xdffff on isa0
dgb0: 16 ports
dgb0: driver is using old-style compatability shims
вижу токо один dbg0
если верить 4.7
а дальше можно увидеть? или это все?
значит должен и в 7 быть один digi0

если да
то на 7.0
то что digi вы показывали
такого нет
особенно dgb0: PC/Xe 64K
неувидел

Re: device digi

Добавлено: 2008-06-05 12:16:44
theBas
Наивно переставил 5-у ( думал поможет.

Код: Выделить всё

Copyright (c) 1992-2006 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 5.5-RELEASE #0: Tue May 23 14:58:27 UTC 2006
    root@perseus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel Pentium III (801.82-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x686  Stepping = 6
  Features=0x387f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,PN,MMX,FXSR,SSE>
real memory  = 134217728 (128 MB)
avail memory = 121700352 (116 MB)
npx0: <math processor> on motherboard
npx0: INT 16 interface
cpu0 on motherboard
pcib0: <Host to PCI bridge> pcibus 0 on motherboard
pir0: <PCI Interrupt Routing Table: 5 Entries> on motherboard
pci0: <PCI bus> on pcib0
agp0: <VIA 82C691 (Apollo Pro) host to PCI bridge> mem 0xd4000000-0xd4ffffff at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 82C596B UDMA66 controller> port 0xe000-0xe00f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 7.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
pci0: <bridge, HOST-PCI> at device 7.3 (no driver attached)
rl0: <RealTek 8139 10/100BaseTX> port 0xe800-0xe8ff mem 0xd5000000-0xd50000ff irq 11 at device 9.0 on pci0
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:00:21:2c:ee:03
orm0: <ISA Option ROM> at iomem 0xc0000-0xcffff on isa0
pmtimer0 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
fdc0: <Enhanced floppy controller> at port 0x3f0-0x3f5 irq 6 drq 2 on isa0
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0700> can't assign resources (port)
unknown: <PNP0400> can't assign resources (port)
Timecounter "TSC" frequency 801824155 Hz quality 800
Timecounters tick every 10.000 msec
ad0: 32253MB <ST340016A/3.75> [65531/16/63] at ata0-master UDMA66
ad2: 32253MB <SAMSUNG SP0411N/TW100-13> [65531/16/63] at ata1-master UDMA66
Mounting root from ufs:/dev/ad0s1a
Pre-seeding PRNG:
 kickstart
.
Loading configuration files.
Entropy harvesting:
 interrupts
 ethernet
 point_to_point
 kickstart
.
swapon: adding /dev/ad0s1b as swap device
Starting file system checks:
/dev/ad0s1a: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ad0s1a: clean, 235833 free (1561 frags, 29284 blocks, 0.6% fragmentation)
/dev/ad0s1e: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ad0s1e: clean, 14013115 free (31219 frags, 1747737 blocks, 0.2% fragmentation)
/dev/ad0s1d: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ad0s1d: clean, 1012725 free (85 frags, 126580 blocks, 0.0% fragmentation)

Setting hostname: .
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
	inet 127.0.0.1 netmask 0xff000000 
	inet6 ::1 prefixlen 128 
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 
Additional routing options:
.
Starting devd.
Mounting NFS file systems:
.
Starting syslogd.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib
a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout
Starting usbd.
No USB host controllers found
Starting local daemons:
.
Updating motd
.
Configuring syscons:
 blanktime
.
sendmail_submit: /etc/mail/aliases newer than /etc/mail/aliases.db, regenerating
/etc/mail/aliases: 26 aliases, longest 10 bytes, 266 bytes total
sendmail_clientmqueue: /etc/mail/aliases newer than /etc/mail/aliases.db, regenerating
/etc/mail/aliases: 26 aliases, longest 10 bytes, 266 bytes total
Initial i386 initialization:
.
Additional ABI support:
.
Starting cron.
Local package initialization:
.
Additional TCP options:
.
Starting background file system checks in 60 seconds.

Fri Jan  1 02:57:29 UTC 1999
Jan  1 02:57:34  login: ROOT LOGIN (root) ON ttyv0
digi0 at port 0x220-0x223 iomem 0xd0000-0xdffff on isa0
digi0: memory reservation failed (0x06)
device_attach: digi0 attach returned 6
digi1: 0x061: Invalid i/o address
unknown девайс ето acpi,я отключаю в биос ибо с ним у мну

Код: Выделить всё

wachlog timeout
и сетка страшно тормозит, к стати digi1 появляется как токо отключен acpi, иначе его нет. Варианты без сетевухи с включеным и отключеным acpi пробовал сообщение идентичное.

Re: device digi

Добавлено: 2008-06-05 15:17:09
theBas
Видать придется 4-у ставить :( там хоть порты обновить нынче мона? (portsnap, cvsup порты закрыты)
и с makedev расчехляться кошмар.

Re: device digi

Добавлено: 2008-06-05 15:50:43
paradox
почему?
или уже устал под 7 поднимать?

Re: device digi

Добавлено: 2008-06-05 16:01:08
Alex Keda
а я бы на четвёрке делал и не чесался...
==========
всё можно обновить - но квалификация потребуется чуть выше.
некотоыре порты уже без напильника не соберёшь

Re: device digi

Добавлено: 2008-06-05 21:52:46
paradox
впринципе можно проверить кое что
мне там одна строка кода не понравилась

digi_isa.c

Код: Выделить всё

        if (sc->model == PCXI || sc->model == PCXE) {
                outb(sc->port, FEPRST | FEPMEM);
                for (i = 0; (inb(sc->port) & FEPMASK) != FEPRST; i++) {
-                        if (i == hz / 10) {
+                       if (i > 10000) {
                                device_printf(dev,
                                    "memory reservation failed (0x%02x)\n",
                                    inb(sc->port));
                                sc->hidewin(sc);
                                goto failed;
                        }
попробуй поменят так
и пересобери
cd /usr/src/modules/digi/digi/ && make clean && make && make load
и посмотри что в логе будет

Re: device digi

Добавлено: 2008-06-06 12:28:39
theBas
попробуй поменят так
и пересобери
cd /usr/src/modules/digi/digi/ && make clean && make && make load
и посмотри что в логе будет

в логе тоже самое хотя при загрузке при етом тормозило пару мин.

Re: device digi

Добавлено: 2008-06-06 12:55:51
theBas
из man digi (повторюсь)

Код: Выделить всё

  When not defined the number is computed:

         default NDGBPORTS = number_of_described_DigiBoard_cards * 16

     If it is less than the actual number of ports the system will be able to
     use only the first NDGBPORTS ports.  If it is greater then all ports will
     be usable but some memory will be wasted.

     Meaning of flags:
     0x0001  use alternate pinout (exchange DCD and DSR lines)
     0x0002  do not use 8K window mode of PC/Xe

     Device numbering:
     0bCCmmmmmmmmOLIPPPPP
       CCard number
         mmmmmmmmajor number
                 callOut
                  Lock
                   Initial
                    PPPPPort number
Обьясните мне ктонибудь к чему все ето?
NDGBPORTS - как мне повлиять на его вычисление?
Device numbering - что ето такое и где и как я могу его использовать?

Re: device digi

Добавлено: 2008-06-06 13:03:44
paradox
это ни абстрактно
в 7 покрайней мере ничего такого не нашел
а вообще надо драйвер с дебагом пересобрать
что бы увидеть хотя бы эту строку

Код: Выделить всё

    DLOG(DIGIDB_INIT, (sc->dev, "isa? port 0x%03x mem 0x%lx\n",
        sc->port, sc->pmem));
что она выдает
и читать

Код: Выделить всё

man 5 device.hints

Re: device digi

Добавлено: 2008-06-06 13:24:40
еруИфы
debug=1

Код: Выделить всё

digi0: probing on isa bus
digi0: isa? port 0x220 mem 0xd0000
digi0: got reset after 1 iterations
digi0: board type is 0x4
digi0: Probe returns -10
digi0: probing on isa bus
digi0: isa? port 0x220 mem 0xd0000
digi0: got reset after 1 iterations
digi0: board type is 0x4
digi0: Probe returns -10
digi0 at port 0x220-0x223 iomem 0xd0000-0xdffff on isa0
digi0: attaching
digi0: Checking card type
digi0: got reset after 1 iterations
digi0: board type is 0x4
digi0: internal memory segment 0xf000
digi0: got reset after 0 iterations
digi0: memory reservation failed (0x06)
device_attach: digi0 attach returned 6
digi1: probing on isa bus
digi1: 0x061: Invalid i/o addres

Re: device digi

Добавлено: 2008-06-06 13:48:56
paradox
пробуйте так
и пусть дебаг будет включен
посмотрим куда оно дойдет
впринципе разници между дровами с 4 и 7 нет
в 7 токо более совершенны
странно чего оно на этом спотыкаеться

но если непойдет есть еще последний вариант.... потом

Код: Выделить всё

        if (sc->model == PCXI || sc->model == PCXE) {
//                outb(sc->port, FEPRST | FEPMEM);
                for (i = 0; (inb(sc->port) & FEPMASK) != FEPRST; i++) {
                        if (i == hz / 10) {
                                device_printf(dev,
                                    "memory reservation failed (0x%02x)\n",
                                    inb(sc->port));
                                sc->hidewin(sc);
                                goto failed;
                        }
                        digi_delay(sc, "digirst2", 1);
                }
                DLOG(DIGIDB_INIT, (sc->dev, "got memory after %d iterations\n",
                    i));
        }

Re: device digi

Добавлено: 2008-06-06 13:55:52
paradox
покажете результат того варианта
и попробуете этот

Код: Выделить всё

-        if (sc->model != PCXI) {
-                t = (sc->pmem >> 8) & 0xffe0;
-                if (sc->model == PCXEVE)
-                        t |= 0x10;              /* enable windowing */
-                outb(sc->port + 2, t & 0xff);
-                outb(sc->port + 3, t >> 8);
-        }

        if (sc->model == PCXI || sc->model == PCXE) {
 -               outb(sc->port, FEPRST | FEPMEM);
                for (i = 0; (inb(sc->port) & FEPMASK) != FEPRST; i++) {
                        if (i == hz / 10) {
                                device_printf(dev,
                                    "memory reservation failed (0x%02x)\n",
                                    inb(sc->port));
                                sc->hidewin(sc);
                                goto failed;
                        }
                        digi_delay(sc, "digirst2", 1);
                }
                DLOG(DIGIDB_INIT, (sc->dev, "got memory after %d iterations\n",
                    i));
        }

+        if (sc->model != PCXI) {
+                t = (sc->pmem >> 8) & 0xffe0;
+                if (sc->model == PCXEVE)
+                        t |= 0x10;              /* enable windowing */
+                outb(sc->port + 2, t & 0xff);
+                outb(sc->port + 3, t >> 8);
+        }

        DLOG(DIGIDB_INIT, (sc->dev, "short memory test\n"));
        ptr = sc->setwin(sc, BOTWIN);
        vD(ptr) = 0xA55A3CC3;
        if (vD(ptr) != 0xA55A3CC3) {
                device_printf(dev, "1st memory test failed\n");
                sc->hidewin(sc);
                goto failed;
        }
        DLOG(DIGIDB_INIT, (sc->dev, "1st memory test ok\n"));

Re: device digi

Добавлено: 2008-06-06 14:00:47
thebas

Код: Выделить всё

digi0: probing on isa bus
digi0: isa? port 0x220 mem 0xd0000
digi0: got reset after 1 iterations
digi0: board type is 0x4
digi0: Probe returns -10
digi0: probing on isa bus
digi0: isa? port 0x220 mem 0xd0000
digi0: got reset after 1 iterations
digi0: board type is 0x4
digi0: Probe returns -10
digi0 at port 0x220-0x223 iomem 0xd0000-0xdffff on isa0
digi0: attaching
digi0: Checking card type
digi0: got reset after 1 iterations
digi0: board type is 0x4
digi0: internal memory segment 0xf000
digi0: got reset after 0 iterations
digi0: got memory after 0 iterations
digi0: short memory test
digi0: 1st memory test failed

Re: device digi

Добавлено: 2008-06-06 14:07:18
thebas

Код: Выделить всё

Jun  6 14:03:52 caravella kernel: digi0: probing on isa bus
Jun  6 14:03:52 caravella kernel: digi0: isa? port 0x220 mem 0xd0000
Jun  6 14:03:53 caravella kernel: digi0: got reset after 1 iterations
Jun  6 14:03:53 caravella kernel: digi0: board type is 0x4
Jun  6 14:03:53 caravella kernel: digi0: Probe returns -10
Jun  6 14:03:53 caravella kernel: digi0: probing on isa bus
Jun  6 14:03:53 caravella kernel: digi0: isa? port 0x220 mem 0xd0000
Jun  6 14:03:53 caravella kernel: digi0: got reset after 1 iterations
Jun  6 14:03:53 caravella kernel: digi0: board type is 0x4
Jun  6 14:03:53 caravella kernel: digi0: Probe returns -10
Jun  6 14:03:53 caravella kernel: digi0 at port 0x220-0x223 iomem 0xd0000-0xdfff
Jun  6 14:03:53 caravella kernel: digi0: attaching
Jun  6 14:03:53 caravella kernel: digi0: Checking card type
Jun  6 14:03:53 caravella kernel: digi0: got reset after 1 iterations
Jun  6 14:03:53 caravella kernel: digi0: board type is 0x4
Jun  6 14:03:53 caravella kernel: digi0: internal memory segment 0xf000
Jun  6 14:03:53 caravella kernel: digi0: got reset after 0 iterations
Jun  6 14:03:53 caravella kernel: digi0: got memory after 0 iterations
Jun  6 14:03:53 caravella kernel: digi0: short memory test
Jun  6 14:03:53 caravella kernel: digi0: 1st memory test failed
Jun  6 14:03:53 caravella kernel: device_attach: digi0 attach returned 6
Jun  6 14:03:53 caravella kernel: digi1: probing on isa bus
Jun  6 14:03:53 caravella kernel: digi1: 0x061: Invalid i/o address
помоему тож самое може :(

Re: device digi

Добавлено: 2008-06-06 14:10:41
paradox
а это?
кстати это уже можно на баг репорт в bsd отправлять
как минимум должно быть так
а дальше нужно еще смотреть

Код: Выделить всё

-        if (sc->model != PCXI) {
-                t = (sc->pmem >> 8) & 0xffe0;
-                if (sc->model == PCXEVE)
-                        t |= 0x10;              /* enable windowing */
-                outb(sc->port + 2, t & 0xff);
-                outb(sc->port + 3, t >> 8);
-        }

        if (sc->model == PCXI || sc->model == PCXE) {
               outb(sc->port, FEPRST | FEPMEM);
                for (i = 0; (inb(sc->port) & FEPMASK) != FEPRST; i++) {
                        if (i == hz / 10) {
                                device_printf(dev,
                                    "memory reservation failed (0x%02x)\n",
                                    inb(sc->port));
                                sc->hidewin(sc);
                                goto failed;
                        }
                        digi_delay(sc, "digirst2", 1);
                }
                DLOG(DIGIDB_INIT, (sc->dev, "got memory after %d iterations\n",
                    i));
        }

+        if (sc->model != PCXI) {
+                t = (sc->pmem >> 8) & 0xffe0;
+                if (sc->model == PCXEVE)
+                        t |= 0x10;              /* enable windowing */
+                outb(sc->port + 2, t & 0xff);
+                outb(sc->port + 3, t >> 8);
+        }

        DLOG(DIGIDB_INIT, (sc->dev, "short memory test\n"));
        ptr = sc->setwin(sc, BOTWIN);
        vD(ptr) = 0xA55A3CC3;
        if (vD(ptr) != 0xA55A3CC3) {
                device_printf(dev, "1st memory test failed\n");
                sc->hidewin(sc);
                goto failed;
        }
        DLOG(DIGIDB_INIT, (sc->dev, "1st memory test ok\n"));

Re: device digi

Добавлено: 2008-06-06 14:19:26
theBas

Код: Выделить всё

Jun  6 14:17:08 caravella kernel: digi0: probing on isa bus
Jun  6 14:17:08 caravella kernel: digi0: isa? port 0x220 mem 0xd0000
Jun  6 14:17:08 caravella kernel: digi0: got reset after 1 iterations
Jun  6 14:17:08 caravella kernel: digi0: board type is 0x4
Jun  6 14:17:08 caravella kernel: digi0: Probe returns -10
Jun  6 14:17:08 caravella kernel: digi0: probing on isa bus
Jun  6 14:17:08 caravella kernel: digi0: isa? port 0x220 mem 0xd0000
Jun  6 14:17:08 caravella kernel: digi0: got reset after 1 iterations
Jun  6 14:17:08 caravella kernel: digi0: board type is 0x4
Jun  6 14:17:08 caravella kernel: digi0: Probe returns -10
Jun  6 14:17:08 caravella kernel: digi0 at port 0x220-0x223 iomem 0xd0000-0xdfff
Jun  6 14:17:08 caravella kernel: digi0: attaching
Jun  6 14:17:08 caravella kernel: digi0: Checking card type
Jun  6 14:17:08 caravella kernel: digi0: got reset after 1 iterations
Jun  6 14:17:08 caravella kernel: digi0: board type is 0x4
Jun  6 14:17:08 caravella kernel: digi0: internal memory segment 0xf000
Jun  6 14:17:08 caravella kernel: digi0: got reset after 0 iterations
Jun  6 14:17:08 caravella kernel: digi0: memory reservation failed (0x06)
Jun  6 14:17:08 caravella kernel: device_attach: digi0 attach returned 6
Jun  6 14:17:08 caravella kernel: digi1: probing on isa bus
Jun  6 14:17:08 caravella kernel: digi1: 0x061: Invalid i/o address
Вернулись к началу :(

Re: device digi

Добавлено: 2008-06-06 14:22:31
paradox
предыдущий патч плюс это

Код: Выделить всё

       if (sc->model == PCXI || sc->model == PCXE) {
-               outb(sc->port, FEPRST | FEPMEM);
                for (i = 0; (inb(sc->port) & FEPMASK) != FEPRST; i++) {

хм