🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fa.netbsd.tech.kern
Article #97

Re: pchb@acpi again

#97
From: Chuck Silvers
Date: Mon, 06 May 2013 01:43
46 lines
3802 bytes
On Mon, Apr 22, 2013 at 09:07:57PM +0900, KIYOHARA Takashi wrote:
> Hi! Chuck,
> 
> 
> From: Chuck Silvers <chuq@chuq.com>
> Date: Sun, 21 Apr 2013 07:32:29 -0700
> 
> > On Mon, Apr 15, 2013 at 12:26:06AM +0300, Jukka Ruohonen wrote:
> > > On Sat, Apr 13, 2013 at 06:26:19PM -0700, Chuck Silvers wrote:
> > > > anyway, there are more problems with the new pchb,
> > > > it's unhappy with the other two PCI root bridges in this system:
> > > > 
> > > > pchb7 at acpi0 (PCI1, PNP0A03-8): ACPI Host-PCI Bridge
> > > > pchb7: Can't get _PRT
> > > > pchb8 at acpi0 (PCI2, PNP0A03-9): ACPI Host-PCI Bridge
> > > > pchb8: Can't get _PRT
> > > > 
> > > > these really don't have a _PRT method, but the rest of the code doesn't mind.
> > > > they still attach fine with the mainbus attachment:
> > > > 
> > > > I guess that's because even though these root bridges themselves don't have
> > > > _PRT methods, the PCI bridges directly under them do have them.
> > > > so we'll need to accomodate that somehow.
> > > 
> > > Why not just probe _PRT in the match()? According to the spec, _PRT should
> > > be mandatory for all PCI root bridges.
> > 
> > I'm confused... if we were to make pchb_acpi_match() fail to match when the
> > root bridge device doesn't have a _PRT object, then how would you propose to
> > support systems like mine where some of the PCI root bridge devices don't have
> > _PRT objects?
> 
> hmm...
> Can you try processing of _CRS of pci_intr_map() written to the patch
> of ia64?
> 
>   http://mail-index.NetBSD.org/tech-kern/2013/04/15/msg015173.html
> 
> Linux was performing this processing by MI layer(under drivers/acpi/). 
> This processing is also implemented by pchb_acpi.c. 

I guess you're thinking about making an MI acpi_pci_intr_map() that
can be called from pci_intr_map() on both x86 and ia64?   that sounds reasonable.
I can try doing that but I'm not sure when I'll have time for it.

-Chuck
Technical Details
Message-ID: <fa.EVxZrUC8tuECUwOLYZyUhdxtR5c@ifi.uio.no>
Path: arc1-ca.pugleaf.net!y6ni12913qax.0!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!uio.no!nntp.uio.no!.POSTED!not-for-mail
References: <fa.Vqe2q/XnkjyxfjvIlyzs4OLpJOA@ifi.uio.no> <fa.2Akj5++D5LZKmGB4U1eo2a2zYD0@ifi.uio.no> <fa.tc62fFbce0+SpYHu6pZx1/9D9qU@ifi.uio.no> <fa.65Elgd/j+g3tVnbxQvt4GD3dFn4@ifi.uio.no>

Show Full Headers
Complete Article Headers
X-Google-Thread: b7e13b6095,c9fc83a65eb70a5f
X-Google-Attributes: gidb7e13b6095,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,ASCII-7-bit
X-Received: by 10.224.10.6 with SMTP id n6mr32381487qan.4.1367804587220;
        Sun, 05 May 2013 18:43:07 -0700 (PDT)
Path: arc1-ca.pugleaf.net!y6ni12913qax.0!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!uio.no!nntp.uio.no!.POSTED!not-for-mail
From: Chuck Silvers <chuq@chuq.com>
Newsgroups: fa.netbsd.tech.kern
Subject: Re: pchb@acpi again
Date: Mon, 06 May 2013 01:43:06 UTC
Organization: Internet mailing list
Lines: 46
Sender: tech-kern-owner@NetBSD.org
Message-ID: <fa.EVxZrUC8tuECUwOLYZyUhdxtR5c@ifi.uio.no>
References: <fa.Vqe2q/XnkjyxfjvIlyzs4OLpJOA@ifi.uio.no> <fa.2Akj5++D5LZKmGB4U1eo2a2zYD0@ifi.uio.no> <fa.tc62fFbce0+SpYHu6pZx1/9D9qU@ifi.uio.no> <fa.65Elgd/j+g3tVnbxQvt4GD3dFn4@ifi.uio.no>
NNTP-Posting-Host: mail-jess.uio.no
Mime-Version: 1.0
X-Trace: readme.uio.no 1367804586 12626 129.240.7.9 (6 May 2013 01:43:06 GMT)
X-Complaints-To: abuse@uio.no
NNTP-Posting-Date: Mon, 6 May 2013 01:43:06 +0000 (UTC)
User-Agent: Mutt/1.5.21 (2010-09-15)
Cc: current-users@NetBSD.org, tech-kern@netbsd.org
To: KIYOHARA Takashi <kiyohara@kk.iij4u.or.jp>
Delivered-To: tech-kern@netbsd.org
X-Virus-Scanned: amavisd-new at NetBSD.org
In-Reply-To: <20130422.210757.70567257.kiyohara@kk.iij4u.or.jp>
List-Id: tech-kern.NetBSD.org
Original-Date: Sun, 5 May 2013 18:42:33 -0700
Original-Message-Id: <20130506014233.GA673@spathi.chuq.com>
Original-References: <20130414012619.GA6627@spathi.chuq.com>
 <20130414212606.GA28389@marx.bitnet>
 <20130421143229.GA7327@spathi.chuq.com>
 <20130422.210757.70567257.kiyohara@kk.iij4u.or.jp>
Bytes: 3514
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline