Received: by 10.223.176.46 with SMTP id f43csp1562928wra; Wed, 24 Jan 2018 19:31:55 -0800 (PST) X-Google-Smtp-Source: AH8x224bBnnmG1Yp9Ygh4GlwjR/879ZHcJAf1V1i+EZ5gwiF1C3p6rx/3xjDCRcsjT4p346z+lk6 X-Received: by 2002:a17:902:9a41:: with SMTP id x1-v6mr3638942plv.256.1516851114920; Wed, 24 Jan 2018 19:31:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516851114; cv=none; d=google.com; s=arc-20160816; b=sjwcYzjSknAyZnHS0/MvfKHLg38y8gcIL/0DdkLK8tBm9DErhNy+vWOuRYEsCoNc7D UoMTez5IchHSiOEt5A/1HitrfIKaf9+JPrBri6u6pVFBpLG9EvPNx1Rm0KBv2WOoerez s+4ERo0QTw7SjlpOyOGy1RUxiNl+DL3FQgqDEgn8sOIb2k+fCI611cslFINZodFsU2g9 E+BqhNL/Lu5l/x+ik0u+U5LU7rcgjkvgcw+sPrFUP6LZvxLwi+dHOrUMMTtF9R8+uTlg fXymxKUHZChNtqyWYMsWoIgY35slLOSoA9Wsl+UE0RwnbKP7gR0VfAjbSU1R46gBuHzW xn9Q== 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 :arc-authentication-results; bh=OdD6OlF3DX6CVligFQjIW728HDRSsYmN2wdpNpZ3w6M=; b=WB8g+lfflxgX6T6H1htlyMKYN3DOjJbKHl3lpwMpVyyEodF4siChiA9wxKzCiAhVlt LJbkeYnCE5l0M2DSJTsTsyFyb33EbT8IWE/eYK+Nz1I5loGmiVPJIE9z+jps69WRIeKM W7JGhedj0RAYqcCYTblq/5RoHnruGPJqRaELblwc/ihVCjAHk85d58A+eE+4nnRM2Ms/ dTUyuHqzGGRLGhxDrw7PQ11fdSPtOpAh1ucBs33XhgVYbpnnBoq1zQjX3f8tQ2oY2kLY o9PnNWGtmZ6cdrbr9VDqejgdU5OaNJxLwPlaal6dAOFF5Rczb0vX3znmWGJZeXU+ESoA p4Cg== 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 bi10-v6si1229529plb.252.2018.01.24.19.31.41; Wed, 24 Jan 2018 19:31:54 -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 S933366AbeAYDae (ORCPT + 99 others); Wed, 24 Jan 2018 22:30:34 -0500 Received: from anholt.net ([50.246.234.109]:46760 "EHLO anholt.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933094AbeAYDac (ORCPT ); Wed, 24 Jan 2018 22:30:32 -0500 Received: from localhost (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id EDC7210A1458; Wed, 24 Jan 2018 19:30:31 -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 FnwcYYisYDmu; Wed, 24 Jan 2018 19:30:30 -0800 (PST) Received: from eliezer.anholt.net (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id 1ADB010A01CE; Wed, 24 Jan 2018 19:30:30 -0800 (PST) Received: by eliezer.anholt.net (Postfix, from userid 1000) id 764D82FE2D74; Wed, 24 Jan 2018 19:30:25 -0800 (PST) From: Eric Anholt To: Sasha Levin , "linux-kernel\@vger.kernel.org" , "stable\@vger.kernel.org" Cc: Stefan Schake , Sasha Levin Subject: Re: [PATCH AUTOSEL for 4.14 001/100] drm/vc4: Account for interrupts in flight In-Reply-To: <20180124041414.32065-1-alexander.levin@microsoft.com> References: <20180124041414.32065-1-alexander.levin@microsoft.com> User-Agent: Notmuch/0.22.2+1~gb0bcfaa (http://notmuchmail.org) Emacs/25.2.2 (x86_64-pc-linux-gnu) Date: Thu, 25 Jan 2018 14:30:23 +1100 Message-ID: <87lggmpqcw.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 Content-Transfer-Encoding: quoted-printable Sasha Levin writes: > From: Stefan Schake > > [ Upstream commit 253696ccd613fbdaa5aba1de44c461a058e0a114 ] > > Synchronously disable the IRQ to make the following cancel_work_sync > invocation effective. > > An interrupt in flight could enqueue further overflow mem work. As we > free the binner BO immediately following vc4_irq_uninstall this caused > a NULL pointer dereference in the work callback vc4_overflow_mem_work. > > Link: https://github.com/anholt/linux/issues/114 > Signed-off-by: Stefan Schake > Fixes: d5b1a78a772f ("drm/vc4: Add support for drawing 3D frames.") > Signed-off-by: Eric Anholt > Reviewed-by: Eric Anholt > Link: https://patchwork.freedesktop.org/patch/msgid/1510275907-993-2-git-= send-email-stschake@gmail.com > Signed-off-by: Sasha Levin We found a bug, and this patch also needs: commit ce9caf2f79a5aa170a4b6456a03db639eed9c988 (tag: drm-misc-fixes-2018-0= 1-08) Author: Stefan Schake Date: Fri Dec 29 17:05:43 2017 +0100 drm/vc4: Move IRQ enable to PM path =20=20=20=20 We were calling enable_irq on bind, where it was already enabled previo= usly by the IRQ helper. Additionally, dev->irq is not set correctly until af= ter 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, wher= e we know there was a previous disable invocation during suspend. =20=20=20=20 Fixes: 253696ccd613 ("drm/vc4: Account for interrupts in flight") Signed-off-by: Stefan Schake Signed-off-by: Eric Anholt Link: https://patchwork.freedesktop.org/patch/msgid/1514563543-32511-1-= git-send-email-stschake@gmail.com Tested-by: Stefan Wahren Reviewed-by: Eric Anholt --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE/JuuFDWp9/ZkuCBXtdYpNtH8nugFAlppT08ACgkQtdYpNtH8 nug8Qg/6AxCiYlnBknJeh8uCKRWvM9qFUIXBtZoL/PdvhPGxb5yXCLYIfwoFpMlk agOBV2ag9Ni2Fpiyi1rub7nox+pXWfS8Z0pSS2c/O26gnIsDWB9L2NmZ8/2YxnQw z3qZQ8bBtvVmGDoBJjV4odo2Qpwbh8zUvcC4WDiePoE/UgS/YvW/K0cawj585drZ eGXTzGXnLlptQwzOZoZINONlJHIqUi1nCD1vK//snKGDvnWFn4chcKycv38dvxja Q6xYdR9rXTmPp5rQCJIgBf3wVKuwhMI3cfuUO7loexkD5P9giYL6IUY91xbyE87j yy0DPfj+fsOKTGWEINb8SSIeq+oVanQh0+vw7mDdYyfTxVtXtTvLV7fSkMThNXDA PJqDar2QT4yR7Y0q7Wso0jMo71GYRH8TDukBcGzYNQlOMVuoPkw3xZtOp+61w6t9 MDGIhSTkFufOakEUC6Bh1BAGMFrPPpWjMqRBB0JegriU3INgbCiTpDRvZaoaY5kA ImyQqeL8gJfA6/zOO2aEhOYAt6wv5MjGsaWn+XBCS+fq6Plrx4oHX3lPjnXON6ku y/wtp+Ly7OufLelyGC22GE8bckrDEGXleqb0HN3pm7l5geA8TQ3Yv/P4/f+PrIhx mozqPWeHZYXLRnU9zfA09Y2wI68jDdFA+uw7E2FOwcjffMPWpXY= =/pej -----END PGP SIGNATURE----- --=-=-=--