public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
From: Ben Skeggs <skeggsb@gmail.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: ERROR: "__divdf3" [drivers/gpu/drm/nouveau/nouveau.ko] undefined!
Date: Thu, 27 Sep 2012 21:18:17 +0000	[thread overview]
Message-ID: <20120927211817.GA22623@turiel.bne.redhat.com> (raw)
In-Reply-To: <20120927115903.GA17017@localhost>

On Thu, Sep 27, 2012 at 03:12:42PM +0200, Martin Peres wrote:
> On 27/09/2012 13:59, Fengguang Wu wrote:
> > Hi Martin,
> >
> > FYI, kernel build failed on
> >
> > 6310a32252e4160ce5492ad9b98c9f2778fec43b drm/nouveau/therm: calculate the pwm divisor on nv50+
> > powerpc-allmodconfig
> >
> > All error/warnings:
> >
> > ERROR: "__divdf3" [drivers/gpu/drm/nouveau/nouveau.ko] undefined!
> > ERROR: ".__floatsidf" [drivers/gpu/drm/nouveau/nouveau.ko] undefined!
> > ERROR: "__fixdfsi" [drivers/gpu/drm/nouveau/nouveau.ko] undefined!
> > ERROR: ".__divdf3" [drivers/gpu/drm/nouveau/nouveau.ko] undefined!
> > ERROR: "__floatsidf" [drivers/gpu/drm/nouveau/nouveau.ko] undefined!
> > ERROR: ".__fixdfsi" [drivers/gpu/drm/nouveau/nouveau.ko] undefined!
> >
> > ---
> > 0-DAY kernel build testing backend         Open Source Technology Centre
> > Fengguang Wu, Yuanhan Liu                              Intel Corporation
> Hi,
> 
> Thank you for reporting this issue (and for having such a nice tool). I 
> wonder how I could miss that!
> 
> Here is a patch for this that should fix the issue. It may be squashed 
> into the offending commit or added as is to the tree.
Squashed into the relevant commit.  Thanks!

> 
> Cheers,
> Martin
> 

> From 9f574fc3872b35aaa4684fa492b9a47fc8f4653f Mon Sep 17 00:00:00 2001
> From: Martin Peres <martin.peres@labri.fr>
> Date: Thu, 27 Sep 2012 14:34:48 +0200
> Subject: [PATCH] drm/nouveau/therm: fix an unintentional use of floating
>  point
> 
> Signed-off-by: Martin Peres <martin.peres@labri.fr>
> ---
>  drivers/gpu/drm/nouveau/core/subdev/therm/nv50.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/nouveau/core/subdev/therm/nv50.c b/drivers/gpu/drm/nouveau/core/subdev/therm/nv50.c
> index 6f97de2..9360ddd 100644
> --- a/drivers/gpu/drm/nouveau/core/subdev/therm/nv50.c
> +++ b/drivers/gpu/drm/nouveau/core/subdev/therm/nv50.c
> @@ -92,7 +92,7 @@ nv50_fan_pwm_clock(struct nouveau_therm *therm)
>  		if (nv_rd32(therm, 0xc040) & 0x800000) {
>  			/* Use the HOST clock (100 MHz)
>  			* Where does this constant(2.4) comes from? */
> -			pwm_clock = (100000000 >> pwm_div) / 2.4;
> +			pwm_clock = (100000000 >> pwm_div) * 10 / 24;
>  		} else {
>  			/* Where does this constant(20) comes from? */
>  			pwm_clock = (crystal * 1000) >> pwm_div;
> -- 
> 1.7.11.5
> 


      parent reply	other threads:[~2012-09-27 21:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-27 11:59 ERROR: "__divdf3" [drivers/gpu/drm/nouveau/nouveau.ko] undefined! Fengguang Wu
2012-09-27 13:12 ` Martin Peres
2012-09-27 21:18 ` Ben Skeggs [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120927211817.GA22623@turiel.bne.redhat.com \
    --to=skeggsb@gmail.com \
    --cc=kernel-janitors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox