login
Header Space

 
 

Re: gart: factor out common code

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Pavel Machek <pavel@...>
Cc: kernel list <linux-kernel@...>, Andi Kleen <andi@...>, Ingo Molnar <mingo@...>
Date: Wednesday, April 16, 2008 - 10:55 pm

On 4/16/08, Pavel Machek <pavel@ucw.cz> wrote:


The struct pci_dev */u64 casting is in init_k8_gatt.  If Ingo is happy, then
forget my comment.  I don't have this kind of system to test the patch on, it
was just that as I was looking it over, all the casts kind of made my head
swim.

The narrowing cast is here:
+static inline void enable_gart_translation(struct pci_dev *dev, u64 addr)
+{
+       u32 tmp, ctl;
+
+        /* address of the mappings table */
+        addr >>= 12;
+        tmp = (u32) addr<<4;

Also, putting on my Andrew Morton cap, which I should have done before,
that function is too big to be inlined so you should probably drop the explicit
`inline' and let the compiler decide.

Add a
Reviewed-by: SL Baur <steve@xemacs.org>
if that's appropriate.  I'm satisified that you did a one-for-one code move.

-sb
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
gart: factor out common code, Pavel Machek, (Tue Apr 15, 6:43 am)
Re: gart: factor out common code, Ingo Molnar, (Wed Apr 16, 9:08 am)
Re: gart: factor out common code, Yinghai Lu, (Wed Apr 16, 6:50 pm)
Re: gart: factor out common code, Pavel Machek, (Wed Apr 16, 6:56 pm)
Re: gart: factor out common code, SL Baur, (Tue Apr 15, 7:25 pm)
Re: gart: factor out common code, Pavel Machek, (Wed Apr 16, 4:14 am)
Re: gart: factor out common code, SL Baur, (Wed Apr 16, 10:55 pm)
Re: gart: factor out common code, Andi Kleen, (Thu Apr 17, 2:29 am)
Re: gart: factor out common code, SL Baur, (Thu Apr 17, 3:34 am)
speck-geostationary