Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Mar 2020 10:28:13 +0900 (JST)
From:      Mori Hiroki <yamori813@yahoo.co.jp>
To:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   log at access to framebuffer
Message-ID:  <1009057156.3183549.1584322093930.JavaMail.yahoo@mail.yahoo.co.jp>
References:  <1009057156.3183549.1584322093930.JavaMail.yahoo.ref@mail.yahoo.co.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi

I write data to framebuffer then I get this log on console.

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


I want delete this log. I make patch to fb. Is this correct ?

diff --git a/sys/dev/fb/creator.c b/sys/dev/fb/creator.c
index 2fd0bd10597..0f8d997a887 100644
--- a/sys/dev/fb/creator.c
+++ b/sys/dev/fb/creator.c
@@ -184,7 +184,7 @@static d_mmap_t creator_fb_mmap;
=C2=A0
=C2=A0static struct cdevsw creator_fb_devsw =3D {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 .d_version =3D=C2=A0 =C2=A0 D_VERSION,
- =C2=A0 =C2=A0 =C2=A0 .d_flags =3D=C2=A0 =C2=A0 =C2=A0 D_NEEDGIANT,
+=C2=A0 =C2=A0 =C2=A0 .d_flags =3D=C2=A0 =C2=A0 =C2=A0 D_MEM | D_NEEDGIANT,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 .d_open =3D =C2=A0 =C2=A0 =C2=A0 creator_fb_ope=
n,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 .d_close =3D=C2=A0 =C2=A0 =C2=A0 creator_fb_clo=
se,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 .d_ioctl =3D=C2=A0 =C2=A0 =C2=A0 creator_fb_ioc=
tl,
diff --git a/sys/dev/fb/fb.c b/sys/dev/fb/fb.c
index 2f821c8b65f..98bf7a4e58e 100644
--- a/sys/dev/fb/fb.c
+++ b/sys/dev/fb/fb.c
@@ -365,7 +365,7 @@static d_mmap_t =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 fbmmap;
=C2=A0
=C2=A0static struct cdevsw fb_cdevsw =3D {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 .d_version =3D=C2=A0 =C2=A0 D_VERSION,
- =C2=A0 =C2=A0 =C2=A0 .d_flags =3D=C2=A0 =C2=A0 =C2=A0 D_NEEDGIANT,
+=C2=A0 =C2=A0 =C2=A0 .d_flags =3D=C2=A0 =C2=A0 =C2=A0 D_MEM | D_NEEDGIANT,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 .d_open =3D =C2=A0 =C2=A0 =C2=A0 fbopen,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 .d_close =3D=C2=A0 =C2=A0 =C2=A0 fbclose,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 .d_read =3D =C2=A0 =C2=A0 =C2=A0 fbread,
diff --git a/sys/dev/fb/fbd.c b/sys/dev/fb/fbd.c
index 02b8eb3ada4..8298d95def3 100644
--- a/sys/dev/fb/fbd.c
+++ b/sys/dev/fb/fbd.c
@@ -84,7 +84,7 @@static d_mmap_t =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 fb_mmap;
=C2=A0
=C2=A0static struct cdevsw fb_cdevsw =3D {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 .d_version =3D=C2=A0 =C2=A0 D_VERSION,
- =C2=A0 =C2=A0 =C2=A0 .d_flags =3D=C2=A0 =C2=A0 =C2=A0 D_NEEDGIANT,
+=C2=A0 =C2=A0 =C2=A0 .d_flags =3D=C2=A0 =C2=A0 =C2=A0 D_MEM | D_NEEDGIANT,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 .d_open =3D =C2=A0 =C2=A0 =C2=A0 fb_open,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 .d_close =3D=C2=A0 =C2=A0 =C2=A0 fb_close,




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