Re: LAN ure interface problem

2021-10-29 Thread John-Mark Gurney
Ludovit Koren wrote this message on Fri, Oct 22, 2021 at 16:00 +0200:
> I have installed FreeBSD 14.0-CURRENT #1 main-n250134-225639e7db6-dirty
> on my notebook HP EliteBook 830 G7 and I am using RealTek usb LAN
> interface:
> 
> ure0 on uhub0
> ure0:  on 
> usbus1
> miibus0:  on ure0
> rgephy0:  PHY 0 on miibus0
> rgephy0: OUI 0x00e04c, model 0x, rev. 0
> rgephy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 
> 1000baseT-FDX, 1000baseT-FDX-master, auto
> ue0:  on ure0
> ue0: bpf attached
> ue0: Ethernet address: 00:e0:4c:68:04:20
> 
> 
> When there is bigger load on the interface, for example rsync of the big
> directory, the carrier is lost. The only solution I found is to remove
> and insert the usb interface; ifconfig ue0 down, ifconfig ue0 up did not
> help. The output of the ifconfig:
> 
> ue0: flags=8843 metric 0 mtu 1500
> 
> options=68009b
> ether 00:e0:4c:68:04:20
> inet 192.168.1.18 netmask 0xff00 broadcast 192.168.1.255
> media: Ethernet autoselect (100baseTX )
> status: active
> nd6 options=29
> 
> I do not know and did not find anything relevant, if the driver is buggy
> or the hardware has some problems. Please, advice.

I have seen similar behavior, and unable to get an vendor support, so
have stopped working on the driver.  I have not found a reliable way to
reset the hardware to a working state, even via power_off/power_on
commands.

Sorry that I don't have a solution for you.  The closest that I could
suggest is to try to drop the USB id from the ure driver or switch it's
mode to try the ucdce driver instead.  I've seen that it's been more
reliable, but it could be because it also runs MUCH slower, and doesn't
hit the same bug.

-- 
  John-Mark Gurney  Voice: +1 415 225 5579

 "All that I will do, has been done, All that I have, has not."



Re: LAN ure interface problem

2021-10-23 Thread Ludovit Koren
> Hans Petter Selasky  writes:

> On 10/22/21 16:00, Ludovit Koren wrote:
>> Hi,
>> I have installed FreeBSD 14.0-CURRENT #1
>> main-n250134-225639e7db6-dirty
>> on my notebook HP EliteBook 830 G7 and I am using RealTek usb LAN
>> interface:
>> ure0 on uhub0
>> ure0:  
on usbus1
>> miibus0:  on ure0
>> rgephy0:  PHY 0 on miibus0
>> rgephy0: OUI 0x00e04c, model 0x, rev. 0
>> rgephy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 
1000baseT-FDX, 1000baseT-FDX-master, auto
>> ue0:  on ure0
>> ue0: bpf attached
>> ue0: Ethernet address: 00:e0:4c:68:04:20
>> When there is bigger load on the interface, for example rsync of the
>> big
>> directory, the carrier is lost. The only solution I found is to remove
>> and insert the usb interface; ifconfig ue0 down, ifconfig ue0 up did not
>> help. The output of the ifconfig:
>> ue0: flags=8843 metric 0 mtu
>> 1500
>> 
options=68009b
>> ether 00:e0:4c:68:04:20
>> inet 192.168.1.18 netmask 0xff00 broadcast 192.168.1.255
>> media: Ethernet autoselect (100baseTX )
>> status: active
>> nd6 options=29
>> I do not know and did not find anything relevant, if the driver is
>> buggy
>> or the hardware has some problems. Please, advice.
>> Regards,
>> 

> Not the same device, but similar issue:

> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258057

I don't know if I understand it right.The issue is with dropping
power... Mine is holding power right:

usbconfig 
ugen1.1: <0x8086 XHCI root HUB> at usbus1, cfg=0 md=HOST spd=SUPER (5.0Gbps) 
pwr=SAVE (0mA)
ugen0.1: <0x8086 XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) 
pwr=SAVE (0mA)
ugen0.2:  at usbus0, cfg=0 md=HOST 
spd=HIGH (480Mbps) pwr=ON (500mA)
ugen0.3:  at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) 
pwr=ON (100mA)
ugen0.4:  at usbus0, cfg=0 md=HOST spd=FULL 
(12Mbps) pwr=ON (100mA)
ugen0.5:  at usbus0, cfg=0 md=HOST spd=FULL 
(12Mbps) pwr=ON (100mA)
ugen1.2:  at usbus1, cfg=0 md=HOST spd=SUPER 
(5.0Gbps) pwr=ON (72mA)

I am attaching the usbdump -d 1.2 when it stops working.

lk



Re: LAN ure interface problem

2021-10-23 Thread Bjoern A. Zeeb

On 22 Oct 2021, at 14:00, Ludovit Koren wrote:


Hi,

I have installed FreeBSD 14.0-CURRENT #1 
main-n250134-225639e7db6-dirty

on my notebook HP EliteBook 830 G7 and I am using RealTek usb LAN
interface:

ure0 on uhub0
ure0:  
on usbus1

miibus0:  on ure0
rgephy0:  PHY 0 on miibus0
rgephy0: OUI 0x00e04c, model 0x, rev. 0
rgephy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 
1000baseT-FDX, 1000baseT-FDX-master, auto

ue0:  on ure0
ue0: bpf attached
ue0: Ethernet address: 00:e0:4c:68:04:20


When there is bigger load on the interface, for example rsync of the 
big

directory, the carrier is lost. The only solution I found is to remove
and insert the usb interface; ifconfig ue0 down, ifconfig ue0 up did 
not

help. The output of the ifconfig:

ue0: flags=8843 metric 0 mtu 
1500


options=68009b
ether 00:e0:4c:68:04:20
inet 192.168.1.18 netmask 0xff00 broadcast 192.168.1.255
media: Ethernet autoselect (100baseTX )
status: active
nd6 options=29

I do not know and did not find anything relevant, if the driver is 
buggy

or the hardware has some problems. Please, advice.


I found that issuing a usbconf reset usually helps to bring it back.

That said I have a machine with a port on a root hub directly and there 
it behaves a lot better compared to when I connect it to different port 
on the 2nd root hub with an intermediate uhub on the same machine.


/bz





Re: LAN ure interface problem

2021-10-22 Thread Hans Petter Selasky

On 10/22/21 16:00, Ludovit Koren wrote:


Hi,

I have installed FreeBSD 14.0-CURRENT #1 main-n250134-225639e7db6-dirty
on my notebook HP EliteBook 830 G7 and I am using RealTek usb LAN
interface:

ure0 on uhub0
ure0:  on usbus1
miibus0:  on ure0
rgephy0:  PHY 0 on miibus0
rgephy0: OUI 0x00e04c, model 0x, rev. 0
rgephy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 
1000baseT-FDX-master, auto
ue0:  on ure0
ue0: bpf attached
ue0: Ethernet address: 00:e0:4c:68:04:20


When there is bigger load on the interface, for example rsync of the big
directory, the carrier is lost. The only solution I found is to remove
and insert the usb interface; ifconfig ue0 down, ifconfig ue0 up did not
help. The output of the ifconfig:

ue0: flags=8843 metric 0 mtu 1500
 
options=68009b
 ether 00:e0:4c:68:04:20
 inet 192.168.1.18 netmask 0xff00 broadcast 192.168.1.255
 media: Ethernet autoselect (100baseTX )
 status: active
 nd6 options=29

I do not know and did not find anything relevant, if the driver is buggy
or the hardware has some problems. Please, advice.

Regards,



Not the same device, but similar issue:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258057

--HPS




LAN ure interface problem

2021-10-22 Thread Ludovit Koren


Hi,

I have installed FreeBSD 14.0-CURRENT #1 main-n250134-225639e7db6-dirty
on my notebook HP EliteBook 830 G7 and I am using RealTek usb LAN
interface:

ure0 on uhub0
ure0:  on usbus1
miibus0:  on ure0
rgephy0:  PHY 0 on miibus0
rgephy0: OUI 0x00e04c, model 0x, rev. 0
rgephy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 
1000baseT-FDX-master, auto
ue0:  on ure0
ue0: bpf attached
ue0: Ethernet address: 00:e0:4c:68:04:20


When there is bigger load on the interface, for example rsync of the big
directory, the carrier is lost. The only solution I found is to remove
and insert the usb interface; ifconfig ue0 down, ifconfig ue0 up did not
help. The output of the ifconfig:

ue0: flags=8843 metric 0 mtu 1500

options=68009b
ether 00:e0:4c:68:04:20
inet 192.168.1.18 netmask 0xff00 broadcast 192.168.1.255
media: Ethernet autoselect (100baseTX )
status: active
nd6 options=29

I do not know and did not find anything relevant, if the driver is buggy
or the hardware has some problems. Please, advice.

Regards,

lk