Bug 481629 - update myri10g driver from 1.3.2 to 1.5.2
Summary: update myri10g driver from 1.3.2 to 1.5.2
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kernel
Version: 5.3
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Stanislaw Gruszka
QA Contact: Network QE
URL:
Whiteboard:
: 481630 (view as bug list)
Depends On:
Blocks: 502912 533192 554476 600363
TreeView+ depends on / blocked
 
Reported: 2009-01-26 20:00 UTC by Issue Tracker
Modified: 2018-11-14 18:11 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-21 09:45:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
myri10ge update to 1.3.99-1.347 for kernel-2.6.18-138.el5 _NOT_TESTED_ (105.45 KB, patch)
2009-04-20 09:08 UTC, Stanislaw Gruszka
no flags Details | Diff
0001-PCI-make-pcie_get_readrq-visible-in-pci.h.patch (1.39 KB, text/plain)
2011-03-18 12:03 UTC, Stanislaw Gruszka
no flags Details
0002-myri10ge-update-to-1.5.2.patch (134.96 KB, text/plain)
2011-03-18 12:06 UTC, Stanislaw Gruszka
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:1065 0 normal SHIPPED_LIVE Important: Red Hat Enterprise Linux 5.7 kernel security and bug fix update 2011-07-21 09:21:37 UTC

Description Issue Tracker 2009-01-26 20:00:37 UTC
Escalated to Bugzilla from IssueTracker

Comment 1 Issue Tracker 2009-01-26 20:00:38 UTC
08:22 <grondo> What version of myri10ge driver is in RHEL5.2?
09:19 <neb> let me check
09:31 <neb> #define MYRI10GE_VERSION_STR "1.0.0"
09:32 <neb> which version do you need? what features do you need? RH is kind of hard to deal with re: version numbers
09:32 <neb> as you well know they often times backport fixes or features and don't update the version number
09:34 <neb> There appear to be at least 2 patches to that driver:
09:34 <neb> linux-2.6-net-netxen-initial-support-for-netxen-10gbe-nic.patch
09:34 <neb> linux-2.6-pci-pci-x-pci-express-read-control-interface.patch
09:54 <grondo> we'd like 1.4.2
09:54 <neb> OK I'll get that in the pipeline
09:54 <neb> can you give me some features in 1.4.2 that you need.
09:54 <neb> makes it easier to get it through the PM folk
09:56 <grondo> more efficient, faster
09:56 <grondo> loads FW via hotplug

Can we get patches against 5.2's kernel ASAP so that we can start getting it working and flush out any bugs that might crop up during the 5.3 development cycle. Evidently, we already have hardware.
This event sent from IssueTracker by jwest  [SEG - Feature Request]
 issue 178049

Comment 4 RHEL Program Management 2009-02-16 15:35:50 UTC
Updating PM score.

Comment 5 Stanislaw Gruszka 2009-04-15 07:37:09 UTC
To add support for Intel DCA (Direct Cache Access) (last change before 1.4.2 driver release) we will need to backport DCA driver too, which can be problematic.
Other big problem is TX multiqueue, which is not supported with core network in RHEL5 kernel. Other things could be quite easy to backport, I mostly already done it.

Comment 6 Stanislaw Gruszka 2009-04-15 07:41:47 UTC
(In reply to comment #1)
> cycle. Evidently, we already have hardware.

Where the hardware is? I can't find any system with myri10ge device on RHTS.

Comment 7 Stanislaw Gruszka 2009-04-20 09:08:18 UTC
Created attachment 340305 [details]
myri10ge update to 1.3.99-1.347 for kernel-2.6.18-138.el5  _NOT_TESTED_

Comment 8 Stanislaw Gruszka 2009-04-22 13:36:12 UTC
(In reply to comment #5)
> To add support for Intel DCA (Direct Cache Access) (last change before 1.4.2
> driver release) we will need to backport DCA driver too, which can be
> problematic.

We have already DCA backports posted to rhkernel-list:

http://post-office.corp.redhat.com/archives/rhkernel-list/2009-April/msg00970.html

If this changes will be added to rhel-5 kernel, we could add DCA support to the driver.

Comment 9 Stanislaw Gruszka 2009-04-24 11:31:38 UTC
*** Bug 481630 has been marked as a duplicate of this bug. ***

Comment 14 Stanislaw Gruszka 2010-02-10 08:08:49 UTC
As we still have no Miricom hardware in inventory, conditionally NACK the request.

Comment 18 RHEL Program Management 2010-07-30 13:44:38 UTC
Development Management has reviewed and declined this request.  You may appeal
this decision by reopening this request.

Comment 25 Stanislaw Gruszka 2011-03-18 12:03:17 UTC
Created attachment 486222 [details]
0001-PCI-make-pcie_get_readrq-visible-in-pci.h.patch

Comment 26 Stanislaw Gruszka 2011-03-18 12:06:34 UTC
Created attachment 486223 [details]
0002-myri10ge-update-to-1.5.2.patch

I'm going to post this patch to RH internal mailing list for review. Additional review and testing from Myricom are welcome.

Comment 27 Stanislaw Gruszka 2011-03-18 12:30:05 UTC
BTW: I have only about 6Gbit/s throughput on my setup. Results was almost the same on backported patch, driver from myri.com site and upstream kernel. I tried to tune according to http://www.myri.com/serve/cache/511.html#linux to get some better speed, but without luck. I wonder what could bottleneck here, PCI-express bus?

Comment 28 Andrew Gallatin 2011-03-18 12:42:30 UTC
I'm not sure exactly which NIC you have, but 6Gb/s sounds very much like you've got a Gen1 NIC in an x4 slot.  What does lspci -vvv say?  Alternately, the driver/firwmare does a DMA benchmark at driver load time.  The results are displayed in ethtool -S in megabytes per second.  Eg:


%sudo ethtool -S eth2 | grep dma
     read_dma_bw_MBs: 1395
     write_dma_bw_MBs: 1613
     read_write_dma_bw_MBs: 2710

So for 10Gb/s operation, you need b/w above 1250MB/s

Comment 29 Stanislaw Gruszka 2011-03-18 13:27:36 UTC
Yes, read only and write only dma bandwidth is limited on my system to about 6Gbits/s . Does putting cards on 8x or 16x PCI-e slot give me full speed?

Here is full info:

> [root@dhcp-31-100 ~]# ethtool -i eth3
> driver: myri10ge
> version: 1.5.2-1.459
> firmware-version: 1.4.46 -- 2009/10/21 21:27:53 m
> bus-info: 0000:20:00.0
> [root@dhcp-31-100 ~]# ethtool -S eth3 | grep dma
>      read_dma_bw_MBs: 832
>      write_dma_bw_MBs: 777
>      read_write_dma_bw_MBs: 1491
> [root@dhcp-31-100 ~]# lspci -vvv -d 14c1:0008         
> 20:00.0 Ethernet controller: MYRICOM Inc. Myri-10G Dual-Protocol NIC (rev 01)
> 	Subsystem: MYRICOM Inc. 10G-PCIE-8B
> 	Physical Slot: 6
> 	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
> 	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
> 	Latency: 0, Cache Line Size: 64 bytes
> 	Interrupt: pin A routed to IRQ 94
> 	Region 0: Memory at f3000000 (64-bit, prefetchable) [size=16M]
> 	Region 2: Memory at f4100000 (64-bit, non-prefetchable) [size=1M]
> 	Capabilities: [44] MSI: Enable+ Count=1/1 Maskable- 64bit+
> 		Address: 00000000fee0f00c  Data: 41c9
> 	Capabilities: [54] Power Management version 3
> 		Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
> 		Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=1 PME-
> 	Capabilities: [5c] Express (v2) Endpoint, MSI 00
> 		DevCap:	MaxPayload 4096 bytes, PhantFunc 0, Latency L0s <64ns, L1 <1us
> 			ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset+
> 		DevCtl:	Report errors: Correctable- Non-Fatal- Fatal+ Unsupported-
> 			RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+ FLReset-
> 			MaxPayload 128 bytes, MaxReadReq 4096 bytes
> 		DevSta:	CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend-
> 		LnkCap:	Port #0, Speed 2.5GT/s, Width x8, ASPM L0s, Latency L0 unlimited, L1 unlimited
> 			ClockPM- Surprise- LLActRep+ BwNot-
> 		LnkCtl:	ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk-
> 			ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
> 		LnkSta:	Speed 2.5GT/s, Width x4, TrErr- Train- SlotClk- DLActive+ BWMgmt- ABWMgmt-
> 		DevCap2: Completion Timeout: Range BCD, TimeoutDis+
> 		DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-
> 		LnkCtl2: Target Link Speed: 2.5GT/s, EnterCompliance- SpeedDis-, Selectable De-emphasis: -6dB
> 			 Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
> 			 Compliance De-emphasis: -6dB
> 		LnkSta2: Current De-emphasis Level: -6dB
> 	Capabilities: [a0] Vendor Specific Information <?>
> 	Capabilities: [d0] MSI-X: Enable- Count=128 Masked-
> 		Vector table: BAR=2 offset=000f0000
> 		PBA: BAR=2 offset=000f9000
> 	Capabilities: [e0] Vital Product Data
> 		Product Name: 10G-PCIE-8B-S
> 		Read-only fields:
> 			[PN] Part number: 09-04228
> 			[SN] Serial number: 392282
> 			[RV] Reserved: checksum good, 0 byte(s) reserved
> 		End
> 	Capabilities: [100] Advanced Error Reporting
> 		UESta:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
> 		UEMsk:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
> 		UESvrt:	DLP+ SDES- TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
> 		CESta:	RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr-
> 		CEMsk:	RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
> 		AERCap:	First Error Pointer: 00, GenCap+ CGenEn- ChkCap+ ChkEn-
> 	Capabilities: [1a8] Device Serial Number 00-60-dd-ff-ff-45-f7-41
> 	Kernel driver in use: myri10ge
> 	Kernel modules: myri10ge

Comment 30 Andrew Gallatin 2011-03-18 13:39:38 UTC
Yes, using a x8 (or x16) slot should give you full b/w

Comment 32 Stanislaw Gruszka 2011-03-22 07:37:46 UTC
Looks very good now, 9.9 Gb/s in both directions.

Comment 36 Andrew Gallatin 2011-03-22 14:15:10 UTC
Patches look good to me.  Our test lab is in the middle of a re-org / spring cleaning, so I probably won't be able to test until at least tomorrow.  If you can't wait, please make sure to test the driver with multiple rx queues (load driver with myri10ge_max_slices=8,  this will require installing f/w RPM from http://www.myri.com/scs/download-Myri10GE-firmware-only.html)

Comment 38 Stanislaw Gruszka 2011-03-23 07:54:25 UTC
We are not in hurry :-) Myri10ge_max_slices=8 works here (at least driver does not crash) with 1.4.52 firmware.

Comment 39 Andrew Gallatin 2011-03-23 16:02:25 UTC
Our tests pass with this version of the driver.  Thank you for doing the backport.

Comment 41 Jarod Wilson 2011-04-01 22:02:04 UTC
Patch(es) available in kernel-2.6.18-254.el5
You can download this test kernel (or newer) from http://people.redhat.com/jwilson/el5
Detailed testing feedback is always welcomed.

Comment 43 errata-xmlrpc 2011-07-21 09:45:00 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-1065.html


Note You need to log in before you can comment on or make changes to this bug.