Skip to contentSkip to conversation

amd-staging-drm-next, CIK apu, [TTM] Erroneous page count. Leaking pages. [BISECTED]

DISCUSSION Przemek Socha 2 participants 3 messages Apr 11, 2019 1 message not in the archive

lore
Share & tools
lore

Przemek Socha

author Reviewed-by Michel Dänzer Reviewed-by Junwei Zhang Reviewed-by Huang Rui
#0 lore raw

Hi All,
after today's sync with amd-staging-drm-next branch I have problems with my Mullins APU Netbook.
Kernel log is flooded with "[TTM] Erroneous page count. Leaking pages." message.

Bisected, and it seems that "drm/ttm: fix start page for huge page check in ttm_put_pages()" commit is causing this.

git bisect log:
git bisect start
# good: [c2af9f9e84183a4dbcb53a74abbe3362dc181682] drm/amd/display: fix cursor black issue
git bisect good c2af9f9e84183a4dbcb53a74abbe3362dc181682
# bad: [b07c394a327fc9e435ee03288584c111fa73d963] drm/amd/display: fix is odm head pipe logic
git bisect bad b07c394a327fc9e435ee03288584c111fa73d963
# bad: [367fa96ad66fef31bf73916cf4949c475f42563f] drm/amd/display: use proper formula to calculate bandwidth from timing
git bisect bad 367fa96ad66fef31bf73916cf4949c475f42563f
# good: [94275c6d27deebbce5055e1bb1959986051b93f2] drm/amdgpu: Add a check to avoid panic because of unexpected irqs
git bisect good 94275c6d27deebbce5055e1bb1959986051b93f2
# bad: [8198a32b1211c6f625623bae22629cf852531097] drm/amd/display: Initialize stream_update with memset
git bisect bad 8198a32b1211c6f625623bae22629cf852531097
# bad: [e16858a7e6e7dc00345703682d490b96f2883b99] drm/ttm: fix start page for huge page check in ttm_put_pages()
git bisect bad e16858a7e6e7dc00345703682d490b96f2883b99
# good: [b414dfd1f975bbf4c9ee4600f9bedcf77bae84ed] drm/ttm: fix out-of-bounds read in ttm_put_pages() v2
git bisect good b414dfd1f975bbf4c9ee4600f9bedcf77bae84ed

# first bad commit: [e16858a7e6e7dc00345703682d490b96f2883b99] drm/ttm: fix 
start page for huge page check in ttm_put_pages()

e16858a7e6e7dc00345703682d490b96f2883b99 is the first bad commit commit e16858a7e6e7dc00345703682d490b96f2883b99

Author: Christian König <[email protected]>
Date:   Tue Apr 2 09:29:35 2019 +0200

drm/ttm: fix start page for huge page check in ttm_put_pages()

The first page entry is always the same with itself.

Any help is appreciated.
Thanks,
Przemek.

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

#1 lore raw

Yeah, that is a known issue and already fixed in amd-staging-drm-next.

You just need to wait for the public mirror to update.

Christian.

Am 11.04.19 um 18:53 schrieb Przemek Socha:

Quoted 44 lines

Hi All,
after today's sync with amd-staging-drm-next branch I have problems with my Mullins APU Netbook.
Kernel log is flooded with "[TTM] Erroneous page count. Leaking pages." message.

Bisected, and it seems that "drm/ttm: fix start page for huge page check in ttm_put_pages()" commit is causing this.

git bisect log:
git bisect start
# good: [c2af9f9e84183a4dbcb53a74abbe3362dc181682] drm/amd/display: fix cursor black issue
git bisect good c2af9f9e84183a4dbcb53a74abbe3362dc181682
# bad: [b07c394a327fc9e435ee03288584c111fa73d963] drm/amd/display: fix is odm head pipe logic
git bisect bad b07c394a327fc9e435ee03288584c111fa73d963
# bad: [367fa96ad66fef31bf73916cf4949c475f42563f] drm/amd/display: use proper formula to calculate bandwidth from timing
git bisect bad 367fa96ad66fef31bf73916cf4949c475f42563f
# good: [94275c6d27deebbce5055e1bb1959986051b93f2] drm/amdgpu: Add a check to avoid panic because of unexpected irqs
git bisect good 94275c6d27deebbce5055e1bb1959986051b93f2
# bad: [8198a32b1211c6f625623bae22629cf852531097] drm/amd/display: Initialize stream_update with memset
git bisect bad 8198a32b1211c6f625623bae22629cf852531097
# bad: [e16858a7e6e7dc00345703682d490b96f2883b99] drm/ttm: fix start page for huge page check in ttm_put_pages()
git bisect bad e16858a7e6e7dc00345703682d490b96f2883b99
# good: [b414dfd1f975bbf4c9ee4600f9bedcf77bae84ed] drm/ttm: fix out-of-bounds read in ttm_put_pages() v2
git bisect good b414dfd1f975bbf4c9ee4600f9bedcf77bae84ed

# first bad commit: [e16858a7e6e7dc00345703682d490b96f2883b99] drm/ttm: fix
start page for huge page check in ttm_put_pages()

e16858a7e6e7dc00345703682d490b96f2883b99 is the first bad commit commit e16858a7e6e7dc00345703682d490b96f2883b99

Author: Christian König <[email protected]>
Date:   Tue Apr 2 09:29:35 2019 +0200

drm/ttm: fix start page for huge page check in ttm_put_pages()

The first page entry is always the same with itself.

Quoted 8 lines

Any help is appreciated.
Thanks,
Przemek.

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

#3 lore raw
In reply to a message not in the archive

Dnia czwartek, 11 kwietnia 2019 19:31:27 CEST piszesz:

Quoted 11 lines

Yeah, that is a known issue and already fixed in amd-staging-drm-next.

You just need to wait for the public mirror to update.

Christian.

Am 11.04.19 um 18:53 schrieb Przemek Socha:

Quoted 3 lines

Hi All,
after today's sync with amd-staging-drm-next branch I have problems with my

Mullins APU Netbook.

Quoted 7 lines
Quoted 7 lines

Kernel log is flooded with "[TTM] Erroneous page count. Leaking pages." message.

Bisected, and it seems that "drm/ttm: fix start page for huge page check in

ttm_put_pages()" commit is causing this.

Quoted 7 lines
Quoted 7 lines

git bisect log:
git bisect start
# good: [c2af9f9e84183a4dbcb53a74abbe3362dc181682] drm/amd/display: fix cursor

black issue

Quoted 3 lines
Quoted 3 lines

git bisect good c2af9f9e84183a4dbcb53a74abbe3362dc181682
# bad: [b07c394a327fc9e435ee03288584c111fa73d963] drm/amd/display: fix is odm

head pipe logic

Quoted 3 lines
Quoted 3 lines

git bisect bad b07c394a327fc9e435ee03288584c111fa73d963
# bad: [367fa96ad66fef31bf73916cf4949c475f42563f] drm/amd/display: use proper

formula to calculate bandwidth from timing

Quoted 3 lines
Quoted 3 lines

git bisect bad 367fa96ad66fef31bf73916cf4949c475f42563f
# good: [94275c6d27deebbce5055e1bb1959986051b93f2] drm/amdgpu: Add a check to

avoid panic because of unexpected irqs

Quoted 3 lines
Quoted 3 lines

git bisect good 94275c6d27deebbce5055e1bb1959986051b93f2 # bad: [8198a32b1211c6f625623bae22629cf852531097] drm/amd/display:
Initialize

stream_update with memset

Quoted 3 lines
Quoted 3 lines

git bisect bad 8198a32b1211c6f625623bae22629cf852531097
# bad: [e16858a7e6e7dc00345703682d490b96f2883b99] drm/ttm: fix start page for

huge page check in ttm_put_pages()

Quoted 3 lines
Quoted 3 lines

git bisect bad e16858a7e6e7dc00345703682d490b96f2883b99 # good: [b414dfd1f975bbf4c9ee4600f9bedcf77bae84ed] drm/ttm: fix out-of-bounds

read in ttm_put_pages() v2

Quoted 3 lines
Quoted 3 lines

git bisect good b414dfd1f975bbf4c9ee4600f9bedcf77bae84ed

# first bad commit: [e16858a7e6e7dc00345703682d490b96f2883b99] drm/ttm:
fix

start page for huge page check in ttm_put_pages()

Quoted 21 lines
Quoted 21 lines

e16858a7e6e7dc00345703682d490b96f2883b99 is the first bad commit commit e16858a7e6e7dc00345703682d490b96f2883b99

Author: Christian König <[email protected]>
Date:   Tue Apr 2 09:29:35 2019 +0200

drm/ttm: fix start page for huge page check in ttm_put_pages()

The first page entry is always the same with itself.

Quoted 5 lines
Quoted 3 lines

Any help is appreciated.
Thanks,
Przemek.

Thanks, and sorry about all the fuss.
Przemek.

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx