Re: sym scsi driver problem with 2.6.26 or newer debian kernel on p610 (fwd)

2009-06-27 Thread Laszlo Fekete
Hello!

Thank you very much, this patch works me too.

Maybe this patch will be in the debian kernel someday?

Thank you: blackluck

Michael Ellerman wrote:
> On Wed, 2009-06-24 at 15:56 +1000, Benjamin Herrenschmidt wrote:
>   
>> On Wed, 2009-06-24 at 15:53 +1000, Michael Ellerman wrote:
>> 
>>> Doesn't fix my machine :/
>>>
>>>   
>> That doesn't make sense ... What if you remove the bit inside the ifdef
>> CONFIG_MPIC_BROKEN_REGREAD in _mpic_read() ?
>>
>> If that makes a difference, then it would be interesting to add a printk
>> in there that prints what the original value "val" is and what we have
>> in the shadow...
>> 
>
> With this patch it boots:
>
> diff --git a/arch/powerpc/sysdev/mpic.c b/arch/powerpc/sysdev/mpic.c
> index 2353adc..fc17289 100644
> --- a/arch/powerpc/sysdev/mpic.c
> +++ b/arch/powerpc/sysdev/mpic.c
> @@ -231,13 +231,16 @@ static inline u32 _mpic_irq_read(struct mpic *mpic, 
> unsign
> unsigned intisu = src_no >> mpic->isu_shift;
> unsigned intidx = src_no & mpic->isu_mask;
> unsigned intval;
> +   unsigned intshadow;
>  
> val = _mpic_read(mpic->reg_type, &mpic->isus[isu],
>  reg + (idx * MPIC_INFO(IRQ_STRIDE)));  
>  #ifdef CONFIG_MPIC_BROKEN_REGREAD
> -   if (reg == 0)
> -   val = (val & (MPIC_VECPRI_MASK | MPIC_VECPRI_ACTIVITY)) |
> +   if (reg == 0) {
> +   shadow = (val & (MPIC_VECPRI_MASK | MPIC_VECPRI_ACTIVITY)) |
> mpic->isu_reg0_shadow[idx];
> +   printk("%s: val 0x%x shadow 0x%x\n", __func__, val, shadow);
> +   }
>  #endif
> return val;
>  }
>
>
> And I see:
>
> sym53c8xx :00:0c.0: enabling device (0140 -> 0143)
> sym0: <896> rev 0x7 at pci :00:0c.0 irq 17
> sym0: No NVRAM, ID 7, Fast-40, SE, parity checking
> _mpic_irq_read: val 0x80480004 shadow 0x80080014
> _mpic_irq_read: val 0x480004 shadow 0x480004
>
>
>
> cheers
>   


signature.asc
Description: OpenPGP digital signature
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: sym scsi driver problem with 2.6.26 or newer debian kernel on p610 (fwd)

2009-06-22 Thread Laszlo Fekete

Hello!

Is there any idea for the solution?

Thanks: blackluck

Laszlo Fekete wrote:

Hello!

I'm sorry about the annoyances, but I'd welcome all ideas, suggestions 
to see what needs to be done or should be tested for the solution.


Thank you very much!

Guennadi Liakhovetski wrote:
Ok, first attempt to forward this to scsi was wrong, as pointed out 
by Matthew Wilcox this does indeed look like an interrupt problem - 
no interrupts drom SCSI, IDE, keyboar. Might be a known problem, I 
guess. In any case, I think, the OP would be grateful for any hints.


Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/

-- Forwarded message --
Date: Sat, 13 Jun 2009 16:22:07 +0200
From: Laszlo Fekete 
To: debian-powe...@lists.debian.org
Subject: sym scsi driver problem with 2.6.26 or newer debian kernel 
on p610

Resent-Date: Sat, 13 Jun 2009 14:29:55 + (UTC)
Resent-From: debian-powe...@lists.debian.org

This is a multi-part message in MIME format.


Hello!





Pls help me with sym scsi driver problem.



I have Ibm P610 (and tested it on P630 and P640 too), installed debian

etch and upgraded to lenny.



But with 2.6.26 or newer kernel it's not booting, it's hang on sym scsi

bus scan.





Whats the problem with it, or how can I fix this?





I attach the output from minicom with 2.6.29, 2.6.26, and the working

2.6.24 kernel booting.





Thank you very much!


  





___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


Re: sym scsi driver problem with 2.6.26 or newer debian kernel on p610 (fwd)

2009-06-17 Thread Laszlo Fekete

Hello!

I'm sorry about the annoyances, but I'd welcome all ideas, suggestions 
to see what needs to be done or should be tested for the solution.


Thank you very much!

Guennadi Liakhovetski wrote:
Ok, first attempt to forward this to scsi was wrong, as pointed out by 
Matthew Wilcox this does indeed look like an interrupt problem - no 
interrupts drom SCSI, IDE, keyboar. Might be a known problem, I guess. In 
any case, I think, the OP would be grateful for any hints.


Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/

-- Forwarded message --
Date: Sat, 13 Jun 2009 16:22:07 +0200
From: Laszlo Fekete 
To: debian-powe...@lists.debian.org
Subject: sym scsi driver problem with 2.6.26 or newer debian kernel on p610
Resent-Date: Sat, 13 Jun 2009 14:29:55 + (UTC)
Resent-From: debian-powe...@lists.debian.org

This is a multi-part message in MIME format.


Hello!





Pls help me with sym scsi driver problem.



I have Ibm P610 (and tested it on P630 and P640 too), installed debian

etch and upgraded to lenny.



But with 2.6.26 or newer kernel it's not booting, it's hang on sym scsi

bus scan.





Whats the problem with it, or how can I fix this?





I attach the output from minicom with 2.6.29, 2.6.26, and the working

2.6.24 kernel booting.





Thank you very much!


  


___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev