-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[XEN] Unable to inject GSX IRQ #106
Comments
I have also added "pvrsrvkm.DriverMode=0" in domd bootargs |
Hi @naveenc-93, are you using our default config? Also, what machine do use? I am asking because it should work out of the box without any changes. |
@otyshchenko1, may I ask you to take a quick look? I just don't remember what is the correct configuration for GSX. |
Yes, I am using the same config but machine is our custom board which is based on H3 starter kit. |
Ah, I see. Well, I am not sure that problem is with DomD. Looking at your logs, you already booted up DomU, so maybe Xen can't inject IRQs there? Sadly, it is unclear into which domain it can't inject IRQs. Are you seeing those messages before domain with ID=2 created? |
Yes, Even it is unclear for which domain Xen is unable to inject IRQ but I observe these messages during when a graphics application is being run in domd |
I also got this dump where error says "interrupts were not received in domd"
I also checked "cat /proc/interrupts" to check interrupts recieved by pvrsrvkm module. it shows 0. |
Well, this is interesting issue. Could you please confirm that you are seeing "Added GSX ..." message domain DomD creation? |
Hello @naveenc-93, in addition to what @lorc has said, could you please clarify whether the graphic DDK (both pvrum and pvrkm) you use is built with the per-OSID irq counters feature enabled? The "Failed to inject GSX IRQ" means that GSX IRQ was received, but Xen couldn't recognize the origin of that IRQ (to what domain this IRQ needs to be injected). |
Hello @otyshchenkod1, We are using GSX drivers provided by Renesas. Is this info correct? |
Just to clarify - you need a special build with virtualization feature enabled. If you have access to source code, you can use our recipes to build it. But if Renesas provided you binaries only - you need to check if they were built with the correct options. |
Hello @naveenc-93, both pvrkm and pvrum should be built with the following options. Could you please clarify whether you see "Added GSX d1 (OSID 0)" message during DomD creation or not? Unfortunately Also could you please post the whole system log from the very beginning (Xen + Dom0, DomD dmesg and journalctl)? |
Hello @otyshchenko1 , |
Hello @naveenc-93, thanks for the log and confirmation. Both pvrkm and pvrum should be built with the following options: It is also possible to look at the build options. from my log: In my case the bit 14 which indicates the RGX_FW_IRQ_OS_COUNTERS usage is set, in your case is not, Also I didn't spot the following string from your log (but my log contains it): As @lorc has already said, you would need a special build with virtualization feature enabled. |
Hello @otyshchenko1, Thank you for the detailed information. If I understood correctly, I need to prepare a new build with the above flags enabled. Thanks and Regards, |
Hi @naveenc-93, @otyshchenko1 may correct me, but looks like you are right. Also, I want to say that we provide means of automatic building of PVR UM and PVR KM: https://github.com/xen-troops/meta-xt-rcar/tree/master/meta-xt-rcar-proprietary which is automatically enabled if you are calling moulin with But you will need to provide URL for your copy of DDK (see https://github.com/xen-troops/meta-xt-rcar/blob/master/meta-xt-rcar-proprietary/recipes-graphics/gles-module/gles-um-compile.bb#L8C2-L8C2) |
Hello @otyshchenko1, Renesas has provided us only sources for PVR KM and egl libs as binaries. |
Hello @naveenc-93, This is unfortunate. You need a specific PVK UM ( EGL libs, firmware, tools, etc) build. Unfortunately we can't provide binaries to you because of NDA. You need to get those binaries from your Renesas contact. |
Hello @lorc Renesas has shared PVK UM binaries and in the kernel module, I had enabled below flags in the Makefile and built it.
|
Hi @naveenc-93, As you can see, there is mismatch between KM and UM:
Looks like you are using files from different packages. |
Hello Team, I have received updated gfx binaries of both user module and kernel module. After flashing the image, I am unable to detect the drm device. weston log always outputs as:
I have also attached full log with xen startup and domd logs. Thanks and Regards, |
Hello Team, Could you please help me in resolving this issue? I get below two error logs from two different set of gsx drivers. pvr driver codeset 1: pvr driver codeset 1 works fine and outputs HMI on hdmi display but not driver codeset 2. Thanks and Regards, |
Hello, it is not entirely clear what is the difference in both set of gfx drivers itself (codeset 1 and codeset 2)? The "minor" value shows DRM minor number for device nodes in /dev. The pvr is also acts the DRM device, So the there are two DRM devices in the system, first is rcar-du for feb00000.display, the second is pvr For example, logs from working environment: ... [ 8.100033] [drm] Initialized pvr 1.15.6052913 20170530 for fd000000.gsx on minor 1 And the corresponding nodes in /dev: root@salvator-x-domd:~# ls -l /dev/dri/ root@salvator-x-domd:~# ls -l /dev/dri/by-path/platform-feb00000.display-card root@salvator-x-domd:~# ls -l /dev/dri/by-path/platform-fd000000.gsx-card root@salvator-x-domd:~# ls -l /dev/dri/by-path/platform-fd000000.gsx-render The log from codeset 1 (... on minor 1) is correct, while log from codeset 0 (... on minor 0) suggests that |
Hello Oleksandr, Thank you for your reply. Please find the system logs of both scenarios. could you please help us in identifying why codeset2 binaries are initializing on minor 0 and not on minor1? |
Hello, could you please send the full system logs for both codesets. Saying full I mean the log starting from Xen including dom0 and domd logs (also journal output from the domd). Looks like rcar-du drm is not initialized in codeset2 scenario somehow. |
Hello Oleksandr, Unfortunately, I couldn't get the full system log from codeset1 (working scenario) case. |
Hello Oleksandr, |
Hello Team,
I am facing below IRQ issue with GSX driver.
(XEN) [ 20.059538] Failed to inject GSX IRQ
(XEN) [ 20.276373] common/grant_table.c:1882:d2v1 Expanding d2 grant table from 1 to 2 frames
(XEN) [ 20.284888] common/grant_table.c:1882:d2v1 Expanding d2 grant table from 2 to 3 frames
(XEN) [ 20.293334] common/grant_table.c:1882:d2v1 Expanding d2 grant table from 3 to 4 frames
(XEN) [ 20.301751] common/grant_table.c:1882:d2v1 Expanding d2 grant table from 4 to 5 frames
(XEN) [ 20.496305] gnttab_mark_dirty not implemented yet
(XEN) [ 22.554993] Failed to inject GSX IRQ
(XEN) [ 22.570198] Failed to inject GSX IRQ
Xen is unable to inject GSX IRQ. I have enabled below options for GSX in configuration file,.
dt_passthrough_nodes = [
"/gsx_opp_table0",
"/gsx_opp_table1",
"/gsx_opp_table2",
"/gsx_opp_table3",
"/gsx_opp_table4",
"/gsx_opp_table5",
"/gsx_opp_table6",
"/gsx_opp_table7",
]
dt_dev = [
"/soc/gsx_pv0_domd",
"/soc/gsx_pv1_domd",
"/soc/gsx_pv2_domd",
"/soc/gsx_pv3_domd",
]
irqs = [
gsx@fd000000
]
iomem = [
#gsx@fd000000
"fd000,40",
]
could you please help me on how to resolve this issue??
The text was updated successfully, but these errors were encountered: