alyssa changed the topic of #panfrost to: Panfrost - FLOSS Mali Midgard & Bifrost - Logs https://freenode.irclog.whitequark.org/panfrost - <daniels> avoiding X is a huge feature
alyssa has joined #panfrost
<alyssa> Figured out my disasm issue, but thinking I need to refactor more disasm code to make this not awful
stikonas has quit [Remote host closed the connection]
<urjaman> ... for some reason editing fields in libreoffice calc makes Xorg take 100% CPU
<urjaman> i suppose i should update panfroste before further investigation but like ... odd.
<urjaman> nothing in dmesg, just Xorg hogging CPU and libreoffice being laggy-af
<urjaman> i suppose i'll do my budget on the big computer as usual :P
<alyssa> :/
* alyssa tries to fix disasm harder
<alyssa> Definitely making progress but there are... a *lot* of combinations
raster has quit [Quit: Gettin' stinky!]
nerdboy has quit [Ping timeout: 265 seconds]
nerdboy has joined #panfrost
buzzmarshall has quit [Read error: Connection reset by peer]
chewitt has joined #panfrost
chewitt has quit [Quit: Zzz..]
nerdboy has quit [Ping timeout: 240 seconds]
chewitt has joined #panfrost
nerdboy has joined #panfrost
vstehle has quit [Ping timeout: 265 seconds]
megi has quit [Ping timeout: 240 seconds]
vstehle has joined #panfrost
_whitelogger has joined #panfrost
<chewitt> that's dirt cheap
<chewitt> finally one of the vendors grasps the idea of removing expensive emmc flash to drive the costs down
<chewitt> bonus credit if it can fit in the Kodi flirc case which acts as a passive heatsink
guillaume_g has joined #panfrost
NeuroScr has quit [Quit: NeuroScr]
<anarsoul> alyssa: do you also have q3a stuck with panfrost in GLSL_InitGPUShaders for quite a while with opengl2 renderer?
<anarsoul> looks like it spends a lot of time in compiler
pH5 has joined #panfrost
icecream95 has joined #panfrost
yann|work has quit [Ping timeout: 265 seconds]
<icecream95> bbrezillon: That doesn't seem to fix the oopses when a program exits while there are still GPU jobs
<icecream95> Running `timeout 5 glmark2-es2 -b refract` in a loop doesn't take long to trigger an oops
<bbrezillon> icecream95: oh, interesting
<bbrezillon> so we do have non-cancelled jobs flying around when we close the FD :-(
icecream95 has quit [Ping timeout: 240 seconds]
megi has joined #panfrost
raster has joined #panfrost
yann|work has joined #panfrost
raster has quit [Ping timeout: 240 seconds]
raster has joined #panfrost
karolherbst has joined #panfrost
NeuroScr has joined #panfrost
<daniels> bbrezillon: right, nothing forces clients to wait for job completion before closing the FD - especially if they crash rather than are exited gracefully :P
<raster> either way ... you exit :)
<raster> crashing can be a quite fast way to achieve that :)
<HdkR> FD_CLOEXEC is a good flag for apps that want to die quickly :D
<bbrezillon> daniels: well, the kernel should at least wait for all jobs to complete (or kill them somehow) before freeing the resources attached to panfrost_file :P
<bbrezillon> and yes, it's not userspace responsibility, but I thought it was all handled by the drm_sched helpers
<bbrezillon> but apparently we have a problem
<bbrezillon> BTW, I couldn't reproduce the issue
<bbrezillon> so it's hard to tell
<daniels> bbrezillon: yeah, other drivers don't delay client exit but instead just let the job live longer than the client
<bbrezillon> daniels: we could add refcounting to panfrost_file, but I'd still like to understand how we can end up with in-flight jobs after calling drm_sched_entity_destroy()
<bbrezillon> etnaviv and v3d don't seem to refcount their file_priv objs
<bbrezillon> but the iommu context is refcounted
raster has quit [Ping timeout: 240 seconds]
<bbrezillon> so yes, maybe jobs are still being executed after drm_sched_entity_destroy() returns
MastaG has joined #panfrost
<MastaG> Goooooood morning
<MastaG> I wanted to give panfrost a shot on my odroid xu3 (exynos soc with mali t-628 gpu)
NeuroScr has quit [Quit: NeuroScr]
<MastaG> So I built mesa with a small modification to pan_screen.c adding the 0x620 case
<MastaG> furthermore I rebuilt libdrm with the exynos driver enabled
<MastaG> gnome shell seems to start with some minor corruption (happens when moving the mouse cursor) but it's really snappy
<HdkR> Sounds about right from previous reports of Midgard 1st gen testing
<HdkR> `Nice work with panfrost. I did some runs on MALI T620(Odroid XU4) and there are some artefacts. for example pure weston and glmark2. Are there any change that we see some "love" for T620 :)`
<MastaG> however when attempting to run glxgears it will throw a segfault with: DRM_IOCTL_MODE_CREATE_DUMB failed: permission denied
<MastaG> @HdkR Great, we're on the same level then I guess, did you also get the segfault?
<MastaG> afaik it seems to originate from libdrm
<HdkR> I don't know what that problem is
<HdkR> Could be something trying to create a dumb buffer from the rendernode, which isn't allowed
<daniels> bbrezillon: when the drm_file gets torn down then all the CPU VAs associated with it get torn down so you don't need to worry about those, but you do need to keep the GPU job + GPU VAs + referenced BOs alive
megi has quit [*.net *.split]
alyssa has quit [*.net *.split]
Lyude has quit [*.net *.split]
ezequielg has quit [*.net *.split]
MoeIcenowy has quit [*.net *.split]
bshah has quit [*.net *.split]
warpme_ has quit [*.net *.split]
cyrozap has quit [*.net *.split]
lvrp16 has quit [*.net *.split]
austriancoder has quit [*.net *.split]
afaerber has quit [*.net *.split]
marex-cloud has quit [*.net *.split]
EmilKarlson has quit [*.net *.split]
flacks_ has quit [*.net *.split]
mmind00 has quit [*.net *.split]
andrey-konovalov has quit [*.net *.split]
phh has quit [*.net *.split]
mani_s_ has quit [*.net *.split]
guillaume_g has quit [*.net *.split]
Yardanico has quit [*.net *.split]
steev has quit [*.net *.split]
daniels has quit [*.net *.split]
narmstrong has quit [*.net *.split]
rellla has quit [*.net *.split]
Ke has quit [*.net *.split]
thefloweringash has quit [*.net *.split]
lvrp16 has joined #panfrost
marex-cloud has joined #panfrost
afaerber has joined #panfrost
mani_s_ has joined #panfrost
mmind00 has joined #panfrost
austriancoder has joined #panfrost
EmilKarlson has joined #panfrost
phh has joined #panfrost
andrey-konovalov has joined #panfrost
hopetech has quit [*.net *.split]
Depau has quit [*.net *.split]
tlwoerner has quit [*.net *.split]
cowsay has quit [*.net *.split]
xantoz has quit [*.net *.split]
robink has quit [*.net *.split]
rellla has joined #panfrost
megi has joined #panfrost
Lyude has joined #panfrost
alyssa has joined #panfrost
warpme_ has joined #panfrost
ezequielg has joined #panfrost
MoeIcenowy has joined #panfrost
bshah has joined #panfrost
cyrozap has joined #panfrost
Yardanico has joined #panfrost
daniels has joined #panfrost
guillaume_g has joined #panfrost
narmstrong has joined #panfrost
steev has joined #panfrost
steev has quit [Max SendQ exceeded]
marex-cloud has quit [Ping timeout: 242 seconds]
lvrp16 has quit [Ping timeout: 242 seconds]
austriancoder has quit [Ping timeout: 242 seconds]
ric96 has quit [Ping timeout: 256 seconds]
daniels has quit [Ping timeout: 244 seconds]
cowsay has joined #panfrost
Depau has joined #panfrost
steev has joined #panfrost
daniels has joined #panfrost
hopetech has joined #panfrost
lvrp16 has joined #panfrost
ric96 has joined #panfrost
austriancoder has joined #panfrost
xantoz has joined #panfrost
chewitt has quit [Read error: Connection reset by peer]
chewitt has joined #panfrost
raster has joined #panfrost
buzzmarshall has joined #panfrost
raster has quit [Ping timeout: 268 seconds]
raster has joined #panfrost
warpme_ has quit [Quit: Connection closed for inactivity]
<bbrezillon> daniels: something like http://code.bulix.org/velvdy-1120523 ?
<bbrezillon> I really thought GPU jobs were cancelled (as in HW-cancelled) in that case
raster has quit [Quit: Gettin' stinky!]
alpernebbi has joined #panfrost
<tomeu> bbrezillon: guess we could actually tell the hw to cancel those jobs, but I'm worried about cases in whcih the GPU is hung
<tomeu> or maybe most correct would be to do both things (cancel all jobs asynchronously, and make sure the MMU doesn't clean up before time)
<bbrezillon> anyway, I can't reproduce it locally, so I'll wait for icecream95 to test this patch before posting it
<alyssa> anarsoul|c: dunno, I haven't played with q3a myself
<alyssa> MastaG: "gnome shell seems to start with some minor corruption (happens when moving the mouse cursor) but it's really snappy" huh, nice :)
<alyssa> MastaG: "it will throw a segfault with: DRM_IOCTL_MODE_CREATE_DUMB failed: permission denied" this seems like it might be unrelated to T620 issues..?
<alyssa> tomeu: ^
alpernebbi has quit [Ping timeout: 252 seconds]
<MastaG> Hi Alyssa.. I've been googling on this ioctl a bit.. but I couldn't make up what's causing it..
<MastaG> perhaps I could try to set DRM_RENDER_ALLOW on the ioctl in the kernel
<bbrezillon> tomeu: here it is => http://code.bulix.org/uwv79t-1120552
<bbrezillon> and "Memory manager not clean during takedown." makes me think we're doing something wrong
<bbrezillon> well, my patch should address that too, since the drm_mm obj is teared down when the MMU context has been released
tlwoerner has joined #panfrost
raster has joined #panfrost
<alyssa> no bug like missing `break`
warpme_ has joined #panfrost
raster has quit [Quit: Gettin' stinky!]
nerdboy has quit [Ping timeout: 265 seconds]
<tomeu> any ideas?
<tomeu> guess it could be related to what bbrezillon is looking at, but wonder if we aren't masking error information by having a warn and then trying to map
<robmur01> tomeu: I guess it might at least help for that WARN to include what the unexpected exception type was
<robmur01> and 'fixing' it by trying to map something that's clearly already mapped doesn't seem too helpful either
<robmur01> That said, x4 in the splat looks like the fault status for an execute permission fault, which would seem to fit
raster has joined #panfrost
yann|work has quit [Ping timeout: 268 seconds]
indy has quit [Ping timeout: 240 seconds]
raster has quit [Quit: Gettin' stinky!]
pH5 has quit [Quit: bye]
<daniels> bbrezillon: i haven't done a super-thorough review but yeah that would be the general idea I suppose
<daniels> MastaG: about the CREATE_DUMB failure, I would guess that's related to trying to use GBM on a non-master device node ...
alpernebbi has joined #panfrost
yann|work has joined #panfrost
pH5 has joined #panfrost
warpme_ has quit [Quit: Connection closed for inactivity]
raster has joined #panfrost
nerdboy has joined #panfrost
pH5 has quit [*.net *.split]
steev has quit [*.net *.split]
afaerber has quit [*.net *.split]
EmilKarlson has quit [*.net *.split]
mmind00 has quit [*.net *.split]
andrey-konovalov has quit [*.net *.split]
phh has quit [*.net *.split]
mani_s_ has quit [*.net *.split]
steev has joined #panfrost
pH5 has joined #panfrost
afaerber has joined #panfrost
mmind00 has joined #panfrost
phh has joined #panfrost
mani_s_ has joined #panfrost
EmilKarlson has joined #panfrost
andrey-konovalov has joined #panfrost
warpme_ has joined #panfrost
buzzmarshall has quit [Remote host closed the connection]
* alyssa doesn't see how shared buffers are supposed to work on mali compute shaders
<alyssa> AFAICT they're treated identically to SSBOs, but I'm trying to wrap my head how that's conformant
<alyssa> see also: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.101897_0200_00_en/qfm1570448885817.html
<alyssa> Although I guess maybe memory being shared is more a property of coherence rather than how it's backed
<alyssa> unless they're playing games with the cache~
<alyssa> ---Yeah, I still don't see how this is conformant :\
<alyssa> ...Oops, I think i was using opengl wrong. Ahhh :p
<alyssa> Well, there goes an hour :<
<alyssa> Well, this is finally resolving a major mystrery about the hardware that's been here since day #1
<alyssa> Looks a lot like thread local storage.
<alyssa> Having major deja vu from spilling witchcraft about two months ago
stikonas has joined #panfrost
* alyssa feels like she's lookinig into sombra's door... i blame the hex...
robert_ancell has joined #panfrost
guillaume_g has quit [Quit: Konversation terminated!]
indy has joined #panfrost
alpernebbi has quit [Quit: alpernebbi]
buzzmarshall has joined #panfrost
NeuroScr has joined #panfrost
pH5 has quit [Quit: -_-]
warpme_ has quit [Quit: Connection closed for inactivity]