[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5029794F.1050302@zytor.com>
Date: Mon, 13 Aug 2012 15:01:51 -0700
From: "H. Peter Anvin" <hpa@...or.com>
To: Betty Dall <betty.dall@...com>
CC: Andi Kleen <ak@...ux.intel.com>, Andi Kleen <andi@...stfloor.org>,
x86@...nel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] x86, pci: Fix all early PCI scans to check the vendor
ID first
On 08/13/2012 02:58 PM, Betty Dall wrote:
>
> I checked the PCI specification, and Peter is right that function
> numbers can be sparse. Please go with version 1 of the patch, as Andi
> suggested. I will follow up by looking at why the three scans are not
> consistent and send a patch, if appropriate. The scans could be improved
> by stopping the function scan if function 0 does not exist because
> function 0 is required, and if it is not there then none of the other
> functions will be implemented.
>
Yes, if function 0 doesn't exist we could, and *should* skip functions
1-7; in fact, we should not process functions 1-7 unless the
multifunction bit is set in function 0. This matters on real devices in
the field.
-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists