Re: [RFC][patch 3/10] Multiple vector domain support - introduce gsv

From: Kenji Kaneshige <kaneshige.kenji_at_jp.fujitsu.com>
Date: 2005-07-16 11:07:51
Hi Ashok,

Thank you for comments.

>>+
>>+	/*
>>+	 * Make special mapping between per CPU IRQs and GSVs
>>+	 */
>>+	for (gsv = 0; gsv < NR_GSVS; gsv++) {
>>+		vec = gsv_to_vector(gsv);
>>+		if (vec < IA64_FIRST_DEVICE_VECTOR ||
>>+		    vec > IA64_LAST_DEVICE_VECTOR) {
>>+			ia64_gsv_to_irq_map[gsv] = vec;
>>+			ia64_irq_to_gsv_map[vec] = vec;
> 
> 
> Should the above be = gsv instead of vec?
> 
>>+			ia64_irq_to_gsv_map[vec] = vec;
> 
> ---------------------------------------------------^^^^

I did this by intent, but we can also use "= gsv" instead
of "= vec".
In my patch, all per CPU interrupts are mapped to the same
IRQ regardless of what domain the cpu belongs to. So multiple
gsvs are mappied to one IRQ for per CPU interrupts.


>>+/*
>>+ * Convert global system vector to the corresponding IRQ.
>>+ */
>>+static inline int
>>+gsv_to_irq (unsigned int gsv)
>>+{
>>+	if (gsv > NR_GSVS)
> 
> 
> Should the above be (gsv >= NR_GSVS)?? 
> 

Yes, it's a bug.
Thank you for finding this out.

Thanks,
Kenji Kaneshige

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Fri Jul 15 21:11:25 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:40 EST