Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jun 2019 15:33:39 -0600
From:      Sergey Manucharian <sm@ara-ler.com>
To:        Oleksandr Tymoshenko <gonzo@bluezbox.com>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: Writing to /dev/fb0
Message-ID:  <20190624213339.GM2903@eldorado>
In-Reply-To: <20190621193419.GG2903@eldorado>
References:  <CAFgkNAkVHccLg15aq9RY5CaT1qV=Bku2KpqOZiLjaNhJJF%2B8=A@mail.gmail.com> <20190621170845.GD2903@eldorado> <20190621171343.GE2903@eldorado> <CAFgkNAmw3cyhacK2RT2bHn=pNjRTE39o=bAR7aeuJPRb6W1dyQ@mail.gmail.com> <20190621190502.GA35692@bluezbox.com> <20190621193419.GG2903@eldorado>

next in thread | previous in thread | raw e-mail | index | archive | help
Excerpts from Sergey Manucharian's message from Fri 21-Jun-19 13:34:
> Excerpts from Oleksandr Tymoshenko's message from Fri 21-Jun-19 12:05:
> > You probably can convert this source file from my tslib branch to
> > standalone app:
> > 
> > https://github.com/gonzoua/tslib/blob/freebsd/tests/fbutils-bsd.c
> > 
> I added "main" and it draws a red rectangle!
> 
> int main (int argc, char** argv)
> {       
>         
>         open_framebuffer();
>         setcolor (4, 0xff0000);
>         rect(100, 200, 200, 300, 4);
>         close_framebuffer();
> }

As I already mentioned, these messages

  WARNING: Device driver fb has set "memattr" inconsistently (drv 0 pmap 3).

flood console. So, the actual performance is very poor because of that, 
thus the framebuffer is practically unusable.

The message comes from:

  sys/vm/device_pager.c

I tried to understand the purpose of the corresponding commit:

https://lists.freebsd.org/pipermail/svn-src-head/2016-May/085608.html
https://reviews.freebsd.org/D6149

However, I don't understand how to eliminate that, how to deal with the
"memattr". Disabling the message itself in "sys/vm/device_pager.c"
significantly improves the performance.

Would anybody advise please?

Thanks,
Ϟϻ




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190624213339.GM2903>