From owner-freebsd-i386@FreeBSD.ORG Mon Sep 29 10:10:00 2008 Return-Path: Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E80AB106569E for ; Mon, 29 Sep 2008 10:10:00 +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 C44088FC16 for ; Mon, 29 Sep 2008 10:10:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m8TAA008034096 for ; Mon, 29 Sep 2008 10:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m8TAA0c6034095; Mon, 29 Sep 2008 10:10:00 GMT (envelope-from gnats) Resent-Date: Mon, 29 Sep 2008 10:10:00 GMT Resent-Message-Id: <200809291010.m8TAA0c6034095@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Bagavathy kumar . M" 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 X-Send-Pr-Version: www-3.1 Cc: Subject: i386/127710: My driver PCI probe is not called for my corresponding device ID and Vendor ID X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Sep 2008 10:10:01 -0000 >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: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Sep 29 10:10:00 UTC 2008 >Closed-Date: >Last-Modified: >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: >Unformatted: