From owner-svn-src-all@FreeBSD.ORG Sat Jul 11 17:30:59 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 72F03106566C; Sat, 11 Jul 2009 17:30:59 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from mail-bw0-f221.google.com (mail-bw0-f221.google.com [209.85.218.221]) by mx1.freebsd.org (Postfix) with ESMTP id 66DFB8FC12; Sat, 11 Jul 2009 17:30:58 +0000 (UTC) (envelope-from onemda@gmail.com) Received: by bwz21 with SMTP id 21so1189191bwz.43 for ; Sat, 11 Jul 2009 10:30:57 -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 :content-transfer-encoding; bh=bQhciN7NVoOxHQBwk83kWs6r+yIpRjPBXEWAAPnoQyU=; b=qhFG6psKqG4awvr0GqsjH16DiOoRRbjw6UN9++Rs89mTPZcpivHKGPkdf6mhgzeClx jOsDtnnB4EWh0hvU5omyFXCEQlGZEVrDWmzSBUCNT8JMsT62I4MSIoGdpGXqCd54REti NXX0gAckcixz+m83wj4zSvhIy+ZFNFxZ8blrw= 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:content-transfer-encoding; b=xPTBljgOAEh+iHCUSbkB3Yi8Q58fU94PQPvE76cfIOELJ4X8A6bcL+0MJ20EtHo5ab RC1Y7uwkdP2DQTfoMwhEWX8fGCHzlrFHJ/urftlDXT7OkO/FoO8SGW1FZ+sp8kggxzAB BFOT5s4GC0HgKEqC3DhPV8zF7eQIHkV5ievko= MIME-Version: 1.0 Received: by 10.204.62.135 with SMTP id x7mr3224459bkh.95.1247333457426; Sat, 11 Jul 2009 10:30:57 -0700 (PDT) In-Reply-To: <3a142e750907110250p166d2d64q19a3c883ef79ba43@mail.gmail.com> References: <200907100818.n6A8I8p1011853@svn.freebsd.org> <3a142e750907110250p166d2d64q19a3c883ef79ba43@mail.gmail.com> Date: Sat, 11 Jul 2009 19:30:57 +0200 Message-ID: <3a142e750907111030h159ac2e0q435e5ddbc305fb14@mail.gmail.com> From: "Paul B. Mahol" To: Scott Long Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r195534 - in head: etc/mtree include lib/libcam sbin/camcontrol share/man/man4 sys/cam sys/cam/ata sys/cam/scsi sys/conf sys/dev/advansys sys/dev/ahci sys/dev/aic7xxx sys/dev/amd sys/de... X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Jul 2009 17:30:59 -0000 On 7/11/09, Paul B. Mahol wrote: > This one breaks cam.ko for me. > I can't load cam any more. I can't load ahci.ko > If I try to use umass it will panic system(obviously because cam is > never loaded in kernel) It is loaded (somehow in bad shape) but not reported via kldstat. > Well that is another bug because umass should not be loaded at first place. db:0:kdb.enter.unknown> bt Tracing pid 33066 tid 100081 td 0xc41d3d80 malloc_type_zone_allocated(c108ca80,0,1,0,c41bea0c,...) at malloc_type_zone_allocated+0x31 malloc(3c,c43c20c4,1,c41bea0c,c3be9b18,...) at malloc+0xfd cam_devq_alloc(0,1,c3be9b64,c444ec2d,1,...) at cam_devq_alloc+0x23 cam_simq_alloc(1,3e8,c41bea8c,c44529c0,9,...) at cam_simq_alloc+0x19 umass_attach(c45dda00,c450905c,c064d8a8,c0621520,80000000,...) at umass_attach+0x323 device_attach(c45dda00,4,c0621469,9f1) at device_attach+0x36a device_probe_and_attach(c45dda00,c3be9c18,ffffffff,c3e28800,0,...) at device_probe_and_attach+0x53 usb_probe_and_attach_sub(c3e28800,0,c447461b,4d8,7373614d,...) at usb_probe_and_attach_sub+0x71 usb_probe_and_attach(c3e28800,ff,c3f79800,1,5,...) at usb_probe_and_attach+0x146 uhub_explore(c3f79800,0,c4473a37,e0,c451cd34,...) at uhub_explore+0x4c9 usb_bus_explore(c451cd34,c451cdac,c4475dee,67,c0692640,...) at usb_bus_explore+0xb3 usb_process(c451ccd4,c3be9d38,c061a053,342,c4373aa0,...) at usb_process+0xda fork_exit(c446cff9,c451ccd4,c3be9d38) at fork_exit+0xb8 fork_trampoline() at fork_trampoline+0x8 --- trap 0, eip = 0, esp = 0xc3be9d70, ebp = 0 --- > When trying to load cam.ko nothing verbose is displayed, just this: > > module_register: module probe already exists! > Module probe failed to register: 17 Argh, it's so obvious, it doesnt get loaded because module probe is used twice with PERIPHDRIVER_DECLARE(probe, ...) in scsi_xpt.c and ata_xpt.c If I load cam from loader it works fine. I was attempting to fix this "probe" issue already but I give up because I did not get any results(maybe because cam.ko was really already "loaded"?) Now one nasty question: Is there any plan to make cam.ko unloadable? -- Paul