Coder Social home page Coder Social logo

PVR usabilty/stability on 5.9 about linux HOT 5 CLOSED

kwizart avatar kwizart commented on September 18, 2024
PVR usabilty/stability on 5.9

from linux.

Comments (5)

xc-racer99 avatar xc-racer99 commented on September 18, 2024

Odd, it looks like the PVR driver is freezing up. I wonder if there's some clock issue with my forward porting.

Do you have a link to the fedora you're using? I'd like to try it out when I have a chance. May not be soon as I don't have as much free time as I used to.

from linux.

kwizart avatar kwizart commented on September 18, 2024

I will probably rebase on fedora 33 that can be downloaded from https://arm.fedoraproject.org/
I recommend to pick the Fedora Minimal (under the Server tab), because others spins default to btrfs which is too ambitious for my use case.

For Fedora 31, I've used the LXDE Spin, at:
https://download.fedoraproject.org/pub/fedora/linux/releases/31/Spins/Fedora-LXDE-armhfp-31-1.9-sda.raw.xz

IIRC, I've bootstrapped the install on another device to setup the hostname, wifi , disable selinux and remote access, then installed the dracut-config-generic package to create a generic initramfs from foreign host that can be consumed by the galaxys.

from linux.

xc-racer99 avatar xc-racer99 commented on September 18, 2024

Ok, I've been able to reproduce this. Looks like we need to change a build option, as per https://lists.goldelico.com/pipermail/openpvrsgx-devgroup/2020-November/000449.html

Untested, but fixes the same issue as seen on OMAP4.

from linux.

xc-racer99 avatar xc-racer99 commented on September 18, 2024

I can now confirm that adding -DPVR_LINUX_MEM_AREA_USE_VMAP to the build options does indeed fix things. Kmscube is now working again.

Patch as per @tmlind

diff --git a/drivers/gpu/drm/pvrsgx/1.17.4948957/eurasia_km/Makefile b/drivers/gpu/drm/pvrsgx/1.17.4948957/eurasia_km/Makefile
index fb5507bf5ba31..fdca642a9c3e2 100644
--- a/drivers/gpu/drm/pvrsgx/1.17.4948957/eurasia_km/Makefile
+++ b/drivers/gpu/drm/pvrsgx/1.17.4948957/eurasia_km/Makefile
@@ -117,6 +117,7 @@ ccflags-y += \
 	-DLDM_PLATFORM \
 	-DSUPPORT_SGX_EVENT_OBJECT \
 	-DPVR2D_ALT_2DHW \
+	-DPVR_LINUX_MEM_AREA_USE_VMAP \
 	-DSUPPORT_SGX_HWPERF \
 	-DSUPPORT_SGX_LOW_LATENCY_SCHEDULING \
 	-DSUPPORT_LINUX_X86_PAT \

Going to close this issue as that should resolve it. Looks like I won't need to setup a Fedora install after all :)

from linux.

kwizart avatar kwizart commented on September 18, 2024

Confirmed, kmscube works like a charm. Thanks!
glmark2-es2-drm

=======================================================
    glmark2 2017.07
=======================================================
    OpenGL Information
    GL_VENDOR:     Imagination Technologies
    GL_RENDERER:   PowerVR SGX 540
    GL_VERSION:    OpenGL ES 2.0 build 1.17@4948957
=======================================================
 [ ...]
                                  glmark2 Score: 38 
=======================================================

from linux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.