From owner-freebsd-arm@freebsd.org Mon Mar 16 02:22:11 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A495C27ED91 for ; Mon, 16 Mar 2020 02:22:11 +0000 (UTC) (envelope-from jfc@mit.edu) Received: from outgoing-exchange-7.mit.edu (outgoing-exchange-7.mit.edu [18.9.28.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.outgoing-exchange.mit.edu", Issuer "InCommon RSA Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48gg6n2MPrz447B for ; Mon, 16 Mar 2020 02:22:08 +0000 (UTC) (envelope-from jfc@mit.edu) Received: from w92exedge3.exchange.mit.edu (W92EXEDGE3.EXCHANGE.MIT.EDU [18.7.73.15]) by outgoing-exchange-7.mit.edu (8.14.7/8.12.4) with ESMTP id 02G2Lpuk020540; Sun, 15 Mar 2020 22:22:05 -0400 Received: from OC11EXPO29.exchange.mit.edu (18.9.4.102) by w92exedge3.exchange.mit.edu (18.7.73.15) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Sun, 15 Mar 2020 22:21:50 -0400 Received: from OC11EXPO29.exchange.mit.edu (18.9.4.102) by oc11expo29.exchange.mit.edu (18.9.4.102) with Microsoft SMTP Server (TLS) id 15.0.1365.1; Sun, 15 Mar 2020 22:21:57 -0400 Received: from OC11EXPO29.exchange.mit.edu ([18.9.4.102]) by oc11expo29.exchange.mit.edu ([18.9.4.102]) with mapi id 15.00.1365.000; Sun, 15 Mar 2020 22:21:57 -0400 From: John F Carr To: Mori Hiroki CC: "freebsd-arm@freebsd.org" Subject: Re: log at access to framebuffer Thread-Topic: log at access to framebuffer Thread-Index: AQHV+zI5khKcwqe+S0CFC8D/H4NhMahKv/6A Date: Mon, 16 Mar 2020 02:21:57 +0000 Message-ID: <4809ABAB-F415-4D06-A36F-8F4E2D6F8FC4@exchange.mit.edu> References: <1009057156.3183549.1584322093930.JavaMail.yahoo.ref@mail.yahoo.co.jp> <1009057156.3183549.1584322093930.JavaMail.yahoo@mail.yahoo.co.jp> In-Reply-To: <1009057156.3183549.1584322093930.JavaMail.yahoo@mail.yahoo.co.jp> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [108.7.221.50] Content-Type: text/plain; charset="us-ascii" Content-ID: <4E99600A5BA699469C9B380817E6EAB6@exchange.mit.edu> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Rspamd-Queue-Id: 48gg6n2MPrz447B X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of jfc@mit.edu designates 18.9.28.58 as permitted sender) smtp.mailfrom=jfc@mit.edu X-Spamd-Result: default: False [-3.44 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; HAS_XOIP(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:18.9.28.0/24]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[mit.edu]; NEURAL_HAM_MEDIUM(-0.97)[-0.968,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[58.28.9.18.list.dnswl.org : 127.0.11.2]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-0.97)[ipnet: 18.9.0.0/16(-4.78), asn: 3(-0.03), country: US(-0.05)]; FREEMAIL_TO(0.00)[yahoo.co.jp]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:3, ipnet:18.9.0.0/16, country:US]; RCVD_TLS_LAST(0.00)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Mar 2020 02:22:11 -0000 Setting D_MEM hides the message but does not fix the underlying problem. E= ach page has a byte of metadata saying how cacheable it is. The cacheabili= ty reported by the device driver is inconsistent with the cacheability in t= he page tables. creator.c is not used on ARM. It is for Sun "Creator" graphics on machines= that are no longer supported after FreeBSD 12. > On Mar 15, 2020, at 21:28 , Mori Hiroki wrote: >=20 > Hi >=20 > I write data to framebuffer then I get this log on console. >=20 > WARNING: Device driver fb has set "memattr" inconsistently (drv 0 pmap 3)= . >=20 >=20 > I want delete this log. I make patch to fb. Is this correct ? >=20 > 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; > =20 > static struct cdevsw creator_fb_devsw =3D { > .d_version =3D D_VERSION, > - .d_flags =3D D_NEEDGIANT, > + .d_flags =3D D_MEM | D_NEEDGIANT, > .d_open =3D creator_fb_open, > .d_close =3D creator_fb_close, > .d_ioctl =3D creator_fb_ioctl, > 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 fbmmap; > =20 > static struct cdevsw fb_cdevsw =3D { > .d_version =3D D_VERSION, > - .d_flags =3D D_NEEDGIANT, > + .d_flags =3D D_MEM | D_NEEDGIANT, > .d_open =3D fbopen, > .d_close =3D fbclose, > .d_read =3D 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 fb_mmap; > =20 > static struct cdevsw fb_cdevsw =3D { > .d_version =3D D_VERSION, > - .d_flags =3D D_NEEDGIANT, > + .d_flags =3D D_MEM | D_NEEDGIANT, > .d_open =3D fb_open, > .d_close =3D fb_close, >=20 > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"