Re: [PATCH xf86-video-amdgpu] Add 10-amdgpu.conf xorg.conf.d snippet

2015-04-23 Thread Alex Deucher
On Thu, Apr 23, 2015 at 8:58 PM, Michel Dänzer  wrote:
> From: Michel Dänzer 
>
> This instructs Xorg >= 1.16 to try loading the amdgpu driver for devices
> managed by the amdgpu kernel driver.
>
> Signed-off-by: Michel Dänzer 

Reviewed-by: Alex Deucher 

> ---
>  Makefile.am |  2 +-
>  conf/10-amdgpu.conf |  5 +
>  conf/Makefile.am| 24 
>  configure.ac| 14 ++
>  4 files changed, 44 insertions(+), 1 deletion(-)
>  create mode 100644 conf/10-amdgpu.conf
>  create mode 100644 conf/Makefile.am
>
> diff --git a/Makefile.am b/Makefile.am
> index f4f4233..f0e2c3c 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -18,7 +18,7 @@
>  #  IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
>  #  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
>
> -SUBDIRS = src man
> +SUBDIRS = src man conf
>  MAINTAINERCLEANFILES = ChangeLog INSTALL
>
>  .PHONY: ChangeLog INSTALL
> diff --git a/conf/10-amdgpu.conf b/conf/10-amdgpu.conf
> new file mode 100644
> index 000..338e898
> --- /dev/null
> +++ b/conf/10-amdgpu.conf
> @@ -0,0 +1,5 @@
> +Section "OutputClass"
> +   Identifier "AMDgpu"
> +   MatchDriver "amdgpu"
> +   Driver "amdgpu"
> +EndSection
> \ No newline at end of file
> diff --git a/conf/Makefile.am b/conf/Makefile.am
> new file mode 100644
> index 000..7ab1586
> --- /dev/null
> +++ b/conf/Makefile.am
> @@ -0,0 +1,24 @@
> +#  Copyright 2015 Advanced Micro Devices, Inc.
> +#
> +#  Permission is hereby granted, free of charge, to any person obtaining a
> +#  copy of this software and associated documentation files (the "Software"),
> +#  to deal in the Software without restriction, including without limitation
> +#  on the rights to use, copy, modify, merge, publish, distribute, sub
> +#  license, and/or sell copies of the Software, and to permit persons to whom
> +#  the Software is furnished to do so, subject to the following conditions:
> +#
> +#  The above copyright notice and this permission notice (including the next
> +#  paragraph) shall be included in all copies or substantial portions of the
> +#  Software.
> +#
> +#  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> +#  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> +#  FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
> +#  ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
> +#  IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
> +#  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
> +
> +
> +if HAS_XORG_CONF_DIR
> +dist_config_DATA = 10-amdgpu.conf
> +endif
> diff --git a/configure.ac b/configure.ac
> index 1766d9c..ead206e 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -81,6 +81,19 @@ PKG_CHECK_MODULES(XEXT, [xextproto >= 7.0.99.1],
>HAVE_XEXTPROTO_71="no")
>  AM_CONDITIONAL(HAVE_XEXTPROTO_71, [ test "$HAVE_XEXTPROTO_71" = "yes" ])
>
> +# Define a configure option for an alternate X Server configuration directory
> +# Section "OutputClass" is only supported as of xserver 1.16
> +PKG_CHECK_EXISTS([xorg-server >= 1.16],
> +[sysconfigdir=`$PKG_CONFIG --variable=sysconfigdir 
> xorg-server`],
> +[sysconfigdir=""])
> +AC_ARG_WITH(xorg-conf-dir,
> +AS_HELP_STRING([--with-xorg-conf-dir=DIR],
> +   [Default xorg.conf.d directory [[default=from 
> $PKG_CONFIG xorg-server]]]),
> +[configdir="$withval"],
> +[configdir="$sysconfigdir"])
> +AC_SUBST(configdir)
> +AM_CONDITIONAL(HAS_XORG_CONF_DIR, [test "x$sysconfigdir" != "x"])
> +
>  AC_ARG_ENABLE([udev],
> AS_HELP_STRING([--disable-udev], [Disable libudev support 
> [default=auto]]),
> [enable_udev="$enableval"],
> @@ -212,6 +225,7 @@ AC_CONFIG_FILES([
>  Makefile
>  src/Makefile
>  man/Makefile
> +conf/Makefile
>  ])
>  AC_OUTPUT
>
> --
> 2.1.4
>
> ___
> xorg-driver-ati mailing list
> xorg-driver-ati@lists.x.org
> http://lists.x.org/mailman/listinfo/xorg-driver-ati
___
xorg-driver-ati mailing list
xorg-driver-ati@lists.x.org
http://lists.x.org/mailman/listinfo/xorg-driver-ati


[PATCH xf86-video-amdgpu] Add 10-amdgpu.conf xorg.conf.d snippet

2015-04-23 Thread Michel Dänzer
From: Michel Dänzer 

This instructs Xorg >= 1.16 to try loading the amdgpu driver for devices
managed by the amdgpu kernel driver.

Signed-off-by: Michel Dänzer 
---
 Makefile.am |  2 +-
 conf/10-amdgpu.conf |  5 +
 conf/Makefile.am| 24 
 configure.ac| 14 ++
 4 files changed, 44 insertions(+), 1 deletion(-)
 create mode 100644 conf/10-amdgpu.conf
 create mode 100644 conf/Makefile.am

diff --git a/Makefile.am b/Makefile.am
index f4f4233..f0e2c3c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -18,7 +18,7 @@
 #  IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 #  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
-SUBDIRS = src man
+SUBDIRS = src man conf
 MAINTAINERCLEANFILES = ChangeLog INSTALL
 
 .PHONY: ChangeLog INSTALL
diff --git a/conf/10-amdgpu.conf b/conf/10-amdgpu.conf
new file mode 100644
index 000..338e898
--- /dev/null
+++ b/conf/10-amdgpu.conf
@@ -0,0 +1,5 @@
+Section "OutputClass"
+   Identifier "AMDgpu"
+   MatchDriver "amdgpu"
+   Driver "amdgpu"
+EndSection
\ No newline at end of file
diff --git a/conf/Makefile.am b/conf/Makefile.am
new file mode 100644
index 000..7ab1586
--- /dev/null
+++ b/conf/Makefile.am
@@ -0,0 +1,24 @@
+#  Copyright 2015 Advanced Micro Devices, Inc.
+#
+#  Permission is hereby granted, free of charge, to any person obtaining a
+#  copy of this software and associated documentation files (the "Software"),
+#  to deal in the Software without restriction, including without limitation
+#  on the rights to use, copy, modify, merge, publish, distribute, sub
+#  license, and/or sell copies of the Software, and to permit persons to whom
+#  the Software is furnished to do so, subject to the following conditions:
+#
+#  The above copyright notice and this permission notice (including the next
+#  paragraph) shall be included in all copies or substantial portions of the
+#  Software.
+#
+#  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+#  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+#  FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
+#  ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+#  IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+#  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+if HAS_XORG_CONF_DIR
+dist_config_DATA = 10-amdgpu.conf
+endif
diff --git a/configure.ac b/configure.ac
index 1766d9c..ead206e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -81,6 +81,19 @@ PKG_CHECK_MODULES(XEXT, [xextproto >= 7.0.99.1],
   HAVE_XEXTPROTO_71="no")
 AM_CONDITIONAL(HAVE_XEXTPROTO_71, [ test "$HAVE_XEXTPROTO_71" = "yes" ])
 
+# Define a configure option for an alternate X Server configuration directory
+# Section "OutputClass" is only supported as of xserver 1.16
+PKG_CHECK_EXISTS([xorg-server >= 1.16],
+[sysconfigdir=`$PKG_CONFIG --variable=sysconfigdir 
xorg-server`],
+[sysconfigdir=""])
+AC_ARG_WITH(xorg-conf-dir,
+AS_HELP_STRING([--with-xorg-conf-dir=DIR],
+   [Default xorg.conf.d directory [[default=from 
$PKG_CONFIG xorg-server]]]),
+[configdir="$withval"],
+[configdir="$sysconfigdir"])
+AC_SUBST(configdir)
+AM_CONDITIONAL(HAS_XORG_CONF_DIR, [test "x$sysconfigdir" != "x"])
+
 AC_ARG_ENABLE([udev],
AS_HELP_STRING([--disable-udev], [Disable libudev support 
[default=auto]]),
[enable_udev="$enableval"],
@@ -212,6 +225,7 @@ AC_CONFIG_FILES([
 Makefile
 src/Makefile
 man/Makefile
+conf/Makefile
 ])
 AC_OUTPUT
 
-- 
2.1.4

___
xorg-driver-ati mailing list
xorg-driver-ati@lists.x.org
http://lists.x.org/mailman/listinfo/xorg-driver-ati


[Bug 90099] One pixel high lines appearing all over the place on RS780

2015-04-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90099

--- Comment #4 from Juraj Fiala  ---
So yeah, I definitely have that patch in my kernel.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
xorg-driver-ati mailing list
xorg-driver-ati@lists.x.org
http://lists.x.org/mailman/listinfo/xorg-driver-ati


[Bug 90151] Laptop Backlight Issue with Hybrid Graphics System

2015-04-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90151

Alex Deucher  changed:

   What|Removed |Added

  Component|Driver/Radeon   |DRM/Radeon
   Assignee|xorg-driver-ati@lists.x.org |dri-devel@lists.freedesktop
   ||.org
Product|xorg|DRI
 QA Contact|xorg-t...@lists.x.org   |

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
xorg-driver-ati mailing list
xorg-driver-ati@lists.x.org
http://lists.x.org/mailman/listinfo/xorg-driver-ati


[Bug 90151] Laptop Backlight Issue with Hybrid Graphics System

2015-04-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90151

--- Comment #1 from Alex Deucher  ---
(In reply to Kevin Sarendranath from comment #0)
> 
> Is this an issue within the driver or from Lenovo's acpi implementation?
> 

Please attach your xorg log and dmesg output.

> If anything, I can control the backlight by using the /sys/ subsystem so I
> can remap the hotkeys to control the brightness while systemd will store it
> on reboot. In essence, I just wanted to bring this to attention due to the
> comment in the source.
> 
> Also a quick question on hybrid graphics, the radeon feature matrix states
> that Enduro is mostly complete and I believe that this lenovo system is
> muxless. Checking vgaswitcheroo, the integrated card is used while the
> discrete card is "DynOff" which I presume is dynamically off. Does that mean
> the driver is currently powering on the discrete card when rendering is
> required? Or is something else required?

By default the dGPU is powered off.  It's powered on dynamically when you want
to use it for rendering.  See:
https://wiki.archlinux.org/index.php/PRIME

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
xorg-driver-ati mailing list
xorg-driver-ati@lists.x.org
http://lists.x.org/mailman/listinfo/xorg-driver-ati


[Bug 55296] [KMS] Extremely low performance of XDrawImageString

2015-04-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=55296

--- Comment #2 from Mihail Zenkov  ---
Much better now, but NoAccel still faster.


xf86-video-ati-7.5.0
rs740:
default170ms
"RenderAccel" "0"  200ms
"NoAccel" "1"  53ms
glamor 160ms (test ok, but some others apps have artifacts)

hd6770:
default   90ms
"RenderAccel" "0" 100ms
"NoAccel" "1" 34ms
glamor 85ms



xf86-video-ati-git 80f3d727f93cb6efedd2
hd6770:

default85ms
glamor 75ms
"NoAccel" "1"  34ms
"TearFree" "1" freeze (black screen) on xorg-server startup (Xorg.0.log
look like for normal xorg-server startup)
"TearFree" "1" + glamur  freeze (black screen) on xorg-server startup
from Xorg.0.log:

[ 9.356] (II) Mouse0: Setting mouse protocol to "ExplorerPS/2"
[ 9.649] (II) Mouse0: ps2EnableDataReporting: succeeded
[ 9.649] (EE)
[ 9.649] (EE) Backtrace:
[ 9.650] (EE) 0: X (xorg_backtrace+0x3e) [0x81b1baa]
[ 9.650] (EE) 1: X (0x8048000+0x16d28e) [0x81b528e]
[ 9.650] (EE) 2: linux-gate.so.1 (__kernel_rt_sigreturn+0x0) [0xb7753b34]
[ 9.650] (EE) 3: X (GetScratchGC+0x24) [0x808e314]
[ 9.650] (EE) 4: /usr/lib/xorg/modules/drivers/radeon_drv.so
(0xb706a000+0x4844d) [0xb70b244d]
[ 9.650] (EE) 5: /usr/lib/xorg/modules/drivers/radeon_drv.so
(radeon_scanout_update_handler+0x14) [0xb70b2ce1]
[ 9.650] (EE) 6: /usr/lib/xorg/modules/drivers/radeon_drv.so
(0xb706a000+0x4fd51) [0xb70b9d51]
[ 9.650] (EE) 7: /usr/lib/xorg/modules/drivers/radeon_drv.so
(drmmode_set_desired_modes+0x185) [0xb70bb005]
[ 9.650] (EE) 8: /usr/lib/xorg/modules/drivers/radeon_drv.so
(0xb706a000+0x491ad) [0xb70b31ad]
[ 9.650] (EE) 9: X (BlockHandler+0x42) [0x8081ecf]
[ 9.650] (EE) 10: X (WaitForSomething+0x252) [0x81af792]
[ 9.650] (EE) 11: X (Dispatch+0x8e) [0x807d8fd]
[ 9.650] (EE) 12: X (dix_main+0x4a0) [0x8081780]
[ 9.650] (EE) 13: X (main+0x2a) [0x806dad5]
[ 9.651] (EE) 14: /lib/libc.so.6 (__libc_start_main+0x16e) [0xb74501e7]
[ 9.651] (EE) 15: X (0x8048000+0x259c1) [0x806d9c1]
[ 9.651] (EE)
[ 9.651] (EE) Segmentation fault at address 0x5
[ 9.651] (EE)
Fatal server error:
[ 9.651] (EE) Caught signal 11 (Segmentation fault). Server aborting
[ 9.651] (EE)
[ 9.651] (EE)
Please consult the The X.Org Foundation support
 at http://wiki.x.org
 for help.
[ 9.651] (EE) Please also check the log file at "/var/log/Xorg.0.log" for
additional information.
[ 9.651] (EE)
[ 9.651] (II) AIGLX: Suspending AIGLX clients for VT switch

"ShadowPimary" "1"   85ms
"ShadowPimary" "1" + glamor  95ms



old notebook with intel 945gm:
sna 18ms

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
xorg-driver-ati mailing list
xorg-driver-ati@lists.x.org
http://lists.x.org/mailman/listinfo/xorg-driver-ati