From: Ben Widawsky Subject: Re: i915 fails to build on 32bit Systems Date: Wed, 13 Mar 2013 11:42:49 -0700 Message-ID: <20130313184248.GB21987@bwidawsk.net> References: <20130313183342.GA7484@debian> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from shiva.localdomain (209-20-75-48.static.cloud-ips.com [209.20.75.48]) by gabe.freedesktop.org (Postfix) with ESMTP id C65B2E5FDA for ; Wed, 13 Mar 2013 11:40:47 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20130313183342.GA7484@debian> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Egbert Eich Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Wed, Mar 13, 2013 at 07:33:42PM +0100, Egbert Eich wrote: > i915.ko does not build due to the following function in i915_debugfs.c: > > i915_min_freq_set(void *data, u64 val) > { > ... > dev_priv->rps.min_delay = val / GT_FREQUENCY_MULTIPLIER; > ... > } > > Doing a 64bit integer division on 32bit requires a > compiler run time library to be linked in, otherwise > the symbol __udivdi3 will be missing. > > This was introduced with > > commit 2389cc5006861a8e024a23cb73605f2ab6a5afe8 > Author: Kees Cook > Date: Sun Mar 10 14:10:06 2013 -0700 > > drm/i915: use simple attribute in debugfs routines > > before this val was a simple int. > > Cheers, > Egbert. We (Daniel) knows about this already... My question is, isn't this already doable in sysfs. Can't we just kill the debugfs version now? -- Ben Widawsky, Intel Open Source Technology Center