ATI Radeon HD6570

2012-11-23 Thread rustyBSD
Hi,
I have an ATI Radeon HD6570 card. Dmesg gives me:
vga1 at pci1 dev 0 function 0 vendor ATI, unknown product 0x6759 rev 0x00
and the driver used seems to be VESA.

I naturally changed to:

--- src/sys/dev/pci/pcidevs 2012-11-17 16:42:29.0 +0100
+++ src/sys/dev/pci/pcidevs 2012-11-23 12:58:50.357249029 +0100
@@ -1262,6 +1262,7 @@
 product ATI RADEON_X700_SE 0x5e4f  Radeon X700 SE
 product ATI RADEON_X700_SE_S   0x5e6f  Radeon X700 SE Sec
 product ATI RADEON_HD6670  0x6758  Radeon HD 6670
+product ATI RADEON_HD6570  0x6759  Radeon HD 6570
 product ATI RADEON_HD5800  0x6899  Radeon HD 5800
 product ATI RADEON_HD5700  0x68b8  Radeon HD 5700
 product ATI RADEON_HD5670  0x68d8  Radeon HD 5670


But it's still not recognized. I looked at pci/drm/radeon_drv.c,
but I'm not sure I can add my card, as - according to man radeon -
it's a REDWOOD chip, which doesn't seem to be supported on openbsd.

My questions are:
Are REDWOOD chips supported ?
If yes, how can I get my card work correctly ?
If no, is there any support planned ?

Thanks



Re: ATI Radeon HD6570

2012-11-23 Thread Nigel Taylor
On 11/23/12 14:00, rustyBSD wrote:
 Hi,
 I have an ATI Radeon HD6570 card. Dmesg gives me:
 vga1 at pci1 dev 0 function 0 vendor ATI, unknown product 0x6759 rev 0x00
 and the driver used seems to be VESA.
 
 I naturally changed to:
 
 --- src/sys/dev/pci/pcidevs   2012-11-17 16:42:29.0 +0100
 +++ src/sys/dev/pci/pcidevs   2012-11-23 12:58:50.357249029 +0100
 @@ -1262,6 +1262,7 @@
  product ATI RADEON_X700_SE   0x5e4f  Radeon X700 SE
  product ATI RADEON_X700_SE_S 0x5e6f  Radeon X700 SE Sec
  product ATI RADEON_HD66700x6758  Radeon HD 6670
 +product ATI RADEON_HD65700x6759  Radeon HD 6570
  product ATI RADEON_HD58000x6899  Radeon HD 5800
  product ATI RADEON_HD57000x68b8  Radeon HD 5700
  product ATI RADEON_HD56700x68d8  Radeon HD 5670
 
 
 But it's still not recognized. I looked at pci/drm/radeon_drv.c,
 but I'm not sure I can add my card, as - according to man radeon -
 it's a REDWOOD chip, which doesn't seem to be supported on openbsd.
 
 My questions are:
 Are REDWOOD chips supported ?
 If yes, how can I get my card work correctly ?
 If no, is there any support planned ?
 
 Thanks
 
 
That is not a REDWOOD chip, it's TURKS, and both should be supported,
the man page is wrong 6570 occurs both under REDWOOD and TURKS.
REDWOOD are 5x50 series. Could still be in the wrong chip family.

The Xorg.0.log should tell you if the card is detected, it can be
rejected for some other reason, then fall back to next driver.

Do you get a message in Xorg.0.log like,
GPU only supported with KMS, using vesa instead.



Re: ATI Radeon HD6570

2012-11-23 Thread rustyBSD
Le 23/11/2012 17:35, Nigel Taylor a écrit :
 That is not a REDWOOD chip, it's TURKS, and both should be supported,

Ahh yes I didn't see this in xorg.0.log

 the man page is wrong 6570 occurs both under REDWOOD and TURKS.
 REDWOOD are 5x50 series. Could still be in the wrong chip family.
 
 The Xorg.0.log should tell you if the card is detected, it can be
 rejected for some other reason, then fall back to next driver.
 
 Do you get a message in Xorg.0.log like,

Yes, I have:

[94.501] (II) VESA: driver for VESA chipsets: vesa
[94.502] (II) GPU only supported with KMS, using vesa instead.
[94.502] (II) Loading sub module vbe

 GPU only supported with KMS, using vesa instead.

I don't know if I'm wrong, but if I add
   product ATI RADEON_HD65700x6759  Radeon HD 6570
it should at least appear in dmesg, no ?



Re: ATI Radeon HD6570

2012-11-23 Thread Nigel Taylor
On 11/23/12 16:56, rustyBSD wrote:
 Le 23/11/2012 17:35, Nigel Taylor a écrit :
 That is not a REDWOOD chip, it's TURKS, and both should be supported,
 
 Ahh yes I didn't see this in xorg.0.log
 
 the man page is wrong 6570 occurs both under REDWOOD and TURKS.
 REDWOOD are 5x50 series. Could still be in the wrong chip family.

 The Xorg.0.log should tell you if the card is detected, it can be
 rejected for some other reason, then fall back to next driver.

 Do you get a message in Xorg.0.log like,
 
 Yes, I have:
 
 [94.501] (II) VESA: driver for VESA chipsets: vesa
 [94.502] (II) GPU only supported with KMS, using vesa instead.
 [94.502] (II) Loading sub module vbe
 
 GPU only supported with KMS, using vesa instead.
 
 I don't know if I'm wrong, but if I add
product ATI RADEON_HD6570  0x6759  Radeon HD 6570
 it should at least appear in dmesg, no ?
 
 
Should appear in the dmesg, providing the include files have been
updated, then you rebuilt the kernel and install it. By running make the
pcidevs change should cause pcidevs.h pcidevs_data.h to be updated.

You may need two product ID's, there may be audio also, as below the
graphics is 0x6758 and audio is 0xaa90.

pcidevs:product ATI RADEON_HD6670   0x6758  Radeon HD 6670
pcidevs:product ATI RADEON_HD6670_HDA   0xaa90  Radeon HD 6670 Audio

pcidevs.h:#define   PCI_PRODUCT_ATI_RADEON_HD6670   0x6758
/* Radeon HD 6670 */
pcidevs.h:#define   PCI_PRODUCT_ATI_RADEON_HD6670_HDA   0xaa90
/* Radeon HD 6670 Audio */

pcidevs_data.h: PCI_VENDOR_ATI, PCI_PRODUCT_ATI_RADEON_HD6670,
pcidevs_data.h: Radeon HD 6670,
pcidevs_data.h: PCI_VENDOR_ATI, PCI_PRODUCT_ATI_RADEON_HD6670_HDA,
pcidevs_data.h: Radeon HD 6670 Audio,




There is a test in radeon_probe that the chip family SUMO and those
after will only be supported with KMS, that includes the TURKS family of
chips.

The confusion between REDWOOD and TURKS is 6570 is TURKS, the mobility
version of 6570 is REDWOOD and should be 6570M.



Re: ATI Radeon HD6570

2012-11-23 Thread rustyBSD
Le 23/11/2012 21:44, Nigel Taylor a écrit :
 On 11/23/12 16:56, rustyBSD wrote:
 Le 23/11/2012 17:35, Nigel Taylor a écrit :
 That is not a REDWOOD chip, it's TURKS, and both should be supported,

 Ahh yes I didn't see this in xorg.0.log

 the man page is wrong 6570 occurs both under REDWOOD and TURKS.
 REDWOOD are 5x50 series. Could still be in the wrong chip family.

 The Xorg.0.log should tell you if the card is detected, it can be
 rejected for some other reason, then fall back to next driver.

 Do you get a message in Xorg.0.log like,

 Yes, I have:

 [94.501] (II) VESA: driver for VESA chipsets: vesa
 [94.502] (II) GPU only supported with KMS, using vesa instead.
 [94.502] (II) Loading sub module vbe

 GPU only supported with KMS, using vesa instead.

 I don't know if I'm wrong, but if I add
product ATI RADEON_HD6570 0x6759  Radeon HD 6570
 it should at least appear in dmesg, no ?


 Should appear in the dmesg, providing the include files have been
 updated, then you rebuilt the kernel and install it. By running make the
 pcidevs change should cause pcidevs.h pcidevs_data.h to be updated.
 
 You may need two product ID's, there may be audio also, as below the
 graphics is 0x6758 and audio is 0xaa90.
 
 pcidevs:product ATI RADEON_HD6670   0x6758  Radeon HD 6670
 pcidevs:product ATI RADEON_HD6670_HDA   0xaa90  Radeon HD 6670 Audio
 
 pcidevs.h:#define   PCI_PRODUCT_ATI_RADEON_HD6670   0x6758
 /* Radeon HD 6670 */
 pcidevs.h:#define   PCI_PRODUCT_ATI_RADEON_HD6670_HDA   0xaa90
 /* Radeon HD 6670 Audio */
 
 pcidevs_data.h: PCI_VENDOR_ATI, PCI_PRODUCT_ATI_RADEON_HD6670,
 pcidevs_data.h: Radeon HD 6670,
 pcidevs_data.h: PCI_VENDOR_ATI, PCI_PRODUCT_ATI_RADEON_HD6670_HDA,
 pcidevs_data.h: Radeon HD 6670 Audio,
 
 
 
 
 There is a test in radeon_probe that the chip family SUMO and those
 after will only be supported with KMS, that includes the TURKS family of
 chips.
 
 The confusion between REDWOOD and TURKS is 6570 is TURKS, the mobility
 version of 6570 is REDWOOD and should be 6570M.
 
 
 
 
 

So, what do I do ?
Here is the full dmesg, I should have post it before


OpenBSD 5.2-current (GENERIC.MP) #2: Fri Nov 23 22:13:59 CET 2012
root@JackBSD:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2144862208 (2045MB)
avail mem = 2065338368 (1969MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0x9f000 (58 entries)
bios0: vendor American Megatrends Inc. version 2202 date 08/19/2010
bios0: ASUSTeK Computer INC. M4A77T
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG OEMB SRAT HPET SSDT
acpi0: wakeup devices PCE2(S4) PCE3(S4) PCE4(S4) PCE5(S4) PCE6(S4) PCE7(S4) 
PCE9(S4) PCEA(S4) RLAN(S4) PCEB(S4) PCEC(S4) SBAZ(S4) PS2M(S4) PS2K(S4) 
UAR1(S4) P0PC(S4) UHC1(S4) UHC2(S4) UHC3(S4) USB4(S4) UHC5(S4) UHC6(S4) UHC7(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon(tm) II X3 455 Processor, 3315.29 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,ITSC
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 
16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative
cpu0: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative
cpu0: AMD erratum 721 detected and fixed
cpu0: apic clock running at 200MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Athlon(tm) II X3 455 Processor, 3314.90 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,ITSC
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 
16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative
cpu1: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative
cpu1: AMD erratum 721 detected and fixed
cpu2 at mainbus0: apid 2 (application processor)
cpu2: AMD Athlon(tm) II X3 455 Processor, 3314.90 MHz
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,ITSC
cpu2: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 
16-way L2 cache
cpu2: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative
cpu2: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative
cpu2: AMD erratum 721 detected and fixed
ioapic0 at mainbus0: apid 3 pa 0xfec0, version 21, 24 pins
acpimcfg0 at acpi0 addr 0xe000, bus 

Re: ATI Radeon HD6570

2012-11-23 Thread Nigel Taylor
On 11/23/12 21:26, rustyBSD wrote:
 Le 23/11/2012 21:44, Nigel Taylor a écrit :
 On 11/23/12 16:56, rustyBSD wrote:
 Le 23/11/2012 17:35, Nigel Taylor a écrit :
 That is not a REDWOOD chip, it's TURKS, and both should be supported,

 Ahh yes I didn't see this in xorg.0.log

 the man page is wrong 6570 occurs both under REDWOOD and TURKS.
 REDWOOD are 5x50 series. Could still be in the wrong chip family.

 The Xorg.0.log should tell you if the card is detected, it can be
 rejected for some other reason, then fall back to next driver.

 Do you get a message in Xorg.0.log like,

 Yes, I have:

 [94.501] (II) VESA: driver for VESA chipsets: vesa
 [94.502] (II) GPU only supported with KMS, using vesa instead.
 [94.502] (II) Loading sub module vbe

 GPU only supported with KMS, using vesa instead.

 I don't know if I'm wrong, but if I add
product ATI RADEON_HD65700x6759  Radeon HD 6570
 it should at least appear in dmesg, no ?


 Should appear in the dmesg, providing the include files have been
 updated, then you rebuilt the kernel and install it. By running make the
 pcidevs change should cause pcidevs.h pcidevs_data.h to be updated.

 You may need two product ID's, there may be audio also, as below the
 graphics is 0x6758 and audio is 0xaa90.

 pcidevs:product ATI RADEON_HD6670   0x6758  Radeon HD 6670
 pcidevs:product ATI RADEON_HD6670_HDA   0xaa90  Radeon HD 6670 Audio

 pcidevs.h:#define   PCI_PRODUCT_ATI_RADEON_HD6670   0x6758
 /* Radeon HD 6670 */
 pcidevs.h:#define   PCI_PRODUCT_ATI_RADEON_HD6670_HDA   0xaa90
 /* Radeon HD 6670 Audio */

 pcidevs_data.h: PCI_VENDOR_ATI, PCI_PRODUCT_ATI_RADEON_HD6670,
 pcidevs_data.h: Radeon HD 6670,
 pcidevs_data.h: PCI_VENDOR_ATI, PCI_PRODUCT_ATI_RADEON_HD6670_HDA,
 pcidevs_data.h: Radeon HD 6670 Audio,




 There is a test in radeon_probe that the chip family SUMO and those
 after will only be supported with KMS, that includes the TURKS family of
 chips.

 The confusion between REDWOOD and TURKS is 6570 is TURKS, the mobility
 version of 6570 is REDWOOD and should be 6570M.





 
 So, what do I do ?
 Here is the full dmesg, I should have post it before
 
 
 OpenBSD 5.2-current (GENERIC.MP) #2: Fri Nov 23 22:13:59 CET 2012
 root@JackBSD:/usr/src/sys/arch/amd64/compile/GENERIC.MP
 real mem = 2144862208 (2045MB)
 avail mem = 2065338368 (1969MB)
 mainbus0 at root
 bios0 at mainbus0: SMBIOS rev. 2.5 @ 0x9f000 (58 entries)
 bios0: vendor American Megatrends Inc. version 2202 date 08/19/2010
 bios0: ASUSTeK Computer INC. M4A77T
 acpi0 at bios0: rev 2
 acpi0: sleep states S0 S1 S3 S4 S5
 acpi0: tables DSDT FACP APIC MCFG OEMB SRAT HPET SSDT
 acpi0: wakeup devices PCE2(S4) PCE3(S4) PCE4(S4) PCE5(S4) PCE6(S4) PCE7(S4) 
 PCE9(S4) PCEA(S4) RLAN(S4) PCEB(S4) PCEC(S4) SBAZ(S4) PS2M(S4) PS2K(S4) 
 UAR1(S4) P0PC(S4) UHC1(S4) UHC2(S4) UHC3(S4) USB4(S4) UHC5(S4) UHC6(S4) 
 UHC7(S4)
 acpitimer0 at acpi0: 3579545 Hz, 32 bits
 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: AMD Athlon(tm) II X3 455 Processor, 3315.29 MHz
 cpu0: 
 FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,ITSC
 cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 
 64b/line 16-way L2 cache
 cpu0: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative
 cpu0: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative
 cpu0: AMD erratum 721 detected and fixed
 cpu0: apic clock running at 200MHz
 cpu1 at mainbus0: apid 1 (application processor)
 cpu1: AMD Athlon(tm) II X3 455 Processor, 3314.90 MHz
 cpu1: 
 FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,ITSC
 cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 
 64b/line 16-way L2 cache
 cpu1: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative
 cpu1: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative
 cpu1: AMD erratum 721 detected and fixed
 cpu2 at mainbus0: apid 2 (application processor)
 cpu2: AMD Athlon(tm) II X3 455 Processor, 3314.90 MHz
 cpu2: 
 FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,ITSC
 cpu2: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 
 64b/line 16-way L2 cache
 cpu2: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative
 cpu2: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative
 cpu2: AMD erratum 721 detected and fixed
 ioapic0 at mainbus0: apid 

Re: ATI Radeon HD6570

2012-11-23 Thread rustyBSD
Le 24/11/2012 02:21, Nigel Taylor a écrit :
 Your audio is being picked up already as 6670, audio was added together
 with the video for a 6670 card. There maybe a range of cards that use
 the same id for audio.
 
 To recreate the includes.
 cd /usr/src/sys/dev/pci
 make
 
 Now follow instructions for building a kernel, and Installing kernel
 Reboot and check dmesg.
 

Hum... ok it's detected now, i didn't know that i had to make in /pci:
  vga1 at pci1 dev 0 function 0 ATI Radeon HD 6570 rev 0x00

(maybe commit that ?

--- pcidevs 2012-11-17 16:42:29.0 +0100
+++ pcidevs 2012-11-23 12:58:50.357249029 +0100
@@ -1262,6 +1262,7 @@
 product ATI RADEON_X700_SE 0x5e4f  Radeon X700 SE
 product ATI RADEON_X700_SE_S   0x5e6f  Radeon X700 SE Sec
 product ATI RADEON_HD6670  0x6758  Radeon HD 6670
+product ATI RADEON_HD6570  0x6759  Radeon HD 6570
 product ATI RADEON_HD5800  0x6899  Radeon HD 5800
 product ATI RADEON_HD5700  0x68b8  Radeon HD 5700
 product ATI RADEON_HD5670  0x68d8  Radeon HD 5670

)

 This will not fix your driver problems, for that there needs to be KMS
 support, or try and hope one of the other chip families works.

Yes I still have the same issue. So, finally, I can't use my GPU correctly ?

Thanks