[laptop-discuss] Re: Atheros 5006XS vs ath-0.5 driver

Judy Chen Judy.Chen at sun.com
Fri Dec 29 22:10:19 PST 2006


Garrett D'Amore On 12/28/06 00:56 wrote:
>
> I'm not at all convinced that this _is_ false.  If the board has both
> bluetooth and wifi on it, then these are probably two separate devices,
> and it may be that there is a bridge on the board to separate them.
>
>   
Usually the prtconf output for an atheros wifi card would look like:

                compatible: 'pci168c,13.185f.1012.1' + 
'pci168c,13.185f.1012' +
'pci185f,1012' + 'pci168c,13.1' + 'pci168c,13' + 'pciclass,020000' + 
'pciclass,0200'
                model:  'Ethernet controller'

The model string should be something like above. But here the model 
string is:
                model:  "PCIe-PCI bridge"

With a close look at pci_boot.c(usr/src/uts/i86pc/pci/pci_boot.c)

static dev_info_t *
process_devfunc(uchar_t bus, uchar_t dev, uchar_t func, uchar_t header,
  ushort_t vendorid, int config_op)
{

  if (check_if_device_is_pciex(dip, bus, dev, func, &slot_num,
      &is_pci_bridge) == B_TRUE)
      pciex = 1;
  ...

  if (pciex && is_pci_bridge)
      (void) ndi_prop_update_string(DDI_DEV_T_NONE, dip, "model",
          (char *)"PCIe-PCI bridge");
  else
      add_model_prop(dip, classcode);

It seems to me that check_if_device_is_pciex() falsely think this device 
is a pciex bus.
Then it looks to me that this is a Solaris bug.

- Judy
_______________________________________________
laptop-discuss mailing list
laptop-discuss at opensolaris.org



More information about the laptop-discuss mailing list