Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754416Ab3HPKXZ (ORCPT ); Fri, 16 Aug 2013 06:23:25 -0400 Received: from iona.labri.fr ([147.210.8.143]:45839 "EHLO iona.labri.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754189Ab3HPKXQ (ORCPT ); Fri, 16 Aug 2013 06:23:16 -0400 Message-ID: <520DFD9F.1070006@labri.fr> Date: Fri, 16 Aug 2013 06:23:27 -0400 From: Martin Peres User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130806 Thunderbird/17.0.8 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Pali_Roh=E1r?= CC: David Airlie , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Ben Skeggs Subject: Re: [PATCH] nouveau reclocking on nv40 not working since 77145f1cbdf8d28b46ff8070ca749bad821e0774 References: <23735105.M9MNGeX3Gc@pali> <201308151946.26609@pali> <520D54CA.4050001@labri.fr> <1577797.nVIM0OkmpX@pali> In-Reply-To: <1577797.nVIM0OkmpX@pali> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2028 Lines: 51 On 16/08/2013 03:16, Pali Roh?r wrote: > On Thursday 15 August 2013 18:23:06 Martin Peres wrote: >> On 15/08/2013 13:46, Pali Roh?r wrote: >>> On Tuesday 13 August 2013 11:28:01 Pali Roh?r wrote: >>>> Hello, >>>> >>>> in commit 77145f1cbdf8d28b46ff8070ca749bad821e0774 was >>>> introduced error which cause that on my Nvidia 6600GT card >>>> reclocking not working anymore. There is missing assigment of >>>> return value from pll_calc to ret. >>>> >>>> After this patch reclocking on my card working fine again. >>>> Above broken commit was introduced in kernel 3.7, so consider >>>> backporting this patch to older kernels too. >>>> >>>> Signed-off-by: Pali Roh?r >>>> >>>> diff --git a/drivers/gpu/drm/nouveau/nv40_pm.c >>>> b/drivers/gpu/drm/nouveau/nv40_pm.c index 3af5bcd..625f80d >>>> 100644 >>>> --- a/drivers/gpu/drm/nouveau/nv40_pm.c >>>> +++ b/drivers/gpu/drm/nouveau/nv40_pm.c >>>> @@ -131,7 +131,7 @@ nv40_calc_pll(struct drm_device *dev, u32 >>>> reg, struct nvbios_pll *pll, if (clk < pll->vco1.max_freq) >>>> >>>> pll->vco2.max_freq = 0; >>>> >>>> - pclk->pll_calc(pclk, pll, clk, &coef); >>>> + ret = pclk->pll_calc(pclk, pll, clk, &coef); >>>> >>>> if (ret == 0) >>>> >>>> return -ERANGE; >>> Martin, can you look at another problem with my graphics card? >> As I told you before, I'm away from my computers, so I cannot test the >> patch. However, >> this one seems quite obvious and should be pushed. Thanks. > Yes, look at that diff of that problematic commit and you will see that ret > here is missing. It is possible to push this patch to 3.11? Please make a proper patch (generated by git format-patch or git send-email) and Ben will push it. You add my Signed-off-by: Martin Peres Cheers -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/