* Marvel 88SE6121 driver
@ 2008-01-28 14:22 Mike Zheng
2008-01-28 15:09 ` Sergei Shtylyov
0 siblings, 1 reply; 3+ messages in thread
From: Mike Zheng @ 2008-01-28 14:22 UTC (permalink / raw)
To: htejun, mlord, linux-ide
Hi All,
I am doing development of device driver of 88SE6121 on Kernel 2.4 for
PowerPC 8568 board, which is a BIG endian CPU.
>From PCI config space, the VENDOR_ID and DEVICE_ID are correct for my
driver. However the PCI_COMMAND register of 88SE6121 I got is 0x7,
which is the same as default value. Based on the document, it has to
be 0x0207 to enable interrupt. However I always failed to do so, the
value remains 0x7 after it is re-assigned to the new value 0x0207. So
that I have no interrupt from PCIe as INTA. Do you have any idea on
this issue?
Thanks for your help,
Mike Zheng
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Marvel 88SE6121 driver
2008-01-28 14:22 Marvel 88SE6121 driver Mike Zheng
@ 2008-01-28 15:09 ` Sergei Shtylyov
2008-01-28 16:49 ` Mike Zheng
0 siblings, 1 reply; 3+ messages in thread
From: Sergei Shtylyov @ 2008-01-28 15:09 UTC (permalink / raw)
To: Mike Zheng; +Cc: htejun, mlord, linux-ide
Hello.
Mike Zheng wrote:
> From PCI config space, the VENDOR_ID and DEVICE_ID are correct for my
> driver. However the PCI_COMMAND register of 88SE6121 I got is 0x7,
> which is the same as default value. Based on the document, it has to
> be 0x0207 to enable interrupt. However I always failed to do so, the
Bit 10 (mask 0x0200) is fast back-to-back enable, what does it have to do
with iterrupts.
> value remains 0x7 after it is re-assigned to the new value 0x0207. So
This means that fast back-to-back is not supported
> that I have no interrupt from PCIe as INTA. Do you have any idea on
> this issue?
There's also bit 11 (mask 0x0400) meaning INTx emulation *disable*.
> Thanks for your help,
> Mike Zheng
MBR, Sergei
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Marvel 88SE6121 driver
2008-01-28 15:09 ` Sergei Shtylyov
@ 2008-01-28 16:49 ` Mike Zheng
0 siblings, 0 replies; 3+ messages in thread
From: Mike Zheng @ 2008-01-28 16:49 UTC (permalink / raw)
To: Sergei Shtylyov; +Cc: htejun, mlord, linux-ide
Thanks Sergei. I tested with 0x0407. There is still no interrupt
generated from the controller. The following are the register values
after soft reset of the SATA port. Any idea for no interrupt from SATA
controller?
Thanks for your help,
Successfully done SATA_DoSoftReset loop = 1388
===>SATA Phy Regs on Port->Mmio_Base=0xe100dd00
S-Status(0x0): 0x113
S-Error(0x1): 0x4190000
S-Control(0x2): 0x0
PhyMode3(0x4): 0xaaa400ac
PhyMode4(0x5): 0x48101cd
PhyMode1(0xB): 0x402aa290
PhyMode2(0xC): 0x392af
TestControl(0xD): 0x80c000
Loopback (0xF): 0x0
===>SATA Port Regs on Port->Mmio_Base=0xe100dd00
CMD_BASE_L(0xe100dd00): 0x1ffe0000
CMD_BASE_H(0xe100dd04): 0x0
FIS_BASE_L(0xe100dd08): 0x1ffe0800
FIS_BASE_H(0xe100dd0c): 0x0
IRQ_STATUS(0xe100dd10): 0x0
IRQ_Enable(0xe100dd14): 0xc0700039
Command(0xe100dd18): 0x60001
TF data(0xe100dd20): 0x110180
Signature(0xe100dd24): 0x101
SATA_STATUS(0xe100dd28): 0x113
SATA_CNTL(0xe100dd2c): 0x0
SATA_Err(0xe100dd30): 0x0
SATA_Act(0xe100dd34): 0x0
CMD_ISSUE(0xe100dd38): 0x0
On 1/28/08, Sergei Shtylyov <sshtylyov@ru.mvista.com> wrote:
> Hello.
>
> Mike Zheng wrote:
>
> > From PCI config space, the VENDOR_ID and DEVICE_ID are correct for my
> > driver. However the PCI_COMMAND register of 88SE6121 I got is 0x7,
> > which is the same as default value. Based on the document, it has to
> > be 0x0207 to enable interrupt. However I always failed to do so, the
>
> Bit 10 (mask 0x0200) is fast back-to-back enable, what does it have to do
> with iterrupts.
>
> > value remains 0x7 after it is re-assigned to the new value 0x0207. So
>
> This means that fast back-to-back is not supported
>
> > that I have no interrupt from PCIe as INTA. Do you have any idea on
> > this issue?
>
> There's also bit 11 (mask 0x0400) meaning INTx emulation *disable*.
>
> > Thanks for your help,
>
> > Mike Zheng
>
> MBR, Sergei
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-01-28 16:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-28 14:22 Marvel 88SE6121 driver Mike Zheng
2008-01-28 15:09 ` Sergei Shtylyov
2008-01-28 16:49 ` Mike Zheng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).