2.2.1[34]: /dev/ttyS1 affects /dev/ttyS0

Michael Kwasigroch 04040171873-0001 en t-online.de
Vie Ene 21 07:58:13 CST 2000


Hi all,

I've just encountered the following with kernel 2.2.13 and 2.2.14...

I'm on a SuSE 6.1 (glibc 2.0 based) dual P133 (430HX) box.

Evertime a small application of mine opens /dev/ttyS1 the mouse being
connected to /dev/ttyS0 freezes under X. If I terminate the application
the mouse is usable again.

My application does the following (error handling is omitted here):
   int port_fd;
   struct termios port_mode;
   port_fd = open( "/dev/ttyS1", O_RDWR | O_SYNC );
   fcntl( port_fd, F_SETFD, 1l ); /* close on exec */
   tcgetattr( port_fd, &port_mode ); /* get port mode */
   cfsetispeed( &port_mode, B4800 ); /* set 4800 bps RX */
   cfsetospeed( &port_mode, B4800 ); /* set 4800 bps TX */
   tcsetattr( port_fd, TCSANOW, &port_mode ); /* set port mode */

What am I missing?

Please let me know if you need more information and please cc me since
I'm not
subscribed to this list. TIA.

Any help/pointer etc. is highly appreciated.

Best regards

Michael Kwasigroch

P.S.: My 'dmesg' output:
: 2
mapped APIC to ffffe000 (fee00000)
mapped IOAPIC to ffffd000 (fec00000)
Detected 132883243 Hz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 53.04 BogoMIPS
Memory: 95680k/98304k available (944k kernel code, 416k reserved, 1220k
data, 44k init)
Dentry hash table entries: 16384 (order 5, 128k)
Buffer cache hash table entries: 131072 (order 7, 512k)
Page cache hash table entries: 32768 (order 5, 128k)
Checking 386/387 coupling... OK, FPU using exception 16 error reporting.

Checking 'hlt' instruction... OK.
Intel Pentium with F0 0F bug - workaround enabled.
POSIX conformance testing by UNIFIX
per-CPU timeslice cutoff: 1.56 usecs.
CPU0: Intel Pentium 75 - 200 stepping 0c
calibrating APIC timer ...
.... CPU clock speed is 132.8901 MHz.
.... system bus clock speed is 66.4449 MHz.
Booting processor 1 eip 2000
Calibrating delay loop... 53.04 BogoMIPS
OK.
CPU1: Intel Pentium 75 - 200 stepping 0c
Total of 2 processors activated (106.09 BogoMIPS).
enabling symmetric IO mode... ...done.
ENABLING IO-APIC IRQs
init IO_APIC IRQs
 IO-APIC (apicid-pin) 2-0, 2-20, 2-21, 2-22, 2-23 not connected.
number of MP IRQ sources: 21.
number of IO-APIC #2 registers: 24.
testing the IO APIC.......................

IO APIC #2......
... register #00: 02000000
......    : physical APIC id: 02
... register #01: 00170011
......     : max redirection entries: 0017
......     : IO APIC version: 0011
... register #02: 00000000
......     : arbitration: 00
... IRQ redirection table:
 NR Log Phy Mask Trig IRR Pol Stat Dest Deli Vect:
 00 000 00  1    0    0   0   0    0    0    00
 01 000 00  0    0    0   0   0    1    1    59
 02 0FF 0F  0    0    0   0   0    1    1    51
 03 000 00  0    0    0   0   0    1    1    61
 04 000 00  0    0    0   0   0    1    1    69
 05 000 00  0    0    0   0   0    1    1    71
 06 000 00  0    0    0   0   0    1    1    79
 07 000 00  0    0    0   0   0    1    1    81
 08 000 00  0    0    0   0   0    1    1    89
 09 000 00  0    0    0   0   0    1    1    91
 0a 000 00  0    0    0   0   0    1    1    99
 0b 000 00  0    0    0   0   0    1    1    A1
 0c 000 00  0    0    0   0   0    1    1    A9
 0d 000 00  1    0    0   0   0    0    0    00
 0e 000 00  0    0    0   0   0    1    1    B1
 0f 000 00  0    0    0   0   0    1    1    B9
 10 0FF 0F  1    1    0   1   0    1    1    C1
 11 0FF 0F  1    1    0   1   0    1    1    C9
 12 0FF 0F  1    1    0   1   0    1    1    D1
 13 0FF 0F  1    1    0   1   0    1    1    D9
 14 000 00  1    0    0   0   0    0    0    00
 15 000 00  1    0    0   0   0    0    0    00
 16 000 00  1    0    0   0   0    0    0    00
 17 000 00  1    0    0   0   0    0    0    00
IRQ to pin mappings:
IRQ0 -> 2
IRQ1 -> 1
IRQ3 -> 3
IRQ4 -> 4
IRQ5 -> 5
IRQ6 -> 6
IRQ7 -> 7
IRQ8 -> 8
IRQ9 -> 9
IRQ10 -> 10
IRQ11 -> 11
IRQ12 -> 12
IRQ13 -> 13
IRQ14 -> 14
IRQ15 -> 15
IRQ16 -> 16
IRQ17 -> 17
IRQ18 -> 18
IRQ19 -> 19
................................... done.
PCI: PCI BIOS revision 2.10 entry at 0xfb420
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI->APIC IRQ transform: (B0,I17,P0) -> 19
PCI->APIC IRQ transform: (B0,I20,P0) -> 16
Linux NET4.0 for Linux 2.2
Based upon Swansea University Computer Society NET3.039
NET4: Unix domain sockets 1.0 for Linux NET4.0.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
TCP: Hash tables configured (ehash 131072 bhash 65536)
Initializing RT netlink socket
Starting kswapd v 1.5
Serial driver version 4.27 with no serial options enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
pty: 256 Unix98 ptys configured
Real Time Clock Driver v1.09
Floppy drive(s): fd0 is 1.44M, fd1 is 1.2M
FDC 0 is a post-1991 82077
(scsi0) <Adaptec AHA-294X SCSI host adapter> found at PCI 20/0
(scsi0) Narrow Channel, SCSI ID=7, 16/255 SCBs
(scsi0) Downloading sequencer code... 406 instructions downloaded
scsi0 : Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI) 5.1.21/3.2.4
       <Adaptec AHA-294X SCSI host adapter>
scsi : 1 host.
(scsi0:0:0:0) Synchronous at 10.0 Mbyte/sec, offset 15.
  Vendor: IBM       Model: DORS-32160        Rev: WA6A
  Type:   Direct-Access                      ANSI SCSI revision: 02
Detected scsi disk sda at scsi0, channel 0, id 0, lun 0
(scsi0:0:1:0) Synchronous at 10.0 Mbyte/sec, offset 15.
  Vendor: IBM       Model: DCAS-34330        Rev: S65A
  Type:   Direct-Access                      ANSI SCSI revision: 02
Detected scsi disk sdb at scsi0, channel 0, id 1, lun 0
(scsi0:0:2:0) Synchronous at 10.0 Mbyte/sec, offset 15.
  Vendor: PIONEER   Model: CD-ROM DR-U12X    Rev: 1.06
  Type:   CD-ROM                             ANSI SCSI revision: 02
Detected scsi CD-ROM sr0 at scsi0, channel 0, id 2, lun 0
  Vendor: IOMEGA    Model: ZIP 100           Rev: J.02
  Type:   Direct-Access                      ANSI SCSI revision: 02
Detected scsi removable disk sdc at scsi0, channel 0, id 5, lun 0
scsi : detected 1 SCSI cdrom 3 SCSI disks total.
sr0: scsi3-mmc drive: 12x/12x xa/form2 cdda tray
Uniform CDROM driver Revision: 2.56
SCSI device sda: hdwr sector= 512 bytes. Sectors= 4226725 [2063 MB] [2.1
GB]
SCSI device sdb: hdwr sector= 512 bytes. Sectors= 8467200 [4134 MB] [4.1
GB]
sdc : READ CAPACITY failed.
sdc : status = 1, message = 00, host = 0, driver = 28
sdc : extended sense code = 2
sdc : block size assumed to be 512 bytes, disk size 1GB.
Partition check:
 sda: sda1 sda2 sda3
 sdb: sdb1 sdb2 < sdb5 sdb6 >
 sdc:scsidisk I/O error: dev 08:20, sector 0
 unable to read partition table
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 44k freed
Adding Swap: 88320k swap-space (priority -1)
ISDN subsystem Rev: 1.93/1.80/1.95/1.60/none/1.3 loaded
HiSax: Linux Driver for passive ISDN cards
HiSax: Version 3.3c (module)
HiSax: Layer1 Revision 2.36
HiSax: Layer2 Revision 2.20
HiSax: TeiMgr Revision 2.13
HiSax: Layer3 Revision 2.10
HiSax: LinkLayer Revision 2.40
HiSax: Approval certification valid
HiSax: Approved with ELSA Quickstep series cards
HiSax: Approval registration numbers:
HiSax: German D133361J CETECOM ICT Services GmbH
HiSax: EU (D133362J) CETECOM ICT Services GmbH
HiSax: Approved with Eicon Technology Diva 2.01 PCI cards
HiSax: Total 1 card defined
HiSax: Card 1 Protocol EDSS1 Id=HiSax (0)
HiSax: AVM driver Rev. 2.11
AVM A1: Byte at 1b00 is 7
AVM A1: Byte at 1b03 is 3
AVM A1: Byte at 1b02 is 2
AVM A1: Byte at 1b00 is 3
HiSax: AVM A1 config irq:5 cfg:0x1B00
HiSax: isac:0x1700/0x1300
HiSax: hscx A:0x700/0x300  hscx B:0xF00/0xB00
AVM A1: ISAC version (0): 2086/2186 V1.1
AVM A1: HSCX version A: V2.1  B: V2.1
AVM A1: IRQ 5 count 0
AVM A1: IRQ 5 count 1
HiSax: DSS1 Rev. 2.21
HiSax: 2 channels added
HiSax: MAX_WAITING_CALLS added
HiSax: debugging flags card 1 set to 4
isdn: Verbose-Level is 3
ippp, open, slot: 0, minor: 0, state: 0000
ippp_ccp: allocated reset data structure c469e000
Device not ready.  Make sure there is a disc in the drive.
VFS: Disk change detected on device sd(8,33)
sdc : READ CAPACITY failed.
sdc : status = 1, message = 00, host = 0, driver = 28
sdc : extended sense code = 2
sdc : block size assumed to be 512 bytes, disk size 1GB.
 sdc:scsidisk I/O error: dev 08:20, sector 0
 unable to read partition table
Device not ready.  Make sure there is a disc in the drive.
VFS: Disk change detected on device sd(8,33)
sdc : READ CAPACITY failed.
sdc : status = 1, message = 00, host = 0, driver = 28
sdc : extended sense code = 2
sdc : block size assumed to be 512 bytes, disk size 1GB.
 sdc:scsidisk I/O error: dev 08:20, sector 0
 unable to read partition table

P.P.S.: Some sytem info from /proc:

/proc/tty/drivers:
isdn_tty             /dev/cui       44    0-63 serial:callout
isdn_tty             /dev/ttyI      43    0-63 serial
pty_slave            /dev/pts      136   0-255 pty:slave
pty_master           /dev/ptm      128   0-255 pty:master
pty_slave            /dev/ttyp       3   0-255 pty:slave
pty_master           /dev/pty        2   0-255 pty:master
serial               /dev/cua        5   64-67 serial:callout
serial               /dev/ttyS       4   64-67 serial
/dev/tty0            /dev/tty0       4       0 system:vtmaster
/dev/ptmx            /dev/ptmx       5       2 system
/dev/console         /dev/console    5       1 system:console
/dev/tty             /dev/tty        5       0 system:/dev/tty
unknown              /dev/tty        4    1-63 console

/proc/tty/driver/serial:
serinfo:1.0 driver:4.27
0: uart:16550A port:3F8 irq:0 baud:1200 tx:0 rx:18142 RTS|DTR|DSR
1: uart:16550A port:2F8 irq:0 baud:9600 tx:0 rx:0
2: uart:unknown port:3E8 irq:4
3: uart:unknown port:2E8 irq:3


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



Más información sobre la lista de distribución Ayuda