From owner-freebsd-stable Tue Sep 19 22:34:30 2000 Delivered-To: freebsd-stable@freebsd.org Received: from mass.osd.bsdi.com (adsl-63-202-177-115.dsl.snfc21.pacbell.net [63.202.177.115]) by hub.freebsd.org (Postfix) with ESMTP id EEE7A37B424 for ; Tue, 19 Sep 2000 22:34:25 -0700 (PDT) Received: from mass.osd.bsdi.com (localhost [127.0.0.1]) by mass.osd.bsdi.com (8.9.3/8.9.3) with ESMTP id WAA02157; Tue, 19 Sep 2000 22:35:02 -0700 (PDT) (envelope-from msmith@mass.osd.bsdi.com) Message-Id: <200009200535.WAA02157@mass.osd.bsdi.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: Marc Fonvieille Cc: freebsd-stable@freebsd.org Subject: Re: pci.c from 2000/09/01 freeze my laptop In-reply-to: Your message of "Sat, 16 Sep 2000 13:54:50 +0200." <20000916135450.A7969@vobiscum.styx.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 19 Sep 2000 22:35:02 -0700 From: Mike Smith Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hello, > > I upgraded my 4-Stable on my laptop with ctms and after reboot > with new kernel the system freeze after that line: > > atapci0: port 0x8000-0x800f at device 7.1 > on pci0 > > So after long search i found that ctm src-4.0227.gz is guilty > (with src-4.0226.gz and previous no problems) ... > It seems that only the changes on sys/pci/pci.c could be the reason > of the freeze. Can you back this code out and confirm that you don't see the symptoms? In the case of your system, this code fragment shouldn't actually do *anything* at all, so I'm a little puzzled as to what might be going on. Thanks. > Here's the code: > > CTMFN sys/pci/pci.c 70 70 644 0dec08827f728a7e3af51801b6d2ba4b > 018e3bc3fa > 551c0dd7d4dd59ed8681f6 405 > d26 1 > a26 1 > * $FreeBSD: /ctm/FreeBSD/anoncvs/cvs/src/sys/pci/pci.c,v 1.141.2.3 > * 2000/ > 09/01 23:29:34 msmith Exp $ > d1082 4 > a1085 8 > if (type == SYS_RES_IOPORT && !pci_porten(cfg)) { > cfg->cmdreg |= PCIM_CMD_PORTEN; > pci_cfgwrite(cfg, PCIR_COMMAND, cfg->cmdreg, 2); > } > if (type == SYS_RES_MEMORY && !pci_memen(cfg)) { > cfg->cmdreg |= PCIM_CMD_MEMEN; > pci_cfgwrite(cfg, PCIR_COMMAND, cfg->cmdreg, 2); > } > > Any advices? > (If you need more informations: dmesg..., ask for it.) > > ps: in my kernel config i've got > > # ATA and ATAPI devices > device ata0 at isa? port IO_WD1 irq 14 > device ata1 at isa? port IO_WD2 irq 15 > device ata > device atadisk # ATA disk drives > device atapicd # ATAPI CDROM drives > options ATA_STATIC_ID #Static device numbering > #options ATA_ENABLE_ATAPI_DMA #Enable DMA on ATAPI devices > > Marc > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message > -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message