From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 15379 invoked from network); 9 Mar 1999 20:24:41 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 9 Mar 1999 20:24:41 -0000 Received: from draal.physics.wisc.edu (mcelrath@draal.physics.wisc.edu [128.104.223.134]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id PAA29062 for ; Tue, 9 Mar 1999 15:18:11 -0500 Received: from localhost (mcelrath@localhost) by draal.physics.wisc.edu (8.8.7/8.8.7) with ESMTP id OAA02797; Tue, 9 Mar 1999 14:18:03 -0600 Date: Tue, 9 Mar 1999 14:18:03 -0600 (CST) From: Bob McElrath To: Bill Roman cc: axp-list@redhat.com Subject: Re: Sound cards on the Alpha. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 9 Mar 1999, Bill Roman wrote: > Yesterday I wrote: > > > > I've heard that the Ensoniq chip isn't fully PCI compliant -- something > > about incompletely implemented BARs (Base Address Registers, in PCI > > configuration space). This makes sense in the context of working in > > some slots and not others; it would depend on what resources were > > assigned to the card. > > > > I'll ask the person who told me this for more details. > > Here's the story I got. I was right about incompletely implemented > registers, but it wasn't the BARs. > > First, the Ensoniq 1370 only implements four bits of the PCI > configuration Interrupt Line register. The PCI-savvy have already > struck their foreheads and exclaimed "DOH!"; for those who haven't > yet made them familiar with all the details, this register is used by > the PCI configuration software to record the IRQ assigned to the card. > Of course four bits are sufficient on an obsolete computer architecture > some of us may be familiar with, but Alpha systems have more IRQs and > thus need more bits. 4 bits would only encode values 0-15, so does that imply that the es137?'s need an interrupt vector of 15 or less? On my LX164 alpha, <15 is assigned to the ISA bridge (I think...) the lowest IRQ I can get for the thing is 16... lspci -v reports: 00:06.0 Class 0401: 1274:5000 (rev 01) Subsystem: 4942:4c4c Flags: bus master, slow devsel, latency 32, IRQ 16 I/O ports at 8800 Does this mean that when the card is done playing a block, it issues an interrupt DIFFERENT than 16? I can see how that might cause a hang if the interrupt was used by a different piece of hardware. Any sane interrupt handler should handle the spurious interrupt case though, so I suspect your second "quirk" below. > What this means is that a driver that connects to an interrupt based on > information read from this register may connect to the wrong interrupt. > I confess I haven't traced this down in the source code, so I'm not sure > in detail what the implications are for Linux. Since the IRQ assigned > to the card depends on the slot it is in, this could conceivably explain > some of the slot-related problems people have reported. > > Second, both the 1370 and 1371 are incapable of handling burst > transactions as a target on the PCI bus. The way they terminate the burst > violates the PCI specification, and thus they hang the bus. On Alpha, any > quadword access to one of these chips is guaranteed to hang the system. > Multiple accesses without an intervening mb may hang the system (this > depends very much on other intervening accesses). Ugh. Now I wish I hadn't bought one of these beasts. How does one acheive quadword transactions (4*16-bit=64-bit) on the 32-bit PCI bus? If quadword transactions are being used, it must be by the DMA chip, since the driver never does any direct data transfer with the card. Looks like the fix to this will involve pouring over the PCI spec, and the DMA chip's spec. Too bad all this info isn't in the ES1370 docs. But of course, what chip manufacturer is going to put "our chip violates all known standards" right in their documentation? > Finally, there may be some difficulty with the 1371 on Tsunami-based > systems (i.e., all EV6 systems to date). This is still under > investigation. thanks for the help, -- Bob Bob McElrath (rsmcelrath@students.wisc.edu) Univ. of Wisconsin at Madison