[RFC PATCH 5/5] drm/nouveau: gpu lockup recovery

Martin Peres martin.peres at free.fr
Mon Apr 23 09:46:41 PDT 2012


Hey,

Just a minor mistake spotted while skimming through the patch.

Le 23/04/2012 00:18, Marcin Slusarz a écrit :
> +static inline uint64_t nv_timeout(struct drm_device *dev)
> +{
> +	uint64_t tm = 2000000000ULL;
> +	if (nouveau_gpu_reset_in_progress(dev))
> +		tm /= 40; /* 50ms */
This will cause a problem on 32 bit kernels. You should use do_div.

Martin


More information about the dri-devel mailing list