Re: DMARC/DKIM and OpenBSD Mailinglists

2024-03-13 Thread Josh Grosse via misc
On March 13, 2024 1:54:14 PM EDT, "Todd C. Miller"  wrote:
>I've just added support to our majordomo for rewriting the From:
>header when the sender's domain has a DMARC policy.  Messages from
>domains using DMARC will now have a From: header like:
>
>From: "John Connor via misc" 
>
>and the original From: address is preserved in the X-Original-From:
>header if one is not already present.
>
>This seems like the only reliable way to address the problem given
>that the mailing list server often reformats or otherwise modifies
>the message body.
>
>The rewriting currently happens even for a DMARC policy of "none"
>since some large senders (for example gmail.com) use a policy of
>"none" but receivers may still enforce SPF.  I could relax this but
>I worry that doing so will lower the IP or domain "reputation" in
>Google's eyes (something that is already a black box).
>
> - todd
>

Thank you! 

  -Josh-


Re: Weird VMD behaviour

2024-02-22 Thread Josh Grosse
On Thu, Feb 22, 2024 at 09:16:20AM -0300, pela0 wrote:
> on dmesg: 
> vmd[30546]: can't open /etc/firmware/vmm-bios: No such file or directory

Per the FAQ: "In some cases, virtualization capabilities must be
manually enabled in the system's BIOS. Be sure to run the
fw_update(8) command after doing so to get the required vmm-firmware package. 



Re: DNS resolution when 1st nameserver does not know

2024-02-15 Thread Josh Grosse
On Thu, Feb 15, 2024 at 02:15:07PM +0100, rsyk...@disroot.org wrote:
> my computer is connected to a LAN, from which it obtains its
> IP and also local-DNS-server IP via DHCP. The latter is then
> inserted into /etc/resolv.conf by, I believe, resolvd. The
> computer is furthermore connected via wireguard VPN to
> another network with its own DNS server, serving the local
> IPs there. The DNS server in my LAN, of course, does not
> know the (non-public) IPs in the remote network. However, as
> it comes 1st in /etc/resolv.conf, the nameserver that comes
> next (I manually added it to the file) --- and which would
> know the answer --- is never asked. I can stop resolvd and
> use the DNS server within the VPN for all the traffic. But
> I'd still prefer to have most of the work done by the local
> DNS server, and only if it doesn't know I would ask the
> server in the VPN. Is there anything simple I can do?

Take a look at unwind(8) and unwind.conf(5).



Re: Problem with WireGuard on OpenBSD 7.3

2023-05-04 Thread Josh Grosse
On Thu, May 04, 2023 at 03:06:13PM +0200, Odd Martin Baanrud wrote:
> Hello,
> 
> I???m configuring a WireGuard server on an OpenBSD 7.3 machine, using this 
> howto:
> https://ianix.com/wireguard/openbsd-howto.html
> 
> I don???t get the wg0 interface up.
> The hostname.wg0 contains:
> inet 10.0.6.1 0xfgffgf00 NONE up !/usrlocal/bin/wg setconf wg0 
> /etc/wireguard/wg0.conf

0xfgffgf00 is an invalid netmask, as it is not hexadecimal (0-f).  Your netmask 
should be one of:

a. address/subnet CIDR notation
b. decimal notation
c. hexadecimal notation

https://en.wikipedia.org/wiki/IP_address#Subnetworks



Re: vlan autoconf fails to conf at boot

2022-04-29 Thread Josh Grosse
On Fri, Apr 29, 2022 at 09:33:50PM -0700, George Morgan wrote:
> I created a hostname.vlan10 file which has a single line:
> 
> inet autoconf parent vge0 vnetid 10 lladdr ...
> 
> At boot the interface fails to configure but after boot I can login to the 
> console and run "doas sh /etc/netstart" and the interface will configure.
> 
> What am I doing wrong?  Do I need to add something to rc.conf.local to force 
> the parent to configure first?  The parent (vge0) has a static IPv4 address.

The vlan has to be created and assigned parentage before autoconfiguration.
Craft your hostname.vlan10 file in two lines:

vnetid 10 parent vge0 addrr ...
inet autoconf

This information brought to my attention via Reddit:

https://www.reddit.com/r/openbsd/comments/ua0wqd/no_longer_able_to_connect_to_the_internet_after/i5z24fj/



Re: Sysctl settings for transmission bittorrent (udp receive buffer size)

2022-04-26 Thread Josh Grosse
On Mon, Apr 25, 2022 at 07:47:37PM -, Stuart Henderson wrote:
> On 2022-04-25, Daniel Schuermann  wrote:
> > I can't get transmission (bittorrent client) to work properly.  
> >
> > From the logs: 
> > transmission-daemon: UDP Failed to set receive buffer: 
> > requested 4194304, got 41600
> >
> > On Linux I would do: 
> > sysctl net.core.rmem_max=4194304
> > I couldn't figure out the correct settings for OpenBSD. 
> >
> > net.inet.udp.recvspace sets the default, not the max buffer size, 
> > e.g. sysctl net.inet.udp.recvspace=4194304 causes errors:
> > nslookup openbsd.org
> > nslookup: isc_socket_create: not enough free resources
> 
> That is the right sysctl, the alternative is to set per-socket with
> setsockopt() (SO_SNDBUF, SO_RCVBUF).
> 
> The max is 256K (262144).

Looking through upstream's problem tracker, I see that this is a design
requirement of uTP and that the message, while appearing to be an error,
is informational; uTP will still operate.

https://trac.transmissionbt.com/ticket/4321

https://trac.transmissionbt.com/ticket/5317



Re: Unwind in rdomain1 returning NXDOMAIN for local queries

2022-03-25 Thread Josh Grosse
On Fri, Mar 25, 2022 at 11:41:08AM +0100, Francisco Gaitan wrote:
> I have setup a WireGuard VPN so I run two instances of unwind, one for
> rdomain 0 (unwind) and another for rdomain 1 (unwind1) this way:
> lrwxr-xr-x  1 root  wheel16 Mar 23 13:44 unwind1 -> /etc/rc.d/unwind
> 
> $ cat /etc/rc.conf.local
> unwind1_flags=-vvv -f /etc/unwind1.conf
> unwind1_rtable=1

Here is where we differ.  Both of my unwind(8) instances use the same
configuration file, but they use different sockets:

 unwind1_flags=-s /dev/unwind1.sock
 unwind1_rtable=1
 unwind_flags=

> 
> After some time and without any output to /var/log/daemon, unwind1 just
> stops replying to queries for the local network until I restart, then it
> works again during some time. 
> 
> This happens since days ago where I did this setup.
> 
> $ cat /etc/resolv.conf
> nameserver 127.0.0.1 # resolvd: unwind
> search home.arpa
> lookup file bind
> 
> $ cat /etc/unwind1.conf
> forwarder 192.168.10.1
> 
> $ route -T 1 exec dig @127.0.0.1 iron.home.arpa
> 
> ; <<>> dig 9.10.8-P1 <<>> @127.0.0.1 iron.home.arpa
> ; (1 server found)
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 31081
> ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
> 
> ;; QUESTION SECTION:
> ;iron.home.arpa.IN  A
> 
> ;; AUTHORITY SECTION:
> home.arpa.  3600IN  SOA localhost.
> nobody.invalid. 1 3600 1200 604800 10800
> 
> ;; Query time: 0 msec
> ;; SERVER: 127.0.0.1#53(127.0.0.1)
> ;; WHEN: Fri Mar 25 11:25:43 CET 2022
> ;; MSG SIZE  rcvd: 91
> 
> $ route -T 1 exec dig @127.0.0.1 +short iron.home.arpa
> $ route -T 1 exec dig @192.168.10.1 +short iron.home.arpa
> 192.168.10.10
> $ route -T 1 exec dig +short example.com
> 93.184.216.34
> 
> $ doas rcctl restart unwind1
> unwind1(ok)
> unwind1(ok)
> 
> $ route -T 1 exec dig @127.0.0.1 +short iron.home.arpa
> 192.168.10.10
> $ route -T 1 exec dig @192.168.10.1 +short iron.home.arpa
> 192.168.10.10
> 
> $ ifconfig lo1
> lo1: flags=8049 rdomain 1 mtu 32768
> description: rdomain 1 loopback address
> index 5 priority 0 llprio 3
> groups: lo
> inet6 ::1 prefixlen 128
> inet6 fe80::1%lo1 prefixlen 64 scopeid 0x5
> inet 127.0.0.1 netmask 0xff00
> 
> $ route -T 1 exec netstat -lnf inet
> Active Internet connections (only servers)
> Proto   Recv-Q Send-Q  Local Address  Foreign Address
> TCP-State
> tcp  0  0  127.0.0.1.53   *.*
> LISTEN
> Active Internet connections (only servers)
> Proto   Recv-Q Send-Q  Local Address  Foreign Address
> udp  0  0  192.168.10.10.68   *.*
> udp  0  0  127.0.0.1.53   *.*
> udp  0  0  *.17233*.*
> 

> OpenBSD 7.1-beta (GENERIC.MP) #439: Thu Mar 24 20:01:15 MDT 2022
> dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 17087004672 (16295MB)
> avail mem = 16551866368 (15785MB)
> random: good seed from bootblocks
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xe838b (83 entries)
> bios0: vendor Hewlett-Packard version "K51 v01.87" date 06/10/2019
> bios0: Hewlett-Packard HP Z220 CMT Workstation
> acpi0 at bios0: ACPI 5.0
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP APIC FPDT MCFG HPET SSDT SSDT SLIC SSDT SSDT TCPA ASF!
> acpi0: wakeup devices PS2K(S3) PS2M(S3) USB1(S3) USB2(S3) USB3(S3) USB4(S3) 
> USB5(S3) USB6(S3) USB7(S3) HUB_(S4) RP01(S4) PXSX(S4) RP05(S4) PXSX(S4) 
> RP07(S4) PXSX(S4) [...]
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Xeon(R) CPU E3-1245 V2 @ 3.40GHz, 3392.75 MHz, 06-3a-09
> cpu0: 
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
> cpu0: 256KB 64b/line 8-way L2 cache
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
> cpu0: apic clock running at 99MHz
> cpu0: mwait min=64, max=64, C-substates=0.2.1.1, IBE
> cpu1 at mainbus0: apid 2 (application processor)
> cpu1: Intel(R) Xeon(R) CPU E3-1245 V2 @ 3.40GHz, 3392.31 MHz, 06-3a-09
> cpu1: 
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
> cpu1: 256KB 64b/line 

Re: No sound on ThinkPad X220 using current snapshot

2022-02-14 Thread Josh Grosse
On Mon, Feb 14, 2022 at 05:58:37PM +0100, Dirk-Wilhelm Peters wrote:
> "Theo de Raadt"  wrote:
> 
> > > OpenBSD 7.0-current (GENERIC.MP) #325: Thu Feb 10 12:26:12 MST 2022
> > 
> > Your subject says "current snapshot".  But then you show a 4-day old
> > kernel.
> > 
> > You can do better.
> 
> Yes. Kernel #334 is also silent after returning from suspend mode.
 
I have the same X220 hardware.  Bisecting the kernel indicates this
commit caused the regression.  Tested on the X220 with GENERIC.MP.

commit ad814436a071b6401bfaf527a709138b9bf992e2 (refs/bisect/bad)
Author: deraadt 
Date:   Tue Feb 8 17:25:10 2022 +

The suspend/resume code is a sticky mess of MI, MD, and ACPI sequencing.
This splits out the MI sequencing, backing it with per-architecture helper
functions.  Further steps will be neccesary because ACPI and MD are too
tightly coupled, but soon we'll be able to use this code for more 
architectures
(which depends on figuring out the lowest-level cpu sleeping method)
ok kettenis



Re: i386 kernel relinking

2020-05-19 Thread Josh Grosse
On Tue, May 19, 2020 at 05:21:59PM +0200, Stefan Sperling wrote:
> On Fri, Apr 10, 2020 at 10:25:14AM -0400, Nick Holland wrote:
> > On 2020-04-10 10:10, Stefan Sperling wrote:
> > > On Fri, Apr 10, 2020 at 09:35:16AM -0400, Nick Holland wrote:
> > > FWIW, my soekris net5501 with 256MB of RAM and 512MB swap does manage
> > > to relink a kernel (on 6.6 + syspatches).
> > 
> > Whoops.  Guess I should have mentioned, that was -current, as of
> > yesterday 
> > OpenBSD 6.7-beta (GENERIC.MP) #110: Thu Apr  9 01:20:52 MDT 2020
> > dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
> > real mem  = 334970880 (319MB)
> > avail mem = 313077760 (298MB)
> > 
> > and probably a couple weeks ago for the real (old) hw.
> > 
> > I'm curious if your Soekris can handle 6.7-beta.
> > 
> > Nick.
> 
> It's been fixed in 6.7 release!

Thank you!!!  Awesome!!!



Re: i386 kernel relinking

2020-04-12 Thread Josh Grosse
FWIW, the GNU linker can reorder the kernel on i386-current
with 256MB RAM:

   # env LD=ld.bfd /usr/libexec/reorder_kernel

---

relink.log:

(SHA256) /bsd: OK
LD="ld.bfd" LDFLAGS="-g" sh makegap.sh 0x gapdummy.o
ld.bfd -T ld.script -X --warn-common -nopie -o newbsd ${SYSTEM_HEAD} vers.o 
${OBJS}
textdatabss dec hex
11916299262796  1101824 13280919caa697
mv newbsd newbsd.gdb
ctfstrip -S -o newbsd newbsd.gdb
rm -f bsd.gdb
mv -f newbsd bsd
install -F -m 700 bsd /bsd && sha256 -h /var/db/kernel.SHA256 /bsd

Kernel has been relinked and is active on next reboot.

SHA256 (/bsd) = 3c9cca9da06acdc92270f6f0e68b57447881a01e3e2584a0086291efb5033ba7

---

On Fri, Apr 10, 2020 at 10:52:37AM -0600, Theo de Raadt wrote:
> I am succesfully relinking kernels on a landisk with 128MB of ram.
> 
> I think this conversation is ridiculous:
> 
> If a machine is too small, then it is too small.  Do I have to paypal
> a $0.05 to some users?
> 
> Nick Holland  wrote:
> 
> > 
> > 
> > 
> > On 2020-04-10 10:10, Stefan Sperling wrote:
> > > On Fri, Apr 10, 2020 at 09:35:16AM -0400, Nick Holland wrote:
> > >> Question about kernel randomization and relinking...
> > >> 
> > >> It seems to take a fair amount of RAM, at least for systems that
> > >> are forced to run i386.  And I mean real RAM -- swap doesn't seem
> > >> to cut it.  
> > >> 
> > >> I discovered that several machines I was intending on using for
> > >> minimal purposes just couldn't complete relinking.  So I built a
> > >> VM and started playing with the RAM.
> > >> 
> > >> Built with 1G RAM, default was a 1.2G swap, worked fine.
> > >> Reduced to 256MB RAM, Kernel failed to relink.  As with my old
> > >> junk.
> > >>
> > >> The magic number seemed to be between 320MB (failed) and 384MB 
> > >> (worked) of RAM.  Ok, fine.  
> > > 
> > > FWIW, my soekris net5501 with 256MB of RAM and 512MB swap does manage
> > > to relink a kernel (on 6.6 + syspatches).
> > 
> > Whoops.  Guess I should have mentioned, that was -current, as of
> > yesterday 
> > OpenBSD 6.7-beta (GENERIC.MP) #110: Thu Apr  9 01:20:52 MDT 2020
> > dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
> > real mem  = 334970880 (319MB)
> > avail mem = 313077760 (298MB)
> > 
> > and probably a couple weeks ago for the real (old) hw.
> > 
> > I'm curious if your Soekris can handle 6.7-beta.
> > 
> > Nick.
> > 
> > 
> > > 
> > > # ls -l relink.log
> > > -rw-r--r--  1 root  wheel  -  507B Apr 10 13:33 relink.log
> > > # cat relink.log   
> > > (SHA256) /bsd: OK
> > > LD="ld" LDFLAGS="-g" sh makegap.sh 0x gapdummy.o
> > > ld -T ld.script -X --warn-common -nopie -o newbsd ${SYSTEM_HEAD} vers.o 
> > > ${OBJS}
> > > textdatabss dec hex
> > > 11815507267748  1101824 13185079c93037
> > > mv newbsd newbsd.gdb
> > > ctfstrip -S -o newbsd newbsd.gdb
> > > rm -f bsd.gdb
> > > mv -f newbsd bsd
> > > install -F -m 700 bsd /bsd && sha256 -h /var/db/kernel.SHA256 /bsd
> > > 
> > > Kernel has been relinked and is active on next reboot.
> > > 
> > > SHA256 (/bsd) = 
> > > a940ce989d708e5b87a1186ee81bd624066baeabe67b8405b52e4fa2988b565
> > > 
> > > 
> > > # dislabel -pm wd0
> > > #size   offset  fstype [fsize bsize   cpg]
> > >   a:   353.0M   64  4.2BSD   2048 16384  5624 # /
> > >   b:   511.1M   722944swap# none
> > >   c: 15280.0M0  unused
> > >   d:   444.8M  1769728  4.2BSD   2048 16384  7116 # /tmp
> > >   e:   607.7M  2680576  4.2BSD   2048 16384  9685 # /var
> > >   f:  1703.0M  3925216  4.2BSD   2048 16384 12958 # /usr
> > >   g:   505.8M  7412896  4.2BSD   2048 16384  8060 # 
> > > /usr/X11R6
> > >   h:  1632.9M  8448736  4.2BSD   2048 16384 12958 # 
> > > /usr/local
> > >   i:  1381.2M 11792960  4.2BSD   2048 16384 12958 # 
> > > /usr/src
> > >   j:  5282.4M 14621632  4.2BSD   2048 16384 12958 # 
> > > /usr/obj
> > >   k:  2850.9M 25439936  4.2BSD   2048 16384 12958 # /home
> > > 
> > 



Re: Openssh over a mobile network

2019-12-01 Thread Josh Grosse
On Sun, Dec 01, 2019 at 07:13:18PM +0530, putridsou...@gmail.com wrote:
> I am not able to ssh into my home computer connected to
> router,  the client device (termux on android) is on a
> mobile network. Is there something I am supposed to 
> know?. Because I can ssh into my computer easily when
> when both devices are on the same router network. 

I assume your router uses Network Address Translation (NAT). You must instruct
it to *forward* the incoming SSH traffic.  NAT is commonly used to separate
a private network from the Internet, particularly with small business or  
home networks.  

See your router's documentation for port forwarding.  The standard destination
port number for SSH is 22.



Re: heavy CPU consumption and laggy/stuttering video on thinkpad x230

2019-11-20 Thread Josh
Thanks Travis for listing down your BIOS settings. The changes I made
to match your settings:
Config - Power
  8254 Timer Clock Gating -> Auto <<<< this was to Disabled in my BIOS
Config - USB
  Always On USB - Disabled <<<< this was Enabled in my BIOS
Security - I/O Port Access
  Memory Card Slot -> Disabled <<<< this was Enabled in my BIOS
Boot
  UEFI/Legacy Boot -> Both <<< this was UEFI only
  UEFI/Legacy Boot -> Priority UEFI First

I installed 6.6 on an external drive. After some intensive use
(Chromium streaming 4K video), fan kicks in. However, when closing
down Chromium (or at least the 4K tab), FAN will stop running after a
short while and won't stay up consistently anymore - similar to 6.5's
behaviour.

@Dave, what are your BIOS settings? If different, would be interested
to know if those given by Travis would lower the ~15W idling to ~10W
on 6.6 ...


Cheers


On Wed, Nov 20, 2019 at 3:30 AM Travis Cole  wrote:
>
> On Tue, Nov 19, 2019, at 10:06, Josh wrote:
> > Have you tried on 6.5?
> >
> > My X1rev6 did not like the upgrade to 6.6. heavy cpu consumption,
> > super hot, laggy when browsing and fan spinning consistently.
> >
> > I've reinstalled 6.5 and been using the same settings as yours.
> > everything is back to normal. I guess I will wait for 6.7...
>
> I've been running the latest 6.6-current on my x1c6 and it works great.
>
> Really fast, wakes from suspend/hibernate. Isn't laggy, doesn't
> get too hot unless I'm doing a long build.
>
> However, I did somehow hit on some BIOS settings that made it
> behave as you describe. I was also seeing some failures to suspend,
> and it seemed like lid-action events might be getting missed. I could shut
> the lid and then ssh in. Sometimes for a while after boot a single core would
> be pegged for a few minutes.
>
> To fix it, I reset the BIOS to defaults, then set the following:
>
> Config - Power
>   Sleep State -> Linux
>   8254 Timer Clock Gating -> Auto
> Config - USB
>   USB UEFI BIOS Support -> Enabled
>   Always On USB - Disabled
> Config - Thunderbolt 3
>   Thunderbolt BIOS Assist Mode -> Enabled
> Security - I/O Port Access
>   Bluetooth -> Disabled (OpenBSD doesn't support it anyway)
>   Memory Card Slot -> Disabled (I read on the Arch Wiki (1.) some reports of 
> this sucking power, and I don't use it.)
>   Fingerprint Reader -> Disabled
> Security - Secure Boot Configuration
>   Secure Boot -> Disabled
> Boot
>   UEFI/Legacy Boot -> Both
>   UEFI/Legacy Boot -> Priority UEFI First
>   CSM Support - Yes
>
> I'm not sure all of the above are necessary, but mine works wonderfully since 
> I set it up
> this way. I'm also running BIOS version 1.43, which is the latest.
>
>
> 1. https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_X1_Carbon_(Gen_6)



Re: heavy CPU consumption and laggy/stuttering video on thinkpad x230

2019-11-19 Thread Josh
Have you tried on 6.5?

My X1rev6 did not like the upgrade to 6.6. heavy cpu consumption,
super hot, laggy when browsing and fan spinning consistently.

I've reinstalled 6.5 and been using the same settings as yours.
everything is back to normal. I guess I will wait for 6.7...

On Fri, Nov 15, 2019 at 4:58 PM Michael H  wrote:
>
> *laptop: thinkpad x230, i7 processor, 8G ram, intel hd 4000 gpu*
> *New OpenBSD user with a fresh install.*
>
> My user account is created from the install process and has "staff" class -
> though i haven't increased the datasize-cur, datasize-max for staff yet.
> Additionally, apmd has been set to -A as suggested by the faq.
>
> Basically, whenever I play a video, CPU0, CPU2(shown in top) spike up to
> about 30-58%. The heatsink/fan/ventilation area of the laptop gets
> extremely hot.
>
> Videos buffer pretty slowly, and most importantly, when I am watching a
> live stream via players such as mpv, it's basically unwatchable because the
> video stops every 3-4 seconds.
>
> *Here is a log file of messages from mpv while playing a stream: *
> https://pastebin.com/3VRWgv3K
> *Here is a log file of messages from mpv while playing a youtube video: *
> https://pastebin.com/mn0wEXMf
>
> *here is my dmesg:*
> http://ix.io/21Bg
> *here is my Xorg.0.log:*
> http://ix.io/21Bb
>
> *Here are the firmwares that have been downloaded during installation:*
> intel-firmware-20190918v0 microcode update binaries for Intel CPUs
> inteldrm-firmware-20181218 firmware binary images for inteldrm(4) driver
> iwn-firmware-5.11p1 firmware binary images for iwn(4) driver
> uvideo-firmware-1.2p3 firmware binary images for uvideo(4) driver
> vmm-firmware-1.11.0p2 firmware binary images for vmm(4) driver
>
> *Is this an issue with the system somehow using the modesetting driver
> instead of the inteldrm* *driver*? if so, why is that and how should i best
> remedy this problem? I thought old thinkpads are generally fully supported
> by OpenBSD?
>
> Anyways, if anyone could help i would really appreciate it!
>
> *and if anyone is using this exact machine (thinkpad x230), could you also
> recommend some of the other optimizations you have done for this machine? *
>
> thanks in advance!



Re: Raid0 max volume size

2019-11-09 Thread Josh Grosse
On Sat, Nov 09, 2019 at 07:01:02AM -0700, Raymond, David wrote:
> Does raid0 allow the creation of file systems bigger than the 2 TB limit of 
> ffs?

RAID 0 stripe sizes may be as large as the smallest physical extent.  

FFS2 -- see newfs(8) -- supports a filesystem size up to 64 PB.



Re: Downgrade 6.6 to 6.5

2019-11-06 Thread Josh
yep, 1.41

OpenBSD 6.6-current (GENERIC.MP) #427: Sat Nov  2 13:23:11 MDT 2019
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 16896442368 (16113MB)
avail mem = 16371654656 (15613MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.0 @ 0x9f04a000 (63 entries)
bios0: vendor LENOVO version "N23ET66W (1.41 )" date 09/02/2019
bios0: LENOVO 20KHCTO1WW
acpi0 at bios0: ACPI 5.0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT UEFI SSDT SSDT HPET APIC MCFG ECDT SSDT
SSDT BOOT BATB SSDT SSDT SSDT LPIT WSMT SSDT SSDT SSDT DBGP DBG2 MSDM
DMAR NHLT ASF! FPDT UEFI
acpi0: wakeup devices GLAN(S4) XHC_(S3) XDCI(S4) HDAS(S4) RP01(S4)
PXSX(S4) RP02(S4) PXSX(S4) PXSX(S4) RP04(S4) PXSX(S4) RP05(S4)
PXSX(S4) RP06(S4) PXSX(S4) RP07(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 2399 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz, 1789.52 MHz, 06-8e-0a
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 24MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz, 1789.04 MHz, 06-8e-0a
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz, 1788.48 MHz, 06-8e-0a
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz, 1790.06 MHz, 06-8e-0a
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 0, core 3, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 120 pins
acpimcfg0 at acpi0
acpimcfg0: addr 0xf000, bus 0-127
acpiec0 at acpi0
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (RP01)
acpiprt2 at acpi0: bus -1 (RP02)
acpiprt3 at acpi0: bus -1 (RP03)
acpiprt4 at acpi0: bus -1 (RP04)
acpiprt5 at acpi0: bus 4 (RP05)
acpiprt6 at acpi0: bus -1 (RP06)
acpiprt7 at acpi0: bus -1 (RP07)
acpiprt8 at acpi0: bus -1 (RP08)
acpiprt9 at acpi0: bus 5 (RP09)
acpiprt10 at acpi0: bus -1 (RP10)
acpiprt11 at acpi0: bus -1 (RP11)
acpiprt12 at acpi0: bus -1 (RP12)
acpiprt13 at acpi0: bus -1 (RP13)
acpiprt14 at acpi0: bus -1 (RP14)
acpiprt15 at acpi0: bus -1 (RP15)
acpiprt16 at acpi0: bus -1 (RP16)
acpiprt17 at acpi0: bus -1 (RP17)
acpiprt18 at acpi0: bus -1 (RP18)
acpiprt19 at acpi0: bus -1 (RP19)
acpiprt20 at acpi0: bus -1 (RP20)
acpiprt21 at acpi0: bus -1 (RP21)
acpiprt22 at acpi0: bus -1 (RP22)
acpiprt23 at acpi0: bus -1 (RP23)
acpiprt24 at acpi0: bus -1 (RP24)
acpicpu0 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151
mwait.1@0x33), C1(1000@1 mwait.1), PSS

Re: Downgrade 6.6 to 6.5

2019-11-06 Thread Josh
Snapshot -current #427 did not solve the problem after all.
so after much testing with bios options, disabling the intel
acceleration and even the chrome "hardware acceleration", nothing
seems to stop the fan from spinning. It will take a good 5min for the
fan to stop when computer is idling (activity of 96-98% idling, using
top CS). If I do a zzz like after one minute of idling and wake it
right after, the fan just stops. CPU temp remains the same as before
the zzz.

Not sure what to do next, I believe this could be reproduced on any X1
6G... Just install 6.6, log through xenodm, launch Chrome, heavy
programs to start the FAN spinning then idle the laptop and see how
long it takes for the fan to stop.
You should also be able to reproduce the other behaviour: when cpu
temp is 55-60degC and fan spinning, you can zzz and wake it right
away, fan remains stopped (as long as you don't do cpu intense tasks
upon awake)

would a "sendbug" be helpful?


On Sun, Nov 3, 2019 at 3:41 PM Josh  wrote:
>
> hi,
>
> I've upgraded from 6.5 to 6.6 on my X1 6G and since then, I am unable
> to find the reason(s) of the high fan spinning.
> Is there a procedure to downgrade to 6.5 or should I just reinstall
> from scratch?
>
> thank you



Re: Downgrade 6.6 to 6.5

2019-11-04 Thread Josh
Hi Dave,
was it related to the Sx bios functionalities?

On Sun, Nov 3, 2019 at 11:20 PM Raymond, David  wrote:
>
> I had the fan problem on an X1 5G running linux, but a bios upgrade solved it.
>
> Dave Raymond
>
> On 11/3/19, Josh  wrote:
> > hi,
> >
> > I've upgraded from 6.5 to 6.6 on my X1 6G and since then, I am unable
> > to find the reason(s) of the high fan spinning.
> > Is there a procedure to downgrade to 6.5 or should I just reinstall
> > from scratch?
> >
> > thank you
> >
> >
>
>
> --
> David J. Raymond
> david.raym...@nmt.edu
> http://physics.nmt.edu/~raymond



Re: Downgrade 6.6 to 6.5

2019-11-03 Thread Josh
I did not sent a bug report per say. Just this:
http://openbsd-archive.7691.n7.nabble.com/Fan-spinning-constantly-on-Lenovo-X1C-and-6-6-td375687.html

I upgraded to -current #427 and it seems to be better. I will spend
more time with it before I draw any conclusions.


thanks


On Sun, Nov 3, 2019 at 8:52 PM Otto Moerbeek  wrote:
>
> On Sun, Nov 03, 2019 at 03:41:33PM +0100, Josh wrote:
>
> > hi,
> >
> > I've upgraded from 6.5 to 6.6 on my X1 6G and since then, I am unable
> > to find the reason(s) of the high fan spinning.
> > Is there a procedure to downgrade to 6.5 or should I just reinstall
> > from scratch?
> >
> > thank you
> >
>
> Did you spend any time to send a report to maybe get your problem
> analyzed and fixed?
>
> -Otto



Downgrade 6.6 to 6.5

2019-11-03 Thread Josh
hi,

I've upgraded from 6.5 to 6.6 on my X1 6G and since then, I am unable
to find the reason(s) of the high fan spinning.
Is there a procedure to downgrade to 6.5 or should I just reinstall
from scratch?

thank you



Re: Fan spinning constantly on Lenovo X1C and 6.6

2019-10-28 Thread Josh
Thanks Alessandro and Dumitru for your replies.

I am not using Firefox. Just Chrome with the unveil setting. I thought
at first it was linked to the browser but the fan will keep spinning
even if I do not use any browsers.
For instance, using Zim, homebank, terminal with vim editing or mutt,
it will just spin at 4000+rpm even if the CPU shows a 50-52 degC. Fan
will only stop when <= 50 degC, when laptop is idling.

However, I have the same observation as Alessandro, putting the
computer to zzz and waking it up will stop the fan even if the cpu is
in the 50-60 degC range.

On Mon, Oct 28, 2019 at 9:47 AM Alessandro Gallo
 wrote:
>
> I can't speak for Josh, but I'm on a fresh install. What's strange is that 
> for the fan to come back to normal noise levels I have to put the laptop to 
> sleep with zzz, otherwise it just keeps spinning at full speed.
>
> Il 28 ottobre 2019 09:22:25 CET, Dumitru Moldovan  ha scritto:
>>
>> On Wed, Oct 23, 2019 at 08:51:16AM +0200, Josh wrote:
>>>
>>>
>>> After upgrading from 6.5 to 6.6 following the procedure [1], my Lenovo
>>> X1C 6G is getting hot all the time.
>>> Fan is constantly spinning at 4000+rpm even even if its just editing a
>>> note in zim.
>>> If I let the laptop idling, it will take quite some time for the fan
>>> to stop even if there is no high cpu usage processes (showing top CS
>>> processes).
>>
>>
>> Perhaps stating the obvious, but have you tried starting Firefox in safe
>> mode?  Or even with a fresh profile?
>>
>> I have two Firefox profiles that work just fine with 69.0.2 after
>> upgrading to OpenBSD 6.6, but you never know...  One of my profiles is
>> quite old, have used it over the years in four OS'es (Linux, FreeBSD,
>> OpenBSD, NetBSD).  Could not have done it without weekly backups, which
>> allowed me to restore a sane profile when Firefox went beserk, which
>> happened a few times.
>>
>
> --
> Thanks



Fan spinning constantly on Lenovo X1C and 6.6

2019-10-23 Thread Josh
hi,

After upgrading from 6.5 to 6.6 following the procedure [1], my Lenovo
X1C 6G is getting hot all the time.
Fan is constantly spinning at 4000+rpm even even if its just editing a
note in zim.
If I let the laptop idling, it will take quite some time for the fan
to stop even if there is no high cpu usage processes (showing top CS
processes).

X session is started via xenodm using cwm only. See below .xsession.
Tried with and without the following configuration file but behaviour
remains the same.
$ cat /etc/X11/xorg.conf.d/intel.conf
Section "Device"
   Identifier "drm"
   Driver "intel"
   Option "TearFree" "true"
EndSection

The only tweaks I added were from this link [2].

apmd is started at boot, with -A flag. One thing I notice is that apm
seems to change more frequently the hw.setperf setting to its max. My
overall usage of the laptop did not change.
Could it be related to some apm / performance adjustment changes
between 6.5 and 6.6?

Any other X1/Lenovo X2* owners facing that issue?

Thank you

[1] https://www.openbsd.org/faq/upgrade66.html
[2] https://www.c0ffee.net/blog/openbsd-on-a-laptop/

$ cat .xsession
source $HOME/.profile
xsetroot -solid dimgray
xidle &
xset dpms 180 240 300
xset s off
exec cwm

$ cat /etc/sysctl.conf
hw.allowpowerdown=1 # 0=Disable power button shutdown
machdep.allowaperture=2 # See xf86(4)
machdep.lidaction=1 # 1=suspend, 2=hibernate laptop upon lid closing
machdep.pwraction=2 # ACPI power button action: 0=none, 2=suspend
kern.audio.record=0
kern.shminfo.shmall=3145728
kern.shminfo.shmmax=2147483647
kern.shminfo.shmmni=1024
kern.shminfo.shmseg=1024
kern.seminfo.semmns=4096
kern.seminfo.semmni=1024
kern.maxproc=32768
kern.maxfiles=65535
kern.bufcachepercent=50
kern.maxvnodes=262144
kern.somaxconn=2048

$ dmesg
OpenBSD 6.6 (GENERIC.MP) #372: Sat Oct 12 10:56:27 MDT 2019
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 16896438272 (16113MB)
avail mem = 16371642368 (15613MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.0 @ 0x9f049000 (63 entries)
bios0: vendor LENOVO version "N23ET66W (1.41 )" date 09/02/2019
bios0: LENOVO 20KHCTO1WW
acpi0 at bios0: ACPI 5.0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT UEFI SSDT SSDT HPET APIC MCFG ECDT SSDT
SSDT BOOT BATB SSDT SSDT SSDT LPIT WSMT SSDT SSDT SSDT DBGP DBG2 MSDM
DMAR NHLT ASF! FPDT UEFI
acpi0: wakeup devices GLAN(S4) XHC_(S3) XDCI(S4) HDAS(S4) RP01(S4)
PXSX(S4) RP02(S4) PXSX(S4) PXSX(S4) RP04(S4) PXSX(S4) RP05(S4)
PXSX(S4) RP06(S4) PXSX(S4) RP07(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 2399 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz, 1796.56 MHz, 06-8e-0a
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MO
VBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,S
SBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 24MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz, 1795.82 MHz, 06-8e-0a
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MO
VBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,S
SBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz, 1795.82 MHz, 06-8e-0a
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MO
VBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,S
SBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu2: 256KB 64b/line 8-way L2 cache

Re: Virtual Web Server

2019-03-08 Thread Josh Grosse
On Fri, Mar 08, 2019 at 12:09:22PM +, daffodil...@protonmail.ch wrote:
> I installed OpenBSD on my home server with the intention of running Wordpress 
> and some other things (maybe a TOR relay, I don't know). After installing, I 
> used some online guides to get PHP and MySQL as well as httpd (not apache) 
> set up. But after setting up Wordpress, I was getting some errors I was 
> unable to debug (unable to post content, unable to crop images, etc.)
> 
> Now I'm thinking instead to run Linux in a VM to host Wordpress but keeping 
> OpenBSD on the machine as the base operating system. What settings do I need 
> to alter in order to serve http and https from a VM? And is this a normal 
> kind of setup or should I work harder at just debugging what is wrong with 
> Wordpress on the OpenBSD setup?

I'm going to guess you are using either httpd(8) or the nginx package
as your web server.  If so, you will need to create a copy of /etc/resolv.conf
as /var/www/etc/resolv.conf.  Both web servers run in a chroot(2) at
/var/www.  After creating the directory and copying the file, restart your
phpXX_fpm daemon.

It was just a guess, of course, because you didn't state what you're using,
or what you've done.



Re: device node for sd1 not present

2019-02-08 Thread Josh Grosse
On Fri, Feb 08, 2019 at 04:42:42PM +0300, ??\_(???)_/?? ??\_(???)_/?? wrote:
> Hi,
> I need to mount sd1(install media) in install shell, but it only has device 
> nodes for sd0(hdd).
> How do I create device nodes for sd1 ?
> Also, I can't execute /dev/MAKEDEV("Permission  denied").

# cd /dev && sh MAKEDEV sd1



Re: vlan problem

2019-01-28 Thread Josh Grosse
On Mon, Jan 28, 2019 at 07:57:01PM +0800, johnw wrote:
> hi, I want create vlan network

vlan(4) **REQUIRES** switching equipment that supports
802.1Q Ethernet tagging.  These are known as "managed
switches".



Re: is there anything like pdfnup or pdfjam?

2019-01-21 Thread Josh Grosse
On Mon, Jan 21, 2019 at 04:50:08PM +, rsyk...@disroot.org wrote:
> Dear list,
> 
> I want to print a pdf, but with two pages put
> on one physical page.
> 
> On linux, pdfnup or pdfjam can do it.
> 
> I cannot find these for OpenBSD.
> What do you use then?

Both pdfnum and pdfjam are included with the texlive_base package.  For 2-up
printing, I use evince.



Re: does this affect acme-client?

2019-01-21 Thread Josh Grosse
On Mon, Jan 21, 2019 at 03:18:04PM +0100, Peter J. Philipp wrote:
> Does this affect the acme-client?
> 
> https://community.letsencrypt.org/t/february-13-2019-end-of-life-for-all-tls-sni-01-validation-support/74209
> 
> Regards,
> -peter

I don't think so, Peter.  Per acme-client(1): "acme-client only implements the 
'http-01' challenge type..."



I love your Emails. This one made my day!

2018-11-20 Thread Josh Grosse
Thank you!

On November 20, 2018 2:24:55 PM EST, Nick Holland  
wrote:
>On 11/20/18 11:43, Chris Bennett wrote:
>> I am almost certainly going to be replacing with a new server for an
>> organization I am a member of.
>> With all of this mess with Meltdown, Spectre, insecure motherboard
>> chips,etc.
>> I am pretty clueless on exactly what is going to be a secure set of
>> server hardware.
>> Intel, well no.
>> AMD? I have read about problems with non-CPU chips being compromised.
>> Another architecture? I have never used anything other than
>Intel/AMD.
>> 
>> The server will run httpd, mailserver, PostgreSQL and somehow a good
>way
>> for well encrypted messaging at times.
>
>all on one server?
>
>And as someone who has run a number of mail servers for a number of
>companies ... don't.  Just don't.  Running your own mail server is a
>good way to accomplish nothing except wasting a lot of time and making
>people hate you.
>
>> It is very likely to run out of Austin, Texas.
>> I think that having a direct connection would be best, but would a
>> proper setup make collocation OK?
>
>You are using poorly defined buzzwords.  What you mean by a "direct
>connection", "proper setup", "collocation" and what I mean are likely
>very different.
>
>> This isn't going to be my server, I will just be in charge. That's
>> completely new for me.
>> Any advice is really welcome, everywhere I read anything, hardware
>seems
>> broken and insecure.
>
>Pretty much all new HW is optimized in ways that we are now learning
>(and has been known for a long time) introduce security problems.
>However, most of the problems boil down to having malicious software
>running in the control of someone else on the same physical machine
>YOUR
>code is running on.
>
>In short: No news.  Really.
>
>If someone that wanted to do you evil lived in the same house as you,
>you would not be comfortable, right?  What if you put up walls
>(virtualization) that have proven to to be about as robust as paper?
>That make you feel any better?  Probably not.  Virtualization has been
>proven -- over and over -- not terribly secure.  Now we got
>cross-virtualization platforms ways of stealing data from other
>processes.  Important? yes.  But in the big picture, it's similar to
>Yet
>Another buffer overflow.
>
>So...split your tasks on different physical systems as much as
>possible.
>If your webserver is serving static pages, it's probably pretty robust.
> If it's running Wordpress or any other "any idiot can manage the web
>page" apps or dynamic web pages for other reasons, it should be a
>machine of its own and have no other important data on it.
>Your primary goal should be to keep the bad guys off your computer in
>every sense.  And again...nothing new here.
>
>But if security is your concern, you want real hw you control in every
>sense.
>
>Unfortunately, if you have performance requirements, your choices are
>AMD and Intel.  Older Intel and AMD chips aren't getting any support to
>deal with these problems, so your choices are incredibly old chips
>which
>are probably not in the most reliable hardware, and a whole bunch of
>other old, unreliable, and slow hardware platforms.  But be realistic.
>Your bosses will probably mandate a VM on someone else's hw, a
>wordpress
>website, one box for everything, and that you give him the root
>password
>which he'll e-mail to himself to keep it "secure".  Your most likely
>breach points will be an easily guessed password (usually, a
>manager's),
>a bug in a web content management system, or someone believing that
>"secure e-mail" is a thing.  In other words, Same Old Shit.  It
>probably
>won't be breached by a Spectre or Meltdown-like attack.  But it MIGHT
>be.  Obsessing about them is generally missing the real day-to-day
>risks.
>
>Nick.

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.


Re: How can I mount a HDD with full encryption on another system?

2018-08-02 Thread Josh Grosse
On Fri, Aug 03, 2018 at 12:06:41AM +0200, Felix Maschek wrote:
> Hi!
> 
> I've used a full encrypted HDD (created as described in the OpenBSD FAQ) on
> a broken system and want to backup some data from it.
> 
> I've assembled this HDD into an external USB case and want to mount the HDD
> on another system. How can I mount this HDD? Needless to say that I know the
> passphrase...
> 
> Kind regards
> Felix
> 
See the bioctl(8) man page.  The softraid(4) man page may also be
helpful.



Re: no default httpd.conf?

2018-05-16 Thread Josh

Hey there.

With the su-php question, try looking into php-fpm's pools. In there you 
can define a socket / port to listen on, and a username/group to run 
that pool as. So that means in httpd.conf you can assign different 
locations/virtualhosts to different php sockets/ports, and thereby 
assigning different uid/gid's.


Cheers

Josh


On 17/05/18 14:50, justina colmena wrote:

I just recently installed OpenBSD 6.3, and I was looking for an example
httpd.conf, but I did not find one. The manual page does document
more or less how to create one, but there still appears to be some lack
of ease and safety putting up a basic web page with dynamic content (I
am most used to PHP and PostgreSQL for that purpose, but of course
there are many options that more or less replace the ubiquitous "LAMP"
or "Linux/Apache/MySQL/PHP" stack.

Now there is nothing in OpenBSD's httpd really like Apache's "UserDir"
directive. Of course the real user directory has to dwell somewhere in
the "/var/www" chroot on OpenBSD. The alternative to "UserDirs" of
course, is wildcard subdomains, but those do not really cooperate all
that well with https, dnssec, or caa records, or with certain other
general goals of security.

The other thing I am curious about is something like "su-php" which
appears to be deprecated and outdated. So, assuming some sort of UserDir
scenario, (probably more sophisticated than my very basic one I
have hacked together below,) does php-fpm have a way to prevent one
user's malicious php script from reading another user's database
access credentials?

%<
# /etc/httpd.conf for amarillo.colmena.biz

server "default" {
 listen on * port 80
 listen on :: port 80
 listen on * tls port 443
 listen on :: tls port 443
 tls certificate "/etc/ssl/fullchain.pem"
 directory index index.php
 location "/.well-known/acme-challenge/*" {
 root "/acme"
 root strip 2
 }
 location match "/~justina/.*%.php" {
 root "/justina"
 root strip 1
 fastcgi socket "/run/php-fpm.sock"
 }
 location "*.php" {
 fastcgi socket "/run/php-fpm.sock"
 }
 location "/~justina/*" {
 root "/justina"
 root strip 1
 directory auto index
 }
 location "/~justina" {
 block return 301 "/~justina/"
 }
}
types {
 include "/usr/share/misc/mime.types"
}




Re: Kindly support this initiative for a public git repository of OpenBSD source code located at Germany!

2017-12-29 Thread Josh Stephens
Dinesh

  Can you not host your own git server and just do a nightly cvs import into 
that git server? Or am i missing something here to this conversation?

Sent from my iPhone

> On Dec 29, 2017, at 5:16 PM, Kai Wetlesen  wrote:
> 
> Dinesh,
> 
> Short answer: No.
> 
> Long answer: I speak on behalf of myself only. Just what exactly is wrong
> with the already existing CVS? Why is a Git repo required?
> 
> Learn CVS, then teach it to your students.
> 
> ~Kai
> 
>> On Dec 28, 2017, at 10:05, Dinesh Thirumurthy  
>> wrote:
>> 
>> Dear Everyone,
>> 
>>> On Thu, Dec 28, 2017 at 3:05 PM, Mikko Laine  wrote:
>>> 
>>> You could try https://notabug.org/, which is Dutch-owned and hosted in
>>> Germany. Note larger repositories (>100 Mb) are accepted per-case.
>> 
>> 
>> I have requested notabug.org to provide 1GB space for openbsd src git repo.
>> It would be good to demonstrate that that you also want this idea
>> implemented.
>> 
>> So, kindly help by voting Yes to my online poll.
>> 
>> The poll is at https://doodle.com/poll/rbg53x3dyd7i4y5d
>> 
>> Thanks very much.
>> 
>> Regards,
>> Dinesh Thirumurthy
> 



Re: 6.2-Release - Firefox and Codeblocks Issues

2017-11-20 Thread Josh Grosse

On 2017-10-16 20:30, Josh Grosse wrote:

1. Discussion was moved to ports@.
2. I have tested a fix, which I will publish for -current and 
6.2-stable.
3. I will need to build and test the -stable package, and can then make 
it

   available to you if you want to trust an unsigned package from the
   port maintainer.


To close the loop, an improved fix for devel/codeblocks has been 
submitted

to ports@.

https://marc.info/?t=15111045484=1=2



Re: switching to DUIDs (and back)

2017-11-01 Thread Josh Grosse

On 2017-11-01 10:08, Alan Corey wrote:


Thank you, I was thinking every partition has a UUID and I needed to
find and use those.  But even in Linux it's apparently only devices
that have UUIDs.  They're almost like DOS/Windows drive serial
numbers, but those are generated when you format a partition and only
apply to the partition.  Yes, I was looking at man pages but what I
was looking for doesn't exist.


I'm sorry.  Originally, you wrote:


I want to replace my fstab with one that accesses my current
partitions using DUIDs.  Disklabel shows me a DUID for the drive, how
do I set up individual partitions?  Or is there already a DUID (or
UUID) for each partition that I need to find and use?


A DUID is per drive, and is reported to you by disklabel(8).

# disklabel wd0 | grep duid

You can change the DUID value as well, if you desire to.
See the "i" command in the disklabel editor section of the
man page.

You'd also written ...


I don't really like DUIDs ...


They were introduced specifically to eliminate needing to
edit fstab(5)entries in the event of device number changes.



Re: switching to DUIDs (and back)

2017-10-29 Thread Josh Grosse
On Sun, Oct 29, 2017 at 11:30:51AM -0400, Josh Grosse wrote:
> Basically, replace "wd0" with the drive's DUID.

I'm wrong, of course.  Replace "/dev/wd0" with the drive's DUID, 
then append "." followed by the partition.



Re: switching to DUIDs (and back)

2017-10-29 Thread Josh Grosse
On Sun, Oct 29, 2017 at 11:25:22AM -0400, Alan Corey wrote:
> I thought this was documented somewhere but I'm not finding it in Googling.
> 
> I don't really like DUIDs, but I want to stick in a second drive
> controller temporarily to recover data off some old hard drives.
> Which means /dev/wd0a etc is going to change since the added
> controller (in a PCI slot) becomes primary.  I'm perfectly comfortable
> manually mounting and unmounting the old drives, I don't want to add
> them to an fstab.
> 
> I want to replace my fstab with one that accesses my current
> partitions using DUIDs.  Disklabel shows me a DUID for the drive, how
> do I set up individual partitions?  Or is there already a DUID (or
> UUID) for each partition that I need to find and use?
> 
> The main thing right now is to change fstab so it boots back up
> smoothly with DUIDs.  I'll comment out my current entries and put the
> DUID ones below.  And yes, I already made a backup copy.  All IDE,
> can't afford SCSI.

The fstab(5) man page is your friend. There's even an EXAMPLES section
in there for you to review that shows how DUIDs are addressed.

Basically, replace "wd0" with the drive's DUID.



Re: 6.2-Release - Firefox and Codeblocks Issues

2017-10-16 Thread Josh Grosse
1. Discussion was moved to ports@.
2. I have tested a fix, which I will publish for -current and 6.2-stable.
3. I will need to build and test the -stable package, and can then make it
   available to you if you want to trust an unsigned package from the 
   port maintainer.



Re: 6.2-Release - Firefox and Codeblocks Issues

2017-10-16 Thread Josh Grosse
On Sun, Oct 15, 2017 at 12:31:42PM -0400, tec...@protonmail.com wrote:
> Hi,
> 
> Firefox / Firefox-ESR
> I can not access my protonmail.com email account on  both of these versions 
> as I can't get to the login screen (it hangs on the loading screen) - this is 
> evident by going to https://mail.protonmail.com/login.  I have experienced 
> this same issue on two different installs, so I believe anyone trying to 
> access this site or some others will face the same issue.  My guess is that 
> it is due to the JavaScript functions it is running on this page.
> 
> Chromium works without issue and shows the login form.  Problem is, I really 
> despise Chromium and actively try to stay away from all Google services.
> 
> ###
> 
> Codeblocks
> This crashes as soon as I open it.  I can briefly see the codeblocks graphic 
> before it does so.

Thank you for your report regarding codeblocks.  I am able to 
replicate the abort signal, and will try to diagnose.  

--->>> Transitioning this discussion to ports@ <<<---

> 
> $ codeblocks
> Starting Code::Blocks Release 16.01  rev 10692 Oct  2 2017, 19:06:03 - 
> wx2.8.12 (OpenBSD, unicode) - 64 bit
> Initialize EditColourSet .
> Initialize EditColourSet: done.
> Abort trap (core dumped)
> 
> $ gdb
> (gdb) core codeblocks.core
> Core was generated by `codeblocks'.
> Program terminated with signal 6, Aborted.
> #0  0x0f1d99cdb2da in ?? ()



httpd config for radicale

2017-10-07 Thread Josh
hi,

Currently using nginx and radicale, I would like to move to httpd instead.
I am a bit stuck with the configuration of httpd. I've tried the following:

httpd.conf
ext4_addr="xxx.xxx.eee.www"
chroot "/var/www"
types {
include "/usr/share/misc/mime.types"
}
server "caldav.xx.org" {
listen on $ext4_addr tls port 443
tls certificate "/etc/ssl/nginx.crt"
tls key "/etc/ssl/private/nginx.key"
tls protocols TLSv1.2
root "/htdocs/"
directory { index "index.htm" }
location "/\.ht*" { block drop }
location "/*" {
root "/htdocs/"
authenticate Restricted with "/htdocs/.htpasswd"
block return 301 "http://127.0.0.1:5232$REQUEST_URI;
   }
}

The block return 301 line is most likely wrong. Would anyone be able
to give some directions?

Cheers,


Below is the working config with nginx and the radicale config file:

nginx.conf

server {
listen   443;
server_name  caldav.xxx.org;
root /var/www/htdocs;
ssl  on;
ssl_certificate  /etc/ssl/nginx.crt;
ssl_certificate_key  /etc/ssl/private/nginx.key;
ssl_session_timeout  5m;
location ~ /\.ht {
deny all;
}
location / {
auth_basic   "Restricted";
auth_basic_user_file /var/www/htdocs/.htpasswd;
try_files$uri @radicale;
}
location @radicale {
proxy_pass   http://127.0.0.1:5232/$uri;
}
}


radicale.conf
[server]
hosts = 0.0.0.0:5232
daemon = False
pid =
ssl = False
certificate = /etc/radicale/server.crt
key = /etc/radicale/private/server.key
dns_lookup = True
base_prefix = /
realm = Password
[encoding]
request = utf-8
stock = utf-8
[well-known]
[auth]
type = None
htpasswd_filename = /etc/radicale/users
htpasswd_encryption = bcrypt
ldap_url = ldap://localhost:389/
ldap_base = ou=users,dc=example,dc=com
ldap_attribute = uid
ldap_filter =
ldap_binddn =
ldap_password =
ldap_scope = OneLevel
imap_hostname = localhost
imap_port = 143
imap_ssl = False
pam_group_membership =
courier_socket =
http_url =
http_user_parameter =
http_password_parameter =
[git]
[rights]
type = None
file = /etc/config/radicale/rights
[storage]
type = filesystem
filesystem_folder = /var/db/radicale/calendars
database_url =
[logging]
config = /etc/radicale/logging
debug = False
full_environment = False
[headers]



Re: How make X rotation work via xrandr or xorg.conf? Did not get it to work on wsfb at least

2017-10-06 Thread Josh Grosse
On Fri, Oct 06, 2017 at 05:11:05PM -, ti...@openmailbox.org wrote:
> [...]
> Any ideas how I get screen rotation in X going?

$ xrandr -o right
$ xrandr -o left
$ xrandr -o normal



Re: What decides which port becomes a package?

2017-09-10 Thread Josh Grosse
On Sun, Sep 10, 2017 at 07:09:37AM +0200, Niels Kobsch??tzki wrote:
> Hi,
> 
> I wanted to install tarsnap today but in the packages I could only find
> tarsnap-gui (and in the packages for 6.2-beta tarsnapper). The
> installation fails because they cannot find tarsnap.

Licensing decides whether an application can be packaged for distribution.
The Ports build subsystem  uses licensing variables to determine if packages
can be  distributed.  

The Tarsnap port's Makefile contains the following comments and licensing
permission settings:


# May not be modified and may only be used with tarsnap.com
# see http://www.tarsnap.com/legal.html
PERMIT_PACKAGE_CDROM=   restrictive licence
PERMIT_PACKAGE_FTP= restrictive licence
PERMIT_DISTFILES_FTP=   restrictive licence


> In the ports though there is tarsnap and after installing that even
> tarsnap-gui installs for example.

Yes, because tarsnap-gui uses a BSD license.  


# BSD
PERMIT_PACKAGE_CDROM =  Yes

 
> 2) Why are there packages that depend on ports?

Most tarsnap-gui users would prefer to install from a binary package, 
as tarsnap-gui is a complex application, with 165 build dependencies.  

As noted in the FAQ, the purpose of Ports is to build packages, as that
is what we install.  But sometimes, distribution of a package is not
possible due to restrictions put in place by the application authors.



Re: touchpad input driver: testing needed

2017-07-31 Thread Josh Grosse
Feedback report  
---


Hardware:   Thinkpad X220.
Results:Excellent!
wsconsctl configuration changes:None.

mouse.type=synaptics
mouse.rawmode=0
mouse.scale=1472,5768,1408,5062,0,65,136
mouse.tp.tapping=0
mouse.tp.scaling=0.163
mouse.tp.swapsides=0
mouse.tp.disable=0
mouse1.type=ps2
mouse2.type=usb

OpenBSD 6.1-current (GENERIC.MP) #23: Sun Jul 30 17:07:49 MDT 2017
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
RTC BIOS diagnostic error 80
real mem = 8451125248 (8059MB)
avail mem = 8188645376 (7809MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xdae9c000 (66 entries)
bios0: vendor LENOVO version "8DET73WW (1.43 )" date 10/12/2016
bios0: LENOVO 4291G26
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SLIC SSDT SSDT SSDT HPET APIC MCFG ECDT ASF! TCPA SSDT 
SSDT DMAR UEFI UEFI UEFI
acpi0: wakeup devices LID_(S3) SLPB(S3) IGBE(S4) EXP4(S4) EXP7(S4) EHC1(S3) 
EHC2(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, 2492.30 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: TSC frequency 2492296960 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, 2491.91 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, 2491.91 MHz
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, 2491.91 MHz
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpiec0 at acpi0
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG_)
acpiprt2 at acpi0: bus 2 (EXP1)
acpiprt3 at acpi0: bus 3 (EXP2)
acpiprt4 at acpi0: bus -1 (EXP4)
acpiprt5 at acpi0: bus 13 (EXP5)
acpiprt6 at acpi0: bus -1 (EXP7)
acpicpu0 at acpi0: C3(350@104 io@0x415), C1(1000@1 halt), PSS
acpicpu1 at acpi0: C3(350@104 io@0x415), C1(1000@1 halt), PSS
acpicpu2 at acpi0: C3(350@104 io@0x415), C1(1000@1 halt), PSS
acpicpu3 at acpi0: C3(350@104 io@0x415), C1(1000@1 halt), PSS
acpipwrres0 at acpi0: PUBS, resource for EHC1, EHC2
acpitz0 at acpi0: critical temperature is 99 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
"PNP0303" at acpi0 not configured
"LEN0020" at acpi0 not configured
"SMO1200" at acpi0 not configured
acpibat0 at acpi0: BAT0 model "42T4875" serial94 type LION oem "Panasonic"
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
acpidock0 at acpi0: GDCK not docked (0)
acpivideo0 at acpi0: VID_
acpivout at acpivideo0 not configured
acpivideo1 at acpi0: VID_
cpu0: Enhanced SpeedStep 2492 MHz: speeds: 2501, 2500, 2200, 2000, 1800, 1600, 
1400, 1200, 1000, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 2G Host" rev 0x09
inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 3000" rev 0x09
drm0 at inteldrm0
inteldrm0: msi
inteldrm0: 1366x768, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel 6 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
em0 at pci0 dev 25 function 0 "Intel 82579LM" 

Re: Some questions about vmm and xorg

2017-07-27 Thread Josh Grosse

On 2017-07-27 11:30, G wrote:

Hello.

Some questions about vmm
Does vmm (on openbsd current) support running xorg?


I'll restate this question, because the X11 Windows System uses a 
client/server model,

and X.Org software includes both clients and servers.

   * X11 Clients are the graphical applications.
   * X11 Servers are the X display devices.

So, "What part of the X11 Windows System is available for vmm(4) guests" 
is a better question,

and one that I can answer.

X client applications works fine from within a vmm(4) guest, as they do 
from any server that
does not have a graphics display.  The typical communication path 
between the application
and a workstation display (the X Server) is with ssh(1) X11 Forwarding.  
See sshd_config(5),

ssh_config(5), and ssh(1) man pages for details.

If a user wanted to operate a window manager for the vmm() guest and its 
various X clients,

Xephyr(1) or Xnest(1) are both available.



Re: vmctl: connect: /var/run/vmd.sock: No such file or directory

2017-07-22 Thread Josh Grosse
On Sat, Jul 22, 2017 at 08:38:56PM +0300, G wrote:
> I get the following messages
> 
> # vmd -vd
> vmd: /dev/vmm: Operation not supported by device
 
The vmm(4) driver requires hardware virtualization features, and if you
have the right hardware, may require you to enable them in your BIOS.
Your dmesg(8) will note if the kernel can load the vmm() driver. For 
example, mine shows:

vmm0 at mainbus0: VMX/EPT



Re: vmctl: connect: /var/run/vmd.sock: No such file or directory

2017-07-22 Thread Josh Grosse
On Sat, Jul 22, 2017 at 01:21:33PM -0400, I wrote:

>   # vmd -v

I'd like to correct this.  Add -d to prevent running in the background,
and log output to stderr.

# vmd -dv



Re: vmctl: connect: /var/run/vmd.sock: No such file or directory

2017-07-22 Thread Josh Grosse
On Sat, Jul 22, 2017 at 08:13:03PM +0300, G wrote:
> I already enable vmd. I though enable vmd was enough
> I haven't run rcctl start vmd but when I tried it I get
> # rcctl start vmd
> vmd(failed)
 
Pick an option:

1.  Re-run rcctl with debugging output:

# rcctl -d start vmd

2.  Run vmd manually.  Per the vmd(8) man page, you may add -v
one or more times for additional information.

# vmd -v

> On 07/22/17 20:03, Josh Grosse wrote:
> > On Sat, Jul 22, 2017 at 07:30:19PM +0300, G wrote:
> >> Hello.
> >> Im following vmctl manual and i get.
> >>
> >> # vmctl create disk.img -s 4.5G
> >> vmctl: imagefile created
> >> # vmctl start "myvm" -m 1G -i 1 -b /bsd -d disk.img
> >> vmctl: connect: /var/run/vmd.sock: No such file or directory
> >>
> >> Any ideas?
> > 
> > You must start the vmd(8) daemon.
> > 
> >   # rcctl enable vmd
> >   # rcctl start vmd
> > 
> 



Re: vmctl: connect: /var/run/vmd.sock: No such file or directory

2017-07-22 Thread Josh Grosse
On Sat, Jul 22, 2017 at 07:30:19PM +0300, G wrote:
> Hello.
> Im following vmctl manual and i get.
> 
> # vmctl create disk.img -s 4.5G
> vmctl: imagefile created
> # vmctl start "myvm" -m 1G -i 1 -b /bsd -d disk.img
> vmctl: connect: /var/run/vmd.sock: No such file or directory
> 
> Any ideas?

You must start the vmd(8) daemon.

  # rcctl enable vmd
  # rcctl start vmd



Re: Mounting DVD with single file burned onto

2017-07-20 Thread Josh Grosse
Sending to ports@ to continue this part of the discussion.
Please remove misc@ in any replies.

On Thu, Jul 20, 2017 at 01:20:41AM +0200, Stefan Wollny wrote:

> >> When it comes to backups one usual advice (among others) is to make use
> >> of different storage types. So I have tar'ed one folder (~32GB) and
> >> zip'd with p7zip. man p7 explains the '-v{size}bkmg'-switch but I got
> >> "System ERROR: E_NOTIMPL". 
> > 
> > I am unable to recreate this problem on amd64.  I just used 
> > 
> > $ vmctl create 100mb.file -s 100m
> > $ 7z a test.7z 100mb.file -v5k
> > 
> > I obtained 4 output files, test.7z.0001 thru test.7z.0004.
> > 
> 
> This is the actual command and result:
> 
> $ tar cf - /home/sw/Bilder/Nikon\ Transfer/20170430_Keukenhof/ | 7z a
> -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on -v4880m -si
> Keukenhof_20170430.tar.7z
> tar: Removing leading / from absolute path names in the archive
> 
> 7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
> p7zip Version 16.02 (locale=de_DE.UTF-8,Utf16=on,HugeFiles=on,64 bits,4
> CPUs x64)
> 
> System ERROR:
> E_NOTIMPL

I ran the same command with a small 100MB test file, and didn't bump into
this either.  I can guess that your large pipe is bumping up against a 
limit.  There's only one module where "System ERROR:" is produced:
CPP/7zip/UI/Console/MainAr.cpp. But it's a catch().  I can try to 
reproduce but it will take me some time to prepare a test environment
large enough.  You may be able to set a breakpoint there and obtain
a backtrace to determine the source of the error.  That's what I will
do when I try to recreate with a 32GB test stream.



Re: Mounting DVD with single file burned onto

2017-07-19 Thread Josh Grosse
On Wed, Jul 19, 2017 at 09:24:56PM +0200, Stefan Wollny wrote:
> Hi there!
>  
> Please excuse if this matter is not strictly OpenBSD-related even though
> I use OpenBSD.

That's OK, I happen to be the maintainer of archivers/p7zip, and also of 
sysutils/shunt, which you may want to experiment with.  Way back in the
old days when I backed up to CD and later DVD, I used shunt to split
backups into disc-sized chunks and burn them in the backup pipeline.  
I haven't used it in years, but it should work for this purpose.
  
> When it comes to backups one usual advice (among others) is to make use
> of different storage types. So I have tar'ed one folder (~32GB) and
> zip'd with p7zip. man p7 explains the '-v{size}bkmg'-switch but I got
> "System ERROR: E_NOTIMPL". 

I am unable to recreate this problem on amd64.  I just used 

$ vmctl create 100mb.file -s 100m
$ 7z a test.7z 100mb.file -v5k

I obtained 4 output files, test.7z.0001 thru test.7z.0004.

> ... Using split(1) I ended with several files of
> ~4.5GB each of which got burned to a DVD like so:
>  
> $ doas growisofs -dvd-compat -Z /dev/rcd0c=

This is your key problem.  The ISO file in "" needs to be
a CD9660/UFS file system when you use this form of the growisofs(1m) 
command.  Instead, it contains random compressed bits.  This is why you
cannot mount it.

Practice burning with DVD-RW or DVD+RW media.  You can continue to play
with it until you have your procedure correct, usable, and reproducable.



Re: Compiling Linux source on OpenBSD

2017-07-17 Thread Josh Stephens


> On Jul 17, 2017, at 7:12 PM, Bernard Mentink  wrote:
> 
> Hi all,
> 
> This is my first time on OpenBSD and am really loving it. I had my HP
> Pavilion desktop booting into a Gnome3 desktop in no time (.. had so many
> issues trying to boot FreeBSD, gave up)
> 
> My question is regarding compiling Linux code. I have some tools for
> programming FPGA's which I would really like to do on BSD, i.e the likes of
> IceStorm tools and Yosys ... etc
> They are not in the Repo or in Ports so don't have much option but to try
> and compile from linux  which failed of course with lot's of errors the
> first time I tried.
> 
> Is there any guidelines for porting this stuff?
> 
> Cheers,
> Bernie

See if this handbook provides any help. https://www.openbsd.org/faq/ports/



Re: Robust ThinkPad suggestions for running OpenBSD.

2017-07-12 Thread Josh Stephens
I want to echo Matthias on the T450s. I currently own that laptop also
running OpenBSD 6.1 with full disk encryption. Pretty much everything
works out of the box.
Video, Wireless, Upgraded mine to use an SSD. I am currently using it
for Python Web
development and haven’t once felt like it was getting sluggish. Great
machine all around.


On July 12, 2017 at 5:54:44 AM, Matthias Schmidt (open...@xosc.org) wrote:
> Hi,
>
> Am 12.07.2017 12:18 schrieb J. Misc.:
> > Hello, everyone.
> >
> > I'm here to ask for input on a hardware purchase that I believe
> > seasoned OpenBSD users could provide some valuable insight into.
> >
> > I am looking to purchase a ThinkPad to exclusively run OpenBSD on. The
> > intent here is to have a dedicated machine to explore and play with
> > OpenBSD, and eventually promote it as my primary day-to-day
> > workstation.
> >
> > A little background: I own a T460s, and it's an excellent machine, but
> > I feel it to be too fragile to use in harsh environments, like
> > outdoors or hackerspaces with a lot of rough objects around.
>
> I haven't used the T460s yet, however, I do own a T450s and that
> runs very well with OpenBSD [1]. Besides being my day-to-day
> workhorse I already used this model on camping trips (OK, it was a
> hacker camp :)), outdoors and it survived long-range travel.
>
> So far, I am pretty impressed with the quality. Of course, you cannot
> compare it to the good old Thinkpad T40 but that was a different
> area.
>
> Cheers
>
> Matthias
>
> [1] https://gist.github.com/thexhr/a8e159514c87a04b98aced2c4245f6dc
>
>



Re: Can I use OpenBSD in a virtual machine, for example, VirtualBox?

2017-06-26 Thread Josh Stephens
> On Mon, 26 Jun 2017, SOUL_OF_ROOT 55 wrote:
>
> > Can I use OpenBSD in a virtual machine, for example, VirtualBox?
> >
> Yep, .. have had them for many years, VirtualBox & Xen.
>
> Lee
>
>
I could be wrong when I say this but the only gotcha that you will run into
with virtual box will be the guest additions. I don’t think they are supported
on OpenBSD?



Re: Get an MAC address of a LAN PC - OpenBSD

2017-06-23 Thread Josh Grosse
On Fri, Jun 23, 2017 at 11:10:42AM +0530, Indunil Jayasooriya wrote:
> >
> > > no idea what to do?
> >
> > Plug it back in.  Power it up.  Make sure it has a reachable IP.  Ping
> > it.
> >
> 
> very sorry. It is prohibited to plug it back in and power it up.
> 
> To do it, We might need a special request.

Plug the Evil Compuer in to an isolated Ethernet network.  Perhaps a 
network that consists of only two computers:  The Evil Computer, and a 
second, Hero Computer that will test the Evil Computer to discover its 
Evil MAC Address.

https://en.wikipedia.org/wiki/Air_gap_(networking)



Re: Openbsd6.1 as firewall can access the internet but the LAN behind it cannot

2017-06-21 Thread Josh Grosse

On 2017-06-21 11:36, lu jian wrote:

Hi

I have an i386 machine with two network interfaces, one of which
connect to the uplink ISP via pppoe, the other connects to the WAN
port of a wireless router to which all LAN machines and cell phones
connect (via wifi).

The problem is that this i386 machine (which I intend as a firewall)
can access the internet, but all LAN machines cannot.

Hint: my wireless router can obtain dhcp address from the i386 machine.

These two network interfaces on the i386 are bge0 and fxp0.

1) Configuration for fxp0:
# cat /etc/hostname.fxp0
up
# cat /etc/hostname.pppoe0
inet 0.0.0.0 255.255.255.255 NONE \
   pppoedev fxp0 authproto chap \
   authname 'account' authkey '123' up
 dest 0.0.0.1

!/sbin/route add default -if pppoe0 0.0.0.1

2) Configuration for bge0:
# cat /etc/hostname.bge0
   inet 192.168.0.1 255.255.255.0 192.168.0.255


This is a subnet within RFC 1918 - a private network, not
directly routea-able on the Internet.

You must add Network Address Translation (NAT) to your PF configuration 
in order

to access the Internet from that subnet.

See the NAT section of the PF User's Guide.

http://www.openbsd.org/faq/pf/nat.html



Re: inquiring about setting wxallowed on /home mountpoint

2017-06-12 Thread Josh Stephens
>> So my question is, will there be any security implications that I
>> should be concerned about with setting wxallowed in /etc/fstab to the
>> home mountpoint?
>
> Yes there is a security implication. From mount(8),
>
>  wxallowed  Processes that ask for memory to be made writeable
> plus executable using the mmap(2) and mprotect(2)
> system calls are killed by default.  This option
> allows those processes to continue operation.  It is
> typically used on the /usr/local filesystem.
>
> That will allow this program to do create such memory.  It will also
> allow any other program in your /home to do so.
>
> We don't know what other programs you might have in /home.  That's
> why this feature was designed to operate in this restrictive way.
>
> In a perfect world, software would stop asking for W|X memory.  We
> aren't there yet.  This mechanism softly applies pressure towards
> that end.
>
> Turn it off and accept the consequences, and potential risks if you
> like.  W|X memory isn't the only risk out there...
>

Thank you Theo. After reading through your reply I would rather not
deal with a potential risk. I decided to go down the path of adding a
venv directory in /usr/local and giving my account as owner and wheel
as group. This should allow the python binaries to stay in /usr/local
and not have to set wxallowed on my /home directory. I believe this to
be a safer option but unfortunately security is not my strong suite so
I might be missing another security implication by going down this
road.



inquiring about setting wxallowed on /home mountpoint

2017-06-12 Thread Josh Stephens
I am currently trying to use virtualenv in my home directory to setup
different python environments but was met with the following error
[Errno 13] Permission denied. This happened using both virtualenv and
virtualenv-3.

After looking through /var/log/messages I found that the problem was
caused by placing python libraries outside of a wxallowed mountpoint
if I am reading the message of  W^X binary outside wxallowed
mountpoint correctly. . My guess is that python2.7 and python3.6 are
locked to /usr/local/bin.

So my question is, will there be any security implications that I
should be concerned about with setting wxallowed in /etc/fstab to the
home mountpoint? Is this the correct way in solving this issue for
using virtualenv or is there a recommended way that I haven't read /
come across yet?

As another test I did download the source from python.org for both 3.6
and 2.7 and compile them with the prefix being /home/jstephens/bin.
Which allowed me to use virtualenv and virtualenv-3 but I would rather
stick with the python binaries that came with openbsd.

Thanks,
Josh Stephens



Re: Correct way to add additional file types for compression in httpd.conf

2017-05-30 Thread Josh Stephens
Trying looking at webpack which will perform treeshacking and bundling of 
javascript files and use less or sass for your css files which will also help 
to minify them

Sent from my iPhone

> On May 30, 2017, at 1:10 AM, Kevin  wrote:
> 
> Hey gang,
> 
> How does one go about getting .js and .css files to be compressed in httpd?
> 
> Is there a proper way to do this circa 6.1(ish)?
> 
> Thanks,
> Kevin



Re: Markus Uhlin

2017-05-20 Thread Josh Stephens
Stupid question but could you block his account?

> On May 20, 2017, at 6:52 PM, Theo de Raadt  wrote:
> 
> I am being harrassed by a guy called Markus Uhlin.
> 
> https://github.com/uhlin?tab=following
> 
> By sending this mail, I'm hoping he comes to understand I am fed up.
> 



Re: vmm(4) - Virtual Machine owner and (re)starting VMs?

2017-04-15 Thread Josh Grosse
On Sat, Apr 15, 2017 at 12:10:14PM -0500, Ax0n wrote:

> I'm still trying to figure out how VM ownership works.

For disabled VMs, the owner (who also owns the disk image files) can
start and stop the VM's, and connect to the console.



Re: Difficulties making local connection to Mailman

2017-02-19 Thread Josh Grosse
On Sun, Feb 19, 2017 at 04:51:41PM +0200, Anne Wainwright wrote:
> Hi,
> 
> I have OpenBSD 6.0 recently installed with the package for Mailman 2
> 
> When trying to connect locally I get a 500 Internal Server Error
> eg: 192.168.0.21/mailman/cgi-bin/create .
> 
> I believe I have a correct httpd.conf, slowcgi is running.
> 
> I have tried running this chrootless, generally following the procedure
> found on www.quernus.co.uk (Matt Hamilton) but still get an error.
> 
> If I run the links to the mailman 'create' scripts I get an error in
> maillog "Group mismatch error. Mailman expected the CGI wrapper script
> to be executed by a member of the "_mailmanq" group".
> 
> # group info _mailmanq
> shows no members
> 
> so who should I add, assuming that I am on the right trail here?
> 
> I can navigate locally to the IP address and a basic index.html comes up 
> fine so httpd is good.
> 
> Thanks for any advice on way to go
> 
> inksi

Hi, Anne, it looks like you missed the README file.  See the guidance
in /usr/local/share/doc/pkg-readmes/



Re: OpenBSD Stable

2017-01-18 Thread Josh Grosse

On 2017-01-18 12:51, George wrote:


I didnt change any paths on dpb since i followed the pdf josg grosse
send me. I run dpb as root so i guess permissions dont matter.


They matter.  dpb(1) went through a sea-change in its security model
between when that out-of-date presentation was developed and when you
tried to follow it today.

See THE SECURITY MODEL OF DPB in the dpb(1) man page for up-to-date
information.


[demime 1.01d removed an attachment of type text/x-log which had a
name of awaiting-locks.log]


Attachments are removed on misc@.



Re: OpenBSD Stable

2017-01-18 Thread Josh Grosse

On 2017-01-18 09:37, Farid Joubbi wrote:

I found this very informative:
http://daemonforums.org/showthread.php?t=9374


As the OP on that thread, I can state it's well out-of-date.  And the
SEMIBUG presentation I wrote in December 2015 (date typo
on the first page) is also out-of-date, as I would
not recommend pkg_delete(1) -X on a build machine now that
proot(8) is available.

www.semibug.org/building.stable.v1.pdf



Re: kicad will not install on 6.0/i386

2017-01-02 Thread Josh Grosse
On Mon, Jan 02, 2017 at 04:23:57PM -0800, Tracy Bales wrote:
> kicad will not install using pkg_add.  It reports that it cannot resolve
> wxWidgets-gtk2-2.8.12p12

Tracy, it appears to me that you have an old glib2 installed, from 5.9-release.
The glib2 for 6.0-release is 2.48.1, whereas your installed version is 2.46.2p0:

> $ doas pkg_add -i kicad
> quirks-2.241 signed on 2016-07-29T15:39:09Z
> Can't install wxWidgets-gtk2-2.8.12p12 because of libraries
> |library gio-2.0.4200.3 not found
> | /usr/local/lib/libgio-2.0.so.4200.2 (glib2-2.46.2p0): minor is too small
> |library glib-2.0.4200.3 not found
> | /usr/local/lib/libglib-2.0.so.4200.2 (glib2-2.46.2p0): minor is too small
> |library gobject-2.0.4200.3 not found

You should keep your packages in sync with the release you're using.  After you
upgraded from 5.9 to 6.0, you should have updated all of your installed packages
with # pkg_add -u.  Back up your system, give that a try before installing 
packages for 6.0 that expect any installed  dependencies to be at the correct
revisions.



Re: fw_update stops with Fatal error: Unsigned package ...

2016-10-03 Thread Josh Grosse

On 2016-10-03 14:11, Mihai Popescu wrote:

I've installed a snapshot somewhile ago, then I needed to update the
firmware for athn device. I get this error:

# fw_update
UNSIGNED PACKAGES: athn-firmware-1.1p1
Fatal error: Unsigned package
http://firmware.openbsd.org/firmware/snapshots/athn-firmware-1.1p1.tgz
 at /usr/libdata/perl5/OpenBSD/PkgAdd.pm line 717.

As you can see from dmesg, I have other firmare needed hardware
installed, but theirs firmware was loaded at first boot with no
problem then.

What is a way to get the proper firmware installed, please?


OpenBSD 6.0-current (GENERIC.MP) #2432: Sat Sep 10 14:06:57 MDT 2016

dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

[snip]

Update your snapshot.  Packages (including firmware) use a new
signing methodology.

http://marc.info/?l=openbsd-tech=147283361813517=2



Re: Multiple web servers behind NAT

2016-09-30 Thread Josh Grosse
On Fri, Sep 30, 2016 at 11:42:11AM +0200, Radek wrote:
> Hi, 
> I have one web_serwer_1 behind OpenBSD 5.9 router/NAT with single IP. 
> 
> web_serwer_1 -apache,virtualhosts- (10.0.8.11):
> 1.domain.com
> 2.domain.com
> 3.domain.com
> 
> pf.conf:
> pass in log quick on $ext_if inet proto tcp from any to $ext_if port 80 
> rdr-to $web_serwer_1 port 80 set prio (1, 6) keep state
> pass in log quick on $ext_if inet proto tcp from any to $ext_if port 443 
> rdr-to $web_serwer_1 port 443 set prio (1, 6) keep state
> 
> Everything works fine.
> 
> Now, I need to add another web_serwer_2. It would be the "main" web server.
>  
> web_serwer_2 - native httpd,virtualhosts- (10.0.8.22):
> 4.domain.com
> 5.domain.com
> 6.domain.com
> 
> How can I make it work?
> Any help appreciated.

If the two web servers share the same external IP address, use relayd(8),
as it is designed to inspect HTTP URLs.



Re: USB ports disabled on Lenovo Thinkpad T61

2016-09-19 Thread Josh Grosse
On Mon, Sep 19, 2016 at 05:11:43AM -0400, Mike Schreckengost wrote:
> Hello misc,
> 
> Sometime between the OpenBSD-current snapshot released on Sep 10 2016
> and the snapshot dated Sep 18 2016, the USB ports on my Lenovo Thinkpad
> T61 ceased to function. Upon plugging a device into any of the 3
> available ports, I receive messages such as these:
> 
> uhub2: device problem, disabling port 2
> uhub3: device problem, disabling port 1
> 
> Is anyone else experiencing a similar issue? 

Yes, I have a similar issue on an X220, but for me it manifests with the
fingerprint reader, a ugen(4) device, and not with two types of umass(4)
devices -- both memory stick and dvd burner work fine.

It appears to me if I revert src/sys/dev/usb/usb_subr.c to r1.128, the
device problem is eliminated, so Martin is in copy for his awareness.
(He may already be aware, of course.)



Re: can't find fstab entry ?

2016-09-08 Thread Josh Grosse

On 2016-09-08 09:46, Bob Jones wrote:

Soany one care to give a more sensible suggestion than Theo's
unnecessary anti-Linux rant ??


Well, Bob, I didn't perceive it as anti, just that you want to use
a Linux-specific fstab entry on an OS which isn't Linux.  Of course,
I was just a disinterested observer of the thread.

Here are three possible suggestions for your consideration.

1. Follow the specifications listed in the fstab(5) man page
   when provisioning /etc/fstab.

2. Develop a proposed set of diffs to fstab.h and mount(8) to 
accommodate your

   requirement.  You can then use it, and if you think it would be of
   value to the Project and its users, submit your diffs to the Project
   for consideration.

3. Use Linux, if neither of the two previous suggestions meet your
   needs.



On Monday, 5 September 2016, Theo de Raadt  wrote:


> OpenBSD 6.0 GENERIC.MP#0 amd64
>
> My fstab entry looks like :
>
> 10.10.10.10:/srv/share /mnt/ops_test nfs defaults,noexec,nosuid,nodev,auto
0 0
>
> However:
>
> $ doas mount /mnt/ops_test
> doas (m...@example.com ) password:
> mount: can't find fstab entry for /mnt/ops_test
>
>
> Any ideas  ?  That style of fstab entry seems to work fine on my linux
> boxes (albeit with nfs4 instead of nfs, but that makes no difference
> on openbsd).

Well, openbsd is not linux.

Have no idea what that word "defaults" in there means.




Re: startx is taking a long time to initiate

2016-06-05 Thread Josh Grosse
On June 5, 2016 8:15:15 PM EDT, francois miville-deschenes 
 wrote:
>hello,
>
>i am encountering a problem when starting X server after login.
>when my router is connected to the computer, startx takes about 2
>minutes to initiate. if i remove the power from the router, startx
>works
>normally... 
>
>does anyone else have experience this ? 
>
>beside plugin the router after initiating startx, any suggestions on
>how to resolve this ?
>
>i am using the latest snapshots.
>
>thank you,
>
>francois

http://www.openbsd.org/faq/faq8.html#RevDNS
-- 
Sent by phone. Please excuse the mess. 



Re: libtorrent build fail

2016-05-26 Thread Josh Grosse

On 2016-05-26 11:50, Thuban wrote:

Hi,
I'm trying to build libtorrent [1], but can't figure out how to have
./configure detect boost library.


Have you tried installing the libtorrent package? :)

If you'd like to see how libtorrent is built, see the net/libtorrent
port, which includes dependencies, OpenBSD-specific patches, and build
instructions.



Re: httpd and php fastcgi in OpenBSD 5.9

2016-05-22 Thread Josh Grosse
On Sun, May 22, 2016 at 02:45:44PM +, andreas wrote:
> Hi all,
> 
> I'm struggling to set up php under httpd in 5.9.
> 
> The example in the man page of httpd.conf use php-fpm, but the php-fpm
> package seems to have disappeared from the package list between
> versions 5.8 and 5.9.

php-fpm is no longer a *separate* package.  It is included in the base
package for the php version you are using.

Try:   

$ pkg_info -L php | grep fpm



Re: Any experience with D-Link DGS-1100 and static trunk aggregation?

2016-05-14 Thread Josh Grosse
On May 14, 2016 8:55:37 AM EDT, teckel  wrote:
>According to the D-Link website, the DGS-1100-08 supports "802.3ad Link
>Aggregation [2 groups, 2-4 ports per group]".  Here's the link:
>
>http://us.dlink.com/products/business-solutions/dgs-1100-series-smart-managed-10-port-gigabit-poe-switch/
>
>I have heard there's a newer version of this switch, which could be why
>they're saying it now supports 802.3ad when previously it didn't.  I'm
>getting a DGS-1100-08 today and going to attempt to use LACP with my
>QNAP
>TVS-471-i3 NAS.
>
>Tim
>
>
>
>--
>View this message in context:
>http://openbsd-archive.7691.n7.nabble.com/Any-experience-with-D-Link-DGS-1100-and-static-trunk-aggregation-tp265608p296155.html
>Sent from the openbsd user - misc mailing list archive at Nabble.com.

Sorry for the top post,  using my phone.  I have one of the v1 switches,  works 
fine with static trunks. 
-- 
Sent by phone. Please excuse the mess. 



Re: problem with packages after update

2016-05-08 Thread Josh Grosse
On Sun, May 08, 2016 at 05:00:28PM +0200, Zoran Kolic wrote:
> Sorry to bother the list, but I got stranded after updating to
> the latest snapshot, amd64.
> Update went as usual. Tried to update packages, but it failed,
> saying "because of libraries". Some reading and I decided to
> delete packages with "pkg_delete -X". Unfortunatelly, it went
> nowhere. I still cannot install packages, spite I have none and
> the system works.
> I see that both packages and bsd.rd are from 8th may. Someone
> might know what I have to do at the moment?
> Cannot say what more data I could offer to enlighten the issue.
> It surprises me a lot.
> Best regards
> 
>Zoran
> 

Zoran,

http://www.openbsd.org/faq/current.html#r20160507

It is likely that not all packages are from 8 May. 



Re: Small FW boxes for CORP use (was: T40E APU?)

2016-03-12 Thread Josh Grosse
On Sat, Mar 12, 2016 at 10:34:16AM +, Kapfhammer, Stefan wrote:
> But how would you feed the CAT female jack out of the original
> pcengines enclosure? There are no further mounting holes in it.

I was thinking of the Alix, where enclosures are not included.



Re: Small FW boxes for CORP use (was: T40E APU?)

2016-03-11 Thread Josh Grosse
On Fri, Mar 11, 2016 at 04:42:23PM -0500, Alan McKay wrote:
> On Fri, Mar 11, 2016 at 4:36 PM, Josh Grosse <j...@jggimi.homeip.net> wrote:
> > 100Mbit?  You could go even smaller, such as the PCEngines Alix
> > platform.  They are 32-bit (i386) only, however.
> >
> > Each NIC is able to sustain 70-80 Mbps, in my experience.
> 
> Do those have 4 NICs?

1-3 x 100Mbps is the maximum for their 32-bit Alix, and 3 x 1000Mbps for 
their 64-bit APU. http://pcengines.ch

Additional NICs could be added via expansion slots, perhaps.

http://pcengines.ch



Re: change partition size impossible?

2016-02-24 Thread Josh Grosse

On 2016-02-24 07:55, dmitry.sensei wrote:

Like this:
http://daemonforums.org/showthread.php?t=5332


As the author of the guidance in that ancient forum thread, please note
that the recommendation in my first response to use one large filesystem 
should
be disregarded.  The prevalent use of disks larger than a BIOS is able 
to

address may cause boot problems -- as noted in FAQ 14.6.

I do think that the step-by-step "howto" I created for the thread's OP 
near
the end may be helpful, but only if it is understood that the whole 
point is

the procedure is to chaing the wings on our aircraft while we are parked
on the tarmac, and not currently in flight at 10,000 meters.

And, like any random "howto" one finds on the Interwebs, use with 
caution.

Never ever ever blindly copying and pasting *any* of it.  ANY OF IT.



On Wed, Feb 24, 2016 at 12:20 PM, Jaap Bosman  wrote:

Hello

Is it possible to change partition size in OpenBSD 5.9?

Try to change partition size on install: error message: "partition f 
is
currently 4194304 sectors in size and can have a maximum size of 
4194304

sectors."

Tried to use disklabel.
delete partition and make new one with preferred size  message is now 
"Open

partition would move or shrink"

I want partition l and f and e to change.

Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/sd0a 1005M   51.8M903M 5%/
/dev/sd0l  298G   36.0K283G 0%/home -->  10 GB
/dev/sd0d  3.9G   10.0K3.7G 0%/tmp
/dev/sd0f  2.0G364M1.5G19%/usr --->  150 GB
/dev/sd0g 1005M210M745M22%/usr/X11R6
/dev/sd0h  9.8G218K9.3G 0%/usr/local
/dev/sd0k  2.0G2.0K1.9G 0%/usr/obj
/dev/sd0j  2.0G2.0K1.9G 0%/usr/src
/dev/sd0e 11.5G7.6M   10.9G 0%/var -->  150 GB

I am on amd64 OpenBSD_5.9

thanks

Jaap




Re: fsck_ffs mystic

2016-02-15 Thread Josh Grosse

On 2016-02-15 09:08, lilit-aibolit wrote:

On 02/15/2016 04:03 PM, Josh Grosse wrote:



See the words "NO WRITE" in that message?  This happens because you
are attempting to fsck(8) a *mounted* file system.


Yes, it's true. But I can't unmount /var under normal boot.
And then why errors haven't been fixed or even detected in single mode,
where partitions are unmounted.


When you are in a normal multi-user boot, daemons are running with files 
open in /var,
and in particular, /var/run.  The warnings you get from fsck() relate to 
all of these

open files.

Your filesystem was repaired, and is now working properly.  You are only 
seeing these
messages because you are running fsck() against a mounted filesystem 
with open files.




Re: fsck_ffs mystic

2016-02-15 Thread Josh Grosse

On 2016-02-15 07:57, lilit-aibolit wrote:

Hi list.
After unclear shutdown I've booted in single user mode
by typing "boot -s".
I executed "fsck -fp" and "fsck -fy" few times and got
no problem, see screenshot here:
http://i.piccy.info/i9/f7bced6083e3f77d29dc832102147bfd/1455540839/795750/999296/image1.jpg

But after reboot with normal login I got next.
How can I fix errors and why they aren't fixed in single mode?

# fsck_ffs -f /dev/sd0e
** /dev/rsd0e (NO WRITE)



See the words "NO WRITE" in that message?  This happens because you
are attempting to fsck(8) a *mounted* file system.



Re: carp dhclient

2016-02-01 Thread Josh Grosse

On 2016-02-01 11:32, sven falempin wrote:

Dear Readers,
Without IP carp is marked as inactive,
i tried to set up a stupid IP on it and then call dhclient.
It sends packet but does configure interface.
:'(
Any particular reason for this ?
Thank you.


Carp requires static addresses. You can establish carp on
an inward network, and use carp advertisements in concert
with ifstated(8) to transfer the use of a MAC address between
active systems on the outer, dynamic network.

See https://sites.google.com/site/bsdstuff/dhcarp and adapt
to your requirements.



Re: Making and using a release

2016-01-31 Thread Josh Grosse
On Sun, Jan 31, 2016 at 02:38:59PM +, Mark Carroll wrote:
> On 31 Jan 2016, Mark Carroll wrote:
> 
> > I thought that one option might be to update my sources to the latest
> > OPENBSD_5_8 revision, build and install the update on one, then make the
> > release on it and copy and unpack it to the other machines so that they
> > could then have the patches too.
> 
> I should have of course added the note that these machines are all
> already running an earlier version of 5.8 stable.

-stable is merely the published errata, and occasionally patches which 
do not rate receiving errata publication.  Since these do not change 
the system, you can indeed update simply by copying the kernel and
extracting the filesets. 

The folowing "update" script is what I use to update systems which
are already at an older -stable.  I don't use this when
transiting releases; for that I use the bsd.rd upgrade script.

I've replaced my local -stable build machine name with /path/to
in this example.

The servers that use this are uniprocessors, so I don't need to
worry about the bsd.sp kernel, the bsd kernel mentioned below
is GENERIC, not GENERIC.MP.

#!/bin/sh
rel=58
cd /
echo backing up kernels...
cp -p bsd bsd.rd bkupboot/
ftp http://path/to/stable/bsd
ftp http://path/to/stable/bsd.rd
ftp -mo - http://path/to/stable/base$rel.tgz | tar xzphf -
ftp -mo - http://path/to/stable/comp$rel.tgz | tar xzphf -
ftp -mo - http://path/to/stable/game$rel.tgz | tar xzphf -
ftp -mo - http://path/to/stable/man$rel.tgz | tar xzphf -



Re: Making and using a release

2016-01-31 Thread Josh Grosse
On Sun, Jan 31, 2016 at 12:24:03PM -0500, Josh Grosse wrote:
> The folowing "update" script is what I use to update systems which
> are already at an older -stable.  I don't use this when
> transiting releases; for that I use the bsd.rd upgrade script.

For clarity, the script is only used with a release(8) I've 
built myself, and where the -stable systems to be updated are 
at the same  version.  I would NEVER recommend using it in 
any other way.

In addition, the /bkupboot directories must be 
created in advance.  



Re: ifconfig inet dhcp and static alias support

2016-01-17 Thread Josh Grosse
On Sun, Jan 17, 2016 at 12:21:51PM -0800, Yury Shefer wrote:
> Hi misc,
> 
> I was not able to find the information about ifconfig support for the IPv4
> address configuration where I have primary address assigned by DHCP
> (Comcast) and alias with static IP. My cable modem mgmt IP belongs to
> 192.168.100.0/24 subnet and to access it - I have to add an alias - but it
> always overwrite DHCP-assigned address (OpenBSD 5.8-stable (GENERIC.MP)).
> 
> I tried the following hostname.if config but the last line overwrite dhcp
> address:
> 
> $ cat /etc/hostname.em0
> lladdr b8:c7:ff:cd:ff:0e
> dhcp
> up
> rtsol
> inet alias 192.168.100.50 255.255.255.0
> 
> # sh /etc/netstart em0
> em0: no link . got link
> DHCPREQUEST on em0 to 255.255.255.255
> DHCPACK from 96.xxx.xx.113 (00:01:5c:63:fc:46)
> bound to 67.xxx.xx.xx9 -- renewal in 92649 seconds.
> # ifconfig em0
> em0: flags=208843 mtu 1500
> lladdr b8:c7:ff:cd:ff:0e
> priority: 0
> groups: egress
> media: Ethernet autoselect (1000baseT full-duplex)
> status: active
> inet6 fe80::bac7::abcd:abc%em0 prefixlen 64 scopeid 0x1
> inet6 2001:abc:dead:10d:beef:be0b:2e16:9486 prefixlen 128 pltime
> 343370 vltime 343370
> inet 192.168.100.50 netmask 0xff00 broadcast 192.168.100.255
 
Instead of seting an alias, just route the 192.168.100/24 subnet through your 
upstream gateway.

In my case, none of my inner subnets are 192.168.100/24, so any packets
to that subnet go to the default route assigned by dhcp.



Re: dpb question for understanding.

2016-01-15 Thread Josh Grosse
On Sat, Jan 16, 2016 at 03:09:57AM +0100, Christoph R. Murauer wrote:
> Hello !
> 
> I used today dpb and readed also the man page. But I have a question
> as none developer / coder. I followed the FAQ and put 3 ports in the
> localfile. Everything builds fine. dpb is runned as root on a local
> drive used a tmpfs to build. All 3 ports are builded but only the
> first was installed (tried it re-running make install in the other
> port directories to verify everything was builded).
> 
> I also have no lock files in /usr/ports/logs/amd64/locks/. My question
> (maybe a stupid one) is now, how find I out, why dpb builds everything
> but installes only the first port (could someone point me please to
> the right logfile and for what I should watch there) ?
> 
> Thanks for answers.
> 
> P.S. : I let the dmesg this time.
 
See the -I option in the dpb(1) man page.  That installs a path or list
of paths to install.  Otherwise, dpb() will build packages, and those 
that remain installed at the completion of the build will only be 
the most recent packages built.  Packages which are unneeded (because
the are not build dependencies of the packages in queue for building)
are removed with pkg_delete(1) from time to time.  See the junk= and
-J options.



Re: Connect to OpenVPN from OpenBSD

2016-01-02 Thread Josh Grosse
On Sat, Jan 02, 2016 at 08:55:35PM +0500, art.istom wrote:
> Is it possible to connect to OpenVPN (riseup.net) from OpenBSD without
> installing openvpn client to OpenBSD?

No. OpenVPN servers require OpenVPN clients.

> I don't understand all this vpn-technologies very well, but know that
> OpenBSD has built-in vpn-services/clients, so I don't want to install
> openvpn-client if it possible to use software distributed/developed
> with/by OpenBSD.

The "built-in" VPN technology is IPSec, which is not used by OpenVPN.
 
> I've tried googling but all results are OpenVPN-client to OpenVPN-server.
> 
> Thanks.



Re: azalia(4) partially working on Intel NUC NUC5i7RYH

2015-12-23 Thread Josh
.volume.slaves=adc-0:1,adc-2:3  { adc-0:1 adc-2:3 mic }

$ audioctl
name=HD-Audio
encodings=slinear_le:16:2:1,slinear_le:20:4:1,slinear_le:24:4:1
properties=full_duplex,independent
hiwat=8
lowat=8
mode=
play.rate=48000
play.channels=2
play.precision=16
play.bps=2
play.msb=1
play.encoding=slinear_le
play.pause=1
play.active=0
play.block_size=3840
play.bytes=0
play.errors=0
record.rate=48000
record.channels=2
record.precision=16
record.bps=2
record.msb=1
record.encoding=slinear_le
record.pause=1
record.active=0
record.block_size=3840
record.bytes=0
record.errors=0

On Mon, Nov 30, 2015 at 11:09 AM, Josh <mylis...@gmail.com> wrote:
> Hi,
>
> Running amd64-current (last update at ~5pm UTC 29th Nov), azalia(4)
> works partially on that NUC NUC5i7RYH device:
> Recording through audacity for instance seems to work as I can see the
> amplitude changing when speaking through the microphone.
>
> However, I was unable to get any sound out through that (only) headphone
jack.
> I've tried different combinations such as maxing out all outputs,
> unmute all of them, with sndiod stopped or started without/with flags
> -f rsnd/0 but same results. cat /dev/random > /dev/audio, audio0 or
> sound does not produce any sound.
>
> I've listed below some tests results as well as outputs of the system
> including dmesg with GENERIC.MP and DEBUG.MP (option AZALIA_DEBUG),
> pcidump.
> Any help would be greatly appreciated :)
>
> Cheers,
>
> nuc$ cat > /dev/audio < /dev/zero &
> [1] 27833
>
> nuc$ audioctl play.{seek,samples,errors}
> audioctl: field play.seek does not exist
> audioctl: field play.samples does not exist
> play.errors=0
>
> nuc$ audioctl play.{seek,samples,errors}
> audioctl: field play.seek does not exist
> audioctl: field play.samples does not exist
> play.errors=0
>
> nuc$ l /dev/audio*
> lrwxr-xr-x  1 root  wheel 6 Nov 27 15:10 /dev/audio -> audio0
> crw-rw-rw-  1 root  wheel   42, 128 Nov 30 10:49 /dev/audio0
> crw-rw-rw-  1 root  wheel   42, 129 Nov 29 11:03 /dev/audio1
> crw-rw-rw-  1 root  wheel   42, 130 Nov 27 15:13 /dev/audio2
> lrwxr-xr-x  1 root  wheel 9 Nov 27 15:10 /dev/audioctl -> audioctl0
> crw-rw-rw-  1 root  wheel   42, 192 Nov 28 23:17 /dev/audioctl0
> crw-rw-rw-  1 root  wheel   42, 193 Nov 29 11:02 /dev/audioctl1
> crw-rw-rw-  1 root  wheel   42, 194 Nov 27 15:13 /dev/audioctl2
>
> nuc$ mixerctl -av
> inputs.dac-0:1=126,126
> inputs.dac-2:3=126,126
> record.adc-0:1_mute=off  [ off on ]
> record.adc-0:1=124,124
> record.adc-2:3_mute=off  [ off on ]
> record.adc-2:3=124,124
> inputs.mix_source=mic  { mic }
> inputs.mix_mic=120,120
> inputs.mix2_source=dac-0:1,mix  { dac-0:1 mix }
> inputs.mix3_source=dac-2:3,mix  { dac-2:3 mix }
> inputs.mic=85,85
> outputs.mic_dir=input-vr80  [ none input input-vr0 input-vr50
> input-vr80 input-vr100 ]
> outputs.hp_source=mix2  [ mix2 mix3 ]
> outputs.hp_mute=off  [ off on ]
> outputs.hp_boost=off  [ off on ]
> outputs.hp_eapd=on  [ off on ]
> record.adc-2:3_source=mic,mix  { mic mix }
> record.adc-0:1_source=mic,mix  { mic mix }
> outputs.mic_sense=unplugged  [ unplugged plugged ]
> outputs.hp_sense=plugged  [ unplugged plugged ]
> outputs.master=126,126
> outputs.master.mute=off  [ off on ]
> outputs.master.slaves=dac-0:1,hp  { dac-0:1 dac-2:3 hp }
> record.volume=124,124
> record.volume.mute=off  [ off on ]
> record.volume.slaves=adc-0:1,adc-2:3  { adc-0:1 adc-2:3 mic }
>
> nuc$ audioctl
> name=HD-Audio
> encodings=slinear_le:16:2:1,slinear_le:20:4:1,slinear_le:24:4:1
> properties=full_duplex,independent
> hiwat=2
> lowat=2
> mode=
> play.rate=48000
> play.channels=2
> play.precision=16
> play.bps=2
> play.msb=1
> play.encoding=slinear
> play.pause=0
> play.active=0
> play.block_size=3840
> play.bytes=0
> play.errors=0
> record.rate=48000
> record.channels=2
> record.precision=16
> record.bps=2
> record.msb=1
> record.encoding=slinear
> record.pause=0
> record.active=0
> record.block_size=3840
> record.bytes=0
> record.errors=0
>
> dmesg using GENERIC.MP
> OpenBSD 5.8-current (GENERIC.MP) #12: Mon Nov 30 01:16:26 SGT 2015
> r...@nuc.none:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 16035188736 (15292MB)
> avail mem = 15545081856 (14824MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.8 @ 0x36ee7000 (53 entries)
> bios0: vendor Intel Corporation version
> "RYBDWi35.86A.0350.2015.0812.1722" date 08/12/2015
> bios0: Intel Corporation NUC5i7RYB
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP APIC FPDT FIDT MCFG HPET SSDT UEFI LPIT SSDT
> ASF! SSDT SSDT SSDT DMA

Re: azalia(4) partially working on Intel NUC NUC5i7RYH

2015-12-18 Thread Josh
Hi,

Just updated CVS tree around 4pm UTC today and I can't get any output sound.

The bios of the NUC has an option "enable audio" which is ticked, and
"Mini DP/HDMI audio" that was also ticked.
I tried the above tests with both that "Mini DP/HDMI audio" ticked /
not ticked, but same results. Impossible to get some sound out.

Browsed the bug@ but didn't really find something related. Should I
file a bug report?

Cheers,

On Mon, Nov 30, 2015 at 11:43 AM, Josh <mylis...@gmail.com> wrote:
> On Mon, Nov 30, 2015 at 11:24 AM, Alexandre Ratchov <a...@caoua.org> wrote:
>> On Mon, Nov 30, 2015 at 11:09:51AM +0800, Josh wrote:
>>> Hi,
>>>
>>> Running amd64-current (last update at ~5pm UTC 29th Nov), azalia(4)
>>> works partially on that NUC NUC5i7RYH device:
>>> Recording through audacity for instance seems to work as I can see the
>>> amplitude changing when speaking through the microphone.
>>
>> this indicates that data moves between the device and the host, so
>> problems are likely to be caused by the mixer.
>>
>>> nuc$ mixerctl -av
>>> inputs.dac-0:1=126,126
>>> inputs.dac-2:3=126,126
>>> record.adc-0:1_mute=off  [ off on ]
>>> record.adc-0:1=124,124
>>> record.adc-2:3_mute=off  [ off on ]
>>> record.adc-2:3=124,124
>>> inputs.mix_source=mic  { mic }
>>> inputs.mix_mic=120,120
>>> inputs.mix2_source=dac-0:1,mix  { dac-0:1 mix }
>>> inputs.mix3_source=dac-2:3,mix  { dac-2:3 mix }
>>> inputs.mic=85,85
>>> outputs.mic_dir=input-vr80  [ none input input-vr0 input-vr50
>>> input-vr80 input-vr100 ]
>>> outputs.hp_source=mix2  [ mix2 mix3 ]
>>> outputs.hp_mute=off  [ off on ]
>>> outputs.hp_boost=off  [ off on ]
>>
>> ^^
>> does setting outputs.hp_boost=on helps ?
>>
>
> Unfortunately, I've tried and setting outputs.hp_boost=on does not help.



Re: azalia(4) partially working on Intel NUC NUC5i7RYH

2015-12-18 Thread Josh
Hi Ville,

Thanks for the info. However, my goal is not to get hdmi audio output
but  just normal audio out through the headphone jack in front of the
NUC, which at the moment does not work.

cheers

On Sat, Dec 19, 2015 at 7:03 AM, Ville Valkonen <weezeld...@gmail.com> wrote:
> Hi,
>
> there's no hdmi audio support yet.
>
> Regards,
> Ville
>
> On Dec 18, 2015 6:10 PM, "Josh" <mylis...@gmail.com> wrote:
>>
>> Hi,
>>
>> Just updated CVS tree around 4pm UTC today and I can't get any output
>> sound.
>>
>> The bios of the NUC has an option "enable audio" which is ticked, and
>> "Mini DP/HDMI audio" that was also ticked.
>> I tried the above tests with both that "Mini DP/HDMI audio" ticked /
>> not ticked, but same results. Impossible to get some sound out.
>>
>> Browsed the bug@ but didn't really find something related. Should I
>> file a bug report?
>>
>> Cheers,
>>
>> On Mon, Nov 30, 2015 at 11:43 AM, Josh <mylis...@gmail.com> wrote:
>> > On Mon, Nov 30, 2015 at 11:24 AM, Alexandre Ratchov <a...@caoua.org>
>> > wrote:
>> >> On Mon, Nov 30, 2015 at 11:09:51AM +0800, Josh wrote:
>> >>> Hi,
>> >>>
>> >>> Running amd64-current (last update at ~5pm UTC 29th Nov), azalia(4)
>> >>> works partially on that NUC NUC5i7RYH device:
>> >>> Recording through audacity for instance seems to work as I can see the
>> >>> amplitude changing when speaking through the microphone.
>> >>
>> >> this indicates that data moves between the device and the host, so
>> >> problems are likely to be caused by the mixer.
>> >>
>> >>> nuc$ mixerctl -av
>> >>> inputs.dac-0:1=126,126
>> >>> inputs.dac-2:3=126,126
>> >>> record.adc-0:1_mute=off  [ off on ]
>> >>> record.adc-0:1=124,124
>> >>> record.adc-2:3_mute=off  [ off on ]
>> >>> record.adc-2:3=124,124
>> >>> inputs.mix_source=mic  { mic }
>> >>> inputs.mix_mic=120,120
>> >>> inputs.mix2_source=dac-0:1,mix  { dac-0:1 mix }
>> >>> inputs.mix3_source=dac-2:3,mix  { dac-2:3 mix }
>> >>> inputs.mic=85,85
>> >>> outputs.mic_dir=input-vr80  [ none input input-vr0 input-vr50
>> >>> input-vr80 input-vr100 ]
>> >>> outputs.hp_source=mix2  [ mix2 mix3 ]
>> >>> outputs.hp_mute=off  [ off on ]
>> >>> outputs.hp_boost=off  [ off on ]
>> >>
>> >> ^^
>> >> does setting outputs.hp_boost=on helps ?
>> >>
>> >
>> > Unfortunately, I've tried and setting outputs.hp_boost=on does not help.



recent xenocara commit sna_accel.c breaks X on Broadwell

2015-12-03 Thread Josh
Hi,

X was crashing every N minutes after disabling 2D acceleration for
Broadwell (as discussed on @tech)

Recent commit (3rd Dec 2015) will produce unusable garbled output with
sluggish / frozen output on the same machine.

Cheers,

nuc$ cat /var/log/Xorg.0.log
[69.023] (--) checkDevMem: using aperture driver /dev/xf86
[69.028] (--) Using wscons driver on /dev/ttyC4 in pcvt
compatibility mode (version 3.32)
[69.038]
X.Org X Server 1.17.4
Release Date: 2015-10-28
[69.038] X Protocol Version 11, Revision 0
[69.038] Build Operating System: OpenBSD 5.8 amd64
[69.038] Current Operating System: OpenBSD nuc.none 5.8 GENERIC.MP#15
amd64
[69.038] Build Date: 04 December 2015  11:27:26AM
[69.038]
[69.038] Current version of pixman: 0.32.8
[69.038] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[69.038] Markers: (--) probed, (**) from config file, (==) default
setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[69.038] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Dec  4
11:03:01 2015
[69.039] (==) Using system config directory
"/usr/X11R6/share/X11/xorg.conf.d"
[69.040] (==) No Layout section.  Using the first Screen section.
[69.040] (==) No screen section available. Using defaults.
[69.040] (**) |-->Screen "Default Screen Section" (0)
[69.040] (**) |   |-->Monitor ""
[69.040] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[69.040] (==) Disabling SIGIO handlers for input devices
[69.040] (==) Automatically adding devices
[69.040] (==) Automatically enabling devices
[69.040] (==) Not automatically adding GPU devices
[69.045] (==) FontPath set to:
/usr/X11R6/lib/X11/fonts/misc/,
/usr/X11R6/lib/X11/fonts/TTF/,
/usr/X11R6/lib/X11/fonts/OTF/,
/usr/X11R6/lib/X11/fonts/Type1/,
/usr/X11R6/lib/X11/fonts/100dpi/,
/usr/X11R6/lib/X11/fonts/75dpi/
[69.046] (==) ModulePath set to "/usr/X11R6/lib/modules"
[69.046] (II) The server relies on wscons to provide the list of
input devices.
If no devices become available, reconfigure wscons or disable
AutoAddDevices.
[69.046] (II) Loader magic: 0x44a57131ce0
[69.046] (II) Module ABI versions:
[69.046] X.Org ANSI C Emulation: 0.4
[69.046] X.Org Video Driver: 19.0
[69.046] X.Org XInput driver : 21.0
[69.046] X.Org Server Extension : 9.0
[69.046] (--) PCI:*(0:0:2:0) 8086:162b:8086:2057 rev 9, Mem @
0x7900/16777216, 0x8000/1073741824, I/O @ 0x3000/64
[69.046] (II) LoadModule: "glx"
[69.048] (II) Loading /usr/X11R6/lib/modules/extensions/libglx.so
[69.056] (II) Module glx: vendor="X.Org Foundation"
[69.056] compiled for 1.17.4, module version = 1.0.0
[69.056] ABI class: X.Org Server Extension, version 9.0
[69.056] (==) AIGLX enabled
[69.056] (==) Matched intel as autoconfigured driver 0
[69.056] (==) Matched vesa as autoconfigured driver 1
[69.056] (==) Assigned the driver to the xf86ConfigLayout
[69.056] (II) LoadModule: "intel"
[69.056] (II) Loading /usr/X11R6/lib/modules/drivers/intel_drv.so
[69.058] (II) Module intel: vendor="X.Org Foundation"
[69.058] compiled for 1.17.4, module version = 2.99.916
[69.058] Module class: X.Org Video Driver
[69.058] ABI class: X.Org Video Driver, version 19.0
[69.058] (II) LoadModule: "vesa"
[69.058] (II) Loading /usr/X11R6/lib/modules/drivers/vesa_drv.so
[69.058] (II) Module vesa: vendor="X.Org Foundation"
[69.058] compiled for 1.17.4, module version = 2.3.3
[69.058] Module class: X.Org Video Driver
[69.058] ABI class: X.Org Video Driver, version 19.0
[69.058] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[69.059] (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
[69.059] (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
[69.059] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics:
5200, 6200, P6300
[69.059] (II) VESA: driver for VESA chipsets: vesa
[69.060] (II) intel(0): Using Kernel Mode Setting driver: i915,
version 1.6.0 20080730
[69.060] (WW) Falling back to old probe method for vesa
[69.061] (--) intel(0): Integrated Graphics Chipset: Intel(R) Iris
graphics 6100
[69.061] (--) intel(0): CPU: x86-64, sse2, sse3, ssse3, sse4.1,
sse4.2, avx, avx2
[69.061] (II) intel(0): Creating default Display subsection in
Screen section
"Default Screen Section" for depth/fbbpp 24/32
[69.061] (==) intel(0): Depth 24, (--) framebuffer 

Re: azalia(4) partially working on Intel NUC NUC5i7RYH

2015-11-29 Thread Josh
On Mon, Nov 30, 2015 at 11:24 AM, Alexandre Ratchov <a...@caoua.org> wrote:
> On Mon, Nov 30, 2015 at 11:09:51AM +0800, Josh wrote:
>> Hi,
>>
>> Running amd64-current (last update at ~5pm UTC 29th Nov), azalia(4)
>> works partially on that NUC NUC5i7RYH device:
>> Recording through audacity for instance seems to work as I can see the
>> amplitude changing when speaking through the microphone.
>
> this indicates that data moves between the device and the host, so
> problems are likely to be caused by the mixer.
>
>> nuc$ mixerctl -av
>> inputs.dac-0:1=126,126
>> inputs.dac-2:3=126,126
>> record.adc-0:1_mute=off  [ off on ]
>> record.adc-0:1=124,124
>> record.adc-2:3_mute=off  [ off on ]
>> record.adc-2:3=124,124
>> inputs.mix_source=mic  { mic }
>> inputs.mix_mic=120,120
>> inputs.mix2_source=dac-0:1,mix  { dac-0:1 mix }
>> inputs.mix3_source=dac-2:3,mix  { dac-2:3 mix }
>> inputs.mic=85,85
>> outputs.mic_dir=input-vr80  [ none input input-vr0 input-vr50
>> input-vr80 input-vr100 ]
>> outputs.hp_source=mix2  [ mix2 mix3 ]
>> outputs.hp_mute=off  [ off on ]
>> outputs.hp_boost=off  [ off on ]
>
> ^^
> does setting outputs.hp_boost=on helps ?
>

Unfortunately, I've tried and setting outputs.hp_boost=on does not help.



azalia(4) partially working on Intel NUC NUC5i7RYH

2015-11-29 Thread Josh
Hi,

Running amd64-current (last update at ~5pm UTC 29th Nov), azalia(4)
works partially on that NUC NUC5i7RYH device:
Recording through audacity for instance seems to work as I can see the
amplitude changing when speaking through the microphone.

However, I was unable to get any sound out through that (only) headphone
jack.
I've tried different combinations such as maxing out all outputs,
unmute all of them, with sndiod stopped or started without/with flags
-f rsnd/0 but same results. cat /dev/random > /dev/audio, audio0 or
sound does not produce any sound.

I've listed below some tests results as well as outputs of the system
including dmesg with GENERIC.MP and DEBUG.MP (option AZALIA_DEBUG),
pcidump.
Any help would be greatly appreciated :)

Cheers,

nuc$ cat > /dev/audio < /dev/zero &
[1] 27833

nuc$ audioctl play.{seek,samples,errors}
audioctl: field play.seek does not exist
audioctl: field play.samples does not exist
play.errors=0

nuc$ audioctl play.{seek,samples,errors}
audioctl: field play.seek does not exist
audioctl: field play.samples does not exist
play.errors=0

nuc$ l /dev/audio*
lrwxr-xr-x  1 root  wheel 6 Nov 27 15:10 /dev/audio -> audio0
crw-rw-rw-  1 root  wheel   42, 128 Nov 30 10:49 /dev/audio0
crw-rw-rw-  1 root  wheel   42, 129 Nov 29 11:03 /dev/audio1
crw-rw-rw-  1 root  wheel   42, 130 Nov 27 15:13 /dev/audio2
lrwxr-xr-x  1 root  wheel 9 Nov 27 15:10 /dev/audioctl -> audioctl0
crw-rw-rw-  1 root  wheel   42, 192 Nov 28 23:17 /dev/audioctl0
crw-rw-rw-  1 root  wheel   42, 193 Nov 29 11:02 /dev/audioctl1
crw-rw-rw-  1 root  wheel   42, 194 Nov 27 15:13 /dev/audioctl2

nuc$ mixerctl -av
inputs.dac-0:1=126,126
inputs.dac-2:3=126,126
record.adc-0:1_mute=off  [ off on ]
record.adc-0:1=124,124
record.adc-2:3_mute=off  [ off on ]
record.adc-2:3=124,124
inputs.mix_source=mic  { mic }
inputs.mix_mic=120,120
inputs.mix2_source=dac-0:1,mix  { dac-0:1 mix }
inputs.mix3_source=dac-2:3,mix  { dac-2:3 mix }
inputs.mic=85,85
outputs.mic_dir=input-vr80  [ none input input-vr0 input-vr50
input-vr80 input-vr100 ]
outputs.hp_source=mix2  [ mix2 mix3 ]
outputs.hp_mute=off  [ off on ]
outputs.hp_boost=off  [ off on ]
outputs.hp_eapd=on  [ off on ]
record.adc-2:3_source=mic,mix  { mic mix }
record.adc-0:1_source=mic,mix  { mic mix }
outputs.mic_sense=unplugged  [ unplugged plugged ]
outputs.hp_sense=plugged  [ unplugged plugged ]
outputs.master=126,126
outputs.master.mute=off  [ off on ]
outputs.master.slaves=dac-0:1,hp  { dac-0:1 dac-2:3 hp }
record.volume=124,124
record.volume.mute=off  [ off on ]
record.volume.slaves=adc-0:1,adc-2:3  { adc-0:1 adc-2:3 mic }

nuc$ audioctl
name=HD-Audio
encodings=slinear_le:16:2:1,slinear_le:20:4:1,slinear_le:24:4:1
properties=full_duplex,independent
hiwat=2
lowat=2
mode=
play.rate=48000
play.channels=2
play.precision=16
play.bps=2
play.msb=1
play.encoding=slinear
play.pause=0
play.active=0
play.block_size=3840
play.bytes=0
play.errors=0
record.rate=48000
record.channels=2
record.precision=16
record.bps=2
record.msb=1
record.encoding=slinear
record.pause=0
record.active=0
record.block_size=3840
record.bytes=0
record.errors=0

dmesg using GENERIC.MP
OpenBSD 5.8-current (GENERIC.MP) #12: Mon Nov 30 01:16:26 SGT 2015
r...@nuc.none:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 16035188736 (15292MB)
avail mem = 15545081856 (14824MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0x36ee7000 (53 entries)
bios0: vendor Intel Corporation version
"RYBDWi35.86A.0350.2015.0812.1722" date 08/12/2015
bios0: Intel Corporation NUC5i7RYB
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT FIDT MCFG HPET SSDT UEFI LPIT SSDT
ASF! SSDT SSDT SSDT DMAR
acpi0: wakeup devices PEGP(S4) PEG0(S4) PEGP(S4) PEG1(S4) PEGP(S4)
PEG2(S4) PS2K(S3) PS2M(S3) PXSX(S4) RP01(S4) PXSX(S4) RP02(S4)
PXSX(S4) RP03(S4) PXSX(S4) RP04(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz, 2894.02 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEA
DLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FS
GSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RDSEED,ADX,SMAP,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz, 2887.55 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX

X randomly crashes/segfaults/freezes on Intel NUC5i7RYH with intel(4) i915

2015-11-29 Thread Josh
Hi,

Running X on an amd64 -current (updated ~5pm UTC 29th Nov) will
produce random behaviours:
1) X freezes and the machine is not responding anymore. Power-cycle is
the only thing to do but I am not able to grab any logs. This happens
randomly and can be while browsing the web with Dillo, highlighting
some text in the terminal or running glxgears for a few seconds.
2) X crashes and restarts on its own (xdm). From there, I can get a
log from Xorg.0.log (see below) and X segfaults. This happens also
randomly while browsing / highlighting.
3) From time to time, the cursor will become very sluggish and X
crashes eventually (not always). This happens when highlighting some
text in the terminal, moving windows around.
4) Not sure if it's directly linked to X but playing a video via
mplayer or vlc is sluggish/scrambled; resizing the window will just
black out the borders and keep the original video size.

Please let me know if there is any further info I could provide or
tests/debug I could perform?

Cheers

nuc$ sysctl |grep aperture
machdep.allowaperture=2

nuc$ cat /var/log/Xorg.0.log
[47.871] (--) checkDevMem: using aperture driver /dev/xf86
[47.876] (--) Using wscons driver on /dev/ttyC4 in pcvt
compatibility mode (version 3.32)
[47.886]
X.Org X Server 1.17.4
Release Date: 2015-10-28
[47.886] X Protocol Version 11, Revision 0
[47.886] Build Operating System: OpenBSD 5.8 amd64
[47.886] Current Operating System: OpenBSD nuc.none 5.8 GENERIC.MP#12
amd64
[47.886] Build Date: 30 November 2015  01:16:26AM
[47.886]
[47.886] Current version of pixman: 0.32.8
[47.886]Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[47.886] Markers: (--) probed, (**) from config file, (==) default
setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[47.886] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Nov 30
02:07:31 2015
[47.887] (==) Using system config directory
"/usr/X11R6/share/X11/xorg.conf.d"
[47.888] (==) No Layout section.  Using the first Screen section.
[47.888] (==) No screen section available. Using defaults.
[47.888] (**) |-->Screen "Default Screen Section" (0)
[47.888] (**) |   |-->Monitor ""
[47.888] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[47.888] (==) Disabling SIGIO handlers for input devices
[47.888] (==) Automatically adding devices
[47.888] (==) Automatically enabling devices
[47.888] (==) Not automatically adding GPU devices
[47.894] (==) FontPath set to:
/usr/X11R6/lib/X11/fonts/misc/,
/usr/X11R6/lib/X11/fonts/TTF/,
/usr/X11R6/lib/X11/fonts/OTF/,
/usr/X11R6/lib/X11/fonts/Type1/,
/usr/X11R6/lib/X11/fonts/100dpi/,
/usr/X11R6/lib/X11/fonts/75dpi/
[47.894] (==) ModulePath set to "/usr/X11R6/lib/modules"
[47.894] (II) The server relies on wscons to provide the list of
input devices.
If no devices become available, reconfigure wscons or disable
AutoAddDevices.
[47.894] (II) Loader magic: 0x106fc5231ce0
[47.894] (II) Module ABI versions:
[47.894]X.Org ANSI C Emulation: 0.4
[47.894]X.Org Video Driver: 19.0
[47.894]X.Org XInput driver : 21.0
[47.894]X.Org Server Extension : 9.0
[47.894] (--) PCI:*(0:0:2:0) 8086:162b:8086:2057 rev 9, Mem @
0x7900/16777216, 0x8000/1073741824, I/O @ 0x3000/64
[47.894] (II) LoadModule: "glx"
[47.895] (II) Loading /usr/X11R6/lib/modules/extensions/libglx.so
[47.904] (II) Module glx: vendor="X.Org Foundation"
[47.904]compiled for 1.17.4, module version = 1.0.0
[47.904]ABI class: X.Org Server Extension, version 9.0
[47.904] (==) AIGLX enabled
[47.904] (==) Matched intel as autoconfigured driver 0
[47.904] (==) Matched vesa as autoconfigured driver 1
[47.904] (==) Assigned the driver to the xf86ConfigLayout
[47.904] (II) LoadModule: "intel"
[47.904] (II) Loading /usr/X11R6/lib/modules/drivers/intel_drv.so
[47.906] (II) Module intel: vendor="X.Org Foundation"
[47.906]compiled for 1.17.4, module version = 2.99.916
[47.906]Module class: X.Org Video Driver
[47.906]ABI class: X.Org Video Driver, version 19.0
[47.906] (II) LoadModule: "vesa"
[47.906] (II) Loading /usr/X11R6/lib/modules/drivers/vesa_drv.so
[47.906] (II) Module vesa: vendor="X.Org Foundation"
[47.906]compiled for 1.17.4, module version = 2.3.3
[47.906]Module class: X.Org Video Driver
[47.906]ABI class: X.Org Video Driver, version 19.0
[47.906] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
Pineview G, 965G, G35, 965Q, 

Help with diff for Samsung 950 Pro NVMe (unable to map registers)

2015-11-16 Thread Josh
Hi,

Trying to get it recognized and initialized (Model Code MZ-V5P512BW)
Using 16th November snapshot:
...snip... (full dmesg below)
ppb2 at pci0 dev 28 function 4 "Intel 9 Series PCIE" rev 0xe3: msi
pci3 at ppb2 bus 3
vendor "Samsung", unknown product 0xa802 (class mass storage unknown
subclass 0x08, rev 0x01) at pci3 dev 0 function 0 not configured
ehci0 at pci0 dev 29 function 0 "Intel 9 Series USB" rev 0x03: apic 2 int 23
...

Applied the following diff:

*** ahci_pci.c.orig Sat Mar 14 11:38:48 2015
--- ahci_pci.c  Mon Nov 16 20:21:36 2015
***
*** 152,157 
--- 152,159 
NULL,   ahci_samsung_attach },
{ PCI_VENDOR_SAMSUNG2,  PCI_PRODUCT_SAMSUNG2_SM951,
NULL,   ahci_samsung_attach },
+   { PCI_VENDOR_SAMSUNG2,  PCI_PRODUCT_SAMSUNG2_950PRO,
+   NULL,   ahci_samsung_attach },

{ PCI_VENDOR_VIATECH,   PCI_PRODUCT_VIATECH_VT8251_SATA,
  ahci_no_match,ahci_vt8251_attach }

*** pcidevs.h.orig  Sat Nov 14 19:25:53 2015
--- pcidevs.h   Mon Nov 16 11:48:27 2015
***
*** 6387,6392 
--- 6387,6393 
  #define   PCI_PRODUCT_SAMSUNG2_S4LN053X01 0x1600  /* S4LN053X01
*/
  #define   PCI_PRODUCT_SAMSUNG2_XP941  0xa800  /* XP941 */
  #define   PCI_PRODUCT_SAMSUNG2_SM951  0xa801  /* SM951 */
+ #define   PCI_PRODUCT_SAMSUNG2_950PRO 0xa802  /* 950PRO */

  /* Sangoma products */
  #define   PCI_PRODUCT_SANGOMA_A10X0x0300  /* A10x */

*** pcidevs.origSat Nov 14 19:25:53 2015
--- pcidevs Mon Nov 16 11:47:59 2015
***
*** 6382,6387 
--- 6382,6388 
  product SAMSUNG2 S4LN053X01   0x1600  S4LN053X01
  product SAMSUNG2 XP9410xa800  XP941
  product SAMSUNG2 SM9510xa801  SM951
+ product SAMSUNG2 950PRO 0xa802950PRO

  /* Sangoma products */
  product SANGOMA A10X  0x0300  A10x

*** pcidevs_data.h.orig Sat Nov 14 19:25:53 2015
--- pcidevs_data.h  Mon Nov 16 11:49:24 2015
***
*** 22240,22245 
--- 22240,22249 
"SM951",
},
{
+   PCI_VENDOR_SAMSUNG2, PCI_PRODUCT_SAMSUNG2_950PRO,
+   "950PRO",
+   },
+   {
PCI_VENDOR_SANGOMA, PCI_PRODUCT_SANGOMA_A10X,
"A10x",
},

dmesg after compiling / rebooting:
... snip ...
ppb2 at pci0 dev 28 function 4 "Intel 9 Series PCIE" rev 0xe3: msi
pci3 at ppb2 bus 3
ahci0 at pci3 dev 0 function 0 "Samsung 950PRO" rev 0x01: apic 2 int
16, unable to map registers
ehci0 at pci0 dev 29 function 0 "Intel 9 Series USB" rev 0x03: apic 2 int 23
...

The device is "recognized" but unable to map registers. I am certainly
missing something. Any help would be greatly appreciated. (below full
pcidump and dmesg before and after the above patch).

Cheers

pcidump output

Domain /dev/pci0:
 0:0:0: Intel Core 5G Host
0x: Vendor ID: 8086 Product ID: 1604
0x0004: Command: 0006 Status: 2090
0x0008: Class: 06 Subclass: 00 Interface: 00 Revision: 09
0x000c: BIST: 00 Header Type: 00 Latency Timer: 00 Cache Line Size: 00
0x0010: BAR empty ()
0x0014: BAR empty ()
0x0018: BAR empty ()
0x001c: BAR empty ()
0x0020: BAR empty ()
0x0024: BAR empty ()
0x0028: Cardbus CIS: 
0x002c: Subsystem Vendor ID: 8086 Product ID: 2057
0x0030: Expansion ROM Base Address: 
0x0038: 
0x003c: Interrupt Pin: 00 Line: 00 Min Gnt: 00 Max Lat: 00
0x00e0: Capability 0x09: Vendor Specific
 0:2:0: Intel Iris Graphics 6100
0x: Vendor ID: 8086 Product ID: 162b
0x0004: Command: 0007 Status: 0090
0x0008: Class: 03 Subclass: 00 Interface: 00 Revision: 09
0x000c: BIST: 00 Header Type: 00 Latency Timer: 00 Cache Line Size: 00
0x0010: BAR mem 64bit addr: 0x7900/0x0100
0x0018: BAR mem prefetchable 64bit addr: 0x8000/0x4000
0x0020: BAR io addr: 0x4000/0x0040
0x0024: BAR empty ()
0x0028: Cardbus CIS: 
0x002c: Subsystem Vendor ID: 8086 Product ID: 2057
0x0030: Expansion ROM Base Address: 
0x0038: 
0x003c: Interrupt Pin: 01 Line: 0b Min Gnt: 00 Max Lat: 00
0x0090: Capability 0x05: Message Signaled Interrupts (MSI)
0x00d0: Capability 0x01: Power Management
0x00a4: Capability 0x13: PCI Advanced Features
 0:3:0: Intel Core 5G HD Audio
0x: Vendor ID: 8086 Product ID: 160c
0x0004: Command: 0006 Status: 0010
0x0008: Class: 04 Subclass: 03 Interface: 00 Revision: 09
0x000c: BIST: 00 Header Type: 00 Latency Timer: 00 Cache Line Size: 00
0x0010: BAR mem 64bit addr: 0x7a234000/0x4000
0x0018: BAR empty ()
0x001c: BAR empty ()
0x0020: BAR empty ()
0x0024: BAR empty ()
0x0028: Cardbus CIS: 

Re: Help with diff for Samsung 950 Pro NVMe (unable to map registers)

2015-11-16 Thread Josh
Thanks Ted for the reply and the hint.
After a bit of research, it seems the 950 Pro use a PCIe NVMe
interface as opposed to the SM951 (already in the CVS tree) using PCIe
AHCI interface.
I did not find any mention of backwards compatibility with AHCI so far
for the 950 Pro and might correlate with your assumption.

A bit more research brought me to the nvme [1] driver found in
FreeBSD. Was there any attempts into porting that?
I am not a developer, but would be happy to help in testing patch/source code.

Cheers,

[1] https://www.freebsd.org/cgi/man.cgi?query=nvme=4


On Mon, Nov 16, 2015 at 11:32 PM, Ted Unangst <t...@tedunangst.com> wrote:
> Josh wrote:
>> Hi,
>>
>> Trying to get it recognized and initialized (Model Code MZ-V5P512BW)
>> Using 16th November snapshot:
>> ...snip... (full dmesg below)
>> ppb2 at pci0 dev 28 function 4 "Intel 9 Series PCIE" rev 0xe3: msi
>> pci3 at ppb2 bus 3
>> vendor "Samsung", unknown product 0xa802 (class mass storage unknown
>> subclass 0x08, rev 0x01) at pci3 dev 0 function 0 not configured
>> ehci0 at pci0 dev 29 function 0 "Intel 9 Series USB" rev 0x03: apic 2 int 23
>> ...
>>
>> Applied the following diff:
>>
>> *** ahci_pci.c.orig Sat Mar 14 11:38:48 2015
>> --- ahci_pci.c  Mon Nov 16 20:21:36 2015
>> ***
>> *** 152,157 
>> --- 152,159 
>> NULL,   ahci_samsung_attach },
>> { PCI_VENDOR_SAMSUNG2,  PCI_PRODUCT_SAMSUNG2_SM951,
>> NULL,   ahci_samsung_attach },
>> +   { PCI_VENDOR_SAMSUNG2,  PCI_PRODUCT_SAMSUNG2_950PRO,
>> +   NULL,   ahci_samsung_attach },
>>
>> { PCI_VENDOR_VIATECH,   PCI_PRODUCT_VIATECH_VT8251_SATA,
>>   ahci_no_match,ahci_vt8251_attach }
>
> Does the 950 pro nvme support sata mode? The quirk for the interrupts isn't
> anything like native nvme support. I imagine at some point newer drives are
> going to stop pretending to have sata interfaces.



Re: dpb - wow!

2015-11-02 Thread Josh Grosse

On 2015-11-02 13:33, Alan Corey wrote:

I'd never tried it before but it's saving me a lot of babysitting to
start the next build compared to doing them one at a time.

There's probably a way to do this but I'd never tried dpb because I
didn't have a list of pkgpaths to feed it.  I could query sqlports I
guess, but a command-line flag to pkg_info to have it give full
pkgpaths would be good.  My goal is to be able to make a list of
pkgpaths on a machine, save it, put in a new hard drive, do an OpenBSD
install, then run dpb on the saved list of pkgpaths.


Hey, Alan.  I've been an end-user of dpb() for some years. It's the
bees' knees. A couple of hints which may help:

* out-of-date(1) produces pkgpath output, which I use with dpb -R for
  -stable package builds.

* pkg_info(1) has a -P option, which along with -mq produces a nice list 
of

  manually installed pkgpaths.


And my hyperthreaded P4 now gets detected as MP?  Neat.  Just jumping
it from 5.0 to 5.7.


5.8 was released October 18.  :) :)



Re: Avahi daemon, dbus daemon

2015-10-24 Thread Josh Grosse
On Sat, Oct 24, 2015 at 04:14:40PM -0400, Richard Thornton wrote:
> I am now using the 5.8 release. I have tried to start avahi in my
> rc.conf.local file but it always fails to load. In 5.7 I never had this
> problem. What's the correct way to load these daemons?

Richard,

If I recall correctly, the avahi daemon relies on the dbus daemon,
which had a name change between 5.7 and 5.8.  The dbus dameon was
named "dbus_dameon" at 5.7, and was named "messagebus" for 5.8.

This is noted in the Upgrade Guide, which you may have missed.

http://www.openbsd.org/faq/upgrade58.html#Pkgup



Re: Question about core dumps and swap space.

2015-10-20 Thread Josh Grosse

On 2015-10-20 07:55, Nick Holland wrote:

But still -- remember what developers ask for most often: a good 
problem

report: panic message, trace and ps output, a dmesg and info about how
to repeat the problem.  If people would reliably provide that, they'd
make developers very very happy.

Not being a coder, I hesitate to say this, but I don't recall anyone
being asked for a system core dump by a developer.  (my statement is
accurate: I don't recall.  The conclusions you draw may or may not be 
:)


One of the nice things about having a successful savecore(8) is that
the captured dump can provide all the critical bits.  So dumps are very
useful to have.  Tools like ps(1) and dmesg(8) have -N and -M options 
for

post-mortem analysis.

The crash(8) man page has been extremely helpful to me over the years.  
And, there's

also very helpful guidance in FAQ 2.4.

I've never sent anyone a crash dump, but I've certainly pulled info
from them to make a dish of copypasta.



Re: Install on compact flash

2015-10-18 Thread Josh Grosse
On Mon, Oct 19, 2015 at 04:34:31AM +0200, Einfach Jemand wrote:
>  No. As far as I understand it:
> The type (char or block), the major and minor number of the device
> special file and its name are means to activate the corresponding device
> handler ("driver") in the kernel and the bytes are sent to the device
> specified by the file. 

Ok.  I can at least tell you that the last time I tested an r/o
/dev was at OpenBSD 3.8 or so, and the filesystem was CD9660 rather
than FFS.  

It failed.  So from that point, until I stopped making live media
images at 5.0, I never tested again. /dev was merely one of a half
dozen r/w filesystems I used with MFS.



Re: Install on compact flash

2015-10-18 Thread Josh Grosse
On Sun, Oct 18, 2015 at 01:08:48PM +0200, Paolo Aglialoro wrote:

> ...Still cannot understand why some of you have adviced to put /dev on
> ramdisk: isn't MAKEDEV just run at install time and then only manually?
> From what emerged in the discussion it looks that, besides /home, /var is
> the only place where system makes its usual writes.

The "some of you" was me, if I recall the complete discussion thread.  :)

While it's true MAKEDEV needs to create the device special files, the
device special files that are stored there need to be writeable.  

Here's one key example:

You mount(8) a device special file when you mount a filesystem.  
All write operations to that mounted filesystem are directed through 
the device special file.



While you won't run MAKEDEV while the system is up and running,
take a look at the MAKEDEV(8) man page.  You'll see a lot of device
special files that will need to be writeable.



Re: pip for python3.4

2015-10-17 Thread Josh Grosse
On Sat, Oct 17, 2015 at 06:58:44PM +0300, Joseph Oficre wrote:
> Hello!
> How can i install pip for 3.4 python? I want to set up virtualenv and
> stuff, but in packages just 2.7 version.
> I've found out that pip3 can be installed from ports, but i want easy way
> solution without ports. Is it possible or ports is only way?
 
Are you looking for the py3-pip package?  It's been in the standard 
package build since May of 2014.  



Re: Install on compact flash

2015-10-15 Thread Josh Grosse

On 2015-10-15 12:19, Paolo Aglialoro wrote:

MyTL;DR - Don't bother.  I used to create "live media" read/only 
systems,

with MFS filesystems for read/write.

You'll find maintaining a read-only system much more difficult.

I recommend just treating your flash memory like a disk drive.  Modern
wear leveling technology means read-only CF devices are no longer
a necessity.  I run several routers with CF cards, and all filesystems
are read/write.

As to your questions:


... 1. What are the dirs I should take into account to go to ramdisk?


/dev, /etc, /var, and /tmp require write capability, and while they
do not require it, consider adding /root and /home to list of writeable
filesystems.

2. What is the correct filesystem type to put in fstab for all the 
entries

of point 1. in order to store them in ramdisk?


See the -P option of mount_mfs(8)



Re: /bsd: em0: watchdog timeout -- resetting

2015-10-05 Thread Josh Grosse

On 2015-10-05 10:41, Theo de Raadt wrote:
On Sun, Oct 4, 2015 at 12:00 PM, Stuart Henderson 
 wrote:

> I'm hoping it isn't this, but please try backing out the last commits to
> if_em.c and if_em.h ("cd /sys/dev/pci; cvs up -D 2015/09/29 if_em*") to
> see if it makes a difference.

Same issue here. Reverting now and will post if problem resurfaces.


The snapshots contain an uncommited diff in the same direction as that
em commit.  Problem is unknown.  Few more days, still trying to learn
what is amiss, and not stall out the promised advancement.


I reported yesterday [1] that I was unable to recreate the problem with
these two patches reverted.

I *was* able to reproduce the problem when testing earlier the same day
with a kernel built from the committed tree.

I'm using the em(4) NIC as a vlandev, which may be a contributing 
factor.



[1] http://marc.info/?l=openbsd-misc=144397409121292=2



Re: /bsd: em0: watchdog timeout -- resetting

2015-10-04 Thread Josh Grosse
On Fri, Oct 02, 2015 at 09:09:37PM -0700, Scott Vanderbilt wrote:
> On 10/2/2015 8:32 AM, Gregor Best wrote:
> >Looks similar for my machine, em0 works for a short time and then
> >timeouts. `ifconfig em0 up` seems to hang though.

I had the same issue after updating from a September 22 snapshot.  

This appears to possibly be related to the September 30 em(4) updates
for MP support.  I reverted src/sys/dev/pci/{if_em.c,if_em.h} to 1.305
and 1.57, respectively, and I can no longer reproduce the problem.



Re: rookie questions about flavors

2015-09-23 Thread Josh Grosse

On 2015-09-23 09:41, Peter N. M. Hansteen wrote:

On Wed, Sep 23, 2015 at 02:55:21PM +0200, Thuban wrote:



Is it possible to upgrade from 5.7 yo 5.8 using this flag :
cvs -d$CVSROOT checkout -rOPENBSD_5_8 -P src


In almost all cases, a binary upgrade followed by sysmerge will be 
quicker and

easier, but in the general case, yes.


Source code "upgrades" are possible, but completely unsupported.  So any 
user
conducting one is entirely on his own.  I used to do this when I was 
preparing live media
images some years ago, so they would be ready the same day as an actual 
release.


It requires *very* careful application of the Following -current FAQ 
entries, especially

any ABI/API changes -- the so-called "flag day" actions.

---

(I cannot believe I'm offering any sort of correction of a statement by 
Peter Hansteen.

Is the sky falling?)



  1   2   3   4   5   6   7   >