15.0 on RPi4, USB broken: uhub_reattach_port: port 2 reset failed, error=USB_ERR_TIMEOUT

2024-03-30 Thread Lexi Winter
hello,

i'm using 15.0 (f66a994d59) on an 4GB RPi4 with a USB<>SATA adapter for
the root disk:

usb_msc_auto_quirk: UQ_MSC_NO_GETMAXLUN set for USB mass storage device 
ASM1153USB3.0TOSATA ASM1153USB3.0TOSATA (0x174c:0x55aa)
ugen0.3:  at usbus0
umass0 on uhub1
umass0:  on usbus0
umass0:  SCSI over Bulk-Only; quirks = 0x0100
umass0:1:0: Attached to scbus1
da0 at umass-sim0 bus 0 scbus1 target 0 lun 0
da0:  Fixed Direct Access SPC-4 SCSI device
da0: Serial Number 123456789019
da0: 40.000MB/s transfers
da0: 228936MB (468862128 512 byte sectors)
da0: quirks=0x2

when connected via USB 2, this works fine.  when connected via USB 3.0,
the device sometimes fails to attach on boot, causing mountroot to fail.
i can reproduce this reliably with both GENERIC-NODEBUG and a custom
modular kernel, and sometimes (but not every boot) with GENERIC.

when the problem happens, with USB_DEBUG enabled, the kernel logs:

uhub_reattach_port: port 2 reset failed, error=USB_ERR_TIMEOUT
uhub_reattach_port: device problem (USB_ERR_TIMEOUT), disabling port 2

however, if i boot with "boot -v", the device is reliably detected
correctly.  since -v shouldn't cause any functional changes, i suspect
this may be some kind of timing issue.

i've tried increasing some of the USB timings (hw.usb.timings.*) but
this didn't seem to have any effect.  is there anything else i could try
that might affect this, or is this perhaps a known issue?

thanks, lexi.


signature.asc
Description: PGP signature


Re: CURRENT on laptop ASUS VivoBook Pro 14 90NB0VZ2-M01230

2024-03-30 Thread Matthias Apitz



(For the not working Wifi chip, I use at the moment an USB-Wifi dongle,
Realtek RTL8191S WLAN Adapter, which works fine).

I also can't get Xorg plus twm up; it says in /var/log/Xorg.0.log at the end:

..
REDWOOD, ATI Mobility Radeon Graphics, CEDAR, ATI FirePro 2270,
ATI Radeon HD 5450, CAYMAN, AMD Radeon HD 6900 Series,
AMD Radeon HD 6900M Series, Mobility Radeon HD 6000 Series, BARTS,
AMD Radeon HD 6800 Series, AMD Radeon HD 6700 Series, TURKS, CAICOS,
ARUBA, TAHITI, PITCAIRN, VERDE, OLAND, HAINAN, BONAIRE, KABINI,
MULLINS, KAVERI, HAWAII
[   248.442] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   248.442] (II) scfb: driver for wsdisplay framebuffer: scfb
[   248.442] (II) VESA: driver for VESA chipsets: vesa
[   248.442] (--) Using syscons driver with X support (version 2.0)
[   248.442] (--) using VT number 9

[   248.447] (EE) open /dev/dri/card0: No such file or directory
[   248.447] (WW) Falling back to old probe method for modesetting
[   248.447] (EE) open /dev/dri/card0: No such file or directory
[   248.447] (WW) Falling back to old probe method for scfb
[   248.447] scfb trace: probe start
..

The kernel modules loaded are:

Id Refs AddressSize Name
 1  139 0x8020  1d4f010 kernel
 21 0x81f5 36c0 coretemp.ko
 31 0x81f55000 9c48 if_cdce.ko
 42 0x81f5f000 6138 uether.ko
 51 0x81f66000 a698 cuse.ko
 61 0x81f71000f7f38 ipl.ko
 71 0x83c0   462be0 zfs.ko
 81 0x84063000   1510b8 radeonkms.ko
 92 0x841b500073da0 drm.ko
101 0x83bd7000 22a8 iic.ko
113 0x83bda000 1100 linuxkpi_gplv2.ko
124 0x83bdc000 6320 dmabuf.ko
134 0x83be3000 3080 linuxkpi_hdmi.ko
141 0x83be7000 c7b0 ttm.ko
151 0x83bf4000 3370 acpi_wmi.ko
161 0x83bf8000 5ee0 ig4.ko
171 0x84229000 3210 intpm.ko
181 0x8422d000 2178 smbus.ko
191 0x842330ad8 linux.ko
204 0x84261000 be30 linux_common.ko
211 0x8426d0002ccf8 linux64.ko
221 0x8429a000 2270 pty.ko
231 0x8429d000 3540 fdescfs.ko
241 0x842a1000 73c0 linprocfs.ko
251 0x842a9000 43e4 linsysfs.ko
261 0x842ae000 4d00 ng_ubt.ko
276 0x842b3000 bb28 netgraph.ko
282 0x842bf000 a238 ng_hci.ko
294 0x842ca000 2668 ng_bluetooth.ko
301 0x842cd000 a7e0 if_rsu.ko
311 0x842d8000 3218 iichid.ko
325 0x842dc000 32a8 hidbus.ko
331 0x842e f250 ng_l2cap.ko
341 0x842f19f08 ng_btsocket.ko
351 0x8430a000 38b8 ng_socket.ko
371 0x8432e000 21e0 hms.ko
381 0x84331000 40a8 hidmap.ko
391 0x84336000 334d hmt.ko
401 0x8433a000 22c4 hconf.ko

The complete Xorg.0.log is here: http://www.unixarea.de/Xorg.0.log.txt

Thanks in advance for ideas.

matthias
-- 
Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub



Re: Alt+Fn isn't functional. Has this been removed?

2024-03-30 Thread Tomoaki AOKI
On Fri, 29 Mar 2024 19:02:37 -0700
Chris  wrote:

> I just poured the dist files onto an earlier 15 (after removing
> the earlier version). After booting into the new install, I no longer
> had any other tty's other than ttyv0. Alt+Fn has no affect, I'm only
> getting ttyv0. getty(8) is running, and a ps waux | grep getty shows
> they're all up. Only things I saved from the older install were the
> user/group databases, rc.conf,pf.conf,jail.conf, and wpa_supplicant.conf.
> 
> What do I need to do to further isolate this problem?
> 
> Thanks.
> 
> System info:
> 
> FreeBSD fbsd15 15.0-CURRENT FreeBSD 15.0-CURRENT #0 
> main-n268793-220ee18f1964:
> Thu Mar 14 02:58:39 UTC 2024
> r...@releng3.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
> 
> CPU: 12th Gen Intel(R) Core(TM) i3-1215U (2496.00-MHz K8-class CPU)
> 
> IdeaPad 3 17IAU7
> 
> Id Refs AddressSize Name
>   1   95 0x8020  1d527c0 kernel
>   21 0x81f54000287e8 fusefs.ko
>   31 0x82d8f000   1e3228 i915kms.ko
>   42 0x82f7300085090 drm.ko
>   51 0x82ff9000 22b8 iic.ko
>   62 0x82ffc000 40e9 linuxkpi_video.ko
>   73 0x83001000 7358 dmabuf.ko
>   83 0x83009000 3378 lindebugfs.ko
>   91 0x8300d000 c338 ttm.ko
> 101 0x8301a000 5760 cuse.ko
> 111 0x8302 3390 acpi_wmi.ko
> 121 0x83024000 4250 ichsmb.ko
> 131 0x83029000 2178 smbus.ko
> 141 0x8302c00091260 if_iwlwifi.ko
> 151 0x830be000 5f90 ig4.ko
> 161 0x830c4000 4d20 ng_ubt.ko
> 173 0x830c9000 bbb8 netgraph.ko
> 182 0x830d5000 a250 ng_hci.ko
> 192 0x830e 2670 ng_bluetooth.ko
> 201 0x830e3000 3218 iichid.ko
> 215 0x830e7000 3380 hidbus.ko
> 221 0x830eb000 21e8 hms.ko
> 231 0x830ee000 40a8 hidmap.ko
> 241 0x830f3000 3355 hmt.ko
> 251 0x830f7000 22cc hconf.ko
> 261 0x830fa000 2260 pflog.ko
> 271 0x830fd00056540 pf.ko
> 281 0x83154000 3560 fdescfs.ko

Are you sure your function keys are actually function keys?
Not sure your IdeaPad is, but some Lenovo notebooks are configured
function keys as special (mute, radio,...) keys by default and needs to
configure in UEFI firmware to switch to function keys.
If it's the case, Fn+Alt+F2 would switch to vty1.

-- 
Tomoaki AOKI



Re: Alt+Fn isn't functional. Has this been removed?

2024-03-30 Thread Michael Gmelin



> On 30. Mar 2024, at 07:30, Chris  wrote:
> 
> On 2024-03-29 23:06, Michael Schuster wrote:
>> Two ideas:
>> - does CTL-ALT-Fn work?
> Thanks. But no, I tried that.
> 
>> - perhaps the number of predefined ttys was overwritten/set to 0 somewhere?
> I'm only aware of /etc/ttys, and they're all available (uncommented) and
> ps(1) indicates getty(8) is running on all the normally assigned ttyv(n)'s.
> 
> Thanks for the reply!
> 
> --Chris

In case you have a keymap defined on rc.conf, try commenting that out, reboot 
amd see if it makes a difference (as a debugging measure). 

Cheers
Michael


>> HTH
>> Michael
>>> On Sat, Mar 30, 2024, 03:03 Chris  wrote:
>>> I just poured the dist files onto an earlier 15 (after removing
>>> the earlier version). After booting into the new install, I no longer
>>> had any other tty's other than ttyv0. Alt+Fn has no affect, I'm only
>>> getting ttyv0. getty(8) is running, and a ps waux | grep getty shows
>>> they're all up. Only things I saved from the older install were the
>>> user/group databases, rc.conf,pf.conf,jail.conf, and wpa_supplicant.conf.
>>> What do I need to do to further isolate this problem?
>>> Thanks.
>>> System info:
>>> FreeBSD fbsd15 15.0-CURRENT FreeBSD 15.0-CURRENT #0
>>> main-n268793-220ee18f1964:
>>> Thu Mar 14 02:58:39 UTC 2024
>>> r...@releng3.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC
>>> amd64
>>> CPU: 12th Gen Intel(R) Core(TM) i3-1215U (2496.00-MHz K8-class CPU)
>>> IdeaPad 3 17IAU7
>>> Id Refs AddressSize Name
>>>  1   95 0x8020  1d527c0 kernel
>>>  21 0x81f54000287e8 fusefs.ko
>>>  31 0x82d8f000   1e3228 i915kms.ko
>>>  42 0x82f7300085090 drm.ko
>>>  51 0x82ff9000 22b8 iic.ko
>>>  62 0x82ffc000 40e9 linuxkpi_video.ko
>>>  73 0x83001000 7358 dmabuf.ko
>>>  83 0x83009000 3378 lindebugfs.ko
>>>  91 0x8300d000 c338 ttm.ko
>>> 101 0x8301a000 5760 cuse.ko
>>> 111 0x8302 3390 acpi_wmi.ko
>>> 121 0x83024000 4250 ichsmb.ko
>>> 131 0x83029000 2178 smbus.ko
>>> 141 0x8302c00091260 if_iwlwifi.ko
>>> 151 0x830be000 5f90 ig4.ko
>>> 161 0x830c4000 4d20 ng_ubt.ko
>>> 173 0x830c9000 bbb8 netgraph.ko
>>> 182 0x830d5000 a250 ng_hci.ko
>>> 192 0x830e 2670 ng_bluetooth.ko
>>> 201 0x830e3000 3218 iichid.ko
>>> 215 0x830e7000 3380 hidbus.ko
>>> 221 0x830eb000 21e8 hms.ko
>>> 231 0x830ee000 40a8 hidmap.ko
>>> 241 0x830f3000 3355 hmt.ko
>>> 251 0x830f7000 22cc hconf.ko
>>> 261 0x830fa000 2260 pflog.ko
>>> 271 0x830fd00056540 pf.ko
>>> 281 0x83154000 3560 fdescfs.ko
> 




Re: Alt+Fn isn't functional. Has this been removed?

2024-03-30 Thread Chris

On 2024-03-29 23:06, Michael Schuster wrote:

Two ideas:
- does CTL-ALT-Fn work?

Thanks. But no, I tried that.


- perhaps the number of predefined ttys was overwritten/set to 0 somewhere?

I'm only aware of /etc/ttys, and they're all available (uncommented) and
ps(1) indicates getty(8) is running on all the normally assigned ttyv(n)'s.

Thanks for the reply!

--Chris


HTH
Michael

On Sat, Mar 30, 2024, 03:03 Chris  wrote:


I just poured the dist files onto an earlier 15 (after removing
the earlier version). After booting into the new install, I no longer
had any other tty's other than ttyv0. Alt+Fn has no affect, I'm only
getting ttyv0. getty(8) is running, and a ps waux | grep getty shows
they're all up. Only things I saved from the older install were the
user/group databases, rc.conf,pf.conf,jail.conf, and wpa_supplicant.conf.

What do I need to do to further isolate this problem?

Thanks.

System info:

FreeBSD fbsd15 15.0-CURRENT FreeBSD 15.0-CURRENT #0
main-n268793-220ee18f1964:
Thu Mar 14 02:58:39 UTC 2024
r...@releng3.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC
amd64

CPU: 12th Gen Intel(R) Core(TM) i3-1215U (2496.00-MHz K8-class CPU)

IdeaPad 3 17IAU7

Id Refs AddressSize Name
  1   95 0x8020  1d527c0 kernel
  21 0x81f54000287e8 fusefs.ko
  31 0x82d8f000   1e3228 i915kms.ko
  42 0x82f7300085090 drm.ko
  51 0x82ff9000 22b8 iic.ko
  62 0x82ffc000 40e9 linuxkpi_video.ko
  73 0x83001000 7358 dmabuf.ko
  83 0x83009000 3378 lindebugfs.ko
  91 0x8300d000 c338 ttm.ko
101 0x8301a000 5760 cuse.ko
111 0x8302 3390 acpi_wmi.ko
121 0x83024000 4250 ichsmb.ko
131 0x83029000 2178 smbus.ko
141 0x8302c00091260 if_iwlwifi.ko
151 0x830be000 5f90 ig4.ko
161 0x830c4000 4d20 ng_ubt.ko
173 0x830c9000 bbb8 netgraph.ko
182 0x830d5000 a250 ng_hci.ko
192 0x830e 2670 ng_bluetooth.ko
201 0x830e3000 3218 iichid.ko
215 0x830e7000 3380 hidbus.ko
221 0x830eb000 21e8 hms.ko
231 0x830ee000 40a8 hidmap.ko
241 0x830f3000 3355 hmt.ko
251 0x830f7000 22cc hconf.ko
261 0x830fa000 2260 pflog.ko
271 0x830fd00056540 pf.ko
281 0x83154000 3560 fdescfs.ko