HW Acceleration Working
#17
(04-21-2016, 01:37 PM)longsleep Wrote:
(04-20-2016, 04:08 PM)moondark Wrote: They also implemented replacements for sman drm functions based on mm to maintain the compatibility among structs. Please, take a look at the mali_drv.c, for instance, all missing functions from pre-3.0 were replaced or implemented somehow. I'm talking about these files: 

https://github.com/loboris/OrangePI-Kern...e/mali_drm

However, I'm not sure about the compatibility of the drm headers available in the include directory and those in the kernel. Some careful inspection is needed.

In addition, after compiling it I built the modules symbols and checked for missing symbols, none were missing, however I do not have much experience building kernel modules and dealing with kernel compiling scripts, thus I don't know where to change the mod_layout and magic version. I think I may need to install the new kernel and modules altogether. I may try to do this in the weekend.

Yes, but i tried the patched version already - does not work for me.

Code:
insmod mali_drm.ko
[  458.086883] mali_drm: Unknown symbol drm_sman_cleanup (err 0)
[  458.086942] mali_drm: Unknown symbol drm_sman_set_range (err 0)
[  458.086975] mali_drm: Unknown symbol drm_sman_takedown (err 0)
[  458.086999] mali_drm: Unknown symbol drm_sman_alloc (err 0)
[  458.087067] mali_drm: Unknown symbol drm_sman_init (err 0)
[  458.087110] mali_drm: Unknown symbol drm_sman_owner_clean (err 0)
[  458.087140] mali_drm: Unknown symbol drm_sman_owner_cleanup (err 0)
[  458.087164] mali_drm: Unknown symbol drm_sman_set_manager (err 0)
[  458.087187] mali_drm: Unknown symbol drm_sman_free_key (err 0)

Where are those symbols supposed to come from?

Sorry, I messed up the things. Before trying to compile the modified module I tried other approaches and added some code for sman missing symbols to the drm module, but the unmodified module could not be compiled because of drm_init and exit functions, this was before I tried to compile the modified version. In such way, I forgot that I added those missing symbols before from:

https://github.com/loboris/OrangePI-Kern...drm_sman.c

They already implemented those functions over drm_mm. Such functions are very simple, each correspond to a drm_mm allocation/cleanup/free function while also carrying on the ownership in the struct. This is already implemented in drm_sman.c, and seems to be compatible with linux 3.x . I added this code directly to the to the drm module, however it can also be added only to the mali_drm.

The main thing I'm not sure about is the struct size compatibility between the provided headers for drm, and those present in your source tree. This weekend I will check this and also try to compile it. I'm not 100% confident, but I think that with such workarounds we can have a functional mali_drm.
  Reply


Messages In This Thread
HW Acceleration Working - by Luke - 04-06-2016, 07:29 PM
RE: Help with HW Acceleration - by tllim - 04-07-2016, 11:12 AM
RE: Help with HW Acceleration - by rdPine64 - 04-13-2016, 11:22 AM
RE: Help with HW Acceleration - by longsleep - 04-14-2016, 11:00 AM
RE: Help with HW Acceleration - by rdPine64 - 04-23-2016, 01:16 PM
RE: Help with HW Acceleration - by moondark - 04-19-2016, 11:58 PM
RE: Help with HW Acceleration - by moondark - 04-20-2016, 03:23 AM
RE: Help with HW Acceleration - by moondark - 04-20-2016, 04:49 AM
RE: Help with HW Acceleration - by longsleep - 04-20-2016, 05:06 AM
RE: Help with HW Acceleration - by moondark - 04-20-2016, 05:49 AM
RE: Help with HW Acceleration - by longsleep - 04-20-2016, 01:59 PM
RE: Help with HW Acceleration - by moondark - 04-20-2016, 04:08 PM
RE: Help with HW Acceleration - by longsleep - 04-21-2016, 01:37 PM
RE: Help with HW Acceleration - by moondark - 04-22-2016, 02:10 PM
RE: Help with HW Acceleration - by Luke - 04-22-2016, 10:08 AM
RE: Help with HW Acceleration - by rahlquist - 04-22-2016, 12:26 PM
RE: Help with HW Acceleration - by sirhcjw - 04-26-2016, 07:50 AM
RE: Help with HW Acceleration - by baryluk - 04-26-2016, 02:43 PM
RE: Help with HW Acceleration - by Luke - 04-27-2016, 07:55 AM
RE: Help with HW Acceleration - by fishmech - 05-06-2016, 02:01 PM
RE: Help with HW Acceleration - by CaptainZalo - 05-31-2016, 12:57 PM
RE: Help with HW Acceleration - by tllim - 05-31-2016, 05:26 PM
RE: Help with HW Acceleration - by Luke - 05-31-2016, 05:57 PM
RE: Help with HW Acceleration - by CybeX - 06-01-2016, 08:47 AM
RE: Help with HW Acceleration - by Metalazzo - 06-06-2016, 10:16 AM
RE: Help with HW Acceleration - by tllim - 06-06-2016, 06:31 PM
RE: Help with HW Acceleration - by CybeX - 06-10-2016, 12:08 PM
RE: Help with HW Acceleration - by CaptainZalo - 06-13-2016, 12:50 PM
RE: Help with HW Acceleration - by tllim - 06-14-2016, 11:45 AM
RE: Help with HW Acceleration - by pietrondo - 06-06-2016, 05:51 PM
RE: Help with HW Acceleration - by Metalazzo - 06-07-2016, 03:22 AM
RE: Help with HW Acceleration - by BringItOn - 06-11-2016, 04:28 AM
RE: Help with HW Acceleration - by fneves - 06-14-2016, 04:55 AM
RE: Help with HW Acceleration - by pietrondo - 06-14-2016, 09:32 AM
RE: Help with HW Acceleration - by Luke - 06-14-2016, 12:22 PM
RE: Help with HW Acceleration - by CaptainZalo - 06-16-2016, 11:41 AM
RE: Help with HW Acceleration - by tllim - 06-16-2016, 12:30 PM
RE: Help with HW Acceleration - by tllim - 06-17-2016, 10:31 AM
RE: Help with HW Acceleration - by ViperVi - 06-17-2016, 11:40 AM
RE: Help with HW Acceleration - by tllim - 06-17-2016, 05:08 PM
RE: Help with HW Acceleration - by ViperVi - 06-17-2016, 06:37 PM
RE: Help with HW Acceleration - by Ghost - 06-20-2016, 04:00 AM
RE: Help with HW Acceleration - by CaptainZalo - 06-20-2016, 11:05 PM
RE: Help with HW Acceleration - by tllim - 06-21-2016, 03:54 PM
RE: Help with HW Acceleration - by tllim - 06-23-2016, 07:50 AM
RE: Help with HW Acceleration - by jl_678 - 06-23-2016, 07:58 AM
RE: Help with HW Acceleration - by Luke - 06-23-2016, 08:57 AM
RE: Help with HW Acceleration - by jl_678 - 06-23-2016, 01:23 PM
RE: Help with HW Acceleration - by Monochrome - 06-23-2016, 01:49 PM
RE: Help with HW Acceleration - by extr - 06-23-2016, 02:13 PM
RE: Help with HW Acceleration - by xalius - 06-23-2016, 02:56 PM
RE: Help with HW Acceleration - by ssvb - 06-23-2016, 03:03 PM
RE: Help with HW Acceleration - by barawn - 07-02-2016, 10:33 AM
RE: Help with HW Acceleration - by xalius - 06-24-2016, 11:45 AM
RE: Help with HW Acceleration - by Sak3r - 06-24-2016, 10:54 AM
RE: Help with HW Acceleration - by ssvb - 06-24-2016, 11:58 AM
RE: Help with HW Acceleration - by Xabaras76 - 06-24-2016, 04:48 PM
RE: Help with HW Acceleration - by ssvb - 06-25-2016, 02:58 PM
RE: Help with HW Acceleration - by longsleep - 06-25-2016, 03:40 PM
RE: Help with HW Acceleration - by tllim - 06-26-2016, 06:57 PM
RE: Help with HW Acceleration - by nagmier - 06-27-2016, 09:25 AM
RE: Help with HW Acceleration - by ssvb - 06-25-2016, 05:30 PM
RE: Help with HW Acceleration - by jrullan - 06-25-2016, 07:09 PM
RE: Help with HW Acceleration - by CaptainZalo - 06-27-2016, 03:13 PM
RE: Help with HW Acceleration - by nagmier - 06-28-2016, 05:50 AM
RE: Help with HW Acceleration - by CaptainZalo - 06-28-2016, 07:21 AM
RE: Help with HW Acceleration - by CaptainZalo - 07-01-2016, 02:24 AM
RE: Help with HW Acceleration - by tllim - 07-02-2016, 09:50 PM
RE: Help with HW Acceleration - by nagmier - 07-14-2016, 06:59 PM
RE: Help with HW Acceleration - by tllim - 07-16-2016, 07:35 PM
RE: Help with HW Acceleration - by nagmier - 07-17-2016, 07:41 AM
RE: Help with HW Acceleration - by longsleep - 07-03-2016, 09:19 AM
RE: Help with HW Acceleration - by longsleep - 07-06-2016, 11:09 PM
RE: Help with HW Acceleration - by janeku - 07-06-2016, 03:42 PM
RE: Help with HW Acceleration - by janeku - 07-07-2016, 09:19 AM
RE: Help with HW Acceleration - by longsleep - 07-07-2016, 10:17 AM
RE: Help with HW Acceleration - by Bart333 - 07-11-2016, 10:41 AM
RE: Help with HW Acceleration - by Luke - 07-11-2016, 10:59 AM
RE: Help with HW Acceleration - by jrullan - 07-11-2016, 08:42 PM
RE: Help with HW Acceleration - by CaptainZalo - 07-16-2016, 06:44 AM
RE: Help with HW Acceleration - by Boring - 07-17-2016, 03:42 AM
RE: Help with HW Acceleration - by adamw - 07-19-2016, 08:06 PM
RE: Help with HW Acceleration - by CaptainZalo - 07-20-2016, 03:49 AM
RE: Help with HW Acceleration - by vinodmenon80 - 07-20-2016, 04:04 AM
RE: Help with HW Acceleration - by nugu53 - 07-27-2016, 01:54 AM
RE: Help with HW Acceleration - by Monochrome - 07-29-2016, 10:18 AM
RE: Help with HW Acceleration - by adamw - 07-29-2016, 10:29 AM
RE: Help with HW Acceleration - by jl_678 - 07-29-2016, 11:17 AM
RE: Help with HW Acceleration - by jrullan - 07-29-2016, 04:16 PM
RE: Help with HW Acceleration - by jkmooney - 07-29-2016, 02:40 PM
RE: Help with HW Acceleration - by fire219 - 07-29-2016, 09:18 PM
RE: Help with HW Acceleration - by nagmier - 07-30-2016, 10:27 AM
RE: Help with HW Acceleration - by tllim - 07-30-2016, 06:23 PM
HW Acceleration Working - by Monochrome - 07-30-2016, 01:03 AM
RE: HW Acceleration Working - by Er0l - 07-30-2016, 01:27 AM
RE: HW Acceleration Working - by DefinitelyNotLA - 07-30-2016, 02:20 AM
RE: HW Acceleration Working - by ssvb - 07-30-2016, 02:41 AM
RE: HW Acceleration Working - by Luke - 07-30-2016, 07:15 AM
RE: HW Acceleration Working - by longsleep - 07-30-2016, 07:33 AM
RE: HW Acceleration Working - by Xabaras76 - 07-30-2016, 09:20 AM
RE: HW Acceleration Working - by Zoidiano0 - 07-30-2016, 09:55 AM
RE: HW Acceleration Working - by Vidiot - 07-30-2016, 02:50 PM
RE: HW Acceleration Working - by Terra854 - 07-30-2016, 11:28 PM
RE: HW Acceleration Working - by Monochrome - 07-31-2016, 03:54 AM
RE: HW Acceleration Working - by longsleep - 07-31-2016, 01:54 PM
RE: HW Acceleration Working - by Monochrome - 07-31-2016, 02:13 PM
RE: HW Acceleration Working - by longsleep - 07-31-2016, 02:17 PM
RE: HW Acceleration Working - by Monochrome - 07-31-2016, 02:18 PM
RE: HW Acceleration Working - by longsleep - 07-31-2016, 02:19 PM
HW Acceleration Working - by Monochrome - 07-31-2016, 02:41 PM
RE: HW Acceleration Working - by longsleep - 07-31-2016, 03:43 PM
RE: HW Acceleration Working - by xalius - 07-31-2016, 03:57 PM
HW Acceleration Working - by Monochrome - 07-31-2016, 10:35 PM
RE: HW Acceleration Working - by Monochrome - 08-01-2016, 09:53 AM
RE: HW Acceleration Working - by longsleep - 08-01-2016, 10:29 AM
RE: HW Acceleration Working - by xalius - 08-01-2016, 11:40 AM
RE: HW Acceleration Working - by Monochrome - 08-01-2016, 11:54 AM
RE: HW Acceleration Working - by longsleep - 08-01-2016, 12:46 PM
RE: HW Acceleration Working - by Monochrome - 08-01-2016, 01:21 PM
RE: HW Acceleration Working - by longsleep - 08-01-2016, 03:06 PM
RE: HW Acceleration Working - by Monochrome - 08-02-2016, 01:46 PM
RE: HW Acceleration Working - by rallar8 - 08-02-2016, 12:07 PM
RE: HW Acceleration Working - by HorreC - 08-03-2016, 12:30 PM
RE: HW Acceleration Working - by rallar8 - 08-03-2016, 03:26 PM
RE: HW Acceleration Working - by HorreC - 08-03-2016, 04:06 PM
RE: HW Acceleration Working - by kflorek46 - 08-03-2016, 11:25 PM
RE: HW Acceleration Working - by HorreC - 08-04-2016, 09:53 AM
RE: HW Acceleration Working - by jodybrown99 - 08-04-2016, 02:19 PM
RE: HW Acceleration Working - by piner64 - 08-08-2016, 02:04 AM
RE: HW Acceleration Working - by Monochrome - 08-08-2016, 04:05 AM
RE: HW Acceleration Working - by shadowheart - 08-11-2016, 04:52 AM
RE: HW Acceleration Working - by Monochrome - 08-11-2016, 06:38 AM
RE: HW Acceleration Working - by xalius - 08-11-2016, 06:50 AM
RE: HW Acceleration Working - by dkryder - 08-12-2016, 02:43 AM
RE: HW Acceleration Working - by xalius - 08-12-2016, 02:48 AM
RE: HW Acceleration Working - by dkryder - 08-12-2016, 03:22 AM
RE: HW Acceleration Working - by jrullan - 08-17-2016, 06:32 PM
RE: HW Acceleration Working - by protonic - 08-19-2016, 05:23 AM
RE: HW Acceleration Working - by rcgalvao - 08-23-2016, 06:59 PM
RE: HW Acceleration Working - by pietrondo - 08-25-2016, 06:12 AM
RE: HW Acceleration Working - by jkmooney - 08-25-2016, 06:05 AM
RE: HW Acceleration Working - by nagmier - 08-25-2016, 12:39 PM
RE: HW Acceleration Working - by pietrondo - 08-25-2016, 02:33 PM
RE: HW Acceleration Working - by jrullan - 08-25-2016, 09:13 PM
RE: HW Acceleration Working - by nagmier - 08-25-2016, 07:06 PM
RE: HW Acceleration Working - by pfeerick - 08-25-2016, 11:29 PM
RE: HW Acceleration Working - by dkryder - 08-26-2016, 04:18 AM
RE: HW Acceleration Working - by jrullan - 08-26-2016, 07:36 AM
RE: HW Acceleration Working - by Monochrome - 08-26-2016, 09:36 AM
RE: HW Acceleration Working - by joe - 08-26-2016, 09:55 AM
RE: HW Acceleration Working - by pfeerick - 08-26-2016, 11:58 PM
RE: HW Acceleration Working - by Terra854 - 08-29-2016, 09:39 AM
RE: HW Acceleration Working - by jrullan - 08-29-2016, 09:17 PM
RE: HW Acceleration Working - by jrullan - 08-29-2016, 02:47 PM
HW Acceleration Working - by Monochrome - 08-29-2016, 03:03 PM
RE: HW Acceleration Working - by jrullan - 08-29-2016, 03:17 PM
RE: HW Acceleration Working - by CaptainZalo - 08-29-2016, 10:45 PM
RE: HW Acceleration Working - by longsleep - 08-29-2016, 11:41 PM
RE: HW Acceleration Working - by CaptainZalo - 08-30-2016, 01:37 AM
RE: HW Acceleration Working - by CaptainZalo - 08-30-2016, 02:03 AM
RE: HW Acceleration Working - by pfeerick - 08-30-2016, 02:13 AM
RE: HW Acceleration Working - by pfeerick - 08-30-2016, 02:50 AM
RE: HW Acceleration Working - by pfeerick - 08-30-2016, 03:10 AM
RE: HW Acceleration Working - by pfeerick - 08-30-2016, 03:50 AM
RE: HW Acceleration Working - by jrullan - 08-30-2016, 04:47 AM
RE: HW Acceleration Working - by jrullan - 08-30-2016, 06:20 AM
RE: HW Acceleration Working - by longsleep - 08-30-2016, 10:43 AM
RE: HW Acceleration Working - by pfeerick - 08-30-2016, 03:44 PM
RE: HW Acceleration Working - by jrullan - 08-30-2016, 12:33 PM
RE: HW Acceleration Working - by adamw - 08-30-2016, 02:53 PM
RE: HW Acceleration Working - by pietrondo - 08-30-2016, 03:14 PM
RE: HW Acceleration Working - by longsleep - 08-30-2016, 05:13 PM
RE: HW Acceleration Working - by jrullan - 08-30-2016, 06:47 PM
RE: HW Acceleration Working - by tkaiser - 08-30-2016, 11:24 PM
RE: HW Acceleration Working - by tkaiser - 08-31-2016, 03:23 AM
RE: HW Acceleration Working - by tkaiser - 08-31-2016, 07:22 AM
RE: HW Acceleration Working - by adamw - 08-31-2016, 08:54 AM
RE: HW Acceleration Working - by tkaiser - 08-31-2016, 09:14 AM
RE: HW Acceleration Working - by jrullan - 08-31-2016, 02:57 PM
RE: HW Acceleration Working - by tkaiser - 08-31-2016, 03:18 PM
RE: HW Acceleration Working - by jkmooney - 08-31-2016, 04:00 PM
RE: HW Acceleration Working - by jrullan - 08-31-2016, 04:37 PM
RE: HW Acceleration Working - by jrullan - 08-31-2016, 05:20 PM
RE: HW Acceleration Working - by ssvb - 08-31-2016, 05:54 PM
RE: HW Acceleration Working - by jrullan - 08-31-2016, 06:36 PM
RE: HW Acceleration Working - by Pander - 09-04-2016, 07:09 AM
RE: HW Acceleration Working - by Ghelorn - 09-04-2016, 03:52 PM
RE: HW Acceleration Working - by psychedup - 09-06-2016, 05:12 PM
RE: HW Acceleration Working - by Pander - 09-07-2016, 07:00 AM
RE: HW Acceleration Working - by pietrondo - 09-10-2016, 05:33 AM
RE: HW Acceleration Working - by pfeerick - 09-10-2016, 11:36 PM
RE: HW Acceleration Working - by Luke - 09-11-2016, 03:13 PM
RE: HW Acceleration Working - by Zoidiano0 - 09-10-2016, 07:08 AM
RE: HW Acceleration Working - by dkryder - 09-10-2016, 08:31 PM
RE: HW Acceleration Working - by HayseedGeek - 09-10-2016, 10:40 PM
RE: HW Acceleration Working - by FlameCRO - 09-11-2016, 08:01 AM
RE: HW Acceleration Working - by tampadave - 10-04-2016, 04:16 PM
RE: HW Acceleration Working - by pfeerick - 10-04-2016, 07:14 PM
RE: HW Acceleration Working - by dkryder - 10-04-2016, 08:30 PM
RE: HW Acceleration Working - by HayseedGeek - 10-05-2016, 07:09 AM
RE: HW Acceleration Working - by ssvb - 10-05-2016, 07:28 AM
RE: HW Acceleration Working - by pfeerick - 10-05-2016, 06:56 PM
RE: HW Acceleration Working - by dkryder - 10-06-2016, 11:01 PM
RE: HW Acceleration Working - by Gnx - 11-26-2016, 02:05 PM
RE: HW Acceleration Working - by bmarquismarkail - 12-01-2016, 08:05 AM
RE: HW Acceleration Working - by Gnx - 12-05-2016, 12:23 PM
RE: HW Acceleration Working - by Terra854 - 12-05-2016, 08:22 PM
RE: HW Acceleration Working - by Luke - 12-06-2016, 06:38 AM
RE: HW Acceleration Working - by tllim - 12-15-2016, 06:27 PM
RE: HW Acceleration Working - by Pander - 12-08-2016, 05:20 AM
RE: HW Acceleration Working - by Gnx - 12-11-2016, 11:58 AM
RE: HW Acceleration Working - by Pander - 12-16-2016, 08:18 AM
RE: HW Acceleration Working - by Flint - 12-29-2016, 02:49 AM
RE: HW Acceleration Working - by Gnx - 01-20-2017, 03:04 AM
RE: HW Acceleration Working - by Flint - 02-06-2017, 09:22 AM
RE: HW Acceleration Working - by makzoom01 - 02-14-2017, 11:40 PM
RE: HW Acceleration Working - by pqueiro - 03-13-2017, 04:46 AM
RE: HW Acceleration Working - by CaptainZalo - 03-13-2017, 07:29 AM
RE: HW Acceleration Working - by pqueiro - 03-15-2017, 05:11 AM
RE: HW Acceleration Working - by Gnx - 05-09-2017, 09:32 PM
RE: HW Acceleration Working - by Luke - 05-10-2017, 03:08 AM
RE: HW Acceleration Working - by Gnx - 05-14-2017, 10:45 PM
RE: HW Acceleration Working - by Luke - 05-15-2017, 05:11 AM
RE: HW Acceleration Working - by Gnx - 05-15-2017, 12:27 PM
RE: HW Acceleration Working - by pqueiro - 12-01-2017, 02:25 PM
RE: HW Acceleration Working - by Pander - 12-02-2017, 06:44 AM
RE: HW Acceleration Working - by Luke - 12-02-2017, 04:37 PM
RE: HW Acceleration Working - by Brian Beuken - 03-04-2018, 02:54 PM
RE: HW Acceleration Working - by Luke - 03-05-2018, 04:27 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Brand New LCD not working adamjedgar 3 2,379 03-11-2017, 12:20 AM
Last Post: simplexdan
  Pine64+: 3 working, 1 shows nothing on tv zumtra 1 1,667 07-30-2016, 05:47 PM
Last Post: tllim

Forum Jump:


Users browsing this thread: 2 Guest(s)