From owner-freebsd-bugs@FreeBSD.ORG Tue May 3 00:00:25 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B95F91065673 for ; Tue, 3 May 2011 00:00:25 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9D3B48FC13 for ; Tue, 3 May 2011 00:00:25 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4300PN8033529 for ; Tue, 3 May 2011 00:00:25 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4300PW3033527; Tue, 3 May 2011 00:00:25 GMT (envelope-from gnats) Date: Tue, 3 May 2011 00:00:25 GMT Message-Id: <201105030000.p4300PW3033527@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Craig Leres Cc: Subject: Re: kern/147583: [puc] [patch] sys/dev/puc/pucdata.c: incorrect clock value for Oxford OX16PCI954 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Craig Leres List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 May 2011 00:00:25 -0000 The following reply was made to PR kern/147583; it has been noted by GNATS. From: Craig Leres To: John Baldwin Cc: bug-followup@freebsd.org Subject: Re: kern/147583: [puc] [patch] sys/dev/puc/pucdata.c: incorrect clock value for Oxford OX16PCI954 Date: Mon, 02 May 2011 16:51:58 -0700 This is a multi-part message in MIME format. --------------070004090208010800000709 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit > Hmmmm. Can you download my gdb scripts from www.freebsd.org/~jhb/gdb/ into a > directory, and then do this: I had to tweak the scrips a bit (machine_arch doesn't exist) but I've attached the output. Craig --------------070004090208010800000709 Content-Type: text/plain; name="kgdb.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="kgdb.txt" hot 1 % kgdb [...] at ../../../kern/sched_ule.c:1865 1865 cpuid = PCPU_GET(cpuid); (kgdb) source gdb6 (kgdb) set pagination off (kgdb) devinfo [...] pcib2 0xffffff0002c5e600 (0xffffff0003001680) pci5 0xffffff0002c63100 (0x0) pcib3 0xffffff0002c63300 (0xffffff0003001700) pci6 0xffffff0002c46a00 (0x0) puc0 0xffffff0002c46100 (0xffffff0002c6a200) [...] (kgdb) set $sc = (struct puc_softc *)0xffffff0002c6a200 (kgdb) set print pretty on (kgdb) print *$sc $2 = { sc_dev = 0xffffff0002c46100, sc_cfg = 0xffffffff80fed0a0, sc_cfg_data = 0, sc_bar = {{ b_res = 0xffffff0003206a80, b_rid = 16, b_type = 4 }, { b_res = 0x0, b_rid = -1, b_type = 0 }, { b_res = 0x0, b_rid = -1, b_type = 0 }, { b_res = 0x0, b_rid = -1, b_type = 0 }, { b_res = 0x0, b_rid = -1, b_type = 0 }, { b_res = 0x0, b_rid = -1, b_type = 0 }}, sc_ioport = { rm_list = { tqh_first = 0xffffff0003205d80, tqh_last = 0xffffff0003205e18 }, rm_mtx = 0xffffff0002c681c0, rm_link = { tqe_next = 0xffffff0002c6a2c0, tqe_prev = 0xffffffff80cbba98 }, rm_start = 0, rm_end = 0, rm_type = RMAN_ARRAY, rm_descr = 0xffffff00030001e0 "puc0 I/O port mapping" }, sc_iomem = { rm_list = { tqh_first = 0x0, tqh_last = 0xffffff0002c6a2c0 }, rm_mtx = 0xffffff00030001a0, rm_link = { tqe_next = 0xffffff0002c6a308, tqe_prev = 0xffffff0002c6a290 }, rm_start = 0, rm_end = 0, rm_type = RMAN_ARRAY, rm_descr = 0xffffff00030001c0 "puc0 I/O memory mapping" }, sc_irq = { rm_list = { tqh_first = 0xffffff0003205d00, tqh_last = 0xffffff0003206018 }, rm_mtx = 0xffffff0003000180, rm_link = { tqe_next = 0x0, tqe_prev = 0xffffff0002c6a2d8 }, rm_start = 0, rm_end = 0, rm_type = RMAN_ARRAY, rm_descr = 0xffffff0002c7ba00 "puc0 port numbers" }, sc_ires = 0xffffff0003205a80, sc_icookie = 0xffffff0003205980, sc_irid = 0, sc_nports = 4, sc_port = 0xffffff0002c6a400, sc_fastintr = -1, sc_leaving = 0, sc_polled = 0, sc_ilr = 0, sc_serdevs = 0 } --------------070004090208010800000709--