libdrm-armada repository

2016-08-03 Thread Russell King
now be super-fast. In addition, I've changed the DNS slightly. The preferred URLs are now: git://git.armlinux.org.uk/~rmk/libdrm-armada.git for pulling and cloning from, and the cgit interface http://git.armlinux.org.uk/cgit/libdrm-armada.git Thanks. -- Russell King

[PATCH RFC 1/5] video: add HDMI state notifier support

2016-08-12 Thread Russell King
Add support for HDMI hotplug and EDID notifiers, which is used to convey information from HDMI drivers to their CEC and audio counterparts. Acked-by: Philipp Zabel Signed-off-by: Russell King --- drivers/video/Kconfig | 3 +++ drivers/video/Makefile| 1 + drivers/video/hdmi

[PATCH RFC 2/5] drm/bridge: dw_hdmi: remove CEC engine register definitions

2016-08-12 Thread Russell King
We don't need the CEC engine register definitions, so let's remove them. Signed-off-by: Russell King --- drivers/gpu/drm/bridge/dw-hdmi.h | 45 1 file changed, 45 deletions(-) diff --git a/drivers/gpu/drm/bridge/dw-hdmi.h b/drivers/gpu/drm

[PATCH RFC 3/5] drm/bridge: dw_hdmi: add HDMI notifier support

2016-08-12 Thread Russell King
Add HDMI notifiers to the HDMI bridge driver. Signed-off-by: Russell King --- drivers/gpu/drm/bridge/Kconfig | 1 + drivers/gpu/drm/bridge/dw-hdmi.c | 9 + 2 files changed, 10 insertions(+) diff --git a/drivers/gpu/drm/bridge/Kconfig b/drivers/gpu/drm/bridge/Kconfig index

[PATCH RFC 4/5] drm/bridge: add dw-hdmi cec driver using Hans Verkil's CEC code

2016-08-12 Thread Russell King
Add a CEC driver for the dw-hdmi hardware using Hans Verkil's CEC implementation. Signed-off-by: Russell King --- drivers/gpu/drm/bridge/Kconfig| 7 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/dw-hdmi-cec.c

[PATCH RFC 5/5] drm/i2c: add tda998x/tda9950 CEC driver

2016-08-12 Thread Russell King
Add a CEC driver for the TDA9950, which is a stand-alone I2C CEC device. The TDA9950 contains a command processor which handles retransmissions and the low level bus protocol. The driver just has to read and write the messages, and handle error conditions. Signed-off-by: Russell King

[PATCH 3/5] drm/i2c: tda998x: add support for writing SPD

2019-01-26 Thread Russell King
Add support for writing the SPD infoframe to the TDA998x. Identify us as "Generic" vendor "PC" product, and as "PC general" source device information. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 18 ++ 1 file changed,

[PATCH 2/5] drm/i2c: tda998x: add bridge timing information

2019-01-26 Thread Russell King
Add bridge timing information so that bridge users can figure out the timing parameters that are necessary for TDA998x. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/gpu/drm/i2c

[PATCH 5/5] drm/i2c: tda998x: improve correctness of quantisation range

2019-01-26 Thread Russell King
ll be sent full-range RGB. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 39 ++- 1 file changed, 34 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c index b0ed2ef49c62..7d9a

[PATCH 1/5] drm/i2c: tda998x: add support for pixel repeated modes

2019-01-26 Thread Russell King
izer pixel repeat count. Since the audio code needs the actual TMDS clock, record that. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/g

[PATCH 4/5] drm/i2c: tda998x: add vendor specific infoframe support

2019-01-26 Thread Russell King
Add support for the vendor specific infoframe. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c index dad7396ebe2b..b0ed2ef49c62 100644

[PATCH] drm: etnaviv: try harder to generate a core dump

2019-01-26 Thread Russell King
It is possible that the size of the BOs currently queued for the GPU exceed our available memory for dumping a device core dump. If this occures, try generating a core dump without containing the contents of the BOs. Signed-off-by: Russell King --- drivers/gpu/drm/etnaviv/etnaviv_dump.c | 30

[PATCH RFC 1/3] drm/i2c: tda998x: implement different I2S flavours

2019-02-25 Thread Russell King
Add support for the left and right justified I2S formats as well as the more tranditional "Philips" I2S format. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 57 ++- include/drm/i2c/tda998x.h | 11 +--- 2 files c

[PATCH RFC 3/3] drm/i2c: tda998x: add support for bclk_ratio

2019-02-25 Thread Russell King
to see users whose I2S blocks send at 64·fs for 16-bit samples, which means TDA998x now breaks. ASoC has a snd_soc_dai_set_bclk_ratio() call available which sets the ratio of BCLK to the sample rate. Implement support for this. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c

[PATCH] drm: etnaviv: avoid DMA API warning when importing buffers

2019-02-25 Thread Russell King
size, which is set to 2GiB to cover the window found in MMUv1 GPUs. Signed-off-by: Russell King --- Patch against v4.20. drivers/gpu/drm/etnaviv/etnaviv_drv.c | 4 drivers/gpu/drm/etnaviv/etnaviv_drv.h | 1 + 2 files changed, 5 insertions(+) diff --git a/drivers/gpu/drm/etnaviv

[PATCH 12/13] drm/i2c: tda998x: add bridge timing information

2019-06-11 Thread Russell King
Add bridge timing information so that bridge users can figure out the timing parameters that are necessary for TDA998x. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/gpu/drm/i2c

[PATCH 06/13] drm/i2c: tda998x: index audio port enable config by route type

2019-06-11 Thread Russell King
Rather than searching an array for the audio format (which we control) implement indexing by route type. This avoids iterating over the array in several locations. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 57 --- 1 file changed, 29

[PATCH 05/13] drm/i2c: tda998x: store audio port enable in settings

2019-06-11 Thread Russell King
Store the audio port enable register in the audio settings structure, which can never be zero for a valid audio configuration. Use this to signal whether we have audio configured, rather than AFMT_UNUSED. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 18

[PATCH 04/13] drm/i2c: tda998x: derive CTS_N value from aclk sample rate ratio

2019-06-11 Thread Russell King
n the bit clock ratio. However, as the driver is not given the bit clock ratio from ALSA, continue deriving this from the sample width. This will be addressed in a later commit. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 94 ++- 1

[PATCH 07/13] drm/i2c: tda998x: configure both fields of AIP_CLKSEL together

2019-06-11 Thread Russell King
We can configure both fields of the AIP_CLKSEL register with a single write, there is no need to delay the setting of the CTS reference. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/drivers

[PATCH 11/13] drm/i2c: tda998x: add support for pixel repeated modes

2019-06-11 Thread Russell King
izer pixel repeat count. Since the audio code needs the actual TMDS clock, record that. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/g

[PATCH 03/13] drm/i2c: tda998x: improve programming of audio divisor

2019-06-11 Thread Russell King
Improve the selection of the audio clock divisor so that more modes and sample rates work. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 44 +-- 1 file changed, 28 insertions(+), 16 deletions(-) diff --git a/drivers/gpu/drm/i2c

[PATCH 10/13] drm/i2c: tda998x: get rid of params in audio settings

2019-06-11 Thread Russell King
Get rid of the tda998x_audio_params structure in audio_settings, which is now just used for platform data. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 43 +++ 1 file changed, 26 insertions(+), 17 deletions(-) diff --git a/drivers/gpu

[PATCH 02/13] drm/i2c: tda998x: implement different I2S flavours

2019-06-11 Thread Russell King
Add support for the left and right justified I2S formats as well as the more tranditional "Philips" I2S format. Tested-by: Peter Ujfalusi Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 53 +-- 1 file changed, 34 inserti

[PATCH 01/13] drm/i2c: tda998x: introduce tda998x_audio_settings

2019-06-11 Thread Russell King
specification. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 56 ++- 1 file changed, 31 insertions(+), 25 deletions(-) diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c index 7f34601bb515..e478633d9a7a 100644

[PATCH 08/13] drm/i2c: tda998x: move audio routing configuration

2019-06-11 Thread Russell King
Move the mux and clocking selection out of tda998x_configure_audio() into the parent functions, so we can validate this when parameters are set outside of the audio mutex. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 78 +++ 1 file

[PATCH 13/13] drm/i2c: tda998x: improve correctness of quantisation range

2019-06-11 Thread Russell King
ll be sent full-range RGB. Reviewed-by: Brian Starkey Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 36 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c ind

[PATCH 09/13] drm/i2c: tda998x: clean up tda998x_configure_audio()

2019-06-11 Thread Russell King
also only ever needs to write the current audio settings, so simplify the code in tda998x_audio_hw_params() so that can happen. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 26 ++ 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/driver

[PATCH 15/18] drm/armada: redo CRTC debugfs files

2019-06-14 Thread Russell King
Move the CRTC debugfs files into the CRTC specific directory. Signed-off-by: Russell King --- drivers/gpu/drm/armada/armada_crtc.c| 7 +++ drivers/gpu/drm/armada/armada_debugfs.c | 98 + drivers/gpu/drm/armada/armada_drm.h | 1 + 3 files changed, 46

[PATCH v2 02/13] drm/i2c: tda998x: implement different I2S flavours

2019-06-14 Thread Russell King
Add support for the left and right justified I2S formats as well as the more tranditional "Philips" I2S format. Tested-by: Peter Ujfalusi Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 51 +-- 1 file changed, 33 inserti

[PATCH v2 03/13] drm/i2c: tda998x: improve programming of audio divisor

2019-06-14 Thread Russell King
Improve the selection of the audio clock divisor so that more modes and sample rates work. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 44 +-- 1 file changed, 28 insertions(+), 16 deletions(-) diff --git a/drivers/gpu/drm/i2c

[PATCH v2 06/13] drm/i2c: tda998x: index audio port enable config by route type

2019-06-14 Thread Russell King
Rather than searching an array for the audio format (which we control) implement indexing by route type. This avoids iterating over the array in several locations. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 57 --- 1 file changed, 29

[PATCH v2 11/13] drm/i2c: tda998x: add support for pixel repeated modes

2019-06-14 Thread Russell King
izer pixel repeat count. Since the audio code needs the actual TMDS clock, record that. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/g

[PATCH v2 10/13] drm/i2c: tda998x: get rid of params in audio settings

2019-06-14 Thread Russell King
Get rid of the tda998x_audio_params structure in audio_settings, which is now just used for platform data. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 43 +++ 1 file changed, 26 insertions(+), 17 deletions(-) diff --git a/drivers/gpu

[PATCH v2 04/13] drm/i2c: tda998x: derive CTS_N value from aclk sample rate ratio

2019-06-14 Thread Russell King
n the bit clock ratio. However, as the driver is not given the bit clock ratio from ALSA, continue deriving this from the sample width. This will be addressed in a later commit. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 94 ++- 1

[PATCH 07/18] drm/armada: add support for setting gamma

2019-06-14 Thread Russell King
Add support for setting gamma through both the legacy interfaces and the atomic interfaces. Signed-off-by: Russell King --- drivers/gpu/drm/armada/armada_crtc.c | 63 +++ drivers/gpu/drm/armada/armada_hw.h| 4 +++ drivers/gpu/drm/armada/armada_plane.c | 2

[PATCH 11/18] drm/armada: add drm_atomic_helper_shutdown() call in tear-down

2019-06-14 Thread Russell King
Ensure that the hardware is disabled prior to tearing down the modeset support. Signed-off-by: Russell King --- drivers/gpu/drm/armada/armada_drv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/armada/armada_drv.c b/drivers/gpu/drm/armada/armada_drv.c index e660c5ca52ae

[PATCH 10/18] drm/armada: add and use definitions for RDREG4F

2019-06-14 Thread Russell King
Add and use bit definitions for RDREG4F on Dove Armada 510. Signed-off-by: Russell King --- drivers/gpu/drm/armada/armada_510.c | 9 +++-- drivers/gpu/drm/armada/armada_hw.h | 10 ++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/armada/armada_510

[PATCH v2 09/13] drm/i2c: tda998x: clean up tda998x_configure_audio()

2019-06-14 Thread Russell King
also only ever needs to write the current audio settings, so simplify the code in tda998x_audio_hw_params() so that can happen. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 26 ++ 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/driver

[PATCH 17/18] drm/armada: use for_each_endpoint_of_node() to walk crtc endpoints

2019-06-14 Thread Russell King
Rather than having a nested set of for_each_child_of_node() walkers, use the graph walker to iterate through the endpoints for CRTCs. Signed-off-by: Russell King --- drivers/gpu/drm/armada/armada_drv.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/gpu

[PATCH 09/18] drm/armada: add drm_mode_set_crtcinfo() mode fixup

2019-06-14 Thread Russell King
Add a drm_mode_set_crtcinfo() call in our CRTC's mode_fixup callback to ensure that any adjustments to the mode made by connectors etc are properly accounted for by the CRTC. Signed-off-by: Russell King --- drivers/gpu/drm/armada/armada_crtc.c | 7 +++ 1 file changed, 7 insertions(+)

[PATCH 03/18] drm/armada: add plane size/location accessors

2019-06-14 Thread Russell King
. Signed-off-by: Russell King --- drivers/gpu/drm/armada/armada_overlay.c | 12 ++-- drivers/gpu/drm/armada/armada_plane.c | 12 ++-- drivers/gpu/drm/armada/armada_plane.h | 4 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/armada

[PATCH v2 12/13] drm/i2c: tda998x: improve correctness of quantisation range

2019-06-14 Thread Russell King
ll be sent full-range RGB. Reviewed-by: Brian Starkey Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 36 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c ind

[PATCH v2 05/13] drm/i2c: tda998x: store audio port enable in settings

2019-06-14 Thread Russell King
Store the audio port enable register in the audio settings structure, which can never be zero for a valid audio configuration. Use this to signal whether we have audio configured, rather than AFMT_UNUSED. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 18

[PATCH 05/18] drm/armada: add missing interlaced support for overlay frame

2019-06-14 Thread Russell King
Interlaced support has been missing from the overlay frame, which is sub-optimal. Add support for this missing feature. Signed-off-by: Russell King --- drivers/gpu/drm/armada/armada_overlay.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/armada

[PATCH v2 07/13] drm/i2c: tda998x: configure both fields of AIP_CLKSEL together

2019-06-14 Thread Russell King
We can configure both fields of the AIP_CLKSEL register with a single write, there is no need to delay the setting of the CTS reference. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/drivers

[PATCH v2 08/13] drm/i2c: tda998x: move audio routing configuration

2019-06-14 Thread Russell King
Move the mux and clocking selection out of tda998x_configure_audio() into the parent functions, so we can validate this when parameters are set outside of the audio mutex. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 78 +++ 1 file

[PATCH 12/18] drm/armada: add CRTC mode validation

2019-06-14 Thread Russell King
Add CRTC mode validation to reject modes that the CRTC does not support. Signed-off-by: Russell King --- drivers/gpu/drm/armada/armada_crtc.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/gpu/drm/armada/armada_crtc.c b/drivers/gpu/drm/armada/armada_crtc.c

[PATCH 04/18] drm/armada: fix plane location and size for interlace

2019-06-14 Thread Russell King
private plane state structure. Signed-off-by: Russell King --- drivers/gpu/drm/armada/armada_hw.h | 15 --- drivers/gpu/drm/armada/armada_overlay.c | 15 --- drivers/gpu/drm/armada/armada_plane.c | 80 +++-- drivers/gpu/drm/armada/armada_plane.h | 20

[PATCH 01/18] drm/armada: fix crtc interlace

2019-06-14 Thread Russell King
We support interlace, but this was broken when we could no longer get a ref on the vblank interrupt. Arrange to get the ref on the vblank interrupt after we've re-enabled vblank, and put it before we disable the vblank. Signed-off-by: Russell King --- drivers/gpu/drm/armada/armada_crtc.c

[PATCH 16/18] drm/armada: replace the simple-framebuffer

2019-06-14 Thread Russell King
From: Lubomir Rintel If there's a simple-framebuffer carried over from boot firmware, it's going to stop working once we setup the LCDC for use via DRM. Kick it off from the hardware. Signed-off-by: Lubomir Rintel Signed-off-by: Russell King --- drivers/gpu/drm/armada/armada_

[PATCH 02/18] drm/armada: use __drm_atomic_helper_plane_reset in overlay reset

2019-06-14 Thread Russell King
Use the __drm_atomic_helper_plane_reset() helper in the overlay reset code to ensure that generic features are correctly reset in future. Signed-off-by: Russell King --- drivers/gpu/drm/armada/armada_overlay.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers

[PATCH 14/18] drm/armada: use mode_valid to validate the adjusted mode

2019-06-14 Thread Russell King
Validate the adjusted mode in the CRTC mode_fixup() call to ensure that any encoder or bridge doesn't supply us with a mode we can't support. Signed-off-by: Russell King --- drivers/gpu/drm/armada/armada_crtc.c | 19 ++- 1 file changed, 14 insertions(+), 5 deletion

[PATCH 18/18] drm/armada: no need to check parent of remote

2019-06-14 Thread Russell King
There's no need to check the parent of the remote device to check whether it is available or not, the remote is the device itself. Signed-off-by: Russell King --- drivers/gpu/drm/armada/armada_drv.c | 14 +++--- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/driver

[PATCH 13/18] drm/armada: improve Dove clock selection

2019-06-14 Thread Russell King
Improve the Dove (Armada 510) LCD clock selection and divider calculation, limiting to the valid divisor values, and reporting an error if the clock is not achievable within the bounds of HDMI clocking requirements. Signed-off-by: Russell King --- drivers/gpu/drm/armada/armada_510.c | 121

[PATCH 06/18] drm/armada: move plane address and pitch calculation to atomic_check

2019-06-14 Thread Russell King
Move the plane address and pitch calculations to atomic_check rather than the update function, so we don't have to probe the interlace setting for the CRTC while updating the plane. Signed-off-by: Russell King --- drivers/gpu/drm/armada/armada_overlay.c | 23 ++- driver

[PATCH v2 13/13] drm/i2c: tda998x: add vendor specific infoframe support

2019-06-14 Thread Russell King
Add support for the vendor specific infoframe. Reviewed-by: Brian Starkey Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c index

[PATCH 08/18] drm/armada: add comments about HWC32 cursor colour format

2019-06-14 Thread Russell King
Add some comments about the format of the HWC32 cursor colour format. Signed-off-by: Russell King --- drivers/gpu/drm/armada/armada_crtc.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/armada/armada_crtc.c b/drivers/gpu/drm/armada/armada_crtc.c index 5991feb1bcc9

[PATCH v2 01/13] drm/i2c: tda998x: introduce tda998x_audio_settings

2019-06-14 Thread Russell King
specification. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 68 +-- 1 file changed, 37 insertions(+), 31 deletions(-) diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c index 7f34601bb515..0668fb3537f2 100644

[GIT PULL] TDA998x development updates

2019-06-26 Thread Russell King
d the HDMI vendor info frame when required. Russell King (13): drm/i2c: tda998x: introduce tda998x_audio_settings drm/i2c: tda998x: implement different I2S flavours drm/i2c: tda998x: improve programming of audio di

[GIT PULL] ARM (for-airlie-armada branch)

2019-07-03 Thread Russell King
drm/armada: replace the simple-framebuffer Russell King (17): drm/armada: fix crtc interlace drm/armada: use __drm_atomic_helper_plane_reset in overlay reset drm/armada: add plane size/location accessors drm/armada: fix plane location and size for interlace drm/armada: add

[PATCH] drm: convert DT component matching to component_match_add_release()

2016-10-19 Thread Russell King
Convert DT component matching to use component_match_add_release(). Signed-off-by: Russell King --- Can we please get this patch from May merged into the drm-misc or whatever trees so that we don't end up with conflicts? I've no idea who looks after drm-misc, as they have _still_ fai

[GIT PULL] Armada DRM fixes

2016-10-19 Thread Russell King
update the following files: drivers/gpu/drm/armada/armada_crtc.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) through these changes: Russell King (1): drm/armada: fix clock counts Many thanks.

[RESEND][GIT PULL] TDA998x I2C driver development updates

2016-10-19 Thread Russell King
Sorry, my mistake - it was merged, and it's just that I seem to have accidentally rebased the branch, which is why the commits were still showing up in my tree. Sorry for the noise, please ignore. On Wed, Oct 19, 2016 at 05:37:18PM +0100, Russell King wrote: > David, > > Please i

[RESEND][GIT PULL] TDA998x I2C driver development updates

2016-10-19 Thread Russell King
: dts: am335x-boneblack: Add HDMI audio support Russell King (1): Merge commit 'efc9194bcff84' ("ASoC: hdmi-codec: callback function will be called with private data") into drm-tda998x-devel Many thanks.

[PATCH] dma-buf: fence debugging

2017-03-31 Thread Russell King
Attached Devices: gpu-subsystem Total 1 devices attached Total 1 objects, 8294400 bytes Signed-off-by: Russell King --- drivers/dma-buf/dma-buf.c | 34 +- 1 file changed, 33 insertions(+), 1 deletions(-) diff --git a/drivers/dma-buf/dma-buf.c b/drivers

[PATCH 2/3] drm/arm: hdlcd: fix plane base address calculation

2017-04-01 Thread Russell King
will use the source position to select an area of the buffer to scan out. In order for this to work correctly, we need to also fix the atomic check to do a fuller validation of the new state. Signed-off-by: Russell King --- drivers/gpu/drm/arm/hdlcd_crtc.c | 14 ++ 1 file chang

[PATCH] dma-buf: align debugfs output

2017-04-01 Thread Russell King
Align the heading with the values output from debugfs. Signed-off-by: Russell King --- drivers/dma-buf/dma-buf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/dma-buf/dma-buf.c b/drivers/dma-buf/dma-buf.c index ebaf1923ad6b..f72aaacbe023 100644 --- a/drivers/dma

[PATCH 1/3] drm/arm: hdlcd: properly validate plane state

2017-04-01 Thread Russell King
The hdlcd crtc is unable to place planes in arbitary positions and sizes within the active area. Use drm_plane_helper_check_state() to validate the requested state. Suggested-by: Daniel Vetter Signed-off-by: Russell King --- drivers/gpu/drm/arm/hdlcd_crtc.c | 28

[PATCH 3/3] drm/arm: hdlcd: check for rotation

2017-04-01 Thread Russell King
hdlcd does not support rotation - check for it and reject plane updates that try to rotate a plane. Signed-off-by: Russell King --- drivers/gpu/drm/arm/hdlcd_crtc.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/arm/hdlcd_crtc.c b/drivers/gpu/drm/arm/hdlcd_crtc.c index

[PATCH] drm: ensure atomic messages consistently include the name of the component

2017-02-13 Thread Russell King
tate") Fixes: cc4ceb484b37 ("drm: Global atomic state handling") Signed-off-by: Russell King --- drivers/gpu/drm/drm_atomic.c| 9 + drivers/gpu/drm/drm_atomic_helper.c | 12 +++- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/drivers/gp

[PATCH RFC 09/12] drm/i2c: tda998x: separate connector initialisation

2016-11-08 Thread Russell King
Separate out the connector initialisation from the rest of the drivers initialisation. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 46 ++- 1 file changed, 26 insertions(+), 20 deletions(-) diff --git a/drivers/gpu/drm/i2c

[PATCH RFC 03/12] drm/i2c: tda998x: avoid race when programming audio

2016-11-08 Thread Russell King
the audio FIFO mute before the mode set has completed. Move the lock so that we prevent audio interfering with an in-progress mode set. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i2c

[PATCH RFC 01/12] drm/i2c: tda998x: avoid race in tda998x_encoder_mode_set()

2016-11-08 Thread Russell King
t must not be unmuted until we have finished the mode set. It is possible that the audio side may start while a mode set is in progress, so take the audio_mutex lock around the whole mode setting procedure. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 7 +++ 1 fi

[PATCH RFC 04/12] drm/i2c: tda998x: only configure infoframes and audio if supported

2016-11-08 Thread Russell King
ts us to CEA extension version 3, so we treat CEA extension version 2 as CEA 861 (no infoframes, no audio.) Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 24 +++- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/i2c/tda998x_

[PATCH RFC 12/12] drm/i2c: tda998x: switch to boolean is_on

2016-11-08 Thread Russell King
Rather than storing the DPMS mode (which will always be on or off) use a boolean to store this instead. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 23 ++- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/i2c

[PATCH RFC 06/12] drm/i2c: tda998x: correct function name in comments

2016-11-08 Thread Russell King
Correct two references to tda998x_connector_get_modes() which were incorrectly referring to tda998x_encoder_get_modes(). Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b

[PATCH RFC 05/12] drm/i2c: tda998x: only enable audio if supported by sink

2016-11-08 Thread Russell King
Check for audio support by the attached sink by consulting the EDID prior to enabling audio over the TMDS link. We must consult the EDID after calling drm_helper_probe_single_connector_modes(), as this can use an override EDID, or load a replacement EDID. Signed-off-by: Russell King

[PATCH RFC 07/12] drm/i2c: tda998x: move and rename tda998x_encoder_set_config()

2016-11-08 Thread Russell King
The naming of tda998x_encoder_set_config() is a left-over from when TDA998x was a slave encoder. Since this is part of the initialisation, drop the _encoder from the name, and move it near tda998x_bind(). Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 40

[PATCH RFC 08/12] drm/i2c: tda998x: group connector functions and funcs together

2016-11-08 Thread Russell King
Group the TDA998x connector functions and funcs structures together before the encoder support, rather than scattered amongst the rest of the file. This keeps like code together. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 350 +++--- 1

[PATCH RFC 11/12] drm/i2c: tda998x: remove complexity from tda998x_audio_get_eld()

2016-11-08 Thread Russell King
tda998x_audio_get_eld() is needlessly complex - the connector associated with the encoder is always our own priv->connector. Remove this complexity, but ensure that there are no races when copying out the ELD. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c |

[PATCH RFC 02/12] drm/i2c: tda998x: avoid racy access to mode clock

2016-11-08 Thread Russell King
Avoid a racy access to the mode clock by storing the current mode clock during a mode set under the audio mutex. This allows us to access it from the audio path in a safe way. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 25 +++-- 1 file changed, 11

[PATCH RFC 10/12] drm/i2c: tda998x: group audio functions together

2016-11-08 Thread Russell King
Group the TDA998x audio functions together rather than split between two different locations in the file, keeping like code together. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 276 +++--- 1 file changed, 139 insertions(+), 137 deletions

[PATCH] drm/i2c: tda998x: power down pre-filter and color conversion

2016-11-11 Thread Russell King
Disabling the pre-filter block of the TDA998x saves 40mW and the colour conversion block saves 15mW. As we always disable these two blocks, we can power these sections of the chip down to save 55mW of unnecessary power consumption. Signed-off-by: Russell King --- This is the next patch in my

[PATCH RFC 3/7] drm/armada: move plane state to struct armada_plane

2016-11-17 Thread Russell King
Move more of the Armada plane state (source size, and displayed size and position) into a state structure inside struct armada_plane. Signed-off-by: Russell King --- drivers/gpu/drm/armada/armada_crtc.c| 29 - drivers/gpu/drm/armada/armada_crtc.h| 8

[PATCH 2/2] drm/i2c: tda998x: allow sharing of the CEC device accesses

2016-11-16 Thread Russell King
allows us to perform more than one bus transaction atomically. As this means we will be using I2C transactions rather than SMBUS, we have to check that the host supports I2C functionality. Signed-off-by: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 53

[PATCH RFC 6/7] drm/armada: use common helper for plane base address

2016-11-17 Thread Russell King
Use a common helper to calculate the plane base address(es) for the framebuffer. Signed-off-by: Russell King --- drivers/gpu/drm/armada/armada_crtc.c| 26 ++ drivers/gpu/drm/armada/armada_crtc.h| 2 ++ drivers/gpu/drm/armada/armada_overlay.c | 26

[PATCH 1/2] drm/i2c: tda998x: allow interrupt to be shared

2016-11-16 Thread Russell King
registration to allow this to happen. Signed-off-by: Russell King --- This patch follows on from: "drm/i2c: tda998x: power down pre-filter and color conversion" which is now part of my drm-tda998x-devel branch, a branch which will shortly be part of linux-next. This patch and the follo

[PATCH RFC 1/7] drm/armada: add tracing support

2016-11-17 Thread Russell King
Add tracing support to the Armada video overlay and interrupt code. Signed-off-by: Russell King --- drivers/gpu/drm/armada/Makefile | 2 +- drivers/gpu/drm/armada/armada_crtc.c| 3 ++ drivers/gpu/drm/armada/armada_overlay.c | 7 drivers/gpu/drm/armada/armada_trace.c | 4

[PATCH RFC 2/7] drm/armada: clean up armada_drm_plane_work_run()

2016-11-17 Thread Russell King
Make armada_drm_plane_work_run() take the drm_plane pointer rather than our private pointer. This allows us to localise the conversion between these two pointers inside armada_drm_plane_work_run(), rather than at every call site. Signed-off-by: Russell King --- drivers/gpu/drm/armada

[PATCH RFC 5/7] drm/armada: move setting primary plane position to armada_drm_primary_set()

2016-11-17 Thread Russell King
Move the setting of the primary plane position into armada_drm_primary_set() rather than the initialisation function. Signed-off-by: Russell King --- drivers/gpu/drm/armada/armada_crtc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/armada

[PATCH RFC 4/7] drm/armada: split out primary plane update

2016-11-17 Thread Russell King
Split out the primary plane update from the mode setting. Signed-off-by: Russell King --- drivers/gpu/drm/armada/armada_crtc.c | 52 ++-- 1 file changed, 32 insertions(+), 20 deletions(-) diff --git a/drivers/gpu/drm/armada/armada_crtc.c b/drivers/gpu/drm

[PATCH RFC 7/7] drm/armada: de-midlayer armada

2016-11-17 Thread Russell King
Now that the drm_connector_register() is gone from tda998x, we can remove the mid-layer from armada-drm, eliminating the load, unload, debugfs_init, and debugfs_cleanup callbacks from armada's drm_driver structure. No functional changes. Signed-off-by: Russell King --- drivers/gpu/drm/a

[PATCH] drm/arm: hdlcd: fix plane base address calculation

2016-11-21 Thread Russell King
will use the source position to select an area of the buffer to scan out. In order for this to work correctly, we need to also fix the atomic check to do a fuller validation of the new state. Signed-off-by: Russell King --- drivers/gpu/drm/arm/hdlcd_crtc.c

[GIT PULL] Armada DRM development updates development updates

2016-11-22 Thread Russell King
comparison warning Russell King (7): drm/armada: add tracing support drm/armada: clean up armada_drm_plane_work_run() drm/armada: move plane state to struct armada_plane drm/armada: split out primary plane update drm/armada: move setting primary plane position to

[GIT PULL] TDA998x I2C driver development updates

2016-11-22 Thread Russell King
-- 1 file changed, 503 insertions(+), 450 deletions(-) through these changes: Colin Ian King (1): drm/i2c: tda998x: fix spelling mistake Russell King (16): drm/i2c: tda998x: move audio mutex initialisation drm/i2c: tda998x: avoid race in

[PATCH] drm/etnaviv: add etnaviv cooling device

2017-03-13 Thread Russell King
throttle the power dissiptation, and reduce the temperature when the SoC gets hot. This patch hooks the Etnaviv driver into the kernel's thermal management to allow the GPUs to be throttled when necessary, allowing a reduction in GPU clock rate from /1 to /64 in power of 2 steps. Signed-off-by: Ru

[PATCH 3/4] drm/bridge: dw-hdmi: add better clock disable control

2017-05-31 Thread Russell King
The video setup path aways sets the clock disable register to a specific value, which has the effect of disabling the CEC engine. When we add the CEC driver, this becomes a problem. Fix this by only setting/clearing the bits that the video path needs to. Signed-off-by: Russell King

[PATCH 1/4] drm/bridge: dw-hdmi: remove CEC engine register definitions

2017-05-31 Thread Russell King
We don't need the CEC engine register definitions, so let's remove them. Signed-off-by: Russell King --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.h | 45 --- 1 file changed, 45 deletions(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.h b/drive

[PATCH 2/4] drm/bridge: dw-hdmi: add cec notifier support

2017-05-31 Thread Russell King
Add CEC notifier support to the HDMI bridge driver, so that the CEC part of the IP can receive its physical address. Signed-off-by: Russell King --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/drivers/gpu

  1   2   3   4   5   6   7   8   9   10   >