From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751792AbeADA2V (ORCPT + 1 other); Wed, 3 Jan 2018 19:28:21 -0500 Received: from anholt.net ([50.246.234.109]:33330 "EHLO anholt.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751493AbeADA2U (ORCPT ); Wed, 3 Jan 2018 19:28:20 -0500 From: Eric Anholt To: Stefan Schake , David Airlie , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: linux-rpi-kernel@lists.infradead.org, Stefan Schake Subject: Re: [PATCH] drm/vc4: Move IRQ enable to PM path In-Reply-To: <1514563543-32511-1-git-send-email-stschake@gmail.com> References: <1514563543-32511-1-git-send-email-stschake@gmail.com> User-Agent: Notmuch/0.22.2+1~gb0bcfaa (http://notmuchmail.org) Emacs/25.2.2 (x86_64-pc-linux-gnu) Date: Wed, 03 Jan 2018 16:28:12 -0800 Message-ID: <87mv1uv55v.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 List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: --=-=-= Content-Type: text/plain Stefan Schake writes: > We were calling enable_irq on bind, where it was already enabled previously > by the IRQ helper. Additionally, dev->irq is not set correctly until after > postinstall and so was always zero here, triggering a warning in 4.15. > Fix both by moving the enable to the power management resume path, where we > know there was a previous disable invocation during suspend. > > Fixes: 253696ccd613 ("drm/vc4: Account for interrupts in flight") > Signed-off-by: Stefan Schake > --- > I tested replacing the enable/disable dance with just synchronize_irq, > but that only made the original kernel OOPS more sporadic. Reviewed and applied. Thanks! Somewhere on the infinite TODO list is to stop using the DRM IRQ helpers and just install our IRQ handler on our own, which I think would have avoided this trouble. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE/JuuFDWp9/ZkuCBXtdYpNtH8nugFAlpNdRwACgkQtdYpNtH8 nuj80w/9Fh7GmSgMkWdYnx6tHNyudYnUi38HzyspuU61+U44kuYo3VNlV4K+pJXx NwatRPqYGCYvbVFRbnkZ3OYzxz/Te9P4J1RVmkZfYj7CLyw013fx6S6xDxkWVqvN Wq+J4kVi2dqmeM5pYoSnfvdHcsZfmiP8Afy7zPosu4bS4289IZQUiDU5aVILG2+L JP21HPkv1RYosG6sDgexS8/TLUzbMKpfGVFi9RL26eBPux88BQ3Odcw/8aiNj8wh HgEayohITE8UiHriea0vuYitiLVk3mgFgUtSauJKKKK8jBWfAYV27fS/wPjObdls dLr+QauFA6+3YWr2eDpO9tz+BF0+ONbtCZYulsRZ7CiE9gtanS1GQJahlbxUpUkQ aQc4UJfSdZZQ7Onmzf1ocNQn6dIzgepBg58xBGHGtGnjIs6RXj9B/yLtDnNjDBH6 lheLTEiewpP0IpDs8bejEzanMvWb4T8ptnY8cTvDC0GlcvIV87NPQnwdLgGBdPUI v8/zObrNSL6PlbG7I0cwBKvrVCzhVGTXugo6Bwgvso1w93UGi0Iq3G01JL9x+tMw SGbxtXWq7+5iCMw65E3eNH+SUqTV1fApN6n7sj6tw/CPv2RWDgfep298Bcrex3Yr NMlWSr7QSU2CrZ3nX2OPIZuB8ViT60IS2rfxbYn2miaASG3CJEU= =TmSg -----END PGP SIGNATURE----- --=-=-=--