From: "Ville Syrjälä" <ville.syrjala-VuQAYsv1563Yd54FQh9/CA@public.gmane.org> To: Neil Armstrong <narmstrong-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, Wayne Lin <Wayne.Lin-5C7GfCeVMHo@public.gmane.org> Subject: Re: [PATCH 2/2] drm/edid: Add alternate clock for SMPTE 4K Date: Fri, 15 Nov 2019 21:23:05 +0200 [thread overview] Message-ID: <20191115192305.GM1208@intel.com> (raw) In-Reply-To: <75d0e827-25b2-ceae-0484-a98af7b8b693-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> On Tue, Nov 12, 2019 at 10:36:54AM +0100, Neil Armstrong wrote: > On 12/11/2019 08:53, Wayne Lin wrote: > > [Why] > > In hdmi_mode_alternate_clock(), it adds an exception for VIC 4 > > mode (4096x2160@24) due to there is no alternate clock defined for > > that mode in HDMI1.4b. But HDMI2.0 adds 23.98Hz for that mode. > > > > [How] > > Remove the exception > > Shouldn't it be only bypassed when the sink is HDMI2 ? IMO just nuke the check. Can't see much harm coming from adding the 23.98Hz mode on HDMI 1.4 as well. > > Neil > > > > > Signed-off-by: Wayne Lin <Wayne.Lin@amd.com> > > --- > > drivers/gpu/drm/drm_edid.c | 3 --- > > 1 file changed, 3 deletions(-) > > > > diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c > > index fcd7ae29049d..ed2782c53a93 100644 > > --- a/drivers/gpu/drm/drm_edid.c > > +++ b/drivers/gpu/drm/drm_edid.c > > @@ -3126,9 +3126,6 @@ static enum hdmi_picture_aspect drm_get_hdmi_aspect_ratio(const u8 video_code) > > static unsigned int > > hdmi_mode_alternate_clock(const struct drm_display_mode *hdmi_mode) > > { > > - if (hdmi_mode->vdisplay == 4096 && hdmi_mode->hdisplay == 2160) > > - return hdmi_mode->clock; > > - > > return cea_mode_alternate_clock(hdmi_mode); > > } > > > > > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel -- Ville Syrjälä Intel _______________________________________________ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx
WARNING: multiple messages have this Message-ID (diff)
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com> To: Neil Armstrong <narmstrong@baylibre.com> Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Wayne Lin <Wayne.Lin@amd.com> Subject: Re: [PATCH 2/2] drm/edid: Add alternate clock for SMPTE 4K Date: Fri, 15 Nov 2019 21:23:05 +0200 [thread overview] Message-ID: <20191115192305.GM1208@intel.com> (raw) Message-ID: <20191115192305.vArdW0T6XYcVglUzK4_XeYTU_BsZ9ySBXa4fVnZ2oOY@z> (raw) In-Reply-To: <75d0e827-25b2-ceae-0484-a98af7b8b693@baylibre.com> On Tue, Nov 12, 2019 at 10:36:54AM +0100, Neil Armstrong wrote: > On 12/11/2019 08:53, Wayne Lin wrote: > > [Why] > > In hdmi_mode_alternate_clock(), it adds an exception for VIC 4 > > mode (4096x2160@24) due to there is no alternate clock defined for > > that mode in HDMI1.4b. But HDMI2.0 adds 23.98Hz for that mode. > > > > [How] > > Remove the exception > > Shouldn't it be only bypassed when the sink is HDMI2 ? IMO just nuke the check. Can't see much harm coming from adding the 23.98Hz mode on HDMI 1.4 as well. > > Neil > > > > > Signed-off-by: Wayne Lin <Wayne.Lin@amd.com> > > --- > > drivers/gpu/drm/drm_edid.c | 3 --- > > 1 file changed, 3 deletions(-) > > > > diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c > > index fcd7ae29049d..ed2782c53a93 100644 > > --- a/drivers/gpu/drm/drm_edid.c > > +++ b/drivers/gpu/drm/drm_edid.c > > @@ -3126,9 +3126,6 @@ static enum hdmi_picture_aspect drm_get_hdmi_aspect_ratio(const u8 video_code) > > static unsigned int > > hdmi_mode_alternate_clock(const struct drm_display_mode *hdmi_mode) > > { > > - if (hdmi_mode->vdisplay == 4096 && hdmi_mode->hdisplay == 2160) > > - return hdmi_mode->clock; > > - > > return cea_mode_alternate_clock(hdmi_mode); > > } > > > > > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel -- Ville Syrjälä Intel _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2019-11-15 19:23 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-11-12 7:53 [PATCH 1/2] drm/edid: Add aspect ratios to HDMI 4K modes Wayne Lin 2019-11-12 7:53 ` Wayne Lin 2019-11-12 7:53 ` [PATCH 2/2] drm/edid: Add alternate clock for SMPTE 4K Wayne Lin 2019-11-12 7:53 ` Wayne Lin 2019-11-12 9:36 ` Neil Armstrong [not found] ` <75d0e827-25b2-ceae-0484-a98af7b8b693-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> 2019-11-15 19:23 ` Ville Syrjälä [this message] 2019-11-15 19:23 ` Ville Syrjälä 2019-11-15 19:22 ` Ville Syrjälä [not found] ` <20191112075307.12574-1-Wayne.Lin-5C7GfCeVMHo@public.gmane.org> 2019-11-15 19:22 ` [PATCH 1/2] drm/edid: Add aspect ratios to HDMI 4K modes Ville Syrjälä 2019-11-15 19:22 ` Ville Syrjälä
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20191115192305.GM1208@intel.com \ --to=ville.syrjala-vuqaysv1563yd54fqh9/ca@public.gmane.org \ --cc=Wayne.Lin-5C7GfCeVMHo@public.gmane.org \ --cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \ --cc=dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \ --cc=narmstrong-rdvid1DuHRBWk0Htik3J/w@public.gmane.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).