[meta-intel] [meta-fri] Graphics broken?

2013-12-05 Thread Andrei Gherzan
It seems like there are some issues on current master related to graphics.
emgd kernel mode loads with a kernel dump and all glx demos die with stuff
like:
root@fri2:~# glxdemo
glxdemo[694]: segfault at 84 ip 080488a3 sp bf81cbe0 error 4 in
glxdemo[8048000+1000]

Obviously X fails too:
...
Succeed for msvdx_pvr_init()X: symbol lookup error:
/usr/lib/xorg/modules/drivers/emgd_drv.so: undefined symbol: DRI2ScreenInit

VGA arbiter detected; disabling legacy VGA decoding on SDVO device
GMMADR(region 0) start: 0x9000 (256M).
GTTADR(region 3) start: 0xa03c (can map 256M RAM), and actual RAM base
0x3ffc.
Stolen memory information
   base in RAM: 0x3f80
   size: 7932K, calculated by (GTT RAM base) - (Stolen base)
   size: 8M (dvmt mode=3)
Set up 1983 stolen pages starting at 0x0003f800, GTT offset 0K

Anybody hitting this in the past? Maybe is a side effect of the kernel
update to 3.10? I will try to investigate more on this.

-- 
*ag*
___
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel


Re: [meta-intel] [meta-fri] Graphics broken?

2013-12-05 Thread Andrei Gherzan
Hello,


On Thu, Dec 5, 2013 at 1:17 PM, Burton, Ross ross.bur...@intel.com wrote:

 On 5 December 2013 10:15, Andrei Gherzan and...@gherzan.ro wrote:
  Succeed for msvdx_pvr_init()X: symbol lookup error:
  /usr/lib/xorg/modules/drivers/emgd_drv.so: undefined symbol:
 DRI2ScreenInit

 So your X server is missing the dri2 module.  Can you verify that
 xserver-xorg-extension-dri2 is installed?

 Ross



Right. I managed to make it work but still - there are crushes at start-up
and low performance:


---
CPU: 1 PID: 718 Comm: modprobe Not tainted 3.10.17-yocto-standard #2
Hardware name: Intel Corp. Fish River Island II, BIOS Tiano-TunnelCreek
11/19/2010
   ec901cc0 c16872c4 ec901ce8 c1032a6f c1845140 c18395d4
 0066 c102a628 c102a628 0020 0001 0001 ec901cf8 c1032b33
 0009  ec901d4c c102a628 0002 c1957284 ec901d24 c1547571
Call Trace:
 [c16872c4] dump_stack+0x16/0x18
 [c1032a6f] warn_slowpath_common+0x5f/0x80
 [c102a628] ? __ioremap_caller+0x2b8/0x2e0
 [c102a628] ? __ioremap_caller+0x2b8/0x2e0
 [c1032b33] warn_slowpath_null+0x23/0x30
 [c102a628] __ioremap_caller+0x2b8/0x2e0
 [c1547571] ? pci_read+0x31/0x40
 [c168b6b7] ? _raw_spin_unlock_irqrestore+0x17/0x40
 [c102a66c] ioremap_nocache+0x1c/0x20
 [efe2332d] ? os_map_io_to_mem_nocache+0xd/0x10 [emgd]
 [efe2332d] os_map_io_to_mem_nocache+0xd/0x10 [emgd]
 [efe054d3] full_config_tnc+0x2d3/0x390 [emgd]
 [efe23107] ? os_pci_find_device+0x77/0x90 [emgd]
 [efe048b6] config_tnc+0x16/0x560 [emgd]
 [c110df9f] ? kmem_cache_alloc_trace+0x9f/0x200
 [efe042a8] ? igd_driver_init+0x1a8/0x210 [emgd]
 [efde3cdb] ? emgd_driver_load+0xdb/0x350 [emgd]
 [efde3cdb] ? emgd_driver_load+0xdb/0x350 [emgd]
 [efe04327] igd_driver_config+0x17/0x30 [emgd]
 [efde3d5b] emgd_driver_load+0x15b/0x350 [emgd]
 [efce334b] drm_get_pci_dev+0x13b/0x250 [drm]
 [efce3533] drm_pci_init+0xd3/0x110 [drm]
 [efe6c000] ? 0xefe6bfff
 [efe6c085] emgd_init+0x85/0x99 [emgd]
 [efe6c000] ? 0xefe6bfff
 [c10001aa] do_one_initcall+0xda/0x130
 [c1058245] ? __blocking_notifier_call_chain+0x45/0x60
 [c108870e] load_module+0x166e/0x1e80
 [c1088f9b] SyS_init_module+0x7b/0xb0
  [c168bd4c] syscall_call+0x7/0xb
---[ end trace 662b0c079ad2bc8c ]---
GMMADR(region 0) start: 0x9000 (256M).
GTTADR(region 3) start: 0xa03c (can map 256M RAM), and actual RAM base
0x3ffc.
Stolen memory information
   base in RAM: 0x3f80
   size: 7932K, calculated by (GTT RAM base) - (Stolen base)
   size: 8M (dvmt mode=3)
Set up 1983 stolen pages starting at 0x0003f800, GTT offset 0K
Initializing PVR Services.
[drm] Initialized emgd 1.18.3398 20131204 for :00:02.0 on minor 0
[EMGD] Driver Initialized.
---

Testing xbmc on this, seems like hw accel is not working. Videos are very
slow and I get this output:
libva: Trying to open /usr/lib/dri/emgd_drv_video.so
libva: va_openDriver() returns -1


-- 
*ag*
___
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel


Re: [meta-intel] [meta-fri] Graphics broken?

2013-12-05 Thread Burton, Ross
On 5 December 2013 11:31, Andrei Gherzan and...@gherzan.ro wrote:
 Testing xbmc on this, seems like hw accel is not working. Videos are very
 slow and I get this output:
 libva: Trying to open /usr/lib/dri/emgd_drv_video.so
 libva: va_openDriver() returns -1

Try using low-level tools such as vainfo, might give more useful information.

Ross
___
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel


Re: [meta-intel] [meta-fri] Graphics broken?

2013-12-05 Thread Andrei Gherzan
On Thu, Dec 5, 2013 at 1:47 PM, Burton, Ross ross.bur...@intel.com wrote:

 On 5 December 2013 11:31, Andrei Gherzan and...@gherzan.ro wrote:
  Testing xbmc on this, seems like hw accel is not working. Videos are very
  slow and I get this output:
  libva: Trying to open /usr/lib/dri/emgd_drv_video.so
  libva: va_openDriver() returns -1

 Try using low-level tools such as vainfo, might give more useful
 information.

 Ross


Yes. I used that too. Nothing more than:
libva: VA-API version 0.32.1
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/dri/emgd_drv_video.so
libva: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit

-- 
*ag*
___
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel


Re: [meta-intel] [meta-fri] Graphics broken?

2013-12-05 Thread Burton, Ross
On 5 December 2013 12:51, Andrei Gherzan and...@gherzan.ro wrote:
 Yes. I used that too. Nothing more than:
 libva: VA-API version 0.32.1
 libva: va_getDriverName() returns 0
 libva: Trying to open /usr/lib/dri/emgd_drv_video.so
 libva: va_openDriver() returns -1
 vaInitialize failed with error code -1 (unknown libva error),exit

Useful. :/   Unless you fancy testing selected reverts I'm out of
ideas, maybe Nitin on Darren have some thoughts.

Ross
___
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel


Re: [meta-intel] [meta-fri] Graphics broken?

2013-12-05 Thread Tom Zanussi
On Thu, 2013-12-05 at 12:55 +, Burton, Ross wrote:
 On 5 December 2013 12:51, Andrei Gherzan and...@gherzan.ro wrote:
  Yes. I used that too. Nothing more than:
  libva: VA-API version 0.32.1
  libva: va_getDriverName() returns 0
  libva: Trying to open /usr/lib/dri/emgd_drv_video.so
  libva: va_openDriver() returns -1
  vaInitialize failed with error code -1 (unknown libva error),exit
 
 Useful. :/   Unless you fancy testing selected reverts I'm out of
 ideas, maybe Nitin on Darren have some thoughts.
 

All the problems you're seeing seem to be due to using master - I'd
suggest going back and starting with dylan.  All the graphics tests
worked fine with dora, and video was tested and accelerated as well.

That was all with the emgd-1.18 port to the 3.10 kernel - the OOPs you
mentioned is from emgd but it's just a warning from a longstanding bug
in emgd that became apparent with a change in 3.10 - we're working with
the emgd team to get a correct fix there, but it shouldn't affect the
graphics functionality.

Tom

 Ross
 ___
 meta-intel mailing list
 meta-intel@yoctoproject.org
 https://lists.yoctoproject.org/listinfo/meta-intel


___
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel


Re: [meta-intel] [meta-fri] Graphics broken?

2013-12-05 Thread Tom Zanussi
On Thu, 2013-12-05 at 08:01 -0600, Tom Zanussi wrote:
 On Thu, 2013-12-05 at 12:55 +, Burton, Ross wrote:
  On 5 December 2013 12:51, Andrei Gherzan and...@gherzan.ro wrote:
   Yes. I used that too. Nothing more than:
   libva: VA-API version 0.32.1
   libva: va_getDriverName() returns 0
   libva: Trying to open /usr/lib/dri/emgd_drv_video.so
   libva: va_openDriver() returns -1
   vaInitialize failed with error code -1 (unknown libva error),exit
  
  Useful. :/   Unless you fancy testing selected reverts I'm out of
  ideas, maybe Nitin on Darren have some thoughts.
  
 
 All the problems you're seeing seem to be due to using master - I'd
 suggest going back and starting with dylan.  All the graphics tests

Oop, sorry, I meant dora here obviously.

Tom

 worked fine with dora, and video was tested and accelerated as well.
 
 That was all with the emgd-1.18 port to the 3.10 kernel - the OOPs you
 mentioned is from emgd but it's just a warning from a longstanding bug
 in emgd that became apparent with a change in 3.10 - we're working with
 the emgd team to get a correct fix there, but it shouldn't affect the
 graphics functionality.
 
 Tom
 
  Ross
  ___
  meta-intel mailing list
  meta-intel@yoctoproject.org
  https://lists.yoctoproject.org/listinfo/meta-intel
 
 
 ___
 meta-intel mailing list
 meta-intel@yoctoproject.org
 https://lists.yoctoproject.org/listinfo/meta-intel


___
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel