Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp289640imu; Thu, 8 Nov 2018 08:21:25 -0800 (PST) X-Google-Smtp-Source: AJdET5dfcqycNNb51CPBJIrW927NQM8g9SSl5/fV0ra3fVTlorUT8MzR7+JJ/lmlM1fipzesgkX3 X-Received: by 2002:a62:250:: with SMTP id 77-v6mr5320963pfc.16.1541694085600; Thu, 08 Nov 2018 08:21:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541694085; cv=none; d=google.com; s=arc-20160816; b=vS4LK5mdaPDLKZNdPvIF9tjxLyt20N65hjXkyuvELmoefOuPGfNZhAh+DNAE49A1EF 8ATCco1p9tPAXNUDtEpeIuCcOzS0yAopnN4YzGkSSldjLs/5loOjWQnNGUDDnWZmhjmY WkUjFFPbPTaA47JqK5vrM0ksVVrVNxFOPs+Tu2Qr+q4MlhcUGaOlsXMQou07KnD+Fzif g+oWYYwuWuNPJJ78XEG4svfKEfVhM/z8wuCLuC5T3pM11E49pLqW4ydEYFqmfU19h+CL iXdb0fGNKIK1loOLMG33gnYtPZTyJLP/da4dvmdPj5YiKbKOZ8ubQkrmP+gDP4x5iUP5 fqKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from; bh=avepT8euA3Gv5Vv4K3xHa5G57XZWmit0SJQe/Splbh4=; b=tdIxrrP0M0h1G9Zlvp/oOonWPJgAx82rxa6XoRYaXaT9dLarHPLIpP4CJfdXjSJXnV JFyYg5eNr8TmiY/gm0eSl25apMLqcRxd1Pqb4rp8PNkGjFSDcKFmpeW/jnaZCL0RY3sv MqdZFrupu0sY7eUYb3/xEFwoB/CMLeFUM+in4O+SQ7hRuH7GkLqfmfNizEklkn+ijamS R3CfsdIR0UIlSsQZWMzodOTXo3LtiFEMszWstx+44rDqTy4Sm240kLlhBRqCFPgN4ZEG UyFsLxKbiz+zj0LXMhvTsxIh/evfxO6lp4Hm9BjZnVWqAqnzpHT1eC0PRHRy4MBlXb+N Qrtg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u1-v6si4697903plb.313.2018.11.08.08.21.10; Thu, 08 Nov 2018 08:21:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727229AbeKIB4C (ORCPT + 99 others); Thu, 8 Nov 2018 20:56:02 -0500 Received: from anholt.net ([50.246.234.109]:33476 "EHLO anholt.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726421AbeKIB4C (ORCPT ); Thu, 8 Nov 2018 20:56:02 -0500 Received: from localhost (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id CE63110A139B; Thu, 8 Nov 2018 08:19:48 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at anholt.net Received: from anholt.net ([127.0.0.1]) by localhost (kingsolver.anholt.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id tN-63Uy_hNgh; Thu, 8 Nov 2018 08:19:46 -0800 (PST) Received: from eliezer.anholt.net (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id DCE3F10A1376; Thu, 8 Nov 2018 08:19:46 -0800 (PST) Received: by eliezer.anholt.net (Postfix, from userid 1000) id 794D02FE1B8F; Thu, 8 Nov 2018 08:19:46 -0800 (PST) From: Eric Anholt To: "Koenig\, Christian" , "dri-devel\@lists.freedesktop.org" Cc: "linux-kernel\@vger.kernel.org" , Nayan Deshmukh , "Deucher\, Alexander" Subject: Re: [PATCH 1/2] Revert "drm/sched: fix timeout handling v2" In-Reply-To: <2f577af9-9ff7-4e9d-b198-02727a995393@amd.com> References: <20181108160422.17743-1-eric@anholt.net> <20181108160422.17743-2-eric@anholt.net> <2f577af9-9ff7-4e9d-b198-02727a995393@amd.com> User-Agent: Notmuch/0.22.2+1~gb0bcfaa (http://notmuchmail.org) Emacs/25.2.2 (x86_64-pc-linux-gnu) Date: Thu, 08 Nov 2018 08:19:45 -0800 Message-ID: <875zx7o82m.fsf@anholt.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable "Koenig, Christian" writes: > Am 08.11.18 um 17:04 schrieb Eric Anholt: >> This reverts commit 0efd2d2f68cd5dbddf4ecd974c33133257d16a8e. Fixes >> this failure in V3D GPU reset: >> >> [ 1418.227796] Unable to handle kernel NULL pointer dereference at virtu= al address 00000018 >> [ 1418.235947] pgd =3D dc4c55ca >> [ 1418.238695] [00000018] *pgd=3D80000040004003, *pmd=3D00000000 >> [ 1418.244132] Internal error: Oops: 206 [#1] SMP ARM >> [ 1418.248934] Modules linked in: >> [ 1418.252001] CPU: 0 PID: 10253 Comm: kworker/0:0 Not tainted 4.19.0-rc= 6+ #486 >> [ 1418.259058] Hardware name: Broadcom STB (Flattened Device Tree) >> [ 1418.265002] Workqueue: events drm_sched_job_timedout >> [ 1418.269986] PC is at dma_fence_remove_callback+0x8/0x50 >> [ 1418.275218] LR is at drm_sched_job_timedout+0x4c/0x118 >> ... >> [ 1418.415891] [] (dma_fence_remove_callback) from [= ] (drm_sched_job_timedout+0x4c/0x118) >> [ 1418.425571] [] (drm_sched_job_timedout) from [] (= process_one_work+0x2c8/0x7bc) >> [ 1418.434552] [] (process_one_work) from [] (worker= _thread+0x44/0x590) >> [ 1418.442663] [] (worker_thread) from [] (kthread+0= x160/0x168) >> [ 1418.450076] [] (kthread) from [] (ret_from_fork+0= x14/0x28) >> >> Cc: Christian K=C3=B6nig >> Cc: Nayan Deshmukh >> Cc: Alex Deucher >> Signed-off-by: Eric Anholt > > Well NAK. The problem here is that fence->parent is NULL which is most=20 > likely caused by an issue somewhere else. > > We could easily work around that with an extra NULL check, but reverting= =20 > the patch would break GPU recovery again. My GPU recovery works with the revert and reliably doesn't work without it, so my idea of "break GPU recovery" is the opposite of yours. Can you help figure out what in this change broke my driver? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE/JuuFDWp9/ZkuCBXtdYpNtH8nugFAlvkYiIACgkQtdYpNtH8 nuit4w/9HElAtr6o2/s69glGfsu3HF6ylT87u996R1ombFABoVcNTQSMo9eIDOui jM3/EQoLsZIFsuKu3VbYLI9J9Gmfx29l9UW4Bu0AIYg3EG3ndDNqjSEwXz7aFUIv YGwwxtp0L3NG4EjqmhkALr+A9EyC2NzDvk5jadzUKu0XjOhy6z5Kdz6YsmjEMUVV eHfkCnunlXHMsiQyotDNffK6tkNhlZ4RwKkjSXgaXNlyxZcVt9aYB5muN1pd353D hlJXoe2DXA6pY/kGq50nt2HvgP5SsYJ/2VfvseVi5yRqrCRFZLcQM9G0vMJY2pMV DvWh9Mqh9ew91QvZHAnFC2ZOJtyqhVKQwyKUz4EuLK3gLFDkJpnWp4GrX5TDot4C c9zakZ5SBwJwSZPR35tMvO6Umvno5PWs/2tYYHRKfHeBKtKDDHpVcHu/2kIq+Gjv 3Pw35FA37cRPwk3RoMSHCXszJkAHdPwKyuPB+3JiT2BmaIlYHl3TtldbIlbl8bR2 B6blHtUEPNzBskm01uh5+dSfNHQYBoa8O+BkvKRd1FVKNWnsno+7Cp/Fbq23Xb1n WMQpNxd+MroLdsAqPWdL6Ls8Brdff7UeF0P2ePXFlS/0paf/fId5/1vk+HcJ9XCc IGL1Gif94BL/n2VTvGAilOMJ313DonOYVpVIYiY74wVS1cqevFY= =pUVW -----END PGP SIGNATURE----- --=-=-=--