paulk-collins has quit [Ping timeout: 246 seconds]
prahal has quit [Read error: Connection reset by peer]
prahal has joined #linux-exynos
<ndufresne>
javier__: cool, I've mapped the tiled format into the kernel, right now it renders the Y plane correct, but we have no colors (likeif UV planes is completly ignored)
<ndufresne>
javier__: if we use PRIME of the dmabuf fd, the driver crash
<ndufresne>
at the biginning our stride was wrong, but fixing that didn't remove the crash (that crash should never happen, it's unpreviledge process passing that data, we should have checks to prevent this)
<ndufresne>
hmm, actually, it my be on v4l2 side here
prahal has quit [Ping timeout: 260 seconds]
prahal has joined #linux-exynos
LiquidAcid has joined #linux-exynos
<ndufresne>
javier__: got a bidbuck bunny 1080p video that does not play till the end, it fails on error 0x7c INCOMPLETE_FRAME
<ndufresne>
I'm sure we can and should recover from this
<ndufresne>
we should also add a debug swich that prints the name of the errors, would make our lives much easier, cause not everyone have access to the spec
twitch153 has quit [Ping timeout: 276 seconds]
twitch153 has joined #linux-exynos
prahal has quit [Ping timeout: 260 seconds]
prahal has joined #linux-exynos
LiquidAcid has quit [Quit: Leaving]
<pokazef>
javier__: I compiled mainline 4.4.8 for my odroid-u3 but still no luck with the fan...
arnd has quit [Ping timeout: 244 seconds]
arnd has joined #linux-exynos
LiquidAcid has joined #linux-exynos
Putti has joined #linux-exynos
<Putti>
Hi, I have Samsung galaxy s3 lte (soc exynos 4412). Do you know what I should enable in kernel in order to show the kernel debug messages during boot? Should the kernel parameter console be tty0 (or does it even matter)? I tried different things under Device Driver -> Graphics Support but with no luck.
<Putti>
forgot to mention that I want the debug messages to show on the device's lcd.
wwilly has joined #linux-exynos
wwilly has quit [Quit: Leaving]
wwilly has joined #linux-exynos
<LiquidAcid>
Putti, that probably depends on the bootloader
<Putti>
LiquidAcid, why so?
<Putti>
LiquidAcid, I can change the splash screen during kernel load, so I think it would be possible to have the messages printed, too.
<LiquidAcid>
Putti, because the bootloader has to setup e.g. fimd to scanout from a framebuffer, the kernel initializes DRM pretty late in the process
<Putti>
Hmm, I think I didn't understand anything from you message, I'm pretty new to arm devices and kernel hacking :/ But there is "LCD init in kernel" option in the kernel, does that change anything?
<LiquidAcid>
Putti, like i said, you don't want to rely on the kernel setting up your display, that's going to too late to see any important messages
<LiquidAcid>
if you know how the bootloader setups fimd, you could maybe use simplefb
<LiquidAcid>
(i assume here that the lcd is connected via fimd)
<Putti>
LiquidAcid, I need to check that (and first what is fimd...)
<Putti>
LiquidAcid, what did you mean by initializing DRM? Do LCD controller chips have some sort of DRM restrictions? O.o
<Putti>
oh, I guess it's dynamic random-access memory...
<Putti>
:D
<Putti>
or is it?
<LiquidAcid>
Putti, no, DRM is the main linux graphics subsystem
<Putti>
okay, thank you ! :)
<Putti>
Hmm, is it possible to have kernel debug messages outputted via usb cable?
<wwilly>
hi
<wwilly>
Putti, maybe with an UARTtoUSB or something like that
<Putti>
wwilly, okay. What do I need to enable in kernel?
<Putti>
console=USB0 ?
<wwilly>
I'm out of context of your discussion, which board, which linux distro?
<Putti>
Samsung galaxy s3 lte (soc exynos 4412), no distro
<Putti>
i'm trying to get just some output so that I can see what went wrong when it tries to launch /init in initramfs
<wwilly>
with a debug console, you could have the trace from the bootloader and linux, and have a tty either
<ndufresne>
Any one knows how the DRM pixel format modifiers are suppose to be used by userspace ?
<LiquidAcid>
ndufresne, you use them for addfb2
<Putti>
wwilly, yup and at the moment I don't have any console :/
<ndufresne>
but the mod is 64bit isn't it ? and flags is 32bit (if that's the right param
<wwilly>
Putti, but I don't know if you have a debug port available on this smartphone, probably not, as it is not intended to nerdy stuff
<LiquidAcid>
ndufresne, all modifiers are uint64_t
<LiquidAcid>
ndufresne, you can have to call the ioctl directly, currently there is no wrapper call in libdrm
<LiquidAcid>
in case that's what you're asking
<ndufresne>
ah, yes, the code I'm using is using libdrm
<ndufresne>
but I've just lookup the drmModeAddFB2(), it's really just an IOCTL wrapper
<LiquidAcid>
ndufresne, then you probably have to roll your own addfb2ext call
<LiquidAcid>
ndufresne, almost all calls in libdrm are ioctl wrappers
<ndufresne>
LiquidAcid: I just went the wrong route today to enable NV12 tile format for Exynos 4412 VideoProcessor
<ndufresne>
and trying to cleanup now
<LiquidAcid>
ndufresne, yeah, i had a patch for that in my local tree, but i never tested it
<ndufresne>
LiquidAcid: also, apparently we don't do any check in the driver when trying to map the dmabufs, so if someone pass an invalid offset, it just crash
<ndufresne>
Anyway, I'll finish getting that format to work, and then I'll retry the dmabuf path
<LiquidAcid>
ndufresne, yeah, the driver quality isn't all that good, don't get me started on g2d
<ndufresne>
haha
<Putti>
wwilly, but I have no idea which bit to enable in the kernel config in order to get any output from that.
<ndufresne>
LiquidAcid: if I use g2d, it will most likely be using the v4l2 driver instead (which isn't great either to be honnest)
<wwilly>
Putti, me neither, can't help at this point
<LiquidAcid>
ndufresne, never used that one, i only looked at the code for reference
* ndufresne
saw a lot of copy paste between those ;-P
<LiquidAcid>
ndufresne, only plus is that it also works for the older fimg2d hw revision
<ndufresne>
for my case it's just that v4l2 is better suited for streaming
<ndufresne>
and it implement both dmabuf roles
<Putti>
wwilly, yeah, I will try to look on the internet if anyone else has done something like this. And thanks for the help! :)
<ndufresne>
LiquidAcid: thanks btw, if you are interested, I'll keep you posted
<LiquidAcid>
ndufresne, i assume you're also working on mfc then?
<ndufresne>
LiquidAcid: I'm trying to get GStreamer to work with the v4l2 codec combined with kms directly, so we can start testing codec before wayland/x11 or whatever is ready
<ndufresne>
yeah, but mfc seems to work decently with the new memory reservation, and 2 patches from javier__ and ayaka
<ndufresne>
ok, have to go
<LiquidAcid>
ah ok, not really interested in gstreamer
<ndufresne>
LiquidAcid: I mean the patch to finish the tiling support
<ndufresne>
I'll keep you posted for that
<LiquidAcid>
yeah, but that's kinda pointless for me if i have nothing to test it with
<ndufresne>
ok, then I'll obay to the maintainer script ;-P
<LiquidAcid>
would be different if libdrm's helper function could produce nv12mt pictures
<ndufresne>
I can add test if that's what you want, it's not hard
<ndufresne>
its also usefull for qcom stuff
<LiquidAcid>
well, i would be looking forward to a mfc backend in ffmpeg
<LiquidAcid>
but it's not really important for me anyway, since i don't use the board to watch movies
<ndufresne>
that I'm not your man, did it for gst, debugged Chromium one, that's enough ;-P
<LiquidAcid>
still good to see someone is working on it
<LiquidAcid>
seamonkey here :)
<ndufresne>
to me this is just a test platform, I care as much for qcom, imx6, then this one
<ndufresne>
ok, leaving for real
<LiquidAcid>
take care
ojn_ has joined #linux-exynos
ojn has quit [Ping timeout: 244 seconds]
ojn_ is now known as ojn
Putti has quit [Quit: Leaving]
prahal has quit [Quit: prahal]
wwilly has quit [Quit: Leaving]
prahal has joined #linux-exynos
<pokazef>
javier__: After learning about the PWM interface, I got the U3 fan to work (barely) on Tobias' tree.
<LiquidAcid>
pokazef, why barely?
<pokazef>
LiquidAcid: it can be turned on, but not off and doesn't provide any duty-cycle control
<LiquidAcid>
pokazef, i was under the impression that this is fully automatic
<LiquidAcid>
you just enable the proper thermal governor for the fan