linux_dsm_epyc7002/drivers/media/cec
Hans Verkuil 6ec1cbf6b1 media: cec: improve CEC pin event handling
It turns out that the struct cec_fh event buffer size of 64 events
(64 for CEC_EVENT_PIN_CEC_LOW and 64 for _HIGH) is too small. It's
about 160 ms worth of events and if the Raspberry Pi is busy, then it
might take too long for the application to be scheduled so that it can
drain the pending events. Increase these buffers to 800 events which
is at least 2 seconds worth of events.

There is also a FIFO in between the interrupt and the cec-pin thread.
The thread passes the events on to the CEC core. It is important that
should this FIFO fill up the cec core will be informed that events
have been lost so this can be communicated to the user by setting
CEC_EVENT_FL_DROPPED_EVENTS.

It is very hard to debug CEC problems if events were lost without
informing the user of that fact.

If events were dropped due to the FIFO filling up, then the debugfs
status file will let you know how many events were dropped.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2018-03-22 08:16:52 -04:00
..
cec-adap.c media: cec: improve CEC pin event handling 2018-03-22 08:16:52 -04:00
cec-api.c media: cec: add SPDX license info 2018-02-14 13:16:03 -05:00
cec-core.c media: cec: add core error injection support 2018-03-22 07:59:31 -04:00
cec-edid.c media: cec: add SPDX license info 2018-02-14 13:16:03 -05:00
cec-notifier.c media: cec: add SPDX license info 2018-02-14 13:16:03 -05:00
cec-pin-error-inj.c media: cec-pin-error-inj: parse/show error injection 2018-03-22 08:00:59 -04:00
cec-pin-priv.h media: cec: improve CEC pin event handling 2018-03-22 08:16:52 -04:00
cec-pin.c media: cec: improve CEC pin event handling 2018-03-22 08:16:52 -04:00
cec-priv.h media: cec: add SPDX license info 2018-02-14 13:16:03 -05:00
Kconfig media: cec-pin-error-inj: parse/show error injection 2018-03-22 08:00:59 -04:00
Makefile media: cec-pin-error-inj: parse/show error injection 2018-03-22 08:00:59 -04:00