From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755495AbdKJBFl (ORCPT ); Thu, 9 Nov 2017 20:05:41 -0500 Received: from mail-wm0-f41.google.com ([74.125.82.41]:48557 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755439AbdKJBFj (ORCPT ); Thu, 9 Nov 2017 20:05:39 -0500 X-Google-Smtp-Source: AGs4zMapyGVg9cgtMGBUApnJFkkk4ZqWPpr3EpvCLaSSsY146wwYKFVapIB8kfpKi+NeuzQQA96TTA== From: Stefan Schake To: dri-devel@lists.freedesktop.org Cc: linux-rpi-kernel@lists.infradead.org, Stefan Schake , Eric Anholt , David Airlie , linux-kernel@vger.kernel.org Subject: [PATCH 0/2] drm/vc4: Correctly uninstall interrupts Date: Fri, 10 Nov 2017 02:05:05 +0100 Message-Id: <1510275907-993-1-git-send-email-stschake@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This set of patches fixes issues with vc4_irq_uninstall. The first patch fixes a NULL pointer dereference when the binner BO would disappear during an in flight overflow mem work callback. The second patch ensures we return with all interrupts disabled. This was suspected to cause the NULL dereference but turned out to be unrelated. Tested with a Raspberry Pi CM 3 that was previously stuck in a boot loop due to the issue. With the patch applied, the NULL dereference was no longer observed through numerous resets. Stefan Schake (2): drm/vc4: Account for interrupts in flight drm/vc4: Ensure interrupts are disabled drivers/gpu/drm/vc4/vc4_irq.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) -- 1.9.1