Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D4477D58CB4 for ; Mon, 23 Mar 2026 00:36:37 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 684D210E1CA; Mon, 23 Mar 2026 00:36:37 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; secure) header.d=raptorengineering.com header.i=@raptorengineering.com header.b="ZKV1HFzm"; dkim-atps=neutral X-Greylist: delayed 386 seconds by postgrey-1.36 at gabe; Mon, 23 Mar 2026 00:36:35 UTC Received: from raptorengineering.com (mail.raptorengineering.com [23.155.224.40]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7F23E10E1CA for ; Mon, 23 Mar 2026 00:36:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.rptsys.com (Postfix) with ESMTP id D96217791C2D; Sun, 22 Mar 2026 19:30:08 -0500 (CDT) Received: from mail.rptsys.com ([127.0.0.1]) by localhost (vali.starlink.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id A-akTtLceq3C; Sun, 22 Mar 2026 19:30:04 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by mail.rptsys.com (Postfix) with ESMTP id AE3FC77908D9; Sun, 22 Mar 2026 19:30:04 -0500 (CDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.rptsys.com AE3FC77908D9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raptorengineering.com; s=B8E824E6-0BE2-11E6-931D-288C65937AAD; t=1774225804; bh=XUNjsJRMkb+HTDokifbsZ9wmoKhH8Iz0vtFPn8y+DV4=; h=Date:From:To:Message-ID:MIME-Version; b=ZKV1HFzmEvDGTobM3UaLN/g+35d0v8QcEGLuYq4dzqkodwkfpVNG6iGZRzaqJFUlN ULLKzY/pPRNHWSAtVoAuwNXehuRtv8vAPjcToBSDBOOTlb1aeQzGkigJFnCpC3bfIo 4MNM1WcPvIyar+DdSwXucIz7HSfXXxJ7UtrDncXU= X-Virus-Scanned: amavisd-new at rptsys.com Received: from mail.rptsys.com ([127.0.0.1]) by localhost (vali.starlink.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id C-xwQSM_Itd6; Sun, 22 Mar 2026 19:30:04 -0500 (CDT) Received: from vali.starlink.edu (localhost [127.0.0.1]) by mail.rptsys.com (Postfix) with ESMTP id 657787790EC7; Sun, 22 Mar 2026 19:30:04 -0500 (CDT) Date: Sun, 22 Mar 2026 19:30:04 -0500 (CDT) From: Timothy Pearson To: Ritesh Harjani Cc: Dan =?utf-8?Q?Hor=C3=A1k?= , linuxppc-dev , Gaurav Batra , amd-gfx , Donet Tom Message-ID: <1646525566.315562.1774225804200.JavaMail.zimbra@raptorengineeringinc.com> In-Reply-To: <1phlu3bs.ritesh.list@gmail.com> References: <20260313142351.609bc4c3efe1184f64ca5f44@danny.cz> <1phlu3bs.ritesh.list@gmail.com> Subject: Re: amdgpu driver fails to initialize on ppc64le in 7.0-rc1 and newer MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: Zimbra 8.5.0_GA_3042 (ZimbraWebClient - GC145 (Linux)/8.5.0_GA_3042) Thread-Topic: amdgpu driver fails to initialize on ppc64le in 7.0-rc1 and newer Thread-Index: kp4EDOKqz4Lv02hEmHAiKBZnOTq8kA== X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" ----- Original Message ----- > From: "Ritesh Harjani" > To: "Dan Hor=C3=A1k" , "linuxppc-dev" , "Gaurav Batra" > Cc: "amd-gfx" , "Donet Tom" > Sent: Saturday, March 14, 2026 11:25:11 PM > Subject: Re: amdgpu driver fails to initialize on ppc64le in 7.0-rc1 and = newer > Dan Hor=C3=A1k writes: >=20 > +cc Gaurav, >=20 >> Hi, >> >> starting with 7.0-rc1 (meaning 6.19 is OK) the amdgpu driver fails to >> initialize on my Linux/ppc64le Power9 based system (with Radeon Pro WX41= 00) >> with the following in the log >> >> ... >> b=C5=99e 05 08:35:40 talos.danny.cz kernel: amdgpu 0000:01:00.0: GART: 2= 56M >> 0x000000FF00000000 - 0x000000FF0FFFFFFF >=20 > ^^^^ > So looks like this is a PowerNV (Power9) machine. >=20 >> b=C5=99e 05 08:35:40 talos.danny.cz kernel: amdgpu 0000:01:00.0: [drm] D= etected VRAM >> RAM=3D4096M, BAR=3D4096M >> b=C5=99e 05 08:35:40 talos.danny.cz kernel: amdgpu 0000:01:00.0: [drm] R= AM width >> 128bits GDDR5 >> b=C5=99e 05 08:35:40 talos.danny.cz kernel: amdgpu 0000:01:00.0: iommu: = 64-bit OK but >> direct DMA is limited by 0 >> b=C5=99e 05 08:35:40 talos.danny.cz kernel: amdgpu 0000:01:00.0: >> dma_iommu_get_required_mask: returning bypass mask 0xfffffffffffffff >> b=C5=99e 05 08:35:40 talos.danny.cz kernel: amdgpu 0000:01:00.0: 4096M = of VRAM >> memory ready >> b=C5=99e 05 08:35:40 talos.danny.cz kernel: amdgpu 0000:01:00.0: 32570M= of GTT >> memory ready. >> b=C5=99e 05 08:35:40 talos.danny.cz kernel: amdgpu 0000:01:00.0: (-12) f= ailed to >> allocate kernel bo >> b=C5=99e 05 08:35:40 talos.danny.cz kernel: amdgpu 0000:01:00.0: [drm] D= ebug VRAM >> access will use slowpath MM access >> b=C5=99e 05 08:35:40 talos.danny.cz kernel: amdgpu 0000:01:00.0: [drm] G= ART: num cpu >> pages 4096, num gpu pages 65536 >> b=C5=99e 05 08:35:40 talos.danny.cz kernel: amdgpu 0000:01:00.0: [drm] P= CIE GART of >> 256M enabled (table at 0x000000F4FFF80000). >> b=C5=99e 05 08:35:40 talos.danny.cz kernel: amdgpu 0000:01:00.0: (-12) f= ailed to >> allocate kernel bo >> b=C5=99e 05 08:35:40 talos.danny.cz kernel: amdgpu 0000:01:00.0: (-12) c= reate WB bo >> failed >> b=C5=99e 05 08:35:40 talos.danny.cz kernel: amdgpu 0000:01:00.0: >> amdgpu_device_wb_init failed -12 >> b=C5=99e 05 08:35:40 talos.danny.cz kernel: amdgpu 0000:01:00.0: >> amdgpu_device_ip_init failed >> b=C5=99e 05 08:35:40 talos.danny.cz kernel: amdgpu 0000:01:00.0: Fatal e= rror during >> GPU init >> b=C5=99e 05 08:35:40 talos.danny.cz kernel: amdgpu 0000:01:00.0: finishi= ng device. >> b=C5=99e 05 08:35:40 talos.danny.cz kernel: amdgpu 0000:01:00.0: probe w= ith driver >> amdgpu failed with error -12 >> b=C5=99e 05 08:35:40 talos.danny.cz kernel: amdgpu 0000:01:00.0: ttm fi= nalized >> ... >> >> After some hints from Alex and bisecting and other investigation I have >> found that >> https://github.com/torvalds/linux/commit/1471c517cf7dae1a6342fb821d8ed50= 1af956dd0 >> is the culprit and reverting it makes amdgpu load (and work) again. >=20 > Thanks for confirming this. Yes, this was recently added [1] >=20 > [1]: > https://lore.kernel.org/linuxppc-dev/20251107161105.85999-1-gbatra@linux.= ibm.com/ As this patch appears to be primarily aimed at improving performance, and h= as introduced a serious regression into the kernel for a large number of ac= tive users of the PowerNV platform, I would kindly ask that it be reverted = until it can be reworked not to break PowerNV support. Bear in mind there = are other devices that are 40 bit DMA limited, and they are also likely to = break on Linux 7.0. Thank you!