Re: Supermicro X10SDV-TP8F with USB3 won't boot

2016-06-01 Thread Hrvoje Popovski
On 31.5.2016. 19:26, Hrvoje Popovski wrote:
> On 31.5.2016. 18:44, Martin Pieuchot wrote:
>> On 06/05/16(Fri) 01:13, Hrvoje Popovski wrote:
>>> Hi,
>>>
>>> I've got
>>> http://www.supermicro.com/products/motherboard/Xeon/D/X10SDV-TP8F.cfm
>>> for my openbsd lab. Default BIOS settings for usb is USB3 and with that
>>> settings i can't install openbsd on it, or boot installed openbsd.
>>> I have installed openbsd with disabled USB3 ie. USB2, complie kernel
>>> with USB_DEBUG, EHCI_DEBUG, XHCI_DEBUG, UHCI_DEBUG, enable USB3 in BIOS
>>> and boot... this is screenshot..
>>> http://kosjenka.srce.hr/~hrvoje/openbsd/usb.jpg
>>
>> Could you please tell me if the diff below solves your problem?
>>
>> Index: xhci_pci.c
>> ===
>> RCS file: /cvs/src/sys/dev/pci/xhci_pci.c,v
>> retrieving revision 1.7
>> diff -u -p -r1.7 xhci_pci.c
>> --- xhci_pci.c   2 Nov 2015 14:53:10 -   1.7
>> +++ xhci_pci.c   31 May 2016 16:36:14 -
>> @@ -258,8 +258,9 @@ xhci_pci_takecontroller(struct xhci_pci_
>>  eec = -1;
>>  
>>  /* Synchronise with the BIOS if it owns the controller. */
>> -for (xecp = XHCI_HCC_XECP(cparams) << 2; xecp != 0;
>> -xecp = XHCI_XECP_NEXT(eec) << 2) {
>> +for (xecp = XHCI_HCC_XECP(cparams) << 2;
>> +xecp != 0 && XHCI_XECP_NEXT(eec);
>> +xecp += XHCI_XECP_NEXT(eec) << 2) {
>>  eec = XREAD4(>sc, xecp);
>>  if (XHCI_XECP_ID(eec) != XHCI_ID_USB_LEGACY)
>>  continue;
>>
> 
> Hi,
> 
> yes, with this patch i can boot this box with USB3.0 enabled. Tomorrow i
> will plugin some USB3 and USB2 stuff in it and will send you logs...

in one port i attached usb 2.0 stick Kingston DataTraveler and in second
port usb 3.0 stick SanDisk Corp. SDCZ80 Flash Drive and both of  them
are working

thank you ...

dmesg log:

xhci0: xhci_cmd_reset_ep_async dev 2 dci 1
xhci0: xhci_cmd_set_tr_deq_async dev 2 dci 1
xhci0: port=2 change=0x04
uhub0: intr status=0
uhub0: port 2 status=0x01e1 change=0x0001
xhci0: port=2 change=0x04
uhub0: intr status=0
uhub0: port 2 status=0x0503 change=0x
xhci0: xhci_cmd_slot_control
xhci0: dev 3, input=0xff0069391000 slot=0xff0069391020
ep0=0xff0069391040
xhci0: dev 3, setting DCBAA to 0x696b5000
xhci_pipe_init: pipe=0x807c7000 addr=0 depth=1 port=2 speed=3
dev 3 dci 1 (epAddr=0x0)
xhci0: xhci_cmd_set_address BSR=1
xhci0: xhci_cmd_set_address BSR=0
xhci0: dev 3 addr 3
umass0 at uhub0 port 2 configuration 1 interface 0 "Kingston
DataTraveler 2.0" rev 2.00/1.00 addr 4
umass0: using SCSI over Bulk-Only
xhci_pipe_init: pipe=0x807fe000 addr=4 depth=1 port=2 speed=3
dev 3 dci 4 (epAddr=0x2)
xhci0: xhci_cmd_configure_ep dev 3
xhci_pipe_init: pipe=0x807ff000 addr=4 depth=1 port=2 speed=3
dev 3 dci 3 (epAddr=0x81)
xhci0: xhci_cmd_configure_ep dev 3
scsibus4 at umass0: 2 targets, initiator 0
sd1 at scsibus4 targ 1 lun 0:  SCSI2
0/direct removable serial.09306544CE81DA0CD1F2
sd1: 14793MB, 512 bytes/sector, 30297216 sectors
uhub0: port 4 status=0x0503 change=0x
uhub3: port 1 status=0x0303 change=0x
uhub0: port 2 status=0x0503 change=0x
xhci0: port=16 change=0x00
uhub0: intr status=0
uhub0: port 16 status=0x0203 change=0x0001
xhci0: port=16 change=0x00
uhub0: intr status=0
uhub0: port 16 status=0x0203 change=0x0020
xhci0: xhci_cmd_slot_control
xhci0: dev 4, input=0xff0077a5f000 slot=0xff0077a5f020
ep0=0xff0077a5f040
xhci0: dev 4, setting DCBAA to 0x77a6
xhci_pipe_init: pipe=0x8080 addr=0 depth=1 port=16 speed=4
dev 4 dci 1 (epAddr=0x0)
xhci0: xhci_cmd_set_address BSR=1
xhci0: xhci_cmd_set_address BSR=0
xhci0: dev 4 addr 4
umass1 at uhub0 port 16 configuration 1 interface 0 "SanDisk Extreme"
rev 3.00/0.10 addr 5
umass1: using SCSI over Bulk-Only
xhci_pipe_init: pipe=0x80801000 addr=5 depth=1 port=16 speed=4
dev 4 dci 4 (epAddr=0x2)
xhci0: xhci_cmd_configure_ep dev 4
xhci_pipe_init: pipe=0x80802000 addr=5 depth=1 port=16 speed=4
dev 4 dci 3 (epAddr=0x81)
xhci0: xhci_cmd_configure_ep dev 4
scsibus5 at umass1: 2 targets, initiator 0
sd2 at scsibus5 targ 1 lun 0:  SCSI4 0/direct
removable serial.07815580140502220948
xhci0: xhci_cmd_reset_ep_async dev 4 dci 3
xhci0: xhci_cmd_set_tr_deq_async dev 4 dci 3
sd2: 61057MB, 512 bytes/sector, 125045424 sectors
uhub0: port 16 status=0x0203 change=0x0020
xhci0: xhci_cmd_reset_ep_async dev 4 dci 3
xhci0: xhci_cmd_set_tr_deq_async dev 4 dci 3



# lsusb
Bus 000 Device 001: ID 8086: Intel Corp.
Bus 000 Device 002: ID 0557:7000 ATEN International Co., Ltd Hub
Bus 000 Device 003: ID 0557:2419 ATEN International Co., Ltd
Bus 000 Device 004: ID 0930:6544 Toshiba Corp. Kingston DataTraveler 2.0
Stick (2GB)
Bus 000 Device 005: ID 0781:5580 SanDisk Corp. SDCZ80 Flash Drive
Bus 001 Device 001: ID 8086: Intel Corp.
Bus 001 Device 002: ID 8087:8008 Intel Corp.

Re: Supermicro X10SDV-TP8F with USB3 won't boot

2016-06-01 Thread Evgeniy Sudyr
Martin,

I also confirm commit above fixes issue with xhci(4) for me, both USB
2.0 and USB 3 devices are detected and working.

umass1 at uhub1 port 2 configuration 1 interface 0 "Kingston DTR30G2"
rev 3.00/1.00 addr 3
umass1: using SCSI over Bulk-Only
scsibus5 at umass1: 2 targets, initiator 0
sd2 at scsibus5 targ 1 lun 0:  SCSI4 0/direct
removable serial.095116a2BE90C140ACA2
sd2: 30016MB, 512 bytes/sector, 61472768 sectors

Thanks for quick fix!

--
Evgeniy


On Wed, Jun 1, 2016 at 8:21 AM, Martin Pieuchot  wrote:
> On 31/05/16(Tue) 21:11, Evgeniy Sudyr wrote:
>> Hrvoje,
>>
>> looks my last comment was wrong. I apologise for detracting from this
>> important discussion.
>>
>> We all need support / fix for xhci(4) driver instead of disabling USB
>> 3.0 support.
>>
>> I have same issue on my desktop with Asus z170-k mainboard which is
>> based on Intel z170 chipset http://ark.intel.com/products/90591
>>
>> Also my friend have Intel C236 chipset
>> http://ark.intel.com/products/90594 and he also have same issue on
>> board with both acpi and xhci
>> http://www.supermicro.com/products/motherboard/Xeon/C236_C232/X11SSH-TF.cfm
>>
>> I will be glad to help test patches on hardware above.
>
> I just committed the fix, please wait for the next snapshot or build
> from sources.
>
> Martin



-- 
--
With regards,
Eugene Sudyr



Re: Supermicro X10SDV-TP8F with USB3 won't boot

2016-06-01 Thread Martin Pieuchot
On 31/05/16(Tue) 21:11, Evgeniy Sudyr wrote:
> Hrvoje,
> 
> looks my last comment was wrong. I apologise for detracting from this
> important discussion.
> 
> We all need support / fix for xhci(4) driver instead of disabling USB
> 3.0 support.
> 
> I have same issue on my desktop with Asus z170-k mainboard which is
> based on Intel z170 chipset http://ark.intel.com/products/90591
> 
> Also my friend have Intel C236 chipset
> http://ark.intel.com/products/90594 and he also have same issue on
> board with both acpi and xhci
> http://www.supermicro.com/products/motherboard/Xeon/C236_C232/X11SSH-TF.cfm
> 
> I will be glad to help test patches on hardware above.

I just committed the fix, please wait for the next snapshot or build
from sources.

Martin



Re: Supermicro X10SDV-TP8F with USB3 won't boot

2016-05-31 Thread Evgeniy Sudyr
Hrvoje,

looks my last comment was wrong. I apologise for detracting from this
important discussion.

We all need support / fix for xhci(4) driver instead of disabling USB
3.0 support.

I have same issue on my desktop with Asus z170-k mainboard which is
based on Intel z170 chipset http://ark.intel.com/products/90591

Also my friend have Intel C236 chipset
http://ark.intel.com/products/90594 and he also have same issue on
board with both acpi and xhci
http://www.supermicro.com/products/motherboard/Xeon/C236_C232/X11SSH-TF.cfm

I will be glad to help test patches on hardware above.

--
Evgeniy

On Tue, May 31, 2016 at 8:32 PM, Hrvoje Popovski  wrote:
> On 31.5.2016. 20:11, Evgeniy Sudyr wrote:
>> Hrvoje,
>>
>> what about disabling ACPI and USB during boot? Does it work for you?
>>
>> boot -c
>> disable acpi
>> disable xhci
>>
>
> Hi,
>
> but with this patch box is booting fine with USB2 or USB3. Without this
> patch box would boot, but with USB2 only.
>



-- 
--
With regards,
Eugene Sudyr



Re: Supermicro X10SDV-TP8F with USB3 won't boot

2016-05-31 Thread Hrvoje Popovski
On 31.5.2016. 20:11, Evgeniy Sudyr wrote:
> Hrvoje,
> 
> what about disabling ACPI and USB during boot? Does it work for you?
> 
> boot -c
> disable acpi
> disable xhci
> 

Hi,

but with this patch box is booting fine with USB2 or USB3. Without this
patch box would boot, but with USB2 only.



Re: Supermicro X10SDV-TP8F with USB3 won't boot

2016-05-31 Thread Evgeniy Sudyr
Hrvoje,

what about disabling ACPI and USB during boot? Does it work for you?

boot -c
disable acpi
disable xhci

On Tue, May 31, 2016 at 7:26 PM, Hrvoje Popovski  wrote:
> On 31.5.2016. 18:44, Martin Pieuchot wrote:
>> On 06/05/16(Fri) 01:13, Hrvoje Popovski wrote:
>>> Hi,
>>>
>>> I've got
>>> http://www.supermicro.com/products/motherboard/Xeon/D/X10SDV-TP8F.cfm
>>> for my openbsd lab. Default BIOS settings for usb is USB3 and with that
>>> settings i can't install openbsd on it, or boot installed openbsd.
>>> I have installed openbsd with disabled USB3 ie. USB2, complie kernel
>>> with USB_DEBUG, EHCI_DEBUG, XHCI_DEBUG, UHCI_DEBUG, enable USB3 in BIOS
>>> and boot... this is screenshot..
>>> http://kosjenka.srce.hr/~hrvoje/openbsd/usb.jpg
>>
>> Could you please tell me if the diff below solves your problem?
>>
>> Index: xhci_pci.c
>> ===
>> RCS file: /cvs/src/sys/dev/pci/xhci_pci.c,v
>> retrieving revision 1.7
>> diff -u -p -r1.7 xhci_pci.c
>> --- xhci_pci.c2 Nov 2015 14:53:10 -   1.7
>> +++ xhci_pci.c31 May 2016 16:36:14 -
>> @@ -258,8 +258,9 @@ xhci_pci_takecontroller(struct xhci_pci_
>>   eec = -1;
>>
>>   /* Synchronise with the BIOS if it owns the controller. */
>> - for (xecp = XHCI_HCC_XECP(cparams) << 2; xecp != 0;
>> - xecp = XHCI_XECP_NEXT(eec) << 2) {
>> + for (xecp = XHCI_HCC_XECP(cparams) << 2;
>> + xecp != 0 && XHCI_XECP_NEXT(eec);
>> + xecp += XHCI_XECP_NEXT(eec) << 2) {
>>   eec = XREAD4(>sc, xecp);
>>   if (XHCI_XECP_ID(eec) != XHCI_ID_USB_LEGACY)
>>   continue;
>>
>
> Hi,
>
> yes, with this patch i can boot this box with USB3.0 enabled. Tomorrow i
> will plugin some USB3 and USB2 stuff in it and will send you logs...
>
>
> dmesg with USB_DEBUG, EHCI_DEBUG, XHCI_DEBUG, UHCI_DEBUG, UHUB_DEBUG
> and lsusb -vvv below ..
>
>
>
> OpenBSD 6.0-beta (GENERIC.MP) #2: Tue May 31 19:14:48 CEST 2016
> r...@xeond.srce.hr:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 17054769152 (16264MB)
> avail mem = 16533381120 (15767MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xed9b0 (47 entries)
> bios0: vendor American Megatrends Inc. version "1.0a" date 05/05/2016
> bios0: Supermicro Super Server
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S4 S5
> acpi0: tables DSDT FACP APIC FPDT FIDT SPMI MCFG UEFI DBG2 HPET WDDT
> SSDT SSDT SSDT PRAD DMAR HEST BERT ERST EINJ
> acpi0: wakeup devices IP2P(S4) XHCI(S4) EHC1(S4) EHC2(S4) RP07(S4)
> RP08(S4) BR1A(S4) BR1B(S4) BR2A(S4) BR2B(S4) BR2C(S4) BR2D(S4) BR3A(S4)
> BR3B(S4) BR3C(S4) BR3D(S4) [...]
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Xeon(R) CPU D-1518 @ 2.20GHz, 2200.34 MHz
> 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,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,PQM,RDSEED,ADX,SMAP,PT,SENSOR,ARAT
> cpu0: 256KB 64b/line 8-way L2 cache
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
> cpu0: apic clock running at 100MHz
> cpu0: mwait min=64, max=64, C-substates=0.2.1.2, IBE
> cpu1 at mainbus0: apid 2 (application processor)
> cpu1: Intel(R) Xeon(R) CPU D-1518 @ 2.20GHz, 2200.00 MHz
> 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,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,PQM,RDSEED,ADX,SMAP,PT,SENSOR,ARAT
> cpu1: 256KB 64b/line 8-way L2 cache
> cpu1: smt 0, core 1, package 0
> cpu2 at mainbus0: apid 4 (application processor)
> cpu2: Intel(R) Xeon(R) CPU D-1518 @ 2.20GHz, 2200.00 MHz
> 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,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,PQM,RDSEED,ADX,SMAP,PT,SENSOR,ARAT
> cpu2: 256KB 64b/line 8-way L2 cache
> cpu2: smt 0, core 2, package 0
> cpu3 at mainbus0: apid 6 (application processor)
> cpu3: Intel(R) Xeon(R) CPU D-1518 @ 2.20GHz, 2200.00 MHz
> cpu3:
> 

Re: Supermicro X10SDV-TP8F with USB3 won't boot

2016-05-31 Thread Hrvoje Popovski
On 31.5.2016. 18:44, Martin Pieuchot wrote:
> On 06/05/16(Fri) 01:13, Hrvoje Popovski wrote:
>> Hi,
>>
>> I've got
>> http://www.supermicro.com/products/motherboard/Xeon/D/X10SDV-TP8F.cfm
>> for my openbsd lab. Default BIOS settings for usb is USB3 and with that
>> settings i can't install openbsd on it, or boot installed openbsd.
>> I have installed openbsd with disabled USB3 ie. USB2, complie kernel
>> with USB_DEBUG, EHCI_DEBUG, XHCI_DEBUG, UHCI_DEBUG, enable USB3 in BIOS
>> and boot... this is screenshot..
>> http://kosjenka.srce.hr/~hrvoje/openbsd/usb.jpg
> 
> Could you please tell me if the diff below solves your problem?
> 
> Index: xhci_pci.c
> ===
> RCS file: /cvs/src/sys/dev/pci/xhci_pci.c,v
> retrieving revision 1.7
> diff -u -p -r1.7 xhci_pci.c
> --- xhci_pci.c2 Nov 2015 14:53:10 -   1.7
> +++ xhci_pci.c31 May 2016 16:36:14 -
> @@ -258,8 +258,9 @@ xhci_pci_takecontroller(struct xhci_pci_
>   eec = -1;
>  
>   /* Synchronise with the BIOS if it owns the controller. */
> - for (xecp = XHCI_HCC_XECP(cparams) << 2; xecp != 0;
> - xecp = XHCI_XECP_NEXT(eec) << 2) {
> + for (xecp = XHCI_HCC_XECP(cparams) << 2;
> + xecp != 0 && XHCI_XECP_NEXT(eec);
> + xecp += XHCI_XECP_NEXT(eec) << 2) {
>   eec = XREAD4(>sc, xecp);
>   if (XHCI_XECP_ID(eec) != XHCI_ID_USB_LEGACY)
>   continue;
> 

Hi,

yes, with this patch i can boot this box with USB3.0 enabled. Tomorrow i
will plugin some USB3 and USB2 stuff in it and will send you logs...


dmesg with USB_DEBUG, EHCI_DEBUG, XHCI_DEBUG, UHCI_DEBUG, UHUB_DEBUG
and lsusb -vvv below ..



OpenBSD 6.0-beta (GENERIC.MP) #2: Tue May 31 19:14:48 CEST 2016
r...@xeond.srce.hr:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 17054769152 (16264MB)
avail mem = 16533381120 (15767MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xed9b0 (47 entries)
bios0: vendor American Megatrends Inc. version "1.0a" date 05/05/2016
bios0: Supermicro Super Server
acpi0 at bios0: rev 2
acpi0: sleep states S0 S4 S5
acpi0: tables DSDT FACP APIC FPDT FIDT SPMI MCFG UEFI DBG2 HPET WDDT
SSDT SSDT SSDT PRAD DMAR HEST BERT ERST EINJ
acpi0: wakeup devices IP2P(S4) XHCI(S4) EHC1(S4) EHC2(S4) RP07(S4)
RP08(S4) BR1A(S4) BR1B(S4) BR2A(S4) BR2B(S4) BR2C(S4) BR2D(S4) BR3A(S4)
BR3B(S4) BR3C(S4) BR3D(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Xeon(R) CPU D-1518 @ 2.20GHz, 2200.34 MHz
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,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,PQM,RDSEED,ADX,SMAP,PT,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 100MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Xeon(R) CPU D-1518 @ 2.20GHz, 2200.00 MHz
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,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,PQM,RDSEED,ADX,SMAP,PT,SENSOR,ARAT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Xeon(R) CPU D-1518 @ 2.20GHz, 2200.00 MHz
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,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,PQM,RDSEED,ADX,SMAP,PT,SENSOR,ARAT
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Xeon(R) CPU D-1518 @ 2.20GHz, 2200.00 MHz
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,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,PQM,RDSEED,ADX,SMAP,PT,SENSOR,ARAT
cpu3: 256KB 64b/line 8-way L2 

Re: Supermicro X10SDV-TP8F with USB3 won't boot

2016-05-31 Thread Martin Pieuchot
On 06/05/16(Fri) 01:13, Hrvoje Popovski wrote:
> Hi,
> 
> I've got
> http://www.supermicro.com/products/motherboard/Xeon/D/X10SDV-TP8F.cfm
> for my openbsd lab. Default BIOS settings for usb is USB3 and with that
> settings i can't install openbsd on it, or boot installed openbsd.
> I have installed openbsd with disabled USB3 ie. USB2, complie kernel
> with USB_DEBUG, EHCI_DEBUG, XHCI_DEBUG, UHCI_DEBUG, enable USB3 in BIOS
> and boot... this is screenshot..
> http://kosjenka.srce.hr/~hrvoje/openbsd/usb.jpg

Could you please tell me if the diff below solves your problem?

Index: xhci_pci.c
===
RCS file: /cvs/src/sys/dev/pci/xhci_pci.c,v
retrieving revision 1.7
diff -u -p -r1.7 xhci_pci.c
--- xhci_pci.c  2 Nov 2015 14:53:10 -   1.7
+++ xhci_pci.c  31 May 2016 16:36:14 -
@@ -258,8 +258,9 @@ xhci_pci_takecontroller(struct xhci_pci_
eec = -1;
 
/* Synchronise with the BIOS if it owns the controller. */
-   for (xecp = XHCI_HCC_XECP(cparams) << 2; xecp != 0;
-   xecp = XHCI_XECP_NEXT(eec) << 2) {
+   for (xecp = XHCI_HCC_XECP(cparams) << 2;
+   xecp != 0 && XHCI_XECP_NEXT(eec);
+   xecp += XHCI_XECP_NEXT(eec) << 2) {
eec = XREAD4(>sc, xecp);
if (XHCI_XECP_ID(eec) != XHCI_ID_USB_LEGACY)
continue;



Re: Supermicro X10SDV-TP8F with USB3 won't boot

2016-05-17 Thread Hrvoje Popovski
On 17.5.2016. 13:16, Mike Belopuhov wrote:
> Sorry, forgot to answer that.  No and no.  I think Martin will get some
> hardware soon.
> 

ok, sorry for spam ...



Re: Supermicro X10SDV-TP8F with USB3 won't boot

2016-05-17 Thread Mike Belopuhov
On 6 May 2016 at 23:24, Hrvoje Popovski  wrote:
> On 6.5.2016. 18:08, Mike Belopuhov wrote:
>> Or alternatively, if there are some devices with working Lynx Point
>> xhci, we could disable enforced port routing on these models and use
>> the default port configuration that machine comes up with (in my
>> case there are no enabled xhci ports, PCI_XHCI_INTEL_USB3_PSSEN=0).
>> I can base this argument only on some weird discussions where they
>> mention Lynx Point having issues with port routing.
>>
>> https://lists.freebsd.org/pipermail/freebsd-usb/2013-October/012496.html
>>
>
> would it be beneficial to install some other OS on that box or to give
> you access to it?
>

Sorry, forgot to answer that.  No and no.  I think Martin will get some
hardware soon.



Re: Supermicro X10SDV-TP8F with USB3 won't boot

2016-05-17 Thread Hrvoje Popovski
On 6.5.2016. 23:24, Hrvoje Popovski wrote:
> On 6.5.2016. 18:08, Mike Belopuhov wrote:
>> Or alternatively, if there are some devices with working Lynx Point
>> xhci, we could disable enforced port routing on these models and use
>> the default port configuration that machine comes up with (in my
>> case there are no enabled xhci ports, PCI_XHCI_INTEL_USB3_PSSEN=0).
>> I can base this argument only on some weird discussions where they
>> mention Lynx Point having issues with port routing.
>>
>> https://lists.freebsd.org/pipermail/freebsd-usb/2013-October/012496.html
>>
> 
> would it be beneficial to install some other OS on that box or to give
> you access to it?
> 

this is lsubs -vv from linux with enabled USB3

root@xeond:~# lsusb -vv

Bus 002 Device 004: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Device Descriptor:
  bLength18
  bDescriptorType 1
  bcdUSB   2.00
  bDeviceClass9 Hub
  bDeviceSubClass 0 Unused
  bDeviceProtocol 2 TT per port
  bMaxPacketSize064
  idVendor   0x05e3 Genesys Logic, Inc.
  idProduct  0x0610 4-port hub
  bcdDevice   32.98
  iManufacturer   0
  iProduct1 USB2.0 Hub
  iSerial 0
  bNumConfigurations  1
  Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength   41
bNumInterfaces  1
bConfigurationValue 1
iConfiguration  0
bmAttributes 0xe0
  Self Powered
  Remote Wakeup
MaxPower  100mA
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber0
  bAlternateSetting   0
  bNumEndpoints   1
  bInterfaceClass 9 Hub
  bInterfaceSubClass  0 Unused
  bInterfaceProtocol  1 Single TT
  iInterface  0
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81  EP 1 IN
bmAttributes3
  Transfer TypeInterrupt
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0001  1x 1 bytes
bInterval  12
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber0
  bAlternateSetting   1
  bNumEndpoints   1
  bInterfaceClass 9 Hub
  bInterfaceSubClass  0 Unused
  bInterfaceProtocol  2 TT per port
  iInterface  0
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81  EP 1 IN
bmAttributes3
  Transfer TypeInterrupt
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0001  1x 1 bytes
bInterval  12
Hub Descriptor:
  bLength   9
  bDescriptorType  41
  nNbrPorts 4
  wHubCharacteristic 0x00e9
Per-port power switching
Per-port overcurrent protection
TT think time 32 FS bits
Port indicators
  bPwrOn2PwrGood   50 * 2 milli seconds
  bHubContrCurrent100 milli Ampere
  DeviceRemovable0x00
  PortPwrCtrlMask0xff
 Hub Port Status:
   Port 1: .0100 power
   Port 2: .0100 power
   Port 3: .0100 power
   Port 4: .0100 power
Device Qualifier (for other device speed):
  bLength10
  bDescriptorType 6
  bcdUSB   2.00
  bDeviceClass9 Hub
  bDeviceSubClass 0 Unused
  bDeviceProtocol 0 Full speed (or root) hub
  bMaxPacketSize064
  bNumConfigurations  1
Device Status: 0x0001
  Self Powered

Bus 002 Device 003: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Device Descriptor:
  bLength18
  bDescriptorType 1
  bcdUSB   2.00
  bDeviceClass9 Hub
  bDeviceSubClass 0 Unused
  bDeviceProtocol 2 TT per port
  bMaxPacketSize064
  idVendor   0x05e3 Genesys Logic, Inc.
  idProduct  0x0610 4-port hub
  bcdDevice   32.98
  iManufacturer   0
  iProduct1 USB2.0 Hub
  iSerial 0
  bNumConfigurations  1
  Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength   41
bNumInterfaces  1
bConfigurationValue 1
iConfiguration  0
bmAttributes 0xe0
  Self Powered
  Remote Wakeup
MaxPower  100mA
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber0
  bAlternateSetting   0
  bNumEndpoints   1
  bInterfaceClass 9 Hub
  bInterfaceSubClass  0 Unused
  

Re: Supermicro X10SDV-TP8F with USB3 won't boot

2016-05-06 Thread Hrvoje Popovski
On 6.5.2016. 18:08, Mike Belopuhov wrote:
> Or alternatively, if there are some devices with working Lynx Point
> xhci, we could disable enforced port routing on these models and use
> the default port configuration that machine comes up with (in my
> case there are no enabled xhci ports, PCI_XHCI_INTEL_USB3_PSSEN=0).
> I can base this argument only on some weird discussions where they
> mention Lynx Point having issues with port routing.
> 
> https://lists.freebsd.org/pipermail/freebsd-usb/2013-October/012496.html
> 

would it be beneficial to install some other OS on that box or to give
you access to it?



Re: Supermicro X10SDV-TP8F with USB3 won't boot

2016-05-06 Thread Mike Belopuhov
On 6 May 2016 at 16:59, Mike Belopuhov  wrote:
> On 6 May 2016 at 16:55, Mike Belopuhov  wrote:
>> On 6 May 2016 at 13:48, Hrvoje Popovski  wrote:
>>> On 6.5.2016. 13:31, Martin Pieuchot wrote:
 On 06/05/16(Fri) 13:21, Hrvoje Popovski wrote:
> On 6.5.2016. 13:01, Martin Pieuchot wrote:
>> On 06/05/16(Fri) 01:13, Hrvoje Popovski wrote:
>>> Hi,
>>>
>>> I've got
>>> http://www.supermicro.com/products/motherboard/Xeon/D/X10SDV-TP8F.cfm
>>> for my openbsd lab. Default BIOS settings for usb is USB3 and with that
>>> settings i can't install openbsd on it, or boot installed openbsd.
>>> I have installed openbsd with disabled USB3 ie. USB2, complie kernel
>>> with USB_DEBUG, EHCI_DEBUG, XHCI_DEBUG, UHCI_DEBUG, enable USB3 in BIOS
>>> and boot... this is screenshot..
>>> http://kosjenka.srce.hr/~hrvoje/openbsd/usb.jpg
>>
>> Could you also include UHUB_DEBUG in your debug kernel and show us the
>> resulting hanging dmesg?
>
> screenshot with additional UHUB_DEBUG
> http://kosjenka.srce.hr/~hrvoje/openbsd/usb2.jpg
>
>>
>> mikeb@ just pointed to me the following thread, which suggest updating
>> your BIOS if possible:
>> https://communities.intel.com/thread/59846?start=0=0
>>
>
> there is no newer bios for this box, it seems that is too new. i will
> contact bugs@ after updating box with newer bios...

 Does the machine boot if you have no HID device attached to it
 (keyboard, mice, etc) ?

>>>
>>> Nope ... dmesg is the same as usb2.jpg
>>>
>>
>> I suggest we blacklist Lynx Point xHCI at this point.  I've failed my
>> third attempt at fixing this broken thing.
>
> Specifically Vendor ID: 8086 Product ID: 8c31

Or alternatively, if there are some devices with working Lynx Point
xhci, we could disable enforced port routing on these models and use
the default port configuration that machine comes up with (in my
case there are no enabled xhci ports, PCI_XHCI_INTEL_USB3_PSSEN=0).
I can base this argument only on some weird discussions where they
mention Lynx Point having issues with port routing.

https://lists.freebsd.org/pipermail/freebsd-usb/2013-October/012496.html



Re: Supermicro X10SDV-TP8F with USB3 won't boot

2016-05-06 Thread Mike Belopuhov
On 6 May 2016 at 16:55, Mike Belopuhov  wrote:
> On 6 May 2016 at 13:48, Hrvoje Popovski  wrote:
>> On 6.5.2016. 13:31, Martin Pieuchot wrote:
>>> On 06/05/16(Fri) 13:21, Hrvoje Popovski wrote:
 On 6.5.2016. 13:01, Martin Pieuchot wrote:
> On 06/05/16(Fri) 01:13, Hrvoje Popovski wrote:
>> Hi,
>>
>> I've got
>> http://www.supermicro.com/products/motherboard/Xeon/D/X10SDV-TP8F.cfm
>> for my openbsd lab. Default BIOS settings for usb is USB3 and with that
>> settings i can't install openbsd on it, or boot installed openbsd.
>> I have installed openbsd with disabled USB3 ie. USB2, complie kernel
>> with USB_DEBUG, EHCI_DEBUG, XHCI_DEBUG, UHCI_DEBUG, enable USB3 in BIOS
>> and boot... this is screenshot..
>> http://kosjenka.srce.hr/~hrvoje/openbsd/usb.jpg
>
> Could you also include UHUB_DEBUG in your debug kernel and show us the
> resulting hanging dmesg?

 screenshot with additional UHUB_DEBUG
 http://kosjenka.srce.hr/~hrvoje/openbsd/usb2.jpg

>
> mikeb@ just pointed to me the following thread, which suggest updating
> your BIOS if possible:
> https://communities.intel.com/thread/59846?start=0=0
>

 there is no newer bios for this box, it seems that is too new. i will
 contact bugs@ after updating box with newer bios...
>>>
>>> Does the machine boot if you have no HID device attached to it
>>> (keyboard, mice, etc) ?
>>>
>>
>> Nope ... dmesg is the same as usb2.jpg
>>
>
> I suggest we blacklist Lynx Point xHCI at this point.  I've failed my
> third attempt at fixing this broken thing.

Specifically Vendor ID: 8086 Product ID: 8c31



Re: Supermicro X10SDV-TP8F with USB3 won't boot

2016-05-06 Thread Mike Belopuhov
On 6 May 2016 at 13:48, Hrvoje Popovski  wrote:
> On 6.5.2016. 13:31, Martin Pieuchot wrote:
>> On 06/05/16(Fri) 13:21, Hrvoje Popovski wrote:
>>> On 6.5.2016. 13:01, Martin Pieuchot wrote:
 On 06/05/16(Fri) 01:13, Hrvoje Popovski wrote:
> Hi,
>
> I've got
> http://www.supermicro.com/products/motherboard/Xeon/D/X10SDV-TP8F.cfm
> for my openbsd lab. Default BIOS settings for usb is USB3 and with that
> settings i can't install openbsd on it, or boot installed openbsd.
> I have installed openbsd with disabled USB3 ie. USB2, complie kernel
> with USB_DEBUG, EHCI_DEBUG, XHCI_DEBUG, UHCI_DEBUG, enable USB3 in BIOS
> and boot... this is screenshot..
> http://kosjenka.srce.hr/~hrvoje/openbsd/usb.jpg

 Could you also include UHUB_DEBUG in your debug kernel and show us the
 resulting hanging dmesg?
>>>
>>> screenshot with additional UHUB_DEBUG
>>> http://kosjenka.srce.hr/~hrvoje/openbsd/usb2.jpg
>>>

 mikeb@ just pointed to me the following thread, which suggest updating
 your BIOS if possible:
 https://communities.intel.com/thread/59846?start=0=0

>>>
>>> there is no newer bios for this box, it seems that is too new. i will
>>> contact bugs@ after updating box with newer bios...
>>
>> Does the machine boot if you have no HID device attached to it
>> (keyboard, mice, etc) ?
>>
>
> Nope ... dmesg is the same as usb2.jpg
>

I suggest we blacklist Lynx Point xHCI at this point.  I've failed my
third attempt at fixing this broken thing.



Re: Supermicro X10SDV-TP8F with USB3 won't boot

2016-05-06 Thread Hrvoje Popovski
On 6.5.2016. 13:31, Martin Pieuchot wrote:
> On 06/05/16(Fri) 13:21, Hrvoje Popovski wrote:
>> On 6.5.2016. 13:01, Martin Pieuchot wrote:
>>> On 06/05/16(Fri) 01:13, Hrvoje Popovski wrote:
 Hi,

 I've got
 http://www.supermicro.com/products/motherboard/Xeon/D/X10SDV-TP8F.cfm
 for my openbsd lab. Default BIOS settings for usb is USB3 and with that
 settings i can't install openbsd on it, or boot installed openbsd.
 I have installed openbsd with disabled USB3 ie. USB2, complie kernel
 with USB_DEBUG, EHCI_DEBUG, XHCI_DEBUG, UHCI_DEBUG, enable USB3 in BIOS
 and boot... this is screenshot..
 http://kosjenka.srce.hr/~hrvoje/openbsd/usb.jpg
>>>
>>> Could you also include UHUB_DEBUG in your debug kernel and show us the
>>> resulting hanging dmesg?
>>
>> screenshot with additional UHUB_DEBUG
>> http://kosjenka.srce.hr/~hrvoje/openbsd/usb2.jpg
>>
>>>
>>> mikeb@ just pointed to me the following thread, which suggest updating
>>> your BIOS if possible:
>>> https://communities.intel.com/thread/59846?start=0=0
>>>
>>
>> there is no newer bios for this box, it seems that is too new. i will
>> contact bugs@ after updating box with newer bios...
> 
> Does the machine boot if you have no HID device attached to it
> (keyboard, mice, etc) ?
> 

Nope ... dmesg is the same as usb2.jpg



Re: Supermicro X10SDV-TP8F with USB3 won't boot

2016-05-06 Thread Martin Pieuchot
On 06/05/16(Fri) 13:21, Hrvoje Popovski wrote:
> On 6.5.2016. 13:01, Martin Pieuchot wrote:
> > On 06/05/16(Fri) 01:13, Hrvoje Popovski wrote:
> >> Hi,
> >>
> >> I've got
> >> http://www.supermicro.com/products/motherboard/Xeon/D/X10SDV-TP8F.cfm
> >> for my openbsd lab. Default BIOS settings for usb is USB3 and with that
> >> settings i can't install openbsd on it, or boot installed openbsd.
> >> I have installed openbsd with disabled USB3 ie. USB2, complie kernel
> >> with USB_DEBUG, EHCI_DEBUG, XHCI_DEBUG, UHCI_DEBUG, enable USB3 in BIOS
> >> and boot... this is screenshot..
> >> http://kosjenka.srce.hr/~hrvoje/openbsd/usb.jpg
> > 
> > Could you also include UHUB_DEBUG in your debug kernel and show us the
> > resulting hanging dmesg?
> 
> screenshot with additional UHUB_DEBUG
> http://kosjenka.srce.hr/~hrvoje/openbsd/usb2.jpg
> 
> > 
> > mikeb@ just pointed to me the following thread, which suggest updating
> > your BIOS if possible:
> > https://communities.intel.com/thread/59846?start=0=0
> > 
> 
> there is no newer bios for this box, it seems that is too new. i will
> contact bugs@ after updating box with newer bios...

Does the machine boot if you have no HID device attached to it
(keyboard, mice, etc) ?



Re: Supermicro X10SDV-TP8F with USB3 won't boot

2016-05-06 Thread Hrvoje Popovski
On 6.5.2016. 13:01, Martin Pieuchot wrote:
> On 06/05/16(Fri) 01:13, Hrvoje Popovski wrote:
>> Hi,
>>
>> I've got
>> http://www.supermicro.com/products/motherboard/Xeon/D/X10SDV-TP8F.cfm
>> for my openbsd lab. Default BIOS settings for usb is USB3 and with that
>> settings i can't install openbsd on it, or boot installed openbsd.
>> I have installed openbsd with disabled USB3 ie. USB2, complie kernel
>> with USB_DEBUG, EHCI_DEBUG, XHCI_DEBUG, UHCI_DEBUG, enable USB3 in BIOS
>> and boot... this is screenshot..
>> http://kosjenka.srce.hr/~hrvoje/openbsd/usb.jpg
> 
> Could you also include UHUB_DEBUG in your debug kernel and show us the
> resulting hanging dmesg?

screenshot with additional UHUB_DEBUG
http://kosjenka.srce.hr/~hrvoje/openbsd/usb2.jpg

> 
> mikeb@ just pointed to me the following thread, which suggest updating
> your BIOS if possible:
>   https://communities.intel.com/thread/59846?start=0=0
> 

there is no newer bios for this box, it seems that is too new. i will
contact bugs@ after updating box with newer bios...



Re: Supermicro X10SDV-TP8F with USB3 won't boot

2016-05-06 Thread Martin Pieuchot
On 06/05/16(Fri) 01:13, Hrvoje Popovski wrote:
> Hi,
> 
> I've got
> http://www.supermicro.com/products/motherboard/Xeon/D/X10SDV-TP8F.cfm
> for my openbsd lab. Default BIOS settings for usb is USB3 and with that
> settings i can't install openbsd on it, or boot installed openbsd.
> I have installed openbsd with disabled USB3 ie. USB2, complie kernel
> with USB_DEBUG, EHCI_DEBUG, XHCI_DEBUG, UHCI_DEBUG, enable USB3 in BIOS
> and boot... this is screenshot..
> http://kosjenka.srce.hr/~hrvoje/openbsd/usb.jpg

Could you also include UHUB_DEBUG in your debug kernel and show us the
resulting hanging dmesg?

mikeb@ just pointed to me the following thread, which suggest updating
your BIOS if possible:
https://communities.intel.com/thread/59846?start=0=0