Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1036280lqo; Fri, 17 May 2024 08:52:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVqs69H5D93/1Sg2GzyGX3PsYzVJDZNIM+GwbGnMVNIqD/7QBdFNx4UIalPYD4Xoz/H+GKejTA8DEmSrjVpzstGAsdJYA/qdSuO1kYOXw== X-Google-Smtp-Source: AGHT+IHIqFlZL6yDBXURICZ8Mk3/c0bnUi3fT31+iMpt+VD/zhLjq0yh3sdnTZ+PWxfkxoNA0x4u X-Received: by 2002:a05:6a20:9155:b0:1ad:3d93:b71e with SMTP id adf61e73a8af0-1afde238dd5mr24299790637.59.1715961173480; Fri, 17 May 2024 08:52:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715961173; cv=pass; d=google.com; s=arc-20160816; b=z8uYzYCT4LN6PW6NjbE2fbLyNYZAkhpkQO6upo/xz5eZgH8wy6G8NkSHDvHspXwYuJ 3XSP+kGHy7Uf/jOFYQaYmjtwcOV5f1xNEJMpgsbDR52R6SAK/wPO+ZDroEBMsqTe1hvl tfYXXjWD+BvRAIDz+46+LzzqrW32L3avjMSBSRXV5gSQ5cN82BHbHE+6ah+UZK1/pfrb /6iYLtdfttFy6qBV5BwJKJT3MYy6JP9YC/o+ktMbrNG4Uo0OXEyelG0jwuyRraRwSsMD hWhrZ5SxhisSJB++kV1BXSNK4Vv9liYdQ07qGBtHIa+EB113BaPOGxU1bDSrLMr5ZYos 5v0w== ARC-Message-Signature: i=2; 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=DgpuDYI8j+33tJ7Dk5uqzFwntZEb5ZpRgbewCzVqOoQ=; fh=Kj7wj0IpHsi2MUuF4DV2K2PvpDuU834h1L5EgGuyBUM=; b=Jb26bAsiIDlV4k4YPExdr/Zs6EIHd6VFZHe7Q9Vq3V34lb5LKw825iqIMxzC3LrQKv jYdQ2+BjulG3VNsPW++k2GZqQwn4fUvgXaQBCmnVH0NOMmLnhu38anAdXZ9BEVg+H9eW tV2hDZ6eJM8qDlY2oH26cawGgSTZ5mtps1iK/FbYzl7eeQb7F67jBoWfPy2pqFh6w6CN I2T0eODbj8s67eFeGEzFEEMcMPY5TlKzJg1sEQ/UHy4/Wu6XvNcfVe91Uh1aHRDeKk0c Uhq1jW190dsugOf+szqSoxYWJfBHLhQKcUQRChfn4P/PUZ3DBwzTjfqt4/faj7lr1n8F AYow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=F2H+UFAH; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-182313-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182313-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2a8bc8esi17605479b3a.83.2024.05.17.08.52.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 08:52:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-182313-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=F2H+UFAH; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-182313-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182313-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 97120B21AA7 for ; Fri, 17 May 2024 15:46:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 10E7812F5A8; Fri, 17 May 2024 15:46:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="F2H+UFAH" Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (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 EA4FC12F591 for ; Fri, 17 May 2024 15:46:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715960790; cv=none; b=Cu+8MRdtJXvkNTWzWpx/G/uakv05ScItN2YSp7O8xNtZo6YW6y4G9+tUGLgcmQys1DUslhjIouKAFuwFLradl7N2pC3jnx7XdfBjj+YlhysOHWzHxtBEYVZMHg7dRSiffy0+qz258gLwYOsa3nRGM7z6QSNOMVwD9Yf+/A9+r0Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715960790; c=relaxed/simple; bh=L+/cqJrfLgz1kjou+NmF9NFKoLdY5p3cQhtaNnEuh5E=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=VKKJHv+7fX4O8rGaYzgsFnKP8fGJUd9pUWGkjjVeG66vvzy4lCtwagFloyCdJ6n621q8RMlzh/xo9FBy/ASF4MEJNAahLamSRxoUfMr64LQY7Xxo28mlGA7z6J4c24QLXcfIpHRHyscL2tWv7lnyTwhi/GHKt4MClFwSlTGDbYw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=F2H+UFAH; arc=none smtp.client-ip=209.85.214.174 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-pl1-f174.google.com with SMTP id d9443c01a7336-1ec486198b6so12109295ad.1 for ; Fri, 17 May 2024 08:46:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715960788; x=1716565588; 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=DgpuDYI8j+33tJ7Dk5uqzFwntZEb5ZpRgbewCzVqOoQ=; b=F2H+UFAHtsLTpHJ++449q8j4Zki8P5I6kcDQZzzSGItv4OMoFUYHfeDBFfxuhbLYUU TzK2A5mekil7v+566mPr0PfEJS0nv5DF+ojXiYZxri8HFRH4GRMEG8CwvqkGD71oujz5 CgMNtgAvDGbiEdfF8coNPQQ4dEBQVi1Au7RVLJq+SODxw8gnFseP1SgWkuWaSGdsqHJf L+K6KDeL5s/N+3puJSAMe2V0UXIvRQxfWlQyPycF9vuL52J+bil2Mra8mWOb3Z6tY8BA 6ibaukpghoW24B7ae083FuJLf7GYtjq/gNS7OSWArD6zinITXAXMQ+hs1jlj0fkU5bxm gsRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715960788; x=1716565588; 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=DgpuDYI8j+33tJ7Dk5uqzFwntZEb5ZpRgbewCzVqOoQ=; b=sSaRA4x48MJtTt+0NcvMsfCPFsqaVfVAnr6Um3lzMY6/sQYWGKSZkUBF0K9UbpqGeJ 9TBRExe7NavP4Jq4Ncaw3rkvJYRoK0am1XV50OyYg83G+lj60Y00qyDNGpIjnPWZUMQl tEWF2OlxReHbzAhngjFea9kywOtDndv23PxSCA1v4n8OMQIz2JtRz/4qus10SvWS6otj FrHuOLJQsm+vNgPDvsWWohpdpVUmpxibcy4nuN7tY4bdGC2x/qfyCraSLSmBKu9Ha22U qESBvFZE95eWi4Hr3Xy0s/NmDmdDjz4Lt9iCk6qpdl8oNr5sDvl9brghmtS4bRH6HY5E QSRw== X-Forwarded-Encrypted: i=1; AJvYcCW6d/jr08bzygedDQ2VGvG7/jP61daD4oyqzC8T/WffyIUHqd/RnJsng/jeXNPweEfKPSEBAwbTbuLxJVckkmWZruMDbbA5jE1GX/Pw X-Gm-Message-State: AOJu0YywO9Qeo1tX5Zj1A+1+7XB4bDRu/JfTSWHm/tE4Jr21Vr35AU77 WM3LQn7uyjkwuBOrBYe31vmRzrpr1gBENgu4+VvIslrjf+rbwIp9aGaxom+IeFjDjNaryGXz/mY J7KpodKKbPWQCUHEkhMJxrZIBvTQ= X-Received: by 2002:a17:90b:4f45:b0:2b1:534f:ea09 with SMTP id 98e67ed59e1d1-2b6cc76d27amr21340210a91.23.1715960788222; Fri, 17 May 2024 08:46:28 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240516115721.1.I8d413e641239c059d018d46cc569048b813a5d9b@changeid> <9dd1cfd1-fe13-4434-a7cc-e14113dcaf53@amd.com> In-Reply-To: <9dd1cfd1-fe13-4434-a7cc-e14113dcaf53@amd.com> From: Alex Deucher Date: Fri, 17 May 2024 11:46:16 -0400 Message-ID: Subject: Re: [PATCH] drm/amdgpu: Remove GC HW IP 9.3.0 from noretry=1 To: =?UTF-8?Q?Christian_K=C3=B6nig?= Cc: Tim Van Patten , LKML , alexander.deucher@amd.com, prathyushi.nangia@amd.com, Tim Van Patten , Daniel Vetter , David Airlie , Felix Kuehling , Ikshwaku Chauhan , Le Ma , Lijo Lazar , Mario Limonciello , "Pan, Xinhui" , "Shaoyun.liu" , Shiwu Zhang , Srinivasan Shanmugam , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, May 17, 2024 at 2:35=E2=80=AFAM Christian K=C3=B6nig wrote: > > Am 16.05.24 um 19:57 schrieb Tim Van Patten: > > From: Tim Van Patten > > > > The following commit updated gmc->noretry from 0 to 1 for GC HW IP > > 9.3.0: > > > > commit 5f3854f1f4e2 ("drm/amdgpu: add more cases to noretry=3D1") > > > > This causes the device to hang when a page fault occurs, until the > > device is rebooted. Instead, revert back to gmc->noretry=3D0 so the dev= ice > > is still responsive. > > Wait a second. Why does the device hang on a page fault? That shouldn't > happen independent of noretry. > > So that strongly sounds like this is just hiding a bug elsewhere. Fair enough, but this is also the only gfx9 APU which defaults to noretry=3D1, all of the rest are dGPUs. I'd argue it should align with the other GFX9 APUs or they should all enable noretry=3D1. Alex > > Regards, > Christian. > > > > > Fixes: 5f3854f1f4e2 ("drm/amdgpu: add more cases to noretry=3D1") > > Signed-off-by: Tim Van Patten > > --- > > > > drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 1 - > > 1 file changed, 1 deletion(-) > > > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c b/drivers/gpu/drm/= amd/amdgpu/amdgpu_gmc.c > > index be4629cdac049..bff54a20835f1 100644 > > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c > > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c > > @@ -876,7 +876,6 @@ void amdgpu_gmc_noretry_set(struct amdgpu_device *a= dev) > > struct amdgpu_gmc *gmc =3D &adev->gmc; > > uint32_t gc_ver =3D amdgpu_ip_version(adev, GC_HWIP, 0); > > bool noretry_default =3D (gc_ver =3D=3D IP_VERSION(9, 0, 1) || > > - gc_ver =3D=3D IP_VERSION(9, 3, 0) || > > gc_ver =3D=3D IP_VERSION(9, 4, 0) || > > gc_ver =3D=3D IP_VERSION(9, 4, 1) || > > gc_ver =3D=3D IP_VERSION(9, 4, 2) || >