Re: [PATCH] drm: Update MST First Link Slot Information Based on Encoding Format

2021-10-18 Thread Lyude Paul
First off, sidenote: I wonder if we even need total_avail_slots and could just use start_slot. Anyway, more productive comments below: On Mon, 2021-10-18 at 15:47 -0400, Bhawanpreet Lakha wrote: > I understand the mst_state argument its just that most of the mst > functions are using mst_mgr/port

Re: [PATCH] drm: Update MST First Link Slot Information Based on Encoding Format

2021-10-18 Thread Bhawanpreet Lakha
I understand the mst_state argument its just that most of the mst functions are using mst_mgr/port structs and there is no easy way to extract the mst_state using mgr/port in these places (drm_dp_update_payload_part1, drm_dp_mst_allocate_vcpi, drm_dp_init_vcpi etc) where we need the slot info.

Re: [PATCH] drm: Update MST First Link Slot Information Based on Encoding Format

2021-10-15 Thread Lyude Paul
[more snip] On Fri, 2021-10-15 at 15:43 -0400, Bhawanpreet Lakha wrote: > > > Thanks for the response, > > That function is per port so not sure how that will work. Also we only > need to check this inside drm_dp_mst_atomic_check_vcpi_alloc_limit(), > which doesn't have a state. > > We could

Re: [PATCH] drm: Update MST First Link Slot Information Based on Encoding Format

2021-10-15 Thread Lyude Paul
[snip] On Thu, 2021-10-14 at 16:21 -0400, Bhawanpreet Lakha wrote: > > Thanks for the response, > > That function is per port (drm_dp_atomic_find_vcpi_slots) so not sure > how that will work, maybe I don't understand what you mean? Yeah - drm_dp_atomic_find_vcpi_slots() is just one part of the

Re: [PATCH] drm: Update MST First Link Slot Information Based on Encoding Format

2021-10-15 Thread Bhawanpreet Lakha
On 2021-10-13 6:25 p.m., Lyude Paul wrote: Some comments below (also, sorry again for the mixup on the last review!) On Tue, 2021-10-12 at 17:58 -0400, Bhawanpreet Lakha wrote: 8b/10b encoding format requires to reserve the first slot for recording metadata. Real data transmission starts from

Re: [PATCH] drm: Update MST First Link Slot Information Based on Encoding Format

2021-10-14 Thread Bhawanpreet Lakha
Adding Mikita aswell On 2021-10-14 4:21 p.m., Bhawanpreet Lakha wrote: On 2021-10-13 6:25 p.m., Lyude Paul wrote: Some comments below (also, sorry again for the mixup on the last review!) On Tue, 2021-10-12 at 17:58 -0400, Bhawanpreet Lakha wrote: 8b/10b encoding format requires to reserve

Re: [PATCH] drm: Update MST First Link Slot Information Based on Encoding Format

2021-10-14 Thread Bhawanpreet Lakha
On 2021-10-13 6:25 p.m., Lyude Paul wrote: Some comments below (also, sorry again for the mixup on the last review!) On Tue, 2021-10-12 at 17:58 -0400, Bhawanpreet Lakha wrote: 8b/10b encoding format requires to reserve the first slot for recording metadata. Real data transmission starts from

Re: [PATCH] drm: Update MST First Link Slot Information Based on Encoding Format

2021-10-13 Thread Lyude Paul
Some comments below (also, sorry again for the mixup on the last review!) On Tue, 2021-10-12 at 17:58 -0400, Bhawanpreet Lakha wrote: > 8b/10b encoding format requires to reserve the first slot for > recording metadata. Real data transmission starts from the second slot, > with a total of availabl

Re: [PATCH] drm: Update MST First Link Slot Information Based on Encoding Format

2021-10-13 Thread kernel test robot
Hi Bhawanpreet, Thank you for the patch! Yet something to improve: [auto build test ERROR on drm-intel/for-linux-next] [also build test ERROR on drm-tip/drm-tip linus/master v5.15-rc5 next-20211013] [cannot apply to drm-exynos/exynos-drm-next tegra-drm/drm/tegra/for-next airlied/drm-next] [If yo

Re: [PATCH] drm: Update MST First Link Slot Information Based on Encoding Format

2021-10-13 Thread Lyude Paul
On Wed, 2021-10-13 at 15:33 -0400, Bhawanpreet Lakha wrote: > > > I wonder if we could split this to separate drm dp helper and amd driver > > patches? Whoops! I thought it was strange that I would say this but it seems there was a misunderstanding on my part: when the original patch series was s

Re: [PATCH] drm: Update MST First Link Slot Information Based on Encoding Format

2021-10-13 Thread Bhawanpreet Lakha
On 2021-10-13 12:09 p.m., Jani Nikula wrote: On Tue, 12 Oct 2021, Bhawanpreet Lakha wrote: 8b/10b encoding format requires to reserve the first slot for recording metadata. Real data transmission starts from the second slot, with a total of available 63 slots available. In 128b/132b encoding

Re: [PATCH] drm: Update MST First Link Slot Information Based on Encoding Format

2021-10-13 Thread kernel test robot
Hi Bhawanpreet, Thank you for the patch! Yet something to improve: [auto build test ERROR on drm-intel/for-linux-next] [also build test ERROR on drm-tip/drm-tip linus/master v5.15-rc5 next-20211013] [cannot apply to drm-exynos/exynos-drm-next tegra-drm/drm/tegra/for-next airlied/drm-next] [If yo

Re: [PATCH] drm: Update MST First Link Slot Information Based on Encoding Format

2021-10-13 Thread Jani Nikula
On Tue, 12 Oct 2021, Bhawanpreet Lakha wrote: > 8b/10b encoding format requires to reserve the first slot for > recording metadata. Real data transmission starts from the second slot, > with a total of available 63 slots available. > > In 128b/132b encoding format, metadata is transmitted separate

Re: [PATCH] drm: Update MST First Link Slot Information Based on Encoding Format

2021-10-12 Thread Lyude Paul
No problem, thanks for the patches! Will take a look at this tomorrow On Tue, 2021-10-12 at 22:02 +, Lakha, Bhawanpreet wrote: > [AMD Official Use Only] > > Hi Lyude, > > Jerry is busy these few weeks so I will be taking a look at this. I added > the start/total slots to the mst_state and am

Re: [PATCH] drm: Update MST First Link Slot Information Based on Encoding Format

2021-10-12 Thread Lakha, Bhawanpreet
[AMD Official Use Only] Hi Lyude, Jerry is busy these few weeks so I will be taking a look at this. I added the start/total slots to the mst_state and am updating them in atomic_check. Also ignore the V2 "* Remove get_mst_link_encoding_cap" I got a bit lost in trying to figure out the patch l

Re: [PATCH] drm: Update MST First Link Slot Information Based on Encoding Format

2021-03-26 Thread Lyude Paul
On Thu, 2021-03-25 at 23:14 -0400, Fangzhi Zuo wrote: > 8b/10b encoding format requires to reserve the first slot for > recording metadata. Real data transmission starts from the second slot, > with a total of available 63 slots available. > > In 128b/132b encoding format, metadata is transmitted