From nobody@FreeBSD.org Mon Sep 29 10:02:15 2008 Return-Path: Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9378A1065689 for ; Mon, 29 Sep 2008 10:02:15 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 836AB8FC29 for ; Mon, 29 Sep 2008 10:02:15 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id m8TA2Enl065006 for ; Mon, 29 Sep 2008 10:02:14 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id m8TA2E95065005; Mon, 29 Sep 2008 10:02:14 GMT (envelope-from nobody) Message-Id: <200809291002.m8TA2E95065005@www.freebsd.org> Date: Mon, 29 Sep 2008 10:02:14 GMT From: "Bagavathy kumar . M" To: freebsd-gnats-submit@FreeBSD.org Subject: My driver PCI probe is not called for my corresponding device ID and Vendor ID X-Send-Pr-Version: www-3.1 X-GNATS-Notify: >Number: 127710 >Category: i386 >Synopsis: My driver PCI probe is not called for my corresponding device ID and Vendor ID >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-i386 >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Sep 29 10:10:00 UTC 2008 >Closed-Date: Wed Oct 01 12:18:46 UTC 2008 >Last-Modified: Wed Oct 1 12:20:04 UTC 2008 >Originator: Bagavathy kumar . M >Release: FreeBSD 6.2 >Organization: HCL >Environment: FreeBSD localhost.localdomain 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Sat Jun 28 01:01:29 IST 2008 >Description: Unable to probe SAS/SATA Controller (Class ID :0x01,Sub Class:0x07,programming interface:0x00) in FreeBSD 6.2 >How-To-Repeat: Every Time When iam loading my driver my probe function is not called for my corresponding Device ID & Vendor ID. >Fix: A PCI to Card Bus Bridge driver is loaded as a static module probed all the devices having the sub class id – 0x07 & programming interface code – 0x00. Source path: /src/sys/dev/pccbb/pccbb_pci.c. Add a Check of the Class ID as 06 in the pci probe function of the Card bus driver static int cbb_pci_probe(device_t brdev) { const char *name; uint32_t progif; uint32_t subclass; ++++ uint32_t class; ............................ ................................................................ /* * We do support generic CardBus bridges. All that we've seen * to date have progif 0 (the Yenta spec, and successors mandate * this). */ ++++ class = pci_get_class(brdev); subclass = pci_get_subclass(brdev); progif = pci_get_progif(brdev); ++++ if(class == PCIC_BRIDGE){ if (subclass == PCIS_BRIDGE_CARDBUS && progif == 0) { device_set_desc(brdev, "PCI-CardBus Bridge"); return (BUS_PROBE_DEFAULT); } ++++ } return (ENXIO); } >Release-Note: >Audit-Trail: State-Changed-From-To: open->closed State-Changed-By: remko State-Changed-When: Wed Oct 1 12:18:45 UTC 2008 State-Changed-Why: This is not a PR but probably an error at the users level. http://www.freebsd.org/cgi/query-pr.cgi?pr=127710 From: Remko Lodder To: "Bagavathy kumar . M" Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: i386/127710: My driver PCI probe is not called for my corresponding device ID and Vendor ID Date: Wed, 01 Oct 2008 14:18:04 +0200 Bagavathy kumar . M wrote: Please submit this question to the hackers@FreeBSD.org mailinglist. This is not a PR (yet), you might have done something wrong to your code or are missing logic(s) which are needed in that case. I will close the ticket because of that. Thanks for taking the time to report this and for using FreeBSD, it's appreciated! -- /"\ Best regards, | remko@FreeBSD.org \ / Remko Lodder | remko@EFnet X http://www.evilcoder.org/ | / \ ASCII Ribbon Campaign | Against HTML Mail and News >Unformatted: