Bug in warning message from MTRR rework in uvesafb

Dave Airlie airlied at gmail.com
Thu Jul 11 00:21:44 PDT 2013


On Thu, Jul 11, 2013 at 3:36 AM, Andy Lutomirski <luto at amacapital.net> wrote:
> On Wed, Jul 10, 2013 at 10:07 AM, Torsten Kaiser
> <just.for.lkml at googlemail.com> wrote:
>> Commit 63e28a7a5ffce59b645ca9cbcc01e1e8be56bd75, "uvesafb: Clean up
>> MTRR code" contains the following change:
>>
>> @@ -1930,6 +1891,9 @@ static int uvesafb_setup(char *options)
>>          }
>>      }
>>
>> +    if (mtrr != 3 && mtrr != 1)
>> +        pr_warn("uvesafb: mtrr should be set to 0 or 3; %d is
>> unsupported", mtrr);
>> +
>>      return 0;
>>  }
>>  #endif /* !MODULE */
>>
>> Shouldn't this be && mtrr != 0?
>
> Indeed, and Sylvain Hitier (cc'd) sent a patch (off-list) that must
> have gotten lost somewhere.
>


Yeah I should get an email reply thing for off-list stuff, as its even
more likely I'll lose it.

Dave.


More information about the dri-devel mailing list