ChanServ changed the topic of #armlinux to: ARM kernel talk [Upstream kernel, find your vendor forums for questions about their kernels] | https://libera.irclog.whitequark.org/armlinux
apritzel has quit [Ping timeout: 245 seconds]
tlwoerner has quit [Remote host closed the connection]
tlwoerner has joined #armlinux
tchebb has quit [Ping timeout: 252 seconds]
tchebb has joined #armlinux
alpernebbi has quit [Ping timeout: 246 seconds]
alpernebbi has joined #armlinux
vireshk has quit [Ping timeout: 252 seconds]
vireshk has joined #armlinux
iivanov has joined #armlinux
amitk has joined #armlinux
nsaenz has joined #armlinux
amitk has quit [Ping timeout: 245 seconds]
* ukleinek groans at sparc64 allmodconfig not building on drm-misc-next
* ukleinek cherry-picks 861c249cd782cb9f2d5a881bbb32e8da7f0c1192
nsaenz has quit [Remote host closed the connection]
monstr has joined #armlinux
amitk has joined #armlinux
nsaenz has joined #armlinux
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #armlinux
nsaenz has quit [Ping timeout: 240 seconds]
frieder has joined #armlinux
mmind00_ is now known as mmind00
mmind00 has quit [Quit: mmind00]
mmind00 has joined #armlinux
krzk_ is now known as krzk
jpanisbl has joined #armlinux
matthias_bgg has joined #armlinux
sszy has joined #armlinux
sszy has quit [Client Quit]
sszy has joined #armlinux
<javierm> geertu: while writing the patch you suggested yesterday for ssd130x, I noticed this https://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/gud/gud_internal.h#L76
headless has joined #armlinux
apritzel has joined #armlinux
<geertu> javierm: I guess these can be exposed to userspace now
<javierm> geertu: yes, and I was thinking that may use your fourcc formats instead now that those exist
<javierm> geertu: btw, I've sent you the fix your suggested. Please review the commit message since I may misunderstood your explanation from yesterday
amitk has quit [Ping timeout: 245 seconds]
jpanisbl has quit [Ping timeout: 245 seconds]
nsaenz has joined #armlinux
amitk has joined #armlinux
<headless> linusw__: hey! haven't you replied to me by chance?
<geertu> javierm: /2
<mkorpershoek> headless: there is an IRC log you can check for that: https://libera.irclog.whitequark.org/armlinux/2023-07-12
<mkorpershoek> if you check that log, you can see that linus answered you
<javierm> geertu: thanks for your review! I noticed a few typos in my commit message so will send a v2 probably later or tomorrow with your r-b tag
<headless> mkorpershoek: thanx!
<javierm> geertu: btw, if you have a 16-grayscale (4-bit) pixel format but where a grayscale table can be defined, that's R4 as well or C4?
<headless> indeed, he has
<geertu> javierm: correct
<javierm> geertu: that's what I thought, because you don't define a CLUT but just a brightness level for each value right ?
<javierm> geertu: i.e: "10.1.17 Set Gray Scale Table" in https://cdn.sparkfun.com/assets/1/a/5/d/4/DS-15890-Zio_OLED.pdf
<geertu> javierm: Indeed
<geertu> javierm: Hmm, that looks like a gamma table
<geertu> The note is interestin: The pulse width value of GS1, GS2, .... , GS15 should not be equal. i.e. 0<GS1<GS2 … <GS15
<geertu> 1. Is that a hardware limitation?
<javierm> geertu: I don't think that's a HW limitation but rather that if you make it equal, then is not 16-grayscale anymore, in other words you are not using all the 4 bits
<geertu> 2. Are different but not monotonically increasing values supported? That would support a greyscale LUT
<geertu> We don't have fourcc codes for that yet
<geertu> javierm: R1 is working fine for the text console. Let's rebase to drm-misc...
<javierm> geertu: and if you have a default table? Because that's what I'm using in my patch to add support for ssd132x controllers
<javierm> geertu: "10.1.18 Select Default Linear Gray Scale Table (B9h)"
<javierm> in that case is R4 right ?
<geertu> javierm: Yes
apritzel has quit [Ping timeout: 252 seconds]
<javierm> geertu: cool, I'll do that for now and then we can define a different fourcc code and add support to define different gamma tables
<javierm> geertu: nice. If you can post that R1 patch I can review it / merge
<javierm> geertu: do you see any noticeable perf improvement by not doing the xrgb24 -> mono conversion?
<geertu> javierm: For ssd1327, you can expose the gamma table through drm_mode_crtc_set_gamma_size()/drm_crtc_enable_color_mgmt(), but I believe currently DRM supports 256 entries only.
<geertu> javierm: Haven't done any benchmarking yet. The display is small and the device has a limited userspace.
<geertu> And it's slow, regardless
<javierm> geertu: yeah, was just out of curiosity. Still is the correct thing to do and expose the hardware native format
<javierm> geertu: IIRC the board that is using that panel is slow as well anyways :)
<geertu> javierm: it's gonna have more impact on the 1Mpixel ePaper displays.
<geertu> I could connect it to a faster machine...
<javierm> geertu: no worries, I was just curious
<javierm> geertu: re: drm_mode_crtc_set_gamma_size()/drm_crtc_enable_color_mgmt() - as mentioned will just use the default and C4 to allocate the native pixel buffer, then we can add custom gamma table on top
<javierm> err, R4. I keep getting confused :)
<javierm> geertu: I already said to you, but it's cool to know that there is another user than myself for that driver ;)
<javierm> most people seem to be using user-space libraries to drive those panels
headless has quit [Quit: Konversation terminated!]
jpanisbl has joined #armlinux
phh|new is now known as phh
jclsn has joined #armlinux
jclsn has quit [Client Quit]
jclsn has joined #armlinux
salll has joined #armlinux
jpanisbl has quit [Quit: Konversation terminated!]
salll has quit [Remote host closed the connection]
salll has joined #armlinux
<geertu> javierm: How come 49d7d581ceaf4cf8 ("drm/ssd130x: Don't allocate buffers on each plane update") works for you?
<geertu> ssd130x_buf_alloc() is called too late, causing a crash
<geertu> [ 59.302761] [<c0303d90>] ssd130x_update_rect.isra.0+0x13c/0x340
<geertu> [ 59.304231] [<c0304200>] ssd130x_primary_plane_helper_atomic_update+0x26c/0x284
<geertu> [ 59.305716] [<c02f8d54>] drm_atomic_helper_commit_planes+0xfc/0x27c
<geertu> Because you don't have a text console running?
salll has quit [Remote host closed the connection]
<javierm> geertu: oh, I was pretty sure that tested with a VT too...
<javierm> geertu: I don't understand how can that be though since the allocation happens in the encoder .atomic_enable and that should be called before any plane update ?
<geertu> javierm: is your drm driver builtin?
<geertu> (mine is)
Turingtoast has joined #armlinux
<javierm> geertu: yes, built-in. Let me try with latest drm-misc build
<javierm> geertu: hmm, just booting latest drm-misc and console is working correctly for me
<javierm> geertu: this is with 7dae503584a1 as HEAD
<geertu> javierm: do you have a logo enabled?
<geertu> You may need a custom one, as the 80x80 Penguin may be too large
<javierm> geertu: ah, I don't
<javierm> geertu: and when bailing out earlier when is NULL, you do see the logo eventually ?
amitk has quit [Ping timeout: 245 seconds]
<geertu> Actually I do
<geertu> Probably it's just refreshed later?
<javierm> I'm still confused why the plane update happens before the encoder enable but I also don't see why we shouldn't check for the buffer so I'm OK with your fix
<geertu> javierm: Probably data_array should be allocated in probe(), using devm_*?
<geertu> And buffer when needed first, also using devm_*?
apritzel has joined #armlinux
ajb-linaro has joined #armlinux
<javierm> geertu: I actually thought about it when writing that patch but didn't want to allocate if the display wasn't used
<geertu> javierm: data_array is small
<javierm> geertu: yeah, that's true too
<javierm> geertu: I'll be OK with that change too, but probably drmm_kzalloc since devm and drm object lifetimes don't play that well together
vireshk- has joined #armlinux
vireshk- has quit [Client Quit]
ajb-linaro has quit [Quit: ZNC - http://znc.in]
Turingtoast has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ajb-linaro has joined #armlinux
vireshk- has joined #armlinux
vkoul- has joined #armlinux
<javierm> geertu: so I think that found the issue, by default the atomic helpers try to commit states even for planes of CRTCs that are disabled
<javierm> geertu: I wonder how I don't get it though and if the fbcon / fbdev emulation layer is missing to enable something in time
<javierm> geertu: thanks for your patches btw, I'll try to review them later :)
gpiccoli_ is now known as gpiccoli
monstr has quit [Remote host closed the connection]
<geertu> ukleinek: Time to drag torvalds into the drm rabbit hole? ;-)
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
headless has joined #armlinux
apritzel has quit [Ping timeout: 245 seconds]
dliviu has quit [Quit: Going away]
ars23 has joined #armlinux
dliviu has joined #armlinux
matthias_bgg has quit [Quit: Leaving]
bjdooks has quit [Ping timeout: 246 seconds]
jeeeun has quit [Ping timeout: 245 seconds]
Turingtoast has joined #armlinux
bjdooks has joined #armlinux
jeeeun has joined #armlinux
ajfriesen849 has joined #armlinux
rfried5 has joined #armlinux
arnd_ has joined #armlinux
unixsmurf_ has joined #armlinux
tom5760_ has joined #armlinux
robmur01_ has joined #armlinux
qyousef__ has joined #armlinux
nashpa has joined #armlinux
bencoh_ has joined #armlinux
hauke1 has joined #armlinux
dliviu has quit [*.net *.split]
leming has quit [*.net *.split]
drewfustini has quit [*.net *.split]
ajfriesen84 has quit [*.net *.split]
hauke has quit [*.net *.split]
robmur01 has quit [*.net *.split]
rfried has quit [*.net *.split]
arnd has quit [*.net *.split]
unixsmurf has quit [*.net *.split]
tom5760 has quit [*.net *.split]
qyousef_ has quit [*.net *.split]
bencoh has quit [*.net *.split]
unixsmurf_ is now known as unixsmurf
arnd_ is now known as arnd
qyousef__ is now known as qyousef_
ajfriesen849 is now known as ajfriesen84
rfried5 is now known as rfried
tom5760_ is now known as tom5760
frieder has quit [Remote host closed the connection]
leming has joined #armlinux
drewfustini has joined #armlinux
<headless> linusw__: strange, I don't see any radix tree calls in drivers/irqchip/ :-/
<javierm> headless: broonie: said "[23:03] < broonie>| Which IIRC just converted to maple tree."
Turingtoast has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<headless> javierm: I've looked at both 5.10.y and current kernels
<javierm> headless: maybe he meant kernel/irq ?
<headless> javierm: proolly maybe :-) found a call to radix_tree_insert() there...
<headless> javierm: thx for the link! one of the calls was eliminated by that one...
<javierm> headless: you are welcome :)
<headless> javierm: I didn't get the "maple tree" ref at first because I've never heard of such data structure... :-)
<javierm> headless: me neither, I thought about maple tree syrup to be honest when broonie mentioned :P
<headless> javierm: likewise :-)
<headless> doesn't explain why and error from it is ignored... other than both callers are *void* themselves
<headless> *an
<javierm> headless: which one? both pinctrl_generic_add_group() and pinctrl_register_one_pin() return an int
<headless> javierm: looking at kernel/irq/
<javierm> headless: ah, sorry
<javierm> headless: but I think you are correct that the pintrl_* function should check the return value of radix_tree_insert()
<headless> javierm: there's a radix_tree_insert() call in pinmux.c too
<headless> just found it
<headless> caught by Svace but unassigned, it seems
<headless> (Svace is a static analyzer)
<javierm> headless: and radix_tree_insert() always returned int, is not that it was void at some point
<javierm> well, at least since the original git import in commit 1da177e4c3f4
<headless> oh, it's so old? :-)
amitk has joined #armlinux
<headless> Svace complains when it sees that the result is not checked in such place if it's checked in the majority of times
bencoh_ has joined #armlinux
bencoh_ has quit [Changing host]
bencoh_ is now known as bencoh
<headless> s/times/places/
iivanov has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<javierm> headless: nice
ars23 has quit [Quit: Leaving]
<headless> javierm: OK, starting to prep the patches
<headless> thanx for your time
<javierm> headless: yw :)
sally has quit [Remote host closed the connection]
sally has joined #armlinux
sally has quit [Changing host]
sally has joined #armlinux
sally has quit [Quit: sally]
sally has joined #armlinux
amitk has quit [Ping timeout: 260 seconds]
<headless> g'nite
headless has quit [Quit: Konversation terminated!]
Sally_ has joined #armlinux
sally has quit [Quit: sally]
sally has joined #armlinux
sally has joined #armlinux
sally has quit [Changing host]
Sally_ has quit [Read error: Connection reset by peer]
Sally_ has joined #armlinux
sally__ has joined #armlinux
sally has quit [Quit: sally]
sally__ is now known as sally
sally has joined #armlinux
sally has quit [Changing host]
xvmt has quit [Ping timeout: 240 seconds]
apritzel has joined #armlinux
xvmt has joined #armlinux
Sally_ has quit [Ping timeout: 272 seconds]
Sally_ has joined #armlinux