DragonFly BSD
DragonFly users List (threaded) for 2011-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

[no subject]


Date:

fA@mail.gmail.com>
From: Max Herrgard <herrgard@gmail.com>
Subject: Re: ACPI based interrupt routing and new ACPI code ready for testing
Date: Tue, 05 Apr 2011 15:08:54 +0200
BestServHost: crater.dragonflybsd.org
List-Post: <mailto:users@crater.dragonflybsd.org>
List-Subscribe: <mailto:users-request@crater.dragonflybsd.org?body=subscribe>
List-Unsubscribe: <mailto:users-request@crater.dragonflybsd.org?body=unsubscribe>
List-Help: <mailto:users-request@crater.dragonflybsd.org?body=help>
List-Owner: <mailto:owner-users@crater.dragonflybsd.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
References: <AANLkTin3Y3w2ObOydJrzqc0ofb9ZHhDo-eNp7+NeuRsz@mail.gmail.com>	<AANLkTink4Lgx5v0eWhdS83dA4J-fJSRNy6L7tsDtwJDb@mail.gmail.com>	<4D8B9C9B.6050101@gmail.com>	<201103241955.p2OJtugV056422@apollo.backplane.com>	<4D8BB0D6.2080204@gmail.com>	<AANLkTi=2FkiX1jqMEkW2CA+Eb_OaCghp4qfXGnjvw-iJ@mail.gmail.com>	<AANLkTikF3ALvkj2EGnKDDrZE-Tadp_Q4tcHu+K7e=qT0@mail.gmail.com>	<AANLkTimSz8WC8S5y--gt0Z7nAEYZVwdVSG1+BDy9tF9-@mail.gmail.com>	<4D999722.5080606@gmail.com> <BANLkTinDEKszPErwJXoxDhB2USpVa2pC
fA@mail.gmail.com>
In-Reply-To: <BANLkTinDEKszPErwJXoxDhB2USpVa2pCfA@mail.gmail.com>
Sender: users-errors@crater.dragonflybsd.org
Errors-To: users-errors@crater.dragonflybsd.org
Lines: 199
NNTP-Posting-Host: 65.120.238.198
X-Trace: 1302021116 crater_reader.dragonflybsd.org 905 65.120.238.198
Xref: crater_reader.dragonflybsd.org dragonfly.users:15638

Sepherosa Ziehau wrote:
> On Mon, Apr 4, 2011 at 6:02 PM, Max Herrgard<herrgard@gmail.com>  wrote:
>> Nope. Still the same, but they are now on different irqs. I noticed however
>> that my drm0 doesn't get set up with acpi interrupt routing turned on.
>
> Hmm, looks like its irq setting up is hosed somewhere else.  drm
> device itself is attached.
>
> As far as I understand the drm code, bus_setup_intr is triggered by
> user space program like Xorg, but there are some precondition check
> before bus_setup_intr is called.  Please set hw.dri.debug=1 (sysctl)
> and give me the output of vmstat -iv and dmesg, after you started
> Xorg.

Hm. I had to kldload radeon.ko to get the dri sysctl tree first.

drm0.vgapci0.pci1.pcib1.pci0.pcib0.acpi0.nexus0.root0
drm0: <ATI Radeon RV280 9200> [tentative] on vgapci0
vgapci0: Reserved 0x10000 bytes for rid 0x18 type 3 at 0xf8030000
vgapci0: child drm0 requested pci_enable_busmaster
info: [drm] Initialized radeon 1.29.0 20080528
drm0: <ATI Radeon RV280 9200> [attached!] on vgapci0

then I set hw.dri.0.debug=1 and did startx.

http://leaf.dragonflybsd.org/~mh/vdmesg
http://leaf.dragonflybsd.org/~mh/vmstat

[drm:pid943:drm_open] open_count = 0
[drm:pid943:drm_open_helper] pid = 943, minor = 0
[drm:pid943:radeon_driver_open]
[drm:pid943:drm_addmap] offset = 0x00000000, size = 0x00002000, type = 2
[drm:pid943:drm_addmap] 8192 13 0xffffffe01d9d6000
[drm:pid943:drm_addmap] Added map 2 0xffffffe01d9d6000/0x2000
vgapci0: Reserved 0x8000000 bytes for rid 0x10 type 3 at 0xe8000000
[drm:pid943:drm_addmap] offset = 0xe8000000, size = 0x08000000, type = 0
[drm:pid943:drm_addmap] Added map 0 0xe8000000/0x8000000
[drm:pid943:drm_firstopen]
[drm:pid943:drm_ioctl] pid=943, cmd=0xc0406400, nr=0x00, dev 
0xffffffe005daa008, auth=1
[drm:pid943:drm_ioctl] pid=943, cmd=0xc0406400, nr=0x00, dev 
0xffffffe005daa008, auth=1
[drm:pid943:drm_close] open_count = 1
[drm:pid943:drm_close] pid = 943, device = 0xffffffe005daa008, 
open_count = 1
[drm:pid943:drm_lastclose]
[drm:pid943:radeon_do_cleanup_cp]
[drm:pid943:drm_open] open_count = 0
[drm:pid943:drm_open_helper] pid = 943, minor = 0
[drm:pid943:radeon_driver_open]
[drm:pid943:drm_addmap] offset = 0x00000000, size = 0x00002000, type = 2
[drm:pid943:drm_addmap] 8192 13 0xffffffe01d9d6000
[drm:pid943:drm_addmap] Added map 2 0xffffffe01d9d6000/0x2000
[drm:pid943:drm_addmap] offset = 0xe8000000, size = 0x08000000, type = 0
[drm:pid943:drm_addmap] Added map 0 0xe8000000/0x8000000
[drm:pid943:drm_firstopen]
[drm:pid943:drm_ioctl] pid=943, cmd=0xc0106407, nr=0x07, dev 
0xffffffe005daa008, auth=1
[drm:pid943:drm_ioctl] pid=943, cmd=0xc0106401, nr=0x01, dev 
0xffffffe005daa008, auth=1
[drm:pid943:drm_ioctl] pid=943, cmd=0xc0106401, nr=0x01, dev 
0xffffffe005daa008, auth=1
[drm:pid943:drm_ioctl] pid=943, cmd=0xc0406400, nr=0x00, dev 
0xffffffe005daa008, auth=1
[drm:pid943:drm_ioctl] pid=943, cmd=0xc0406400, nr=0x00, dev 
0xffffffe005daa008, auth=1
[drm:pid943:drm_close] open_count = 1
[drm:pid943:drm_close] pid = 943, device = 0xffffffe005daa008, 
open_count = 1
[drm:pid943:drm_lastclose]
[drm:pid943:radeon_do_cleanup_cp]
[drm:pid943:drm_open] open_count = 0
[drm:pid943:drm_open_helper] pid = 943, minor = 0
[drm:pid943:radeon_driver_open]
[drm:pid943:drm_addmap] offset = 0x00000000, size = 0x00002000, type = 2
[drm:pid943:drm_addmap] 8192 13 0xffffffe01d9d6000
[drm:pid943:drm_addmap] Added map 2 0xffffffe01d9d6000/0x2000
[drm:pid943:drm_addmap] offset = 0xe8000000, size = 0x08000000, type = 0
[drm:pid943:drm_addmap] Added map 0 0xe8000000/0x8000000
[drm:pid943:drm_firstopen]
[drm:pid943:drm_ioctl] pid=943, cmd=0xc0406400, nr=0x00, dev 
0xffffffe005daa008, auth=1
[drm:pid943:drm_ioctl] pid=943, cmd=0xc0406400, nr=0x00, dev 
0xffffffe005daa008, auth=1
[drm:pid943:drm_close] open_count = 1
[drm:pid943:drm_close] pid = 943, device = 0xffffffe005daa008, 
open_count = 1
[drm:pid943:drm_lastclose]
[drm:pid943:radeon_do_cleanup_cp]
[drm:pid943:drm_open] open_count = 0
[drm:pid943:drm_open_helper] pid = 943, minor = 0
[drm:pid943:radeon_driver_open]
[drm:pid943:drm_addmap] offset = 0x00000000, size = 0x00002000, type = 2
[drm:pid943:drm_addmap] 8192 13 0xffffffe01d9d6000
[drm:pid943:drm_addmap] Added map 2 0xffffffe01d9d6000/0x2000
[drm:pid943:drm_addmap] offset = 0xe8000000, size = 0x08000000, type = 0
[drm:pid943:drm_addmap] Added map 0 0xe8000000/0x8000000
[drm:pid943:drm_firstopen]
[drm:pid943:drm_ioctl] pid=943, cmd=0xc0406400, nr=0x00, dev 
0xffffffe005daa008, auth=1
[drm:pid943:drm_ioctl] pid=943, cmd=0xc0406400, nr=0x00, dev 
0xffffffe005daa008, auth=1
[drm:pid943:drm_close] open_count = 1
[drm:pid943:drm_close] pid = 943, device = 0xffffffe005daa008, 
open_count = 1
[drm:pid943:drm_lastclose]
[drm:pid943:radeon_do_cleanup_cp]
[drm:pid943:drm_open] open_count = 0
[drm:pid943:drm_open_helper] pid = 943, minor = 0
[drm:pid943:radeon_driver_open]
[drm:pid943:drm_addmap] offset = 0x00000000, size = 0x00002000, type = 2
[drm:pid943:drm_addmap] 8192 13 0xffffffe01d9d6000
[drm:pid943:drm_addmap] Added map 2 0xffffffe01d9d6000/0x2000
[drm:pid943:drm_addmap] offset = 0xe8000000, size = 0x08000000, type = 0
[drm:pid943:drm_addmap] Added map 0 0xe8000000/0x8000000
[drm:pid943:drm_firstopen]
[drm:pid943:drm_ioctl] pid=943, cmd=0xc0106407, nr=0x07, dev 
0xffffffe005daa008, auth=1
[drm:pid943:drm_ioctl] pid=943, cmd=0xc0106401, nr=0x01, dev 
0xffffffe005daa008, auth=1
[drm:pid943:drm_ioctl] pid=943, cmd=0xc0106401, nr=0x01, dev 
0xffffffe005daa008, auth=1
[drm:pid943:drm_ioctl] pid=943, cmd=0xc0106407, nr=0x07, dev 
0xffffffe005daa008, auth=1
[drm:pid943:drm_ioctl] pid=943, cmd=0xc0286415, nr=0x15, dev 
0xffffffe005daa008, auth=1
[drm:pid943:drm_addmap] offset = 0x00000000, size = 0x00002000, type = 2
[drm:pid943:drm_addmap] Found kernel map 2
[drm:pid943:drm_addmap] Added map 2 0xffffffe01d9d6000/0x2000
[drm:pid943:drm_ioctl] pid=943, cmd=0xc0286415, nr=0x15, dev 
0xffffffe005daa008, auth=1
[drm:pid943:drm_addmap] offset = 0xe8000000, size = 0x08000000, type = 0
[drm:pid943:drm_addmap] Found kernel map 0
[drm:pid943:drm_addmap] Added map 0 0xe8000000/0x8000000
[drm:pid943:drm_ioctl] pid=943, cmd=0xc0106426, nr=0x26, dev 
0xffffffe005daa008, auth=1
[drm:pid943:drm_ioctl] pid=943, cmd=0xc0106426, nr=0x26, dev 
0xffffffe005daa008, auth=1
[drm:pid943:drm_ioctl] pid=943, cmd=0xc0086420, nr=0x20, dev 
0xffffffe005daa008, auth=1
[drm:pid943:drm_ctxbitmap_next] bit : 1
[drm:pid943:drm_addctx] 1
[drm:pid943:drm_ioctl] pid=943, cmd=0x80086422, nr=0x22, dev 
0xffffffe005daa008, auth=1
[drm:pid943:drm_ioctl] pid=943, cmd=0x8008642a, nr=0x2a, dev 
0xffffffe005daa008, auth=1
[drm:pid943:drm_lock] 1 (pid 943) requests lock (0x00000000), flags = 
0x00000000
[drm:pid943:drm_lock] 1 has lock
[drm:pid943:drm_ioctl] pid=943, cmd=0x8004667d, nr=0x7d, dev 
0xffffffe005daa008, auth=1
[drm:pid943:drm_ioctl] pid=943, cmd=0x8004667c, nr=0x7c, dev 
0xffffffe005daa008, auth=1
[drm:pid943:drm_ioctl] pid=943, cmd=0x20006430, nr=0x30, dev 
0xffffffe005daa008, auth=1
[drm:pid943:drm_ioctl]     returning 22
[drm:pid943:drm_ioctl] pid=943, cmd=0x80786440, nr=0x40, dev 
0xffffffe005daa008, auth=1
[drm:pid943:radeon_do_cleanup_cp]
[drm:pid943:drm_ioctl] pid=943, cmd=0x8004667d, nr=0x7d, dev 
0xffffffe005daa008, auth=1
[drm:pid943:drm_ioctl] pid=943, cmd=0xc0086421, nr=0x21, dev 
0xffffffe005daa008, auth=1
[drm:pid943:drm_rmctx] 1
[drm:pid943:drm_ioctl] pid=943, cmd=0xc0106426, nr=0x26, dev 
0xffffffe005daa008, auth=1
[drm:pid943:drm_ioctl] pid=943, cmd=0xc0106426, nr=0x26, dev 
0xffffffe005daa008, auth=1
[drm:pid943:drm_ioctl] pid=943, cmd=0x8008642b, nr=0x2b, dev 
0xffffffe005daa008, auth=1
[drm:pid943:drm_unlock] 1 (pid 943) requests unlock (0x80000001), flags 
= 0x00000000
[drm:pid943:drm_close] open_count = 1
[drm:pid943:drm_close] pid = 943, device = 0xffffffe005daa008, 
open_count = 1
[drm:pid943:drm_lastclose]
[drm:pid943:radeon_do_cleanup_cp]

vmstat -iv
interrupt                                                      total 
    rate
irq0: clk   86720        269
irq4: sio0            0          0
irq7: ppc0                     1          0
irq9: acpi0     0          0
irq10: ral0/rl0/vge0/ehci0          9713         30
irq11: fwohci0/pcm0/rl1/atapci0/uhci0/uhci1/uhci2/uhci3  10109  31
irq14: ata0      37          0
irq15: ata1   0          0
irq19           46          0
irq21            7545         23
irq192: swi_siopoll         0          0
irq195: swi_cambio               0          0
irq196: swi_vm             0          0
irq197: swi_taskq/swi_mp_taskq      0          0
Total          114171        354


Max



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]