Re: [Intel-gfx] [PATCH v2] drm/i915: Don't use the second dbuf slice on icl

2019-01-30 Thread Mahesh Kumar
LGTM... Reviewed-by: Mahesh Kumar On Wed, Jan 30, 2019 at 9:21 PM Ville Syrjala wrote: > > From: Ville Syrjälä > > The code managing the dbuf slices is borked and needs some > real work to fix. In the meantime let's just stop using the > second slice. >

Re: [Intel-gfx] [PATCH] drm/i915: Don't use the second dbuf slice on icl

2019-01-27 Thread Mahesh Kumar
Hi, On Fri, Jan 25, 2019 at 8:58 PM Ville Syrjälä wrote: > > On Tue, Jan 22, 2019 at 02:58:46PM +0530, Mahesh Kumar wrote: > > Hi, > > > > On Mon, Jan 21, 2019 at 9:01 PM Ville Syrjala > > wrote: > > > > > > From: Ville Syrjälä > > > &g

Re: [Intel-gfx] [PATCH] drm/i915: Don't use the second dbuf slice on icl

2019-01-27 Thread Mahesh Kumar
Hi, On Fri, Jan 25, 2019 at 8:38 PM Imre Deak wrote: > > On Tue, Jan 22, 2019 at 02:49:13PM +0530, Mahesh Kumar wrote: > > Hi, > > > > > > On Mon, Jan 21, 2019 at 9:01 PM Ville Syrjala > > wrote: > > > > > > From: Ville Syrjälä > > &

Re: [Intel-gfx] [PATCH] drm/i915: Don't use the second dbuf slice on icl

2019-01-22 Thread Mahesh Kumar
Hi, On Mon, Jan 21, 2019 at 9:01 PM Ville Syrjala wrote: > > From: Ville Syrjälä > > The code managing the dbuf slices is borked and needs some > real work to fix. In the meantime let's just stop using the > second slice. > > Signed-off-by: Ville Syrjälä > --- > drivers/gpu/drm/i915/intel_pm.c

Re: [Intel-gfx] [PATCH] drm/i915: Don't use the second dbuf slice on icl

2019-01-22 Thread Mahesh Kumar
Hi, On Mon, Jan 21, 2019 at 9:01 PM Ville Syrjala wrote: > > From: Ville Syrjälä > > The code managing the dbuf slices is borked and needs some > real work to fix. In the meantime let's just stop using the > second slice. > > Signed-off-by: Ville Syrjälä > --- > drivers/gpu/drm/i915/intel_pm.

Re: [Intel-gfx] [PATCH v2] drm/i915: Don't apply the 16Gb DIMM wm latency w/a to BXT/GLK

2018-10-23 Thread Mahesh Kumar
LGTM.. Reviewed-by: Mahesh Kumar -Mahesh On Tue, Oct 23, 2018 at 11:52 PM Ville Syrjala wrote: > > From: Ville Syrjälä > > The 16Gb DIMM w/a is not applicable to BXT or GLK. Limit it to > the appropriate platforms. > > This was especially harsh on GLK since we don't e

Re: [Intel-gfx] [PATCH] drm/i915: Don't apply the 16Gb DIMM wm latency w/a to BXT/GLK

2018-10-10 Thread Mahesh Kumar
On Thu, Oct 11, 2018 at 2:19 AM Mahesh Kumar wrote: > > Hi, > > On Wed, Oct 10, 2018 at 11:25 PM Ville Syrjala > wrote: > > > > From: Ville Syrjälä > > > > The 16Gb DIMM w/a is not applicable to BXT or GLK. Limit it to > > the appropriate platfo

Re: [Intel-gfx] [PATCH] drm/i915: Don't apply the 16Gb DIMM wm latency w/a to BXT/GLK

2018-10-10 Thread Mahesh Kumar
tion on that platforms, hence valid_dimm was > always false and thus we always tried to apply the w/a. > Furthermore the w/a pushed the level 0 latency above the > level 1 latency, which doesn't really make sense. > > Cc: Mahesh Kumar > Cc: Maarten Lankhorst > Fixes: 86b5

[Intel-gfx] [PATCH v2 1/8] drm/i915/icl: create function to identify combophy port

2018-10-04 Thread Mahesh Kumar
This patch creates a function/wrapper to check if port is combophy port instead of explicitly comparing ports. Changes since V1: - keep all intel_port_is_* helper together (Lucas) Signed-off-by: Mahesh Kumar Cc: Madhav Chauhan Cc: Manasi Navare Reviewed-by: Rodrigo Vivi --- drivers/gpu/drm

[Intel-gfx] [PATCH 7/8] drm/i915/icl: Introduce new macros to get combophy registers

2018-10-03 Thread Mahesh Kumar
And inside each PORT_TX_[AUX|GRP|LN] we add `dw * 4`. Based on original patch by Mahesh Kumar . Signed-off-by: Lucas De Marchi Signed-off-by: Mahesh Kumar Cc: Rodrigo Vivi --- drivers/gpu/drm/i915/i915_reg.h | 154 ++-- 1 file changed, 54 insertions(+), 100

[Intel-gfx] [PATCH 8/8] drm/i915/icl: Fix DDI/TC port clk_off bits

2018-10-03 Thread Mahesh Kumar
DDI/TC clock-off bits are not equally distanced. TC1-3 bits are from offset 12 & TC4 is at offset 21. Create a function to choose correct clk-off bit. Signed-off-by: Mahesh Kumar Signed-off-by: Vandita Kulkarni Cc: Lucas De Marchi --- drivers/gpu/drm/i915/i915_reg.h | 3 +++ drivers/gpu

[Intel-gfx] [PATCH 1/8] drm/i915/icl: create function to identify combophy port

2018-10-03 Thread Mahesh Kumar
This patch creates a function/wrapper to check if port is combophy port instead of explicitly comparing ports. Signed-off-by: Mahesh Kumar Cc: Madhav Chauhan Cc: Manasi Navare --- drivers/gpu/drm/i915/intel_ddi.c | 15 --- drivers/gpu/drm/i915/intel_display.c | 11

[Intel-gfx] [PATCH 6/8] drm/i915/icl: Combine all port/combophy macros at one place

2018-10-03 Thread Mahesh Kumar
This patch combines CNL/ICL specific port/combophy macros together at one location. This is prework for patches later in series where new macros to find port/combophy register will be introduced. Signed-off-by: Mahesh Kumar Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/i915_reg.h

[Intel-gfx] [PATCH 5/8] drm/i915/icl: Refactor icl pll functions

2018-10-03 Thread Mahesh Kumar
From: Vandita Kulkarni This patch adds helper function for identifying whether the given PLL is combo PHY PLL or not. This helper function is used inside various ICL functions to make them scalable. Signed-off-by: Vandita Kulkarni Signed-off-by: Mahesh Kumar Cc: Madhav Chauhan Cc: Lucas De

[Intel-gfx] [PATCH 0/8] Refactor and Add helper function for combophy/tc ports

2018-10-03 Thread Mahesh Kumar
This series refactor code and register definitions for combophy port registers. And also creates helper functions to identify combophy/tc ports. Lucas De Marchi (1): drm/i915/icl: Introduce new macros to get combophy registers Mahesh Kumar (4): drm/i915/icl: create function to identify

[Intel-gfx] [PATCH 3/8] drm/i915/icl: Refactor get_ddi_pll using helper func

2018-10-03 Thread Mahesh Kumar
From: Vandita Kulkarni Use the existing port-to-id helper function, to refactor hence making it scalable. Signed-off-by: Vandita Kulkarni Signed-off-by: Mahesh Kumar Cc: Lucas De Marchi Cc: Madhav Chauhan --- drivers/gpu/drm/i915/intel_display.c | 8 +--- drivers/gpu/drm/i915

[Intel-gfx] [PATCH 2/8] drm/i915/icl: use combophy/TC helper functions during display detection

2018-10-03 Thread Mahesh Kumar
Instead of directly comparing HPD pins use intel_port_is_combophy/tc helper functions to distinguish between combophy/TC ports. Signed-off-by: Mahesh Kumar Cc: Manasi Navare --- drivers/gpu/drm/i915/intel_dp.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a

[Intel-gfx] [PATCH 4/8] drm/i915/icl: Use helper functions to classify the ports

2018-10-03 Thread Mahesh Kumar
From: Vandita Kulkarni Use intel_port_is_tc and intel_port_is_combophy functions to replace the individual port checks from port C to F and port A to B respectively. Signed-off-by: Vandita Kulkarni Signed-off-by: Mahesh Kumar Cc: Lucas De Marchi Cc: Madhav Chauhan --- drivers/gpu/drm/i915

[Intel-gfx] [PATCH v5] drm/i915: use for_each_pipe loop to assign crtc_mask

2018-09-19 Thread Mahesh Kumar
rom V4: - drop DP/HDMI changes, as already part of patch from ville Cc: Jani Nikula Cc: Rodrigo Vivi Signed-off-by: Mahesh Kumar Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/intel_ddi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/d

[Intel-gfx] [PATCH v4] drm/i915: use for_each_pipe loop to assign crtc_mask

2018-09-07 Thread Mahesh Kumar
la Cc: Rodrigo Vivi Signed-off-by: Mahesh Kumar --- drivers/gpu/drm/i915/intel_ddi.c | 4 +++- drivers/gpu/drm/i915/intel_dp.c | 5 - drivers/gpu/drm/i915/intel_hdmi.c | 5 - 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/dr

[Intel-gfx] [PATCH v3] drm/i915: use for_each_pipe loop to assign crtc_mask

2018-09-07 Thread Mahesh Kumar
This cleanup patch makes changes to use for_each_pipe loop during bit-mask assignment of allowed crtc with encoder. changes: - use BIT(i) macro instead of (1 << i) (Chris) changes from V2: - use int for consistency (Jani) Cc: Jani Nikula Cc: Rodrigo Vivi Signed-off-by: Mahesh

[Intel-gfx] [PATCH v2] drm/i915: use for_each_pipe loop to assign crtc_mask

2018-09-07 Thread Mahesh Kumar
This cleanup patch makes changes to use for_each_pipe loop during bit-mask assignment of allowed crtc with encoder. changes: - use BIT(i) macro instead of (1 << i) (Chris) Cc: Jani Nikula Cc: Rodrigo Vivi Signed-off-by: Mahesh Kumar --- drivers/gpu/drm/i915/intel_ddi.c | 4 +++- d

[Intel-gfx] [PATCH] drm/i915: use for_each_pipe loop to assign crtc_mask

2018-09-07 Thread Mahesh Kumar
This cleanup patch makes changes to use for_each_pipe loop during bit-mask assignment of allowed crtc with encoder. Cc: Jani Nikula Cc: Rodrigo Vivi Cc: Mahesh Kumar Signed-off-by: Mahesh Kumar --- drivers/gpu/drm/i915/intel_ddi.c | 4 +++- drivers/gpu/drm/i915/intel_dp.c | 5

[Intel-gfx] [PATCH V4 3/5] drm/i915: Implement 16GB dimm wa for latency level-0

2018-08-31 Thread Mahesh Kumar
condition (Maarten) Signed-off-by: Mahesh Kumar --- drivers/gpu/drm/i915/i915_drv.c | 33 +++-- drivers/gpu/drm/i915/i915_drv.h | 3 +++ drivers/gpu/drm/i915/intel_pm.c | 10 ++ 3 files changed, 44 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Reject compressed Y/Yf with interlaced modes

2018-08-28 Thread Mahesh Kumar
state->fb->modifier == I915_FORMAT_MOD_Yf_TILED || > + state->fb->modifier == I915_FORMAT_MOD_Y_TILED_CCS || > + state->fb->modifier == I915_FORMAT_MOD_Yf_TILED_CCS) { LGTM... Reviewed-by: Mahesh Kumar -Mahesh >

[Intel-gfx] [PATCH V3 1/5] drm/i915/bxt: Decode memory bandwidth and parameters

2018-08-24 Thread Mahesh Kumar
/dram_info Changes since V2: - Adhere to i915 coding style (Rodrigo) Signed-off-by: Mahesh Kumar --- drivers/gpu/drm/i915/i915_drv.c | 117 drivers/gpu/drm/i915/i915_drv.h | 11 drivers/gpu/drm/i915/i915_reg.h | 30 +++ 3 files changed, 158

[Intel-gfx] [PATCH V1 4/5] drm/i915/skl+: don't trust IPC value set by BIOS

2018-08-24 Thread Mahesh Kumar
If KMS decide to disable IPC make sure we override IPC configuration set by BIOS. Signed-off-by: Mahesh Kumar --- drivers/gpu/drm/i915/intel_pm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index

[Intel-gfx] [PATCH V2 5/5] drm/i915/kbl+: Enable IPC only for symmetric memory configurations

2018-08-24 Thread Mahesh Kumar
IPC may cause underflows if not used with dual channel symmetric memory configuration. Disable IPC for non symmetric configurations in affected platforms. Display WA #1141 Changes Since V1: - Re-arrange the code. - update wrapper to return if memory is symmetric (Rodrigo) Signed-off-by: Mahesh

[Intel-gfx] [PATCH V3 3/5] drm/i915: Implement 16GB dimm wa for latency level-0

2018-08-24 Thread Mahesh Kumar
Memory with 16GB dimms require an increase of 1us in level-0 latency. This patch implements the same. Bspec: 4381 changes since V1: - s/memdev_info/dram_info - make skl_is_16gb_dimm pure function Changes since V2: - make is_16gb_dimm more generic - rebase Signed-off-by: Mahesh Kumar

[Intel-gfx] [PATCH V3 2/5] drm/i915/skl+: Decode memory bandwidth and parameters

2018-08-24 Thread Mahesh Kumar
/memdev_info/dram_info - create a struct to hold channel info Changes Since V2: - rewrite code to adhere i915 coding style - not valid for GLK Signed-off-by: Mahesh Kumar --- drivers/gpu/drm/i915/i915_drv.c | 145 ++-- drivers/gpu/drm/i915/i915_drv.h | 8 +++ drivers

[Intel-gfx] [PATCH 0/5] Decode memdev info and bandwidth and implemnt latency WA

2018-08-24 Thread Mahesh Kumar
lets also make sure that we override IPC value set of BIOS incase we decide to disable IPC in KMS. Mahesh Kumar (5): drm/i915/bxt: Decode memory bandwidth and parameters drm/i915/skl+: Decode memory bandwidth and parameters drm/i915: Implement 16GB dimm wa for latency level-0 drm/i915/skl

[Intel-gfx] [PATCH V5 2/4] drm/crc: Cleanup crtc_crc_open function

2018-08-21 Thread Mahesh Kumar
. Changes since V1: - refactor code to use single spin lock Changes since V2: - rebase Changes since V3: - rebase on top of VKMS driver Signed-off-by: Mahesh Kumar Cc: dri-de...@lists.freedesktop.org Cc: Laurent Pinchart Cc: Haneen Mohammed Reviewed-by: Maarten Lankhorst (V2) Acked-by: Leo Li

[Intel-gfx] [PATCH V2 4/4] drm/crc: add pre_crc_read function

2018-08-21 Thread Mahesh Kumar
This patch implements a callback function which will be called before crc read. In this function driver can implement any preparation work required for successfully reading CRC data. Changes Since V1: - rebase Cc: dri-de...@lists.freedesktop.org Signed-off-by: Mahesh Kumar --- drivers/gpu/drm

[Intel-gfx] [PATCH V3 1/4] drm/vkms/crc: Implement verify_crc_source callback

2018-08-21 Thread Mahesh Kumar
This patch implements "verify_crc_source" callback function for Virtual KMS drm driver. Changes Since V1: - update values_cnt in verify_crc_source Changes Since V2: - don't return early from set_crc_source to keep behavior same (Haneen) Cc: Haneen Mohammed Signed-off-by: Mahesh

[Intel-gfx] [PATCH 0/4] Improve crc-core driver interface

2018-08-21 Thread Mahesh Kumar
leanup of crtc_crc_open function first allocate memory before enabling CRC generation - Don't block open() call instead wait in crc read call. Changes: - Rebase on top of VKMS driver - Include pre_crc_read patch Cc: dri-de...@lists.freedesktop.org Mahesh Kumar (4): drm/vkms/crc

[Intel-gfx] [PATCH V4 3/4] Revert "drm: crc: Wait for a frame before returning from open()"

2018-08-21 Thread Mahesh Kumar
This reverts commit e8fa5671183c80342d520ad81d14fa79a9d4a680. Don't wait for first CRC during crtc_crc_open. It avoids one frame wait during open. If application want to wait after read call, it can use poll/read blocking read() call. Suggested-by: Ville Syrjälä Signed-off-by: Mahesh Kuma

[Intel-gfx] [PATCH V3 1/3] drm/vkms/crc: Implement verify_crc_source callback

2018-08-20 Thread Mahesh Kumar
This patch implements "verify_crc_source" callback function for Virtual KMS drm driver. Changes Since V1: - update values_cnt in verify_crc_source Changes Since V2: - don't return early from set_crc_source to keep behavior same (Haneen) Cc: Haneen Mohammed Signed-off-b

[Intel-gfx] [PATCH V2 1/3] drm/vkms/crc: Implement verify_crc_source callback

2018-08-13 Thread Mahesh Kumar
This patch implements "verify_crc_source" callback function for Virtual KMS drm driver. Changes Since V1: - update values_cnt in verify_crc_source Cc: Haneen Mohammed Signed-off-by: Mahesh Kumar --- drivers/gpu/drm/vkms/vkms_crc.c | 38 ++ drive

[Intel-gfx] [PATCH v4 3/3] Revert "drm: crc: Wait for a frame before returning from open()"

2018-08-13 Thread Mahesh Kumar
This reverts commit e8fa5671183c80342d520ad81d14fa79a9d4a680. Don't wait for first CRC during crtc_crc_open. It avoids one frame wait during open. If application want to wait after read call, it can use poll/read blocking read() call. Suggested-by: Ville Syrjälä Signed-off-by: Mahesh Kuma

[Intel-gfx] [PATCH v1 1/3] drm/vkms/crc: Implement verify_crc_source callback

2018-08-13 Thread Mahesh Kumar
This patch implements "verify_crc_source" callback function for Virtual KMS drm driver. Cc: dri-de...@lists.freedesktop.org Cc: Haneen Mohammed Signed-off-by: Mahesh Kumar --- drivers/gpu/drm/vkms/vkms_crc.c | 36 drivers/gpu/drm/vkms/vkms_c

[Intel-gfx] [PATCH v5 2/3] drm/crc: Cleanup crtc_crc_open function

2018-08-13 Thread Mahesh Kumar
. Changes since V1: - refactor code to use single spin lock Changes since V2: - rebase Changes since V3: - rebase on top of VKMS driver Signed-off-by: Mahesh Kumar Cc: dri-de...@lists.freedesktop.org Cc: Laurent Pinchart Cc: Haneen Mohammed Reviewed-by: Maarten Lankhorst (V2) Acked-by: Leo Li

[Intel-gfx] [PATCH v5 0/3] Improve crc-core driver interface

2018-08-13 Thread Mahesh Kumar
ng-crc-pipe-X ig@kms_pipe_crc_basic@nonblocking-crc-pipe-X-frame-sequence In nonblocking crc tests we'll get lesser crc's due to skipping crc AMD/Rockchip/rcar code path is not validated and may need inputs Changes: - Rebase on top of VKMS driver Cc: dri-de...@lists.freedesktop.org Mahes

[Intel-gfx] [PATCH V6 10/10] drm/rcar-du/crc: Implement get_crc_sources callback

2018-08-08 Thread Mahesh Kumar
Laurent Pinchart Changes Since V3/4/5: (Laurent Pinchart review) - s/rcar_du_crtc_crc_sources_list_init/rcar_du_crtc_crc_init - s/rcar_du_crtc_crc_sources_list_uninit/rcar_du_crtc_crc_cleanup - other cleanup Signed-off-by: Mahesh Kumar Cc: dri-de...@lists.freedesktop.org Cc: Laurent Pinchart

[Intel-gfx] [PATCH v3 2/2] drm/i915/skl: distribute DDB based on panel resolution

2018-08-01 Thread Mahesh Kumar
errors (Chris) Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107113 Cc: raviraj.p.sita...@intel.com Cc: Chris Wilson Signed-off-by: Mahesh Kumar --- drivers/gpu/drm/i915/intel_pm.c | 55 ++--- 1 file changed, 40 insertions(+), 15 deletions(-) diff --git

[Intel-gfx] [PATCH v2 2/2] drm/i915/skl: distribute DDB based on panel resolution

2018-07-31 Thread Mahesh Kumar
: raviraj.p.sita...@intel.com Cc: Chris Wilson Signed-off-by: Mahesh Kumar --- drivers/gpu/drm/i915/intel_pm.c | 54 +++-- 1 file changed, 41 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index

[Intel-gfx] [PATCH v1 1/2] drm/i915: ddb_size is of u16 type

2018-07-31 Thread Mahesh Kumar
ddb_size is u16 so use same return type for intel_get_ddb_size wrapper. Signed-off-by: Mahesh Kumar --- drivers/gpu/drm/i915/intel_pm.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index

[Intel-gfx] [PATCH v2 0/2] distribute DDB based on panel resolution

2018-07-31 Thread Mahesh Kumar
This series make changes to distribute DDB based on resolution of panel instead of dividing equally among pipes. Mahesh Kumar (2): drm/i915: ddb_size is of u16 type drm/i915/skl: distribute DDB based on panel resolution drivers/gpu/drm/i915/intel_pm.c | 66

[Intel-gfx] [PATCH] drm/i915/skl: distribute DDB based on panel resolution

2018-07-30 Thread Mahesh Kumar
make changes to distribute ddb based on display width. So display with higher width will get bigger chunk of DDB. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107113 Cc: raviraj.p.sita...@intel.com Signed-off-by: Mahesh Kumar --- drivers/gpu/drm/i915/intel_pm.c | 55

[Intel-gfx] [PATCH 3/5] drm/i915: Implement 16GB dimm wa for latency level-0

2018-07-26 Thread Mahesh Kumar
Memory with 16GB dimms require an increase of 1us in level-0 latency. This patch implements the same. Bspec: 4381 changes since V1: - s/memdev_info/dram_info - make skl_is_16gb_dimm pure function Signed-off-by: Mahesh Kumar --- drivers/gpu/drm/i915/i915_drv.c | 40

[Intel-gfx] [PATCH 4/5] drm/i915/kbl+: Enable IPC only for symmetric memory configurations

2018-07-26 Thread Mahesh Kumar
IPC may cause underflows if not used with dual channel symmetric memory configuration. Disable IPC for non symmetric configurations in affected platforms. Display WA #1141 Signed-off-by: Mahesh Kumar --- drivers/gpu/drm/i915/i915_drv.c | 43 - drivers/gpu

[Intel-gfx] [PATCH 5/5] drm/i915/skl+: don't trust IPC value set by BIOS

2018-07-26 Thread Mahesh Kumar
If KMS decide to disable IPC make sure we override IPC configuration set by BIOS. Signed-off-by: Mahesh Kumar --- drivers/gpu/drm/i915/intel_pm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index

[Intel-gfx] [PATCH 1/5] drm/i915/bxt: Decode memory bandwidth and parameters

2018-07-26 Thread Mahesh Kumar
/dram_info Signed-off-by: Mahesh Kumar --- drivers/gpu/drm/i915/i915_drv.c | 116 drivers/gpu/drm/i915/i915_drv.h | 11 drivers/gpu/drm/i915/i915_reg.h | 30 +++ 3 files changed, 157 insertions(+) diff --git a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 0/5] Decode memdev info and bandwidth and implemnt latency WA

2018-07-26 Thread Mahesh Kumar
lets also make sure that we override IPC value set of BIOS incase we decide to disable IPC in KMS. Mahesh Kumar (5): drm/i915/bxt: Decode memory bandwidth and parameters drm/i915/skl+: Decode memory bandwidth and parameters drm/i915: Implement 16GB dimm wa for latency level-0 drm/i915/kbl

[Intel-gfx] [PATCH 2/5] drm/i915/skl+: Decode memory bandwidth and parameters

2018-07-26 Thread Mahesh Kumar
/memdev_info/dram_info - create a struct to hold channel info Signed-off-by: Mahesh Kumar --- drivers/gpu/drm/i915/i915_drv.c | 131 ++-- drivers/gpu/drm/i915/i915_drv.h | 7 +++ drivers/gpu/drm/i915/i915_reg.h | 21 +++ 3 files changed, 155 insertions(+), 4

[Intel-gfx] [PATCH v5 10/10] drm/rcar-du/crc: Implement get_crc_sources callback

2018-07-23 Thread Mahesh Kumar
Laurent Pinchart Signed-off-by: Mahesh Kumar Cc: dri-de...@lists.freedesktop.org Cc: Laurent Pinchart --- drivers/gpu/drm/rcar-du/rcar_du_crtc.c | 85 +- drivers/gpu/drm/rcar-du/rcar_du_crtc.h | 3 ++ 2 files changed, 87 insertions(+), 1 deletion(-) diff --git a

[Intel-gfx] [PATCH v5 05/10] drm/rcar-du/crc: Implement verify_crc_source callback

2018-07-23 Thread Mahesh Kumar
This patch implements "verify_crc_source" callback function for rcar drm driver. Changes Since V1: - avoid duplication of code Changes Since V2: - further optimize the code Changes Since V3: - Adopt to driver style - Address review comments from Laurent Pinchart Signed-off-by: Ma

[Intel-gfx] [PATCH 3/3] drm/i915: Implement 16GB dimm wa for latency level-0

2018-07-13 Thread Mahesh Kumar
Memory with 16GB dimms require an increase of 1us in level-0 latency. This patch implements the same. Bspec: 4381 Signed-off-by: Mahesh Kumar --- drivers/gpu/drm/i915/i915_drv.c | 35 +-- drivers/gpu/drm/i915/i915_drv.h | 2 ++ drivers/gpu/drm/i915/intel_pm.c

[Intel-gfx] [PATCH 2/3] drm/i915/skl+: Decode memory bandwidth and parameters

2018-07-13 Thread Mahesh Kumar
This patch adds support to decode system memory bandwidth and other parameters for skylake and Gen9+ platforms, which will be used for arbitrated display memory bandwidth calculation in GEN9 based platforms and WM latency level-0 Work-around calculation on GEN9+. Signed-off-by: Mahesh Kumar

[Intel-gfx] [PATCH 0/3] Decode memdev info and bandwidth and implemnt latency WA

2018-07-13 Thread Mahesh Kumar
This series adds support to calculate system memdev parameters and calculate total system memory bandwidth. This parameters and BW will be used to enable WM level-0 latency workaround and display memory bandwidth related WA for gen9. Mahesh Kumar (3): drm/i915/bxt: Decode memory bandwidth and

[Intel-gfx] [PATCH 1/3] drm/i915/bxt: Decode memory bandwidth and parameters

2018-07-13 Thread Mahesh Kumar
This patch adds support to decode system memory bandwidth and other parameters for broxton platform, which will be used for arbitrated display memory bandwidth calculation in GEN9 based platforms and WM latency level-0 Work-around calculation on GEN9+ platforms. Signed-off-by: Mahesh Kumar

[Intel-gfx] [PATCH v4 10/10] drm/rcar-du/crc: Implement get_crc_sources callback

2018-07-13 Thread Mahesh Kumar
This patch implements get_crc_sources callback, which returns list of all the crc sources supported by driver in current platform. Changes Since V1: - move sources list per-crtc - init sources-list only for gen3 Signed-off-by: Mahesh Kumar Cc: Laurent Pinchart --- drivers/gpu/drm/rcar-du

[Intel-gfx] [PATCH v4 08/10] drm/crc: Cleanup crtc_crc_open function

2018-07-13 Thread Mahesh Kumar
. Changes since V1: - refactor code to use single spin lock Changes since V2: - rebase Signed-off-by: Mahesh Kumar Cc: dri-de...@lists.freedesktop.org Cc: Laurent Pinchart Reviewed-by: Maarten Lankhorst Acked-by: Leo Li Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/amd/display/amdgpu_dm

[Intel-gfx] [PATCH v4 05/10] drm/rcar-du/crc: Implement verify_crc_source callback

2018-07-13 Thread Mahesh Kumar
This patch implements "verify_crc_source" callback function for rcar drm driver. Changes Since V1: - avoid duplication of code Changes Since V2: - further optimize the code Signed-off-by: Mahesh Kumar Cc: dri-de...@lists.freedesktop.org Cc: Laurent Pinchart Reviewed-by: Maarten

[Intel-gfx] [PATCH v4 04/10] drm/amdgpu_dm/crc: Implement verify_crc_source callback

2018-07-13 Thread Mahesh Kumar
This patch implements "verify_crc_source" callback function for AMD drm driver. Signed-off-by: Mahesh Kumar Cc: dri-de...@lists.freedesktop.org Reviewed-by: Maarten Lankhorst Acked-by: Leo Li --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 1 + drivers/gpu/drm/a

[Intel-gfx] [PATCH v4 06/10] drm/i915/crc: implement verify_crc_source callback

2018-07-13 Thread Mahesh Kumar
This patch implements verify_crc_source callback function introduced earlier in this series. Signed-off-by: Mahesh Kumar Cc: dri-de...@lists.freedesktop.org Reviewed-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_display.c | 1 + drivers/gpu/drm/i915/intel_drv.h | 3 + drivers

[Intel-gfx] [PATCH v4 01/10] drm: crc: Introduce verify_crc_source callback

2018-07-13 Thread Mahesh Kumar
e callback description Signed-off-by: Mahesh Kumar Cc: dri-de...@lists.freedesktop.org Cc: Laurent Pinchart Reviewed-by: Maarten Lankhorst Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/drm_debugfs_crc.c | 8 include/drm/drm_crtc.h| 16 2 files changed, 24

[Intel-gfx] [PATCH v4 07/10] drm/i915/crc: implement get_crc_sources callback

2018-07-13 Thread Mahesh Kumar
This patch implements get_crc_sources callback, which returns list of all the valid crc sources supported by driver in current platform. Changes since V1: - Return array of crc sources Signed-off-by: Mahesh Kumar Cc: dri-de...@lists.freedesktop.org Reviewed-by: Maarten Lankhorst --- drivers

[Intel-gfx] [PATCH v4 03/10] drm/rockchip/crc: Implement verify_crc_source callback

2018-07-13 Thread Mahesh Kumar
This patch implements "verify_crc_source" callback function for rockchip drm driver. Changes since V1: - simplify the verification (Jani N) Signed-off-by: Mahesh Kumar Cc: dri-de...@lists.freedesktop.org Reviewed-by: Maarten Lankhorst Acked-by: Heiko Stuebner --- drivers/gpu/dr

[Intel-gfx] [PATCH v4 09/10] Revert "drm: crc: Wait for a frame before returning from open()"

2018-07-13 Thread Mahesh Kumar
This reverts commit e8fa5671183c80342d520ad81d14fa79a9d4a680. Don't wait for first CRC during crtc_crc_open. It avoids one frame wait during open. If application want to wait after read call, it can use poll/read blocking read() call. Suggested-by: Ville Syrjälä Signed-off-by: Mahesh Kuma

[Intel-gfx] [PATCH 00/10] Improve crc-core driver interface

2018-07-13 Thread Mahesh Kumar
ng-crc-pipe-X ig@kms_pipe_crc_basic@nonblocking-crc-pipe-X-frame-sequence In nonblocking crc tests we'll get lesser crc's due to skipping crc AMD/Rockchip/rcar code path is not validated and may need inputs Cc: dri-de...@lists.freedesktop.org Mahesh Kumar (10): drm: crc: Introduce verify_crc

[Intel-gfx] [PATCH v4 02/10] drm: crc: Introduce get_crc_sources callback

2018-07-13 Thread Mahesh Kumar
the number of source in the list. Changes Since V1: (Daniel) - return const pointer to an array of crc sources list - do validation of sources in CRC-core Changes Since V2: - update commit message - update callback documentation - print one source name per line Signed-off-by: Mahesh Kumar

[Intel-gfx] [PATCH 06/10] drm/i915/crc: implement verify_crc_source callback

2018-07-12 Thread Mahesh Kumar
This patch implements verify_crc_source callback function introduced earlier in this series. Signed-off-by: Mahesh Kumar Cc: dri-de...@lists.freedesktop.org Reviewed-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_display.c | 1 + drivers/gpu/drm/i915/intel_drv.h | 3 + drivers

[Intel-gfx] [PATCH 10/10] drm/rcar-du/crc: Implement get_crc_sources callback

2018-07-12 Thread Mahesh Kumar
This patch implements get_crc_sources callback, which returns list of all the crc sources supported by driver in current platform. Signed-off-by: Mahesh Kumar Cc: Laurent Pinchart --- drivers/gpu/drm/rcar-du/rcar_du_crtc.c | 11 ++ drivers/gpu/drm/rcar-du/rcar_du_drv.c | 2 + drivers/gpu

[Intel-gfx] [PATCH 09/10] Revert "drm: crc: Wait for a frame before returning from open()"

2018-07-12 Thread Mahesh Kumar
This reverts commit e8fa5671183c80342d520ad81d14fa79a9d4a680. Don't wait for first CRC during crtc_crc_open. It avoids one frame wait during open. If application want to wait after read call, it can use poll/read blocking read() call. Suggested-by: Ville Syrjälä Signed-off-by: Mahesh Kuma

[Intel-gfx] [PATCH 08/10] drm/crc: Cleanup crtc_crc_open function

2018-07-12 Thread Mahesh Kumar
. Changes since V1: - refactor code to use single spin lock Signed-off-by: Mahesh Kumar Cc: dri-de...@lists.freedesktop.org Cc: Laurent Pinchart Reviewed-by: Maarten Lankhorst Acked-by: Leo Li --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 3 +- .../gpu/drm/amd/display/amdgpu_dm

[Intel-gfx] [PATCH 07/10] drm/i915/crc: implement get_crc_sources callback

2018-07-12 Thread Mahesh Kumar
This patch implements get_crc_sources callback, which returns list of all the valid crc sources supported by driver in current platform. Changes since V1: - Return array of crc sources Signed-off-by: Mahesh Kumar Cc: dri-de...@lists.freedesktop.org Reviewed-by: Maarten Lankhorst --- drivers

[Intel-gfx] [PATCH 05/10] drm/rcar-du/crc: Implement verify_crc_source callback

2018-07-12 Thread Mahesh Kumar
This patch implements "verify_crc_source" callback function for rcar drm driver. Changes Since V1: - avoid duplication of code Signed-off-by: Mahesh Kumar Cc: dri-de...@lists.freedesktop.org Cc: Laurent Pinchart Reviewed-by: Maarten Lankhorst --- drivers/gpu/drm/rcar-du/rcar_du_c

[Intel-gfx] [PATCH 04/10] drm/amdgpu_dm/crc: Implement verify_crc_source callback

2018-07-12 Thread Mahesh Kumar
This patch implements "verify_crc_source" callback function for AMD drm driver. Signed-off-by: Mahesh Kumar Cc: dri-de...@lists.freedesktop.org Reviewed-by: Maarten Lankhorst Acked-by: Leo Li --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 1 + drivers/gpu/drm/a

[Intel-gfx] [PATCH 02/10] drm: crc: Introduce get_crc_sources callback

2018-07-12 Thread Mahesh Kumar
the number of source in the list. Changes Since V1: (Daniel) - return const pointer to an array of crc sources list - do validation of sources in CRC-core Changes Since V2: - update commit message - update callback documentation - print one source name per line Signed-off-by: Mahesh Kumar

[Intel-gfx] [PATCH 03/10] drm/rockchip/crc: Implement verify_crc_source callback

2018-07-12 Thread Mahesh Kumar
This patch implements "verify_crc_source" callback function for rockchip drm driver. Changes since V1: - simplify the verification (Jani N) Signed-off-by: Mahesh Kumar Cc: dri-de...@lists.freedesktop.org Reviewed-by: Maarten Lankhorst Acked-by: Heiko Stuebner --- drivers/gpu/dr

[Intel-gfx] [PATCH 00/10] Improve crc-core driver interface

2018-07-12 Thread Mahesh Kumar
ng-crc-pipe-X ig@kms_pipe_crc_basic@nonblocking-crc-pipe-X-frame-sequence In nonblocking crc tests we'll get lesser crc's due to skipping crc AMD/Rockchip/rcar code path is not validated and need inputs Cc: dri-de...@lists.freedesktop.org Mahesh Kumar (10): drm: crc: Introduce verify_crc

[Intel-gfx] [PATCH 01/10] drm: crc: Introduce verify_crc_source callback

2018-07-12 Thread Mahesh Kumar
This patch adds a new callback function "verify_crc_source" which will be used during setting the crc source in control node. This will help in avoiding setting of wrong string for source. Changes since V1: - do not yet verify_crc_source during open. Signed-off-by: Mahesh Kumar

[Intel-gfx] [PATCH 10/10] drm/rcar-du/crc: Implement get_crc_sources callback

2018-07-11 Thread Mahesh Kumar
This patch implements get_crc_sources callback, which returns list of all the crc sources supported by driver in current platform. Signed-off-by: Mahesh Kumar Cc: Laurent Pinchart --- drivers/gpu/drm/rcar-du/rcar_du_crtc.c | 11 ++ drivers/gpu/drm/rcar-du/rcar_du_drv.c | 2 + drivers/gpu

[Intel-gfx] [PATCH 08/10] drm/crc: Cleanup crtc_crc_open function

2018-07-11 Thread Mahesh Kumar
. Changes since V1: - refactor code to use single spin lock Signed-off-by: Mahesh Kumar Cc: dri-de...@lists.freedesktop.org Cc: Laurent Pinchart Reviewed-by: Maarten Lankhorst Acked-by: Leo Li --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 3 +- .../gpu/drm/amd/display/amdgpu_dm

[Intel-gfx] [PATCH 06/10] drm/i915/crc: implement verify_crc_source callback

2018-07-11 Thread Mahesh Kumar
This patch implements verify_crc_source callback function introduced earlier in this series. Signed-off-by: Mahesh Kumar Cc: dri-de...@lists.freedesktop.org Reviewed-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_display.c | 1 + drivers/gpu/drm/i915/intel_drv.h | 3 + drivers

[Intel-gfx] [PATCH 09/10] Revert "drm: crc: Wait for a frame before returning from open()"

2018-07-11 Thread Mahesh Kumar
This reverts commit e8fa5671183c80342d520ad81d14fa79a9d4a680. Don't wait for first CRC during crtc_crc_open. It avoids one frame wait during open. If application want to wait after read call, it can use poll/read blocking read() call. Suggested-by: Ville Syrjälä Signed-off-by: Mahesh Kuma

[Intel-gfx] [PATCH 07/10] drm/i915/crc: implement get_crc_sources callback

2018-07-11 Thread Mahesh Kumar
This patch implements get_crc_sources callback, which returns list of all the valid crc sources supported by driver in current platform. Changes since V1: - Return array of crc sources Signed-off-by: Mahesh Kumar Cc: dri-de...@lists.freedesktop.org Reviewed-by: Maarten Lankhorst --- drivers

[Intel-gfx] [PATCH 02/10] drm: crc: Introduce get_crc_sources callback

2018-07-11 Thread Mahesh Kumar
the number of source in the list. Changes Since V1: (Daniel) - return const pointer to an array of crc sources list - do validation of sources in CRC-core Changes Since V2: - update commit message - update callback documentation - print one source name per line Signed-off-by: Mahesh Kumar

[Intel-gfx] [PATCH 05/10] drm/rcar-du/crc: Implement verify_crc_source callback

2018-07-11 Thread Mahesh Kumar
This patch implements "verify_crc_source" callback function for rcar drm driver. Changes Since V1: - avoid duplication of code Signed-off-by: Mahesh Kumar Cc: dri-de...@lists.freedesktop.org Cc: Laurent Pinchart Reviewed-by: Maarten Lankhorst --- drivers/gpu/drm/rcar-du/rcar_du_c

[Intel-gfx] [PATCH 04/10] drm/amdgpu_dm/crc: Implement verify_crc_source callback

2018-07-11 Thread Mahesh Kumar
This patch implements "verify_crc_source" callback function for AMD drm driver. Signed-off-by: Mahesh Kumar Cc: dri-de...@lists.freedesktop.org Reviewed-by: Maarten Lankhorst Acked-by: Leo Li --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 1 + drivers/gpu/drm/a

[Intel-gfx] [PATCH 01/10] drm: crc: Introduce verify_crc_source callback

2018-07-11 Thread Mahesh Kumar
This patch adds a new callback function "verify_crc_source" which will be used during setting the crc source in control node. This will help in avoiding setting of wrong string for source. Changes since V1: - do not yet verify_crc_source during open. Signed-off-by: Mahesh Kumar

[Intel-gfx] [PATCH 03/10] drm/rockchip/crc: Implement verify_crc_source callback

2018-07-11 Thread Mahesh Kumar
This patch implements "verify_crc_source" callback function for rockchip drm driver. Changes since V1: - simplify the verification (Jani N) Signed-off-by: Mahesh Kumar Cc: dri-de...@lists.freedesktop.org Reviewed-by: Maarten Lankhorst Acked-by: Heiko Stuebner --- drivers/gpu/dr

[Intel-gfx] [PATCH 00/10] Improve crc-core driver interface

2018-07-11 Thread Mahesh Kumar
ng-crc-pipe-X ig@kms_pipe_crc_basic@nonblocking-crc-pipe-X-frame-sequence In nonblocking crc tests we'll get lesser crc's due to skipping crc AMD/Rockchip/rcar code path is not validated and need inputs Mahesh Kumar (10): drm: crc: Introduce verify_crc_source callback drm: crc: Introdu

[Intel-gfx] [PATCH i-g-t] tests/kms_pipe_crc_basic: expect setting bad source to fail

2018-07-02 Thread Mahesh Kumar
Now crc-core framework verifies the source string passed by the user. So setting bad-source will fail. Expect file write to fail in bad-source subtest of kms_pipe_crc_basic. Signed-off-by: Mahesh Kumar --- tests/kms_pipe_crc_basic.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

[Intel-gfx] [PATCH 04/10] drm/amdgpu_dm/crc: Implement verify_crc_source callback

2018-07-02 Thread Mahesh Kumar
This patch implements "verify_crc_source" callback function for AMD drm driver. Signed-off-by: Mahesh Kumar Cc: dri-de...@lists.freedesktop.org Reviewed-by: Maarten Lankhorst --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 1 + drivers/gpu/drm/amd/display/amdgpu_dm/a

[Intel-gfx] [PATCH 07/10] drm/i915/crc: implement get_crc_sources callback

2018-07-02 Thread Mahesh Kumar
This patch implements get_crc_sources callback, which returns list of all the valid crc sources supported by driver in current platform. Changes since V1: - Return array of crc sources Signed-off-by: Mahesh Kumar Cc: dri-de...@lists.freedesktop.org Reviewed-by: Maarten Lankhorst --- drivers

[Intel-gfx] [PATCH 00/10] Improve crc-core driver interface

2018-07-02 Thread Mahesh Kumar
tant pointer to an array of source list and crc-core does the verification Changes rev3: - reorg patches to push non r-b patches to the last - add r-b tag Cc: dri-de...@lists.freedesktop.org Mahesh Kumar (10): drm: crc: Introduce verify_crc_source callback drm: crc: Introduce get_crc_sources

[Intel-gfx] [PATCH 03/10] drm/rockchip/crc: Implement verify_crc_source callback

2018-07-02 Thread Mahesh Kumar
This patch implements "verify_crc_source" callback function for rockchip drm driver. Changes since V1: - simplify the verification (Jani N) Signed-off-by: Mahesh Kumar Cc: dri-de...@lists.freedesktop.org Reviewed-by: Maarten Lankhorst --- drivers/gpu/drm/rockchip/rockchip_drm_

[Intel-gfx] [PATCH 10/10] drm: crc: Introduce pre_crc_read function

2018-07-02 Thread Mahesh Kumar
This patch implements a callback function "pre_crc_read" which will be called before crc read. In this function driver can implement and preparation work required for successfully reading CRC data. Signed-off-by: Mahesh Kumar Cc: dri-de...@lists.freedesktop.org --- drive

[Intel-gfx] [PATCH 08/10] drm/crc: Cleanup crtc_crc_open function

2018-07-02 Thread Mahesh Kumar
. Signed-off-by: Mahesh Kumar Cc: dri-de...@lists.freedesktop.org Reviewed-by: Maarten Lankhorst --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 3 +- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c | 4 +- drivers/gpu/drm/drm_debugfs_crc.c | 52

  1   2   3   4   5   >