From: Thomas Zimmermann Subject: Re: potential regression in drm/mgag200 Date: Wed, 4 Sep 2019 14:01:38 +0200 Message-ID: References: <20190904064907.fxzpknmqhfozkkwj@linux-r8p5> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1947490863==" Return-path: Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6D4268918D for ; Wed, 4 Sep 2019 12:01:44 +0000 (UTC) In-Reply-To: <20190904064907.fxzpknmqhfozkkwj@linux-r8p5> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Davidlohr Bueso Cc: airlied@redhat.com, dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============1947490863== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jSO8uOUuxq4Yr0B9w3k2KPAtgM89BK23F" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --jSO8uOUuxq4Yr0B9w3k2KPAtgM89BK23F Content-Type: multipart/mixed; boundary="r5zIdMQr7SvyHsWq3vgxyhZBZ5dOfICqJ"; protected-headers="v1" From: Thomas Zimmermann To: Davidlohr Bueso Cc: airlied@redhat.com, dri-devel@lists.freedesktop.org Message-ID: Subject: Re: potential regression in drm/mgag200 References: <20190904064907.fxzpknmqhfozkkwj@linux-r8p5> In-Reply-To: <20190904064907.fxzpknmqhfozkkwj@linux-r8p5> --r5zIdMQr7SvyHsWq3vgxyhZBZ5dOfICqJ Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Hi Am 04.09.19 um 08:49 schrieb Davidlohr Bueso: > Hi, >=20 > While doing some changes to x86's pat code and thus having 'debugpat', = I > noticed > some weird behavior in a server running linux-next as of -- yes, > reverting does 'fix' > the issue: >=20 > 90f479ae51a (drm/mgag200: Replace struct mga_fbdev with generic > framebuffer emulation) >=20 > Where the following splat is seen over and over endlessly for the same > range: >=20 > x86/PAT: Overlap at 0xd0000000-0xd1000000 > x86/PAT: reserve_memtype added [mem 0xd0000000-0xd02fffff], track > write-combining, req write-combining, ret write-combining > x86/PAT: free_memtype request [mem 0xd0000000-0xd02fffff] >=20 > And all these are doing ioremap from drm_fb_helper_dirty_work(): >=20 > [=C2=A0 114.330825]=C2=A0 reserve_memtype+0x1b0/0x410 > [=C2=A0 114.330829]=C2=A0 ? ttm_bo_kmap+0x1d7/0x270 [ttm] > [=C2=A0 114.330830]=C2=A0 __ioremap_caller.constprop.14+0xf6/0x300 > [=C2=A0 114.330832]=C2=A0 ? soft_cursor+0x1f9/0x220 > [=C2=A0 114.330835]=C2=A0 ttm_bo_kmap+0x1d7/0x270 [ttm] > [=C2=A0 114.330838]=C2=A0 ? ttm_bo_del_sub_from_lru+0x29/0x40 [ttm] > [=C2=A0 114.330841]=C2=A0 drm_gem_vram_kmap+0x54/0x70 [drm_vram_helper]= > [=C2=A0 114.330842]=C2=A0 drm_gem_vram_object_vmap+0x23/0x40 [drm_vram_= helper] > [=C2=A0 114.330853]=C2=A0 drm_gem_vmap+0x1f/0x60 [drm] > [=C2=A0 114.477697]=C2=A0 drm_client_buffer_vmap+0x1d/0x30 [drm] > [=C2=A0 114.477703]=C2=A0 drm_fb_helper_dirty_work+0x92/0x180 [drm_kms_= helper] > [=C2=A0 114.477706]=C2=A0 process_one_work+0x1f4/0x3e0 > [=C2=A0 114.477707]=C2=A0 worker_thread+0x2d/0x3e0 >=20 > Before, the same range was also added, but only once, and fwiw it was > the same either > with 24 or 32 bpp. >=20 > Any thoughts? Thanks for reporting. The original code kept around memory mappings for a longer time, while the new code remapped frequently. I've just submitted a patch set that restores the old behavior. [1] Fixes the problem on my test machine. Best regards Thomas [1] https://patchwork.freedesktop.org/series/66210/ >=20 > Thanks, > Davidlohr --=20 Thomas Zimmermann Graphics Driver Developer SUSE Linux GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany GF: Felix Imend=C3=B6rffer, Mary Higgins, Sri Rasiah HRB 21284 (AG N=C3=BCrnberg) --r5zIdMQr7SvyHsWq3vgxyhZBZ5dOfICqJ-- --jSO8uOUuxq4Yr0B9w3k2KPAtgM89BK23F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEchf7rIzpz2NEoWjlaA3BHVMLeiMFAl1vp6IACgkQaA3BHVML eiOv4wf/aVidfnLf+LIWnZ3J/vV0nyLf1KmcY+8N9orJOloO1N+GoT9RhMw15Caw M0uCuFRT9g+p8S5GJAYQSpvjGnlU0PxK9uyX5ShoQ/BIx0Gzy0ZDXPkG9Ssc8W8f /YdsWrrTgrgBvgXBg4MohMoAZLRVIAl/4TgxyKzmgjLeSoAjqCZ5LVGvSMKclxoy gfsHFJ/KQMMEu22oEqxtnYcXeAxmQRN5SwZqBEl3uE0FQaKyXFk7vyMTULaA+wEU Ry+62oXoyjtyOBcxCfF7O/X5qwKlMD8niFuRaO2//dS58Jlh2BsECh7BJzfjBjnl mp9bsMnfoegRAh9utc3okYfs68wcEg== =zN5/ -----END PGP SIGNATURE----- --jSO8uOUuxq4Yr0B9w3k2KPAtgM89BK23F-- --===============1947490863== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============1947490863==--