From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ming Zhang Subject: Re: hotplug works, but newly plug not Date: Thu, 25 May 2006 12:04:12 -0400 Message-ID: <1148573052.2956.65.camel@localhost.localdomain> References: <1148484316.26093.72.camel@localhost.localdomain> <4474C737.9000600@gmail.com> <1148504987.26093.177.camel@localhost.localdomain> <1148569743.2956.51.camel@localhost.localdomain> <4475C9D6.70904@pobox.com> Reply-To: mingz@ele.uri.edu Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from orca.ele.uri.edu ([131.128.51.63]:63424 "EHLO orca.ele.uri.edu") by vger.kernel.org with ESMTP id S1030239AbWEYQFV (ORCPT ); Thu, 25 May 2006 12:05:21 -0400 In-Reply-To: <4475C9D6.70904@pobox.com> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Jeff Garzik Cc: Tejun Heo , linux-ide-list I added these 2 lines in ahci_host_init() writel(1 << i, mmio + HOST_IRQ_STAT); /* set irq mask (enables interrupts) */ writel(DEF_PORT_IRQ, port_mmio + PORT_IRQ_MASK); ~~~~~~code i added tmp = readl(port_mmio + PORT_IRQ_MASK); VPRINTK("PORT_IRQ_MASK 0x%x\n", tmp); ~~~~~~~~~~~~~ And I got this dmesg with VPRINTK enabled in libata.h. Does this mean that IRQ is not enabled on this port at all? ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 19 (level, low) -> IRQ 19 ahci 0000:00:1f.2: pcs 0x8f->0x8f ahci_host_init: cap 0xc720ff03 port_map 0x0 n_ports 4 ahci_host_init: mmio f8820400 port_mmio f8820500 ahci_setup_port: ENTER, base==0xf8820400, port_idx 0 ahci_setup_port: base now==0xf8820500 ahci_setup_port: EXIT ahci_host_init: PORT_CMD 0x0 ahci_host_init: PORT_SCR_ERR 0x0 ahci_host_init: PORT_IRQ_STAT 0x0 ahci_host_init: PORT_IRQ_MASK 0x0 ahci_host_init: mmio f8820400 port_mmio f8820580 ahci_setup_port: ENTER, base==0xf8820400, port_idx 1 ahci_setup_port: base now==0xf8820580 ahci_setup_port: EXIT ahci_host_init: PORT_CMD 0x0 ahci_host_init: PORT_SCR_ERR 0x0 ahci_host_init: PORT_IRQ_STAT 0x0 ahci_host_init: PORT_IRQ_MASK 0x0 ... On Thu, 2006-05-25 at 11:14 -0400, Jeff Garzik wrote: > Ming Zhang wrote: > > I read the whole AHCI but I still could not find out what is the magic > > number 0x92. Is this in some Intel doc? > > AHCI spec only documents generic PCI config registers. Each vendor has > their own vendor-specific registers. Intel's are documented publicly on > the developer website. > > Jeff > > >