[drm:dm_plane_helper_prepare_fb [amdgpu]] *ERROR* Failed to pin framebuffer with error -12

Mikhail Gavrilov mikhail.v.gavrilov at gmail.com
Mon Jan 11 21:51:08 UTC 2021


Hi Christian,

On Tue, 12 Jan 2021 at 01:45, Christian König <christian.koenig at amd.com> wrote:
>
> Hi Mike,
>
> Unfortunately not, that's DC stuff. Easiest is to assign this as a bug
> tracker to our DC team.
Ok

> At least some progress. Any objections that I add your e-mail address as
> tested-by tag?
Yes, feel free add me.

> I can take a look at this one here. Looks like some missing error
> handling when allocating memory.
> Can you decode to which line number ttm_tt_swapin+0x34 points to?
$ /usr/src/kernels/`uname -r`/scripts/faddr2line
/lib/debug/lib/modules/`uname
-r`/kernel/drivers/gpu/drm/ttm/ttm.ko.debug ttm_tt_swapin+0x34
ttm_tt_swapin+0x34/0xd0:
mapping_gfp_mask at
/usr/src/debug/kernel-20210108gitf5e6c330254a/linux-5.11.0-0.rc2.20210108gitf5e6c330254a.120.fc34.x86_64/./include/linux/pagemap.h:105
(discriminator 2)
(inlined by) ttm_tt_swapin at
/usr/src/debug/kernel-20210108gitf5e6c330254a/linux-5.11.0-0.rc2.20210108gitf5e6c330254a.120.fc34.x86_64/drivers/gpu/drm/ttm/ttm_tt.c:210
(discriminator 2)

$ cat -s -n /usr/src/debug/kernel-20210108gitf5e6c330254a/linux-5.11.0-0.rc2.20210108gitf5e6c330254a.120.fc34.x86_64/drivers/gpu/drm/ttm/ttm_tt.c
| head -220 | tail -20
   201      struct page *from_page;
   202      struct page *to_page;
   203      gfp_t gfp_mask;
   204      int i, ret;
   205
   206      swap_storage = ttm->swap_storage;
   207      BUG_ON(swap_storage == NULL);
   208
   209      swap_space = swap_storage->f_mapping;
   210      gfp_mask = mapping_gfp_mask(swap_space);
   211
   212      for (i = 0; i < ttm->num_pages; ++i) {
   213          from_page = shmem_read_mapping_page_gfp(swap_space, i,
   214                              gfp_mask);
   215          if (IS_ERR(from_page)) {
   216              ret = PTR_ERR(from_page);
   217              goto out_err;
   218          }
   219          to_page = ttm->pages[i];
   220          if (unlikely(to_page == NULL)) {

> Please use this one here:
> https://gitlab.freedesktop.org/drm/amd/-/issues/new
>
> If you can't find the DC guys of hand in the assignee list just assign
> to me and I will forward.
https://gitlab.freedesktop.org/drm/amd/-/issues/1439
Ok, let's continue there.

--
Best Regards,
Mike Gavrilov.


More information about the amd-gfx mailing list