All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andreas Kemnade <andreas@kemnade.info>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Discussions about the Letux Kernel <letux-kernel@openphoenux.org>,
	Tony Lindgren <tony@atomide.com>,
	"H. Nikolaus Schaller" <hns@goldelico.com>,
	Jyri Sarha <jsarha@ti.com>,
	Tomi Valkeinen <tomi.valkeinen@ti.com>,
	Linux-OMAP <linux-omap@vger.kernel.org>,
	linux-arm-kernel <linux-arm-kernel@lists.infradead.org>
Subject: Re: [Letux-kernel] [PATCH] ARM: omap2plus_defconfig: Fix selected panels after generic panel changes
Date: Sun, 6 Oct 2019 22:39:58 +0200	[thread overview]
Message-ID: <20191006223958.67725fdf@aktux> (raw)
In-Reply-To: <20191006145348.GD4740@pendragon.ideasonboard.com>

On Sun, 6 Oct 2019 17:53:48 +0300
Laurent Pinchart <laurent.pinchart@ideasonboard.com> wrote:

> Hi Nikolaus,
> 
> On Sat, Oct 05, 2019 at 12:50:37PM +0200, H. Nikolaus Schaller wrote:
> > > Am 04.10.2019 um 10:41 schrieb Tomi Valkeinen <tomi.valkeinen@ti.com>:
> > > 
> > > On 03/10/2019 19:55, Tony Lindgren wrote:  
> > >> The old omapdrm panels got removed for v5.4 in favor of generic panels,
> > >> and the Kconfig options changed. Let's update omap2plus_defconfig
> > >> accordingly so the same panels are still enabled.
> > >> Cc: Jyri Sarha <jsarha@ti.com>
> > >> Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > >> Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
> > >> Signed-off-by: Tony Lindgren <tony@atomide.com>
> > >> ---
> > >>  arch/arm/configs/omap2plus_defconfig | 12 ++++++------
> > >>  1 file changed, 6 insertions(+), 6 deletions(-)
> > >> diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig
> > >> --- a/arch/arm/configs/omap2plus_defconfig
> > >> +++ b/arch/arm/configs/omap2plus_defconfig
> > >> @@ -356,14 +356,14 @@ CONFIG_DRM_OMAP_CONNECTOR_HDMI=m
> > >>  CONFIG_DRM_OMAP_CONNECTOR_ANALOG_TV=m
> > >>  CONFIG_DRM_OMAP_PANEL_DPI=m
> > >>  CONFIG_DRM_OMAP_PANEL_DSI_CM=m
> > >> -CONFIG_DRM_OMAP_PANEL_SONY_ACX565AKM=m
> > >> -CONFIG_DRM_OMAP_PANEL_LGPHILIPS_LB035Q02=m
> > >> -CONFIG_DRM_OMAP_PANEL_SHARP_LS037V7DW01=m
> > >> -CONFIG_DRM_OMAP_PANEL_TPO_TD028TTEC1=m
> > >> -CONFIG_DRM_OMAP_PANEL_TPO_TD043MTEA1=m
> > >> -CONFIG_DRM_OMAP_PANEL_NEC_NL8048HL11=m
> > >>  CONFIG_DRM_TILCDC=m
> > >>  CONFIG_DRM_PANEL_SIMPLE=m
> > >> +CONFIG_DRM_PANEL_LG_LB035Q02=m
> > >> +CONFIG_DRM_PANEL_NEC_NL8048HL11=m
> > >> +CONFIG_DRM_PANEL_SHARP_LS037V7DW01=m
> > >> +CONFIG_DRM_PANEL_SONY_ACX565AKM=m
> > >> +CONFIG_DRM_PANEL_TPO_TD028TTEC1=m
> > >> +CONFIG_DRM_PANEL_TPO_TD043MTEA1=m
> > >>  CONFIG_FB=y
> > >>  CONFIG_FIRMWARE_EDID=y
> > >>  CONFIG_FB_MODE_HELPERS=y  
> > > 
> > > Sorry, I didn't remember to update these. Some additions:
> > > 
> > > These can be dropped, they no longer exist:
> > > 
> > > CONFIG_DRM_OMAP_ENCODER_TFP410=m
> > > CONFIG_DRM_OMAP_CONNECTOR_DVI=m
> > > CONFIG_DRM_OMAP_PANEL_DPI=m  
> > 
> > After being hit by the __always_inline issue [1] I am now
> > back with being able to test v5.4-rc1.
> > 
> > Now this patch fixes the build problem, but we still have
> > one: panel drivers are no longer automatically loaded at
> > boot. We now need to manually modprobe them.
> > 
> > This has been observed with GTA04 (TD028TTEC1) and OpenPandora
> > (TD043MTEA1). So moving the drivers seems to have changed/broken
> > something with DT based driver matching.  
> 
> That's really weird, the driver name, the SPI device table and the OF
> device table are the same (except for the "omapdss," prefix that we
> don't add anymore in omapdss-boot-init.c). Would you be able to
> investigate what broke ?
> 
in earlier times:

root@gta04:/sys/bus/spi/devices/spi4.0# cat modalias 
spi:tpo,td028ttec1

now in 5.4-rc1:
root@gta04:/sys/bus/spi/devices/spi4.0# cat modalias 
spi:td028ttec1

root@gta04:~# modinfo /lib/modules/5.4.0-rc1-letux+/kernel/drivers/gpu/drm/panel/panel-tpo-td028ttec1.ko 
filename:       /lib/modules/5.4.0-rc1-letux+/kernel/drivers/gpu/drm/panel/panel-tpo-td028ttec1.ko
license:        GPL
description:    Toppoly TD028TTEC1 panel driver
author:         H. Nikolaus Schaller <hns@goldelico.com>
srcversion:     6B3E224BCD3D76253CF361C
alias:          of:N*T*Ctoppoly,td028ttec1C*
alias:          of:N*T*Ctoppoly,td028ttec1
alias:          of:N*T*Ctpo,td028ttec1C*
alias:          of:N*T*Ctpo,td028ttec1
alias:          spi:toppoly,td028ttec1
alias:          spi:tpo,td028ttec1
depends:        drm
intree:         Y
name:           panel_tpo_td028ttec1
vermagic:       5.4.0-rc1-letux+ SMP preempt mod_unload ARMv7 p2v8 

That alias is not in the list.

Regards,
Andreas

WARNING: multiple messages have this Message-ID (diff)
From: Andreas Kemnade <andreas@kemnade.info>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Discussions about the Letux Kernel <letux-kernel@openphoenux.org>,
	Tony Lindgren <tony@atomide.com>,
	"H. Nikolaus Schaller" <hns@goldelico.com>,
	Jyri Sarha <jsarha@ti.com>,
	Tomi Valkeinen <tomi.valkeinen@ti.com>,
	Linux-OMAP <linux-omap@vger.kernel.org>,
	linux-arm-kernel <linux-arm-kernel@lists.infradead.org>
Subject: Re: [Letux-kernel] [PATCH] ARM: omap2plus_defconfig: Fix selected panels after generic panel changes
Date: Sun, 6 Oct 2019 22:39:58 +0200	[thread overview]
Message-ID: <20191006223958.67725fdf@aktux> (raw)
In-Reply-To: <20191006145348.GD4740@pendragon.ideasonboard.com>

On Sun, 6 Oct 2019 17:53:48 +0300
Laurent Pinchart <laurent.pinchart@ideasonboard.com> wrote:

> Hi Nikolaus,
> 
> On Sat, Oct 05, 2019 at 12:50:37PM +0200, H. Nikolaus Schaller wrote:
> > > Am 04.10.2019 um 10:41 schrieb Tomi Valkeinen <tomi.valkeinen@ti.com>:
> > > 
> > > On 03/10/2019 19:55, Tony Lindgren wrote:  
> > >> The old omapdrm panels got removed for v5.4 in favor of generic panels,
> > >> and the Kconfig options changed. Let's update omap2plus_defconfig
> > >> accordingly so the same panels are still enabled.
> > >> Cc: Jyri Sarha <jsarha@ti.com>
> > >> Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > >> Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
> > >> Signed-off-by: Tony Lindgren <tony@atomide.com>
> > >> ---
> > >>  arch/arm/configs/omap2plus_defconfig | 12 ++++++------
> > >>  1 file changed, 6 insertions(+), 6 deletions(-)
> > >> diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig
> > >> --- a/arch/arm/configs/omap2plus_defconfig
> > >> +++ b/arch/arm/configs/omap2plus_defconfig
> > >> @@ -356,14 +356,14 @@ CONFIG_DRM_OMAP_CONNECTOR_HDMI=m
> > >>  CONFIG_DRM_OMAP_CONNECTOR_ANALOG_TV=m
> > >>  CONFIG_DRM_OMAP_PANEL_DPI=m
> > >>  CONFIG_DRM_OMAP_PANEL_DSI_CM=m
> > >> -CONFIG_DRM_OMAP_PANEL_SONY_ACX565AKM=m
> > >> -CONFIG_DRM_OMAP_PANEL_LGPHILIPS_LB035Q02=m
> > >> -CONFIG_DRM_OMAP_PANEL_SHARP_LS037V7DW01=m
> > >> -CONFIG_DRM_OMAP_PANEL_TPO_TD028TTEC1=m
> > >> -CONFIG_DRM_OMAP_PANEL_TPO_TD043MTEA1=m
> > >> -CONFIG_DRM_OMAP_PANEL_NEC_NL8048HL11=m
> > >>  CONFIG_DRM_TILCDC=m
> > >>  CONFIG_DRM_PANEL_SIMPLE=m
> > >> +CONFIG_DRM_PANEL_LG_LB035Q02=m
> > >> +CONFIG_DRM_PANEL_NEC_NL8048HL11=m
> > >> +CONFIG_DRM_PANEL_SHARP_LS037V7DW01=m
> > >> +CONFIG_DRM_PANEL_SONY_ACX565AKM=m
> > >> +CONFIG_DRM_PANEL_TPO_TD028TTEC1=m
> > >> +CONFIG_DRM_PANEL_TPO_TD043MTEA1=m
> > >>  CONFIG_FB=y
> > >>  CONFIG_FIRMWARE_EDID=y
> > >>  CONFIG_FB_MODE_HELPERS=y  
> > > 
> > > Sorry, I didn't remember to update these. Some additions:
> > > 
> > > These can be dropped, they no longer exist:
> > > 
> > > CONFIG_DRM_OMAP_ENCODER_TFP410=m
> > > CONFIG_DRM_OMAP_CONNECTOR_DVI=m
> > > CONFIG_DRM_OMAP_PANEL_DPI=m  
> > 
> > After being hit by the __always_inline issue [1] I am now
> > back with being able to test v5.4-rc1.
> > 
> > Now this patch fixes the build problem, but we still have
> > one: panel drivers are no longer automatically loaded at
> > boot. We now need to manually modprobe them.
> > 
> > This has been observed with GTA04 (TD028TTEC1) and OpenPandora
> > (TD043MTEA1). So moving the drivers seems to have changed/broken
> > something with DT based driver matching.  
> 
> That's really weird, the driver name, the SPI device table and the OF
> device table are the same (except for the "omapdss," prefix that we
> don't add anymore in omapdss-boot-init.c). Would you be able to
> investigate what broke ?
> 
in earlier times:

root@gta04:/sys/bus/spi/devices/spi4.0# cat modalias 
spi:tpo,td028ttec1

now in 5.4-rc1:
root@gta04:/sys/bus/spi/devices/spi4.0# cat modalias 
spi:td028ttec1

root@gta04:~# modinfo /lib/modules/5.4.0-rc1-letux+/kernel/drivers/gpu/drm/panel/panel-tpo-td028ttec1.ko 
filename:       /lib/modules/5.4.0-rc1-letux+/kernel/drivers/gpu/drm/panel/panel-tpo-td028ttec1.ko
license:        GPL
description:    Toppoly TD028TTEC1 panel driver
author:         H. Nikolaus Schaller <hns@goldelico.com>
srcversion:     6B3E224BCD3D76253CF361C
alias:          of:N*T*Ctoppoly,td028ttec1C*
alias:          of:N*T*Ctoppoly,td028ttec1
alias:          of:N*T*Ctpo,td028ttec1C*
alias:          of:N*T*Ctpo,td028ttec1
alias:          spi:toppoly,td028ttec1
alias:          spi:tpo,td028ttec1
depends:        drm
intree:         Y
name:           panel_tpo_td028ttec1
vermagic:       5.4.0-rc1-letux+ SMP preempt mod_unload ARMv7 p2v8 

That alias is not in the list.

Regards,
Andreas

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  parent reply	other threads:[~2019-10-06 20:39 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-03 16:55 [PATCH] ARM: omap2plus_defconfig: Fix selected panels after generic panel changes Tony Lindgren
2019-10-03 16:55 ` Tony Lindgren
2019-10-04  8:41 ` Tomi Valkeinen
2019-10-04  8:41   ` Tomi Valkeinen
2019-10-04 15:54   ` Tony Lindgren
2019-10-04 15:54     ` Tony Lindgren
2019-10-07  6:13     ` Tomi Valkeinen
2019-10-07  6:13       ` Tomi Valkeinen
2019-10-05 10:50   ` H. Nikolaus Schaller
2019-10-05 10:50     ` H. Nikolaus Schaller
2019-10-06 14:53     ` Laurent Pinchart
2019-10-06 14:53       ` Laurent Pinchart
2019-10-06 15:07       ` H. Nikolaus Schaller
2019-10-06 15:07         ` H. Nikolaus Schaller
2019-10-06 20:39       ` Andreas Kemnade [this message]
2019-10-06 20:39         ` [Letux-kernel] " Andreas Kemnade
2019-10-07  4:40         ` Andreas Kemnade
2019-10-07  4:40           ` Andreas Kemnade
2019-10-07 14:29           ` Tomi Valkeinen
2019-10-07 14:29             ` Tomi Valkeinen
2019-10-07 16:09             ` Andreas Kemnade
2019-10-07 16:09               ` Andreas Kemnade
2019-10-07 17:08               ` Laurent Pinchart
2019-10-07 17:08                 ` Laurent Pinchart

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191006223958.67725fdf@aktux \
    --to=andreas@kemnade.info \
    --cc=hns@goldelico.com \
    --cc=jsarha@ti.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=letux-kernel@openphoenux.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=tomi.valkeinen@ti.com \
    --cc=tony@atomide.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.