Linker problems with clang /usr/local/lib

2017-01-22 Thread Johannes Lundberg
Hi How can I make 'cc' (/usr/bin/ld) look for libraries in /usr/local/lib without having to specify environment or command line variables? I got "/usr/local/lib" in /etc/ld.so.conf and /var/run/ld-elf.so.hints. /sbin/ldconfig -l xxx can find library xxx in /usr/local/lib /usr/bin/ld can not.

Re: Linker problems with clang /usr/local/lib

2017-01-22 Thread Johannes Lundberg
... On Sun, Jan 22, 2017 at 12:42 PM, Dimitry Andric <d...@freebsd.org> wrote: > On 22 Jan 2017, at 21:29, Johannes Lundberg <johal...@gmail.com> wrote: > > > > How can I make 'cc' (/usr/bin/ld) look for libraries in /usr/local/lib > > without having to specify envi

asmc driver patch merge request

2017-02-15 Thread Johannes Lundberg
Hi This patch adds support for MacBook Pro 11,2 to asmc. The other day I tried patching my old https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214836 submission and discovered it did not apply at all anymore. I uploaded an updated patch that should apply cleanly to HEAD. Someone got time to

Re: asmc driver patch merge request

2017-02-16 Thread Johannes Lundberg
My emacs remove trailing white spaces automatically on save. On Wed, Feb 15, 2017 at 22:59 Adrian Chadd <adrian.ch...@gmail.com> wrote: > this looks fine to me. what's with the whitespace changes? > > > > -a > > > On 15 February 2017 at 19:27, Johannes Lundber

Re: asmc driver patch merge request

2017-02-16 Thread Johannes Lundberg
Thanks! On Thu, Feb 16, 2017 at 08:12 Adrian Chadd <adrian.ch...@gmail.com> wrote: > ok, lemme do a build and if it succeeds i'll commit it > > > > -a > > > On 16 February 2017 at 06:39, Johannes Lundberg <johal...@gmail.com> > wrote: > > My ema

ASLR

2017-01-18 Thread Johannes Lundberg
Hi What is the status of ASLR? https://reviews.freebsd.org/D5603 The thread has been silent for a couple of months. I'm happy to test if needed. I'm also interested in KASLR. Is that also on the roadmap? If someone involved could share some info I'd be grateful.

Multiple FreeBSD on same drive

2017-01-14 Thread Johannes Lundberg
Hi The most recent info I have is that the (UEFI) boot loader can only boot from the first UFS partition it finds. Has support for multiple installations been implemented? If so, how can I choose to boot from the first or second UFS partition? Thanks!

Secure Boot

2017-01-14 Thread Johannes Lundberg
Hi It's been almost a year since the Secure Boot wiki has been updated. https://wiki.freebsd.org/SecureBoot What is the current status and roadmap? Thanks! ___ freebsd-current@freebsd.org mailing list

Wayland update

2017-01-11 Thread Johannes Lundberg
Howdy It's time for another update from your friendly neighborhood graphics programmer. I will be keeping a live document with instructions etc here https://github.com/johalun/documentation/blob/master/wayland.md Please visit any time for information about Wayland on FreeBSD. Suggestions for

Re: current freebsd graphics stack

2017-01-03 Thread Johannes Lundberg
Hi Owen I've been helping out with drm, i915, linuxkpi and evdev in the kernel. For userland I'm working on Wayland-related stuff. You can check my twitter (@johalun) or this mailing list for my earlier posts about how to use this work. Sorry for asking but exactly what is your question now

Re: current freebsd graphics stack

2017-01-03 Thread Johannes Lundberg
hange, the complexity is pretty high. > > We'll see if we can sort that out. > > Best, > Owen > > On Tue, Jan 3, 2017 at 6:45 PM, Johannes Lundberg <johal...@gmail.com> > wrote: > > Hi > > Not sure about the other graphics drivers but porting a driver like > drm

Re: current freebsd graphics stack

2017-01-03 Thread Johannes Lundberg
nd DRM > are just yet but it seems like adding a wrapper around another OS kernel > into that mix can only go bad. > > How many people are working on the project with you at the moment? > > Best, > Owen > > On Tue, Jan 3, 2017 at 5:42 PM, Johannes Lundberg <

Wayland update

2016-12-20 Thread Johannes Lundberg
Hi Everyone! We had some progress with Wayland that we'd like to share. Wayland (v1.12.0) Working Weston (v1.12.0) Working (Porting WIP) Weston-clients (installed with wayland/weston port) Working XWayland (run X11 apps in Wayland compositor) Works (maximized window only) if started

Re: increased power consumption lately?

2017-03-28 Thread Johannes Lundberg
Hi Personally I got some acpi-something kernel thread at 100% CPU constant usage. Need to lock CPU freq at lower value otherwise it runs with turboboost all the time. Could it be the same for you? On Tue, 28 Mar 2017 at 20:58, Adrian Chadd wrote: > hiya, > > I've noticed

Re: increased power consumption lately?

2017-04-05 Thread Johannes Lundberg
s are being passed to AcpiNsLookup() ? > > > > -adrian > > > On 3 April 2017 at 03:24, Johannes Lundberg <johal...@gmail.com> wrote: > >> Hi Adrian >> >> The three threads are kernel(acpi_task_{0-2}) and they use ~30% each so >> total 100%

Re: increased power consumption lately?

2017-04-03 Thread Johannes Lundberg
? Can you run > pmcstat -S instructions -T to see what's taking your CPU? > > > > -adrian > > > On 28 March 2017 at 13:36, Johannes Lundberg <johal...@gmail.com> wrote: > > Hi > > > > Personally I got some acpi-something kernel thread at 100% CPU

Re: increased power consumption lately?

2017-04-20 Thread Johannes Lundberg
Thanks Ngie, that was a good one! (I really need to learn dtrace...) Got this among other: AcpiNsLookup:entry PathInfo: \/ _SB_PCI0IGPUGSSE�GSMI\/ _SB_PCI0IGPUGSCI�K p Might be related to: https://bugs.freedesktop.org/show_bug.cgi?id=98501 On Wed, Apr 5, 2017 at 8:15 PM, Ngie Cooper

Re: increased power consumption lately?

2017-04-20 Thread Johannes Lundberg
Seem like a temporary solution on Linux is to disable the interrupt. Can this be done on FreeBSD somehow? On Thu, Apr 20, 2017 at 10:09 AM, Johannes Lundberg <johal...@gmail.com> wrote: > Thanks Ngie, that was a good one! (I really need to learn dtrace...) > > Got t

Re: increased power consumption lately?

2017-04-20 Thread Johannes Lundberg
. On Thu, Apr 20, 2017 at 10:35 AM, Johannes Lundberg <johal...@gmail.com> wrote: > Seem like a temporary solution on Linux is to disable the interrupt. Can > this be done on FreeBSD somehow? > > On Thu, Apr 20, 2017 at 10:09 AM, Johannes Lundberg <johal...@gmail.com> &

Re: Getting PID of socket client

2017-07-09 Thread Johannes Lundberg
oes...@gmx.net> wrote: > On 09.07.2017 11:52, Johannes Lundberg wrote: > > Hi > > > > Yeah I forgot to mention the LOCAL_CREDS. > > It does not return the PID of the client process but i guess it could be > > expanded to include that instead of adding another o

Re: Getting PID of socket client

2017-07-09 Thread Johannes Lundberg
to this or know some other secret API that provides similar functionality, I can see if I can put together a patch for this very useful API. On Sun, Jul 9, 2017 at 10:03 AM, Johannes Lundberg <johal...@gmail.com> wrote: > Hi > > Without altering the client code (i.e. adding send

Re: Getting PID of socket client

2017-07-09 Thread Johannes Lundberg
Hi Yeah I forgot to mention the LOCAL_CREDS. It does not return the PID of the client process but i guess it could be expanded to include that instead of adding another option for that. On Sun, Jul 9, 2017 at 11:47 AM, Stefan Ehmann <shoes...@gmx.net> wrote: > On 09.07.2017 10:03,

Getting PID of socket client

2017-07-09 Thread Johannes Lundberg
Hi Without altering the client code (i.e. adding sendmsg(credentials)), is there anyway of getting the client PID (or path to binary) using the file descriptor returned by accept() on the server side? Similar to Linux's getsockopt with SO_PEERCRED option. Thanks!

objcopy: elf_begin() failed: Invalid argument

2017-07-07 Thread Johannes Lundberg
Hi I'm trying to build the rust crate https://github.com/alexcrichton/backtrace-rs on 12-CURRENT. World is most recent snapshot, kernel is drm-next which have been synced to -HEAD at roughly the same time as world snapshot. backtrace-rs builds a static c library, libbacktrace.a as a part of the

Re: increased power consumption lately?

2017-04-27 Thread Johannes Lundberg
-a > > > On 20 April 2017 at 02:05, Johannes Lundberg <johal...@gmail.com> wrote: > > I found another solution. Modifying the DSDT file by removing > > > > Method (_L06, 0, NotSerialized) // _Lxx: Level-Triggered GPE > >

Re: 2013 Macbook Pro, sound OK in headphones but no sound in internal speakers

2017-04-28 Thread Johannes Lundberg
r I guess). He'd be > willing to give it to me for experiments. > > -m > > > On 28. Apr 2017, at 17:07, Johannes Lundberg <johal...@gmail.com> wrote: > > > > Sorry I meant device.hints. > > > > Its a 2013 MBP 15" Retina. (11,2 I belive) > >

2013 Macbook Pro, sound OK in headphones but no sound in internal speakers

2017-04-28 Thread Johannes Lundberg
Hi As the subject says... Anyone familiar with this? # cat /dev/random > /dev/dsp* only generate noise in the headphones.. /dev/sndstat Installed devices: pcm0: (play) pcm1: (play/rec) pcm2: (play) default pcm3: (play) No devices installed from userspace. dmesg: hdac0: mem

Re: 2013 Macbook Pro, sound OK in headphones but no sound in internal speakers

2017-04-28 Thread Johannes Lundberg
28, 2017 at 1:35 PM, Hans Petter Selasky <h...@selasky.org> wrote: > On 04/28/17 13:30, Johannes Lundberg wrote: > >> Hi >> >> As the subject says... >> >> Anyone familiar with this? >> >> # cat /dev/random > /dev/dsp* >> only gener

Re: 2013 Macbook Pro, sound OK in headphones but no sound in internal speakers

2017-04-28 Thread Johannes Lundberg
:59:22 +0200 > Johannes Lundberg <johal...@gmail.com> wrote: > > > Hi Hans > > > > Thanks for the tip.. However I'm not sure what to do with it.. My > > configuration seems different. > > > > The hda code talks about model and codecs, how does that

Re: 2013 Macbook Pro, sound OK in headphones but no sound in internal speakers

2017-04-28 Thread Johannes Lundberg
ould you try the two > solutions at the end of this thread? > > https://forums.macrumors.com/threads/sound-settings-on-freebsd.1658457/ > > > On 28. Apr 2017, at 15:06, Johannes Lundberg <johal...@gmail.com> wrote: > > Hi Michael > > Thanks! Here's the output > > dev.pcm

Re: 2013 Macbook Pro, sound OK in headphones but no sound in internal speakers

2017-04-28 Thread Johannes Lundberg
mber of the macbook pro are you using? > > -m > > On Fri, 28 Apr 2017 16:48:30 +0200 > Johannes Lundberg <johal...@gmail.com> wrote: > > > Hmm nothing at all.. Only headset gives sound. > > > > Using this now in device.conf: (tried different combination

build src with colored output?

2017-05-16 Thread Johannes Lundberg
Hi I'm sure this has been discussed but my Google-fu couldn't find me any information.. I get colored output when building kernel with a single thread, however, for -j > 1 colored output is disabled. Anyone know what's the reason for this? /Johannes

Re: build src with colored output?

2017-05-16 Thread Johannes Lundberg
Hmm, with the previously mentioned solution, colored output was lost half way through the build... Going to do a single thread clean build later when I have the time to wait and see what the results are. On Tue, May 16, 2017 at 8:42 AM, Johannes Lundberg <johal...@gmail.com> wrote: &

Re: build src with colored output?

2017-05-16 Thread Johannes Lundberg
for parallel builds? On Tue, May 16, 2017 at 8:03 AM, Johannes Lundberg <johal...@gmail.com> wrote: > Hi > > I'm sure this has been discussed but my Google-fu couldn't find me any > information.. > > I get colored output when building kernel with a single thread, however, >

libchromiumcontent (and electron+atom)

2017-06-16 Thread Johannes Lundberg
Hi Following this thread https://lists.freebsd.org/pipermail/freebsd-ports/2015-June/099398.html it seems someone (Tom?) was working on a port for libchromiumcontent. Whatever happened to this effort? libchromiumcontent is required for Electron which is required for Atom. I would love to use

Re: Somethign missing in my environment?

2017-10-10 Thread Johannes Lundberg
Hi Waking up an old thread.. -- snip -- /usr/obj/usr/srcs/head/src/tmp/usr/lib/libgcc_s.so: undefined reference to `__gxx_personality_v0' -- snip -- Did anyone ever find out what caused this? I'm having the exact same problem.. system: Recent 12-current x86_64 src to build: 12-current My

Re: Somethign missing in my environment?

2017-10-10 Thread Johannes Lundberg
Thanks for the pointers. It's weird... I was thinking that the local git repo may have been messed up somewhere but exactly the same source code builds in a jail which is also 12-current. Host system: drm-next tree built in a jail and then installed on host (due to build error on host) drm-next

Update AppleMacbook wiki

2017-10-11 Thread Johannes Lundberg
Hi (cc: koobs because he last updated the wiki page) I have a 2014 Macbook Pro Retina 15" which suffers from ahci msi related timeouts when writing to the internal storage. (sorry don't have the error message now...) The fix for this (afaik) is in boot loader prompt do set hint.ahci.0.msi=0

Advice regarding sync_file implementation

2017-12-10 Thread Johannes Lundberg
Hi I'm working on getting drm-next graphics parts up to Linux 4.11. After current drm-next version drm start using sync_file to synchronize access to shared dma buffers between userland and kernel. sync_file is using anon_inode, both which currently are missing from linuxkpi.

Resume without drm driver results in black screen

2018-05-17 Thread Johannes Lundberg
Hi I revived this old bug https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213501 Considering this also affects all X users using scfb driver it's worth investigating. ___ freebsd-current@freebsd.org mailing list

Re: Lag after resume culprit found

2018-05-17 Thread Johannes Lundberg
On Thu, May 17, 2018 at 7:43 AM, Andriy Gapon <a...@freebsd.org> wrote: > On 17/05/2018 02:07, Johannes Lundberg wrote: > > https://github.com/freebsd/freebsd/commit/66f063557f257baa9c8aeab9f93317 > 1eaa6e1cfa > > x86 cpususpend_handler: call wbinvd after setting suspe

Re: Lag after resume culprit found

2018-05-17 Thread Johannes Lundberg
On Thu, May 17, 2018 at 8:46 AM, Johannes Lundberg <johal...@gmail.com> wrote: > > > On Thu, May 17, 2018 at 7:43 AM, Andriy Gapon <a...@freebsd.org> wrote: > >> On 17/05/2018 02:07, Johannes Lundberg wrote: >> > https://github.com/fr

Re: [RFC] Deprecation and removal of the drm2 driver

2018-05-20 Thread Johannes Lundberg
On Sun, May 20, 2018 at 1:36 PM, Boris Samorodov wrote: > 18.05.2018 20:58, Niclas Zeising пишет: > > > Is there anyone still using the drm2 driver on 12-CURRENT? If so, what > > is preventing you from switching to the port? > > I use base packages and can not use port: >

Re: [RFC] Deprecation and removal of the drm2 driver

2018-05-20 Thread Johannes Lundberg
On Sun, May 20, 2018 at 3:22 PM, Rozhuk Ivan <rozhuk...@gmail.com> wrote: > On Fri, 18 May 2018 21:12:26 +0100 > Johannes Lundberg <johal...@gmail.com> wrote: > > Is Ryzen 2200G integrated graphic supported? > > Not in the current port. I think it should be usa

Lag after resume culprit found

2018-05-16 Thread Johannes Lundberg
https://github.com/freebsd/freebsd/commit/66f063557f257baa9c8aeab9f933171eaa6e1cfa x86 cpususpend_handler: call wbinvd after setting suspend state bits How to test (i915kms) Start X with glxgears Confirm running stable at 60 fps suspend/resume (S3) glxgears is now fluctuating between 10-40 fps.

How to check if not clean shutdown?

2018-05-22 Thread Johannes Lundberg
Hi In the boot process on my test machines I'd like to do different things depending on the last run was a clean shutdown or kernel panic. Where/How can I get this information? Thanks! ___ freebsd-current@freebsd.org mailing list

Re: How to check if not clean shutdown?

2018-05-22 Thread Johannes Lundberg
the quick reply. I guess I can add a dummy file somewhere that I delete in a shutdown hook. > > > On Tue, May 22, 2018 at 7:57 AM, Johannes Lundberg <johal...@gmail.com> > wrote: > >> Hi >> >> In the boot process on my test machines I'd like to do different

Boot USB memstick with MBR (WAS: Re: [RFC] Deprecation and removal of the drm2 driver)

2018-05-23 Thread Johannes Lundberg
On Wed, May 23, 2018 at 12:41 PM, Philip Homburg wrote: > >It's not that hard create a mbr based usb-stick. Far easier than to find a > >CD burner. > > 'Not hard' means > - undocumented. Or at least, if you start with release notes and install > instructions you

Floating point in kernel?

2018-05-26 Thread Johannes Lundberg
Hi The new AMD graphics drivers use floats in kernel space. Upstream Linux code has something like: kernel_fpu_begin(); ... kernel_fpu_end(); Do we have similar functions to save/restore FPU registers? Cheers ___ freebsd-current@freebsd.org mailing

Re: Floating point in kernel?

2018-05-26 Thread Johannes Lundberg
On Sat, May 26, 2018 at 11:11 AM Konstantin Belousov <kostik...@gmail.com> wrote: > On Sat, May 26, 2018 at 10:59:50AM +0100, Johannes Lundberg wrote: > > Hi > > > > The new AMD graphics drivers use floats in kernel space. > > Upstream Linux code has som

Re: Boot USB memstick with MBR (WAS: Re: [RFC] Deprecation and removal of the drm2 driver)

2018-05-24 Thread Johannes Lundberg
On Thu, May 24, 2018 at 2:11 PM Ed Maste wrote: > On 23 May 2018 at 17:51, Philip Homburg wrote: > > I tried both FreeBSD-11.2-BETA2-amd64-bootonly.iso.xz and > > FreeBSD-11.2-BETA2-amd64-mini-memstick.img.xz on a Dell PowerEdge 2950 > > BIOS

Re: [RFC] Deprecation and removal of the drm2 driver

2018-05-18 Thread Johannes Lundberg
On Fri, May 18, 2018 at 9:22 PM, Ben Widawsky <b...@bwidawsk.net> wrote: > On 18-05-18 14:15:03, Warner Losh wrote: > > On Fri, May 18, 2018 at 2:12 PM, Johannes Lundberg <johal...@gmail.com> > > wrote: > > > > > > > > > > > On Fri,

Re: [RFC] Deprecation and removal of the drm2 driver

2018-05-18 Thread Johannes Lundberg
On Fri, May 18, 2018 at 9:03 PM, Warner Losh wrote: > On Fri, May 18, 2018 at 1:30 PM, Steve Kargl < > s...@troutmask.apl.washington.edu> wrote: > > > On Fri, May 18, 2018 at 09:14:24PM +0200, Andreas Nilsson wrote: > > > On Fri, May 18, 2018, 20:00 Niclas Zeising

Re: [RFC] Deprecation and removal of the drm2 driver

2018-05-22 Thread Johannes Lundberg
On Mon, May 21, 2018 at 23:50 Steve Kargl wrote: > On Mon, May 21, 2018 at 03:20:49PM -0700, K. Macy wrote: > > > > > > I just ask. > > > Or why not include drm-next to base svn repo and add some > > > option to make.conf to swith drm2/dem-next ? > > > > Even

Re: Ryzen public erratas

2018-06-13 Thread Johannes Lundberg
Konstantin Belousov writes: > Today I noted that AMD published the public errata document for Ryzens, > https://developer.amd.com/wp-content/resources/55449_1.12.pdf > > Some of the issues listed there looks quite relevant to the potential > hangs that some people still experience with the

Re: evdev + ps/2 dell touchpad weirdness

2018-05-31 Thread Johannes Lundberg
On Thu, May 31, 2018 at 8:45 AM Johannes Lundberg wrote: > Hi > > I could swear this was working a couple of months ago but since installing > new kernel+world a couple of times and revisiting using Weston or X with > udev+evdev+libinput I can't get all the events. > >

Re: [RFC] Deprecation and removal of the drm2 driver

2018-05-31 Thread Johannes Lundberg
On Wed, May 30, 2018 at 10:57 PM O. Hartmann wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > Am Thu, 24 May 2018 09:10:10 -0700 (PDT) > "Rodney W. Grimes" schrieb: > > > -- Start of PGP signed section. > > > On Thu, May 24, 2018 at 08:22:12AM -0700, Rodney W. Grimes wrote: > > >

evdev + ps/2 dell touchpad weirdness

2018-05-31 Thread Johannes Lundberg
Hi I could swear this was working a couple of months ago but since installing new kernel+world a couple of times and revisiting using Weston or X with udev+evdev+libinput I can't get all the events. Using libinput-debug-events on my dell laptop touchpad (psm driver with hw.psm.synaptics=1) I get

Re: evdev + ps/2 dell touchpad weirdness

2018-05-31 Thread Johannes Lundberg
On Thu, May 31, 2018 at 9:32 AM Johannes Lundberg wrote: > > > On Thu, May 31, 2018 at 8:45 AM Johannes Lundberg > wrote: > >> Hi >> >> I could swear this was working a couple of months ago but since >> installing new kernel+world a couple of times and re

Re: evdev + ps/2 dell touchpad weirdness

2018-05-31 Thread Johannes Lundberg
On Thu, May 31, 2018 at 1:11 PM Hans Petter Selasky wrote: > On 05/31/18 13:39, Johannes Lundberg wrote: > > EV_REL is for pushing events. For evdev_push_rel(), use REL_{axis}. > > Does this work: > https://svnweb.freebsd.org/changeset/base/334422 Perfect. Tha

Re: [RFC] Deprecation and removal of the drm2 driver

2018-05-31 Thread Johannes Lundberg
; > On Thu, May 31, 2018 at 10:23 AM, Daniel Eischen > wrote: > >> On Thu, 31 May 2018, Konstantin Belousov wrote: >> >> On Thu, May 31, 2018 at 08:34:44AM +0100, Johannes Lundberg wrote: >>> >>> We're not replacing anything. We are moving the older drm1

Re: [RFC] Deprecation and removal of the drm2 driver

2018-06-01 Thread Johannes Lundberg
On Thu, May 31, 2018 at 11:34 PM Oliver Pinter < oliver.pin...@hardenedbsd.org> wrote: > > > On Thursday, May 31, 2018, Johannes Lundberg wrote: > >> On Thu, May 31, 2018 at 4:34 PM Joe Maloney >> wrote: >> >> > I personally wish that more driver

Re: How to run drm-next-kmod on r334511

2018-06-02 Thread Johannes Lundberg
Masachika ISHIZUKA writes: > Hi. > > When I updated to r334511, drm-next-kmod is not working with > the message '[drm:fw_domain_wait_ack] render: timed out waiting > for forcewake ack request.'. > > drm-next-kmod was working fine on r333704. > > My CPU is pentium G4560(kaby lake). Hi

Re: Periodical interrupt storm when playing game with USB keyboard

2018-01-21 Thread Johannes Lundberg
Sending the same again, this time cc the list. On Sun, Jan 21, 2018 at 7:34 PM, Hans Petter Selasky <h...@selasky.org> wrote: > On 01/21/18 16:41, Johannes Lundberg wrote: > >> Hi >> >> Finally I found the root to the problem that's been having me puzzled for >

Re: Periodical interrupt storm when playing game with USB keyboard

2018-01-21 Thread Johannes Lundberg
On Sun, Jan 21, 2018 at 8:35 PM, Johannes Lundberg <johal...@gmail.com> wrote: > Sending the same again, this time cc the list. > > > On Sun, Jan 21, 2018 at 7:34 PM, Hans Petter Selasky <h...@selasky.org> > wrote: > >> On 01/21/18 16:41, Johannes Lundberg wrot

Re: Periodical interrupt storm when playing game with USB keyboard

2018-01-21 Thread Johannes Lundberg
On Sun, Jan 21, 2018 at 9:22 PM, Ian Lepore <i...@freebsd.org> wrote: > On Sun, 2018-01-21 at 22:07 +0100, Hans Petter Selasky wrote: > > On 01/21/18 21:45, Johannes Lundberg wrote: > > > > > > What does kern.eventtimer.periodic do? The sysctl description

Re: Periodical interrupt storm when playing game with USB keyboard

2018-01-22 Thread Johannes Lundberg
On Mon, Jan 22, 2018 at 8:23 AM, Hans Petter Selasky <h...@selasky.org> wrote: > On 01/21/18 23:57, Johannes Lundberg wrote: > >> Thanks for the further explanation. >> I curious as to where the problem might be though.. It is the game's >> binary-only Linux executa

Re: Periodical interrupt storm when playing game with USB keyboard

2018-01-23 Thread Johannes Lundberg
Hi all Some quick dtracing with play causing lag, vs play not causing lag (that is not hold down any key on a usb keyboard for too long). # dtrace -n 'profile-997hz /arg0/ { @[func(arg0)]=count(); }' Lag version -- snip -- linuxkpi.ko`idr_find 7

Makefile and nested variables question

2018-02-09 Thread Johannes Lundberg
Hi Is there some way to use nested variables in the dependency line like so: ${OBJS}: ${${.TARGET:S/$/_DEPS/}} In my case I get nothing.. Cheers! ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current

Recent world+kernel has broken Linux 3D apps?

2018-02-20 Thread Johannes Lundberg
Before rebuilding world my system was running Linux games fine with a couple of months old world/kernel and drm-next-kmod. Since updating world+kernel last week all Linux 3D apps fail (native binaries like glxgears and supertuxkart works fine). linux-c6/c7, intel/modesetting, does no difference

Re: Recent world+kernel has broken Linux 3D apps?

2018-02-20 Thread Johannes Lundberg
On Tue, Feb 20, 2018 at 12:57 PM, Hans Petter Selasky <h...@selasky.org> wrote: > On 02/20/18 12:39, Johannes Lundberg wrote: > >> Before rebuilding world my system was running Linux games fine with a >> couple of months old world/kernel and drm-next-kmod. >> >&

Re: Recent world+kernel has broken Linux 3D apps?

2018-02-20 Thread Johannes Lundberg
On Tue, Feb 20, 2018 at 1:39 PM, Hans Petter Selasky <h...@selasky.org> wrote: > On 02/20/18 14:03, Johannes Lundberg wrote: > >> On Tue, Feb 20, 2018 at 12:57 PM, Hans Petter Selasky <h...@selasky.org> >> wrote: >> >> On 02/20/18 12:39, Johannes Lundberg

acpiconf -s 3 does not call acpi sleep event handlers

2018-08-01 Thread Johannes Lundberg
Hi As the title says, callbacks registered with EVENTHANDLER_REGISTER(acpi_sleep_event, does not get called when calling acpiconf -s 3. They do however, when suspending with lid or sleep button. Is this deliberate or an oversight? Cheers ___

Re: Linux process causes kernel panic

2018-08-03 Thread Johannes Lundberg
On Fri, Aug 3, 2018 at 9:34 PM Oliver Pinter wrote: > Hi! > > On 8/3/18, Johannes Lundberg wrote: > > Hi > > > > After install new kernel+world built from today's checkout I keep getting > > the same crash over and over. Never had this problem before. The pre

Re: Linux process causes kernel panic

2018-08-03 Thread Johannes Lundberg
On Fri, Aug 3, 2018 at 9:43 PM Konstantin Belousov wrote: > On Fri, Aug 03, 2018 at 09:26:08PM +0100, Johannes Lundberg wrote: > > Hi > > > > After install new kernel+world built from today's checkout I keep getting > > the same crash over and over. Never had this p

Re: Linux process causes kernel panic

2018-08-04 Thread Johannes Lundberg
On Fri, Aug 3, 2018 at 9:43 PM Konstantin Belousov wrote: > On Fri, Aug 03, 2018 at 09:26:08PM +0100, Johannes Lundberg wrote: > > Hi > > > > After install new kernel+world built from today's checkout I keep getting > > the same crash over and over. Never had this p

IOMMU for GPUs

2018-08-05 Thread Johannes Lundberg
Hi First I have to say I don't know much when it comes to virtual GPUs and IOMMU. I'm trying to figure out what we have and what is missing in regards to sharing the GPU to virtual guests on Intel and AMD and things like the amdkfd driver (for Radeon open compute). Looking at the state of IOMMU

Re: acpiconf -s 3 does not call acpi sleep event handlers

2018-08-01 Thread Johannes Lundberg
acpiconf (but they do when suspending via lid or sleep button). I think one would expect the same behavior when suspending via command line or physical switch. > > Best, > Conrad > > On Wed, Aug 1, 2018 at 2:48 PM, Johannes Lundberg > wrote: > > > > > > On We

Re: acpiconf -s 3 does not call acpi sleep event handlers

2018-08-01 Thread Johannes Lundberg
return ACPI_SUCCESS(AcpiOsExecute(OSL_NOTIFY_HANDLER, + acpi_invoke_sleep_eventhandler, )) ? 0 : ENXIO; device_printf(sc->acpi_dev, "power off via acpi ioctl not supported\n"); error = EOPNOTSUPP; break; > Best, > Conrad > > On Wed,

Re: acpiconf -s 3 does not call acpi sleep event handlers

2018-08-01 Thread Johannes Lundberg
On Thu, Aug 2, 2018 at 06:20 Andriy Gapon wrote: > On 02/08/2018 01:17, Conrad Meyer wrote: > > I don't understand the concern. There is only one listener to the > > event and it just invokes ReqSleepState, which is responsible for > > performing all suspend behavior. The behavior is identical

Early kernel boot log?

2018-08-09 Thread Johannes Lundberg
Hi So I believe the reason I'm not seeing and printf output in dmesg is that it is too early in some functions. For example machdep.s getmemsize() add_efi_map_entries() etc However, these functions do contain debug printf statements so if they're logging to somewhere, where/how can I see

Re: Early kernel boot log?

2018-08-09 Thread Johannes Lundberg
On Thu, Aug 9, 2018 at 9:29 AM Konstantin Belousov wrote: > On Thu, Aug 09, 2018 at 08:54:31AM +0100, Johannes Lundberg wrote: > > Hi > > > > So I believe the reason I'm not seeing and printf output in dmesg is that > > it is too early in some functions. &g

Linux process causes kernel panic

2018-08-03 Thread Johannes Lundberg
Hi After install new kernel+world built from today's checkout I keep getting the same crash over and over. Never had this problem before. The previous kernel was from 3 weeks ago. Looks familiar to anyone? Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual

Unkillable linux processes

2018-08-07 Thread Johannes Lundberg
Hi I seem to have some unkillable Linux processes... This is on my AMD Ryzen, the exact same installation on my Broadwell laptop does not show this behavior. At the second top output, the three remaining processes' cpu usage is fluctuating, just as when they are running normally. Kernel is from

Re: Unkillable linux processes

2018-08-07 Thread Johannes Lundberg
On Tue, Aug 7, 2018 at 21:16 Konstantin Belousov wrote: > On Tue, Aug 07, 2018 at 08:54:39PM +0100, Johannes Lundberg wrote: > > Hi > > > > I seem to have some unkillable Linux processes... > > This is on my AMD Ryzen, the exact same installation on my Broadwell

Re: Make drm drivers use MTRR write-combine

2018-08-16 Thread Johannes Lundberg
On Tue, Aug 14, 2018 at 9:54 PM Johannes Lundberg wrote: > > > On Tue, Aug 14, 2018 at 3:39 PM Konstantin Belousov > wrote: > >> On Tue, Aug 14, 2018 at 08:55:36AM -0500, Eric van Gyzen wrote: >> > On 8/14/18 4:12 AM, Johannes Lundberg wrote: >> > > Hi

Make drm drivers use MTRR write-combine

2018-08-14 Thread Johannes Lundberg
Hi Something that we have seen for a long time on FreeBSD is the boot message Failed to add WC MTRR for [0xd000-0xdfff]: -22; performance may suffer Taking a closer look at this with memcontrol I can see that the 256 MB region that DRM wants to set as WC is already covered by this entry

Re: Make drm drivers use MTRR write-combine

2018-08-14 Thread Johannes Lundberg
On Tue, Aug 14, 2018 at 3:39 PM Konstantin Belousov wrote: > On Tue, Aug 14, 2018 at 08:55:36AM -0500, Eric van Gyzen wrote: > > On 8/14/18 4:12 AM, Johannes Lundberg wrote: > > > Hi > > > > > > Something that we have seen for a long time on FreeBSD is t

Need to reserve Intel graphics memory in early boot

2018-08-07 Thread Johannes Lundberg
Hi I'm working on getting the graphics drivers up to Linux 4.16 version and there has been a patch for Intel gpus that require some code in early boot. The problem is that no all bios report the memory allocated for the gpu, called stolen memory, correctly so on some configurations the OS can

Re: Linux process causes kernel panic

2018-08-06 Thread Johannes Lundberg
On Sat, Aug 4, 2018 at 3:22 PM Konstantin Belousov wrote: > On Sat, Aug 04, 2018 at 01:12:17PM +0100, Johannes Lundberg wrote: > > No panic over night with that tunable so it seems you're on the right > > track. > > Please try this, on top of r337316. > Been running

priority of paths to kernel modules?

2018-08-24 Thread Johannes Lundberg
Hi Since we now stuck with drm2 in base for a few more years I have an idea would make things much smoother for many of us, hugely reduce the amount of bug reports we get and I think would be beneficial in other ways too. Current I run with something like this in /boot/loader.conf

Re: priority of paths to kernel modules?

2018-08-24 Thread Johannes Lundberg
for the clarification. That's a good compromise I guess. Still, regardless of drm, aren't modules in overlay folders suppose to have higher priority than those in the kernel folder? > > > > On Fri, Aug 24, 2018 at 01:06 Johannes Lundberg > wrote: > >> Hi >> >>

Re: priority of paths to kernel modules?

2018-08-24 Thread Johannes Lundberg
On Fri, Aug 24, 2018 at 5:20 PM Warner Losh wrote: > > > On Fri, Aug 24, 2018 at 8:13 AM Rodney W. Grimes < > freebsd-...@pdx.rh.cn85.dnsmgr.net> wrote: > >> > On Fri, Aug 24, 2018 at 3:22 AM Johannes Lundberg >> wrote: >> > > >> >

Re: priority of paths to kernel modules?

2018-08-24 Thread Johannes Lundberg
On Fri, Aug 24, 2018 at 5:43 PM Warner Losh wrote: > > > On Fri, Aug 24, 2018 at 9:27 AM Johannes Lundberg > wrote: > >> There's some tricks we can do here. >>> >>> First, I talked to Kyle yesterday about augmenting the Lua loader to >>> ha

Re: drm / drm2 removal in 12

2018-08-25 Thread Johannes Lundberg
Hi Owen I'm truly sorry you feel this way about our work. At first I was thinking "I'm not going to feed the troll" but after giving what you're writing some more thought it seems maybe you have misunderstood some things that I want to clarify to make sure there's no misunderstanding by you or

Re: drm / drm2 removal in 12

2018-08-25 Thread Johannes Lundberg
; cannot? > > Those 30,000 ports many of them bring bugs with them because of this > Linuxkpi stuff. Just recently there was a user who said google earth > doesn't work the answer was it doesn't work and that's that. > > They get ported and then get dropped so while the ports tree is

Re: Suspend, resume, UEFI, CSM, drm-stable-kmod and drm-next-kmod with Radeon HD 7570M

2018-08-22 Thread Johannes Lundberg
On Wed, Aug 22, 2018 at 6:00 PM Graham Perrin wrote: > On 22/08/2018 17:50, Pete Wright wrote: > > not sure this will address this specific issue - but have you tested > setting this sysctl knob and seeing if that fixes your resume issues: > > hw.acpi.reset_video=1 > > Thanks, I'll be away for

Re: atomic changes break drm-next-kmod?

2018-07-06 Thread Johannes Lundberg
On Fri, Jul 6, 2018 at 9:49 AM Konstantin Belousov wrote: > On Fri, Jul 06, 2018 at 09:52:24AM +0200, Niclas Zeising wrote: > > On 07/06/18 00:02, Warner Losh wrote: > > > > > > > > > On Thu, Jul 5, 2018 at 1:44 PM, John Baldwin > > > wrote: > > > > > > On 7/5/18

Periodical interrupt storm when playing game with USB keyboard

2018-01-21 Thread Johannes Lundberg
Hi Finally I found the root to the problem that's been having me puzzled for the last week. I started playing UT2004 on my laptop while away from home. Worked perfectly. When I'm home and connect external display+mouse/keyboard, I get weird random lag. It is intr process that goes up to 100%

Re: Periodical interrupt storm when playing game with USB keyboard

2018-01-24 Thread Johannes Lundberg
On Wed, Jan 24, 2018 at 12:06 PM, Hans Petter Selasky wrote: > Hi, > > Can you test and review: > > https://reviews.freebsd.org/D14027 > > It seems better. Not as many lock_delays and lag but there still is some lag when holding down a key for too long.

  1   2   >