Re: [PATCH] fix x86 early quirk probing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday, June 13, 2008 1:02 pm Ingo Molnar wrote:
> * Jesse Barnes <jbarnes@xxxxxxxxxxxxxxxx> wrote:
> > On Friday, June 13, 2008 12:06 pm Matthew Wilcox wrote:
> > > On Fri, Jun 13, 2008 at 12:01:13PM -0700, Jesse Barnes wrote:
> > > > commit 7bcbc78dea92fdf0947fa48e248da3c993a5690f
> > > > Author: Neil Horman <nhorman@xxxxxxxxxxxxx>
> > > > Date:   Wed Jan 30 13:31:26 2008 +0100
> > > >
> > > >     x86: clean up arch/x86/kernel/early-quirks.c
> > > >
> > > >     clean up checkpatch errors. No code changed.
> > >
> > > Clearly a lie.  Do we need people to do objdump-based compares of
> > > source code before they're allowed to claim this in future?
> >
> > Yeah, maybe checkpatch.pl should include that in its output, "Be sure
> > the md5sums of the code & data match before you claim things are
> > identical". :)
>
> yeah, and we normally do that - see commits 97b44ae6cd8 or 177773ed87.
>
> The cleanup intent from Neil was good in principle: the early_quirks()
> function was too large and the introduction of check_dev_quirk()
> improved readability.

Yeah, the cleanup was a worthwhile one I think; when I saw the code it was 
pretty clear what went wrong though, just a common thinko.  No big deal.

>
> Btw., did this mistake cause any actual regression or misbehavior? The
> commit is rather old and i dont remember anything seriously blowing up
> due to this. (we had another far more serious bug in this area)

No, I haven't seen any problems on real platforms; I noticed this problem 
while doing bringup on a simulator.  The simulator has some other issues that 
make probing non-existent sub-functions a bad idea.  :)  On most machines 
it'll be an unnoticeable speedup (yay).

Jesse
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux