Re: hotplug works, but newly plug not

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
> 
> 
> 

-
: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux