Determine if card is in 32 or 64 bit PCI slot?

Determine if card is in 32 or 64 bit PCI slot?

Post by Alan Co » Fri, 10 Aug 2001 06:00:10



Quote:> I have a 64 bit PCI card which will work in either a 32 bit or 64 bit
> PCI slot.

> I'd like to make the driver autodetect which kind of slot the card is
> in and set the dma_mask correctly, but I can't seem to figure out how to
> do this.

Are you sure the card actually needs this. Most such cards support dual address
cycle, so when placed in a 32bit slot  will still do 64bit DMA
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
 
 
 

Determine if card is in 32 or 64 bit PCI slot?

Post by David Floo » Sat, 11 Aug 2001 03:50:09


Hello all,

Someplace between ac7 and ac10 the changes cause my cdrom to disappear from
the bios scan on reboot.  Here's the details:

I have two HD's and one cdrom.  With ac7 it is found by the bios during
reboot and shows up as found on the screen.  With ac10 the bios detects the
two hd's but gives an error on the cdrom until the power is cycled
(reset button doesn't fix it).  The cdrom driver is compiled as a module
and mounting a cdrom in the drive before doing a reboot fixes the problem.

I have checked the kernel output during the two different boots in
/var/log/messages for diferences and found none.

Here's the edited output from /var/log/messages and my .config  I have to
use noautotune to keep from getting timeout errors on these drives.  This
started happening with 2.4.7 no ac.

*****************************
ac7
*****************************
Aug  7 07:59:13 ruth syslogd 1.4-0: restart.
Aug  7 07:59:14: Linux version 2.4.7-ac7 (root@ruth) (gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-85)) #1 Tue Aug 7 05:54:16 PDT 2001
Aug  7 07:59:14: Kernel command line: auto BOOT_IMAGE=linux ro root=304 BOOT_FILE=/boot/vmlinuz pci=biosirq ide0=noautotune ide1=noautotune
Aug  7 07:59:14: ide_setup: ide0=noautotune
Aug  7 07:59:14: ide_setup: ide1=noautotune
Aug  7 07:59:14: ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Aug  7 07:59:14: SIS5513: IDE controller on PCI bus 00 dev 09
Aug  7 07:59:14: PCI: Assigned IRQ 10 for device 00:01.1
Aug  7 07:59:14: SIS5513: chipset revision 208
Aug  7 07:59:14: SIS5513: not 100%% native mode: will probe irqs later
Aug  7 07:59:14: SiS5597
Aug  7 07:59:14:     ide0: BM-DMA at 0x4000-0x4007, BIOS settings: hda:pio, hdb:pio
Aug  7 07:59:14:     ide1: BM-DMA at 0x4008-0x400f, BIOS settings: hdc:pio, hdd:pio
Aug  7 07:59:14: hda: ST313021A, ATA DISK drive
Aug  7 07:59:14: hdb: Maxtor 91024U2, ATA DISK drive
Aug  7 07:59:14: hdc: ATAPI CDROM, ATAPI CD/DVD-ROM drive
Aug  7 07:59:14: ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Aug  7 07:59:14: ide1 at 0x170-0x177,0x376 on irq 15
Aug  7 07:59:14: hda: 25434228 sectors (13022 MB) w/512KiB Cache, CHS=1583/255/63
Aug  7 07:59:14: hdb: 19941264 sectors (10210 MB) w/2048KiB Cache, CHS=1241/255/63
Aug  7 07:59:14: Partition check:
Aug  7 07:59:14:  hda: hda1 hda2 < hda5 hda6 > hda3 hda4
Aug  7 07:59:14:  hdb: hdb1 hdb2 < hdb5 hdb6 > hdb3 hdb4

*****************************
ac10
*****************************

Aug  8 23:24:15 ruth syslogd 1.4-0: restart.
Aug  8 23:24:16: Linux version 2.4.7-ac10 (root@ruth) (gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-85)) #1 Wed Aug 8 21:28:49 PDT 2001
Aug  8 23:24:16: Kernel command line: auto BOOT_IMAGE=linux ro root=304 BOOT_FILE=/boot/vmlinuz pci=biosirq ide0=noautotune ide1=noautotune
Aug  8 23:24:16: ide_setup: ide0=noautotune
Aug  8 23:24:16: ide_setup: ide1=noautotune
Aug  8 23:24:17: ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Aug  8 23:24:17 ruth keytable: Loading keymap:
Aug  8 23:24:17: SIS5513: IDE controller on PCI bus 00 dev 09
Aug  8 23:24:17: PCI: Assigned IRQ 10 for device 00:01.1
Aug  8 23:24:17: SIS5513: chipset revision 208
Aug  8 23:24:17: SIS5513: not 100%% native mode: will probe irqs later
Aug  8 23:24:17:     ide0: BM-DMA at 0x4000-0x4007, BIOS settings: hda:pio, hdb:pio
Aug  8 23:24:17:     ide1: BM-DMA at 0x4008-0x400f, BIOS settings: hdc:pio, hdd:pio
Aug  8 23:24:17: hda: ST313021A, ATA DISK drive
Aug  8 23:24:17: hdb: Maxtor 91024U2, ATA DISK drive
Aug  8 23:24:17: hdc: ATAPI CDROM, ATAPI CD/DVD-ROM drive
Aug  8 23:24:17: ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Aug  8 23:24:17: ide1 at 0x170-0x177,0x376 on irq 15

#
# Automatically generated by make menuconfig: don't edit
#
CONFIG_X86=y
CONFIG_ISA=y
# CONFIG_SBUS is not set
CONFIG_UID16=y

#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y

#
# Loadable module support
#
CONFIG_MODULES=y
CONFIG_MODVERSIONS=y
CONFIG_KMOD=y

#
# Processor type and features
#
# CONFIG_M386 is not set
# CONFIG_M486 is not set
CONFIG_M586=y
# CONFIG_M586TSC is not set
# CONFIG_M586MMX is not set
# CONFIG_M686 is not set
# CONFIG_MPENTIUMIII is not set
# CONFIG_MPENTIUM4 is not set
# CONFIG_MK6 is not set
# CONFIG_MK7 is not set
# CONFIG_MCRUSOE is not set
# CONFIG_MWINCHIPC6 is not set
# CONFIG_MWINCHIP2 is not set
# CONFIG_MWINCHIP3D is not set
# CONFIG_MCYRIXIII is not set
CONFIG_X86_WP_WORKS_OK=y
CONFIG_X86_INVLPG=y
CONFIG_X86_CMPXCHG=y
CONFIG_X86_XADD=y
CONFIG_X86_BSWAP=y
CONFIG_X86_POPAD_OK=y
# CONFIG_RWSEM_GENERIC_SPINLOCK is not set
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_X86_L1_CACHE_SHIFT=5
CONFIG_X86_USE_STRING_486=y
CONFIG_X86_ALIGNMENT_16=y
# CONFIG_TOSHIBA is not set
# CONFIG_MICROCODE is not set
CONFIG_X86_MSR=y
CONFIG_X86_CPUID=y
CONFIG_NOHIGHMEM=y
# CONFIG_HIGHMEM4G is not set
# CONFIG_HIGHMEM64G is not set
# CONFIG_MATH_EMULATION is not set
# CONFIG_MTRR is not set
# CONFIG_SMP is not set
# CONFIG_X86_UP_APIC is not set
# CONFIG_X86_UP_IOAPIC is not set

#
# General setup
#
CONFIG_NET=y
# CONFIG_VISWS is not set
CONFIG_PCI=y
# CONFIG_PCI_GOBIOS is not set
# CONFIG_PCI_GODIRECT is not set
CONFIG_PCI_GOANY=y
CONFIG_PCI_BIOS=y
CONFIG_PCI_DIRECT=y
CONFIG_PCI_NAMES=y
# CONFIG_EISA is not set
# CONFIG_MCA is not set
CONFIG_HOTPLUG=y

#
# PCMCIA/CardBus support
#
# CONFIG_PCMCIA is not set
CONFIG_SYSVIPC=y
# CONFIG_BSD_PROCESS_ACCT is not set
CONFIG_SYSCTL=y
CONFIG_KCORE_ELF=y
# CONFIG_KCORE_AOUT is not set
CONFIG_BINFMT_AOUT=m
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_MISC=m
CONFIG_PM=y
# CONFIG_ACPI is not set
CONFIG_APM=y
CONFIG_APM_IGNORE_USER_SUSPEND=y
CONFIG_APM_DO_ENABLE=y
CONFIG_APM_CPU_IDLE=y
# CONFIG_APM_DISPLAY_BLANK is not set
# CONFIG_APM_RTC_IS_GMT is not set
# CONFIG_APM_ALLOW_INTS is not set
# CONFIG_APM_REAL_MODE_POWER_OFF is not set

#
# Memory Technology Devices (MTD)
#
# CONFIG_MTD is not set

#
# Parallel port support
#
CONFIG_PARPORT=m
CONFIG_PARPORT_PC=m
CONFIG_PARPORT_PC_CML1=m
CONFIG_PARPORT_SERIAL=m
CONFIG_PARPORT_PC_FIFO=y
CONFIG_PARPORT_PC_SUPERIO=y
# CONFIG_PARPORT_AMIGA is not set
# CONFIG_PARPORT_MFC3 is not set
# CONFIG_PARPORT_ATARI is not set
# CONFIG_PARPORT_GSC is not set
# CONFIG_PARPORT_SUNBPP is not set
CONFIG_PARPORT_OTHER=y
CONFIG_PARPORT_1284=y

#
# Plug and Play configuration
#
CONFIG_PNP=y
CONFIG_ISAPNP=y
CONFIG_PNPBIOS=y

#
# Block devices
#
CONFIG_BLK_DEV_FD=y
# CONFIG_BLK_DEV_XD is not set
# CONFIG_PARIDE is not set
# CONFIG_BLK_CPQ_DA is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
CONFIG_BLK_DEV_LOOP=m
CONFIG_BLK_DEV_NBD=m
# CONFIG_BLK_DEV_RAM is not set
# CONFIG_BLK_DEV_INITRD is not set

#
# Multi-device support (RAID and LVM)
#
# CONFIG_MD is not set
# CONFIG_BLK_DEV_MD is not set
# CONFIG_MD_LINEAR is not set
# CONFIG_MD_RAID0 is not set
# CONFIG_MD_RAID1 is not set
# CONFIG_MD_RAID5 is not set
# CONFIG_BLK_DEV_LVM is not set

#
# Networking options
#
CONFIG_PACKET=y
CONFIG_PACKET_MMAP=y
# CONFIG_NETLINK is not set
# CONFIG_NETFILTER is not set
# CONFIG_FILTER is not set
CONFIG_UNIX=y
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
# CONFIG_IP_ADVANCED_ROUTER is not set
# CONFIG_IP_PNP is not set
CONFIG_NET_IPIP=m
# CONFIG_NET_IPGRE is not set
# CONFIG_IP_MROUTE is not set
# CONFIG_INET_ECN is not set
# CONFIG_SYN_COOKIES is not set
# CONFIG_IPV6 is not set
# CONFIG_KHTTPD is not set
# CONFIG_ATM is not set
# CONFIG_IPX is not set
# CONFIG_ATALK is not set
# CONFIG_DECNET is not set
# CONFIG_BRIDGE is not set
CONFIG_X25=m
CONFIG_LAPB=m
CONFIG_LLC=y
# CONFIG_NET_DIVERT is not set
# CONFIG_ECONET is not set
CONFIG_WAN_ROUTER=m
# CONFIG_NET_FASTROUTE is not set
# CONFIG_NET_HW_FLOWCONTROL is not set

#
# QoS and/or fair queueing
#
# CONFIG_NET_SCHED is not set

#
# Telephony Support
#
# CONFIG_PHONE is not set
# CONFIG_PHONE_IXJ is not set

#
# ATA/IDE/MFM/RLL support
#
CONFIG_IDE=y

#
# IDE, ATA and ATAPI Block devices
#
CONFIG_BLK_DEV_IDE=y
# CONFIG_BLK_DEV_HD_IDE is not set
# CONFIG_BLK_DEV_HD is not set
CONFIG_BLK_DEV_IDEDISK=y
# CONFIG_IDEDISK_MULTI_MODE is not set
# CONFIG_BLK_DEV_IDEDISK_VENDOR is not set
# CONFIG_BLK_DEV_IDEDISK_FUJITSU is not set
# CONFIG_BLK_DEV_IDEDISK_IBM is not set
# CONFIG_BLK_DEV_IDEDISK_MAXTOR is not set
# CONFIG_BLK_DEV_IDEDISK_QUANTUM is not set
# CONFIG_BLK_DEV_IDEDISK_SEAGATE is not set
# CONFIG_BLK_DEV_IDEDISK_WD is not set
# CONFIG_BLK_DEV_COMMERIAL is not set
# CONFIG_BLK_DEV_TIVO is not set
# CONFIG_BLK_DEV_IDECS is not set
CONFIG_BLK_DEV_IDECD=m
# CONFIG_BLK_DEV_IDETAPE is not set
# CONFIG_BLK_DEV_IDEFLOPPY is not set
# CONFIG_BLK_DEV_IDESCSI is not set
# CONFIG_BLK_DEV_CMD640 is not set
# CONFIG_BLK_DEV_CMD640_ENHANCED is not set
# CONFIG_BLK_DEV_ISAPNP is not set
# CONFIG_BLK_DEV_RZ1000 is not set
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
CONFIG_BLK_DEV_ADMA=y
# CONFIG_BLK_DEV_OFFBOARD is not set
CONFIG_IDEDMA_PCI_AUTO=y
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_PCI_WIP is not set
# CONFIG_IDEDMA_NEW_DRIVE_LISTINGS is not set
# CONFIG_BLK_DEV_AEC62XX is not set
# CONFIG_AEC62XX_TUNING is not set
# CONFIG_BLK_DEV_ALI15X3 is not set
# CONFIG_WDC_ALI15X3 is not set
# CONFIG_BLK_DEV_AMD74XX is not set
# CONFIG_AMD74XX_OVERRIDE is not set
# CONFIG_BLK_DEV_CMD64X is not set
# CONFIG_BLK_DEV_CY82C693 is not set
# CONFIG_BLK_DEV_CS5530 is not set
# CONFIG_BLK_DEV_HPT34X is not set
# CONFIG_HPT34X_AUTODMA is not set
# CONFIG_BLK_DEV_HPT366 is not set
# CONFIG_BLK_DEV_PIIX is not set
# CONFIG_PIIX_TUNING is not set
# CONFIG_BLK_DEV_NS87415 is not set
# CONFIG_BLK_DEV_OPTI621 is not set
# CONFIG_BLK_DEV_PDC202XX is not set
# CONFIG_PDC202XX_BURST is not set
# CONFIG_PDC202XX_FORCE is not set
# CONFIG_BLK_DEV_SVWKS is not set
# CONFIG_BLK_DEV_SIS5513 is not set
# CONFIG_BLK_DEV_SLC90E66 is not set
# CONFIG_BLK_DEV_TRM290 is not set
# CONFIG_BLK_DEV_VIA82CXXX is not set
# CONFIG_IDE_CHIPSETS is not set
CONFIG_IDEDMA_AUTO=y
# CONFIG_IDEDMA_IVB is not set
# CONFIG_DMA_NONPCI is not set
# CONFIG_BLK_DEV_IDE_MODES is not set
# CONFIG_BLK_DEV_ATARAID is ...

read more »

 
 
 

Determine if card is in 32 or 64 bit PCI slot?

Post by Jes Sorense » Thu, 16 Aug 2001 03:50:06




>> Are you sure the card actually needs this. Most such cards support
>> dual address cycle, so when placed in a 32bit slot will still do
>> 64bit DMA

Johannes> No I don't know if it's needed. I had no idea that PCI could
Johannes> do that.

Johannes> Is dual address cycle mandated by the PCI specs?

According to the PCI spec "The master is required in all cases to use
two clocks to communicate a 64-bit address, since the width of a
target's bus is not known during the address phase."

Aka, the answer to your question is yes.

Jes
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

Determine if card is in 32 or 64 bit PCI slot?

Post by Johannes Erdfel » Thu, 16 Aug 2001 04:20:10






> >> Are you sure the card actually needs this. Most such cards support
> >> dual address cycle, so when placed in a 32bit slot will still do
> >> 64bit DMA

> Johannes> No I don't know if it's needed. I had no idea that PCI could
> Johannes> do that.

> Johannes> Is dual address cycle mandated by the PCI specs?

> According to the PCI spec "The master is required in all cases to use
> two clocks to communicate a 64-bit address, since the width of a
> target's bus is not known during the address phase."

> Aka, the answer to your question is yes.

Ahh, excellent. Thank you very much.

JE

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. Best Build machine: KT333 w/ 32 bit PCI or KT266 w/ 64 bit pci

Hi,

I want to build a machine for compiling. I'm looking for a motherboard
with a KT333 chip set and 2, 64 bit PCI slots for a caching SCSI RAID
controller and a 2 GB NIC. Our make files and compiler won't take
advantage of dual processors. The only motherboards I have found with 64
bit PCI slots have slow KT266 or 760 chip sets.

Would it be faster to go with

   * Gigabyte GA-7VRXP or ABit AT7 or Asus A7V333
   * Athlon XP Thoroughbred 2200+ overclocked to the max (what is max?)
   * KT333 chip set
   * 1.5 GB Corsair PC3000, CAS 2, 370 MHz DDR
   * 32 bit, 33 MHz PCI
   * Adaptec SCSI RAID 2100S w/ 128 MB cache, RAID 0
   * 4, Cheetah X15, 73 GB, 8 MB cache on RAID
   * One Cheetah X15 for Linux, one for swap on other SCSI channel
   * Water cooled CPU

or

   * Tyan Thunder K7X or Asus A7M266-D
   * Dual Athlon MP 2100+ Palamino slightly overclocked
   * AMD-760 MPX or KT266 chip set
   * 2 GB Corsair PC2100, CAS 2.5, 266 MHz DDR
   * 64 bit, 66 MHz  PCI
   * Adaptec SCSI RAID 3210S w/ 256 MB cache, RAID 0
   * 4, Cheetah X15, 73 GB, 8 MB cache on RAID
   * One Cheetah X15 for Linux, one for swap on other SCSI channel
   * Water cooled CPU

The system will be paid for with company dollars so price is no object.

The compiler, linker, libraries, source, objects and temp objects will
all fit in 1.5 GB for a single build. The time to load 300 MB into RAM
for 32 bit, 33 MHz at 132 MB/sec is 2.3 seconds and I think that 4
Cheetah X15s will keep the PCI bus saturated. With 64 Bit and 66 MHz, it
would be about 1/2 second. I think that the compile and link time will
dwarf the loading time. We currently have 30 minute builds with dual P4,
1.4 GHz and slow, 10k RPM, NAS disks (and many users) and I am shooting
for 10 minutes or less.

I really only need to do a single build at a time and the most time
consuming part of the build is the link which is extremely CPU and
memory intensive. Assuming near zero swapping, and the inability to
efficiently make use of dual processors, how much faster will the faster
cpu/chip/memory system be than the other?

How far can you overclock the Thoroughbred XP or the Palamino MP with
the same water cooling system?

How fast would a P4 2.4 GHz be compared to the XP Thoroughbred 2200+
overclocked to ~2400+ for compiling and linking?

I want a dragster. Best Motherboard? Any brilliant ideas appreciated!

    Brian

2. ipchains and firewall

3. host mastered 64 bit wide transfers to 64 bit PCI slot?

4. cookies problem

5. SunPCI card in 32 vs. 64 PCI slot

6. Need help with scsi disk !!!!!!

7. How to determine 32 bit and 64 bit machine

8. dsl home network with two nics, help

9. Determining whether 64-bit or 32-bit kernel is running?

10. code to determine 64-bit vs 32-bit binaries?

11. Solaris 9 installed with 32 & 64 bit supports but boots in 32 bit mode

12. performance of runing 32/64 bit program in 64 bit kernel.

13. Q: determining 32 or 64 bit Solaris