Linux Media Controller development
 help / color / mirror / Atom feed
From: Tomi Valkeinen <tomi.valkeinen@ti.com>
To: Hans Verkuil <hverkuil@xs4all.nl>, <linux-media@vger.kernel.org>
Cc: <dri-devel@lists.freedesktop.org>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Subject: Re: [PATCHv2 0/9] omapdrm: hdmi4: add CEC support
Date: Tue, 22 Aug 2017 12:44:16 +0300	[thread overview]
Message-ID: <f5d93c33-7825-1034-a605-ee38c796ca20@ti.com> (raw)
In-Reply-To: <9f921701-910c-d749-378c-038e8405f656@xs4all.nl>

Hi Hans,

>> 
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

On 11/08/17 13:57, Tomi Valkeinen wrote:
>>
>>> I'm doing some testing with this series on my panda. One issue I see is
>>> that when I unload the display modules, I get:
>>>
>>> [   75.180206] platform 58006000.encoder: enabled after unload, idling
>>> [   75.187896] platform 58001000.dispc: enabled after unload, idling
>>> [   75.198242] platform 58000000.dss: enabled after unload, idling
>>
>> This one is caused by hdmi_cec_adap_enable() never getting called with
>> enable=false when unloading the modules. Should that be called
>> explicitly in hdmi4_cec_uninit, or is the CEC framework supposed to call it?
> 
> Nicely found!
> 
> The cec_delete_adapter() function calls __cec_s_phys_addr(CEC_PHYS_ADDR_INVALID)
> which would normally call adap_enable(false), except when the device node was
> already unregistered, in which case it just returns immediately.
> 
> The patch below should fix this. Let me know if it works, and I'll post a proper
> patch and get that in for 4.14 (and possible backported as well, I'll have to
> look at that).

Thanks, this fixes the issue.

I again saw "HDMICORE: omapdss HDMICORE error: operation stopped when
reading edid" when I loaded the modules. My panda also froze just now
when unloading the display modules, and it doesn't react to sysrq.

After testing a bit without the CEC patches, I saw the above error, so I
don't think it's related to your patches.

I can't test with a TV, so no CEC for me... But otherwise I think the
series works ok now, and looks ok. So I'll apply, but it's a bit late
for the next merge window, so I'll aim for 4.15 with this.

 Tomi

  reply	other threads:[~2017-08-22  9:44 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-02  8:53 [PATCHv2 0/9] omapdrm: hdmi4: add CEC support Hans Verkuil
2017-08-02  8:54 ` [PATCHv2 1/9] omapdrm: encoder-tpd12s015: keep ls_oe_gpio high Hans Verkuil
2017-08-02  8:54 ` [PATCHv2 2/9] omapdrm: hdmi.h: extend hdmi_core_data with CEC fields Hans Verkuil
2017-08-02  8:54 ` [PATCHv2 3/9] omapdrm: hdmi4: make low-level functions available Hans Verkuil
2017-08-02  8:54 ` [PATCHv2 4/9] omapdrm: hdmi4: prepare irq handling for HDMI CEC support Hans Verkuil
2017-08-02  8:54 ` [PATCHv2 5/9] omapdrm: hdmi4: move hdmi4_core_powerdown_disable to hdmi_power_on_core() Hans Verkuil
2017-08-02  8:54 ` [PATCHv2 6/9] omapdrm: hdmi4: refcount hdmi_power_on/off_core Hans Verkuil
2017-08-02  8:54 ` [PATCHv2 7/9] omapdrm: hdmi4_cec: add OMAP4 HDMI CEC support Hans Verkuil
2017-08-02  8:54 ` [PATCHv2 8/9] omapdrm: hdmi4: hook up the " Hans Verkuil
2017-08-02  8:54 ` [PATCHv2 9/9] omapdrm: omapdss_hdmi_ops: add lost_hotplug op Hans Verkuil
2017-08-17 13:19   ` [PATCHv3 " Hans Verkuil
2017-08-11 10:57 ` [PATCHv2 0/9] omapdrm: hdmi4: add CEC support Tomi Valkeinen
2017-08-12  9:22   ` Hans Verkuil
2017-08-17 13:03   ` Tomi Valkeinen
2017-08-17 13:12     ` Hans Verkuil
2017-08-18  9:02   ` Tomi Valkeinen
2017-08-18 10:13     ` Hans Verkuil
2017-08-22  9:44       ` Tomi Valkeinen [this message]
2017-10-12  6:50         ` Hans Verkuil
2017-10-12  8:03           ` Tomi Valkeinen
2017-10-12  9:42             ` Hans Verkuil
2017-10-12  9:52               ` Tomi Valkeinen
2017-10-14 11:25             ` Hans Verkuil

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=f5d93c33-7825-1034-a605-ee38c796ca20@ti.com \
    --to=tomi.valkeinen@ti.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=hverkuil@xs4all.nl \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox