Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1305967

RE: [Questions]: how to extend nr_irqs for arch arm64

From Zhou Qiao(周侨) <qiaozhou@asrmicro.com>
Newsgroups linux.kernel
Subject RE: [Questions]: how to extend nr_irqs for arch arm64
Date 2016-01-11 10:10 +0100
Message-ID <qPGEa-eD-29@gated-at.bofh.it> (permalink)
References <qPBuO-58D-3@gated-at.bofh.it> <qPFI6-83I-17@gated-at.bofh.it> <qPGkN-8j2-11@gated-at.bofh.it> <qPGuu-8mW-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> -----Original Message-----
> From: Thomas Gleixner [mailto:tglx@linutronix.de]
> Sent: Monday, January 11, 2016 4:51 PM
> To: Zhou Qiao(周侨)
> Cc: jason@lakedaemon.net; linux-kernel@vger.kernel.org
> Subject: RE: [Questions]: how to extend nr_irqs for arch arm64
> 
> On Mon, 11 Jan 2016, Zhou Qiao(周侨) wrote:
> > I met an issue here. The nr_irqs is extended when the start_irq + cnt
> > > nr_irqs. So when nr_irqs is not extended(still 64), a device with a
> > large
> > hr_irq(70) will get a wrong virq. since it will be mod by nr_irqs
> > before
> 
> No, it won't get a wrong virq. It will get a virq and it does not
> matter at all whether the hardware irq number is 10, 70, 500 or 5000.
> What's your problem?
Let's assume the hw_irq is 70, and after the mod operation, it will call irq_alloc_descs_from with parameter from = 6, instead of 70. So the newly allocated descriptor is mapped to hw_irq = 6, not 70. Later when driver registers irq with irq = 70, it will fail since there is no irq descriptor for irq = 70.
> 
> Thanks,
> 
> 	tglx
> 
> 

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[Questions]: how to extend nr_irqs for arch arm64 Zhou Qiao(周侨) <qiaozhou@asrmicro.com> - 2016-01-11 04:40 +0100
  Re: [Questions]: how to extend nr_irqs for arch arm64 Thomas Gleixner <tglx@linutronix.de> - 2016-01-11 09:10 +0100
    RE: [Questions]: how to extend nr_irqs for arch arm64 Zhou Qiao(周侨) <qiaozhou@asrmicro.com> - 2016-01-11 09:50 +0100
      RE: [Questions]: how to extend nr_irqs for arch arm64 Thomas Gleixner <tglx@linutronix.de> - 2016-01-11 10:00 +0100
        RE: [Questions]: how to extend nr_irqs for arch arm64 Zhou Qiao(周侨) <qiaozhou@asrmicro.com> - 2016-01-11 10:10 +0100
          RE: [Questions]: how to extend nr_irqs for arch arm64 Thomas Gleixner <tglx@linutronix.de> - 2016-01-11 10:20 +0100
            RE: [Questions]: how to extend nr_irqs for arch arm64 Zhou Qiao(周侨) <qiaozhou@asrmicro.com> - 2016-01-11 12:20 +0100

csiph-web