Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #73249

Bug#990279: 9a89a721b41b (" drm/amdgpu: check alignment on CPU page for bo map") breaks amdgpu on ppc64 machines?

From Xi Ruoyao <xry111@mengyan1223.wang>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#990279: 9a89a721b41b (" drm/amdgpu: check alignment on CPU page for bo map") breaks amdgpu on ppc64 machines?
Date 2021-10-10 16:30 +0200
Message-ID <D6HZU-5Qs-7@gated-at.bofh.it> (permalink)
References <D6HwR-5rU-9@gated-at.bofh.it> <Ctxhf-3p8-1@gated-at.bofh.it> <D6HwR-5rU-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


On Sun, 2021-10-10 at 14:46 +0100, Nathaniel Filardo wrote:
> It occurs to me, quite belatedly, that it may be worth asking the
> author, reviewers, and signers of the change in question their
> thoughts on this bug report:
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=990279
> 
> In particular, on ppc64 systems, Linux typically is configured to use
> a 64KiB page (i.e., shift 16) rather than 4KiB (shift 12) page.  It
> looks, however, that AMDGPU_GPU_PAGE_SIZE is always 4096, and so
> something (perhaps in userspace, even, eek?) is requesting
> 4KiB-but-not-64KiB alignment of this buffer.

Christian told me the buffer should be aligned to *CPU* page boundary,
or the page table in AMDGPU driver will be corrupted:

> the value of num_entries must always be a multiple of 
> AMDGPU_GPU_PAGES_IN_CPU_PAGE or otherwise we corrupt the page tables.

> You need to identify the root cause of this, most likely start or last
> are not a multiple of AMDGPU_GPU_PAGES_IN_CPU_PAGE.

IMO f4d3da72a76a9ce5f57bba64788931686a9dc333 "drm/amdgpu: Set a suitable
dev_info.gart_page_size" should be backported along with this, which
makes the kernel to provide the CPU page size to libdrm and mesa and
correct userspace behavior.  I'm not sure why only one is backported.
-- 
Xi Ruoyao <xry111@mengyan1223.wang>
School of Aerospace Science and Technology, Xidian University

Back to linux.debian.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#990279: linux-image-5.10.0-7-powerpc64le: Upgrade to 5.10.0-7-powerpc64le from 5.10.0-0.bpo.5-powerpc64le breaks amdgpu Nathaniel Wesley Filardo <nwfilardo@gmail.com> - 2021-06-24 15:20 +0200
  Bug#990279: Also affects stable... Timothy Pearson <tpearson@raptorengineering.com> - 2021-07-25 07:00 +0200
    Bug#990279: Also affects stable... Timothy Pearson <tpearson@raptorengineering.com> - 2021-07-25 23:20 +0200
  Bug#990279: linux-image-5.10.0-7-powerpc64le: Upgrade to 5.10.0-7-powerpc64le from 5.10.0-0.bpo.5-powerpc64le breaks amdgpu Nathaniel Filardo <nwfilardo@gmail.com> - 2021-08-10 03:30 +0200
  Bug#990279: 9a89a721b41b (" drm/amdgpu: check alignment on CPU page for bo map") breaks amdgpu on ppc64 machines? Nathaniel Filardo <nwfilardo@gmail.com> - 2021-10-10 16:00 +0200
    Bug#990279: 9a89a721b41b (" drm/amdgpu: check alignment on CPU page for bo map") breaks amdgpu on ppc64 machines? Xi Ruoyao <xry111@mengyan1223.wang> - 2021-10-10 16:30 +0200
  Bug#990279: 9a89a721b41b (" drm/amdgpu: check alignment on CPU page for bo map") breaks amdgpu on ppc64 machines? Salvatore Bonaccorso <carnil@debian.org> - 2021-10-13 22:20 +0200
    Bug#990279: 9a89a721b41b (" drm/amdgpu: check alignment on CPU page for bo map") breaks amdgpu on ppc64 machines? Salvatore Bonaccorso <carnil@debian.org> - 2021-10-30 16:40 +0200
  Bug#990279: 9a89a721b41b (" drm/amdgpu: check alignment on CPU page for bo map") breaks amdgpu on ppc64 machines? Nathaniel Filardo <nwfilardo@gmail.com> - 2022-01-28 00:10 +0100
  Bug#990279: 9a89a721b41b (" drm/amdgpu: check alignment on CPU page for bo map") breaks amdgpu on ppc64 machines? Andrew <akaminski@mailfence.com> - 2022-01-29 00:20 +0100
  Bug#990279: Status? Timothy Pearson <tpearson@raptorengineering.com> - 2022-02-08 20:40 +0100
    Bug#990279: Status? Salvatore Bonaccorso <carnil@debian.org> - 2022-02-08 22:30 +0100
  Bug#990279: Status? Timothy Pearson <tpearson@raptorengineering.com> - 2022-02-08 22:30 +0100
  Bug#990279: Status? Timothy Pearson <tpearson@raptorengineering.com> - 2022-02-09 20:30 +0100
    Bug#990279: Status? Salvatore Bonaccorso <carnil@debian.org> - 2022-02-09 21:30 +0100
      Bug#990279: Status? Timothy Pearson <tpearson@raptorengineering.com> - 2022-02-09 21:30 +0100
  Bug#990279: Status? Andrew <akaminski@mailfence.com> - 2022-03-09 21:10 +0100

csiph-web