Re: Intel I210 Fiber Optic Ethernet Card Transceiver Info.

2020-05-14 Thread Stuart Henderson
On 2020-05-13, Vertigo Altair  wrote:
> Hi,
>
>
> Sorry for late reply but I had a problem accessing this device.
>
> I’ve tried both OpenBSD 6.6 and 6.7 (amd64), nothing changed:
>
> I think you’re probably right; transceiver command is only available for
> ix(4) driver.

AFAIK the list is: ix, ixl, bnxt, myx, mcx, mvneta

BTW 10Gb NICs also support 1Gb SFPs and the diagnostics work fine (and
are often easier to get hold of than 1G fibre NICs).

# ifconfig ixl2 sff
ixl2: flags=8843 mtu 8000
lladdr f8:f2:1e:57:46:82
index 3 priority 0 llprio 3
media: Ethernet autoselect (1000baseLX full-duplex,rxpause,txpause)
status: active
transceiver: SFP LC, 1310 nm, 10.0km SMF
model: FLEXOPTIX S.1312.10.D rev A
serial: F786KHV, date: 2015-01-28
voltage: 3.31 V, bias current: 21.04 mA
temp: 49.62 C (low -45.00 C, high 110.00 C)
tx: -6.35 dBm (low -10.00 dBm, high -1.00 dBm)
rx: -5.60 dBm (low -23.01 dBm, high -2.00 dBm)

> But what about ifconfig em0 media output showing only supporting
> SX/multi-mode but actually supporting LX-/single-mode too?

That's the default used by em if another media type can't be worked out,
I'm not sure if full information on this is actually available from the
NIC (at least without adding sff diagnostics to em(4) too - and that
would be done outside of the "media" mechanism).




Re: Intel I210 Fiber Optic Ethernet Card Transceiver Info.

2020-05-13 Thread Vertigo Altair
Hi,


Sorry for late reply but I had a problem accessing this device.

I’ve tried both OpenBSD 6.6 and 6.7 (amd64), nothing changed:

I think you’re probably right; transceiver command is only available for
ix(4) driver.

But what about ifconfig em0 media output showing only supporting
SX/multi-mode but actually supporting LX-/single-mode too?


Here it is; dmesg:


OpenBSD 6.7 (GENERIC.MP ) #182: Thu May  7 11:11:58 MDT
2020

dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP


real mem = 17122398208 (16329MB)

avail mem = 16590856192 (15822MB)

mpath0 at root

scsibus0 at mpath0: 256 targets

mainbus0 at root

bios0 at mainbus0: SMBIOS rev. 3.0 @ 0x7f20a000 (52 entries)

bios0: vendor American Megatrends Inc. version "5.13" date 09/16/2019

bios0: Lanner Electronics Default string

acpi0 at bios0: ACPI 6.1

acpi0: sleep states S0 S5

acpi0: tables DSDT FACP FPDT FIDT MCFG WDAT APIC BDAT HPET UEFI SSDT DMAR
SPCR TPM2 HEST BERT ERST EINJ WSMT

acpi0: wakeup devices PEX0(S0) PEX1(S0) PEX2(S0) PEX3(S0) PEX4(S0) PEX5(S0)
PEX6(S0) PEX7(S0) XHC1(S4) LAN0(S0) LAN1(S0) LAN2(S0) LAN3(S0)

acpitimer0 at acpi0: 3579545 Hz, 24 bits

acpimcfg0 at acpi0

acpimcfg0: addr 0xe000, bus 0-255

acpimadt0 at acpi0 addr 0xfee0: PC-AT compat

cpu0 at mainbus0: apid 4 (boot processor)

cpu0: Intel(R) Atom(TM) CPU C3558 @ 2.20GHz, 2200.41 MHz, 06-5f-01

cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,CX16,xTPR,PDCM,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SMEP,ERMS,MPX,RDSEED,SMAP,CLFLUSHOPT,PT,SHA,IBRS,IBPB,STIBP,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES

cpu0: 2MB 64b/line 16-way L2 cache

cpu0: smt 0, core 2, package 0

mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges

cpu0: apic clock running at 25MHz

cpu0: mwait min=64, max=64, C-substates=0.2.0.2, IBE

cpu1 at mainbus0: apid 12 (application processor)

cpu1: Intel(R) Atom(TM) CPU C3558 @ 2.20GHz, 2200.02 MHz, 06-5f-01

cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,CX16,xTPR,PDCM,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SMEP,ERMS,MPX,RDSEED,SMAP,CLFLUSHOPT,PT,SHA,IBRS,IBPB,STIBP,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES

cpu1: 2MB 64b/line 16-way L2 cache

cpu1: smt 0, core 6, package 0

cpu2 at mainbus0: apid 16 (application processor)

cpu2: Intel(R) Atom(TM) CPU C3558 @ 2.20GHz, 2200.02 MHz, 06-5f-01

cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,CX16,xTPR,PDCM,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SMEP,ERMS,MPX,RDSEED,SMAP,CLFLUSHOPT,PT,SHA,IBRS,IBPB,STIBP,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES

cpu2: 2MB 64b/line 16-way L2 cache

cpu2: smt 0, core 8, package 0

cpu3 at mainbus0: apid 24 (application processor)

cpu3: Intel(R) Atom(TM) CPU C3558 @ 2.20GHz, 2200.02 MHz, 06-5f-01

cpu3:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,CX16,xTPR,PDCM,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SMEP,ERMS,MPX,RDSEED,SMAP,CLFLUSHOPT,PT,SHA,IBRS,IBPB,STIBP,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES

cpu3: 2MB 64b/line 16-way L2 cache

cpu3: smt 0, core 12, package 0

ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins

acpihpet0 at acpi0: 2399 Hz

acpiprt0 at acpi0: bus 0 (PCI0)

acpiprt1 at acpi0: bus 2 (PEX0)

acpiprt2 at acpi0: bus 3 (PEX1)

acpiprt3 at acpi0: bus 4 (PEX2)

acpiprt4 at acpi0: bus -1 (PEX3)

acpiprt5 at acpi0: bus 5 (PEX4)

acpiprt6 at acpi0: bus 6 (PEX5)

acpiprt7 at acpi0: bus 7 (PEX6)

acpiprt8 at acpi0: bus 8 (PEX7)

acpiprt9 at acpi0: bus 1 (VRP2)

acpiprt10 at acpi0: bus 9 (VRP0)

acpiprt11 at acpi0: bus 10 (VRP1)

acpicpu0 at acpi0: C1(@1 halt!)

acpicpu1 at acpi0: C1(@1 halt!)

acpicpu2 at acpi0: C1(@1 halt!)

acpicpu3 at acpi0: C1(@1 halt!)

acpitz0 at acpi0: critical temperature is 91 degC

acpipci0 at acpi0 PCI0: 0x0010 0x0011 0x

"PNP0003" at acpi0 not configured

acpicmos0 at acpi0

"PNP0C33" at acpi0 not configured

"MSFT0101" at acpi0 not configured

pci0 at mainbus0 bus 0

0:31:5: mem address conflict 0xfe01/0x1000

pchb0 at pci0 dev 0 function 0 "Intel C3000 Host" rev 0x11

pchb1 at pci0 dev 4 function 0 "Intel C3000 GLREG" rev 0x11

"Intel C3000 

Re: Intel I210 Fiber Optic Ethernet Card Transceiver Info.

2020-05-12 Thread Tom Smyth
Hi Vertigo,
can you send on a dmesg,  what version and architecture OpenBSD are
you running.  ?
I believe dlg@ had added in SFP+ functionality between  OpenBSD 6.5
6.6 ?   ( it may have been SFP+ functionality on the ix(4) (and not
em(4)
driver)




On Tue, 12 May 2020 at 20:58, Vertigo Altair  wrote:
>
> Hi Misc,
>
> I have 2 questions about my dual port fiber optic ethernet card with Intel
> I210 chipset:
> 1. The ifconfig em0 media command output only shows that it supports
> multi-mode fiber (1G SX).
> Actually it worked when I tried single mode fiber. But I still wanted to
> report this to OpenBSD developers.
>
> 2. The ifconfig em0 sff or ifconfig em0 transceiver output does not return
> information about transceiver.
> Could the EM driver not support the transceiver / sff command set?
> I searched on Google but I couldn't find such an expression.
>
> You can find the relevant command outputs below.
> Thank you very much for your help in advance.
> Stay safe.
>
> # pcidump | grep Fiber
>  2:0:0: Intel I210 Fiber
>  3:0:0: Intel I210 Fiber
> # pcidump -v 2:0:0
>  2:0:0: Intel I210 Fiber
> 0x: Vendor ID: 8086, Product ID: 1536
> 0x0004: Command: 0147, Status: 0010
> 0x0008: Class: 02 Network, Subclass: 00 Ethernet,
> Interface: 00, Revision: 03
> 0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
> Cache Line Size: 10
> 0x0010: BAR mem 32bit addr: 0xdfd0/0x0008
> 0x0014: BAR empty ()
> 0x0018: BAR io addr: 0xd000/0x0020
> 0x001c: BAR mem 32bit addr: 0xdfd8/0x4000
> 0x0020: BAR empty ()
> 0x0024: BAR empty ()
> 0x0028: Cardbus CIS: 
> 0x002c: Subsystem Vendor ID:  Product ID: 
> 0x0030: Expansion ROM Base Address: 
> 0x0038: 
> 0x003c: Interrupt Pin: 01 Line: 0b Min Gnt: 00 Max Lat: 00
> 0x0040: Capability 0x01: Power Management
> State: D0
> 0x0050: Capability 0x05: Message Signalled Interrupts (MSI)
> Enabled: yes
> 0x0070: Capability 0x11: Extended Message Signalled Interrupts
> (MSI-X)
> Enabled: no; table size 5 (BAR 3:0)
> 0x00a0: Capability 0x10: PCI Express
> Link Speed: 2.5 / 2.5 GT/s, Link Width: x1 / x1
> 0x0100: Enhanced Capability 0x01: Advanced Error Reporting
> 0x0140: Enhanced Capability 0x03: Device Serial Number
> Serial Number: 00900b875ba7
> 0x01a0: Enhanced Capability 0x17: TPH Requester
>
> # ifconfig em0 media
> em0: flags=8802 mtu 1500
> lladdr fe:e1:ba:d0:92:da
> index 1 priority 0 llprio 3
> trunk: trunkdev aggr0
> media: Ethernet autoselect (none)
> status: no carrier
> supported media:
> media 1000baseSX mediaopt full-duplex
> media 1000baseSX
> media autoselect



-- 
Kindest regards,
Tom Smyth.