Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1901025imm; Mon, 3 Sep 2018 12:26:09 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZMvuFhXFo8A8OeW7LhKRyVorWBglvS1HVCn3rhe92ZT5UTUEk9cVbGVD3/HV2iYKRLl78k X-Received: by 2002:a62:848e:: with SMTP id k136-v6mr9498706pfd.231.1536002769263; Mon, 03 Sep 2018 12:26:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536002769; cv=none; d=google.com; s=arc-20160816; b=xc+vM+8rUciS0o+kNo3/eTTAQWslz873iQ/15W71SENCJHg99PS1gQQeQwtDj5A8AZ ntFOCPRCqIQweAfmW8CN4qpPH4L/h9XskPnW9YDry5Z4do35SRq+IkmbREBvxi3WLPAo d9soK2zyOv7xKoxG0fWWDwCMi00TDljNZwwDNFSM4PZaasAIDMGEtIFdqncw7XFY8r+R PKERogODKPmA53u9wIU1uIolxyKeO3mGcqaV/V2/HNsZi85ZvmmmpEm9ddgaTru9H2sv 875LsN6OUI7WDsyAjVSjaPrL8C99I6nRnPJH0/p5lFGI7+Vb4uaQy8sqnjSEUNoEYfvp bfuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=mYJkCICtxmJHZtTlYwI12k9KRFAQ0AJJNqTUC8tjqIQ=; b=ACqNlR2VvITzU1YpKwLaRUYFtNznTUnOnMP3QI487dEqCqXKwy92UUEmAJfuMVdaIh IB8awLAtX4e03JsFXS1VKG1IetEmM5F+qTaKZVRJe1BTYYQIxbj3M6lvHBnjiW1UsBr0 +GWs7k67lt0jPhC2M+xe0+rj5Dz+LhhNwUVkTcMspgq7uhFTBbmm97hKqNH3PUfA41eV EE6SaJnizwvuOSf+AsSWmdSCSvxpVTjaVpKpfHp2vDHV+CsdIDR6Z5pcdYARxNPUcj0D MX5KIW+svl/eh3wZF9YdfXIiXYS5UTGBeh+VoenjAjQnYS8gIGOiMXx3vS18reGnp166 5LIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z4-v6si16540750pgp.580.2018.09.03.12.25.54; Mon, 03 Sep 2018 12:26:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728698AbeICXqJ (ORCPT + 99 others); Mon, 3 Sep 2018 19:46:09 -0400 Received: from cust-95-128-94-82.breedbanddelft.nl ([95.128.94.82]:52824 "EHLO cust-95-128-94-82.breedbanddelft.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728276AbeICXqJ (ORCPT ); Mon, 3 Sep 2018 19:46:09 -0400 Received: by abra2.bitwizard.nl (Postfix, from userid 1000) id C46C313F78A; Mon, 3 Sep 2018 21:24:32 +0200 (CEST) Date: Mon, 3 Sep 2018 21:24:32 +0200 From: Rogier Wolff To: Alan Cox Cc: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: IRQ number question. Message-ID: <20180903192432.GE11854@BitWizard.nl> References: <20180903171639.GC16262@BitWizard.nl> <20180903190903.290fff01@alans-desktop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180903190903.290fff01@alans-desktop> Organization: BitWizard B.V. User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 03, 2018 at 07:09:03PM +0100, Alan Cox wrote: > On Mon, 3 Sep 2018 19:16:39 +0200 > > irq 18: nobody cared (try booting with the "irqpoll" option) > > > > I've been writing device drivers in the past, but in the past > > when the lspci listed "IRQ 14" then I'd have to request_irq (14, ... > > The IRQ number in the PCI configuration space is just a label really for > legacy OS stuff. Nothing actually routes interrupts according to it (*). > If it's coming up as 14 that looks more like the BIOS mislabelled it. > Legacy PCI interrupts care about lines and pins not irq numbers. > > Are you looking at values after things like pci_enable_device were called > or before ? Are you also looking at what is in pcidev->irq after the > enable ? The driver used to be for an ISA card. But as the ISA hardware is becoming less and less available, things were in need of an upgrade. So... So far I was just doing inmod mydriver.ko pci=1 irq=14 io=0xae00 mem=0xfda00000 keeping most of the ISA driver. (for testing I was able to run the ISA card with the upgraded driver that does the PCI card as well... So io= is the address I got from lspci, mem= and irq= the same. Apparently All of them are accurate except for the IRQ? So the answer is: No I wasn't doing pci_enable_device. I guess I'll have to make a proper PCI driver then. Hmm. OK. I'll look into it. Roger. -- ** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2600998 ** ** Delftechpark 26 2628 XH Delft, The Netherlands. KVK: 27239233 ** *-- BitWizard writes Linux device drivers for any device you may have! --* The plan was simple, like my brother-in-law Phil. But unlike Phil, this plan just might work.