[Intel-gfx] [PATCH v3 1/2] drm/i915: provide interface for audio driver to query cdclk

2014-07-03 Thread mengdong . lin
-by: Mengdong Lin mengdong@intel.com diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index a90fdbd..21170e5 100644 --- a/drivers/gpu/drm/i915/intel_pm.c +++ b/drivers/gpu/drm/i915/intel_pm.c @@ -6256,6 +6256,27 @@ int i915_release_power_well(void) } EXPORT_SYMBOL_GPL

[Intel-gfx] [PATCH v2 1/2] drm/i915: provide interface for audio driver to query cdclk

2014-07-02 Thread mengdong . lin
From: Jani Nikula jani.nik...@intel.com Signed-off-by: Jani Nikula jani.nik...@intel.com Signed-off-by: Mengdong Lin mengdong@intel.com diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index a90fdbd..21170e5 100644 --- a/drivers/gpu/drm/i915/intel_pm.c +++ b

[Intel-gfx] [PATCH] intel_audio_dump: fix CTS/M value index

2014-03-13 Thread mengdong . lin
From: Mengdong Lin mengdong@intel.com This patch fixes the reversed CTS/M value index when dumping the 'audio M/CTS programing enable' register. Signed-off-by: Mengdong Lin mengdong@intel.com diff --git a/tools/intel_audio_dump.c b/tools/intel_audio_dump.c index 46eebdb..3ed2918 100644

[Intel-gfx] [PATCH 0/7] intel_audio_dump: add support for Valleyview

2014-03-03 Thread mengdong . lin
From: Mengdong Lin mengdong@intel.com Layout of display and audio registers can be same for different Intel GPUs, so we want maximum code sharing when adding support for VLV. This patch set: - support using base address plus an offset to dump registers - share common audio dump code

[Intel-gfx] [PATCH 1/7] intel_audio_dump: support using base address plus an offset to dump registers

2014-03-03 Thread mengdong . lin
From: Mengdong Lin mengdong@intel.com Layout of display and audio registers can be same for different Intel GPUs. For code sharing, this patches defines functions to - set the base address of display and audio registers - dump registers using the base address and an offset Signed-off

[Intel-gfx] [PATCH 2/7] intel_audio_dump: move definitions of transcoder/pipe/port/converter earlier

2014-03-03 Thread mengdong . lin
From: Mengdong Lin mengdong@intel.com Move these enum definitions earlier for future code sharing. Signed-off-by: Mengdong Lin mengdong@intel.com Reviewed-by: Haihao Xiang haihao.xi...@intel.com diff --git a/tools/intel_audio_dump.c b/tools/intel_audio_dump.c index 47926e4..faa577e

[Intel-gfx] [PATCH 4/7] intel_audio_dump: define get_num_pipes() to get number of pipes for a device ID

2014-03-03 Thread mengdong . lin
From: Mengdong Lin mengdong@intel.com It's for future code sharing because some registers define their bit fields according to the number of pipes. Signed-off-by: Mengdong Lin mengdong@intel.com Reviewed-by: Haihao Xiang haihao.xi...@intel.com diff --git a/tools/intel_audio_dump.c b

[Intel-gfx] [PATCH 6/7] intel_audio_dump: adjust code alignment

2014-03-03 Thread mengdong . lin
From: Mengdong Lin mengdong@intel.com Signed-off-by: Mengdong Lin mengdong@intel.com Reviewed-by: Haihao Xiang haihao.xi...@intel.com diff --git a/tools/intel_audio_dump.c b/tools/intel_audio_dump.c index e6f6002..e36bb69 100644 --- a/tools/intel_audio_dump.c +++ b/tools

[Intel-gfx] [PATCH 3/7] intel_audio_dump: define IS_HASWELL_PLUS to cover Haswell and its successors

2014-03-03 Thread mengdong . lin
From: Mengdong Lin mengdong@intel.com A macro IS_HASWELL_PLUS(devid) is defined to cover Haswell and its successors, for code sharing. Now it covers HSW and BDW. Signed-off-by: Mengdong Lin mengdong@intel.com Reviewed-by: Haihao Xiang haihao.xi...@intel.com diff --git a/tools

[Intel-gfx] [PATCH 7/7] intel_audio_dump: add support for Valleyview

2014-03-03 Thread mengdong . lin
From: Mengdong Lin mengdong@intel.com This patch adds support for dumping audio registers of Valleyview, by reusing Ironlake code with a different base address and pipe number. Signed-off-by: Mengdong Lin mengdong@intel.com Reviewed-by: Haihao Xiang haihao.xi...@intel.com diff --git

[Intel-gfx] [PATCH v4] drm/i915/vlv: enable HDA display audio for Valleyview2

2013-11-01 Thread mengdong . lin
From: Mengdong Lin mengdong@intel.com This patch defines HD-Audio configuration registers and enables display audio from HDA controller for Valleyview2. v2: fix missing offset VLV_DISPLAY_BASE v3: rename patch from 'enable HDMI audio' to 'enable HDA display audio', since it's for both

[Intel-gfx] [PATCH v3] drm/i915/vlv: enable HDA display audio for Valleyview2

2013-10-24 Thread mengdong . lin
From: Mengdong Lin mengdong@intel.com This patch defines HD-Audio configuration registers and enables display audio from HDA controller for Valleyview2. Signed-off-by: Mengdong Lin mengdong@intel.com Reviewed-by: Jesse Barnes jbar...@virtuousgeek.org diff --git a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH] drm/i915/vlv: enable HDMI audio for Valleyview2

2013-10-21 Thread mengdong . lin
From: Mengdong Lin mengdong@intel.com This patch defines audio configuration registers and adds audio enabling code for Valleyview2. Signed-off-by: Mengdong Lin mengdong@intel.com diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 9538502..04e5a8b

[Intel-gfx] [PATCH v3 1/2] drm/i915/hsw: Add display Audio codec disable sequence for Haswell

2013-09-24 Thread mengdong . lin
modified by Mendong to apply to both HDMI and DP port.] Signed-off-by: Mukesh Arora mukeshx.ar...@intel.com Signed-off-by: Mengdong Lin mengdong@intel.com Reviewed-by: Ben Widawsky b...@bwidawsk.net diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c index b042ee5

[Intel-gfx] [PATCH 0/3] intel_audio_dump/hsw: clean up code

2013-09-09 Thread mengdong . lin
From: Mengdong Lin mengdong@intel.com Three patches are included, reviewed by Haihao, Xiang. Mengdong Lin (3): intel_audio_dump/hsw: remove misuse of PCH transcoder configuration register intel_audio_dump/hsw: align code with tab intel_audio_dump/hsw: rename some audio

[Intel-gfx] [PATCH 1/3] intel_audio_dump/hsw: remove misuse of PCH transcoder configuration register

2013-09-09 Thread mengdong . lin
From: Mengdong Lin mengdong@intel.com The PCH transcoder config register (PCH_TRANS_CONF, 0xf0008) is not the correct config register for transcoder A, B or C. This register is in PCH and for CRT display, nothing to do with display audio. So This patch removes misuse of it as config register

[Intel-gfx] [PATCH 3/3] intel_audio_dump/hsw: rename some audio configuration registers for Haswell

2013-09-09 Thread mengdong . lin
From: Mengdong Lin mengdong@intel.com For Haswell, some audio configuration registers have changed their name and some bit definitions. This patch applies the changes, and uses subfunctions to parse registers for code reuse. Here is the name change list: Audio configuration: AUD_CONFIG_x

[Intel-gfx] [PATCH] [VPG HSW-A] drm/i915:Added HDMI Audio codec disable sequence for HSW.

2013-08-30 Thread mengdong . lin
From: Mukesh mukeshx.ar...@intel.com The code implements hsw_hdmi_audio_disable func which sets the relevant registers for disabling the audio codec in a call to intel_disable_ddi func.This audio codec disbale sequence is implemented as per the recommendation of the Bspec. Change-Id:

[Intel-gfx] [PATCH v2] drm/i915/hsw: Add display Audio codec disable sequence for Haswell

2013-08-30 Thread mengdong . lin
modified by Mendong to apply to both HDMI and DP port.] Signed-off-by: Mukesh Arora mukeshx.ar...@intel.com Signed-off-by: Mengdong Lin mengdong@intel.com diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c index b042ee5..2946fe7 100644 --- a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH] quick_dump/hsw: support haswell in device auto-detection

2013-08-26 Thread mengdong . lin
From: Mengdong Lin mengdong@intel.com This patch exposes is_haswell() to python, to be used by device auto-detection. Signed-off-by: Mengdong Lin mengdong@intel.com diff --git a/tools/quick_dump/chipset.i b/tools/quick_dump/chipset.i index 69dc8df..4b13487 100644 --- a/tools/quick_dump