Subject: Re: Patches for EST and SMP
To: None <tech-kern@netbsd.org>
From: Juan RP <juan@xtrarom.org>
List: current-users
Date: 03/17/2007 02:28:02
On Saturday 17 March 2007, Juan RP wrote:
> Hi,
>
> I'm posting patches for review and test. The patches do:
>
> * Implement two new IPI handlers: IPI_READ_MSR and IPI_WRITE_MSR.
> * To read or write a MSR in all CPUs (x86_broadcast_ipi(IPI_READ_MSR)).
> * Provide two functions for the drivers to read and write MSRs with IPIs,
> passing a struct pointer:
>
> struct msr_cpu_broadcast {
> 	int msr_type;	/* MSR type, e.g MSR_PERF_CTL, MSR_THERM_CONTROL... */
> 	uint64_t msr_value;	/* MSR value passed to the write function */
> };
>
> /* Reads a MSR in all CPUs */
> msr_cpu_broadcast_read(struct msr_cpu_broadcast *);
>
> /* Writes a value in MSR define in msr_type in all CPUs */
> msr_cpu_broadcast_write(struct msr_cpu_broadcast *);

Forgot to say: it adds another member to struct cpu_info, ci_msr_rvalue;

This is a per-cpu MSR returned value.

-- 

http://plog.xtrarom.org/
Juan RP's blog - NetBSD/pkgsrc news in Spanish