[PATCH] radeon: enable hawaii accel conditionally (v2)
Michel Dänzer
michel at daenzer.net
Wed Jul 30 18:56:25 PDT 2014
On 31.07.2014 00:37, Alex Deucher wrote:
> On Tue, Jul 29, 2014 at 9:47 PM, Michel Dänzer <michel at daenzer.net> wrote:
>> On 29.07.2014 23:34, Alex Deucher wrote:
>>> Only if the kernel has the new CP firmware.
>>>
>>> v2: check value of ACCEL_WORKING2
>>>
>>> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
>>> ---
>>> src/radeon_kms.c | 9 ++++++---
>>> 1 file changed, 6 insertions(+), 3 deletions(-)
>>>
>>> diff --git a/src/radeon_kms.c b/src/radeon_kms.c
>>> index 707d0c7..c4cf876 100644
>>> --- a/src/radeon_kms.c
>>> +++ b/src/radeon_kms.c
>>> @@ -400,8 +400,12 @@ static Bool RADEONIsAccelWorking(ScrnInfoPtr pScrn)
>>> }
>>> return FALSE;
>>> }
>>> - if (tmp)
>>> + if (info->ChipFamily == CHIP_FAMILY_HAWAII) {
>>> + if (tmp == 2)
>>> + return TRUE;
>>
>> I think this should be
>>
>> if (tmp >= 2)
>>
>> or we can't use ACCEL_WORKING2 for any more such cases.
>
> I think it should be fine. The kernel only returns 2 for hawaii. If
> we find some other issue where we need to bump it again, we can return
> 3 and check for that in userspace. Presumably if something similar
> happens on other asics, we can treat them separately.
Yeah, after seeing the corresponding kernel patch, I agree. So this is
Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
But please don't forget adding this check to the Gallium winsys code as
well. :)
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
More information about the xorg-driver-ati
mailing list