lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Mon, 13 May 2024 13:50:37 +0000
From: LIANKUN YANG (杨连坤) <Liankun.Yang@...iatek.com>
To: Mac Shen (沈俊) <Mac.Shen@...iatek.com>,
	"chunkuang.hu@...nel.org" <chunkuang.hu@...nel.org>,
	Jitao Shi (石记涛) <jitao.shi@...iatek.com>,
	"daniel@...ll.ch" <daniel@...ll.ch>, "p.zabel@...gutronix.de"
	<p.zabel@...gutronix.de>, "airlied@...il.com" <airlied@...il.com>,
	"matthias.bgg@...il.com" <matthias.bgg@...il.com>,
	"angelogioacchino.delregno@...labora.com"
	<angelogioacchino.delregno@...labora.com>
CC: "dri-devel@...ts.freedesktop.org" <dri-devel@...ts.freedesktop.org>,
	"linux-arm-kernel@...ts.infradead.org"
	<linux-arm-kernel@...ts.infradead.org>, "linux-mediatek@...ts.infradead.org"
	<linux-mediatek@...ts.infradead.org>, "linux-kernel@...r.kernel.org"
	<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v1 1/1] Support YUV422 for DPTX.

On Fri, 2024-05-10 at 12:05 +0200, AngeloGioacchino Del Regno wrote:
> Il 10/05/24 04:15, Liankun Yang ha scritto:
> > Adjust the training sequence.Detects the actual link condition
> > and calculates the bandwidth where the relevant resolution resides.
> > 
> > The bandwidth is recalculated and modes that exceed the bandwidth
> > are
> > filtered.
> > 
> > Example Modify bandwidth filtering requirements.
> > 
> > Signed-off-by: Liankun Yang <liankun.yang@...iatek.com>
> > ---
> >   drivers/gpu/drm/mediatek/mtk_dp.c | 81 ++++++++++++++++++------
> > -------
> >   1 file changed, 46 insertions(+), 35 deletions(-)
> > 
> > diff --git a/drivers/gpu/drm/mediatek/mtk_dp.c
> > b/drivers/gpu/drm/mediatek/mtk_dp.c
> > index 2136a596efa1..3e645bd6fe27 100644
> > --- a/drivers/gpu/drm/mediatek/mtk_dp.c
> > +++ b/drivers/gpu/drm/mediatek/mtk_dp.c
> > @@ -66,6 +66,13 @@ enum {
> >   	MTK_DP_CAL_MAX,
> >   };
> >   
> > +enum mtk_dp_color_format {
> > +	MTK_DP_COLOR_FORMAT_RGB = 0,
> > +	MTK_DP_COLOR_FORMAT_YUV422 = 0x1,
> > +	MTK_DP_COLOR_FORMAT_YUV444 = 0x2,
> > +	MTK_DP_COLOR_FORMAT_YUV420 = 0x3,
> > +};
> 
> This is giving the same values as drm_dp.h, hence unneeded.

Because using the same values as drm_dp.h is wrong,I will use other
methods to deal with the problem in next version.

> 
> > +
> >   struct mtk_dp_train_info {
> >   	bool sink_ssc;
> >   	bool cable_plugged_in;
> > @@ -84,7 +91,7 @@ struct mtk_dp_audio_cfg {
> >   };
> >   
> >   struct mtk_dp_info {
> > -	enum dp_pixelformat format;
> > +	enum mtk_dp_color_format format;
> >   	struct videomode vm;
> >   	struct mtk_dp_audio_cfg audio_cur_cfg;
> >   };
> > @@ -457,7 +464,7 @@ static void mtk_dp_set_msa(struct mtk_dp
> > *mtk_dp)
> 
> ..snip..
> 
> > @@ -1888,9 +1896,28 @@ static irqreturn_t
> > mtk_dp_hpd_event_thread(int hpd, void *dev)
> >   			memset(&mtk_dp->info.audio_cur_cfg, 0,
> >   			       sizeof(mtk_dp->info.audio_cur_cfg));
> >   
> > +			mtk_dp->enabled = false;
> > +			/* power off aux */
> > +			mtk_dp_update_bits(mtk_dp,
> > MTK_DP_TOP_PWR_STATE,
> > +			       DP_PWR_STATE_BANDGAP_TPLL,
> > +			       DP_PWR_STATE_MASK);
> > +
> 
> This commit is not even based on upstream, so you haven't even tested
> it upstream.
> 
> Don't send untested commits.
> There's nothing to review here.
> 
> Regards,
> Angelo
> 

I will do it based on upstream in next version.

Thank you very mush for your comments.

Best Regards,
Liankun Yang




Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ