Re: semaphores and noatomic flag
whould it be possible to use pthread semaphore/mutex/cond_var on shared-via-mmap() chunks of memory instead ? regards -- +--+ |Rossetti Davide INFN - Sezione Roma I - gruppo V, prog. APEmille| | web: http://apegate.roma1.infn.it/~rossetti | |" E-mail : [EMAIL PROTECTED] | ||o o| phone : (+39)-06-49914412 | |--o00O-O00o-- fax: (+39)-06-49914423 (+39)-06-4957697 | | address: Dipartimento di Fisica (V.E.) | | Universita' di Roma "La Sapienza" | | P.le Aldo Moro,5 I - 00185 Roma - Italy| | gnupg pub. key: http://apegate.roma1.infn.it/~rossetti/gnupg.txt| | | |"Outside of a dog,a book is a man's best friend. Inside of a dog, | | it's too dark to read." - Groucho Marx | +--+ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: semaphores and noatomic flag
whould it be possible to use pthread semaphore/mutex/cond_var on shared-via-mmap() chunks of memory instead ? regards -- +--+ |Rossetti Davide INFN - Sezione Roma I - gruppo V, prog. APEmille| | web: http://apegate.roma1.infn.it/~rossetti | | E-mail : [EMAIL PROTECTED] | ||o o| phone : (+39)-06-49914412 | |--o00O-O00o-- fax: (+39)-06-49914423 (+39)-06-4957697 | | address: Dipartimento di Fisica (V.E.) | | Universita' di Roma La Sapienza | | P.le Aldo Moro,5 I - 00185 Roma - Italy| | gnupg pub. key: http://apegate.roma1.infn.it/~rossetti/gnupg.txt| | | |Outside of a dog,a book is a man's best friend. Inside of a dog, | | it's too dark to read. - Groucho Marx | +--+ - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: Linux 2.2.19pre16 - ip auto config problem
On Fri, 9 Mar 2001, davide.rossetti wrote: > Hi folks, > after a long time, I tried to upgrade the kernel I use to boot some > diskless PIII Katmai, C-PCI hosts (attached lspci -vv) with DEC ethernet > chips. sorry. forgot to attach the pci dev dump. regards -- +--+ |Rossetti Davide INFN - Sezione Roma I - gruppo V, prog. APEmille| | web: http://apegate.roma1.infn.it/~rossetti | |""""" E-mail : [EMAIL PROTECTED] | ||o o| phone : (+39)-06-49914412 | |--o00O-O00o-- fax: (+39)-06-49914423 (+39)-06-4957697 | | address: Dipartimento di Fisica (V.E.) | | Universita' di Roma "La Sapienza" | | P.le Aldo Moro,5 I - 00185 Roma - Italy| | gnupg pub. key: http://apegate.roma1.infn.it/~rossetti/gnupg.txt| | | |"Outside of a dog,a book is a man's best friend. Inside of a dog, | | it's too dark to read." - Groucho Marx | +--+ 00:00.0 Host bridge: Intel Corporation 440BX/ZX - 82443BX/ZX Host bridge (rev 02) Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- 00:01.0 PCI bridge: Intel Corporation 440BX/ZX - 82443BX/ZX AGP bridge (rev 02) (prog-if 00 [Normal decode]) Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap- 66Mhz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- Reset- FastB2B+ 00:05.0 Ethernet controller: Digital Equipment Corporation DECchip 21142/43 (rev 41) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- Reset- FastB2B- Capabilities: [dc] Power Management version 1 Flags: PMEClk- DSI- D1- D2- AuxCurrent=220mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- Bridge: PM- B3+ 00:0c.0 PCI bridge: Digital Equipment Corporation DECchip 21154 (rev 02) (prog-if 00 [Normal decode]) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- Reset- FastB2B- Capabilities: [dc] Power Management version 1 Flags: PMEClk- DSI- D1- D2- AuxCurrent=220mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- Bridge: PM- B3+ 01:00.0 VGA compatible controller: Cirrus Logic GD 5465 [Laguna] (rev 03) (prog-if 00 [VGA]) Subsystem: Cirrus Logic GD 5465 [Laguna] Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- Command: RQ=0 SBA- AGP- 64bit- FW- Rate= 02:09.0 IRDA controller: Unknown device : (rev 01) Subsystem: Technical Corp.: Unknown device abcd Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR-
Re: Linux 2.2.19pre16 - ip auto config problem
Hi folks, after a long time, I tried to upgrade the kernel I use to boot some diskless PIII Katmai, C-PCI hosts (attached lspci -vv) with DEC ethernet chips. I had trouble to use "IP auto configure" feature... It seems like it is skipped; even more, net/core/dev.c:net_dev_init() call by drivers/block/genhd.c:device_setup() is never called. I remember that: 1) the IDE hd scan was done, with no devices found (it is diskless:-) 2) the net device driver was started, and it found 2 DEC chips but a few lines later NFS root couldn't be mounted as no NFS server was set... anyway I had activated debug stuff in ipconfig.c and put a lot of printk/console_print in dev.c and none of them was displayed so I guess that code was never called actually. then I added a bunch of printk/console_print in device_setup(), especially before blk_dev_init --- #ifdef CONFIG_PARPORT parport_init(); #endif chr_dev_init(); console_print("before blk_dev_init()\n"); blk_dev_init(); sti(); #ifdef CONFIG_I2O i2o_init(); #endif #ifdef CONFIG_BLK_DEV_DAC960 DAC960_Initialize(); #endif #ifdef CONFIG_FC4_SOC /* This has to be done before scsi_dev_init */ soc_probe(); #endif #ifdef CONFIG_SCSI console_print("before scsi_dev_init()\n"); scsi_dev_init(); #endif #ifdef CONFIG_BLK_CPQ_DA cpqarray_init(); #endif #ifdef CONFIG_BLK_CPQ_CISS_DA cciss_init(); #endif #ifdef CONFIG_NET console_print("before net_dev_init()\n"); net_dev_init(); #endif (I used console_print as I was scared it could mess with irq by the sti() code...) and all of a sudded it was all ok, I got all the printk/console_print...etc. I got NFS root mounting... everything OK! hope it is useful to you. ciao -- +--+ |Rossetti Davide INFN - Sezione Roma I - gruppo V, prog. APEmille| | web: http://apegate.roma1.infn.it/~rossetti | |" E-mail : [EMAIL PROTECTED] | ||o o| phone : (+39)-06-49914412 | |--o00O-O00o-- fax: (+39)-06-49914423 (+39)-06-4957697 | | address: Dipartimento di Fisica (V.E.) | | Universita' di Roma "La Sapienza" | | P.le Aldo Moro,5 I - 00185 Roma - Italy| | gnupg pub. key: http://apegate.roma1.infn.it/~rossetti/gnupg.txt| | | |"Outside of a dog,a book is a man's best friend. Inside of a dog, | | it's too dark to read." - Groucho Marx | +--+ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: Linux 2.2.19pre16 - ip auto config problem
Hi folks, after a long time, I tried to upgrade the kernel I use to boot some diskless PIII Katmai, C-PCI hosts (attached lspci -vv) with DEC ethernet chips. I had trouble to use "IP auto configure" feature... It seems like it is skipped; even more, net/core/dev.c:net_dev_init() call by drivers/block/genhd.c:device_setup() is never called. I remember that: 1) the IDE hd scan was done, with no devices found (it is diskless:-) 2) the net device driver was started, and it found 2 DEC chips but a few lines later NFS root couldn't be mounted as no NFS server was set... anyway I had activated debug stuff in ipconfig.c and put a lot of printk/console_print in dev.c and none of them was displayed so I guess that code was never called actually. then I added a bunch of printk/console_print in device_setup(), especially before blk_dev_init --- #ifdef CONFIG_PARPORT parport_init(); #endif chr_dev_init(); console_print("before blk_dev_init()\n"); blk_dev_init(); sti(); #ifdef CONFIG_I2O i2o_init(); #endif #ifdef CONFIG_BLK_DEV_DAC960 DAC960_Initialize(); #endif #ifdef CONFIG_FC4_SOC /* This has to be done before scsi_dev_init */ soc_probe(); #endif #ifdef CONFIG_SCSI console_print("before scsi_dev_init()\n"); scsi_dev_init(); #endif #ifdef CONFIG_BLK_CPQ_DA cpqarray_init(); #endif #ifdef CONFIG_BLK_CPQ_CISS_DA cciss_init(); #endif #ifdef CONFIG_NET console_print("before net_dev_init()\n"); net_dev_init(); #endif (I used console_print as I was scared it could mess with irq by the sti() code...) and all of a sudded it was all ok, I got all the printk/console_print...etc. I got NFS root mounting... everything OK! hope it is useful to you. ciao -- +--+ |Rossetti Davide INFN - Sezione Roma I - gruppo V, prog. APEmille| | web: http://apegate.roma1.infn.it/~rossetti | |" E-mail : [EMAIL PROTECTED] | ||o o| phone : (+39)-06-49914412 | |--o00O-O00o-- fax: (+39)-06-49914423 (+39)-06-4957697 | | address: Dipartimento di Fisica (V.E.) | | Universita' di Roma "La Sapienza" | | P.le Aldo Moro,5 I - 00185 Roma - Italy| | gnupg pub. key: http://apegate.roma1.infn.it/~rossetti/gnupg.txt| | | |"Outside of a dog,a book is a man's best friend. Inside of a dog, | | it's too dark to read." - Groucho Marx | +--+ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: Linux 2.2.19pre16 - ip auto config problem
On Fri, 9 Mar 2001, davide.rossetti wrote: Hi folks, after a long time, I tried to upgrade the kernel I use to boot some diskless PIII Katmai, C-PCI hosts (attached lspci -vv) with DEC ethernet chips. sorry. forgot to attach the pci dev dump. regards -- +--+ |Rossetti Davide INFN - Sezione Roma I - gruppo V, prog. APEmille| | web: http://apegate.roma1.infn.it/~rossetti | |""""" E-mail : [EMAIL PROTECTED] | ||o o| phone : (+39)-06-49914412 | |--o00O-O00o-- fax: (+39)-06-49914423 (+39)-06-4957697 | | address: Dipartimento di Fisica (V.E.) | | Universita' di Roma "La Sapienza" | | P.le Aldo Moro,5 I - 00185 Roma - Italy| | gnupg pub. key: http://apegate.roma1.infn.it/~rossetti/gnupg.txt| | | |"Outside of a dog,a book is a man's best friend. Inside of a dog, | | it's too dark to read." - Groucho Marx | +--+ 00:00.0 Host bridge: Intel Corporation 440BX/ZX - 82443BX/ZX Host bridge (rev 02) Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium TAbort- TAbort- MAbort+ SERR- PERR- Latency: 64 Region 0: Memory at f800 (32-bit, prefetchable) Capabilities: [a0] AGP version 1.0 Status: RQ=31 SBA+ 64bit- FW- Rate=x1,x2 Command: RQ=0 SBA- AGP- 64bit- FW- Rate=none 00:01.0 PCI bridge: Intel Corporation 440BX/ZX - 82443BX/ZX AGP bridge (rev 02) (prog-if 00 [Normal decode]) Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap- 66Mhz+ UDF- FastB2B- ParErr- DEVSEL=medium TAbort- TAbort- MAbort- SERR- PERR- Latency: 128 Bus: primary=00, secondary=01, subordinate=01, sec-latency=64 Memory behind bridge: f010-f3ff BridgeCtl: Parity- SERR- NoISA+ VGA+ MAbort- Reset- FastB2B+ 00:05.0 Ethernet controller: Digital Equipment Corporation DECchip 21142/43 (rev 41) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium TAbort- TAbort- MAbort- SERR- PERR- Latency: 165 (5000ns min, 1ns max), cache line size 08 Interrupt: pin A routed to IRQ 10 Region 0: I/O ports at 1080 Region 1: Memory at f000 (32-bit, non-prefetchable) 00:06.0 Ethernet controller: Digital Equipment Corporation DECchip 21142/43 (rev 41) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium TAbort- TAbort- MAbort- SERR- PERR- Latency: 165 (5000ns min, 1ns max), cache line size 08 Interrupt: pin A routed to IRQ 5 Region 0: I/O ports at 1400 Region 1: Memory at f400 (32-bit, non-prefetchable) 00:07.0 ISA bridge: Intel Corporation 82371AB PIIX4 ISA (rev 02) Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium TAbort- TAbort- MAbort- SERR- PERR- Latency: 0 00:07.1 IDE interface: Intel Corporation 82371AB PIIX4 IDE (rev 01) (prog-if 80 [Master]) Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium TAbort- TAbort- MAbort- SERR- PERR- Latency: 64 Region 4: I/O ports at 1050 00:07.2 USB Controller: Intel Corporation 82371AB PIIX4 USB (rev 01) (prog-if 00 [UHCI]) Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium TAbort- TAbort- MAbort- SERR- PERR- Latency: 64 Interrupt: pin D routed to IRQ 9 Region 4: I/O ports at 1060 00:07.3 Bridge: Intel Corporation 82371AB PIIX4 ACPI (rev 02) Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium TAbort- TAbort- MAbort- SERR- PERR- 00:08.0 PCI bridge: Digital Equipment Corporation DECchip 21154 (rev 02) (prog-if 00 [Normal decode]) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium TAbort- TAbort- MAbort- SERR- PERR- Latency: 64, cache lin