Re: [PATCH] Re: Profiling broken on x86?

2022-07-08 Thread Manuel Bouyer
On Fri, Jul 08, 2022 at 12:17:25PM +, Emmanuel Dreyfus wrote: > On Fri, Jul 08, 2022 at 11:55:13AM +0200, Manuel Bouyer wrote: > > I think it's more than this; it's to use the right instruction on the > > right CPU. But I don't remember the details > > This tests a CPU features at boot time, a

Re: [PATCH] Re: Profiling broken on x86?

2022-07-08 Thread Emmanuel Dreyfus
On Fri, Jul 08, 2022 at 11:55:13AM +0200, Manuel Bouyer wrote: > I think it's more than this; it's to use the right instruction on the > right CPU. But I don't remember the details This tests a CPU features at boot time, and replaces a generic implementation by a CPU-optimized one. Indeed it bri

Re: questions about undocumented USB drivers

2022-07-08 Thread Jonathan A. Kollasch
On Fri, Jul 08, 2022 at 09:18:47AM +, nia wrote: > I'd like to know more about these drivers so I can write man pages > for them, so any input is welcome. > ~ ~ > sys/dev/usb/slurm.c > > This one caught my eye because it doesn't have the "u" prefix. > Log message, from j

Re: [PATCH] Re: Profiling broken on x86?

2022-07-08 Thread Manuel Bouyer
On Fri, Jul 08, 2022 at 09:10:54AM +, Emmanuel Dreyfus wrote: > On Thu, Jul 07, 2022 at 12:53:33AM +, Emmanuel Dreyfus wrote: > > This is NetBSD 9.2_STABLE on amd64. If the kernel is built with > > profiling (either config -p, or makeoptions PROF="-pg" and options > > GPROF), it crashes at

questions about undocumented USB drivers

2022-07-08 Thread nia
I'd like to know more about these drivers so I can write man pages for them, so any input is welcome. sys/dev/usb/udsir.c Committed in 2013 by kiyohara@, log message was "Add KingSun/DonShine IRDA dongle." However, the copyright is 2001 dsainty@, perhaps copypasted

[PATCH] Re: Profiling broken on x86?

2022-07-08 Thread Emmanuel Dreyfus
On Thu, Jul 07, 2022 at 12:53:33AM +, Emmanuel Dreyfus wrote: > This is NetBSD 9.2_STABLE on amd64. If the kernel is built with > profiling (either config -p, or makeoptions PROF="-pg" and options > GPROF), it crashes at boot with this panic: > > panic: patchfunc: sizes do not match (from=0xff