Re: [PATCH] AMD Thermal Interrupt Support

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Russell Leidich
Date: Friday, January 4, 2008 - 5:53 pm

On Jan 4, 2008 2:26 PM, Andi Kleen <andi@firstfloor.org> wrote:

OK, I did it the latter way.  Your thermal_vector is my
smp_thermal_interrupt, which I have converted from a function to a
pointer to the CPU-specific function.


I _think_ it's fixed now.  I'll let him rerun it at his end for verification.


But if PCI locks are spinlocks, then how can one access config space
in an interrupt handler, as it might be locked by the foreground?  (No
locks would be required at all, if everyone just saved 0xCF8 and
0xCFC, but I digress.)  And it's one thing to be "likely" already in a
thread, and another to be sure.  If you can address these issues, I'll
change or remove the comment.  I just want to prevent a
reasonable-looking but bad coding change from happening in the future.


Agreed.  I had it at the top of the function, but now I've worked it
into both places.


Ideally, every ID in the k8_northbridges[] whitelist would have
functional thermal throttling.  If more IDs than 0x1103 turn out to
have this feature broken, then we may need to add a blacklist as well.
 But I expect that most future IDs will function correctly, hence my
reliance on the whitelist.  In my view, anyone who adds an ID to a
whitelist (or just a list, for that matter) is obligated to perform a
static analysis (i.e. grep for "k8_northbridges") of the implications
of such act; therefore, I'm not too concerned about Griffin.

I've attached an updated patch.  In the unlikely event that you want
to check this in, let me know so I can give it a final test.

-- 
Russell Leidich
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] AMD Thermal Interrupt Support, Andrew Morton, (Tue Dec 25, 3:04 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Russell Leidich, (Thu Dec 27, 11:57 am)
Re: [PATCH] AMD Thermal Interrupt Support, Andrew Morton, (Fri Dec 28, 12:34 am)
Re: [PATCH] AMD Thermal Interrupt Support, Russell Leidich, (Fri Dec 28, 1:40 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Valdis.Kletnieks, (Fri Dec 28, 7:30 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Andi Kleen, (Fri Dec 28, 7:34 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Valdis.Kletnieks, (Fri Dec 28, 7:57 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Russell Leidich, (Wed Jan 2, 12:43 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Andi Kleen, (Wed Jan 2, 1:00 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Torsten Kaiser, (Wed Jan 2, 2:33 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Russell Leidich, (Wed Jan 2, 2:50 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Andi Kleen, (Wed Jan 2, 2:54 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Russell Leidich, (Wed Jan 2, 3:32 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Andi Kleen, (Fri Jan 4, 3:26 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Russell Leidich, (Fri Jan 4, 5:53 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Andi Kleen, (Sat Jan 5, 6:24 am)
Re: [PATCH] AMD Thermal Interrupt Support, Russell Leidich, (Sat Jan 5, 1:08 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Russell Leidich, (Tue Jan 8, 4:42 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Andi Kleen, (Tue Jan 8, 7:37 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Russell Leidich, (Thu Jan 10, 7:21 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Russell Leidich, (Thu Jan 17, 6:06 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Andrew Morton, (Sat Feb 2, 5:10 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Harvey Harrison, (Sat Feb 2, 5:27 pm)
Re: [PATCH] AMD Thermal Interrupt Support, Andrew Morton, (Sat Feb 2, 5:39 pm)
[PATCH] x86: Remove pt_regs arg from smp_thermal_interrupt, Harvey Harrison, (Sat Feb 2, 5:50 pm)