Re: Support for more than 256 CPU cores

2023-05-05 Thread Hans Petter Selasky
On 5/5/23 17:23, Tomek CEDRO wrote: On Fri, May 5, 2023 at 3:38 PM Ed Maste wrote: FreeBSD supports up to 256 CPU cores in the default kernel configuration (on Tier-1 architectures). Systems with more than 256 cores are available now, and will become increasingly common over FreeBSD 14’s

Re: Link modules to DYN type

2023-04-26 Thread Hans Petter Selasky
On 4/26/23 13:12, Konstantin Belousov wrote: No, in-kernel linker does not behave this way. Modules need to contain explicit reference to all modules they depend upon, using the MODULE_DEPEND() macro. Only symbols from the dependencies are resolved. All modules get an implicit reference to

Re: Link modules to DYN type

2023-04-26 Thread Hans Petter Selasky
On 4/26/23 12:36, Zhenlei Huang wrote: Hi, I'm recently working on https://reviews.freebsd.org/D39638 (sysctl(9): Enable vnet sysctl variables be loader tunable), the changes to `sys/kern/link_elf_obj.c` are runtime tested, but not those to `sys/kern/link_elf.c` . After some hacking I

Re: Is it valid to combine CTLFLAG_TUN with CTLFLAG_VNET ?

2023-04-05 Thread Hans Petter Selasky
On 4/5/23 21:44, Hans Petter Selasky wrote: On 4/5/23 20:23, Gleb Smirnoff wrote: What if we remove the CTLFLAG_VNET check from the code you posted above? I don't see anything going wrong, rather going right  CTLFLAG_VNET will not mask away CTLFLAG_TUN. Hi Gleb, It's possible to bypass

Re: Is it valid to combine CTLFLAG_TUN with CTLFLAG_VNET ?

2023-04-05 Thread Hans Petter Selasky
On 4/5/23 20:23, Gleb Smirnoff wrote: What if we remove the CTLFLAG_VNET check from the code you posted above? I don't see anything going wrong, rather going right  CTLFLAG_VNET will not mask away CTLFLAG_TUN. Hi Gleb, It's possible to bypass that check, but some work needs to be done

Re: vt and keyboard accents

2023-01-29 Thread Hans Petter Selasky
On 1/29/23 09:48, Yuri wrote: Hans Petter Selasky wrote: On 1/29/23 01:54, Yuri wrote: Looking into an issue with accents input for vt and cz (so /usr/share/vt/keymaps/cz.kbd) keyboard where some of the accents are working and other result weird unrelated characters output. Checking

Re: vt and keyboard accents

2023-01-28 Thread Hans Petter Selasky
On 1/29/23 01:54, Yuri wrote: Looking into an issue with accents input for vt and cz (so /usr/share/vt/keymaps/cz.kbd) keyboard where some of the accents are working and other result weird unrelated characters output. Checking kbdcontrol -d output, there is an obvious difference with keymap

Re: TP-LINK USB no carrier after speed test

2023-01-18 Thread Hans Petter Selasky
On 1/18/23 12:45, Gary Jennejohn wrote: It's not clear from the content of README.md whether Hans has added thunderbolt to the files under /sys/conf. Currently not so much has changed there, except from regularly rebasing the repository on top of FreeBSD-main. I currently have my hands

Re: RES: TP-LINK USB no carrier after speed test

2023-01-17 Thread Hans Petter Selasky
On 1/17/23 14:13, Ivan Quitschal wrote: not THAT fine of course, since its limited to around 300mbps. when in USB 3 it reaches 600mbps just fine. but besides that limitation from the version 2.0, it really works. ive tried a whole day of heavy traffic here and nothing happened at all. rings

Re: ULE realtime scheduler advice needed

2022-11-22 Thread Hans Petter Selasky
On 11/22/22 20:28, mike tancsa wrote: On 11/17/2022 11:47 PM, Hans Petter Selasky wrote: Hi, I'm doing some work with audio and have noticed some problems with the ULE scheduler. I have a program that generate audio based on key-presses. When no keys are pressed, the load is near 0

Re: ULE realtime scheduler advice needed

2022-11-21 Thread Hans Petter Selasky
On 11/21/22 20:12, Mark Johnston wrote: There were some bug fixes earlier this year to address problems where high-priority threads were not getting scheduled quickly enough. If you're using an old kernel, they might improve things: Are any of these fixes merged to stable/13 ? --HPS

Re: ULE realtime scheduler advice needed

2022-11-19 Thread Hans Petter Selasky
Hi Alexander, Thank you for the pointers. I will try it out. --HPS On 11/18/22 09:18, Alexander Leidinger wrote: Quoting Hans Petter Selasky (from Fri, 18 Nov 2022 05:47:58 +0100): Hi, I'm doing some work with audio and have noticed some problems with the ULE scheduler. I have

ULE realtime scheduler advice needed

2022-11-17 Thread Hans Petter Selasky
Hi, I'm doing some work with audio and have noticed some problems with the ULE scheduler. I have a program that generate audio based on key-presses. When no keys are pressed, the load is near 0%, but as soon as you start pressing keys, the load goes maybe to 80% of a CPU core. This program I

Re: DESPARATE: How to stop FreeBSD form sleeping / disable ACPI? (on FreeBSD14 CURRENT)

2022-11-10 Thread Hans Petter Selasky
Hi, I don't know what you mean by "sleep", but some CPUs have bug and setting: sysctl machdep.idle=spin Helps! --HPS

Re: morse(6) sound

2022-10-29 Thread Hans Petter Selasky
On 10/30/22 00:05, Nuno Teixeira wrote: Considering that morse could use same beep dsp code, instead of repeating dsp code inside morse, why not use a dsp library or something so that morse could use it without duplicating code? If you figure out a good name for it. Not sure if it is worth a

Re: morse(6) sound

2022-10-29 Thread Hans Petter Selasky
On 10/29/22 20:18, Nuno Teixeira wrote: Technically you could symlink the two - yes. Can't understand how, what do I missing? In the main() routine, the name of the program name is passed. Then you just check if argv[0] == "morse" and invoke main_morse() instead, if you see. Of course you

Re: morse(6) sound

2022-10-29 Thread Hans Petter Selasky
. --HPS Hans Petter Selasky escreveu no dia sábado, 29/10/2022 à(s) 16:33: On 10/29/22 15:36, Nuno Teixeira wrote: Hello, unixcw is what I was looking for. I think I will include it in some scripts just for fun :) I've started with base morse because it was nice if it can be updated

Re: morse(6) sound

2022-10-29 Thread Hans Petter Selasky
On 10/29/22 15:36, Nuno Teixeira wrote: Hello, unixcw is what I was looking for. I think I will include it in some scripts just for fun :) I've started with base morse because it was nice if it can be updated to play on dsp too. And yes, `cw -w 60 < /etc/passwd` it's really cool. You may

Re: Accessibility in the FreeBSD installer and console

2022-10-05 Thread Hans Petter Selasky
On 7/18/22 14:46, Hans Petter Selasky wrote: Hi, There are three work in progress patches pending: 1) Updates for kernel https://reviews.freebsd.org/D35754 2) Updates for beep https://reviews.freebsd.org/D35772 3) New vtspeakd daemon https://reviews.freebsd.org/D35776 Please test if you can

Re: build world fails on raw_ip.c

2022-10-04 Thread Hans Petter Selasky
On 10/4/22 15:49, Hans Petter Selasky wrote: On 10/4/22 15:35, Gary Jennejohn wrote: On Tue, 4 Oct 2022 15:20:05 +0200 Hans Petter Selasky wrote: On 10/4/22 15:14, Johan Hendriks wrote: I just updated the source today but now i get an error building world. The old build was from yesterday

Re: build world fails on raw_ip.c

2022-10-04 Thread Hans Petter Selasky
On 10/4/22 15:35, Gary Jennejohn wrote: On Tue, 4 Oct 2022 15:20:05 +0200 Hans Petter Selasky wrote: On 10/4/22 15:14, Johan Hendriks wrote: I just updated the source today but now i get an error building world. The old build was from yesterday which was fine! Building /usr/obj/usr/src

Re: build world fails on raw_ip.c

2022-10-04 Thread Hans Petter Selasky
On 10/4/22 15:35, Gary Jennejohn wrote: On Tue, 4 Oct 2022 15:20:05 +0200 Hans Petter Selasky wrote: On 10/4/22 15:14, Johan Hendriks wrote: I just updated the source today but now i get an error building world. The old build was from yesterday which was fine! Building /usr/obj/usr/src

Re: build world fails on raw_ip.c

2022-10-04 Thread Hans Petter Selasky
On 10/4/22 15:14, Johan Hendriks wrote: I just updated the source today but now i get an error building world. The old build was from yesterday which was fine! Building /usr/obj/usr/src/amd64.amd64/sys/KRNL/raw_ip.o cc -target x86_64-unknown-freebsd14.0

Re: [RFC] Three patches for time infrastructure in FreeBSD!

2022-10-03 Thread Hans Petter Selasky
On 10/3/22 15:26, Renato Botelho wrote: On 03/10/22 10:20, Hans Petter Selasky wrote: Hi, I've made three patches to improve conversion between timing units, like sbintime, and usecs and so on. I've been testing these for some days and can see a notiable difference when using realtime

[RFC] Three patches for time infrastructure in FreeBSD!

2022-10-03 Thread Hans Petter Selasky
Hi, I've made three patches to improve conversion between timing units, like sbintime, and usecs and so on. I've been testing these for some days and can see a notiable difference when using realtime audio applications, in the form of less jitter, audio/hpsjam and video-chat using

Re: usbhid panic when switching vt-s (invariants+witness enabled)

2022-09-30 Thread Hans Petter Selasky
On 9/30/22 12:31, Andriy Gapon wrote: On 26/09/2022 18:13, Hans Petter Selasky wrote: On 9/23/22 23:43, Hans Petter Selasky wrote: vpanic() at 0x808f4c84 = vpanic+0x184/frame 0xfe003590e900 panic() at 0x808f4a33 = panic+0x43/frame 0xfe003590e960 sleepq_add

Re: RES: TP-LINK USB no carrier after speed test

2022-09-28 Thread Hans Petter Selasky
On 9/28/22 11:47, Tomoaki AOKI wrote: As I stated on Bug 237666 [1], I have Titan Ridge TB3 bridge on my ThinkPad P52. The relevant part of HW probe is at comment 206 [2]. Are there any other info I can provide for Titan Ridge support? (Not yet tried the codes.)

Re: RES: TP-LINK USB no carrier after speed test

2022-09-28 Thread Hans Petter Selasky
On 9/28/22 11:07, Ivan Quitschal wrote: On Tue, 27 Sep 2022, Hans Petter Selasky wrote: On 9/27/22 15:22, Hans Petter Selasky wrote: On 9/27/22 14:17, Ivan Quitschal wrote: On Tue, 27 Sep 2022, Hans Petter Selasky wrote: On 9/27/22 02:24, Alexander Motin wrote: On 26.09.2022 17:29

Re: RES: TP-LINK USB no carrier after speed test

2022-09-27 Thread Hans Petter Selasky
On 9/27/22 15:22, Hans Petter Selasky wrote: On 9/27/22 14:17, Ivan Quitschal wrote: On Tue, 27 Sep 2022, Hans Petter Selasky wrote: On 9/27/22 02:24, Alexander Motin wrote: On 26.09.2022 17:29, Hans Petter Selasky wrote: I've got a supposedly "broken" if_ure dongle from

Re: RES: TP-LINK USB no carrier after speed test

2022-09-27 Thread Hans Petter Selasky
On 9/27/22 14:17, Ivan Quitschal wrote: On Tue, 27 Sep 2022, Hans Petter Selasky wrote: On 9/27/22 02:24, Alexander Motin wrote: On 26.09.2022 17:29, Hans Petter Selasky wrote: I've got a supposedly "broken" if_ure dongle from Alexander, but I'm unable to reproduce the if_ure h

Re: RES: TP-LINK USB no carrier after speed test

2022-09-27 Thread Hans Petter Selasky
On 9/27/22 02:24, Alexander Motin wrote: On 26.09.2022 17:29, Hans Petter Selasky wrote: I've got a supposedly "broken" if_ure dongle from Alexander, but I'm unable to reproduce the if_ure hang on two different pieces of XHCI hardware, Intel based and AMD based, which I've got. Thi

Re: RES: RES: TP-LINK USB no carrier after speed test

2022-09-27 Thread Hans Petter Selasky
On 9/27/22 00:25, Ivan Quitschal wrote: Hi Hans, how do you want me to do those tests for you ? with or without any of your patches? With the actual code on git ? Without any patches. --HPS

Re: RES: TP-LINK USB no carrier after speed test

2022-09-26 Thread Hans Petter Selasky
On 9/26/22 21:28, Alexander Motin wrote: Ivan, On 26.09.2022 13:11, Ivan Quitschal wrote: bad news im afraid, problem occurred at the first attempt on speedtest.net. and I'm really trying to help you analizying this code here myself, but problem is: im far from expert on network protocol

Re: usbhid panic when switching vt-s (invariants+witness enabled)

2022-09-26 Thread Hans Petter Selasky
On 9/23/22 23:43, Hans Petter Selasky wrote: vpanic() at 0x808f4c84 = vpanic+0x184/frame 0xfe003590e900 panic() at 0x808f4a33 = panic+0x43/frame 0xfe003590e960 sleepq_add() at 0x809521ab = sleepq_add+0x37b/frame 0xfe003590e9b0 _sleep() at 0x80902118

Re: RES: TP-LINK USB no carrier after speed test

2022-09-26 Thread Hans Petter Selasky
Hi Ivan, Can you revert all if_ure patches, and try this one instead. --HPSdiff --git a/sys/dev/usb/controller/xhci.c b/sys/dev/usb/controller/xhci.c index 045be9a40b99..09aefb02687d 100644 --- a/sys/dev/usb/controller/xhci.c +++ b/sys/dev/usb/controller/xhci.c @@ -2848,8 +2848,16 @@

Re: usbhid panic when switching vt-s (invariants+witness enabled)

2022-09-23 Thread Hans Petter Selasky
On 9/23/22 23:33, Andriy Gapon wrote: It seems that the problem may be related to different keyboard LED states between the VTs.  The system is a fresh stable/13.  The panic looks like an attempt to sleep while in an interrupt thread (a callout?). Hi, I suspect vt_switch_timer must have

Re: RES: TP-LINK USB no carrier after speed test

2022-09-19 Thread Hans Petter Selasky
Hi Ivan, Can you also test this USB kernel patch? And revert your if_ure.c patch? --HPSdiff --git a/sys/dev/usb/usb_transfer.c b/sys/dev/usb/usb_transfer.c index 20ed2c897aac..757697926106 100644 --- a/sys/dev/usb/usb_transfer.c +++ b/sys/dev/usb/usb_transfer.c @@ -419,6 +419,7 @@

Re: RES: TP-LINK USB no carrier after speed test

2022-09-19 Thread Hans Petter Selasky
On 9/18/22 13:50, Ivan Quitschal wrote: Hi Hans just a heads up, it worked, tested a thousand times and the problem does not occur anylonger after i changed the constant to 2048 but upload speed was affcted a little i believe. insted of 600/300 of internet speed , im having 600/90 but thats

Re: RES: TP-LINK USB no carrier after speed test

2022-09-16 Thread Hans Petter Selasky
On 9/16/22 16:31, Ivan Quitschal wrote: -Mensagem original- De: Hans Petter Selasky Enviada em: sexta-feira, 16 de setembro de 2022 10:40 Para: Ivan Quitschal Cc: freebsd-current@freebsd.org Assunto: Re: TP-LINK USB no carrier after speed test On 9/16/22 14:18, Ivan Quitschal wrote

Re: TP-LINK USB no carrier after speed test

2022-09-16 Thread Hans Petter Selasky
Hi, I compared the Linux code and the FreeBSD code, and the Linux code has firmware upload support for this device. Maybe implementing that will fix some issues. Will come back to this after EuroBSDcon :-) --HPS

Re: TP-LINK USB no carrier after speed test

2022-09-16 Thread Hans Petter Selasky
On 9/16/22 14:18, Ivan Quitschal wrote: On Fri, 16 Sep 2022, Hans Petter Selasky wrote: On 9/16/22 08:34, Hans Petter Selasky wrote: On 9/16/22 08:20, Hans Petter Selasky wrote: On 9/15/22 17:36, Ivan Quitschal wrote: On Thu, 15 Sep 2022, Ivan Quitschal wrote: On Thu, 15 Sep 2022

Re: TP-LINK USB no carrier after speed test

2022-09-16 Thread Hans Petter Selasky
On 9/16/22 08:34, Hans Petter Selasky wrote: On 9/16/22 08:20, Hans Petter Selasky wrote: On 9/15/22 17:36, Ivan Quitschal wrote: On Thu, 15 Sep 2022, Ivan Quitschal wrote: On Thu, 15 Sep 2022, Hans Petter Selasky wrote: On 9/15/22 17:18, Hans Petter Selasky wrote: On 9/15/22 17:16

Re: TP-LINK USB no carrier after speed test

2022-09-16 Thread Hans Petter Selasky
On 9/16/22 08:20, Hans Petter Selasky wrote: On 9/15/22 17:36, Ivan Quitschal wrote: On Thu, 15 Sep 2022, Ivan Quitschal wrote: On Thu, 15 Sep 2022, Hans Petter Selasky wrote: On 9/15/22 17:18, Hans Petter Selasky wrote: On 9/15/22 17:16, Ivan Quitschal wrote: Hi All Does anybody

Re: TP-LINK USB no carrier after speed test

2022-09-16 Thread Hans Petter Selasky
On 9/15/22 17:36, Ivan Quitschal wrote: On Thu, 15 Sep 2022, Ivan Quitschal wrote: On Thu, 15 Sep 2022, Hans Petter Selasky wrote: On 9/15/22 17:18, Hans Petter Selasky wrote: On 9/15/22 17:16, Ivan Quitschal wrote: Hi All Does anybody have any idea what could be happening here?. I

Re: TP-LINK USB no carrier after speed test

2022-09-15 Thread Hans Petter Selasky
On 9/15/22 17:18, Hans Petter Selasky wrote: On 9/15/22 17:16, Ivan Quitschal wrote: Hi All Does anybody have any idea what could be happening here?. I have a laptop DELL INSPIRON 3511 and everything works just fine, literally everything. even the iwlwifi0. But in order to use my full

Re: TP-LINK USB no carrier after speed test

2022-09-15 Thread Hans Petter Selasky
On 9/15/22 17:16, Ivan Quitschal wrote: Hi All Does anybody have any idea what could be happening here?. I have a laptop DELL INSPIRON 3511 and everything works just fine, literally everything. even the iwlwifi0. But in order to use my full 600mbps, i dont use the wireless but a TP-LINK

Re: [RFC] Proposal adding new sorting algorithm, bsort() to libc

2022-09-08 Thread Hans Petter Selasky
On 9/8/22 12:50, Hans Petter Selasky wrote: See: https://reviews.freebsd.org/D36493 Looking through base I see qsort() being used in places it shouldn't be used. For example in fts_open(). If for example you fill a directory with 64k simply numerical file names in the wrong order and ask

[RFC] Proposal adding new sorting algorithm, bsort() to libc

2022-09-08 Thread Hans Petter Selasky
See: https://reviews.freebsd.org/D36493 Looking through base I see qsort() being used in places it shouldn't be used. For example in fts_open(). If for example you fill a directory with 64k simply numerical file names in the wrong order and ask fts_open() to sort these ascending for

Re: vt newcons 3 clicks mouse paste issue FIXED

2022-08-04 Thread Hans Petter Selasky
Hi Ivan, Can you upload your patch to differential revision at freebsd.org ? https://reviews.freebsd.org/differential/ Then maybe someone else or me can approve and commit it! --HPS

Re: Accessibility in the FreeBSD installer and console

2022-07-18 Thread Hans Petter Selasky
Hi, There are three work in progress patches pending: 1) Updates for kernel https://reviews.freebsd.org/D35754 2) Updates for beep https://reviews.freebsd.org/D35772 3) New vtspeakd daemon https://reviews.freebsd.org/D35776 Please test if you can! Feedback is welcome. --HPS

Re: Accessibility in the FreeBSD installer and console

2022-07-10 Thread Hans Petter Selasky
Hi Klaus and Michael, I've tried to make some graphical QT v6.x cross platform so-called accessible applications. It is really hard to get it right. If you use one QT widget, everything is read perfectly in MacOS and if you use another QT widget, or a custom one, it is just not working. Or if

Re: Accessibility in the FreeBSD installer and console

2022-07-08 Thread Hans Petter Selasky
On 7/8/22 14:34, David Chisnall wrote: On 08/07/2022 13:18, Stefan Esser wrote: Am 08.07.22 um 12:53 schrieb Hans Petter Selasky: Hi, Here is the complete patch for Voice-Over in the FreeBSD console: https://reviews.freebsd.org/D35754 You need to install espeak from pkg and then install

Re: FreeBSD is a great operating system!

2022-07-08 Thread Hans Petter Selasky
On 7/8/22 05:40, Turritopsis Dohrnii Teo En Ming wrote: Dear Hans Petter Selasky, Why do you say FreeBSD license is a killer? Because you can do anything you want with the operating system :-) --HPS

Re: Accessibility in the FreeBSD installer and console

2022-07-08 Thread Hans Petter Selasky
Hi, Here is the complete patch for Voice-Over in the FreeBSD console: https://reviews.freebsd.org/D35754 You need to install espeak from pkg and then install the /etc/devd/accessibility.conf file and then run sysctl kern.vt.accessibility.enable=1 after booting the new kernel. It is

Re: Accessibility in the FreeBSD installer and console

2022-07-07 Thread Hans Petter Selasky
On 7/7/22 23:26, John Kennedy wrote: On Thu, Jul 07, 2022 at 10:11:52PM +0200, Klaus Küchemann wrote: Am 07.07.2022 um 19:32 schrieb Hans Petter Selasky : The only argument I've heard from some non-sighted friends about not using FreeBSD natively is that ooh, MacOSX is so cool. It starts

Accessibility in the FreeBSD installer and console

2022-07-07 Thread Hans Petter Selasky
Hi, The only argument I've heard from some non-sighted friends about not using FreeBSD natively is that ooh, MacOSX is so cool. It starts speaking from the start if I press this and this key. Is anyone here working on or wanting such a feature? I mean it should be so much easier to text to

Re: FreeBSD is a great operating system!

2022-07-06 Thread Hans Petter Selasky
On 7/6/22 10:07, Turritopsis Dohrnii Teo En Ming wrote: Subject: FreeBSD is a great operating system! Good day from Singapore, I think FreeBSD is a great operating system! I support FreeBSD because the most popular pfSense firewall, the extremely popular OPNsense firewall and the BSD Router

Re: iichid/hms keyboard/mouse wrongly reattached to uhid/ums

2022-06-27 Thread Hans Petter Selasky
On 6/27/22 17:19, Ivan Quitschal wrote: Hi all Not sure if I found a problem here but here we go. Since I have a KVM usb switch here for keyboard/mouse sometimes I toggle it between my windows and freebsd. I am using iichid here to have my multimedia keys working on keyboard and all

Re: vt newcons mouse paste issue FIXED

2022-06-25 Thread Hans Petter Selasky
On 6/24/22 18:51, Tomoaki AOKI wrote: On Fri, 24 Jun 2022 17:29:26 +0200 Hans Petter Selasky wrote: Hi Tomoaki, Please retest: https://reviews.freebsd.org/D35552 Pushing this after some local tests. --HPS

Re: vt newcons mouse paste issue FIXED

2022-06-24 Thread Hans Petter Selasky
Hi Tomoaki, On 6/24/22 16:48, Hans Petter Selasky wrote: IDEOGRAPHIC (Full-width) SPACE According to this page: https://jkorpela.fi/chars/spaces.html There are multiple uni-code characters which are spaces. Should we support them all? --HPS

Re: vt newcons mouse paste issue FIXED

2022-06-24 Thread Hans Petter Selasky
On 6/24/22 16:02, Tomoaki AOKI wrote: On Thu, 23 Jun 2022 21:41:38 +0200 Hans Petter Selasky wrote: Hi, https://reviews.freebsd.org/D35552 Updated! Please test! --HPS As I've commented on Phabricator, works perfect except one CJK-related mis-behaviour. IDEOGRAPHIC (Full-width) SPACE

Re: vt newcons mouse paste issue FIXED

2022-06-23 Thread Hans Petter Selasky
Hi, https://reviews.freebsd.org/D35552 Updated! Please test! --HPS

Re: RES: RES: RES: RES: vt newcons mouse paste issue FIXED

2022-06-23 Thread Hans Petter Selasky
On 6/23/22 21:32, Ivan Quitschal wrote: Hi, Please test this latest version:

Re: RES: RES: RES: vt newcons mouse paste issue FIXED

2022-06-23 Thread Hans Petter Selasky
Hi, Please test this latest version: https://reviews.freebsd.org/D35552 --HPS

Re: RES: RES: vt newcons mouse paste issue FIXED

2022-06-22 Thread Hans Petter Selasky
On 6/22/22 18:48, Tomoaki AOKI wrote: Hi. Not actually tested, but this can cause breakage on non-ascii cases. Maybe also (or instead) iswspace() test would be needed. Possibly additional mbrtowc() in the argument of iswspace(). Please see `man 3 multibyte` and `man 3 iswspace`. (Possibly more

Re: RES: RES: vt newcons mouse paste issue FIXED

2022-06-22 Thread Hans Petter Selasky
On 6/22/22 18:41, Hans Petter Selasky wrote: Hi, I needed to update the patch a bit. Can you test this: https://reviews.freebsd.org/D35552 Use the download raw patch link in there to get the patch. Thank you! --HPS One more update. --HPS

Re: RES: RES: vt newcons mouse paste issue FIXED

2022-06-22 Thread Hans Petter Selasky
Hi, I needed to update the patch a bit. Can you test this: https://reviews.freebsd.org/D35552 Use the download raw patch link in there to get the patch. Thank you! --HPS

Re: RES: vt newcons mouse paste issue FIXED

2022-06-22 Thread Hans Petter Selasky
On 6/22/22 15:36, Ivan Quitschal wrote: Hi Hans Hi Ivan, I think you should upload the diff at: https://reviews.freebsd.org/differential/ Make the diff like this: diff -u -C 99 sys/dev/vt/vt_buf.c.orig sys/dev/vt/vt_buf.c > a.diff I see two issues: 1) Pointer arithmetics is not so

Re: vt newcons mouse paste issue FIXED

2022-06-22 Thread Hans Petter Selasky
On 6/22/22 14:53, Ivan Quitschal wrote: Hi All About this anoying paste error we still have in vt console, I looked it up and couldnt find any fix regarding this, so i did it. Please find attached the fixed version of /usr/src/sys/dev/vt/vt_buf.c with trim spaces and aligned to the console

Re: A kernel crash after compiling a fresh kernel

2022-06-08 Thread Hans Petter Selasky
Hi, Does this patch fix your issue? --HPScommit cc7a224fa956372cc5c5b4d29aa6906d79bd9f26 Author: Hans Petter Selasky Date: Wed Jun 8 08:49:55 2022 +0200 tcp: Skip sackhole KASSERTS() on NULL Inadvertedly introduced NULL pointer dereference during sackhole sanity check

Re: commit 99902b1 causes kernel panics

2022-06-05 Thread Hans Petter Selasky
On 6/4/22 23:21, Michael Butler wrote: On a Dell E6430 laptop with an i5-3340M CPU on-board but no additional video adapter, this commit causes a panic when i915kms is loaded :-( This adapter does not use any additional firmware. Reverting only this change allows me to run way past it - up to

Re: Testing 14-CURRENT-f44280bf5fb on aarch64

2022-05-10 Thread Hans Petter Selasky
On 5/10/22 09:37, Daniel Morante wrote: Updated to the latest (14.0-CURRENT #2 main-n255521-10f44229dcd: Tue May 10 02:52:27 EDT 2022) and removed the sysctl option (hw.usb.disable_enumeration=1). Still seeing the problem.  The below just endlessly prints out on the console: ```

Re: Testing 14-CURRENT-f44280bf5fb on aarch64

2022-05-04 Thread Hans Petter Selasky
On 5/4/22 09:49, Daniel Morante wrote: I'm still using the sysctl option "hw.usb.disable_enumeration=1" to prevent the USB devices from disconnecting/reconnecting every few seconds.  Other than that the improvement in stability with 14-CURRENT on aarach64 on this hardware is much better since

Re: What are the in-kernel functions to format time?

2022-03-11 Thread Hans Petter Selasky
On 3/11/22 12:20, Gary Jennejohn wrote: Do you mean the %zd? kvprintf() checks for a zflag and handles the argument as size_t or ssize_t, depending on whether the sign is positive or negative. Hi, Given that time is a 64-bit value, then probably "%llu", and (unsigned long long)bintime would

Re: What are the in-kernel functions to format time?

2022-03-11 Thread Hans Petter Selasky
On 3/11/22 10:49, Alexander Leidinger wrote: Hi, I'm looking for a function to convert bintime to a human readable format in the kernel... and what is the usual format we use? The use case for this is: if something throws a log from the kernel about a signal, I want to know when it

Re: New panic in main-n253273-a52d8d4a6c6:

2022-02-21 Thread Hans Petter Selasky
On 2/22/22 00:42, Michael Jung wrote: Hi: I was trying to remember what I did that was odd when this crash occurred then it hit me. You can repeat this panic by doing: # watch -I -W pts/0 Here is another panic that happened write after issuing "watch" for comparison.

Re: New panic in main-n253273-a52d8d4a6c6:

2022-02-21 Thread Hans Petter Selasky
On 2/21/22 14:07, Michael Jung wrote: (kgdb) fram 16 #16 0x80bad587 in closefp_impl (fdp=0xfe012b7c0430, fd=4, fp=0xf801cc119280, td=0xfe00df8d0560, audit=true) at /usr/src/sys/kern/kern_descrip.c:1300 1300error = closef(fp, td); (kgdb) print /x *fdp $1 =

Re: New panic in main-n253273-a52d8d4a6c6:

2022-02-20 Thread Hans Petter Selasky
On 2/20/22 21:53, Michael Jung wrote: Hi! The box was quite busy at the time. The only odd thing I am aware of and which I do not think is related is I have not been able to expand one of my zpool's. ZFS sees my added draid2:2d:10c:0s vdev but I can't seem to force zpool's expansion - my

pxeboot binary is too big on FreeBSD (>640KBytes)

2022-02-20 Thread Hans Petter Selasky
FYI: After a lot of digging trying everything, I found that the pxeboot and loader.efi was too big simply due to ZFS support. So I did this after buildworld: cd /usr/src/stand make WITHOUT_LOADER_ZFS=YES clean make WITHOUT_LOADER_ZFS=YES all make WITHOUT_LOADER_ZFS=YES install And now it

Re: Patch for patch, but not foreach :-)

2022-02-18 Thread Hans Petter Selasky
On 5/10/21 15:57, Hans Petter Selasky wrote: On 5/7/21 11:58 PM, Chris wrote: On 2021-05-07 14:10, Michael Gmelin wrote: What about using "."? Or "/" (which would match the muscle memory of "search" in less/more/vi/some browsers)? +1 I really like that idea. H

Re: USB CD Eject Failures

2022-02-17 Thread Hans Petter Selasky
On 2/17/22 03:31, Sean Bruno wrote: Been playing around with sysutils/eject to automate some media backup stuff. I note that "after a number of ejects" the USB 2 CD drive will cease responding.  I don't think its a race to failure, it acts like resource starvation/leak.  Seems fairly

Re: observations on Ryzen 5xxx (Zen 3) processors

2021-12-22 Thread Hans Petter Selasky
On 12/22/21 13:42, Andriy Gapon wrote: There have been some reports on strange / unexpected things with Ryzen 5xxx processors.  I think I have seen 5950X, 5900X and 5800X mentioned, not sure about others. Since I have 5800X myself I looked into a couple of issues that have straightforward

Re: On amd64 main-n251456-22c4ab6cb015-dirty (Dec.-7): /boot/kernel/ng_ubt.ko is getting "symbol sysctl___net_bluetooth undefined"

2021-12-16 Thread Hans Petter Selasky
On 12/15/21 23:58, Mark Millard via freebsd-current wrote: Back when I upgraded the ThreadRipper 1950X amd64 system to (line split for readability): # uname -apKU FreeBSD CA72_16Gp_ZFS 14.0-CURRENT FreeBSD 14.0-CURRENT #25 main-n251456-22c4ab6cb015-dirty: Tue Dec 7 19:38:53 PST 2021

Re: What to do about tgammal?

2021-12-04 Thread Hans Petter Selasky
On 12/4/21 19:53, Steve Kargl wrote: What to do about tgammal? A long time ago (2013-09-06), theraven@ committed a kludge that mapped several missing long double math functions to double math functions (e.g., tanhl(x) was mapped to tanh(x)). Over the next few years, I (along with bde and das

sys/conf: Simplify configuration files

2021-12-02 Thread Hans Petter Selasky
Hi fellow kernel developers, I have two patches for config(8) which will allow us to group filenames in sys/conf/files* among others. Any strong opinions about the following change? https://reviews.freebsd.org/D33224 --HPS

Re: sound on FreeBSD 14.0-CURRENT

2021-11-17 Thread Hans Petter Selasky
On 11/17/21 13:36, Ludovit Koren wrote: firefox plays via speakers In firefox go to "about:config", then add this string: media.cubeb.backend oss Then restart firefox. --HPS

Re: sound on FreeBSD 14.0-CURRENT

2021-11-17 Thread Hans Petter Selasky
Hi Ludovit, It does not work automatically on the new notebook. I suppose pcm1, is the output for the jack headphones. I just tried without virtual_oss, with virtual_oss, starting with -f /dev/dsp0; /dev/dsp1; /dev/dsp2; /dev/dsp1.0; /dev/dsp2.0; then using virtual_oss_cmd using different

Re: sound on FreeBSD 14.0-CURRENT

2021-11-17 Thread Hans Petter Selasky
Hi, Still the same result... Please show all commands you try! Can you explain, which if these devices you want to receive audio from, and which you want to transmit audio to: pcm0: (play/rec) default pcm1: (play) pcm2: (play) It might also be the mixer has the volume or recording

Re: sound on FreeBSD 14.0-CURRENT

2021-11-16 Thread Hans Petter Selasky
On 11/16/21 20:59, Ludovit Koren wrote: Hans Petter Selasky writes: > Hi, >> It is not working... >> Just a thought... Could not be the problem how are the apps built >> (chromium, firefox), i.e. which options are set on? > No, the default sh

Re: sound on FreeBSD 14.0-CURRENT

2021-11-16 Thread Hans Petter Selasky
Hi, It is not working... Just a thought... Could not be the problem how are the apps built (chromium, firefox), i.e. which options are set on? No, the default should work out of the box. What does "which virtual_oss_cmd" output? Maybe /usr/local/bin is not in your PATH? regards, Can

Re: sound on FreeBSD 14.0-CURRENT

2021-11-16 Thread Hans Petter Selasky
On 11/16/21 11:26, Ludovit Koren wrote: Hans Petter Selasky writes: > On 11/16/21 10:40, Ludovit Koren wrote: >> Hi, >> I am running FreeBSD 14.0-CURRENT #0 main-n250646-c0525ab1d1c-dirty: >> Sat Nov 13 16:42:44 CET 2021 >> Here is the ou

Re: sound on FreeBSD 14.0-CURRENT

2021-11-16 Thread Hans Petter Selasky
On 11/16/21 10:40, Ludovit Koren wrote: Hi, I am running FreeBSD 14.0-CURRENT #0 main-n250646-c0525ab1d1c-dirty: Sat Nov 13 16:42:44 CET 2021 Here is the output from: cat /dev/sndstat Installed devices: pcm0: (play/rec) default pcm1: (play) pcm2: (play) Installed devices from userspace:

Re: current now panics when starting VBox VM

2021-11-02 Thread Hans Petter Selasky
On 11/2/21 16:37, Greg V via freebsd-current wrote: On November 2, 2021 5:16:35 PM GMT+03:00, Michael Butler via freebsd-current wrote: On current as of this morning (I haven't tried to bisect yet) .. .. with either graphics/drm-devel-kmod or graphics/drm-current-kmod, trying to start a

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,

Re: After updating main (so: 14) Orange Pi+ 2E panicked: ucom_cons_softc "'Translation Fault (L2)' on read" while typing first command after login

2021-10-12 Thread Hans Petter Selasky
On 10/12/21 3:11 AM, Mark Millard via freebsd-arm wrote: There is this "mixer" oddity for each boot: Feeding entropy: . mixer: 75:75: no such device mixer: 75:75: no such device mixer: 75:75: no such device mixer: 25:25: no such device mixer: 75:75: no such device mixer: 75:75: no such device

Re: [HEADSUP] making /bin/sh the default shell for root

2021-09-23 Thread Hans Petter Selasky
Hi, I've always used "tcsh" for root. The little help you get on the command line to search and repeat commands is very useful compared to plain "sh". Sorry for top-posting. --HPS

AMD Ryzen 5 3400G with Radeon Vega Graphics

2021-08-05 Thread Hans Petter Selasky
Hi, I was lucky to get the hands on a mini-ITX containing a "AMD Ryzen 5 3400G with Radeon Vega Graphics". FreeBSD-13 installed just fine and 4K HDMI output works too with AMDGPU. However I noticed some problems with a webcamd DVB-T receiver, that it had lots of dropouts I couldn't

Re: Kernel/driver hacking: panic: Assertion vm_object_busied((m->object)) failed at /usr/src/sys/vm/vm_page.c:5455

2021-06-20 Thread Hans Petter Selasky
On 6/20/21 7:32 AM, Neel Chauhan wrote: On 2021-06-18 20:03, Neel Chauhan wrote: Apparently, the vm_start values is for some reason coming as 0 when it is passed into vm_fault_cpu(). That's why it's giving these errors: of course the address at 0 is mapped, it is (probably) used by the kernel.

Re: Kernel/driver hacking: panic: Assertion vm_object_busied((m->object)) failed at /usr/src/sys/vm/vm_page.c:5455

2021-06-16 Thread Hans Petter Selasky
Hi Neel, On 6/16/21 5:28 PM, Neel Chauhan wrote: Hi, On 2021-06-16 00:35, Hans Petter Selasky wrote: Do you have the full backtrace? Yes. I have attached a stack trace in the previous email, but if you didn't get it, I have uploaded it to GitHub: https://gist.github.com/neelchauhan

Re: Kernel/driver hacking: panic: Assertion vm_object_busied((m->object)) failed at /usr/src/sys/vm/vm_page.c:5455

2021-06-16 Thread Hans Petter Selasky
On 6/16/21 5:36 AM, Neel Chauhan wrote: Hi current@, First off, sorry if I spammed developers@ and other mailing lists with my previous message, and to bz@/hselasky@/manu@ sent so many duplicate emails. Right now, I am attempting to update the drm-kmod driver to the Linux 5.7 code, and am

  1   2   3   4   5   6   7   8   9   10   >