From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 A573E212548 for ; Sun, 1 Feb 2026 19:05:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769972749; cv=none; b=G9bF88pQmBudVuzK73qbeaopoA5RjLM3Oxy6BQZPqhQhBhR0bv/5pOdl+RCxi5lpsNTlG/hap4e+qsk5LEwIU6C1q8BdLcSf0RDk3uHhbFEo/dbM030ckC5DPolT7syBzbmNK9JZd1M5pUfEAUcQwMHnE38SQjqPeAFTq21Xjvc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769972749; c=relaxed/simple; bh=EbZr1S0wq4DvIcJzyCdoWjIoy42MmQpxH3r9aw2Tp3g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dcFTTahWQfJrKkBeZ0dXKZLXVFs9vUyr+IRR0dbYef+1tDRElrAcby7Ppb4+OYFJt5EALLOCWbUBVPLAJbNtmh5dwvz2y/QasBjVGThMENEl68BSuFh2kfF8TulyaLAc86fp0evwL9YUr++WC8Gc4xqFZ4FJsk6/NfdIojQEsbI= 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=gYm0gtuw; arc=none smtp.client-ip=209.85.128.53 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gYm0gtuw" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-48068127f00so31452935e9.3 for ; Sun, 01 Feb 2026 11:05:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769972746; x=1770577546; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=EbZr1S0wq4DvIcJzyCdoWjIoy42MmQpxH3r9aw2Tp3g=; b=gYm0gtuwVozLsWFA5vSgZTYNOtEPU9aHi6hcxJUKGZjqVuKvtSdNQhyynZMD4oSroF TzAGqttisgTybbNHJeYDKyG0nitQeREqZBtzADnf8zeuHQflFwR7k4qO7sJO5hI2VB03 9x1ny1Nya01lQHtPiaAUqgDNn8NmVlOojw6VpyMzmUWMJwHbxrlGajX3Fyg/KB9c4Hs9 7beeIMaGpmNgbtSBsUMb/h7JrVk0SV4+kHrdOO65+FbNEgz7gGVdi4t+Jhge80+3LPQh VEXd8SDSf/c3yMg8EfKhT8E1lRmHtNqZsrAkTtcBRvlYkPvdp8eDKdcje23HwgauCl+v cRVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769972746; x=1770577546; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=EbZr1S0wq4DvIcJzyCdoWjIoy42MmQpxH3r9aw2Tp3g=; b=EikNgkgRTrXVBzCRJ5bSK/+ApM8uWlhTHpcIhCYra2z1XnAeHlmFUtxsMjEPBfD0cA ORdoPUfVuP3mYbzU6Esa85rBgP1tOGqdwE/4RFVAyJWqfs0QJaalbZBTVDmqic1tQ/j5 apdIOGsgv5tT8/AieBof4Gjb1t7ECDlc3M6NzoeuVytAJ3sBY4nLpXLC0s8pJNX/gH7S 0j2yOWc2Z7MVPz5Ec1TrzZm5alPke7dM+7ibmW7zQewEs5BinFXYSWLe2ua4mNo1vwtm PkVuEFATGDrWlAy5c99gw8tB4/xTiiKVPC64AnA3Q4BWpVUdh43zpQ18+aET9ZyZkuBb sSOQ== X-Forwarded-Encrypted: i=1; AJvYcCVMQMbutWTfFY1lrTKH2c/BaoYRycl/fhgX9V5/7e0G9W9QfqpNrLlb4zTm6p+ekBonKA1Xl1xjKx5AIME=@vger.kernel.org X-Gm-Message-State: AOJu0YyIFJ4telBBWdX0+0PD8y6yPDqlX5mrQFReVUBVL9sMcgCgZeyc iXBEP/qSOv7HDDkymBjqMNKtq3vPH/jCFYh5VMb6yeVjJ7sCUCGsP0Bk X-Gm-Gg: AZuq6aLq/5lKbHaZq8uFlxX/WgjSCCocJK3ihZitglyg/67JpuvQs2cRtHrsXMBUNBE P49Ks0pNMs57CDCeMJPjYI/P8feHhXevdmhlVp890TpBvsLKk8VktSoCnEeeVLZlWKexX313msG qvJ+Qk7bCOzzf3RIQHBoK4ua/1UyYJbxG5OJkFdLeyJ34J5MLnesSTbBZDGQ6LxL7SignMIT9x8 t3b7OlxYxeauC8kPTQ1Jg/6biWZvAsM0oSvSgvl8mSP7AzcqiuZtA5PT//+29REsqWIxV05mQDm AMHjQS5zmjMglhaXNhw20nWRNzSqax7k27MQ8kVSYjOz/EuaXocieIp6dENxNodgKwFxrbkAYYf ZZxSqYIng58zjbxaY59KzH5AnIdHEsQEfxIh6O0YkcJFLWJMiVP7wH+eBbvHtqJguUz+lLbrVba Argqh5huBN4jdnS5K0VfLX/j0K2BxGkL2OEPMQgg== X-Received: by 2002:a05:600c:4f8a:b0:477:76c2:49c9 with SMTP id 5b1f17b1804b1-482db4568dbmr127721945e9.2.1769972745714; Sun, 01 Feb 2026 11:05:45 -0800 (PST) Received: from ionutnechita-arz2022.local ([2a02:2f0e:c200:300:376f:7d7f:40e7:f1de]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-435e10e4757sm39596541f8f.5.2026.02.01.11.05.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Feb 2026 11:05:45 -0800 (PST) From: "Ionut Nechita (Sunlight Linux)" To: alexdeucher@gmail.com Cc: alexander.deucher@amd.com, amd-gfx@lists.freedesktop.org, christian.koenig@amd.com, dri-devel@lists.freedesktop.org, ionut_n2001@yahoo.com, linux-kernel@vger.kernel.org, sunlightlinux@gmail.com, superm1@kernel.org Subject: Re: [PATCH 1/1] drm/amdgpu: Fix TLB flush failures after hibernation resume Date: Sun, 1 Feb 2026 21:05:36 +0200 Message-ID: <20260201190535.18575-2-sunlightlinux@gmail.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: References: <20260126194057.7376-2-sunlightlinux@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi Alex, Thank you for the quick response and for the information about hibernation support. Here's the stack trace showing the call chain when the TLB flush failures occur. The issue happens in two places: 1. During resume (hibernation restore): Call Trace: dump_stack_lvl+0x5b/0x80 amdgpu_gmc_fw_reg_write_reg_wait+0x1c7/0x1d0 [amdgpu] gmc_v9_0_hw_init+0x2e2/0x390 [amdgpu] gmc_v9_0_resume+0x26/0x70 [amdgpu] amdgpu_ip_block_resume+0x27/0x50 [amdgpu] amdgpu_device_ip_resume_phase1+0x55/0x90 [amdgpu] amdgpu_device_resume+0x69/0x380 [amdgpu] amdgpu_pmops_resume+0x46/0x80 [amdgpu] dpm_run_callback+0x4a/0x150 device_resume+0x1df/0x2f0 async_resume+0x21/0x30 async_run_entry_fn+0x36/0x160 process_one_work+0x193/0x350 worker_thread+0x2d7/0x410 2. Subsequent failures during command submission: Call Trace: dump_stack_lvl+0x5b/0x80 amdgpu_gmc_fw_reg_write_reg_wait+0x1c7/0x1d0 [amdgpu] amdgpu_gmc_flush_gpu_tlb+0xd0/0x280 [amdgpu] amdgpu_gart_invalidate_tlb.part.0+0x59/0x90 [amdgpu] amdgpu_ttm_alloc_gart+0x146/0x180 [amdgpu] amdgpu_cs_parser_bos.isra.0+0x5d6/0x7d0 [amdgpu] amdgpu_cs_ioctl+0xbd0/0x1aa0 [amdgpu] drm_ioctl_kernel+0xa6/0x100 drm_ioctl+0x262/0x520 amdgpu_drm_ioctl+0x4a/0x80 [amdgpu] Error message: "amdgpu 0000:04:00.0: amdgpu: failed to write reg 1a6f4 wait reg 1a706" Full dmesg log available at: https://gitlab.freedesktop.org/-/project/4522/uploads/6a285ad2e24f4807e5d75c3f4ed5a7a1/dmesg-dump-stack.txt Regarding the hibernation support issues you mentioned - I understand the limitations with secure boot and VRAM eviction. In my case, I have secure boot disabled and sufficient swap space, so the primary issue I'm encountering is this TLB flush failure. I'm happy to test any patches or help with further debugging if needed. Thanks, Ionut