Re: [drm] *ERROR* [CRTC:41:pipe ] flip_done timed out

2020-02-04 Thread Aaron Mason
Hi Jacek

On Tue, Feb 4, 2020 at 4:42 AM Jacek Kowalczyk  wrote:
>
> Hi,
>
> I am running Openbsd 6.6 at ThinkPad R61i with graphic card Intel GMA X3100. 
> I am getting errors like in the subject:
> [drm] *ERROR* [CRTC:41:pipe ] flip_done timed out
> [drm] *ERROR* [CONNECTOR:51:SVIDEO- ] flip_done timed out
> And my laptop is booting quite long time, around 5 minutes.
> What I need to set or install and where to solve it?
>
>
> BR
> Jacek Kowalczyk
> http://jacekkowakczyk82.github.ii
>
>
> -- Wysłane za pomocą K-9 Mail.
>

Can you reply with a full dmesg please.

-- 
Aaron Mason - Programmer, open source addict
I've taken my software vows - for beta or for worse



Re: Low throughput with 1 GigE interface

2020-02-04 Thread Noth



On 30/01/2020 15:43, livio wrote:

Dear all,

I am unable to achieve decent throughput with a 1 GigE interface
(Intel I210) on OpenBSD 6.6. When running iperf3 I get around 145Mbit/s.

The config/setup is: APU2c4, Win10 notebook, no switch, Cat.6a cable,
MTU 1500, 1000baseT, full-duplex, pf disabled, BSD.mp, no custom Kernel
parameters/optimizations.

With an increased MTU of 9000 (on both devices) the throughput is around
230-250Mbit/s.

When running the same test with a FreeBSD 12.1 on the APU I achieve
around 940Mbit/s (MTU 1500).

The BIOS has been updated to the latest version (v4.11.0.2). The
hardware of the device is: https://pcengines.ch/apu2c0.htm

dmesg output:
https://paste.ee/p/OeRbI

Any inputs and help is highly appreciated.

Many thanks,
Livio

PS: I ran the same tests on an APU1c4 with Realtek RTL8111E interfaces.
The results were lower - around 95Mbit/s.
https://pcengines.ch/apu1c4.htm

PPS: Others also seem to have low throughput. None of the tuning
recommendations I found online substantially improved my results:
https://www.reddit.com/r/openbsd/comments/cg9vhq/poor_network_performance_pcengines_apu4/

According to the manufacturer of the APU2, the problem is with OpenBSD 
not using all cores for network traffic management: 
https://teklager.se/en/knowledge-base/apu2c0-ipfire-throughput-test-much-faster-pfsense/ 



Re: [drm] *ERROR* [CRTC:41:pipe ] flip_done timed out

2020-02-04 Thread krishh61
Hi Jacek,

Same laptop, same model, same problem  I was just upgrading from ver 6.1
through all the versions up to 6.6; it went ok (except versions 6.2 and 6.3
where I had strange resolution, but it was ok when I upgraded to version
6.4) 6.5 was fine and when I finally upgraded to version 6.6 same happened
as in your case (yet it contains line 34,41 and 54):

[drm] *ERROR* [CRTC:34:pipe ] flip_done timed out
[drm] *ERROR* [CRTC:34 pipe ] flip_done timed out
[drm] *ERROR* [CONNECTOR:54:SVIDEO-] flip_done timed out
[drm] *ERROR* [CRTC:41:pipe ] flip_done timed out
[drm] *ERROR* [CRTC:41:pipe ] flip_done timed out
[drm] *ERROR* [CONNECTOR:54:SVIDEO-] flipd_done timed out

booting deso not take 5 minutes but it is longer than normal.

Have no clues what this could be.



--
Sent from: http://openbsd-archive.7691.n7.nabble.com/openbsd-user-misc-f3.html



Re: wpa_supplicant error

2020-02-04 Thread Charlie Burnett
Well, I at least have a tangible error now. Observing through wpa_cli, I
get the following:
<3>CTRL-EVENT-EAP-STATUS status=‘eap parameter needed’ parameter=‘PASSWORD’
<3>CTRL-REQ-PASSWORD-0: Password needed for SSID eduroam
<3>CTRL-EVENT-EAP-FAILURE EAP authentication failed
Authentication with $BSSID timed out.

Out of curiosity I switched it to WPA2-PSK and it says it successfully
associated, however I can’t ping anything and trying to use dhclient just
results in it timing out/sleeping.

I know my password is correct as well

On Mon, Feb 3, 2020 at 4:42 AM Raf Czlonka  wrote:

> On Sun, Feb 02, 2020 at 09:42:52PM GMT, Charlie Burnett wrote:
> > Hey @misc,
> > I've used OpenBSD on my desktop and server for a while, however they both
> > have an Ethernet connection. I recently got my hands on a thinkpad x1 6th
> > gen in order to ensure compatibility with OpenBSD. I can connect fine via
> > the /etc/hostname.if with /etc/netstart, however I need to be able to
> > connect to eduroam for class. I was using linux on my past laptop,
> however
> > I connected through wpa_supplicant on it. I copied my wpa_supplicant.conf
> > over, however whenever I try to connect to a network I get hung up in the
> > same spot. The conf works fine on linux, so the credentials are correct.
> > I've also ensured the interface was up with "doas ifconfig iwm0 up"
> Here's
> > the output from attempting to connect with "doas wpa_supplicant -i iwm0
> -c
> > /etc/wpa_supplicant.conf -D openbsd -dd":
> > wpa_supplicant v2.9
> > Successfully initialized wpa_supplicant
> > Initializing interface 'iwm0' conf '/etc/wpa_supplicant.conf' driver
> > 'openbsd' ctrl_interface 'N/A' bridge 'N/A'
> > Configuration file '/etc/wpa_supplicant.conf' ->
> '/etc/wpa_supplicant.conf'
> > Reading configuration file '/etc/wpa_supplicant.conf'
> > ctrl_interface='/var/run/wpa_supplicant'
> > ctrl_interface_group='wheel'
> > eapol_version=2
> > ap_scan=1
> > fast_reauth=1
> > update_config=1
> > Line: 11 - start of a new network block
> > ssid - hexdump_ascii(len=): HOME
> > key_mgmt: 0x2
> > PSK - hexdump(len=): [REMOVED]
> > Line: 19 - start of a new network block
> > ssid - hexdump_ascii(len=7): eduroam
> > scan_ssid=1 (0x1)
> > key_mgmt: 0x1
> > eap methods - hexdump(len=): 00 00 00 00 19 00 00 00 00 00 00 00 00 00
> 00 00
> > phase2 - hexdump_ascii(len=):
> >  61 75 74 68 3d 4d 53 43 48 41 50 56 32auth=MSCHAPV2
> > auth_alg: 0x1
> > identity - hexdump_ascii(len=):
> > ca_cert - hexdump_ascii(len=):
> >  2f 65 74 63 2f 73 73 6c 2f 63 65 72 74 73 2f 41   /etc/ssl/certs/A
> >  64 64 54 72 75 73 74 5f 45 78 74 65 72 6e 61 6c   ddTrust_External
> >  5f 52 6f 6f 74 2e 70 65 6d_Root.pem
> > password - hexdump_ascii(len=): [REMOVED]
> > Line: 32 - start of a new network block
> > ssid - hexdump_ascii(len=):   HOME2
> > PSK - hexdump(len=): [REMOVED]
> > Priority group 0
> >id=0 ssid='HOME'
> >id=1 ssid='eduroam'
> >id=2 ssid='HOME2'
> > Add interface iwm0 to a new radio N/A
> > iwm0: Failed to attach pkt_type filter
> > iwm0: Own MAC address: 38:00:25:6c:76:6d
> > iwm0: RSN: flushing PMKID list in the driver
> > iwm0: Setting scan request: 0.10 sec
> > ENGINE: Loading builtin engines
> > ENGINE: Loading builtin engines
> > EAPOL: SUPP_PAE entering state DISCONNECTED
> > EAPOL: Supplicant port status: Unauthorized
> > EAPOL: KEY_RX entering state NO_KEY_RECEIVE
> > EAPOL: SUPP_BE entering state INITIALIZE
> > EAP: EAP entering state DISABLED
> > ctrl_interface_group=0 (from group name 'wheel')
> > iwm0: Added interface iwm0
> > iwm0: State: DISCONNECTED -> DISCONNECTED
> > iwm0: Using OpenBSD - overriding ap_scan configuration
> > EAPOL: disable timer tick
> >
> > Here is the output after sending a ctrl-C to the terminal:
> >  ^Ciwm0: Removing interface iwm0
> > iwm0: Request to deauthenticate - bssid=00:00:00:00:00:00
> > pending_bssid=00:00:00:00:00:00 reason=3 (DEAUTH_LEAVING)
> state=DISCONNECTED
> > iwm0: State: DISCONNECTED -> DISCONNECTED
> > EAPOL: External notification - portEnabled=0
> > EAPOL: External notification - portValid=0
> > iwm0: WPA: Clear old PMK and PTK
> > iwm0: Cancelling scan request
> > iwm0: Cancelling authentication timeout
> > Remove interface iwm0 from radio
> > Remove radio
> > iwm0: CTRL-EVENT-TERMINATING
> >
>
> Hi Charlie,
>
> eduroam works just fine on OpenBSD with wpa_supplicant.
>
> However, you hadn't followed the information provided in the
> pkg-readme file:
>
> /usr/local/share/doc/pkg-readmes/wpa_supplicant
>
> Namely:
>
> # ifconfig iwm0 join "Laakista Humppa" wpa wpaakms 802.1x
>
> as well as:
>
> Do not enable "ap_scan" - it is not supported by the OpenBSD
> support code.
>
> scan_ssid=1 isn't necessary either - eduroam APs shouldn't reject
> broadcast SSID.
>
> fast_reauth=1 is the default so there's no need to use it, unless you
> want/need to disable it with '0'.
>
> Can't recall whether it is at 

how to find lock contention

2020-02-04 Thread gwes

I'm copying a directory tree from one ssd to another.
Top reports +- 33% system time and +- 28% spin time.

Is there any easy way to determine which lock is hot?
Mostly from morbid interest & curiosity about gruesome
detail of the current filesystem implementation.
Geoff Steckel



Re: wpa_supplicant error

2020-02-04 Thread Charlie Burnett
Well, I’m a dumbass.

I just needed to swap out “psk” for “password” in my file. All working now.

On Tue, Feb 4, 2020 at 4:59 PM Charlie Burnett  wrote:

> Well, I at least have a tangible error now. Observing through wpa_cli, I
> get the following:
> <3>CTRL-EVENT-EAP-STATUS status=‘eap parameter needed’ parameter=‘PASSWORD’
> <3>CTRL-REQ-PASSWORD-0: Password needed for SSID eduroam
> <3>CTRL-EVENT-EAP-FAILURE EAP authentication failed
> Authentication with $BSSID timed out.
>
> Out of curiosity I switched it to WPA2-PSK and it says it successfully
> associated, however I can’t ping anything and trying to use dhclient just
> results in it timing out/sleeping.
>
> I know my password is correct as well
>
> On Mon, Feb 3, 2020 at 4:42 AM Raf Czlonka  wrote:
>
>> On Sun, Feb 02, 2020 at 09:42:52PM GMT, Charlie Burnett wrote:
>> > Hey @misc,
>> > I've used OpenBSD on my desktop and server for a while, however they
>> both
>> > have an Ethernet connection. I recently got my hands on a thinkpad x1
>> 6th
>> > gen in order to ensure compatibility with OpenBSD. I can connect fine
>> via
>> > the /etc/hostname.if with /etc/netstart, however I need to be able to
>> > connect to eduroam for class. I was using linux on my past laptop,
>> however
>> > I connected through wpa_supplicant on it. I copied my
>> wpa_supplicant.conf
>> > over, however whenever I try to connect to a network I get hung up in
>> the
>> > same spot. The conf works fine on linux, so the credentials are correct.
>> > I've also ensured the interface was up with "doas ifconfig iwm0 up"
>> Here's
>> > the output from attempting to connect with "doas wpa_supplicant -i iwm0
>> -c
>> > /etc/wpa_supplicant.conf -D openbsd -dd":
>> > wpa_supplicant v2.9
>> > Successfully initialized wpa_supplicant
>> > Initializing interface 'iwm0' conf '/etc/wpa_supplicant.conf' driver
>> > 'openbsd' ctrl_interface 'N/A' bridge 'N/A'
>> > Configuration file '/etc/wpa_supplicant.conf' ->
>> '/etc/wpa_supplicant.conf'
>> > Reading configuration file '/etc/wpa_supplicant.conf'
>> > ctrl_interface='/var/run/wpa_supplicant'
>> > ctrl_interface_group='wheel'
>> > eapol_version=2
>> > ap_scan=1
>> > fast_reauth=1
>> > update_config=1
>> > Line: 11 - start of a new network block
>> > ssid - hexdump_ascii(len=): HOME
>> > key_mgmt: 0x2
>> > PSK - hexdump(len=): [REMOVED]
>> > Line: 19 - start of a new network block
>> > ssid - hexdump_ascii(len=7): eduroam
>> > scan_ssid=1 (0x1)
>> > key_mgmt: 0x1
>> > eap methods - hexdump(len=): 00 00 00 00 19 00 00 00 00 00 00 00 00 00
>> 00 00
>> > phase2 - hexdump_ascii(len=):
>> >  61 75 74 68 3d 4d 53 43 48 41 50 56 32auth=MSCHAPV2
>> > auth_alg: 0x1
>> > identity - hexdump_ascii(len=):
>> > ca_cert - hexdump_ascii(len=):
>> >  2f 65 74 63 2f 73 73 6c 2f 63 65 72 74 73 2f 41   /etc/ssl/certs/A
>> >  64 64 54 72 75 73 74 5f 45 78 74 65 72 6e 61 6c   ddTrust_External
>> >  5f 52 6f 6f 74 2e 70 65 6d_Root.pem
>> > password - hexdump_ascii(len=): [REMOVED]
>> > Line: 32 - start of a new network block
>> > ssid - hexdump_ascii(len=):   HOME2
>> > PSK - hexdump(len=): [REMOVED]
>> > Priority group 0
>> >id=0 ssid='HOME'
>> >id=1 ssid='eduroam'
>> >id=2 ssid='HOME2'
>> > Add interface iwm0 to a new radio N/A
>> > iwm0: Failed to attach pkt_type filter
>> > iwm0: Own MAC address: 38:00:25:6c:76:6d
>> > iwm0: RSN: flushing PMKID list in the driver
>> > iwm0: Setting scan request: 0.10 sec
>> > ENGINE: Loading builtin engines
>> > ENGINE: Loading builtin engines
>> > EAPOL: SUPP_PAE entering state DISCONNECTED
>> > EAPOL: Supplicant port status: Unauthorized
>> > EAPOL: KEY_RX entering state NO_KEY_RECEIVE
>> > EAPOL: SUPP_BE entering state INITIALIZE
>> > EAP: EAP entering state DISABLED
>> > ctrl_interface_group=0 (from group name 'wheel')
>> > iwm0: Added interface iwm0
>> > iwm0: State: DISCONNECTED -> DISCONNECTED
>> > iwm0: Using OpenBSD - overriding ap_scan configuration
>> > EAPOL: disable timer tick
>> >
>> > Here is the output after sending a ctrl-C to the terminal:
>> >  ^Ciwm0: Removing interface iwm0
>> > iwm0: Request to deauthenticate - bssid=00:00:00:00:00:00
>> > pending_bssid=00:00:00:00:00:00 reason=3 (DEAUTH_LEAVING)
>> state=DISCONNECTED
>> > iwm0: State: DISCONNECTED -> DISCONNECTED
>> > EAPOL: External notification - portEnabled=0
>> > EAPOL: External notification - portValid=0
>> > iwm0: WPA: Clear old PMK and PTK
>> > iwm0: Cancelling scan request
>> > iwm0: Cancelling authentication timeout
>> > Remove interface iwm0 from radio
>> > Remove radio
>> > iwm0: CTRL-EVENT-TERMINATING
>> >
>>
>> Hi Charlie,
>>
>> eduroam works just fine on OpenBSD with wpa_supplicant.
>>
>> However, you hadn't followed the information provided in the
>> pkg-readme file:
>>
>> /usr/local/share/doc/pkg-readmes/wpa_supplicant
>>
>> Namely:
>>
>> # ifconfig iwm0 join "Laakista Humppa" wpa wpaakms 802.1x
>>
>> as well as:
>>
>> Do not enable 

Re: VLAN or aliases or? best way to isolate untrustable hosts in a small network

2020-02-04 Thread Christian Weisgerber
On 2020-02-03, Denis  wrote:

> Some hosts should be limited in internet access and/or local access or
> simply be restricted in some way because they are untrusted.
>
> I'm looking for a possibility to isolate untrusted inside LAN using any
> approach applicable. How do people isolate undesirable hosts in their
> networks?

Put hosts with different trust requirements into different networks
at the IP level, connected to a central gateway where you can easily
permit/deny traffic between them.  Use VLANs to separate the IP
networks.

For example, my home network is split into three networks:

* Trusted hosts.  These are allowed to initiate traffic to the
  Internet and to the other networks.

* Untrusted hosts with outside access.  These are allowed to initiate
  traffic to the Internet at large, but not to the other networks.
  This is mostly my wi-fi.  Also a RIPE Atlas probe.

* Untrusted hosts without outside access.  These cannot initiate
  traffic to any destination outside their network.  Includes my
  printer and the SIP phone[1] for my "landline".

That's three vlan(4) interfaces on my gateway, which provides basic
DHCP/SLAAC, DNS, NTP services on all of them and has a small pf(4)
ruleset to enforce the restrictions above about who can start talking
to whom.


[1] A SIP phone that is not allowed to talk to the outside may seem
surprising, but it only needs to talk to siproxd on the gateway,
and siproxd is required for NAT traversal anyway.
-- 
Christian "naddy" Weisgerber  na...@mips.inka.de



Re: 550 Invalid recipient domain

2020-02-04 Thread Markus Lude
On Tue, Feb 04, 2020 at 12:33:18AM +0200, Anne Wainwright wrote:
> Hi,
>
> OK, maybe this query should be for another mailing list.
>
> Getting mail to my BSD 6.4 server has been an issue. I have Postfix
> running. The mail is fetched by fetchmail. As far as I know both
> .fetchmailrc and /etc/aliases are correct.
>
> But the 550 message shows in maillog when the mail has come in and is
> then shown going out to my ISP's smtp server for user@localhost which
> of course rejects this as an undeliverable address. It does not get put
> into the mailbox at all.
>
> Surely this is some small stupid thing beyond my ken! If someone can
> point me in the right direction I would be very grateful.
>
> Perhaps part of the issue is that the name part of the email address to
> the server is not the same as the name of the user that it is to be
> delivered to. I am about to revise that to simplify things, though
> hoping a small correction somewhere might make that unnecessary.

If I understand you correct:

mail fetched by fetchmail has a recipient address like *@localhost and
the mail is then relayed to your smarthost (ISP's smtp server) and
rejected there?

I think your mydestination setting is wrong and is missing localhost
or did you mess up transport?

Hard to say without config parts and logs.

Regards,
Markus

PS: OpenBSD 6.4 is no longer supported