NishanthMenon changed the topic of #linux-ti to: Linux development for TI SoCs | Logs: https://libera.irclog.whitequark.org/linux-ti/ | Let it rock! Vendor SDK/kernel: Also see e2e.ti.com
LokeshV has joined #linux-ti
NiksDev has quit [Ping timeout: 265 seconds]
NiksDev has joined #linux-ti
Grygorii has joined #linux-ti
kristo has quit [Quit: Leaving.]
kristo has joined #linux-ti
kristo has quit [Client Quit]
kristo has joined #linux-ti
lucaceresoli has joined #linux-ti
florian_kc has joined #linux-ti
rob_w has joined #linux-ti
florian_kc is now known as florian
<lucaceresoli> hi, following the discussion on https://www.spinics.net/lists/linux-omap/msg159409.html ...
<lucaceresoli> I'm currently facing the lack of /dev/fb0 after upgrading from ti/ti-linux-4.19.y to ti/ti-linux-5.10.y
<lucaceresoli> Any hints on what I should check first?
<lucaceresoli> my panel driver (not yet published) gets probed; in DT it has ports/port@0/endpoint/remote-endpoint = <&dpi_out>, basically the same as the LCD in am57xx-evm-common.dts from ti-linux-5.10.y
<lucaceresoli> Should I take am57xx-evm-common.dts from ti-linux-5.10.y as working code so I can use it as an example?
rob_w has quit [Quit: Leaving]
LokeshV is now known as LokeshVutla
<NiksDev> lucaceresoli, Make sure following configs are enabled:
<NiksDev> CONFIG_DRM_KMS_HELPER=y
<NiksDev> CONFIG_DRM_KMS_FB_HELPER=y
<NiksDev> CONFIG_DRM_FBDEV_OVERALLOC=100
<NiksDev> CONFIG_DRM_FBDEV_EMULATION=y
<NiksDev> Once you have the basic DRM functionality working (can be verified by running modetest), you can enable the FBDEV emulation to get /dev/fb0. No special change in DTS is required
<lucaceresoli> NiksDev, thanks. All the config parameters are there, but...
<lucaceresoli> # modetest
<lucaceresoli> [...]
<lucaceresoli> no device found
<lucaceresoli> #
<lucaceresoli> dmesg | grep -E '(>>>|omapdrm|OF:)'
<lucaceresoli> (ignore the last line, bad copy paste)
<lucaceresoli> yet the omapdrm driver is instantiated, dss_probe() returns 0... I'm not sure I understood exactly which part of the omapdrm driver I should see enabled
<NiksDev> I would suggest to enable dynamic debugs and check the prints
<NiksDev> first step is to get the modetest running, fbdev gets automatically enabled after that if above configs are present
<lucaceresoli> NiksDev, OK, I'm now building with DYNAMIC_DEBUG and omapdrm as a module...
<lucaceresoli> NiksDev, with dynamic debug I'm not getting much info :(
<lucaceresoli> After:
<lucaceresoli> echo 'file drivers/gpu/drm/omapdrm/* +p' >/sys/kernel/debug/dynamic_debug/control
<lucaceresoli> echo 'module *drm* +p' >/sys/kernel/debug/dynamic_debug/control
<lucaceresoli> modprobe omapdrm
<lucaceresoli> ...all I get in dmesg is:
<lucaceresoli> [ 117.035517] dmm 4e000000.dmm: workaround for errata i878 in use
<lucaceresoli> [ 117.052333] DSS: dss_restore_context
<lucaceresoli> [ 117.046840] dmm 4e000000.dmm: initialized all PAT entries
<lucaceresoli> [ 117.052340] DSS: context restored
<lucaceresoli> [ 117.053749] DSS: dss_save_context
<lucaceresoli> [ 117.053756] DSS: context saved
<lucaceresoli> What would you expect to find in the logs?
<lucaceresoli> (I'm now building the same setup on the 4.19 branch to see what is different there)
<lucaceresoli> nonono, wait, I _do_ have more messages in dmesg, but they happen while booting, not after modprobe. They must be triggered by the LCD controller which is described in DT:
<lucaceresoli> [ 9.991038] omapdss_dss 58000000.dss: trying to bring up master
<lucaceresoli> [ 9.991047] omapdss_dss 58000000.dss: Looking for component 0
<lucaceresoli> [ 9.991054] omapdss_dss 58000000.dss: master has incomplete components
<lucaceresoli> [ 10.040190] omapdss_dispc 58001000.dispc: adding component (ops dispc_component_ops [omapdss])
<lucaceresoli> [ 10.040204] omapdss_dss 58000000.dss: Looking for component 0
<lucaceresoli> [ 10.040215] omapdss_dss 58000000.dss: Looking for component 1
<lucaceresoli> [ 10.040210] omapdss_dss 58000000.dss: found component 58001000.dispc, duplicate 0
<lucaceresoli> [ 10.040198] omapdss_dss 58000000.dss: trying to bring up master
<lucaceresoli> [ 10.040220] omapdss_dss 58000000.dss: master has incomplete components
<lucaceresoli> does it mean anything to you?
<lucaceresoli> NiksDev, looks like omapdss gets enabled, not omapdrm. I'm studying the relationship between the two.
NiksDev has quit [Ping timeout: 248 seconds]
<NishanthMenon> lucaceresoli, NiksDev works in IST timezone.. just a headsup
NishanthMenon changed the topic of #linux-ti to: Linux development for TI SoCs | Logs: https://libera.irclog.whitequark.org/linux-ti/| paste logs in https://pastebin.ubuntu.com/ | Let it rock! Vendor SDK/kernel: Also see e2e.ti.com
<NishanthMenon> lucaceresoli, also a future reference, please use https://pastebin.ubuntu.com/ => unfortunately our TI IT security folks have blocked pastebin.com and hastebin.com among others.. :( I updated the $topic to reflect that
<NishanthMenon> kristo, https://libera.irclog.whitequark.org/beagle/2021-05-28#29978567; -> exactly what we spoke about today morning.. :)
<NishanthMenon> it is a recurring theme
<lucaceresoli> 3w00DguyB
<NishanthMenon> lucaceresoli, ^^ please change paswd
<lucaceresoli> already done... my bad! thanks
<lucaceresoli> today I'm typing in the wrong place all the time :(
rektide has joined #linux-ti
LokeshV__ has quit [Remote host closed the connection]
LokeshV__ has joined #linux-ti
Grygorii has quit [Ping timeout: 264 seconds]
florian has quit [Ping timeout: 252 seconds]
florian has joined #linux-ti
LokeshVutla has quit [Quit: Leaving]
florian has quit [Ping timeout: 252 seconds]
lucaceresoli has quit [Ping timeout: 264 seconds]
florian has joined #linux-ti
florian has quit [Remote host closed the connection]