Re: Mesa 11.0.8 update
On 12/22/15 08:29, Jonathan Gray wrote: > On Mon, Dec 21, 2015 at 10:48:31PM +0000, Nigel Taylor wrote: >> On 12/21/15 18:15, Matthieu Herrb wrote: >>> On Mon, Dec 21, 2015 at 11:10:28PM +1100, Jonathan Gray wrote: >>>> Here is a patch to update the version of Mesa in xenocara from 11.0.6 >>>> to a newer version of the 11.0 stable branch 11.0.8 >>>> >>>> 11.0.7 notes http://www.mesa3d.org/relnotes/11.0.7.html >>>> 11.0.8 announcement >>>> http://marc.info/?l=mesa3d-dev=145069351429627=2 >>> >>> Tested on amd64 with r600 and i965 drivers. no problem so far. >>> >> >> Ok for me, better than existing mesa 11.0.6 which was causing firefox to >> hang >> if clutter-gst is installed, empathy, totem, sushi, gnome-shell to seg >> fault (all use clutter). Jonathan been using your fixes to mesa 11.0.6, >> tests >> below with mesa 11.0.8 patch match those results from the 11.0.6 mesa with >> fixes. >> >> port graphics/clutter/core fails 2 tests with r600. >> >> >> Testsuite summary for clutter 1.24.2 >> >> # TOTAL: 85 >> # PASS: 83 >> # SKIP: 0 >> # XFAIL: 0 >> # FAIL: 0 >> # XPASS: 0 >> # ERROR: 2 >> >> See tests/conform/test-suite.log >> Please report to http://bugzilla.gnome.org/enter_bug.cgi?product=clutter >> >> >> This is the same failure as seen with mesa 11.0.6 with fixes, and depends >> if terminal windows overlaps the test window, and can be made to pass my >> moving >> terminal window out of the way (This has been seen on other systems). >> >> $ .libs/actor-shader-effect >> /actor/shader-effect: ** >> Clutter-Conform:ERROR:actor-shader-effect.c:233:paint_cb: assertion failed >> (get_pixel (50, 50) == 0xff): (0 == 16711680) >> Abort trap (core dumped) >> $ .libs/actor-shader-effect >> /actor/shader-effect: OK >> $ .libs/actor-shader-effect >> /actor/shader-effect: OK >> >> port graphics/clutter/cogl tests results look ok for r600, existing mesa >> 11.0.6 >> would just have FAIL in GL column rather than mostly Ok's. >> >> totem is not seg faulting, only other port I've had time to build and try. >> >> Only have amd64 with r600 machines so can't test other hardware. >> > > My 'fixes to mesa 11.0.6' as you put it was a preliminary version of > mesa 11.0.7 I think. > > Can you include the output of glxinfo on r600? I'm curious to see what > versions of OpenGL Mesa claims to support with floating point textures > enabled. > Attached output. name of display: :0 display: :0 screen: 0 direct rendering: Yes server glx vendor string: SGI server glx version string: 1.4 server glx extensions: GLX_ARB_create_context, GLX_ARB_create_context_profile, GLX_ARB_fbconfig_float, GLX_ARB_framebuffer_sRGB, GLX_ARB_multisample, GLX_EXT_create_context_es2_profile, GLX_EXT_framebuffer_sRGB, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_INTEL_swap_event, GLX_MESA_copy_sub_buffer, GLX_OML_swap_method, GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group, GLX_SGI_swap_control client glx vendor string: Mesa Project and SGI client glx version string: 1.4 client glx extensions: GLX_ARB_create_context, GLX_ARB_create_context_profile, GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float, GLX_ARB_framebuffer_sRGB, GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_buffer_age, GLX_EXT_create_context_es2_profile, GLX_EXT_fbconfig_packed_float, GLX_EXT_framebuffer_sRGB, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_INTEL_swap_event, GLX_MESA_copy_sub_buffer, GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer, GLX_MESA_swap_control, GLX_OML_swap_method, GLX_OML_sync_control, GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group, GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync GLX version: 1.4 GLX extensions: GLX_ARB_create_context, GLX_ARB_create_context_profile, GLX_ARB_fbconfig_float, GLX_ARB_framebuffer_sRGB, GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_create_context_es2_profile, GLX_EXT_framebuffer_sRGB, GLX_EXT_import_context, GLX_EXT_texture
Re: Mesa 11.0.8 update
On 12/21/15 18:15, Matthieu Herrb wrote: > On Mon, Dec 21, 2015 at 11:10:28PM +1100, Jonathan Gray wrote: >> Here is a patch to update the version of Mesa in xenocara from 11.0.6 >> to a newer version of the 11.0 stable branch 11.0.8 >> >> 11.0.7 notes http://www.mesa3d.org/relnotes/11.0.7.html >> 11.0.8 announcement >> http://marc.info/?l=mesa3d-dev=145069351429627=2 > > Tested on amd64 with r600 and i965 drivers. no problem so far. > Ok for me, better than existing mesa 11.0.6 which was causing firefox to hang if clutter-gst is installed, empathy, totem, sushi, gnome-shell to seg fault (all use clutter). Jonathan been using your fixes to mesa 11.0.6, tests below with mesa 11.0.8 patch match those results from the 11.0.6 mesa with fixes. port graphics/clutter/core fails 2 tests with r600. Testsuite summary for clutter 1.24.2 # TOTAL: 85 # PASS: 83 # SKIP: 0 # XFAIL: 0 # FAIL: 0 # XPASS: 0 # ERROR: 2 See tests/conform/test-suite.log Please report to http://bugzilla.gnome.org/enter_bug.cgi?product=clutter This is the same failure as seen with mesa 11.0.6 with fixes, and depends if terminal windows overlaps the test window, and can be made to pass my moving terminal window out of the way (This has been seen on other systems). $ .libs/actor-shader-effect /actor/shader-effect: ** Clutter-Conform:ERROR:actor-shader-effect.c:233:paint_cb: assertion failed (get_pixel (50, 50) == 0xff): (0 == 16711680) Abort trap (core dumped) $ .libs/actor-shader-effect /actor/shader-effect: OK $ .libs/actor-shader-effect /actor/shader-effect: OK port graphics/clutter/cogl tests results look ok for r600, existing mesa 11.0.6 would just have FAIL in GL column rather than mostly Ok's. totem is not seg faulting, only other port I've had time to build and try. Only have amd64 with r600 machines so can't test other hardware.
Re: Building flavors with dpb
On 12/03/15 09:04, Tati Chevron wrote: > I'm trying to build the no_ada flavour of gcc 4.9 using dpb on a > machine running 5.8-release, and it fails: > > # export FLAVOR=no_ada > # dpb -D BUILD_USER=ports -D CDROM_ONLY -D FTP_ONLY -F 0 -L > /portswork/logs -l /portswork/locks lang/gcc/4.9 > > Fatal: Unknown flavor(s) no_ada (in test/a) > (No flavors for this port). (in test/a) > *** Error 1 in / (/usr/ports/infrastructure/mk/bsd.port.mk:3567 > '.BEGIN': @exit 1) > dpb: Can't obtain vital information from the ports tree > Usage: dpb [-aceimqrRsuUvx] [-A arch] [-B chroot] [-C plist] [-f m] [-F m] > [-I pathlist] [-J p] [-j n] [-p parallel] [-P pathlist] [-h hosts] > [-L logdir] [-l lockdir] [-b log] [-M threshold] [-X pathlist] > [pathlist ...] > > Infact, trying to build other flavoured ports fails in a similar way. > > What am I doing wrong here? > better to ask on ports@ mail list for questions on ports. Add the flavor to the package path. FLAVOR is specific to a port so dpb will try to use these with a FLAVOR of no_ada even if the packages exist, dpb needs to determine the package name for the no_ada FLAVOR for each of these. bison-3.0.4p0 bzip2-1.0.6p7 gmake-4.1p0 gmp-5.0.2p3 libexecinfo-0.2p5v0 libmpc-0.9p1 mpfr-3.1.0.3p0 xz-5.2.2 zip-3.0p0 Should be using dpb ... lang/gcc/4.9,no_ada for subpackages $ pkg_info -Pq gcc*-4.9* lang/gcc/4.9,-main lang/gcc/4.9,-libs use dpb ... lang/gcc/4.9,-main You can check package paths using make $ cd /usr/ports $ make SUBDIR="lang/gcc/4.9,no_ada" clean ===> lang/gcc/4.9,no_ada ===> Cleaning for gcc-4.9.3p2 for multiple ports $ make SUBDIR="lang/gcc/4.9,no_ada lang/gcc/4.9,-main lang/gcc/4.9,-libs lang/gcc/4.9,-main,no_ada" clean ===> lang/gcc/4.9,no_ada ===> Cleaning for gcc-4.9.3p2 ===> lang/gcc/4.9,-main ===> Cleaning for gcc-4.9.3p2 ===> lang/gcc/4.9,-libs ===> Cleaning for gcc-libs-4.9.3p2 ===> lang/gcc/4.9,-main,no_ada ===> Cleaning for gcc-4.9.3p2 See man pkgpaths(7)
Re: fuck you pkg.conf
On 11/29/14 11:07, Antoine Jacoutot wrote: Hi. So. Each time pkg_add runs, it tries to connect to either PKG_PATH or to installpath from pkg.conf to fetch quirks (I assume). When you have no network anymore (moving around with your laptop or whatever), and you want to install a local package, you're basically fucked: $ time sudo pkg_add ./gmake-4.1.tgz - hangs forever - getting tired, so ^C Fatal error: Caught SIGINT at /usr/libdata/perl5/OpenBSD/AddDelete.pm line 40. 1m57.24s real 0m0.15s user 0m0.08s system - sometimes, that keeps the pkg db locked... On my production machines, I have a regular job that removes the useless pkg.conf, but it happens often enough on my dev boxen now that I felt I should send something. The problem is that each time I update using bsd.rd, /etc/pkg.conf is re-created... and I am not even talking about the fact that the created file is wrong since I usually do not install base from the same place I get packages -- but well. Can we have a switch or whatever that would prevent pkg_add from trying to go online each time it's run please? Doesn't having a pkg.conf help rather than remove it I change it and use this $ cat /etc/pkg.conf installpath=/usr/ports/packages/amd64/all The location of my local packages. The only problem is fw_update run on first reboot, I just normally rm /mnt/etc/rc.firsttime before rebooting at the end of an upgrade
Re: Undefined symbol in ld.so
On 06/24/14 09:30, William Orr wrote: ld.so in -current isn't building right now, due to an undefined reference to _dl_realloc caused by the recent addition of _dl_reallocarray. The following diff implements _dl_realloc, largely copied from the implementation in lib/libc/stdlib/malloc.c. tested on amd64 There are issues with some CVS mirrors because of cvsync/commitid's, one of those is issue is failure to update malloc.c, the current version is 1.3, you have version 1.1 your CVS source tree being incorrect is the issue. Try a different CVS mirror or wait until issues have been fixed. $ cvs log malloc.c RCS file: /cvs/src/libexec/ld.so/malloc.c,v Working file: malloc.c head: 1.3 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 3; selected revisions: 3 description: revision 1.3 date: 2014/06/21 08:00:23; author: otto; state: Exp; lines: +47 -1; commitid: wh9FTpEgwThWVeqE; Move to a non-zeroing _dl_malloc, a _dl_calloc and _dl_reallocarry and fix _dl_strdup to return NULL instead of crash; ok deraadt@ revision 1.2 date: 2014/06/15 06:48:30; author: otto; state: Exp; lines: +2 -2; commitid: zG8TjRrBxXrN0x6O; move to a smaller rbytes buffer; ok miod@ deraadt@ revision 1.1 date: 2014/06/05 08:39:07; author: otto; state: Exp; commitid: PovK1yhVqujrpswl; Move to (slightly stripped) version of libc malloc; ok deraadt@ = Index: malloc.c === RCS file: /cvs/src/libexec/ld.so/malloc.c,v retrieving revision 1.1 diff -u -b -w -p -r1.1 malloc.c --- malloc.c 5 Jun 2014 08:39:07 - 1.1 +++ malloc.c 24 Jun 2014 08:24:43 - @@ -78,6 +78,12 @@ #define MMAP(sz) _dl_mmap(NULL, (size_t)(sz), PROT_READ | PROT_WRITE, \ MAP_ANON | MAP_PRIVATE, -1, (off_t) 0) +#define MMAPA(a,sz) _dl_mmap((a), (size_t)(sz), PROT_READ | PROT_WRITE, \ +MAP_ANON | MAP_PRIVATE, -1, (off_t) 0) + +#define MQUERY(a, sz)_dl_mquery((a), (size_t)(sz), PROT_READ | PROT_WRITE, \ +MAP_ANON | MAP_PRIVATE | MAP_FIXED, -1, (off_t)0) + #define MMAP_ERROR(p)(_dl_mmap_error(p) ? MAP_FAILED : (p)) struct region_info { @@ -277,6 +283,26 @@ unmap(struct dir_info *d, void *p, size_ wrterror(malloc cache overflow); } +static void +zapcacheregion(struct dir_info *d, void *p, size_t len) +{ + u_int i; + struct region_info *r; + size_t rsz; + + for (i = 0; i mopts.malloc_cache; i++) { + r = d-free_regions[i]; + if (r-p = p r-p = (void *)((char *)p + len)) { + rsz = r-size MALLOC_PAGESHIFT; + if (_dl_munmap(r-p, rsz)) + wrterror(munmap); + r-p = NULL; + d-free_regions_size -= r-size; + r-size = 0; + } + } +} + static void * map(struct dir_info *d, size_t sz, int zero_fill) { @@ -987,6 +1013,119 @@ _dl_free(void *ptr) malloc_active--; } +static void * +orealloc(void *p, size_t newsz) +{ + struct region_info *r; + size_t oldsz, goldsz, gnewsz; + void *q; + + if (p == NULL) + return omalloc(newsz, 0); + + r = find(g_pool, p); + if (r == NULL) { + wrterror(bogus pointer (double free?)); + return NULL; + } + if (newsz = SIZE_MAX - mopts.malloc_guard - MALLOC_PAGESIZE) + return NULL; + + REALSIZE(oldsz, r); + goldsz = oldsz; + if (oldsz MALLOC_MAXCHUNK) { + if (oldsz mopts.malloc_guard) + wrterror(guard size); + oldsz -= mopts.malloc_guard; + } + + gnewsz = newsz; + if (gnewsz MALLOC_MAXCHUNK) + gnewsz += mopts.malloc_guard; + + if (newsz MALLOC_MAXCHUNK oldsz MALLOC_MAXCHUNK p == r-p) { + size_t roldsz = PAGEROUND(goldsz); + size_t rnewsz = PAGEROUND(gnewsz); + + if (rnewsz roldsz) { + if (!mopts.malloc_guard) { + void *hint = (char *)p + roldsz; + size_t needed = rnewsz - roldsz; + + zapcacheregion(g_pool, hint, needed); + q = MQUERY(hint, needed); + if (q == hint) + q = MMAPA(hint, needed); + else + q = MAP_FAILED; + if (q == hint) { + if (mopts.malloc_junk == 2) + _dl_memset(q, SOME_JUNK, needed); + r-size = newsz;
Re: unsigned = 0 comparisons
On 06/25/12 18:54, Arto Jonsson wrote: Hi, a couple of = 0 comparisons on unsigned integers. These refer to Bitrig commits 171e1f9d and 72337965 respectively. Index: sys/arch/amd64/amd64/machdep.c === RCS file: /cvs/src/sys/arch/amd64/amd64/machdep.c,v retrieving revision 1.155 diff -u -r1.155 machdep.c --- sys/arch/amd64/amd64/machdep.c4 Jun 2012 15:19:47 - 1.155 +++ sys/arch/amd64/amd64/machdep.c25 Jun 2012 17:28:29 - @@ -1652,7 +1652,7 @@ return 1; /* Low memory used for various bootstrap things */ - if (addr = 0 addr avail_start) + if (addr avail_start) return 1; /* Index: sys/dev/ic/malo.c === RCS file: /cvs/src/sys/dev/ic/malo.c,v retrieving revision 1.93 diff -u -r1.93 malo.c --- sys/dev/ic/malo.c 3 Jul 2011 21:35:38 - 1.93 +++ sys/dev/ic/malo.c 25 Jun 2012 17:28:30 - @@ -2216,7 +2216,7 @@ bzero(body, sizeof(*body)); body-action = htole16(1); - if (powerlevel = 0 powerlevel 30) + if (powerlevel 30) body-supportpowerlvl = htole16(5); /* LOW */ else if (powerlevel = 30 powerlevel 60) body-supportpowerlvl = htole16(10);/* MEDIUM */ In place of else if (powerlevel = 30 powerlevel 60) could use else if (powerlevel 60)
Re: Radeon HD5450
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 - B B B 1.51 +++ drm/radeon_drv.c B B 3 Apr 2011 12:23:45 - @@ -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 - 1.1637 +++ pcidevs 9 Apr 2012 09:14:42 - @@ -1252,6 +1252,7 @@ product ATI RADEON_HD5700 0x68b8 Radeon HD 5700 product ATI RADEON_HD5670 0x68d8 Radeon HD 5670 product ATI MOBILITY_HD54700x68e0 Radeon Mobility HD 5470 +product ATI RADEON_HD5450_10x68e1 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.c29 Jan 2012 22:36:18 - 1.57 +++ drm/radeon_drv.c9 Apr 2012 09:23:59 - @@ -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.
Re: Radeon HD4250 : radeon vs vesa driver.
On 07/25/11 08:20, David Coppa wrote: On Mon, Jul 25, 2011 at 7:48 AM, Matthieu Herrb matthieu.he...@laas.fr wrote: On Mon, Jul 25, 2011 at 12:23:04AM +0200, Eric Huiban wrote: Hi, It has been suggested to me to ask here whether using a radeon HD4250 (integrated chipset with hardware memory sideport) is currently too optmistic with 4.9 release or not ? Xorg loads and unloads radeon driver in favor of vesa driver when using an out of the box installation/configuration. Salut, You probably need a more recent radeon driver. Unfortunatly we're still blocked by the bug that prevents zaphod dual head more from working in current X.Org sources. Your options are: - try the ChipId option in xorg.conf to force the radeon driver to attach to the card it doesn't know about (might lockup the machine) - get the latest (6.14.2) xf86-video-ati from X.Org, and build it. See: http://marc.info/?l=openbsd-miscm=131117626122413 ciao, David Hi, See this for details of updating openbsd 4.8-current for a HD 4250 (integrated graphics on a GA-880GA-UD3H Motherboard), using the current ATI 6.12.2 driver. http://marc.info/?l=openbsd-x11m=128975076103964w=2 or it is also possible to use the later ati 6.14.2 drivers, get the code from here: http://ftp.x.org/pub/individual/driver/xf86-video-ati-6.14.2.tar.gz extract the archive and follow the instructions in the previous e-mail link to build/install. I use this for a HD4250 and a Mobile HD5450 in my laptop. Regards Nigel Taylor
Re: Radeon HD5450
Hi, I did some tests of latest ATI drivers, v6.13.2+patches, v6.14.0, v6.14.1 ati/radeon driver using zaphod mode with what hardware I have available. I am using OpenBSD current amd64 in all cases. Samsung R780 laptop which has a ATI HD 5470 (CEDAR chip), zaphod dual head, and triple head worked (LCD, VGA, HDMI). I have been using dual head set-up daily since mid January updating with later drivers. v6.14.0/v6.14.1 is the only released version that works with the HD 5470, v6.13.2 required later patches from git to work. I also tried PC's with a 880G motherboard / HD 4250 onboard. PC with 790GX motherboard / HD 3300 on board. PC with 770G motherboard / HD 3200 on board. For all 3 PC's zaphod dual head worked. PC's I tried with v6.14.0, I haven't retried with yet with v6.14.1. If required I can supply more details. Regards Nigel Taylor On 04/03/11 15:08, Matthieu Herrb 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 xrandr(1) hangs (no mouse movement, etc) when running. also, i have some weird pixel activity, but it's still sexy Does zaphod style (2 X Screens :0.0 and :0.1) multi head work with you driver update ? So far all recent versions of the radeon driver break in this configuration. This is blocking updates since several OpenBSD users and developers require this mode. And we've failed to fix it so far. i5.peoples$ xrandr Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 1920 x 1920 DisplayPort-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 531mm x 298mm 1920x1080 60.0*+ 60.0 1280x1024 75.0 60.0 1152x864 75.0 1024x768 75.0 60.0 800x60075.0 60.3 640x48075.0 59.9 720x40070.1 DVI-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 531mm x 298mm 1920x1080 60.0 + 60.0* 1280x1024 75.0 60.0 1152x864 75.0 1024x768 75.0 60.0 800x60075.0 60.3 640x48075.0 59.9 720x40070.1 DVI-0 disconnected (normal left inverted right x axis y axis) diffs to pcidevs and drm/radeon_drv.c below, as well as dmesg with the patches. the diff is only for the video part. the kernel already picked up an azalia(4) i5.peoples$ cd /usr/src/sys/dev/pci/ i5.peoples$ cvs diff -u pcidevs drm/radeon_drv.c 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.c29 Sep 2010 13:32:22 - 1.51 +++ drm/radeon_drv.c3 Apr 2011 12:23:45 - @@ -526,6 +526,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, + CHIP_RS880|RADEON_NEW_MEMMAP}, {0, 0, 0} }; Index: pcidevs === RCS file: /cvs/src/sys/dev/pci/pcidevs,v retrieving revision 1.1592 diff -u pcidevs --- pcidevs 23 Mar 2011 21:55:09 - 1.1592 +++ pcidevs 3 Apr 2011 12:23:41 - @@ -1206,6 +1206,7 @@ product ATI RADEON_HD5700 0x68b8 Radeon HD 5700 product ATI RADEON_HD5670 0x68d8 Radeon HD 5670 product ATI MOBILITY_HD54700x68e0 Radeon Mobility HD 5470 +product ATI RADEON_HD5450 0x68f9 Radeon HD 5450 product ATI RS100_PCI 0x700f RS100 PCI product ATI RS200_PCI 0x7010 RS200 PCI product ATI RADEON_X1800A 0x7100 Radeon X1800 OpenBSD 4.9-current (GENERIC.MP) #3: Sun Apr 3 03:58:50 EDT 2011 root@i5.peoples:/usr/src/sys/arch/amd64/compile/GENERIC.MP RTC BIOS diagnostic error 11memory_size real mem = 8445030400 (8053MB) avail mem = 8206192640 (7826MB) mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xf0450 (87 entries) bios0: vendor Dell Inc. version A07 date 01/21/2011 bios0: Dell Inc. OptiPlex 980 acpi0 at bios0: rev 2 acpi0: sleep states S0 S1 S3 S4 S5 acpi0: tables DSDT FACP SSDT APIC BOOT ASF! MCFG HPET DMAR SLIC SSDT acpi0: wakeup devices VBTN(S4) PCI0(S5) PCI4(S5) PCI2(S5) PCI3(S5) PCI1(S5) PCI5(S5) MOU_(S3) EHC1(S3) EHC2(S3) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Core(TM) i5 CPU 680 @ 3.60GHz, 3591.55 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,S S,HTT,TM,SBF,SSE3,PCLMUL,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,AES,NXE
Re: new radeon driver ids
On 01/09/11 20:11, Brad wrote: On Sunday 09 January 2011 14:47:57 Nigel Taylor wrote: Hi, The 0x9715,RS880_9715,RS880,,1,,,1,ATI Radeon HD 4290, that should be ATI Radeon HD 4250. It's wrong in the xf86-video-ati driver. Needs reporting upstream. Then file a bug report upstream. Mentioning it here isn't of any use. Issue reported and fixed in xf86-video-ati git, https://bugs.freedesktop.org/show_bug.cgi?id=33057 Regards Nigel Taylor
Re: add Radeon HD 4250 to sys/dev/pci/pcidevs
On 01/09/11 19:42, Nigel Taylor wrote: On 01/09/11 01:14, Brynet wrote: Nigel wrote: Hi, You might be interested in other patches for the 880 chip set. See OpenBSD X11 mail lists. ATI/AMD driver for 880G chipset http://marc.info/?l=openbsd-x11m=128975076103964w=2 I am considering attempting updating to xf86-video-ati v6.13.2 driver, as I have another missing device HD 545v in my laptop, works with basic vesa driver but would like the correct resolution. Regards Nigel Taylor Hi, I sent in a patch for my ATI Radeon HD 4250 (..shared with others, so just called 4200) and it was applied, product ID is 0x9712 but same chip family. http://marc.info/?l=openbsd-techm=128568931313974w=2 http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/pci/drm/radeon_drv.c.diff?r1=1.51;r2=1.50 In my case it works with the older driver, but 2D accel was sluggish and XVideo doesn't work at all. Once you have the relevant drm bits adapted, the newer driver compiles/works fine.. no dri module built yet though. I'm not sure why the driver in Xenocara is so old, but I think it has to do with broken multihead on some cards. $ ftp http://ftp.x.org/pub/individual/driver/xf86-video-ati-6.13.2.tar.gz $ tar xvzf xf86-video-ati-6.13.2.tar.gz $ cd xf86-video-ati-6.13.2; ./configure --prefix=/usr/X11R6 --sysconfdir=/etc --mandir=/usr/X11R6/man --with-xorg-module-dir=/usr/X11R6/lib/modules $ make; sudo make install This obviously trashes the existing driver. -Bryan. Hi, Tried that, nearly works, X windows starts with 1600x900 screen. All was fine until I exited X windows. Screen did't switch back to console. Ctrl-Alt-F1-4,6 switches to blank screen from X windows, Ctrl-Alt-F5 switches back to X windows and restores screen. There are some fixes in git after 6.13.2, which looks like they might cure this. Other than this I have been using without problems. Regards Nigel Taylor Hi, I have tried using xf86-video-ati git master, and built it, this solves my screen switching problem. The ATI PCI Product ID is 0x68e0 for the 545v or HD 5450 used in my laptop a samsung R780. This is the same product ID for the Dell Studio 15 - 1558, from the dmesg on undealy.org from Ian. I used the 6.13.2 download, and copied the latest git version over the top, needed to do an autoconf before the configure, $ export AUTOCONF_VERSION=2.65 $ export AUTOMAKE_VERSION=1.9 $ autoconf The Zaphod mode / dual head, additional screen space to the right with an external monitor connected to the laptop. Is working also. $ xrandr Screen 0: minimum 320 x 200, current 3280 x 1050, maximum 3520 x 1080 LVDS connected 1600x900+0+0 (normal left inverted right x axis y axis) 382mm x 214mm 1600x900 60.0*+ 1440x900 59.9 1280x854 59.9 1280x800 59.8 1280x720 59.9 1152x768 59.8 1024x768 59.9 800x60059.9 640x48059.4 HDMI-0 disconnected (normal left inverted right x axis y axis) VGA-0 connected 1680x1050+1600+0 (normal left inverted right x axis y axis) 434mm x 270mm 1680x1050 60.0*+ 1280x1024 75.0 60.0 1280x960 60.0 1152x864 75.0 1024x768 75.0 60.0 832x62474.6 800x60075.0 60.3 56.2 640x48075.0 59.9 720x40070.1 Regards Nigel Taylor
Re: new radeon driver ids
@@ ATI_DEVICE_MATCH( PCI_CHIP_RS880_9712, 0 ), ATI_DEVICE_MATCH( PCI_CHIP_RS880_9713, 0 ), ATI_DEVICE_MATCH( PCI_CHIP_RS880_9714, 0 ), + ATI_DEVICE_MATCH( PCI_CHIP_RS880_9715, 0 ), { 0, 0, 0 } }; diff -ru xf86-video-ati-orig/src/radeon_tv.c xf86-video-ati/src/radeon_tv.c --- xf86-video-ati-orig/src/radeon_tv.c Sun Jan 9 11:43:11 2011 +++ xf86-video-ati/src/radeon_tv.cSun Jan 9 11:43:36 2011 @@ -186,6 +186,21 @@ 8, /* crtcPLL_postDiv */ 1022, /* pixToTV */ }, +{ /* PAL timing for 14 Mhz ref clk */ + 800,/* horResolution */ + 600,/* verResolution */ + TV_STD_PAL, /* standard */ + 1131, /* horTotal */ + 742,/* verTotal */ + 813,/* horStart */ + 840,/* horSyncStart */ + 633,/* verSyncStart */ + 708369, /* defRestart */ + 211,/* crtcPLL_N */ + 9, /* crtcPLL_M */ + 8, /* crtcPLL_postDiv */ + 759,/* pixToTV */ +}, }; #define N_AVAILABLE_MODES (sizeof(availableModes) / sizeof(availableModes[ 0 ])) diff -ru xf86-video-ati-orig/src/radeon_tv.h xf86-video-ati/src/radeon_tv.h --- xf86-video-ati-orig/src/radeon_tv.h Sun Jan 9 11:43:11 2011 +++ xf86-video-ati/src/radeon_tv.hSun Jan 9 11:43:36 2011 @@ -53,6 +53,10 @@ #define NTSC_TV_PLL_N_14 693 #define NTSC_TV_PLL_P_14 7 +#define PAL_TV_PLL_M_14 19 +#define PAL_TV_PLL_N_14 353 +#define PAL_TV_PLL_P_14 5 + #define VERT_LEAD_IN_LINES 2 #define FRAC_BITS 0xe #define FRAC_MASK 0x3fff diff -ru xf86-video-ati-orig/src/radeon_version.h xf86-video-ati/src/radeon_version.h @@ -38,6 +38,7 @@ #define RADEON_DRIVER_NAME radeon #define R200_DRIVER_NAME r200 #define R300_DRIVER_NAME r300 +#define R600_DRIVER_NAME r600 #define RADEON_VERSION_MAJOR PACKAGE_VERSION_MAJOR #define RADEON_VERSION_MINOR PACKAGE_VERSION_MINOR Hi, The 0x9715,RS880_9715,RS880,,1,,,1,ATI Radeon HD 4290, that should be ATI Radeon HD 4250. It's wrong in the xf86-video-ati driver. Needs reporting upstream. Regards Nigel Taylor
Re: add Radeon HD 4250 to sys/dev/pci/pcidevs
: Pentium Pro MTRR support uhidev0 at uhub3 port 1 configuration 1 interface 0 Sun Microsystems Type 6 Keyboard rev 1.00/1.02 addr 2 uhidev0: iclass 3/1 ukbd0 at uhidev0: 8 modifier keys, 6 key codes, country code 33 wskbd1 at ukbd0 mux 1 wskbd1: connecting to wsdisplay0 uhidev1 at uhub3 port 2 configuration 1 interface 0 Dell Dell USB Mouse rev 2.00/1.10 addr 3 uhidev1: iclass 3/1 ums0 at uhidev1: 3 buttons, Z dir wsmouse0 at ums0 mux 0 softraid0 at root root on sd0a swap on sd0b dump on sd0b Hi, You might be interested in other patches for the 880 chip set. See OpenBSD X11 mail lists. ATI/AMD driver for 880G chipset http://marc.info/?l=openbsd-x11m=128975076103964w=2 I am considering attempting updating to xf86-video-ati v6.13.2 driver, as I have another missing device HD 545v in my laptop, works with basic vesa driver but would like the correct resolution. Regards Nigel Taylor