Re: uchcom(4) did not work

2014-05-13 Thread Mike Larkin
On Wed, May 14, 2014 at 05:39:38AM +0900, SASANO Takayoshi wrote: Hello, Recently I bought Arduino board which uses Nanjing QinHeng (WinChipHead) CH340T USB-UART bridge via eBay, and I found uchcom(4) did not work. At misc@, other user reported similar problem. [1] The uchcom(4) comes

Re: uchcom(4) did not work

2014-05-13 Thread Mike Larkin
On Wed, May 14, 2014 at 10:01:28AM +0900, SASANO Takayoshi wrote: Hi, Mike. + val = 0x501f; + idx = 0xd90a; What are these magic numbers? These numbers come from Linux driver (ch341.c). I don't know what they mean. Maybe these numbers represent default character length and

Re: uchcom(4) did not work

2014-05-13 Thread Mike Larkin
On Wed, May 14, 2014 at 11:02:49AM +0900, SASANO Takayoshi wrote: Hi, Simply magic values are rewrited with #define. If these values need to be disassembled, please take a while... I think we need to understand what those values mean. When I mentioned #defines, I meant something like:

Re: PATCH: acpibat - expose capacity as sensor

2014-05-20 Thread Mike Larkin
On Sat, May 17, 2014 at 06:32:10PM +0200, Fabian Raetz wrote: Hi, i want to expose capacity (full capacity design) as a sensor like the rest. This sensor will be used in an upcoming diff to upower to expose energy-full-design and capacity properties if this patch gets merged. Both

Re: PATCH: ACPI_DEBUG - format fixes

2014-05-20 Thread Mike Larkin
On Sat, May 17, 2014 at 06:21:10PM +0200, Fabian Raetz wrote: Hi, the following diff fixes kernel builds with ACPI_DEBUG defined. Not sure if these are the right ones, but at least it compiles again. Cheers, Fabian ok mlarkin@ Index: acpi.c

Re: PATCH: ACPI_DEBUG - format fixes

2014-05-20 Thread Mike Larkin
On Sat, May 17, 2014 at 06:21:10PM +0200, Fabian Raetz wrote: Hi, the following diff fixes kernel builds with ACPI_DEBUG defined. Not sure if these are the right ones, but at least it compiles again. Cheers, Fabian committed. thanks. Index: acpi.c

Re: PATCH: acpibat - expose capacity as sensor

2014-05-21 Thread Mike Larkin
On Wed, May 21, 2014 at 04:53:31PM -0400, Jean-Philippe Ouellet wrote: todd, can you put this in snaps so that we know if there's some fallout? I don't know if this is related or not, but running that snap I experienced the following crash while trying to shut down: (which I've never had

Re: acpiec(4): clear events based on vendor

2014-06-11 Thread Mike Larkin
On Thu, Jun 12, 2014 at 12:45:23AM +0300, Paul Irofti wrote: On Wed, Jun 11, 2014 at 09:42:56PM +0200, Mark Kettenis wrote: Date: Wed, 11 Jun 2014 08:40:51 +0200 From: Remi Locherer remi.loche...@relo.ch On Wed, Jun 11, 2014 at 09:11:54AM +0300, Paul Irofti wrote: On Tue, Jun 10,

Re: apmd -A induced hangs

2014-07-15 Thread Mike Larkin
On Sun, Jul 13, 2014 at 04:05:41PM +0200, Mark Kettenis wrote: Some people have reported that apmd -A makes their machines hang. Could those people try the diff below and see whether it helps? Index: acpicpu.c === RCS file:

Re: [PATCH] sys/dev/acpi/acpidock.c: set sensor status

2014-08-21 Thread Mike Larkin
On Thu, Aug 21, 2014 at 09:58:15AM -0500, Kent R. Spillner wrote: acpidock(4) updates its sensor's value when docking and undocking, but it never sets its sensor's status. As a result, it's difficult to hook into docking/undocking changes with sensorsd(8) (to change the value of

Re: Clear PME Status when a wake event is received

2014-09-06 Thread Mike Larkin
On Sat, Sep 06, 2014 at 09:18:26PM +0200, Mark Kettenis wrote: As pea@ noticed, Apple machines with an NVIDIA MCP79 chipset will suffer an interrupt storm when you send them WOL packet to their nfe(4) interface. The acpi0 interrupt handler fires continously in this case. Some digging

Re: Clear PME Status when a wake event is received

2014-09-08 Thread Mike Larkin
On Mon, Sep 08, 2014 at 10:50:27PM +0200, Mark Kettenis wrote: On Sat, Sep 06, 2014 at 09:18:26PM +0200, Mark Kettenis wrote: As pea@ noticed, Apple machines with an NVIDIA MCP79 chipset will suffer an interrupt storm when you send them WOL packet to their nfe(4) interface. The

Re: sparc64: fledgling QEMU support

2014-09-09 Thread Mike Larkin
On Tue, Sep 09, 2014 at 10:56:59PM +0200, Mark Kettenis wrote: From: Stefan Fritsch s...@sfritsch.de Date: Tue, 09 Sep 2014 22:41:53 +0200 On Tuesday 09 September 2014 21:27:37, Mark Cave-Ayland wrote: Could the PCI virtio stuff be adapted to non-x86 architectures? QEMU already

Re: patch: acpitz: active cooling and notify 0x81

2014-09-16 Thread Mike Larkin
On Mon, Sep 15, 2014 at 04:57:24PM +0200, S??bastien Marie wrote: ping ? Tihs patch is very conservative: it just allow to switch fan OFF if state is unknown. I finally read through the relevant parts of the spec. The problem here is that it looks like we are implementing thermal zone

Re: minor fix in sys/arch/i386/i386/apm.c

2014-10-01 Thread Mike Larkin
On Fri, Sep 26, 2014 at 10:32:53PM -0400, thev...@openmailbox.org wrote: i don't know if this is considered a bug, so i sent it here instead. found this when compiling with 'option APMDEBUG': cc -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-main -Wno-uninitialized

Re: USB stack change needed for xhci(4)

2014-10-03 Thread Mike Larkin
On Fri, Oct 03, 2014 at 07:58:11PM +0200, Mark Kettenis wrote: Date: Thu, 2 Oct 2014 12:20:14 +0200 From: Martin Pieuchot mpieuc...@nolizard.org Our USB stack contains a hack needed for ehci(4) and ohci(4) that breaks xhci(4). The diff below moves this hack in these drivers, and

Re: hibernate button and !HIBERNATE kernels

2014-10-08 Thread Mike Larkin
On Wed, Oct 08, 2014 at 01:30:38AM -0600, David Coppa wrote: Hi! When running a kernel built without option HIBERNATE, if I press the hibernate button (Fn+F12) on my ThinkPad T420, the system abruptly shuts down and I'm welcomed by fsck on the next boot. What about the following diff?

Re: Atheros UB94 Diff Files

2014-10-31 Thread Mike Larkin
On Fri, Oct 31, 2014 at 03:36:50PM -0400, Ted Unangst wrote: On Fri, Oct 31, 2014 at 10:24, Matt Markfort wrote: I have made these recent changes to my personal code base of the OpenBSD_5_4-release kernel, and it may be useful to commit to -current. I found the information here for the

go back to sleep if lid closed when resuming

2014-11-05 Thread Mike Larkin
Formerly Prevent Hot Backpack diff. This puts the machine back to sleep (or hibernate, if that's where you came from) if the lid is still closed on resume. Stops the machine from staying awake if the lid flexes or slightly opens while in your bag, triggering an unwanted wake event. Note - the

Re: OpenBSD on a Nokia IP380

2013-08-23 Thread Mike Larkin
On Fri, Aug 23, 2013 at 06:30:25PM -0400, s_gamm...@charter.net wrote: I've been trying to get a more modern OS to run on an ancient Nokia firewall by loading an OS on the drive in a Dell D610 and moving the drive to the IP380. So far, I've had little success. I can get FreeBSD 8.1 to work

i386/amd64 skip low 64kb memory

2014-01-04 Thread Mike Larkin
This diff has been circulating around and I think amd64 is in pretty good shape. I need testers for i386 - this diff includes both. On some machines, during suspend/resume and other times, the BIOS/SMM code corrupts low pages of memory. We presently use those pages for various trampolines and

Re: Supporting unsupported Intel wireless

2014-02-10 Thread Mike Larkin
Works as expected on: iwn0 at pci2 dev 0 function 0 Intel Centrino Wireless-N 2000 rev 0xc4: msi, MIMO 2T2R, BGN, address 9c:4e:36:47:d3:24 Thanks! -ml On Mon, Feb 10, 2014 at 11:10:02PM +0100, Mark Kettenis wrote: I'm looking for people with one of the following unsupported Intel

Re: trivial fix for pmemrange

2014-02-17 Thread Mike Larkin
On Mon, Feb 17, 2014 at 05:02:34PM +0800, Kieran Devlin wrote: Probably get a better response if you explained what this diff does and/or fixes... -ml Index: uvm/uvm_pmemrange.c === RCS file: /cvs/src/sys/uvm/uvm_pmemrange.c,v

Re: inteldrm suspend/resume regression (Was: Suspend/resume in Gnome)

2014-03-07 Thread Mike Larkin
On Fri, Mar 07, 2014 at 05:00:43PM -0700, Theo de Raadt wrote: Not necessarily, could be a tsleep in a DVACT_WAKEUP handler of an other driver that makes us do the context switch. The cold = 2 diff didn't reveal any tsleeps in inteldrm on my x220. But then I never had any issues here

Re: openbsd-current: cannot suspend -return from zzz-

2014-04-16 Thread Mike Larkin
log file... As soon as I can get home ... On Tue, Apr 8, 2014 at 5:46 PM, Mike Larkin mlar...@azathoth.net wrote: On Tue, Apr 08, 2014 at 05:30:59PM -0500, Abel Abraham Camarillo Ojeda wrote: will provide dmesg from 5.3, 'zzz' works in 5.3 -with or without serial console

Support Netmos 9922 dual PCIe serial port cards

2011-03-10 Thread Mike Larkin
This diff adds support to puc(4) for NetMos 9922 dual serial cards. It's pretty straightforward. Tested by me on i386 and amd64. ok? -ml Index: dev/pci/pcidevs === RCS file: /cvs/src/sys/dev/pci/pcidevs,v retrieving revision

Re: Support Netmos 9922 dual PCIe serial port cards

2011-03-10 Thread Mike Larkin
On Thu, Mar 10, 2011 at 11:20:57PM +, Stuart Henderson wrote: On 2011/03/10 14:48, Mike Larkin wrote: This diff adds support to puc(4) for NetMos 9922 dual serial cards. It's pretty straightforward. Tested by me on i386 and amd64. + /* NetMos PCIe Peripheral Controller :Dual

Re: Support Netmos 9922 dual PCIe serial port cards

2011-03-10 Thread Mike Larkin
On Fri, Mar 11, 2011 at 12:14:43AM +0100, Mark Kettenis wrote: Date: Thu, 10 Mar 2011 14:48:45 -0800 From: Mike Larkin mlar...@azathoth.net This diff adds support to puc(4) for NetMos 9922 dual serial cards. It's pretty straightforward. Tested by me on i386 and amd64. ok

Re: hibernate_machdep.c depends on acpi

2011-06-20 Thread Mike Larkin
On Mon, Jun 20, 2011 at 01:02:01PM +0100, Owain Ainsworth wrote: On Mon, Jun 20, 2011 at 01:54:38PM +0200, Mark Kettenis wrote: Date: Mon, 20 Jun 2011 13:22:52 +0200 (CEST) From: Mark Kettenis mark.kette...@xs4all.nl Date: Mon, 20 Jun 2011 11:04:24 +0200 From: Mike Belopuhov

Re: hibernate_machdep.c depends on acpi

2011-06-20 Thread Mike Larkin
On Mon, Jun 20, 2011 at 06:38:40PM +0200, Mike Belopuhov wrote: On Mon, Jun 20, 2011 at 13:22 +0200, Mark Kettenis wrote: Date: Mon, 20 Jun 2011 11:04:24 +0200 From: Mike Belopuhov m...@crypt.org.ru hi, the hibernate_machdep.c file depends on the acpi so it would be nice if

Re: Sandy Bridge problems

2012-02-16 Thread Mike Larkin
On Thu, Feb 16, 2012 at 10:59:03AM +1100, Rod Whitworth wrote: Hi, I ran into a problem with X in a new Lenovo E320 so I put out a query on misc and got a rapid response from David Coppa which pointed out that my problem was caused by the Intel Sandy Bridge stuff. I didn't need to bug tech@

Re: enable/fix vt switching on sandybridge machines

2012-03-04 Thread Mike Larkin
On Sat, Mar 03, 2012 at 09:43:39PM +0100, Matthieu Herrb wrote: On Sat, Mar 03, 2012 at 12:50:32PM -0600, joshua stein wrote: And it only works if you don't suspend the machine. After a suspend/resume cycle, X still comes back, but text mode VTs stay black again. does the console

Re: limiting the RAM used by OpenBSD

2012-03-05 Thread Mike Larkin
On Mon, Mar 05, 2012 at 06:05:43PM +0100, Salvador Fandino wrote: Hi, Is there a simple way to limit the amount of RAM used by OpenBSD? Can it be done from the User Kernel Config prompt or in some other way? I have a little Perl script that is able to hang OpenBSD running inside a virtual

Diff to support so-called gaming USB keyboards

2012-07-03 Thread Mike Larkin
Many low-cost USB keyboards have a limit of either 3 or 6 simultaneous keypresses before they wedge and stop supplying any more keypress events (at least until you release one of the pressed keys). Some newer (usually called gaming) keyboards use a different way of reporting keypress events in

Hibernate support

2012-07-11 Thread Mike Larkin
Hibernate support (suspend-to-disk) will be shortly enabled for i386 + wd machines. Some FAQs, before I commit the change to turn it on: 1. If you have anything other than i386 + wd, it won't work. Don't report it. Other archs + disk types are being worked on now that i386 + wd is working. This

Hibernate enabled for i386

2012-07-12 Thread Mike Larkin
Hibernate (suspend-to-disk) is enabled in -current for i386+wd configurations. You'll see a bunch of disk activity as the pages are written out after 'ZZZ'. On resume, a full kernel boot is performed, at which point (at the very end), the hibernated image is read back from disk (more disk I/O)

Re: ACPI WMI project, need help

2012-07-30 Thread Mike Larkin
On Mon, Jul 30, 2012 at 09:52:18PM +0400, Alexander Polakov wrote: Hi, I started working on porting ACPI WMI (WMI stands for Windows Management Instrumentation, it's ACPI extension by Microsoft) driver from NetBSD hoping it will help me with my HP Compaq 6910p problem [1]. Currently,

Re: Calling all softdep lovers: This turns down the suck on softdep.

2012-11-07 Thread Mike Larkin
On Wed, Nov 07, 2012 at 11:25:55AM -0700, Bob Beck wrote: Hello tech@. I just committed some significant fixes to the buffer cache in -current. (you want to look for version 1.139 of vfs_bio.c) If you have such a current kernel, you may wish to try the following diff - it is a backout

Re: UVM Page Fault with Ralink wlan and Best login/net fs config?

2012-11-16 Thread Mike Larkin
dead keyboards, 2 dead disks, a BCM4315 and a poor bios On 11/16/12 18:02, Mike Larkin wrote: On Fri, Nov 16, 2012 at 10:13:19AM +, sbienddr...@googlemail.com wrote: 1. Just a quick note, has anyone else experienced a page fault when using a Ralink adapter at either bootup or when running

Re: Rapoo V7 Keyboard Driver

2013-01-28 Thread Mike Larkin
On Mon, Jan 28, 2013 at 06:50:28PM -0200, Daniel Bolgheroni wrote: Hi tech@, anyone with a patch lurking around to work with a Rapoo V7 keyboard? Linux has a workaround, but don't know if works: https://github.com/Golevka/rapoov7-keyboard-driver The dmesg for the kbd is: uhidev1 at

Re: Rapoo V7 Keyboard Driver

2013-01-28 Thread Mike Larkin
On Mon, Jan 28, 2013 at 10:54:33PM +, Stuart Henderson wrote: On 2013/01/28 14:20, Mike Larkin wrote: On Mon, Jan 28, 2013 at 06:50:28PM -0200, Daniel Bolgheroni wrote: Hi tech@, anyone with a patch lurking around to work with a Rapoo V7 keyboard? Linux has a workaround

Re: lost console after starting X

2013-02-22 Thread Mike Larkin
On Fri, Feb 22, 2013 at 03:59:59PM -0800, johnd wrote: I just am running 5.2 GENERICMP#368 amd64 if I run startx it comes up fine if I try to switch to a virtual console or kill X (pkill or ctrl alt-ctrl-bspace) I am left on a screen that can be black or sometimes it has blue and red

Re: Adds product ATI RADEON_HD5570

2013-03-24 Thread Mike Larkin
On Sun, Mar 24, 2013 at 03:48:39AM -0600, Abel Abraham Camarillo Ojeda wrote: anyone? On Wed, Mar 20, 2013 at 3:10 AM, Abel Abraham Camarillo Ojeda acam...@verlet.org wrote: patch attached. ok? Don't mime attach patches and you'll likely get a better response.

Stop printing excessive numbers of ACPI wakeup devices

2013-06-01 Thread Mike Larkin
Some machines (eg VMs running in VMware) display hundreds of wakeup devices, polluting dmesg output with many lines of output. One VM dmesg I was shown indicated 816 wakeup devices. Since it is unlikely that any real machines have more than 16 wakeup devices, truncate the count at 16, and after

Re: Stop printing excessive numbers of ACPI wakeup devices

2013-06-01 Thread Mike Larkin
On Sat, Jun 01, 2013 at 07:40:56PM +0200, Gregor Best wrote: On Sat, Jun 01, 2013 at 06:35:24AM -0700, Mike Larkin wrote: [...] SIMPLEQ_FOREACH(wentry, sc-sc_wakedevs, q_next) { - printf( %.4s(S%d), wentry-q_node-name, - wentry-q_state

Re: Stop printing excessive numbers of ACPI wakeup devices

2013-06-01 Thread Mike Larkin
On Sat, Jun 01, 2013 at 08:02:40PM +0200, Mark Kettenis wrote: Date: Sat, 1 Jun 2013 06:35:24 -0700 From: Mike Larkin mlar...@azathoth.net Some machines (eg VMs running in VMware) display hundreds of wakeup devices, polluting dmesg output with many lines of output. One VM dmesg I

Re: Binary code patching and paravirtualization

2014-12-16 Thread Mike Larkin
On Tue, Dec 16, 2014 at 11:08:03AM +0100, Mark Kettenis wrote: Date: Mon, 15 Dec 2014 23:21:35 +0100 (CET) From: Stefan Fritsch s...@sfritsch.de On Thu, 11 Dec 2014, Mark Kettenis wrote: From: Alexey Suslikov alexey.susli...@gmail.com Date: Thu, 11 Dec 2014 20:51:14 + (UTC)

Re: Dell R630 high interrupts on acpi0

2014-12-17 Thread Mike Larkin
On Wed, Dec 17, 2014 at 10:44:24AM +0100, mxb wrote: On 16 dec 2014, at 06:40, David Gwynne da...@gwynne.id.au wrote: others have hit this on r620s as well I don???t see it on mine. Others have hit a similar symptom on r620, caused by a different issue that was already fixed by

Re: handle hibernate button in the same way as suspend does

2015-02-04 Thread Mike Larkin
On Wed, Feb 04, 2015 at 03:57:00AM -0700, David Coppa wrote: Hi, Currently, when you hibernate your thinkpad using the hibernate button (Fn+F12), /etc/apm/hibernate does not get executed. It is only when you hibernate using 'ZZZ'. The diff below makes the hibernate button behave like

Re: Unbreak !HIBERNATE builds (amd64)

2015-02-03 Thread Mike Larkin
On Tue, Feb 03, 2015 at 03:36:59AM -0700, David Coppa wrote: ok? Ciao, David Index: arch/amd64/amd64/acpi_wakecode.S === RCS file: /cvs/src/sys/arch/amd64/amd64/acpi_wakecode.S,v retrieving revision 1.35 diff -u -p -u -p

Re: Allow resuming with closed lid

2015-01-31 Thread Mike Larkin
On Fri, Jan 30, 2015 at 05:44:25PM -0500, Ted Unangst wrote: On Sat, Jan 31, 2015 at 00:24, Ville Valkonen wrote: Hello Mike and Max, my work laptop is running Windows and on there one must press power button to wake up the machine. If I connect the dots right, current behaviour was

Re: machine with a zzz problem with lidsuspend=1

2015-01-26 Thread Mike Larkin
On Tue, Jan 27, 2015 at 12:11:35AM +0100, Mark Kettenis wrote: Date: Mon, 26 Jan 2015 22:30:02 + From: Stuart Henderson s...@spacehopper.org On 2015/01/26 23:18, Mark Kettenis wrote: Date: Mon, 26 Jan 2015 21:17:33 + From: Stuart Henderson s...@spacehopper.org

Re: amd64 kernel W^X

2015-01-13 Thread Mike Larkin
On Tue, Jan 13, 2015 at 08:57:09PM -0700, Theo de Raadt wrote: Mike Larkin has been slow at informing the world, despite my prodding. Probably started working on something else cool... So.. I am going to take it upon myself to sing praise to him, and hopefully he'll let me off lightly

Re: patch: Intel CPU sensor readout correction

2015-01-04 Thread Mike Larkin
On Thu, Nov 27, 2014 at 12:44:54PM +0100, Mages, Simon wrote: Hi there, the temperatures 'sysctl hw.sensors' displays for each CPU are wrong for the most modern Intel CPUs. OpenBSD uses only 100 or 85 degC as TJmax for Intel CPUs, but in reality the TJmax value is somewhere around those

Re: acpi(4) Implicit _GL object should be named _GL_

2015-02-22 Thread Mike Larkin
On Sun, Feb 22, 2015 at 05:00:15PM +0100, Imre Vadasz wrote: Since aml_parsename calls __aml_search (and not __aml_searchname), no automatic padding with '_' is done on the names in aml_defobj. So we should also pad _GL correctly, otherwise we are creating a node which can't be found (since we

Re: Allow resuming with closed lid

2015-01-29 Thread Mike Larkin
On Fri, Jan 30, 2015 at 12:42:04AM +0100, Max Fillinger wrote: Currently, there's code in acpi.c that sends the system back to sleep when resuming with closed lid and machdep.lidsuspend=1. I often use my laptop in a docking station with an external monitor and keep the lid closed, and I'd like

Re: [diff] trivia: change xorl = xorq

2015-06-23 Thread Mike Larkin
On Tue, Jun 23, 2015 at 09:49:26AM +0300, Alexey Dobriyan wrote: Clearing 32-bit register clears whole register, save REX prefix. I see nothing documented in the Intel SDM that says this. Can you cite a reference to support this claim? An aside - even if this were true, I still prefer xorq and

Re: Better de(4) fix

2015-06-25 Thread Mike Larkin
On Fri, Jun 26, 2015 at 12:09:40AM +0200, Reyk Floeter wrote: On Thu, Jun 25, 2015 at 11:04:00PM +0200, Imre Vadasz wrote: On 22:27 Thu 25 Jun , Reyk Floeter wrote: On Thu, Jun 25, 2015 at 09:21:11PM +0200, Mark Kettenis wrote: There really is no excuse for using dma_alloc(9) if you have

Re: [PATCH] fix compilation failure with SR_DEBUG enabled.

2015-07-05 Thread Mike Larkin
On Sun, Jul 05, 2015 at 09:34:03PM +0200, Karel Gardas wrote: Hello, following patch fixes compilation failure on AMD64 when SR_DEBUG is enabled. Thanks, Karel Index: dev/softraid_crypto.c === RCS file:

Re: libpciaccess write combining fixes

2015-07-06 Thread Mike Larkin
On Mon, Jul 06, 2015 at 03:14:23PM +0200, Mark Kettenis wrote: My recent change in this area weren't quite right. As a result non-kms pci video drivers might not have been working properly on various platforms. I just committed a fix for an issue where on i386/amd64 a write combining mapping

Re: Double fault handling on amd64

2015-06-28 Thread Mike Larkin
On Thu, Feb 19, 2015 at 01:50:59PM +, Wei Liu wrote: Hi all When I was trying to debug a double fault on 5.6, I found the trap frame looked a bit strange. After some investigation and reading source code, I found that double fault handling looked problematic. Per Intel SDM volume 3A,

Re: audio: recover after missed interrupts

2015-07-28 Thread Mike Larkin
On Mon, Jul 27, 2015 at 07:51:15PM +0200, Alexandre Ratchov wrote: Sometimes the system may miss enough audio interrupts for DMA pointers to wrap, which makes upper layers misbahave. This diff makes the audio driver properly recover, by detecting and compensating for the missed interrupts.

Re: acpi fix needs testing

2015-07-19 Thread Mike Larkin
On Mon, Jul 20, 2015 at 12:38:19AM +0200, Hrvoje Popovski wrote: On 20.7.2015. 0:06, Mark Kettenis wrote: The acpi code that reads and writes pci config space is quite busted. It always does byte-sized reads and writes even if the aml specifies an access size of four bytes. This made

Re: cardbus fix

2015-07-20 Thread Mike Larkin
On Mon, Jul 20, 2015 at 02:48:22AM +0200, Mark Kettenis wrote: Some (early) acpi machines leave the cardbus bridge unconfigured. In particular, those machines don't configure the bus number for the cardbus bus. This makes our driver skip attaching the 32-bit cardbus handling and only support

Re: Microsoft Now OpenBSD Foundation Gold Contributor

2015-07-11 Thread Mike Larkin
On Sat, Jul 11, 2015 at 02:47:31PM -0600, Bob Beck wrote: Other verbiage aside guys - sorry Frantisek, I might not agree with Theo's level of rancor, but No, Your statement for all the wrong reasons is insulting to all of us, and more developers should speak out about it. Yep, what is

virtualization support

2015-08-31 Thread Mike Larkin
TL;DR - a native hypervisor is coming. stay tuned. For the last few months, I've been working on a hypervisor for OpenBSD. The idea for this started a few years ago, and after playing around with it from time to time, things really started to take shape around the time of the Brisbane hackathon

Re: virtualization support

2015-09-07 Thread Mike Larkin
On Sat, Sep 05, 2015 at 03:40:53PM +0200, Lampshade wrote: > Sorry for newbie question, but I am curious > and this hipervisor is new thing so there is no man pages yet. > It's not yet in the tree. > I have read general classification of hypervisors on Wikipedia > and there are types: Type-1

Re: Looking for testers for amd64 suspend diff

2015-09-06 Thread Mike Larkin
On Sun, Sep 06, 2015 at 11:44:11AM +0200, Stefan Fritsch wrote: > Hi, > > the diff below is necessary to make suspend/resume work when x2apic is > enabled (i.e. on qemu/kvm/...). While I don't expect problems, it would be > nice if I could get some reports that this doesn't break suspend/resume

Re: linux compat pool diff

2015-09-03 Thread Mike Larkin
On Thu, Sep 03, 2015 at 10:54:17PM +0200, Mark Kettenis wrote: > These are only ever used from system call implementation and therefore > never from interrupt context. > > ok? > > > Index: sys/compat/linux/linux_futex.c > === > RCS

Re: [PATCH] vmm(4) manpage missed the vmctl rename

2015-12-06 Thread Mike Larkin
On Sun, Dec 06, 2015 at 11:32:24AM -0500, trondd wrote: > Update manpage reference from vmmctl(8) to vmctl(8) > > Tim. > > > Index: vmm.4 > === > RCS file: /cvs/src/share/man/man4/man4.amd64/vmm.4,v > retrieving revision 1.3 > diff

Re: vmm update

2015-12-06 Thread Mike Larkin
On Thu, Nov 26, 2015 at 06:31:34PM +0100, Norman Golisz wrote: > On Thu Nov 26 2015 15:11, Karel Gardas wrote: > > Not sure, but on misc you can search for "vmm uvm_fault in vmware > > player/workstation when Intel VT/AMD-v not enabled" thread from which > > it looks like vmm requires

Re: Xen Patch-02: Setup the hypercall page

2015-12-05 Thread Mike Larkin
On Sat, Dec 05, 2015 at 07:19:18PM +0100, Mike Belopuhov wrote: > This allocates a page-aligned page in the kernel text segment > to be used by the hypercall interface. The content of the page > is provided by the Hypervisor itself when it's physical address > is communicated via an MSR write (in

Re: Thinkpad display brightness control

2015-12-16 Thread Mike Larkin
On Wed, Dec 16, 2015 at 07:48:23PM +0100, Mark Kettenis wrote: > Most, if not all, somewhat recent Thinkpads have some subtle issues > with display brightness control. For example,if you change the > display brightness using wsconsctl(8) or cbacklight(1), and later use > the brightness control

Re: preparing multitouch support - request for tests

2015-12-16 Thread Mike Larkin
On Wed, Dec 16, 2015 at 12:59:00PM -0500, Ted Unangst wrote: > Tati Chevron wrote: > > But I don't see that touch-based devices are ever going to become the most > > common devices to run OpenBSD, that's not realistic. Even ignoring servers > > and headless devices, and only counting devices

Re: vmd.h typo in comment (VMM_DEBUG -> VMD_DEBUG)

2016-01-03 Thread Mike Larkin
On Sat, Jan 02, 2016 at 03:57:03PM +0100, Michal Mazurek wrote: > Index: vmd.h > === > RCS file: /cvs/src/usr.sbin/vmd/vmd.h,v > retrieving revision 1.16 > diff -u -p -r1.16 vmd.h > --- vmd.h 11 Dec 2015 10:16:53 - 1.16 >

Re: A cleanup block for virtio.c vionet_notifyq()

2016-01-03 Thread Mike Larkin
On Fri, Jan 01, 2016 at 08:38:46AM +0100, Michal Mazurek wrote: > It looks like there were two cases of a memory leak (lack of free(pkt)). > > Also fix typo: unexpceted -> unexpected, and remove an empty line after > a while(). Thanks Michal. I'll integrate and commit. -ml > > Index: virtio.c

Re: Fix support for early SATA drives on ahci(4)

2016-01-03 Thread Mike Larkin
On Tue, Dec 29, 2015 at 12:43:43AM +0100, Mark Kettenis wrote: > I have an old Maxtor 7Y250M0 SATA drive that didn't quite work when > attached to an Intel AHCI controller. The drive was properly > detected, but any attempt to read from the drive failed. It worked > fine if I switched the SATA

Re: OpenBSDVMM58 -> OpenBSDVMM59 in vmmvar.h

2016-01-03 Thread Mike Larkin
On Fri, Jan 01, 2016 at 11:32:25AM -0500, Ted Unangst wrote: > > unless something has actually changed, it should not be necessary to increment > this number. the vmm in 5.9 will still speak the same protocol as the vmm that > appeared after 5.8. Yes, this does not need to be changed (yet). -ml

Re: Clarify vmctl(8) console

2016-01-03 Thread Mike Larkin
> I wasn't sure which key combination is the escape sequence. > > Index: vmctl.8 > === > RCS file: /cvs/src/usr.sbin/vmctl/vmctl.8,v > retrieving revision 1.9 > diff -u -p -r1.9 vmctl.8 > --- vmctl.8 11 Dec 2015 10:16:53 -

Re: Fix acpibtn(4) LID sensor

2016-01-06 Thread Mike Larkin
On Wed, Jan 06, 2016 at 10:33:58AM +0100, Mark Kettenis wrote: > > Date: Wed, 6 Jan 2016 01:16:38 -0800 > > From: Mike Larkin <mlar...@azathoth.net> > > > > On Wed, Jan 06, 2016 at 10:05:48AM +0100, Martin Pieuchot wrote: > > > My x220 never generates

Re: Sensible default interrupt polarity on amd64 and i386

2016-01-07 Thread Mike Larkin
On Thu, Jan 07, 2016 at 10:19:55PM +0100, Mark Kettenis wrote: > The sensible default polarity is active-low for level-triggered > interrupts whereas it is active-high for edge-triggered ones. We do > this correctly when the BIOS explicitly tells us that it wants > defaults. But we also should

Re: acpicpu: sprinkle aml_freevalue

2015-12-22 Thread Mike Larkin
On Tue, Dec 22, 2015 at 04:32:01PM -0600, joshua stein wrote: > Index: dev/acpi/acpicpu.c > === > RCS file: /var/cvsync/src/sys/dev/acpi/acpicpu.c,v > retrieving revision 1.70 > diff -u -p -u -p -r1.70 acpicpu.c > ---

Re: [PATCH] vmd: usage newline

2015-11-23 Thread Mike Larkin
On Mon, Nov 23, 2015 at 08:36:23PM +0100, Cesare Gargano wrote: > Hi, > newline for vmd -h. > > - > C. > > Index: vmd.c > === > RCS file: /cvs/src/usr.sbin/vmd/vmd.c,v > retrieving revision 1.4 > diff -u -p -r1.4 vmd.c > --- vmd.c

Re: [PATCH] vmd: usage newline

2015-11-23 Thread Mike Larkin
On Mon, Nov 23, 2015 at 11:48:04AM -0800, Mike Larkin wrote: > On Mon, Nov 23, 2015 at 08:36:23PM +0100, Cesare Gargano wrote: > > Hi, > > newline for vmd -h. > > > > - > > C. > > > > Index: vmd.c > > ===

Re: acpithinkpad tablet dock/undock events

2016-01-10 Thread Mike Larkin
On Sun, Jan 10, 2016 at 05:11:35PM +0100, Mark Kettenis wrote: > > Date: Sun, 10 Jan 2016 16:47:05 +0100 > > From: Stefan Sperling > > > > Add events which occur when docking/undocking a tablet observed > > on the Helix 2. > > You have a tabs vs. spaces inconsistency, but

Re: enable FN_KEY_{SUSPEND,HIBERNATE} in acpitoshiba(4)

2016-06-15 Thread Mike Larkin
On Thu, Jun 16, 2016 at 12:05:51AM +0200, Giovanni Bechis wrote: > Hi, > this diff enables suspend and hibernate through fn keys in Toshiba laptops. > Comments ? Ok ? > Cheers > Giovanni If you fix your spelling mistake for "Hibernate" correctly below, sure. -ml > Index: acpitoshiba.c >

Re: enable FN_KEY_{SUSPEND,HIBERNATE} in acpitoshiba(4)

2016-06-15 Thread Mike Larkin
On Thu, Jun 16, 2016 at 12:53:24AM +0200, Giovanni Bechis wrote: > On Wed, Jun 15, 2016 at 03:49:46PM -0700, Mike Larkin wrote: > > On Thu, Jun 16, 2016 at 12:05:51AM +0200, Giovanni Bechis wrote: > > > Hi, > > > this diff enables suspend and hibernate through fn key

Re: x86 callframe definitions

2016-02-25 Thread Mike Larkin
On Thu, Feb 25, 2016 at 03:10:54PM +0100, Martin Pieuchot wrote: > This rename and move the i386 and amd64 ``callframe'' structures in order > to use it in MI code. My goal is to unify our architectures to be able > to retrieve the PC of the calling function with as little MD code as > possible.

Re: ddb: remove support for multiple symbol tables

2016-02-25 Thread Mike Larkin
On Thu, Feb 25, 2016 at 03:05:21PM +0100, Martin Pieuchot wrote: > I'd like to be able to iterate over all the kernel symbols. I could > do like some of the functions below and abuse ``db_last_symtab'' but > we since only have a single symbol table there's no point in keeping > a complex

Re: Vaio Pro 11" SVP112A1CL can't suspend to ram or hibernate

2016-02-20 Thread Mike Larkin
On Sat, Feb 20, 2016 at 10:04:28AM +0100, Mark Kettenis wrote: > > From: Noth > > Date: Sat, 20 Feb 2016 07:22:56 +0100 > > > > On 02/20/16 06:46, Theo de Raadt wrote: > > >> I'm using VAIO Z. Hibernation works, but my vaio also wakes back > > >> immediately. I have a

Re: Vaio Pro 11" SVP112A1CL can't suspend to ram or hibernate

2016-02-20 Thread Mike Larkin
On Fri, Feb 19, 2016 at 10:46:30PM -0700, Theo de Raadt wrote: > > I'm using VAIO Z. Hibernation works, but my vaio also wakes back > > immediately. I have a diff to avoid this wakeup. Unhibernation works > > fine. > > > > The diff seems very bad. :) > > > > Index: sys/dev/acpi/acpi.c > >

Re: ddb/x86: backtrace with bpt on 'syscall'

2016-03-01 Thread Mike Larkin
On Tue, Mar 01, 2016 at 11:50:28PM +0100, Martin Pieuchot wrote: > Trying to get a backtrace after setting a breakpoint on the ``syscall'' > symbol on ddb(4) does not work well. On am64 it faults: > > Breakpoint at syscall:pushq %rbp > ddb{0}> tr > syscall() at syscall >

Re: ddb: show regs with address

2016-03-01 Thread Mike Larkin
On Tue, Mar 01, 2016 at 11:58:57PM +0100, Martin Pieuchot wrote: > As explained previously I'm implementing an instrumentation system based > on ddb(4) and relying on breakpoints to execute kernel probes. > > For debugging purposes I need a way to dump the content of the registers > when a

Re: Keyboard resume (zzz) diff

2016-04-12 Thread Mike Larkin
On Tue, Apr 12, 2016 at 06:24:10AM +, Miod Vallat wrote: > > wskbd_enable (calls pckbd_enable) does not appear to be called from > > wskbd_activate, perhaps just calling wskbd_enable from there would be > > better? (as a matter of fact, wskbd_activate doesn't really do much at > > all except

Re: Keyboard resume (zzz) diff

2016-04-11 Thread Mike Larkin
On Mon, Apr 11, 2016 at 04:02:34PM +0200, Mark Kettenis wrote: > > Date: Sun, 10 Apr 2016 23:33:59 -0700 > > From: Mike Larkin <mlar...@azathoth.net> > > > > Please test this diff on all machines that you can successfully (today) > > resume with 'zzz'

Re: Keyboard resume (zzz) diff

2016-04-11 Thread Mike Larkin
On Mon, Apr 11, 2016 at 11:23:57PM +0200, Martin Pieuchot wrote: > On 10/04/16(Sun) 23:33, Mike Larkin wrote: > > Please test this diff on all machines that you can successfully (today) > > resume with 'zzz'. Please make sure that after resume, the keyboard > > still works.

Keyboard resume (zzz) diff

2016-04-11 Thread Mike Larkin
Please test this diff on all machines that you can successfully (today) resume with 'zzz'. Please make sure that after resume, the keyboard still works. This diff re-enables the keyboard on resume. Previously, we were re-enabling the keyboard *controller* but apparently on some machines (notably

Re: Implement delay() using TSC

2016-03-19 Thread Mike Larkin
On Thu, Mar 17, 2016 at 09:44:22AM +0900, Masao Uebayashi wrote: > Implement delay() using TSC > > - Calculate delay using 64-bit RDTSC instruction > - Enable tsc_delay() as delay(9) backend > - Use tsc_delay() only when TSC is invariant > - Configure tsc_delay() after primary CPU is identified >

Re: Implement delay() using TSC

2016-03-19 Thread Mike Larkin
On Thu, Mar 17, 2016 at 04:03:25PM +0900, Masao Uebayashi wrote: > On Wed, Mar 16, 2016 at 11:49:32PM -0700, Mike Larkin wrote: > > On Thu, Mar 17, 2016 at 03:38:20PM +0900, Masao Uebayashi wrote: > > > On Wed, Mar 16, 2016 at 11:25:11PM -0700, Mike Larkin wrote: > > > &

Re: Implement delay() using TSC

2016-03-19 Thread Mike Larkin
On Thu, Mar 17, 2016 at 03:38:20PM +0900, Masao Uebayashi wrote: > On Wed, Mar 16, 2016 at 11:25:11PM -0700, Mike Larkin wrote: > > On Thu, Mar 17, 2016 at 09:44:22AM +0900, Masao Uebayashi wrote: > > > Implement delay() using TSC > > > > > > - Calculate

  1   2   3   4   5   6   7   >