Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Fsys.ahci and C200 chipset: (14 Items)
   
Fsys.ahci and C200 chipset  
Hello,

I have a new CPU board based on Intel C200 chipset.

The trouble is that harddisk works slow on it - I am using Fsys.ahci. 
It's only QNX4 issue, I have tries QNX6 and it's working fine (with regard to hdd speed).

QNX6 seems to be 4x faster than QNX4. On other boards we have (other chipsets) we haven't seen such difference in speed 
based on version of QNX we use.

Anyone seen something similar?

Thanks, PKY

Re: Fsys.ahci and C200 chipset  
Hi Pavol,

The first idea is that for some reason QNX4 driver doesn't use UDMA mode.

Please run Fsys.ahci driver in verbose mode:
# Fsys.ahci ahci verbose=6
and check which DMA modes is detected (max udma, cur udma, max mdma, cur
mdma, pio).

If it is possible attach driver output to your message.
Also provide show_pci -vv output.


Regards,
Pavel

> Hello,
>
> I have a new CPU board based on Intel C200 chipset.
>
> The trouble is that harddisk works slow on it - I am using Fsys.ahci. 
> It's only QNX4 issue, I have tries QNX6 and it's working fine (with regard to hdd speed).
>
> QNX6 seems to be 4x faster than QNX4. On other boards we have (other chipsets) we haven't seen such difference in 
speed based on version of QNX we use.
>
> Anyone seen something similar?
>
> Thanks, PKY
>
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post102715
> To cancel your subscription to this discussion, please e-mail general-qnx4-unsubscribe@community.qnx.com
>
Re: Fsys.ahci and C200 chipset  
Hello,

This is the requested output:

eide_display_identify: mdl Areca sn 0000001847176782 fw 0100 AX  port 0, max udma 6, cur udma 6, max mdma 2, cur mdma 0,
 pio 4, mblk 16

The full output:
ahci_init: MEM base address fe721000 length 800
intel_init: Intel vid 8086, did 1c02, bus 0, df fa, Map 60
ahci_dump_regs: CAP eb30ff45, GHC 80000000, IS 0, PI 1, VS 10300, CCC_CTL 0, CCC_PORTS 0, EM_LOC 1600002, EM_CTL 7010000

   port 0: CLB 151000, CLBU 0, FB 151400, FBU 0, PIS 0, PIE 7940007f, CMD 44017, TFD 50, SIG 101, SSTS 123, SCTL 300, 
SERR 0  SATC 0, CI 0
   port 0: SNTF 0, FBS 0
ahci_dump_regs: CAP eb30ff45, GHC 80000000, IS 0, PI 1, VS 10300, CCC_CTL 0, CCC_PORTS 0, EM_LOC 1600002, EM_CTL 7010000

   port 0: CLB 181000, CLBU 0, FB 181400, FBU 0, PIS 0, PIE 7940007f, CMD 44017, TFD 150, SIG 101, SSTS 123, SCTL 300, 
SERR 0  SATC 0, CI 0
   port 0: SNTF 0, FBS 0
ahci_dump_regs: CAP eb30ff45, GHC 80000002, IS 0, PI 1, VS 10300, CCC_CTL 0, CCC_PORTS 0, EM_LOC 1600002, EM_CTL 7010000

   port 0: CLB 181000, CLBU 0, FB 181400, FBU 0, PIS 0, PIE 7940007f, CMD 44017, TFD 150, SIG 101, SSTS 123, SCTL 300, 
SERR 0  SATC 0, CI 0
   port 0: SNTF 0, FBS 0
eide_identify_devices: AHCI (generic) vid 0x8086, did 0x1c02, class 0x10601, rev 0x5, busno 0x0, dfunc 0xfa, base 
0xfe721000, irq 0xb, xlat 0x0
eide_display_identify: mdl Areca sn 0000001847176782 fw 0100 AX  port 0, max udma 6, cur udma 6, max mdma 2, cur mdma 0,
 pio 4, mblk 16
Path=0 - AHCI (generic)
 target=0 lun=0 Direct-Access(0) -          Areca   Q4_40GB  Rev: 0100

I will attach show_pci output in next post.

Regards, PKY


> Hi Pavol,
> 
> The first idea is that for some reason QNX4 driver doesn't use UDMA mode.
> 
> Please run Fsys.ahci driver in verbose mode:
> # Fsys.ahci ahci verbose=6
> and check which DMA modes is detected (max udma, cur udma, max mdma, cur
> mdma, pio).
> 
> If it is possible attach driver output to your message.
> Also provide show_pci -vv output.
> 
> 
> Regards,
> Pavel
> 
> > Hello,
> >
> > I have a new CPU board based on Intel C200 chipset.
> >
> > The trouble is that harddisk works slow on it - I am using Fsys.ahci. 
> > It's only QNX4 issue, I have tries QNX6 and it's working fine (with regard 
> to hdd speed).
> >
> > QNX6 seems to be 4x faster than QNX4. On other boards we have (other 
> chipsets) we haven't seen such difference in speed based on version of QNX we 
> use.
> >
> > Anyone seen something similar?
> >
> > Thanks, PKY
> >
> >
> >
> >
> >
> > _______________________________________________
> >
> > General
> > http://community.qnx.com/sf/go/post102715
> > To cancel your subscription to this discussion, please e-mail general-qnx4-
> unsubscribe@community.qnx.com
> >


Re: Fsys.ahci and C200 chipset  
And this is output from show_pci -vv.

PKY
Attachment: Text show_pci_vv.txt 26.93 KB
Re: Fsys.ahci and C200 chipset  
Hi Pavol,

Thanks for this output.
AHCI registers show that controller is in correct state and DMA mode is on.

You have only one SATA port on your board?

Try to run the Fsys.ahci for only one port, e.g:
Fsys.ahci ahci nports=1

Also I think it will be useful to check the driver without interrupt
sharing:
Do not run Ethernet and graphics drivers that share interrupts with
Fsys.ahci and check speed.


Regards,
Pavel


> Hello,
>
> This is the requested output:
>
> eide_display_identify: mdl Areca sn 0000001847176782 fw 0100 AX  port 0, max udma 6, cur udma 6, max mdma 2, cur mdma 
0, pio 4, mblk 16
>
> The full output:
> ahci_init: MEM base address fe721000 length 800
> intel_init: Intel vid 8086, did 1c02, bus 0, df fa, Map 60
> ahci_dump_regs: CAP eb30ff45, GHC 80000000, IS 0, PI 1, VS 10300, CCC_CTL 0, CCC_PORTS 0, EM_LOC 1600002, EM_CTL 
7010000
>    port 0: CLB 151000, CLBU 0, FB 151400, FBU 0, PIS 0, PIE 7940007f, CMD 44017, TFD 50, SIG 101, SSTS 123, SCTL 300, 
SERR 0  SATC 0, CI 0
>    port 0: SNTF 0, FBS 0
> ahci_dump_regs: CAP eb30ff45, GHC 80000000, IS 0, PI 1, VS 10300, CCC_CTL 0, CCC_PORTS 0, EM_LOC 1600002, EM_CTL 
7010000
>    port 0: CLB 181000, CLBU 0, FB 181400, FBU 0, PIS 0, PIE 7940007f, CMD 44017, TFD 150, SIG 101, SSTS 123, SCTL 300,
 SERR 0  SATC 0, CI 0
>    port 0: SNTF 0, FBS 0
> ahci_dump_regs: CAP eb30ff45, GHC 80000002, IS 0, PI 1, VS 10300, CCC_CTL 0, CCC_PORTS 0, EM_LOC 1600002, EM_CTL 
7010000
>    port 0: CLB 181000, CLBU 0, FB 181400, FBU 0, PIS 0, PIE 7940007f, CMD 44017, TFD 150, SIG 101, SSTS 123, SCTL 300,
 SERR 0  SATC 0, CI 0
>    port 0: SNTF 0, FBS 0
> eide_identify_devices: AHCI (generic) vid 0x8086, did 0x1c02, class 0x10601, rev 0x5, busno 0x0, dfunc 0xfa, base 
0xfe721000, irq 0xb, xlat 0x0
> eide_display_identify: mdl Areca sn 0000001847176782 fw 0100 AX  port 0, max udma 6, cur udma 6, max mdma 2, cur mdma 
0, pio 4, mblk 16
> Path=0 - AHCI (generic)
>  target=0 lun=0 Direct-Access(0) -          Areca   Q4_40GB  Rev: 0100
>
> I will attach show_pci output in next post.
>
> Regards, PKY
>
>
>> Hi Pavol,
>>
>> The first idea is that for some reason QNX4 driver doesn't use UDMA mode.
>>
>> Please run Fsys.ahci driver in verbose mode:
>> # Fsys.ahci ahci verbose=6
>> and check which DMA modes is detected (max udma, cur udma, max mdma, cur
>> mdma, pio).
>>
>> If it is possible attach driver output to your message.
>> Also provide show_pci -vv output.
>>
>>
>> Regards,
>> Pavel
>>
>>> Hello,
>>>
>>> I have a new CPU board based on Intel C200 chipset.
>>>
>>> The trouble is that harddisk works slow on it - I am using Fsys.ahci. 
>>> It's only QNX4 issue, I have tries QNX6 and it's working fine (with regard 
>> to hdd speed).
>>> QNX6 seems to be 4x faster than QNX4. On other boards we have (other 
>> chipsets) we haven't seen such difference in speed based on version of QNX we 
>> use.
>>> Anyone seen something similar?
>>>
>>> Thanks, PKY
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>>
>>> General
>>> http://community.qnx.com/sf/go/post102715
>>> To cancel your subscription to this discussion, please e-mail general-qnx4-
>> unsubscribe@community.qnx.com
>
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post102797
> To cancel your subscription to this discussion, please e-mail general-qnx4-unsubscribe@community.qnx.com
> .
>


Re: Fsys.ahci and C200 chipset  
Hello,

There are 6 sata ports on the board. I have tried to limit it to just one port (nport=1), but it didn't help.

Also starting the system without network drivers didn't help (verified by sin ir that Fsys.ahci is the only one using 
INQ11).

Regards, PKY

> Hi Pavol,
> 
> Thanks for this output.
> AHCI registers show that controller is in correct state and DMA mode is on.
> 
> You have only one SATA port on your board?
> 
> Try to run the Fsys.ahci for only one port, e.g:
> Fsys.ahci ahci nports=1
> 
> Also I think it will be useful to check the driver without interrupt
> sharing:
> Do not run Ethernet and graphics drivers that share interrupts with
> Fsys.ahci and check speed.
> 
> 
> Regards,
> Pavel
> 
> 
> > Hello,
> >
> > This is the requested output:
> >
> > eide_display_identify: mdl Areca sn 0000001847176782 fw 0100 AX  port 0, max
>  udma 6, cur udma 6, max mdma 2, cur mdma 0, pio 4, mblk 16
> >
> > The full output:
> > ahci_init: MEM base address fe721000 length 800
> > intel_init: Intel vid 8086, did 1c02, bus 0, df fa, Map 60
> > ahci_dump_regs: CAP eb30ff45, GHC 80000000, IS 0, PI 1, VS 10300, CCC_CTL 0,
>  CCC_PORTS 0, EM_LOC 1600002, EM_CTL 7010000
> >    port 0: CLB 151000, CLBU 0, FB 151400, FBU 0, PIS 0, PIE 7940007f, CMD 
> 44017, TFD 50, SIG 101, SSTS 123, SCTL 300, SERR 0  SATC 0, CI 0
> >    port 0: SNTF 0, FBS 0
> > ahci_dump_regs: CAP eb30ff45, GHC 80000000, IS 0, PI 1, VS 10300, CCC_CTL 0,
>  CCC_PORTS 0, EM_LOC 1600002, EM_CTL 7010000
> >    port 0: CLB 181000, CLBU 0, FB 181400, FBU 0, PIS 0, PIE 7940007f, CMD 
> 44017, TFD 150, SIG 101, SSTS 123, SCTL 300, SERR 0  SATC 0, CI 0
> >    port 0: SNTF 0, FBS 0
> > ahci_dump_regs: CAP eb30ff45, GHC 80000002, IS 0, PI 1, VS 10300, CCC_CTL 0,
>  CCC_PORTS 0, EM_LOC 1600002, EM_CTL 7010000
> >    port 0: CLB 181000, CLBU 0, FB 181400, FBU 0, PIS 0, PIE 7940007f, CMD 
> 44017, TFD 150, SIG 101, SSTS 123, SCTL 300, SERR 0  SATC 0, CI 0
> >    port 0: SNTF 0, FBS 0
> > eide_identify_devices: AHCI (generic) vid 0x8086, did 0x1c02, class 0x10601,
>  rev 0x5, busno 0x0, dfunc 0xfa, base 0xfe721000, irq 0xb, xlat 0x0
> > eide_display_identify: mdl Areca sn 0000001847176782 fw 0100 AX  port 0, max
>  udma 6, cur udma 6, max mdma 2, cur mdma 0, pio 4, mblk 16
> > Path=0 - AHCI (generic)
> >  target=0 lun=0 Direct-Access(0) -          Areca   Q4_40GB  Rev: 0100
> >
> > I will attach show_pci output in next post.
> >
> > Regards, PKY
> >
> >
> >> Hi Pavol,
> >>
> >> The first idea is that for some reason QNX4 driver doesn't use UDMA mode.
> >>
> >> Please run Fsys.ahci driver in verbose mode:
> >> # Fsys.ahci ahci verbose=6
> >> and check which DMA modes is detected (max udma, cur udma, max mdma, cur
> >> mdma, pio).
> >>
> >> If it is possible attach driver output to your message.
> >> Also provide show_pci -vv output.
> >>
> >>
> >> Regards,
> >> Pavel
> >>
> >>> Hello,
> >>>
> >>> I have a new CPU board based on Intel C200 chipset.
> >>>
> >>> The trouble is that harddisk works slow on it - I am using Fsys.ahci. 
> >>> It's only QNX4 issue, I have tries QNX6 and it's working fine (with regard
>  
> >> to hdd speed).
> >>> QNX6 seems to be 4x faster than QNX4. On other boards we have (other 
> >> chipsets) we haven't seen such difference in speed based on version of QNX 
> we 
> >> use.
> >>> Anyone seen something similar?
> >>>
>...
View Full Message
Re: Fsys.ahci and C200 chipset  
Hi Pavol,

What speed rate values you've got with QNX4 and QNX6?
How you've measured these rates?

For now I don't see obvious errors in driver that can reduce speed. At
first sight driver uses UDMA engine but doesn't receive expected speed
boost.

I think it should be possible to optimize driver for modern SATA 3
controllers with high speed rates but at the moment this work is not in
our plans.

Regards,
Pavel

> Hello,
>
> There are 6 sata ports on the board. I have tried to limit it to just one port (nport=1), but it didn't help.
>
> Also starting the system without network drivers didn't help (verified by sin ir that Fsys.ahci is the only one using 
INQ11).
>
> Regards, PKY
>
>> Hi Pavol,
>>
>> Thanks for this output.
>> AHCI registers show that controller is in correct state and DMA mode is on.
>>
>> You have only one SATA port on your board?
>>
>> Try to run the Fsys.ahci for only one port, e.g:
>> Fsys.ahci ahci nports=1
>>
>> Also I think it will be useful to check the driver without interrupt
>> sharing:
>> Do not run Ethernet and graphics drivers that share interrupts with
>> Fsys.ahci and check speed.
>>
>>
>> Regards,
>> Pavel
>>
>>
>>> Hello,
>>>
>>> This is the requested output:
>>>
>>> eide_display_identify: mdl Areca sn 0000001847176782 fw 0100 AX  port 0, max
>>  udma 6, cur udma 6, max mdma 2, cur mdma 0, pio 4, mblk 16
>>> The full output:
>>> ahci_init: MEM base address fe721000 length 800
>>> intel_init: Intel vid 8086, did 1c02, bus 0, df fa, Map 60
>>> ahci_dump_regs: CAP eb30ff45, GHC 80000000, IS 0, PI 1, VS 10300, CCC_CTL 0,
>>  CCC_PORTS 0, EM_LOC 1600002, EM_CTL 7010000
>>>    port 0: CLB 151000, CLBU 0, FB 151400, FBU 0, PIS 0, PIE 7940007f, CMD 
>> 44017, TFD 50, SIG 101, SSTS 123, SCTL 300, SERR 0  SATC 0, CI 0
>>>    port 0: SNTF 0, FBS 0
>>> ahci_dump_regs: CAP eb30ff45, GHC 80000000, IS 0, PI 1, VS 10300, CCC_CTL 0,
>>  CCC_PORTS 0, EM_LOC 1600002, EM_CTL 7010000
>>>    port 0: CLB 181000, CLBU 0, FB 181400, FBU 0, PIS 0, PIE 7940007f, CMD 
>> 44017, TFD 150, SIG 101, SSTS 123, SCTL 300, SERR 0  SATC 0, CI 0
>>>    port 0: SNTF 0, FBS 0
>>> ahci_dump_regs: CAP eb30ff45, GHC 80000002, IS 0, PI 1, VS 10300, CCC_CTL 0,
>>  CCC_PORTS 0, EM_LOC 1600002, EM_CTL 7010000
>>>    port 0: CLB 181000, CLBU 0, FB 181400, FBU 0, PIS 0, PIE 7940007f, CMD 
>> 44017, TFD 150, SIG 101, SSTS 123, SCTL 300, SERR 0  SATC 0, CI 0
>>>    port 0: SNTF 0, FBS 0
>>> eide_identify_devices: AHCI (generic) vid 0x8086, did 0x1c02, class 0x10601,
>>  rev 0x5, busno 0x0, dfunc 0xfa, base 0xfe721000, irq 0xb, xlat 0x0
>>> eide_display_identify: mdl Areca sn 0000001847176782 fw 0100 AX  port 0, max
>>  udma 6, cur udma 6, max mdma 2, cur mdma 0, pio 4, mblk 16
>>> Path=0 - AHCI (generic)
>>>  target=0 lun=0 Direct-Access(0) -          Areca   Q4_40GB  Rev: 0100
>>>
>>> I will attach show_pci output in next post.
>>>
>>> Regards, PKY
>>>
>>>
>>>> Hi Pavol,
>>>>
>>>> The first idea is that for some reason QNX4 driver doesn't use UDMA mode.
>>>>
>>>> Please run Fsys.ahci driver in verbose mode:
>>>> # Fsys.ahci ahci verbose=6
>>>> and check which DMA modes is detected (max udma, cur udma, max mdma, cur
>>>> mdma, pio).
>>>>
>>>> If it is possible attach driver output to your message.
>>>> Also provide show_pci -vv output.
>>>>
>>>>
>>>>...
View Full Message
Re: Fsys.ahci and C200 chipset  
Hello,

I measure the speed by these commands:

cp -V /dev/hd0 /dev/null
time dd if=/dev/hdo of=/dev/null count=1000000
time dd if=/dev/hd0 of=/dev/null count=62500 bs=8192

For QNX6.5SP1 I got these results:
speed 175MB/s
time1 7sec
time2 4sec

For QNX4.25 I got these results:
speed 30MB/s
time1 20sec
time2 16sec

Regards, PKY

> Hi Pavol,
> 
> What speed rate values you've got with QNX4 and QNX6?
> How you've measured these rates?
> 
> For now I don't see obvious errors in driver that can reduce speed. At
> first sight driver uses UDMA engine but doesn't receive expected speed
> boost.
> 
> I think it should be possible to optimize driver for modern SATA 3
> controllers with high speed rates but at the moment this work is not in
> our plans.
> 
> Regards,
> Pavel
Re: Fsys.ahci and C200 chipset  
Hi Pavol,

Thanks for the info.
I've just tested the Fsys.ahci with an Intel C210 chipset and got same
results.
I can't explain such behaviour.

Regards,
Pavel

> Hello,
>
> I measure the speed by these commands:
>
> cp -V /dev/hd0 /dev/null
> time dd if=/dev/hdo of=/dev/null count=1000000
> time dd if=/dev/hd0 of=/dev/null count=62500 bs=8192
>
> For QNX6.5SP1 I got these results:
> speed 175MB/s
> time1 7sec
> time2 4sec
>
> For QNX4.25 I got these results:
> speed 30MB/s
> time1 20sec
> time2 16sec
>
> Regards, PKY
>
>> Hi Pavol,
>>
>> What speed rate values you've got with QNX4 and QNX6?
>> How you've measured these rates?
>>
>> For now I don't see obvious errors in driver that can reduce speed. At
>> first sight driver uses UDMA engine but doesn't receive expected speed
>> boost.
>>
>> I think it should be possible to optimize driver for modern SATA 3
>> controllers with high speed rates but at the moment this work is not in
>> our plans.
>>
>> Regards,
>> Pavel
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post102877
> To cancel your subscription to this discussion, please e-mail general-qnx4-unsubscribe@community.qnx.com
>


Re: Fsys.ahci and C200 chipset  
Hello,

just for clarification, did you get normal speed in QNX6 and low speed in QNX4 on the same HW?

Regards, PKY

> Hi Pavol,
> 
> Thanks for the info.
> I've just tested the Fsys.ahci with an Intel C210 chipset and got same
> results.
> I can't explain such behaviour.
> 
> Regards,
> Pavel
> 
Re: Fsys.ahci and C200 chipset  
Yes, my results are similar to yours.

Regards,
Pavel

> Hello,
>
> just for clarification, did you get normal speed in QNX6 and low speed in QNX4 on the same HW?
>
> Regards, PKY
>
>> Hi Pavol,
>>
>> Thanks for the info.
>> I've just tested the Fsys.ahci with an Intel C210 chipset and got same
>> results.
>> I can't explain such behaviour.
>>
>> Regards,
>> Pavel
>>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post102907
> To cancel your subscription to this discussion, please e-mail general-qnx4-unsubscribe@community.qnx.com
>


Re: Fsys.ahci and C200 chipset  
Hello,

Any chance that someone will look into this problem and find a solution?

Regards, PKY

> Yes, my results are similar to yours.
> 
> Regards,
> Pavel
> 
> > Hello,
> >
> > just for clarification, did you get normal speed in QNX6 and low speed in 
> QNX4 on the same HW?
> >
> > Regards, PKY
> >
> >> Hi Pavol,
> >>
> >> Thanks for the info.
> >> I've just tested the Fsys.ahci with an Intel C210 chipset and got same
> >> results.
> >> I can't explain such behaviour.
> >>
> >> Regards,
> >> Pavel
> >>
> >
> >
> > _______________________________________________
> >
> > General
> > http://community.qnx.com/sf/go/post102907
> > To cancel your subscription to this discussion, please e-mail general-qnx4-
> unsubscribe@community.qnx.com
> >
> 
> 


Re: Fsys.ahci and C200 chipset  
Hi Pavol,

Yes, but this is a performance issue and has low priority. Furthermore
additional research is required to find out the location of this issue
(it is possible that the problem is not in driver). I'll inform you when
we will get any new information.

Regards,
Pavel

> Hello,
>
> Any chance that someone will look into this problem and find a solution?
>
> Regards, PKY
>
>> Yes, my results are similar to yours.
>>
>> Regards,
>> Pavel
>>
>>> Hello,
>>>
>>> just for clarification, did you get normal speed in QNX6 and low speed in 
>> QNX4 on the same HW?
>>> Regards, PKY
>>>
>>>> Hi Pavol,
>>>>
>>>> Thanks for the info.
>>>> I've just tested the Fsys.ahci with an Intel C210 chipset and got same
>>>> results.
>>>> I can't explain such behaviour.
>>>>
>>>> Regards,
>>>> Pavel
>>>>
>>>
>>> _______________________________________________
>>>
>>> General
>>> http://community.qnx.com/sf/go/post102907
>>> To cancel your subscription to this discussion, please e-mail general-qnx4-
>> unsubscribe@community.qnx.com
>>
>
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post102965
> To cancel your subscription to this discussion, please e-mail general-qnx4-unsubscribe@community.qnx.com
>


Re: Fsys.ahci and C200 chipset  
Thanks.

Looking forward for good news.

PKY

> Hi Pavol,
> 
> Yes, but this is a performance issue and has low priority. Furthermore
> additional research is required to find out the location of this issue
> (it is possible that the problem is not in driver). I'll inform you when
> we will get any new information.
> 
> Regards,
> Pavel
>