[PATCH] drm/amd/display: enable/disable PSR feature at run time

2023-07-11 Thread Shirish S
ing the same. Signed-off-by: Shirish S --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 23 ++- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 073bf00c6

[PATCH] amd/display/debugfs: add sysfs entry to read PSR residency from firmware

2023-03-09 Thread Shirish S
[Why] Currently there aren't any methods to determine PSR state residency. [How] create a sysfs entry for reading residency and internally hook it up to existing functionality of reading PSR residency from firmware. Signed-off-by: Shirish S --- .../amd/display/amdgpu_dm/amdgpu_dm_debugfs.c

[PATCH] amd/display/debugfs: add sysfs entry to read PSR residency from firmware

2023-03-09 Thread Shirish S
[Why] Currently there aren't any methods to determine PSR state residency. [How] create a sysfs entry for reading residency and internally hook it up to existing functionality of reading PSR residency from firmware. Signed-off-by: Shirish S --- .../amd/display/amdgpu_dm/amdgpu_dm_debugfs.c

[PATCH] amd/display/debugfs: add sysfs entry to read PSR residency from firmware

2023-03-07 Thread Shirish S
[Why] Currently there aren't any methods to determine PSR state residency. [How] create a sysfs entry for reading residency and internally hook it up to existing functionality of reading PSR residency from firmware. Signed-off-by: Shirish S --- .../amd/display/amdgpu_dm/amdgpu_dm_debugfs.c

[PATCH] drm/amd/display: explicitly disable psr_feature_enable appropriately

2022-10-06 Thread Shirish S
[Why] If psr_feature_enable is set to true by default, it continues to be enabled for non capable links. [How] explicitly disable the feature on links that are not capable of the same. Signed-off-by: Shirish S --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c | 8 ++-- 1 file

[PATCH] drm/amd/display: disable psr whenever applicable

2022-09-30 Thread Shirish S
[Why] psr feature continues to be enabled for non capable links. [How] disable the feature on links that are not capable of the same. Signed-off-by: Shirish S --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git

[PATCH] amd/display: set backlight only if required

2022-03-11 Thread Shirish S
: "[drm:dc_dmub_srv_wait_idle] *ERROR* Error waiting for DMUB idle: status=3" [How] Store last successfully set backlight value and compare with it instead of pwm reads which is not what we should compare with. Signed-off-by: Shirish S --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 7 --- drive

[PATCH] amd/display: set backlight only if required

2022-03-11 Thread Shirish S
: "[drm:dc_dmub_srv_wait_idle] *ERROR* Error waiting for DMUB idle: status=3" Here status 3 => DMUB_STATUS_QUEUE_FULL [How] Store last successfully set backlight value and compare with it instead of pwm reads which is not what we should compare with. Signed-off-by: Shirish S --- drivers/gpu/drm/amd/disp

[PATCH] drm/amd/display: log amdgpu_dm_atomic_check() failure cause

2021-11-08 Thread Shirish S
update developers with next level of info about unsupported display configuration query that led to atomic check failure. Signed-off-by: Shirish S --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 69 ++- 1 file changed, 51 insertions(+), 18 deletions(-) diff --git a/drivers

[PATCH] drm/amd/display: reject both non-zero src_x and src_y only for DCN1x

2021-11-08 Thread Shirish S
t;) Signed-off-by: Shirish S Reviewed-by: Harry Wentland --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 20 ++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_

[PATCH] drm/amd/display: fix exit from amdgpu_dm_atomic_check() abruptly

2021-11-08 Thread Shirish S
make action upon failure in "drm_atomic_add_affected_connectors()" consistent with the rest of failures in amdgpu_dm_atomic_check(). Signed-off-by: Shirish S --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drive

[PATCH] drm/amd/display: log amdgpu_dm_atomic_check() failure cause

2021-11-08 Thread Shirish S
update user with next level of info about which condition led to atomic check failure. Signed-off-by: Shirish S --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 70 ++- 1 file changed, 52 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm

[PATCH] drm/amd/display: reject both non-zero src_x and src_y only for DCN1x

2021-11-08 Thread Shirish S
limit the MPO rejection only for DCN1x as its not required on later versions. Fixes: d89f6048bdcb ("drm/amd/display: Reject non-zero src_y and src_x for video planes") Signed-off-by: Shirish S --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 20 ++- 1 file c

[PATCH] drm/amdgpu/display: fix DMUB firmware version info

2021-08-03 Thread Shirish S
DMUB firmware info is printed before it gets initialized. Correct this order to ensure true value is conveyed. Signed-off-by: Shirish S --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm

[PATCH] drm/amdgpu/powerplay/smu10: refactor AMDGPU_PP_SENSOR_GPU_LOAD

2021-03-19 Thread Shirish S
refactor AMDGPU_PP_SENSOR_GPU_LOAD to ensure code consistency with other commands Signed-off-by: Shirish S --- .../gpu/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c| 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr

[PATCH] amdgpu/pm: read_sensor() report failure apporpriately

2021-02-25 Thread Shirish S
report -ENOTSUPP instead of -EINVAL, so that if userspace fails to read sensor data can figure it out the failure correctly. Signed-off-by: Shirish S --- drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c | 2 +- drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c | 2 +- drivers/gpu/drm

[PATCH] drm/amd/display: fix crash/reboot while accessing sysfs files

2020-09-17 Thread Shirish S
read/writes to aux_dpcd_* sysfs entries leads to system reboot or hang. Hence fix the handling of input data and reporting of errors appropriately to the user space. Signed-off-by: Shirish S --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c | 10 +- 1 file changed, 5 insertions

[PATCH] amdgpu/gmc_v9: Warn if SDPIF_MMIO_CNTRL_0 is not set

2020-09-13 Thread Shirish S
-by: Shirish S --- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c index d0645ad3446e..fc2d88dbe828 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +++ b

[PATCH] drm/amd/display: re-order asic declarations

2020-04-02 Thread Shirish S
"1382d6409891 drm/amd/display: Fix RV2 Variant Detection" introduces build error of: "use of undeclared identifier 'RENOIR_A0'" To fix the same, this patch re-orders the ASIC declarations accordingly. Signed-off-by: Shirish S --- drivers/gpu/drm/amd/display/include/dal_asi

[PATCH] amdgpu/gmc_v9: save/restore sdpif regs during S3

2020-02-20 Thread Shirish S
fixes S3 issue with IOMMU + S/G enabled @ 64M VRAM. Suggested-by: Alex Deucher Signed-off-by: Shirish S Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h | 1 + drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 37 ++- .../include/asic_reg/dce

[PATCH] drm/amdgpu: remove the intterupt handling for the KIQ events

2018-10-04 Thread Shirish S
[Why] 1. we never submit IBs to the KIQ 2. there seems to be ~500ms delay during amdgpu resume spent in KIQ, hence, KIQ interrupts are not working correctly. [How] remove interrupt handling for KIQ. Signed-off-by: Shirish S --- drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 59

[PATCH] drm/amdgpu: skip IB tests for KIQ in general

2018-10-03 Thread Shirish S
From: Pratik Vishwakarma [Why] 1. We never submit IBs to KIQ. 2. Ring test pass without KIQ's ring also. 3. By skipping we see an improvement of around 500ms in the amdgpu's resume time. [How] skip IB tests for KIQ ring type. Signed-off-by: Shirish S Signed-off-by: Pratik Vishwakarma

[PATCH] drm/amd/display: move the nonblocking commit helpers appropriately

2018-09-24 Thread Shirish S
. Signed-off-by: Shirish S --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 0f10d92..41a1958 100644

[PATCH] drm/amdgpu: add ip_block_mask user option for static builds

2018-08-21 Thread Shirish S
is not productised/tested extensively with any of its blokcs disabled. The default value of this option enables all IP's. Signed-off-by: Shirish S --- drivers/gpu/drm/amd/amdgpu/Kconfig | 7 +++ drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion

[PATCH] drm/amdpu/vce_v3: skip suspend and resume if powergated

2018-08-10 Thread Shirish S
then there is no need to resume it. By this we not only make the suspend and resume sequence more efficient, but also optimize the overall amdgpu suspend and resume time by reducing the ring intialize and tests for unused IP blocks. Signed-off-by: Shirish S --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2

[PATCH] drm/amdgpu: move the amdgpu_fbdev_set_suspend() further up

2018-07-23 Thread Shirish S
This patch moves amdgpu_fbdev_set_suspend() to the beginning of suspend sequence. This is to ensure fbcon does not to write to the VRAM after GPU is powerd down. Signed-off-by: Shirish S Reviewed-by: Michel Dänzer --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 +++--- 1 file changed, 3

[PATCH] drm/amdgpu: move the amdgpu_fbdev_set_suspend() further up

2018-07-23 Thread Shirish S
This patch moves amdgpu_fbdev_set_suspend() to the beginning of suspend sequence. Signed-off-by: Shirish S --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd

[PATCH] drm/amdgpu: use drm_fb helper for console_(un)lock

2018-07-20 Thread Shirish S
This patch removes the usage of console_(un)lock by replacing drm_fb_helper_set_suspend() to drm_fb_helper_set_suspend_unlocked() which locks and unlocks the console instead of locking ourselves. Signed-off-by: Shirish S --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 8 ++-- drivers/gpu

[PATCH] drm/amdgpu: lock and unlock console only for amdgpu_fbdev_set_suspend [V5]

2018-07-19 Thread Shirish S
that this patch addresses. V4: code clean-up. V5: fixed return value Signed-off-by: Shirish S Reviewed-by: Michel Dänzer --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 22 +++--- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH] drm/amdgpu: lock and unlock console only for amdgpu_fbdev_set_suspend [V4]

2018-07-19 Thread Shirish S
that this patch addresses. V4: code clean-up. Signed-off-by: Shirish S Reviewed-by: Michel Dänzer --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 21 ++--- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm

[PATCH] drm/amdgpu: lock and unlock console only for amdgpu_fbdev_set_suspend [V3]

2018-07-19 Thread Shirish S
that this patch addresses. Signed-off-by: Shirish S Reviewed-by: Michel Dänzer --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

[PATCH] drm/amdgpu: lock and unlock console only for amdgpu_fbdev_set_suspend [V2]

2018-07-18 Thread Shirish S
, console_unlock around amdgpu_fbdev_set_suspend() and moves this new block appropriately. V2: Kept amdgpu_fbdev_set_suspend after pci_set_power_state Signed-off-by: Shirish S --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git

[PATCH] drm/amdgpu: reciprocate amdgpu.._resume sequence to match amdgpu.._suspend

2018-07-18 Thread Shirish S
sequence of events in resume path. [How] This patch restructures the console_lock, console_unlock around amdgpu_fbdev_set_suspend() and moves this new block to the very beginning of the resume sequence. Signed-off-by: Shirish S --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 12 1 file

[PATCH] drm/amdgpu: execute amdgpu_ring_patch_cond_exec() only for valid job

2018-07-09 Thread Shirish S
5aa55aa is not written to ring, as a result in patch_cond_exec callback, BUG_ON is hit where it checks for the same 0x55aa55aa value in register. Signed-off-by: Shirish S --- drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/

[PATCH] drm/amd/display: release spinlock before committing updates to stream

2018-06-26 Thread Shirish S
_only_ 2. dc_commit_updates_for_stream() has potential sleep's and also its not appropriate to be in an atomic state for such long sequences of code. Signed-off-by: Shirish S Suggested-by: Andrey Grodzovsky Reviewed-by: Michel Dänzer Reviewed-by: Harry Wentland --- drivers/gpu/drm/amd/display/

[PATCH] drm/amdgpu: change gfx8 ib test to use WB

2018-06-08 Thread Shirish S
rent Guest VF Signed-off-by: Shirish S Reviewed-by: Chunming Zhou Reviewed-by: Christian König --- drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 35 +-- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/g

[PATCH] drm/amdgpu: change gfx8 ib test to use WB

2018-06-07 Thread Shirish S
This patch is extends the usage of WB in gfx8's ib test which was originally implemented in the below upstream patch: "ed9324a drm/amdgpu: change gfx9 ib test to use WB" Signed-off-by: Shirish S --- drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 35 +-- 1 fi

[PATCH] drm/amdgpu/pp: replace mutex with spin_lock (V3)

2018-06-05 Thread Shirish S
+0x1b0/0x314 worker_thread+0x1cb/0x2c1 ? create_worker+0x1da/0x1da kthread+0x156/0x15e ? kthread_flush_work+0xea/0xea ret_from_fork+0x22/0x40 V2: Added stack trace in the commit message. V3: Fixed compile time error related to mutex_init() Signed-off-by: Shirish S Reviewed-by: Alex Deucher

[PATCH] drm/amdgpu: avoid sleep while executing atombios table (V2)

2018-05-31 Thread Shirish S
+0x4c4/0x4e7 ? security_file_ioctl+0x3b/0x4f SyS_ioctl+0x57/0x79 do_syscall_64+0x64/0x72 entry_SYSCALL_64_after_hwframe+0x3d/0xa2 V2: Added stack trace in commit message. Signed-off-by: Shirish S --- drivers/gpu/drm/amd/amdgpu/atom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH] drm/amdgpu: replace mutex with spin_lock (V2)

2018-05-31 Thread Shirish S
/0x64 process_one_work+0x1b0/0x314 worker_thread+0x1cb/0x2c1 ? create_worker+0x1da/0x1da kthread+0x156/0x15e ? kthread_flush_work+0xea/0xea ret_from_fork+0x22/0x40 V2: Added stack trace in commit message. Signed-off-by: Shirish S --- drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c | 2 +- drivers

[PATCH] drm/amdgpu/pp: replace mutex with spin_lock (V2)

2018-05-31 Thread Shirish S
+0x1b0/0x314 worker_thread+0x1cb/0x2c1 ? create_worker+0x1da/0x1da kthread+0x156/0x15e ? kthread_flush_work+0xea/0xea ret_from_fork+0x22/0x40 V2: Added stack trace in the commit message. Signed-off-by: Shirish S --- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 152

[PATCH] drm/amdgpu: avoid sleep while executing atombios table (V2)

2018-05-31 Thread Shirish S
+0x4c4/0x4e7 ? security_file_ioctl+0x3b/0x4f SyS_ioctl+0x57/0x79 do_syscall_64+0x64/0x72 entry_SYSCALL_64_after_hwframe+0x3d/0xa2 V2: Added stack trace in commit message. Signed-off-by: Shirish S --- drivers/gpu/drm/amd/amdgpu/atom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH] drm/amd/display: avoid sleeping in atomic context while creating new state (V2)

2018-05-31 Thread Shirish S
ret_from_fork+0x22/0x40 V2: fix applicable only to dc_create_state() and not dc_create(). Signed-off-by: Shirish S --- drivers/gpu/drm/amd/display/dc/core/dc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc

[PATCH] drm/amdgpu/pp: replace mutex with spin_lock

2018-05-30 Thread Shirish S
This patch replaces usage of mutex with spin_lock to avoid sleep in atomic context. Signed-off-by: Shirish S --- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 152 +- drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 2 +- 2 files changed, 77 insertions(+), 77

[PATCH] drm/amdgpu: replace mutex with spin_lock

2018-05-30 Thread Shirish S
mutex's lead to sleeps which should be avoided in atomic context. Hence this patch replaces it with the spin_locks. Signed-off-by: Shirish S --- drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c | 2 +- drivers/gpu/drm/amd/amdgpu/atom.c| 4 ++-- drivers/gpu/drm/amd/amdgpu/atom.h

[PATCH] drm/amdgpu: avoid sleep while executing atombios table

2018-05-30 Thread Shirish S
This patch replaces kzalloc's flag from GFP_KERNEL to GFP_ATOMIC to avoid sleeping in atomic context. Signed-off-by: Shirish S --- drivers/gpu/drm/amd/amdgpu/atom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/atom.c b/drivers/gpu/drm/amd

[PATCH] drm/amd/display: avoid sleeping in atomic context while creating new context or state

2018-05-30 Thread Shirish S
ret_from_fork+0x22/0x40 Signed-off-by: Shirish S --- drivers/gpu/drm/amd/display/dc/core/dc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index 33149ed..d62206f 100644 --- a/drivers/gpu/drm

[PATCH] drm/amd/display: remove need of modeset flag for overlay planes (V2)

2018-05-01 Thread Shirish S
eliminates the dependency on the flag for overlay planes. This has to be done in stages as its a pretty complex and requires thorough testing before we free primary planes as well from dependency on modeset flag. V2: Simplified the plane type check. Signed-off-by: Shirish S <shiris...@amd.com> ---

[PATCH] drm/amd/display: disable FBC on underlay pipe

2018-04-27 Thread Shirish S
FBC is not applicable for the underlay pipe, hence disallow enabling and disabling of the same. This also fixes the BUG hit of calling sleep in atomic context. Signed-off-by: Shirish S <shiris...@amd.com> Reviewed-by: Roman Li <roman...@amd.com> --- drivers/gpu/drm/amd/displ

[PATCH] drm/amd/display: disable FBC on underlay pipe

2018-04-27 Thread Shirish S
FBC is not applicable for the underlay pipe, hence disallow enabling and disabling of the same. This also fixes the BUG hit of calling sleep in atomic context. Signed-off-by: Shirish S <shiris...@amd.com> --- drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 7 ++-

[PATCH] drm/amd/display: remove need of modeset flag for overlay planes

2018-04-27 Thread Shirish S
eliminates the dependency on the flag for overlay planes. This has to be done in stages as its a pretty complex and requires thorough testing before we free primary planes as well from dependency on modeset flag. Signed-off-by: Shirish S <shiris...@amd.com> --- drivers/gpu/drm/amd/display/amdgpu_dm

[PATCH] drm/amd/display: fix return value of dm_dp_aux_transfer() (V2)

2018-04-17 Thread Shirish S
Currently the dm_dp_aux_transfer() does not parse the return value of dal_ddc_service_read_dpcd_data(), which also has a failure case. This patch captures the same and ensures the i2c operation status is sent appropriately to the drm framework. V2: Updated commit message. Signed-off-by: Shirish

[PATCH] drm/amd/display: introduce quirks for i2c adaptor

2018-04-17 Thread Shirish S
The dp aux channel cannot read messages of size greater than 16 bytes, this patch adds quirks feild accordingly at the initialization of the adaptor. Signed-off-by: Shirish S <shiris...@amd.com> --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c | 5 + 1 file chan

[PATCH] drm/amd/display: fix return value of dm_dp_aux_transfer()

2018-04-17 Thread Shirish S
Currently the dm_dp_aux_transfer() does not parse the return value of dal_ddc_service_read_dpcd_data(), which also has a failure case. This patch captures the same and ensures the i2c operation status is sent provided appropriately to the callers to it. Signed-off-by: Shirish S <shiris...@amd.

[PATCH] drm/amdgpu: defer test IBs on the rings at boot (V3)

2018-04-16 Thread Shirish S
e wq, ensure ib tests is run before enabling clockgating. Signed-off-by: Shirish S <shiris...@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 17 ++--- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c| 3 +++ 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/d

[PATCH] drm/amdgpu: defer test IBs on the rings at boot (V2)

2018-04-13 Thread Shirish S
amdgpu_ib_ring_tests() runs test IB's on rings at boot contributes to ~500 ms of amdgpu driver's boot time. This patch defers it and ensures that its executed in amdgpu_info_ioctl() if it wasn't scheduled. V2: Use queue_delayed_work() & flush_delayed_work(). Signed-off-by: Shirish S <

[PATCH] drm/amdgpu: defer test IBs on the rings at boot

2018-04-12 Thread Shirish S
amdgpu_ib_ring_tests() runs test IB's on rings at boot contributes to ~500 ms of amdgpu driver's boot time. This patch defers it and adds a check to report in amdgpu_info_ioctl() if it was scheduled or not. Signed-off-by: Shirish S <shiris...@amd.com> --- drivers/gpu/drm/amd/amdgpu/am

[PATCH] drm/amdgpu: defer initing UVD & VCE IP blocks

2018-04-10 Thread Shirish S
UVD & VCE blocks take up around 1200 msecs of boot time. This patch adds them to the late init work function so as to reduce boot time. Signed-off-by: Shirish S <shiris...@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 28 ++-- 1 file changed, 22

[PATCH] drm/amdgpu: defer initing UVD & VCE IP blocks

2018-04-10 Thread Shirish S
UVD & VCE blocks take up around 1200 msecs of boot time. This patch adds them to the late init work function so as to reduce boot time. Signed-off-by: Shirish S <shiris...@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 28 ++-- 1 file changed, 22

[PATCH] drm/amd/display: remove dummy is_blanked() to optimise boot time

2018-04-09 Thread Shirish S
is_blanked() hook is a dummy one for underlay pipe, hence when called, it loops for ~300ms at boot. This patch removes this dummy call and adds missing checks. Signed-off-by: Shirish S <shiris...@amd.com> Reviewed-by: Harry Wentland <harry.wentl...@amd.com> --- drivers/gpu/drm/am

[PATCH] drm/amd/display: fix dereferencing possible ERR_PTR()

2018-03-15 Thread Shirish S
This patch fixes static checker warning caused by "36cc549d5986: "drm/amd/display: disable CRTCs with NULL FB on their primary plane (V2)" Reported-by: Dan Carpenter <dan.carpen...@oracle.com> Signed-off-by: Shirish S <shiris...@amd.com> --- drivers/gpu/drm/amd/displa

[PATCH] drm/amd/display: Check msg->size before starting aux transfer

2018-03-13 Thread Shirish S
This patch adds an essential check related to the size of the payload to be transferred via aux channel. Without this check dal_ddc_service_read_dpcd_data() is fed with inappropriate payload size leading to deadlocks. Signed-off-by: Shirish S <shiris...@amd.com> --- drivers/gpu/drm/amd/d

[PATCH] drm/amd/display: validate plane format on primary plane

2018-03-06 Thread Shirish S
In dce110, the plane configuration is such that plane 0 or the primary plane should be rendered with only RGB data. This patch adds the validation to ensure that no video data is rendered on plane 0. Signed-off-by: Shirish S <shiris...@amd.com> Reviewed-by: Tony Cheng <tony.ch..

[PATCH] drm/atomic: Add new reverse iterator over all plane state (V2)

2018-03-06 Thread Shirish S
are supposed to be presented to DC engine, which is in common to both windows and linux. V2: fix compile time errors due to -Werror flag. Signed-off-by: Shirish S <shiris...@amd.com> Signed-off-by: Pratik Vishwakarma <pratik.vishwaka...@amd.com> Reviewed-by: Daniel Vetter <daniel.

[PATCH 2/2] drm/amd/display: update plane functionalities

2017-03-27 Thread Shirish S
core functions. TESTS(On Chromium OS on Stoney Only) * Builds without compilation errors. * 'plane_test' passes for XR24 format based Overlay plane. * Chromium OS ui comes up. Signed-off-by: Shirish S <shiris...@amd.com> Reviewed-by: Harry Wentland <harry.wentl...@amd.com> --- drivers/gp

Re: [PATCH] drm: add check for plane functions

2017-03-20 Thread Shirish S
On Mon, Mar 20, 2017 at 1:51 PM, Daniel Vetter <dan...@ffwll.ch> wrote: > On Mon, Mar 20, 2017 at 09:58:01AM +0530, Shirish S wrote: >> First of all, thanks for your comments/insights. >> >> On Sat, Mar 18, 2017 at 12:59 AM, Eric Anholt <e...@anholt.net> wrot

Re: [PATCH] drm: add check for plane functions

2017-03-19 Thread Shirish S
, 2017 at 01:08:43PM +0200, Ville Syrjälä wrote: >>> > On Fri, Mar 17, 2017 at 03:46:34PM +0530, Shirish S wrote: >>> > > On Fri, Mar 17, 2017 at 3:26 PM, Ville Syrjälä >>> > > <ville.syrj...@linux.intel.com> wrote: >>> > > > On

[PATCH] drm: add check for plane functions

2017-03-17 Thread Shirish S
update_plane() and disable_plane() functions assoiciated with setting plane are called without any check, causing kernel panic. This patch adds the required check to avoid it. Change-Id: I0d6792608b33e674c217388aa57c4b7d680d9bc7 Signed-off-by: Shirish S <shiris...@amd.com> --- drivers/g

[PATCH 0/1] Add infrastructure for handling underlay planes

2017-03-17 Thread Shirish S
lane() implemented --> also testifies, that now we are able to handle planes with this patch. * The YUV formats supported right now are default, will refine it going further. Shirish S (1): drm/amd/display: decouple per-crtc-plane model drivers/gpu/drm/amd/amdgpu/amdgpu

[PATCH 1/1] drm/amd/display: decouple per-crtc-plane model

2017-03-17 Thread Shirish S
display works fine Change-Id: Ibc112d1c7f76539b530b4e11862bb57f2e480121 Signed-off-by: Shirish S <shiris...@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 8 +++ drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 67 ++- .../drm/amd/display/amd