From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out1-smtp.messagingengine.com ([66.111.4.25]:55050 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751415AbcBNWMD (ORCPT ); Sun, 14 Feb 2016 17:12:03 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 35731208BF for ; Sun, 14 Feb 2016 17:12:03 -0500 (EST) Date: Sun, 14 Feb 2016 14:12:01 -0800 From: Greg KH To: Ilia Mirkin Cc: stable , Alexandre Courbot , Ben Skeggs , "nouveau@lists.freedesktop.org" Subject: Re: Backport request for commit 579b7c582 (drm/nouveau/pmu: do not assume a PMU is present) Message-ID: <20160214221201.GA9713@kroah.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: stable-owner@vger.kernel.org List-ID: On Wed, Jan 06, 2016 at 09:23:20AM -0500, Ilia Mirkin wrote: > This commit should be backported to kernel 4.3 (apologies for > line-wrapping). Without it, we get a null deref (i.e. oops) on GF117 > GPUs which for one reason or another don't have the PMU hooked up. > That should be fixed in its own right, but that's a separate matter. > The issue was introduced in commit e2ca4e7d6e (drm/nouveau/pmu: > convert to new-style nvkm_subdev) > > commit 579b7c58215329803ce184704463de09f0f310ac > Author: Alexandre Courbot > Date: Thu Sep 3 17:39:52 2015 +0900 > > drm/nouveau/pmu: do not assume a PMU is present > > Some devices may not have a PMU. Avoid a NULL pointer dereference in > such cases by checking whether the pointer given to nvkm_pmu_pgob() is > valid. > > Signed-off-by: Alexandre Courbot > Signed-off-by: Ben Skeggs > Now applied, thanks. greg k-h