Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp386737rdh; Tue, 19 Dec 2023 01:46:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IH4m3lHBTsJTWlPhQZA0v0m2lnWezpf/zW37Y4ZJeUx0JCJej5oGBb80vOpP5FkVNxwz1tp X-Received: by 2002:ad4:5e85:0:b0:67f:3a72:ed32 with SMTP id jl5-20020ad45e85000000b0067f3a72ed32mr5307511qvb.9.1702979166411; Tue, 19 Dec 2023 01:46:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702979166; cv=none; d=google.com; s=arc-20160816; b=HF/MIOHudskO0xn2KrrvDF3I2KUu2mBkmP7UeWSy8DLtKiSTCTugwusMjCfx0ciIIP gTTPpw718h5Tmxr3IA7sRVMI5MjhdIrM+LghaQi9sfYkWMXk8MaIUPN+eqYOICLHdfAt enWC2a+74uHye6s69rM47NtXiBg7zp5XsDU4pZqL2BxsRgqnbNyUv+dg/SIHDD12d4AK eGLy71dcFMPCjGj0az6yQnKCypF58LySbD8F2lianX2NpaNa02mpr8sucTCk7pbJnD8i E1h2vORRms7TUWgkGiVrgi/9u1cUZxtONZK8PSVTbqmDDh6iaplahPPvsGhZBsRHehbk VteQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=MkQbC/xyNrZkIWiwDp6IMwy7SGyY0b5UmnK4l5m5LgI=; fh=R6nYWweU5yjcM/2NA0gcBlrrPo3NiCKMGhhfkCHcrtY=; b=THD1k20TQRrDbStSq5DvPAxKXgxGLTS4GcbiMawliLyCvyx7RhWFCc0U0QsFmljG2l j6sLGXyVunCKUvBW86qIS9KRx3tjdwR6UKuxDtSBaNGNIZMIvTdj5hqeLh3wNNVS08vI IGe+y8yuBdW5jCp52zc/25CBYPgQlIkRd9NWqrdTJUKQWPmqhse1jf2rVqqqzZuGKyKc dcaEunTmkVt9WPJicfonrGO/7B1gu5Jkj5VxUXA4WV5JpImbn9H1AnGIja/7/IkRuQ+v br0GC4LepVHUOuMPXqyYiXCP6QFKKMJf00YDX89M9BAlnzqKT+iVP6ad3JY1WbbiES3F kIGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="i/4uf4fP"; spf=pass (google.com: domain of linux-kernel+bounces-4980-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4980-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id r16-20020a0ce290000000b0067f272762b7si7832704qvl.494.2023.12.19.01.46.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 01:46:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4980-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="i/4uf4fP"; spf=pass (google.com: domain of linux-kernel+bounces-4980-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4980-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E71351C23A78 for ; Tue, 19 Dec 2023 09:46:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E3AB514002; Tue, 19 Dec 2023 09:45:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="i/4uf4fP" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-oi1-f180.google.com (mail-oi1-f180.google.com [209.85.167.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9CE1813FE5 for ; Tue, 19 Dec 2023 09:45:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oi1-f180.google.com with SMTP id 5614622812f47-3b9ed8c3472so453773b6e.0 for ; Tue, 19 Dec 2023 01:45:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702979154; x=1703583954; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=MkQbC/xyNrZkIWiwDp6IMwy7SGyY0b5UmnK4l5m5LgI=; b=i/4uf4fPJOUdkSsHkFeBVbb7InuU1S+amW35RIe9XM4+zHoKF7vDgsGAKsJmed9pZB 0yLxrcxbU7C3egG0Jt361nUFyoEW2t0oc6/6UA4P+fs/jn9eN9VmI5Hgc723wmXazU+N XDsSJsLsKr1B6jWQBDzSUI++GUrC71UE6FvmTARmsY31Hm0SSpssVhVSGzV/cnWBEE15 ir2b1Px2rBXmefVzoA+fl9PBAWFtUvHBSgxiO3u/W5eV3G2Ey0odsBkOL6CQVUKPWTi5 dmT3D+nZZSv/qI9Hx3GUqU5lSexzp0xDb6+6cEEOnLXwpz7IsBpGquRlw6rr0+2sE/z4 4i+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702979154; x=1703583954; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MkQbC/xyNrZkIWiwDp6IMwy7SGyY0b5UmnK4l5m5LgI=; b=ikmHTbYC33HYO7XEv8dgq1j1qm8eHRA7/+GgeLUXlmqDWCCBCIIU6W/QvYXnWQ1pIr 8OhROCA1ABzNgRHyLoBtIPj0GzayDrXPa85LIdLy+wgpuKPXnW81iBvye8gkjUpzc7aE slryctecf7TV4xEErGBl4m9qFLT4YqCTbMj4r+ZLFXQaQNgQgA/MpHfUJzxE9JYhKHE1 ek7IDiA7Mn4AUJp09R4YtXYMePWfWvX0hF8RtzhZeeSqYFG32WdMG0FCY43EcZPx48pj hqIeEP+gxcPbNIRyO2ssX7bjuh0ao4zSa5o4a+ujeqaEi3/3zdRqg+wl5avA04zVlzmu 9DtA== X-Gm-Message-State: AOJu0Yz4/yzlXR42cT9NdDfqfurRQKoAsQUEnzOkQcka8l4e5Do8Nr/F B7p4jAohjzaystMnzb3kuqtiZxEq9d5gnkXt38k= X-Received: by 2002:a05:6808:20a2:b0:3b9:de19:2fb9 with SMTP id s34-20020a05680820a200b003b9de192fb9mr34191884oiw.3.1702979154479; Tue, 19 Dec 2023 01:45:54 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <43016018-4d0a-94dc-ce93-b4bff2dce71c@gmail.com> <90b1c9f8-1674-e9ec-e6d8-2fa1967439b3@gmail.com> <5cbba992-c4ce-01c1-2691-ed65ce66aad5@gmail.com> <8bce512e-abb6-495d-85a4-63648229859e@gmail.com> In-Reply-To: <8bce512e-abb6-495d-85a4-63648229859e@gmail.com> From: Mikhail Gavrilov Date: Tue, 19 Dec 2023 14:45:43 +0500 Message-ID: Subject: Re: amdgpu didn't start with pci=nocrs parameter, get error "Fatal error during GPU init" To: =?UTF-8?Q?Christian_K=C3=B6nig?= Cc: amd-gfx list , dri-devel , Linux List Kernel Mailing , "Deucher, Alexander" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Dec 15, 2023 at 5:37=E2=80=AFPM Christian K=C3=B6nig wrote: > > I have no idea :) > > From the logs I can see that the AMDGPU now has the proper BARs assigned= : > > [ 5.722015] pci 0000:03:00.0: [1002:73df] type 00 class 0x038000 > [ 5.722051] pci 0000:03:00.0: reg 0x10: [mem > 0xf800000000-0xfbffffffff 64bit pref] > [ 5.722081] pci 0000:03:00.0: reg 0x18: [mem > 0xfc00000000-0xfc0fffffff 64bit pref] > [ 5.722112] pci 0000:03:00.0: reg 0x24: [mem 0xfca00000-0xfcafffff] > [ 5.722134] pci 0000:03:00.0: reg 0x30: [mem 0xfcb00000-0xfcb1ffff pre= f] > [ 5.722368] pci 0000:03:00.0: PME# supported from D1 D2 D3hot D3cold > [ 5.722484] pci 0000:03:00.0: 63.008 Gb/s available PCIe bandwidth, > limited by 8.0 GT/s PCIe x8 link at 0000:00:01.1 (capable of 252.048 > Gb/s with 16.0 GT/s PCIe x16 link) > > And with that the driver can work perfectly fine. > > Have you updated the BIOS or added/removed some other hardware? Maybe > somebody added a quirk for your BIOS into the PCIe code or something > like that. No, nothing changed in hardware. But I found the commit which fixes it. > git bisect unfixed 92e2bd56a5f9fc44313fda802a43a63cc2a9c8f6 is the first fixed commit commit 92e2bd56a5f9fc44313fda802a43a63cc2a9c8f6 Author: Vasant Hegde Date: Thu Sep 21 09:21:45 2023 +0000 iommu/amd: Introduce iommu_dev_data.flags to track device capabilities Currently we use struct iommu_dev_data.iommu_v2 to keep track of the de= vice ATS, PRI, and PASID capabilities. But these capabilities can be enabled independently (except PRI requires ATS support). Hence, replace the iommu_v2 variable with a flags variable, which keep track of the de= vice capabilities. From commit 9bf49e36d718 ("PCI/ATS: Handle sharing of PF PRI Capability with all VFs"), device PRI/PASID is shared between PF and any associate= d VFs. Hence use pci_pri_supported() and pci_pasid_features() instead of pci_find_ext_capability() to check device PRI/PASID support. Signed-off-by: Vasant Hegde Reviewed-by: Jason Gunthorpe Reviewed-by: Jerry Snitselaar Link: https://lore.kernel.org/r/20230921092147.5930-13-vasant.hegde@amd= .com Signed-off-by: Joerg Roedel drivers/iommu/amd/amd_iommu_types.h | 3 ++- drivers/iommu/amd/iommu.c | 46 ++++++++++++++++++++++-----------= ---- 2 files changed, 30 insertions(+), 19 deletions(-) > git bisect log git bisect start '--term-new=3Dfixed' '--term-old=3Dunfixed' # status: waiting for both good and bad commits # fixed: [33cc938e65a98f1d29d0a18403dbbee050dcad9a] Linux 6.7-rc4 git bisect fixed 33cc938e65a98f1d29d0a18403dbbee050dcad9a # status: waiting for good commit(s), bad commit known # unfixed: [ffc253263a1375a65fa6c9f62a893e9767fbebfa] Linux 6.6 git bisect unfixed ffc253263a1375a65fa6c9f62a893e9767fbebfa # unfixed: [7d461b291e65938f15f56fe58da2303b07578a76] Merge tag 'drm-next-2023-10-31-1' of git://anongit.freedesktop.org/drm/drm git bisect unfixed 7d461b291e65938f15f56fe58da2303b07578a76 # unfixed: [e14aec23025eeb1f2159ba34dbc1458467c4c347] s390/ap: fix AP bus crash on early config change callback invocation git bisect unfixed e14aec23025eeb1f2159ba34dbc1458467c4c347 # unfixed: [be3ca57cfb777ad820c6659d52e60bbdd36bf5ff] Merge tag 'media/v6.7-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media git bisect unfixed be3ca57cfb777ad820c6659d52e60bbdd36bf5ff # fixed: [c0d12d769299e1e08338988c7745009e0db2a4a0] Merge tag 'drm-next-2023-11-10' of git://anongit.freedesktop.org/drm/drm git bisect fixed c0d12d769299e1e08338988c7745009e0db2a4a0 # fixed: [4bbdb725a36b0d235f3b832bd0c1e885f0442d9f] Merge tag 'iommu-updates-v6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu git bisect fixed 4bbdb725a36b0d235f3b832bd0c1e885f0442d9f # unfixed: [25b6377007ebe1c3ede773fd6979f613386db000] Merge tag 'drm-next-2023-11-07' of git://anongit.freedesktop.org/drm/drm git bisect unfixed 25b6377007ebe1c3ede773fd6979f613386db000 # unfixed: [67c0afb6424fee94238d9a32b97c407d0c97155e] Merge tag 'exfat-for-6.7-rc1-part2' of git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat git bisect unfixed 67c0afb6424fee94238d9a32b97c407d0c97155e # unfixed: [3613047280ec42a4e1350fdc1a6dd161ff4008cc] Merge tag 'v6.6-rc7' into core git bisect unfixed 3613047280ec42a4e1350fdc1a6dd161ff4008cc # fixed: [cedc811c76778bdef91d405717acee0de54d8db5] iommu/amd: Remove DMA_FQ type from domain allocation path git bisect fixed cedc811c76778bdef91d405717acee0de54d8db5 # unfixed: [b0cc5dae1ac0c18748706a4beb636e3b726dd744] iommu/amd: Rename ats related variables git bisect unfixed b0cc5dae1ac0c18748706a4beb636e3b726dd744 # fixed: [5a0b11a180a9b82b4437a4be1cf73530053f139b] iommu/amd: Remove iommu_v2 module git bisect fixed 5a0b11a180a9b82b4437a4be1cf73530053f139b # fixed: [92e2bd56a5f9fc44313fda802a43a63cc2a9c8f6] iommu/amd: Introduce iommu_dev_data.flags to track device capabilities git bisect fixed 92e2bd56a5f9fc44313fda802a43a63cc2a9c8f6 # unfixed: [739eb25514c90aa8ea053ed4d2b971f531e63ded] iommu/amd: Introduce iommu_dev_data.ppr git bisect unfixed 739eb25514c90aa8ea053ed4d2b971f531e63ded # first fixed commit: [92e2bd56a5f9fc44313fda802a43a63cc2a9c8f6] iommu/amd: Introduce iommu_dev_data.flags to track device capabilities --=20 Best Regards, Mike Gavrilov.