From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.224.50 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796250852; b=uwiouEb/fy3sM5l5lz4pGAcyjP0j04EKwk2qwa4BjpQgzLENwnjse9ZekT/eAVzwLEsY xLpQi2OLOL1eLxz0LLukTRhXoMFkNeLebudwm2LS4TE7Bwr50iyurRw4+hYgOG1r42m2G bHeMyRr823RcZMf8lCn8oR1OrQC/2xoHS5Wgn/OeMNJ1hUH74zSJOJa7i2WvbEExADCrb TRlvImbaXv11c5RymF7MjQ0qzp3JdLIrIsEekVlWmAVmC9cfJK3Bg1tAB1QYGVsOMgPJG cM2iGa382x/Fgo3TfbIaSLvkQ2C6F/wME1VYihUQ8xuKBS+/wP9y2Bgvr0qXAiKCnqw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796250852; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:Subject:Date:Message-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key; bh=I4ktDwIDSYD6pAux2YHAkXjB1D61izLIvZsIsWreOAM=; b=dMu4BNN/qRp/0YWrB5W0XMwcnYwK1GT9RBqNKUxkcMHVh5jkrEkNaB720Z0T+7i37VR5 GreZZurJahhCWN2MUgg0LOelnk8V4n7x+zn987k+A+jzWlKSDkI5/b63S0yYxHkcZ9mzX VftnG4lbL0pwcVVIx+Gj0qBx62v+dEoAAgJi+EA/ut+Ndiqnq54Dtm5RgVHb2aWgvMdis 68E4TZKO0wzMuAh2MKDQJrDAECcpt4eofRB5W0igMRhYFCqIKHZYKQrKcrBoIswH5h9h3 mehjqflxR8EqLzG3bSX+7q0L7PBzPcRVXmk7HcUEpe+7HeuYO96JUJ8NS2DIREqkUKw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=ojxrU8SO; arc=none smtp.remote-ip=74.125.224.50 Received: from mail-yx1-f50.google.com (mail-yx1-f50.google.com [74.125.224.50]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 61651606A322 for ; Wed, 2 Dec 2026 22:34:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 61651606A322 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.a=rsa-sha256 header.s=20260707 header.b=ojxrU8SO Received: by mail-yx1-f50.google.com with SMTP id 956f58d0204a3-67db763cec7so13997596d50.1 for ; Wed, 02 Dec 2026 14:34:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796250851; x=1796855651; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=I4ktDwIDSYD6pAux2YHAkXjB1D61izLIvZsIsWreOAM=; b=ojxrU8SOHKAyzSc309z0ILKDsYcVxfYm6eiyP93nov8D2bQT46uWoFg+Apxnds2Vji Ii6bzp4jcqGYHuCy2pvhYTkM49wd5BHLo73HKR+GdJqWCM0Izu90QY2fp/UXWeyywedz C0buj71ErmTIPxYA8x25agWGwLDvrHJOfxOI//+pnNB1g7PV2FhJQJuai3nGFuxTwwuI 3tXrs/Wd2IeQnGjh9uXMxy4ZHz9Ey5p/sq9liTXcAJkDKQPWmK2A4P50E+JS1MBS5ii+ 6i+lsCsTelV64SJR4LD8zMAWDMZHr5w2q/caTBESJPahbv2f1Lvy/9OmPU/8Nc4x/NVz hySg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796250851; x=1796855651; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=I4ktDwIDSYD6pAux2YHAkXjB1D61izLIvZsIsWreOAM=; b=xIZjGIjCkL+CdS5Iz2c/Cpv9+lmn20RkSd6NDkP6piSeT3vPkzbIUkWfQNA7jhcdhb 6Bg0bc+sYF+UBLoU20h7NzC08TQhbWd0+NQbpJlGCuo4T358twEm+gowxeobE+cRd4Su Yoa47TD6H/FKnRIDefwZA0UwgM2iYHxQXSwJ2CIrSePwElNtVfR3nhoBIc7g++lrLgcw G8UFLlq+hCgp8WFXJKU6rkQe+B0NchLJb+BhWmuRTP3HcVoGVYZwvBl2rG6ipYFY80dx NJPGZs+YMDCM1vtgjnonmXhEkwFgNaZDrWzR+oErH2k0iYkIG0g3OHzgZfnYNn2uXWEG Bhbg== X-Forwarded-Encrypted: i=1; AL+hErGRwLo5MTYi+h62UkREo9W0yE0SbGCKXs7Bw0gKwG9w1ryKrUB/gw0vH9dsePAQ/8D0q8OBPpu9IZ7OG6M=@vger.kernel.org X-Gm-Message-State: APuU4Z/YdjDCFh8XRyZmiIPdxhIojnAMzHe8baNoVycp7D/61vwm/n0F cXsNM5U5tDQbnK+bf02gKC9yneQmqpLq/Lguog2pQKxxJpqqOekFGwhVfQzbOvXW X-Gm-Gg: AZFdTZfd3f2qkWbidXKc4x0cjfXq2Z34RxVcV8n7X/DRAdxAapF1LrGoPyqCVqEQJUU 1OYJjWprCBBaxubBPtuYUNKTOaUpv2mhkX+9BSKBIJQ5ux+s2tQbREcHwC4xnQJ1kpghemZvra/ nwW1phHKsrLId/pppiJfHMekrcauAqkdJ/h9KBe0r63/XuAX1AhLRDfs6Pm1Qr7BUQGiKOyE+Ei jBEAzPnmoDjwVCq0huoP2J6PkOJmGRS1dG+NfKvlNLWYDYdP4LY1k1oGjD5TLVeO3HXRntetLAU ecXTuW+5cB+EttTijX8WYNAndf+yLRLebMteQ6qBBLhvmMFj+6A2NC64PsCfhWVxhUA8KIvAOM5 aDP9VfQai3Ja753mm6ahRk+n1JggqZ/D6JF6/ZRwLjkEo3BBLLp0eVoNikKDTNauBiIOx9DvA9e ehgQpdRObLVXdL8YhYuy1MDdBF3F3dFuoYqkbD0xO9xAWhfKulOfFylwP77tzrqRW+eD67ArmqK wzygxHCJsD42uPdq4LWXwHyIMjoMIqsN/PlBLHkZ1H7GcNdJ+dtaQG7s5LpFWcgLkfMgi9EDqSs fo7KeHX/8vstbi5y0F7jsyKUfFAGwECKf9SwsVEaNq8R6RGT6ugFw+8c52owI2IvhokW0VNhcHS xGRRMO1K4mwWKK9ujXHpd7wRpcWtb/vQLgnp9ec6/Q4Ejfgc3cvIGzCvuAPjxJuCpHpAE48jeFG 2BXSZXw/27vcS/qY2NAQ== X-Received: by 2002:a05:690e:80c:10b0:67d:b7ed:26f8 with SMTP id 956f58d0204a3-67df44255f2mr10393437d50.36.1796250851327; Wed, 02 Dec 2026 14:34:11 -0800 (PST) Received: from localhost (107-220-129-194.lightspeed.chrlnc.sbcglobal.net. [107.220.129.194]) by smtp.gmail.com with ESMTPSA id 956f58d0204a3-67df3354415sm19115477d50.11.2026.12.02.14.34.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 14:34:10 -0800 (PST) From: Matt Turner Subject: [PATCH 0/3] drm/amdgpu: devcoredump and reset fixes Date: Wed, 02 Dec 2026 17:34:09 -0500 Message-Id: <20261202-amdgpu-devcoredump-fixes-v1-0-59f622a29769@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAAAAAAAC/zWMQQqDMBAAvyJ77tIkipR+pfQQs6vmkBg2VQTx7 24LPQ7DzAGVJXKFZ3OA8BZrXLKCvTUQZp8nxkjK4IzrrbUP9ImmsiLxFhZhWlPBMe5c0bSjaTt HwXgHmhfhn9D69VYefGUcxOcwf4f6uZOk/y/z/oHzvABPSCdxkAAAAA== X-Change-ID: 20261118-amdgpu-devcoredump-fixes-03f0342dc0a2 To: Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= , David Airlie , Simona Vetter , Pierre-Eric Pelloux-Prayer , Le Ma , Lijo Lazar Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Matt Turner , Gregoire Pean , Jatin Kataria X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1359; i=mattst88@gmail.com; h=from:subject:message-id; bh=XEPa0nYY2ZrqwW2qaIwWwHh577uIl/QXfNc7e8CvaNU=; b=owGbwMvMwCW25rVmCc8sv+mMp9WSGLIF5jy8eOaj7q4jyfP7jjnXq5eqcq8/nRux/IXyjJYdi rXTf11a2vGRhUGMi2GmmCJL3HpFllltO5b6nJb+BTOHlQlkiLRIAwMQsDDw5SbmlRrpGOmZahvq GQIZOkbxEDk9Bo3M4uLS1CLdtIIih7z8ksSSzPy8Yr38gtS8gvQCvbTMtJKMjPyi4lSgEXp5qSW mro5uRoYGJpaOFmZOFo6mJs7OToZObo6Ozq5ORpbmJgbOlo4mrpbmDFycAjDXLJzFyHB9KWfVZ+ WTfzXePjCXe3eiRNhoq6d+6OxbesuSjj0wuurC8Ff4ja+/abI192TeEr3091tv9uumv/TLZV1cJ vRk2Y2jVmwA X-Developer-Key: i=mattst88@gmail.com; a=openpgp; fpr=3BB639E56F861FA2E86505690FDD682D974CA72A Three small fixes found while working on the amdgpu devcoredump. Patch 1 fixes reading the IB contents into the devcoredump: a NULL dereference for PRT mappings and purged BOs, a wrong offset for mappings that don't start at the beginning of their BO, no bounds check of the IB against its mapping, and clobbering abo->kmap. Patch 2 clears the JPEG and VCN1 IP dump pointers after freeing them, as the other VCN versions already do. Patch 3 skips the MES legacy queue unmap during a GPU reset, as the KIQ path already does, so a hung MES doesn't add about 2.1 seconds per queue to recovery. Signed-off-by: Matt Turner --- Matt Turner (3): drm/amdgpu: fix IB content read in the devcoredump drm/amdgpu: clear stale JPEG and VCN1 IP dump pointers drm/amdgpu: don't unmap legacy queues through MES during reset drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c | 67 ++++++++++++++++-------- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 8 +++ drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c | 1 + drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c | 1 + 4 files changed, 56 insertions(+), 21 deletions(-) --- base-commit: a69db917063c539fa09325ea22f3ff7b0626b478 change-id: 20261118-amdgpu-devcoredump-fixes-03f0342dc0a2 Best regards, -- Matt Turner