Re: [please test] tsc: derive frequency on AMD CPUs from MSRs

2022-09-23 Thread Timo Myyrä
Scott Cheloha [2022-09-23, 14:51 -0500]: > On Fri, Sep 23, 2022 at 10:40:19PM +0300, Timo Myyr?? wrote: > >> Scott Cheloha [2022-09-23, 09:16 -0500]: >> >> > [...] >> > >> > Test results? Clues on reading the configuration space? >> > >> > [...] >> >> Hi, >> >> Here's a dmesg from thinkpad e

Re: [please test] tsc: derive frequency on AMD CPUs from MSRs

2022-09-23 Thread Timo Myyrä
Scott Cheloha [2022-09-23, 09:16 -0500]: > Hi, > > TL;DR: > > I want to compute the TSC frequency on AMD CPUs using the methods laid > out in the AMD manuals instead of calibrating the TSC by hand. > > If you have an AMD CPU with an invariant TSC, please apply this patch, > recompile/boot the res

Re: [v5] amd64: simplify TSC sync testing

2022-07-30 Thread Timo Myyrä
Scott Cheloha [2022-07-30, 22:13 -0500]: > Hi, > > At the urging of sthen@ and dv@, here is v5. > > Two major changes from v4: > > - Add the function tc_reset_quality() to kern_tc.c and use it > to lower the quality of the TSC timecounter if we fail the > sync test. > > tc_reset_quality() w

Re: [v4] amd64: simplify TSC sync testing

2022-07-28 Thread Timo Myyrä
Scott Cheloha [2022-07-28, 20:34 -0500]: > On Thu, Jul 28, 2022 at 04:57:41PM -0400, Dave Voutila wrote: > >> >> Stuart Henderson writes: >> >> > On 2022/07/28 12:57, Scott Cheloha wrote: >> >> On Thu, Jul 28, 2022 at 07:55:40AM -0400, Dave Voutila wrote: >> >> > >> >> > This is breaking timec

Re: Driver and kernel recognition for intel AX210 wifi chip

2021-07-26 Thread Timo Myyrä
Alex Beakes [2021-07-26, 07:24 +]: > I figured it would be more appropriate mailing tech then misc, I hope such > emails are allowed. > > Intel wifi card: AX210 in the T14s gen2 intel > > If anything there is an email in misc with all the details of the probmem. > The subject: >>Device not

slimblade support

2020-11-20 Thread Timo Myyrä
Hi, The last attempt at adding Kensington Slimblade trackball support seems to have stalled: https://marc.info/?l=openbsd-tech&m=147444999319756&w=2 I tested the diff and it still seems apply with little fuzz and works with my slimblade. It would be nice to have this included so I can paste with

Re: Pump my sched: fewer SCHED_LOCK() & kill p_priority

2019-06-27 Thread Timo Myyrä
Amit Kulkarni writes: >> root on sd2a (88532b67c09ce3ee.a) swap on sd2b dump on sd2b >> TSC skew=-6129185140 drift=170 >> TSC skew=-6129184900 drift=-10 >> TSC skew=-6129184890 drift=-20 >> TSC skew=-6129184910 drift=30 >> TSC skew=-6129184910 drift=10 >> TSC skew=-6129184900 drift=20 >> TSC skew

Re: Pump my sched: fewer SCHED_LOCK() & kill p_priority

2019-06-27 Thread Timo Myyrä
Martin Pieuchot writes: > On 06/06/19(Thu) 15:16, Martin Pieuchot wrote: >> On 02/06/19(Sun) 16:41, Martin Pieuchot wrote: >> > On 01/06/19(Sat) 18:55, Martin Pieuchot wrote: >> > > Diff below exists mainly for documentation and test purposes. If >> > > you're not interested about how to break t

Re: TSC synchronization on MP machines

2019-06-27 Thread Timo Myyrä
Paul Irofti writes: > Hi, > > Here is an initial diff, adapted from NetBSD, that synchronizes TSC > clocks across cores. > > CPU0 is the reference clock and all others are skewed. During CPU > initialization the clocks synchronize by keeping a registry of each CPU > clock skewness and adapting th

Re: inteldrm(4) diff needs review and testing

2017-07-16 Thread Timo Myyrä
Mark Kettenis writes: > Can somebody test the following diff on Ivy Bridge or Haswell (Intel > HD Graphics 2500/4000/4600/4700/5000/5100/5200)? > > When I added support for the command parser, I took a bit of a > shortcut and implemented the hash tables as a single linked list. > This diff fixes

Re: 11n support for athn(4)

2017-03-06 Thread Timo Myyrä
Stefan Sperling writes: > On Mon, Mar 06, 2017 at 07:36:21AM +0200, Timo Myyrä wrote: > >> Did some tcpbench testing and got following results: >> Each test run with: tcpbench -s || tcpbench -t 15 commands. >> Host AP: apu 2b4 with athn, client = thinkpad t430s with iwn

Re: 11n support for athn(4)

2017-03-05 Thread Timo Myyrä
Stefan Sperling writes: > On Tue, Jan 31, 2017 at 07:10:04AM +0200, Timo Myyrä wrote: >> 11g: Client->AP: ~15Mbps, AP->Client: ~5Mbps >> 11n: Client->AP: ~3Mbps, AP->Client: ~5Mbps > > I just committed a change which makes RTS optional in 11n mode. > The AP s

Re: 11n support for athn(4)

2017-01-30 Thread Timo Myyrä
Stefan Sperling writes: > On Sun, Jan 29, 2017 at 07:49:56AM +0200, Timo Myyrä wrote: >> Hmm, I've been running the 11n for a while and it seems to be a lot slower >> than >> 11g for me. Just did quick benchmark using tcpbench between OpenBSD hostAP >> (athn) an

Re: 11n support for athn(4)

2017-01-28 Thread Timo Myyrä
Stefan Sperling writes: > This diff adds 11n support to the athn(4) driver. > Requires -current net80211 code from today. > > Tested in hostap mode and client mode with: > athn0 at pci1 dev 0 function 0 "Atheros AR9281" rev 0x01: apic 2 int 16 > athn0: AR9280 rev 2 (2T2R), ROM rev 22, adddress xx

Re: USB keyboards with multiple displays

2016-01-04 Thread Timo Myyrä
Mark Kettenis writes: > OpenBSD/amd64 and OpenBSD/i386 have been supporting multiple > wsdisplay(4) devices for a while now. Somewhat recently it became > also possible to use inteldrm(4) as a secondary display device. There > have always been some issues with pairing wskbd(4) keyboard devices

Zlib regression tests

2015-12-26 Thread Timo Myyrä
-- /dev/null 1 Jan 1970 00:00:00 - +++ regress/lib/libz/zlib_testsuite.c 26 Dec 2015 08:58:54 - @@ -0,0 +1,542 @@ +/* + * zlib_testsuite.c -- regression tests for zlib compression library + * + * Copyright (C) 1995-2006, 2011 Jean-loup Gailly. + * Copyright (C) 2015 Timo Myyrä. + * + * ba

Re: initial 11n support for iwn (n, not m)

2015-12-22 Thread Timo Myyrä
Stefan Sperling writes: > On Sat, Dec 19, 2015 at 01:08:26PM +0100, Stefan Sperling wrote: >> On Fri, Dec 18, 2015 at 05:40:39PM -0500, David Hill wrote: >> > With sthen@'s patch I can associate, dhcp, and use net. >> >> Here's an updated iwn diff with a better approach for Stuart's fix. >> >>

Re: Unlock the reaper

2015-07-08 Thread Timo Myyrä
Mark Kettenis writes: > I'm looking for testers for this diff. This should be safe to run on > amd64, i386 and sparc64. But has been reported to lock up i386 > machines. I can't reproduce this on any of my own systems. So I'm > looking for help. I'm looking for people that are able to build

[PATCH] add TMP to /usr/share/misc/airport

2014-12-25 Thread Timo Myyrä
Hi, Noticed that Tampere airport is missing from the list. Timo Index: airport === RCS file: /cvs/src/share/misc/airport,v retrieving revision 1.44 diff -u -r1.44 airport --- airport 7 Dec 2014 22:54:05 - 1.44 +++ airp

Re: [PATCH] update zlib to 1.2.8

2014-12-24 Thread Timo Myyrä
Marc Espie writes: > Updating zlib correctly is surprisingly difficult. > > It's not just a question of whipping out the new version and doing a diff. > You should make tests. > > Like, you missed the #ifdef SMALL at first. Those tests include making a > full release, and making sure it still wor

Re: [PATCH] update zlib to 1.2.8

2014-12-24 Thread Timo Myyrä
Stuart Henderson writes: > On 2014/12/23 22:54, Timo Myyrä wrote: >> I was trying to port notmuch mail indexer but got little stuck with it as it >> requires newer Zlib version than whats in base. I got little spare time in >> my >> hands and here's a rough p

Re: inteldrm/radeondrm suspend/resume diff

2014-03-13 Thread Timo Myyrä
Mark Kettenis writes: > The recent "inteldrm suspend/resume regression" thread pointed out > that suspend/resume was quite horribly broken and only worked somewhat > if you didn't heavily use the "3D" acceleration stuff. Here's a diff > that should fix most of the problems, by making sure userla

Re: Somewhat important ACPI diff

2013-05-20 Thread Timo Myyrä
Mark Kettenis writes: > As diagnosed by some other people (armani@, jcs@?) a while ago, our > code to deal with IndexField() operators in our AML interpreter is > quite broken. It works for fields that are less than a byte in size, > but anything else is pretty much completely busted. I wouldn'

Add missing comment to Sysctl.h

2012-04-07 Thread Timo Myyrä
The sysctl.h doesn't include comment for struct kinfo_proc.p_comm. Add field comment as all other fields seem to be commented. Timo Index: sysctl.h === RCS file: /cvs/src/sys/sys/sysctl.h,v retrieving revision 1.121 diff -u -u -r1.12

Colemak layout?

2010-07-25 Thread Timo Myyrä
Hi, Why the colemak layout hasn't found its way to base? There has been a diff to add support but apparently it didn't made into base for some reason. I tested the diff for console and it seems to be working just fine. Xenocara diff applied ok but apparently this is wrong move according to second