All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jyri Sarha <jsarha@ti.com>
To: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: dri-devel@lists.freedesktop.org, airlied@linux.ie,
	linux-omap@vger.kernel.org, devicetree@vger.kernel.org,
	bcousson@baylibre.com, tony@atomide.com,
	rmk+kernel@arm.linux.org.uk, robdclark@gmail.com,
	moinejf@free.fr
Subject: Re: [PATCH v3 0/7] Use DRM component API in tilcdc to connect to tda998x
Date: Tue, 24 Mar 2015 17:45:10 +0200	[thread overview]
Message-ID: <55118686.6060803@ti.com> (raw)
In-Reply-To: <55117FD0.4000901@ti.com>

On 03/24/15 17:16, Tomi Valkeinen wrote:
> On 24/03/15 16:28, Jyri Sarha wrote:
>
>> I tried first with 3.19 and then with 4.0-rc5, checked the boot and then
>> the modetest, but I could not reproduce the trace above.
>>
>> In my config I just have CONFIG_DRM=m and CONFIG_DRM_I2C_NXP_TDA998X=m
>> on top of plain omap2plus_defconfig. Should I take something else?
>>
>> Anyway, I doubt this has anything to do with my patches. Could you give
>> it one more try without my patches?
>
> 4.0-rc3 works ok for me without your patches. I can run modetest and I
> get a picture on the monitor.
>
> Well, not 100% ok. If I run my test app, I get "BUG: sleeping function
> called from invalid context at drivers/base/power/runtime.c:949".
>
> With your patches I get the warnings  and I don't get anything on the
> screen.
>
> I've attached my kernel config.
>
> Hmm. The warning comes if tilcdc_crtc_mode_valid() fails (I think). My
> monitor is not a HDMI monitor. It has native mode 1920x1200@60, which
> cannot be produced by tilcdc, and on -rc3 the mode picked is 1280x960@60.
>

Oh-o. That is the reason then. My HDMI TV also - wrongly - advertises 
having 1920x1200@60 mode. When that mode produced the error I did not 
think much of it and tested with other modes.

> Maybe this is somehow related? You're using a HDMI TV? What mode does it
> pick? Is it the native mode?
>
> Hmm, yes, I think it's related. Enabling debug prints shows:
>
> [   32.361924] [drm:tilcdc_crtc_mode_valid] Processing mode 1920x1080@60
> with pixel clock 148500
> [   32.370850] [drm:tilcdc_crtc_mode_valid] Pruning mode: pixel clock
> too high
> [   32.378143] ------------[ cut here ]------------
> [   32.382993] WARNING: CPU: 0 PID: 50 at
> drivers/gpu/drm/tilcdc/tilcdc_crtc.c:269
> tilcdc_crtc_mode_set+0x5ec/0x648 [tilcdc]()
> [   32.394641] Modules linked in: tilcdc tda998x drm_kms_helper drm
> [   32.400964] CPU: 0 PID: 50 Comm: kworker/0:2 Not tainted
> 4.0.0-rc3-00007-g944a1f8a79f1 #16
> [   32.409617] Hardware name: Generic AM33XX (Flattened Device Tree)
>
> So maybe your series removes some filtering somewhere, and illegal modes
> get passed forward?
>

It indeed looks like that. The actual tilcdc_slave code does not have 
much much logic in it, but is sounds like the DRM slave encoder API and 
the DRM external encoder API are not entirely entirely "compatible".

I'll try to track this further.

Thanks,
Jyri


  reply	other threads:[~2015-03-24 15:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-18  9:06 [PATCH v3 0/7] Use DRM component API in tilcdc to connect to tda998x Jyri Sarha
2015-03-18  9:06 ` [PATCH v3 1/7] drm/tilcdc: Fix module unloading Jyri Sarha
2015-03-18  9:06 ` [PATCH v3 2/7] drm/tilcdc: Remove tilcdc slave support for tda998x driver Jyri Sarha
2015-03-18  9:06 ` [PATCH v3 3/7] drm/tilcdc: Add support for external tda998x encoder Jyri Sarha
2015-03-18  9:06 ` [PATCH v3 4/7] drm/tilcdc: Add DRM_TILCDC_SLAVE_COMPAT for ti,tilcdc,slave binding support Jyri Sarha
2015-03-18  9:06 ` [PATCH v3 5/7] drm/tilcdc: Force building of DRM_TILCDC_SLAVE_COMPAT Jyri Sarha
2015-03-18  9:06 ` [PATCH v3 6/7] ARM: dts: am335x-boneblack: Use new binding for HDMI Jyri Sarha
2015-03-18  9:06 ` [PATCH v3 7/7] drm/tilcdc: Decrement refcount of ep-node from of_graph_get_next_endpoint Jyri Sarha
2015-03-24 12:50 ` [PATCH v3 0/7] Use DRM component API in tilcdc to connect to tda998x Tomi Valkeinen
2015-03-24 14:28   ` Jyri Sarha
2015-03-24 15:16     ` Tomi Valkeinen
2015-03-24 15:45       ` Jyri Sarha [this message]
2015-03-24 19:59 ` [PATCH RFC] drm/tilcdc: Hijack external connectors helper funcs to filter modes Jyri Sarha

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=55118686.6060803@ti.com \
    --to=jsarha@ti.com \
    --cc=airlied@linux.ie \
    --cc=bcousson@baylibre.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=moinejf@free.fr \
    --cc=rmk+kernel@arm.linux.org.uk \
    --cc=robdclark@gmail.com \
    --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.