openbsd-tech mailing list

FromSubjectsort iconDate
Mark Kettenis
PCIe extended configuration space access on i386/amd64
It seems that for some PCIe device driver stuff we'll want to read registers in the extended configuration space. On i386/amd64 hardware these registers can be accessed through a memory mapped register window, advertised in the ACPI MCFG table. The diff below adds support for this mechanism. Some notable points: 1. ACPI is a pile of poo. Allegedly there are machines that have an MCFG table that's full of lies. 2. Mapping the registers consumes up to 256 MB of precious KVA. To ...
Dec 26, 4:09 pm 2010
Loganaden Velvindron
MicroLinear 6692 PHY for tl(4) -- Olicom 2326
Hi, With help from theo and miod, I ported mlphy(4) from freebsd, written originally by Bill Paul. As usual, feedback is most welcomed. //Logan /* $OpenBSD: ukphy.c,v 1.20 2010/07/23 07:47:13 jsg Exp $ */ /* $NetBSD: ukphy.c,v 1.9 2000/02/02 23:34:57 thorpej Exp $ */ /*- * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Jason R. Thorpe of the Numerical Aerospace Simulation ...
Dec 26, 1:40 pm 2010
Ted Unangst
mv example fix
A 3 line example with 3 bugs. 1. destination and destination_path should be the same. 2. source_file doesn't have to be a file. 3. mv will also unlink a directory, ala rm -d. Index: mv.1 =================================================================== RCS file: /home/tedu/cvs/src/bin/mv/mv.1,v retrieving revision 1.26 diff -u -r1.26 mv.1 --- mv.1 3 Sep 2010 09:53:20 -0000 1.26 +++ mv.1 26 Dec 2010 05:35:57 -0000 @@ -117,9 +117,9 @@ to accomplish the move. The effect is ...
Dec 25, 10:39 pm 2010
Ingo Schwarze
Re: mv example fix
Hi Jason, Two very minor issues: 1) The existing text uses the same wording for two different concepts: First synopsis: moving to a place (like "I go to the bus stop.") Second synopsis: moving into a container (like "I jump into the pool.") As the two are technically rather different, i'd like to reflect the difference at least a bit in the wording. 2) We are talking about one (definite) destination directory, just like for the first synopsis, were the text also talks about "the ...
Dec 26, 1:54 pm 2010
Jason McIntyre
Re: mv example fix
this seems correct, but it was anyway. what are you trying to change here? other than that i think this diff is fine. but a technical ok would be useful too.
Dec 26, 1:25 pm 2010
Jason McIntyre
Re: mv example fix
i like the simplicity of moving X to Y, regardless of what they are. pronouns (if that's the right word) are horribly inconsistent anyway, so i don;t really buy that argument - do you think of moving files *into* a directory? maybe, but some people move them *to* a directory. i see no problem with that wording. right, i see that now too. i'd guess the author wrote naturally that after talking about "a source operand" that "a destination" would sound nice (i'm sure it occurred ...
Dec 26, 2:08 pm 2010
Ingo Schwarze
Re: mv example fix
Hi Ted, Sure, and both should be "destination_path", because that's the term used consistently in the DESCRIPTION. Unambiguous terminology is very important here because "target" and "destination path" are not the same thing at all, but easily confused. At first, when starting to look into your bug report, Right, and indeed, it is the same as the source operand. By the way, the DESCRIPTION ought to make it plain as well Indeed, the code does contain a call to rmdir(2). However: ...
Dec 26, 10:23 am 2010
Ingo Schwarze
Re: mv example fix
Hi Jason, I see the point, and i think it is valid. Looking at rm(1), right now, we _do_ consistently assume that files are a special case of directories. Changing that is probably a bad idea, and even if we want to change that stance, it is a separate Seems valid to. I think moving the description how the utility works to the DESCRIPTION does make sense, but leaving the example in CAVEATS as well. So here is an improved patch: Yours, Ingo Index: ...
Dec 26, 11:41 am 2010
Jason McIntyre
Re: mv example fix
hmm... cp - copy files rm - remove directory entries mv - move files and directories # with your changes i'm ok with all approaches, but i fear we are being inconsistent on three very important utilities about how we describe things. do we accept that files and directories are the same? do we distinguish? i'd say your comma would be better placed after "directory" and not i'm not convinced. it feels like you are removing a valid warning, and turning it into an example. the ...
Dec 26, 10:38 am 2010
Kenneth R Westerback
Re: correct mxcsr+mxcsr_mask handling (revised)
Appears to work (i.e. boot) on both my amd64 and i386 boxes. The latter has FXSR in the cpu0 flags. Just in case I am hallucinating, the i386 dmesg is below. .... Ken OpenBSD 4.8-current (GENERIC.MP) #0: Sun Dec 26 08:56:56 EST 2010 root@acer.westerback.ca:/usr/src/sys/arch/i386/compile/GENERIC.MP cpu0: Pentium(R) Dual-Core CPU E5400 @ 2.70GHz ("GenuineIntel" 686-class) 2.71 GHz cpu0: ...
Dec 26, 7:06 am 2010
Mark Kettenis
Re: correct mxcsr+mxcsr_mask handling (revised)
Hmm, I'm not too happy about moving fpuinit() out of cpu_hatch() on amd64, while leaving npxinit() in there for i386. This function will be run again upon resume. Now overwriting fpu_mxcsr_mask shouldn't hurt, but perhaps replacing: if (CPU_IS_PRIMARY(ci)) { with if (fpu_mxcsr_mask == 0) { Oh, this actually points out an interesting problem. The MXCSR register isn't initialized from data passed to us by userland. However, if a user calls ptrace(PT_SETFPREGS, ...) on a ...
Dec 26, 8:24 am 2010
Kenneth R Westerback
Re: cleanup directory sys/dev/pckbc
Makes sense. ok krw@ .... Ken
Dec 26, 6:48 am 2010
Thomas Pfaff
Re: pf debug states: ioctl interface and state names.
On Tue, 21 Dec 2010 22:15:33 +0100 I guess these should now be one of the LOG_ names from syslog(3) so maybe something like this? Not all LOG_ levels are used in the code, as far as I can tell, but I guess that does not matter and might change in the future (so just do a man page reference rather than list the currently used levels). Index: pf.4 =================================================================== RCS file: /cvs/src/share/man/man4/pf.4,v retrieving revision 1.71 diff -u -p ...
Dec 26, 2:35 pm 2010
frantisek holop
Re: dhclient-script and resolv.conf
also, do you know of a good way to modify the order of the interfaces? (besides the alphabet ;-) -f -- if you can't see black, white has no meaning
Dec 26, 1:15 pm 2010
previous daytodaynext day
December 25, 2010December 26, 2010December 27, 2010