On 04/09/12 10:58, Abel Abraham Camarillo Ojeda wrote:
> On Sun, Apr 24, 2011 at 6:13 AM, Owain Ainsworth <zer...@googlemail.com>
> wrote:
>> On Sat, Apr 23, 2011 at 11:07:16PM -0400, Mark Peoples wrote:
>>> On Sun, Apr 03, 2011 at 08:37:08AM -0400, Mark Peoples wrote:
>>>> The following along with an update to xf86-video-ati-6.14.1 gets me some
> very sexy 1920x1080 on my Radeon HD5450
>>>
>>> the xorg driver part getting updated probably isn't going to happen any
> time soon, but can the pci bits go in? thanks!
>>>
>>> Index: drm/radeon_drv.c
>>> ===================================================================
>>> RCS file: /cvs/src/sys/dev/pci/drm/radeon_drv.c,v
>>> retrieving revision 1.51
>>> diff -u drm/radeon_drv.c
>>> --- drm/radeon_drv.c B  B 29 Sep 2010 13:32:22 -0000 B  B  B 1.51
>>> +++ drm/radeon_drv.c B  B 3 Apr 2011 12:23:45 -0000
>>> @@ -526,6 +526,8 @@
>>> B  B  B  B  B  B  CHIP_RS880|RADEON_NEW_MEMMAP|RADEON_IS_IGP},
>>> B  B  B  B  {PCI_VENDOR_ATI, PCI_PRODUCT_ATI_RADEON_HD4200_M,
>>> B  B  B  B  B  B 
> CHIP_RS880|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP},
>>> + B  B  B  {PCI_VENDOR_ATI, PCI_PRODUCT_ATI_RADEON_HD5450,
>>> + B  B  B  B  B  CHIP_RS880|RADEON_NEW_MEMMAP},
>>> B  B  B  B  B {0, 0, 0}
>>
>> While this has been commited this is actually wrong.
>>
>> The chip is an evergreen (cedar, specifically) not a RS880. So it is
>> possible that something funny can happen when using this. I'll deal with
>> this when I get some time.
>>
>> -0-
>> --
>> Experience is something you don't get until just after you need it.
>> B  B  B  B  B  B  B  B -- Olivier
>>
> 
> I've got a new (supossedly) ATI Radeon HD 5450:
> 
> http://www.asus.com/Graphics_Cards/AMD_Series/EAH5450_SILENTDI1GD3LP/#specifi
> cations
> 
> I thought of adding something like this:
> 
> Index: pcidevs
> ===================================================================
> RCS file: /cvs/src/sys/dev/pci/pcidevs,v
> retrieving revision 1.1637
> diff -u -r1.1637 pcidevs
> --- pcidevs     5 Apr 2012 11:22:35 -0000       1.1637
> +++ pcidevs     9 Apr 2012 09:14:42 -0000
> @@ -1252,6 +1252,7 @@
>  product ATI RADEON_HD5700      0x68b8  Radeon HD 5700
>  product ATI RADEON_HD5670      0x68d8  Radeon HD 5670
>  product ATI MOBILITY_HD5470    0x68e0  Radeon Mobility HD 5470
> +product ATI RADEON_HD5450_1    0x68e1  Radeon HD 5450
>  product ATI RADEON_HD5450      0x68f9  Radeon HD 5450
>  product ATI RS100_PCI          0x700f  RS100 PCI
>  product ATI RS200_PCI          0x7010  RS200 PCI
> Index: drm/radeon_drv.c
> ===================================================================
> RCS file: /cvs/src/sys/dev/pci/drm/radeon_drv.c,v
> retrieving revision 1.57
> diff -u -r1.57 radeon_drv.c
> --- drm/radeon_drv.c    29 Jan 2012 22:36:18 -0000      1.57
> +++ drm/radeon_drv.c    9 Apr 2012 09:23:59 -0000
> @@ -533,6 +533,8 @@
>             CHIP_RS880|RADEON_NEW_MEMMAP|RADEON_IS_IGP},
>         {PCI_VENDOR_ATI, PCI_PRODUCT_ATI_RADEON_HD4200_M,
>             CHIP_RS880|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP},
> +       {PCI_VENDOR_ATI, PCI_PRODUCT_ATI_RADEON_HD5450_1,
> +           CHIP_RS880|RADEON_NEW_MEMMAP},
>         {PCI_VENDOR_ATI, PCI_PRODUCT_ATI_RADEON_HD5450,
>             CHIP_RS880|RADEON_NEW_MEMMAP},
>          {0, 0, 0}
> 
> But according to radeon(4) it's a CEDAR (not RS880) chip,
> anyway I applied the previous patch and my card is still in some
> kind of vesa mode...
> 
> There's something I can do to help getting this supported?
> 
> Thanks.
> 
> 
radeon_drv.c should not be changed to include CEDAR or other evergreen
chips as RS880. This is wrong it will not work, there needs to be a
separate drm for evergreen chips, CEDAR, PALM etc.

If you getting VESA mode then that is a separate issue, your looking in
the wrong place. you should look in
xenocara/driver/xf86-video-ati/src/pcidb/ati_pciids.cvs this already
contains 68e1 as

"0x68E1","CEDAR_68E1","CEDAR",1,,,,,"ATI Mobility Radeon HD 5000 Series"

You need to be using OpenBSD current and in the xorg.conf specify the
driver as radeon it will not be detected by default as given here in the
information for following current.

http://www.openbsd.org/faq/current.html#20120304

You will not get acceleration until drm for evergreen chips is
implemented, but should get the correct display.

Reply via email to