From owner-freebsd-acpi@FreeBSD.ORG Fri May 1 18:30:29 2009 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA30B106566B; Fri, 1 May 2009 18:30:29 +0000 (UTC) (envelope-from klingfon@gmail.com) Received: from mail-ew0-f171.google.com (mail-ew0-f171.google.com [209.85.219.171]) by mx1.freebsd.org (Postfix) with ESMTP id 10C3A8FC13; Fri, 1 May 2009 18:30:28 +0000 (UTC) (envelope-from klingfon@gmail.com) Received: by ewy19 with SMTP id 19so2463314ewy.43 for ; Fri, 01 May 2009 11:30:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=0GV51blqIHNJl6hf7uxtMXpKS7yVR/VWAKOnsPo5b2I=; b=mTGviJGtnyHAvD9iec//rq0da4tt2XBvWRxiI5CJSazEC0O8HNL5l8mxRTKJQ2dd5I 8t9lKdKPHD5Uq1meA1FEVLy9+q8qYV3wSf9axoqaVZf9Zbu2gjCLkf2GV9AyFAWKMzGD T44xYl9EHI1V8/2/qgeocbY5Z1PmTEo9/ATlM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=aKv6QvDj8XGfNGuo2a3sJB4nrpGH25a3LPx0qAXTaTdT/VVdpjD2PzE+sGEZm1Ft2B 3MRAyYT96i8syH+136ytMEDDVHo44WF5V9cTgwTVSwehMqQG/OGh31Qrig5ZyIa/AEmP lSUviS2GETD7G5ML/XsSuWjOgjzW8CeCmMBxo= MIME-Version: 1.0 Received: by 10.210.44.12 with SMTP id r12mr816051ebr.21.1241202628169; Fri, 01 May 2009 11:30:28 -0700 (PDT) In-Reply-To: <200904300836.34238.jhb@freebsd.org> References: <43b1bb350904230622u4b7790f0p9f665b649c97a3b@mail.gmail.com> <43b1bb350904250326o63cb3085vc6a7079fba7cd700@mail.gmail.com> <43b1bb350904250327n2bc0c651y7e725abda56538b0@mail.gmail.com> <200904300836.34238.jhb@freebsd.org> Date: Fri, 1 May 2009 20:30:28 +0200 Message-ID: <43b1bb350905011130q4f58c018g66a9e4624c364b65@mail.gmail.com> From: Magnus Kling To: John Baldwin Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-acpi@freebsd.org Subject: Re: Fwd: Kernel panic on 7.2-RC1 when booting with ACPI enabled kernel. X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 May 2009 18:30:30 -0000 2009/4/30 John Baldwin > On Saturday 25 April 2009 6:27:23 am Magnus Kling wrote: > > 2009/4/24 John Baldwin > > > Can you do 'frame 10' followed by 'p *(struct acpi_pci_devinfo > > > *)child->ivars' > > > > > > -- > > > John Baldwin > > > > > > Sure, no problem. This is a none critical server so I can do alot of > > debugging and testing if that is needed. > > > > > > (kgdb) frame 10 > > #10 0xc0db4ca8 in acpi_pci_child_location_str_method (cbdev=0xc2212680, > > child=0xc2243400, buf=0xc22c2400 "slot=0 function=0 handle=", > > buflen=1024) > > at /usr/src/sys/modules/acpi/acpi/../../../dev/acpica/acpi_pci.c:150 > > 150 strlcat(buf, acpi_name(dinfo->ap_handle), buflen); > > > > (kgdb) p *(struct acpi_pci_devinfo *)child->ivars > > $1 = {ap_dinfo = {pci_links = {stqe_next = 0xc0b00f8c}, resources = { > > stqh_first = 0xc0b00f8c, stqh_last = 0x1030000}, cfg = {dev = 0x0, > > bar = {4, 0, 0, 3257136600, 0, 0}, bios = 0, subvendor = 0, > > subdevice = 0, vendor = 0, device = 0, cmdreg = 0, statreg = 0, > > baseclass = 0 '\0', subclass = 0 '\0', progif = 0 '\0', revid = 0 > > Hmm, this is all completely wrong and trashed. What if you do 'p *child'? > > -- > John Baldwin > (kgdb) p *child $2 = {ops = 0xc2161800, link = {tqe_next = 0xc2243380, tqe_prev = 0xc2243484}, devlink = {tqe_next = 0xc2243380, tqe_prev = 0xc224348c}, parent = 0xc2212680, children = {tqh_first = 0xc2262880, tqh_last = 0xc2262704}, driver = 0xc0b7066c, devclass = 0xc211e240, unit = 0, nameunit = 0xc2241640 "atapci0", desc = 0xc223f900 "Promise PDC20621 UDMA100 controller", busy = 0, state = DS_ATTACHED, devflags = 0, flags = 13, order = 0 '\0', pad = 0 '\0', ivars = 0xc223f5c0, softc = 0xc2244800, sysctl_ctx = {tqh_first = 0xc2264380, tqh_last = 0xc2241594}, sysctl_tree = 0xc223f840} (kgdb) /Magnus