Re: [PATCH 1/2] drm/i915/display/vlv_dsi: Do not skip panel_pwr_cycle_delay when disabling the panel

2021-04-07 Thread Ville Syrjälä
cled off and directly on again in quick > > succession. > > > > Change the msleep for the panel_pwr_cycle_delay to a normal msleep() > > call to avoid the panel staying black after a quick off + on cycle. > > > > Cc: Ville Syrjälä > > Fixes: fe0f1e3bfdfe

Re: [PATCH 1/2] drm/doc: document drm_mode_get_plane

2021-04-07 Thread Ville Syrjälä
; + * @format_type_ptr: Pointer to ``__u32`` array of formats that are > + * supported by the plane. These formats do not require modifiers. > + */ > __u64 format_type_ptr; > }; > > -- > 2.31.1 > > ________

Re: [PATCH 2/2] drm/doc: emphasize difference between plane formats and IN_FORMATS blob

2021-04-07 Thread Ville Syrjälä
t; + * must use the plane IN_FORMATS blob property. >*/ Addfb2+modifiers predates the IN_FORMATS blob, so this doesn't match reality. > __u64 format_type_ptr; > }; > -- > 2.31.1 > > __________

Re: [PATCH 1/2] drm/i915/display/vlv_dsi: Do not skip panel_pwr_cycle_delay when disabling the panel

2021-04-07 Thread Ville Syrjälä
On Wed, Apr 07, 2021 at 03:50:35PM +0200, Hans de Goede wrote: > Hi, > > On 4/7/21 2:34 PM, Ville Syrjälä wrote: > > On Tue, Apr 06, 2021 at 03:57:32PM +0200, Hans de Goede wrote: > >> Hi, > >> > >> On 3/25/21 12:48 PM, Hans de Goede wrote: > >>&

Re: [PATCH 2/2] drm/doc: emphasize difference between plane formats and IN_FORMATS blob

2021-04-08 Thread Ville Syrjälä
internal sentinel value to > > denote end-of-array entries. > > > > In practice it wont pass because we validate the modifiers against the > > advertised list. We don't actually. If the driver provides the .format_mod_supported() hook then it's up to the driver to va

Re: [PATCH] drm/i915: Fix "mitigations" parsing if i915 is builtin

2021-04-13 Thread Ville Syrjälä
er find.F; position PA; @@ F(...) { <+... ALLOC@PA(...) ...+> } @script:python depends on alloc@ ps << find.PS; pa << alloc.PA; @@ coccilib.report.print_report(ps[0], "struct") coccilib.report.print_report(pa[0], "alloc") That could of course miss a b

Re: [PATCH v2] drm/i915: Fix "mitigations" parsing if i915 is builtin

2021-04-15 Thread Ville Syrjälä
amp;sep, ","));) { > bool enable = true; > @@ -86,7 +85,6 @@ static int mitigations_set(const char *val, const struct > kernel_param *kp) > break; > } > } > - kfree(str); > if (err) > return err; > > -- > 2.31.0 -- Ville Syrjälä Intel ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: 16 bpc fixed point (RGBA16) framebuffer support for core and AMD.

2021-04-16 Thread Ville Syrjälä
On Fri, Apr 16, 2021 at 06:27:23PM +0200, Mario Kleiner wrote: > On Mon, Mar 22, 2021 at 4:52 PM Ville Syrjälä > wrote: > > > > On Fri, Mar 19, 2021 at 10:03:12PM +0100, Mario Kleiner wrote: > > > Hi, > > > > > > this patch series adds the fourcc'

Re: [PATCH v3 03/20] drm/dp: Move i2c init to drm_dp_aux_init, add __must_check and fini

2021-04-19 Thread Ville Syrjälä
r a while now we've tried to move towards an architecture where the driver is fully initialzied before anything gets exposed to userspace. -- Ville Syrjälä Intel ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH] drm/i915/dp: Use slow and wide link training for everything

2021-04-21 Thread Ville Syrjälä
On Wed, Apr 21, 2021 at 01:20:31PM +0800, Kai-Heng Feng wrote: > Screen flickers on Innolux eDP 1.3 panel when clock rate 54 is in use. > > According to the panel vendor, though clock rate 54 is advertised, > but the max clock rate it really supports is 27. >

Re: [Intel-gfx] [PATCH 4/4] drm/i915: Rewrite CL/CTG L-shaped memory detection

2021-04-22 Thread Ville Syrjälä
On Thu, Apr 22, 2021 at 11:49:43AM +0200, Daniel Vetter wrote: > On Wed, Apr 21, 2021 at 06:34:01PM +0300, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > Currently we try to detect a symmetric memory configurations > > using a magic DCC2_MODIFIED_ENHANC

Re: [Intel-gfx] [PATCH 4/4] drm/i915: Rewrite CL/CTG L-shaped memory detection

2021-04-22 Thread Ville Syrjälä
On Thu, Apr 22, 2021 at 11:49:43AM +0200, Daniel Vetter wrote: > On Wed, Apr 21, 2021 at 06:34:01PM +0300, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > Currently we try to detect a symmetric memory configurations > > using a magic DCC2_MODIFIED_ENHANC

Re: [PATCH v2] drm/i915: Invoke BXT _DSM to enable MUX on HP Workstation laptops

2021-04-23 Thread Ville Syrjälä
o discover which “_DSM” Functions are supported. It may only return success if the return value accurately lists supported Functions." But what you're apparently saying is that calling this changes the behaviour of the system somehow? That is troubling. -- Ville Syrjälä Intel ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH v2 1/2] gpu: drm: init set panel orientation property earlier

2021-04-26 Thread Ville Syrjälä
drm_object_attach_property(&connector->base, prop, > - info->panel_orientation); > + drm_object_property_set_value(&connector->base, prop, > + info->panel_orientation); > return 0; > } > EXPORT_SYMBOL(drm_connector_set_panel_orientation); > -- > 2.31.1.498.g6c1eba8ee3d-goog > > ___ > 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

Re: [PATCH v2] drm/i915: Invoke BXT _DSM to enable MUX on HP Workstation laptops

2021-04-26 Thread Ville Syrjälä
On Mon, Apr 26, 2021 at 07:10:06PM +0800, Kai-Heng Feng wrote: > On Fri, Apr 23, 2021 at 8:41 PM Ville Syrjälä > wrote: > > > > On Fri, Apr 23, 2021 at 12:46:54PM +0800, Kai-Heng Feng wrote: > > > On HP Fury G7 Workstations, graphics output is re-routed from Intel GFX

Re: [Intel-gfx] [PATCH 4/4] drm/i915: Rewrite CL/CTG L-shaped memory detection

2021-04-26 Thread Ville Syrjälä
On Mon, Apr 26, 2021 at 06:08:59PM +0200, Daniel Vetter wrote: > On Thu, Apr 22, 2021 at 04:11:22PM +0300, Ville Syrjälä wrote: > > On Thu, Apr 22, 2021 at 11:49:43AM +0200, Daniel Vetter wrote: > > > On Wed, Apr 21, 2021 at 06:34:01PM +0300, Ville Syrjala wrote: > >

Re: [RFC PATCH 1/3] drm/color: Add RGB Color encodings

2021-04-26 Thread Ville Syrjälä
le degamma/gamma LUTs for each plane. But considering how poor the current gamma uapi is we've thrown around some ideas how to allow the kernel to properly expose the hw capabilities. This is one of those ideas: https://lists.freedesktop.org/archives/dri-devel/2019-April/212886.html I think that basic

Re: [RFC PATCH 1/3] drm/color: Add RGB Color encodings

2021-04-26 Thread Ville Syrjälä
On Mon, Apr 26, 2021 at 02:56:26PM -0400, Harry Wentland wrote: > On 2021-04-26 2:07 p.m., Ville Syrjälä wrote: > > On Mon, Apr 26, 2021 at 01:38:50PM -0400, Harry Wentland wrote: > >> From: Bhawanpreet Lakha > >> > >> Add the following color encodings > >

Re: [PATCH 1/2] drm/i915/overlay: Fix active retire callback alignment

2021-04-29 Thread Ville Syrjälä
explicitly? Looks like you missed auto_retire()? > intel_overlay_last_flip_retire(struct i915_active *active) > { > struct intel_overlay *overlay = > -- > 2.30.2 > > ___ > dri-devel mailing list > dri

Re: [Intel-gfx] [PATCH 1/2] drm/i915/overlay: Fix active retire callback alignment

2021-04-29 Thread Ville Syrjälä
On Thu, Apr 29, 2021 at 07:31:43PM +0300, Ville Syrjälä wrote: > On Thu, Apr 29, 2021 at 09:35:29AM +0100, Tvrtko Ursulin wrote: > > From: Tvrtko Ursulin > > > > __i915_active_call annotation is required on the retire callback to ensure > > correct function alignm

Re: [PATCH] drm: log errors in drm_gem_fb_init_with_funcs

2021-04-30 Thread Ville Syrjälä
> drm_gem_object_put(objs[i]); > ret = -EINVAL; > goto err_gem_object_put; > -- > 2.31.1 > > > ___ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/

Re: [PATCH] drm/i915/display Try YCbCr420 color when RGB fails

2021-04-30 Thread Ville Syrjälä
ed = ret; > + > + ret = intel_hdmi_ycbcr420_config(pipe_config, conn_state, true); > + if (ret) > + return ret; > + > + if (pipe_config->output_format != INTEL_OUTPUT_FORMAT_YCBCR420) > +

Re: [Intel-gfx] [PATCH 2/2] drm/dp: Drop open-coded drm_dp_is_branch() in drm_dp_read_downstream_info()

2021-05-02 Thread Ville Syrjälä
pcd) || > - dpcd[DP_DPCD_REV] < DP_DPCD_REV_10 || > - !(dpcd[DP_DOWNSTREAMPORT_PRESENT] & DP_DWN_STRM_PORT_PRESENT)) > + if (!drm_dp_is_branch(dpcd) || dpcd[DP_DPCD_REV] < DP_DPCD_REV_10) BTW that DPCD_REV check looks rather wrong. Reviewed-by: Ville Syrjälä >

Re: [PATCH 1/2] drm/dp: Handle zeroed port counts in drm_dp_read_downstream_info()

2021-05-02 Thread Ville Syrjälä
* some branches do it we need to handle it regardless. > + */ > len = drm_dp_downstream_port_count(dpcd); > + if (!len) > + return 0; > + Seems sane enough. Reviewed-by: Ville Syrjälä > if (dpcd[DP_DOWNSTREAMPORT_PRESENT] & DP_DETAILED_CAP_INF

Re: [PATCH] drm/i915/dp: Use max params for older panels

2021-08-16 Thread Ville Syrjälä
figuration, and typically on older panels > + * these values correspond to the native resolution of the > + * panel. >*/ > limits.min_lane_count = limits.max_lane_count; > limits.min_clock = limits.max_clock; > -- > 2.31.1 -- Ville Syrjälä Intel

Re: [PATCH v2] drm/i915/dp: Use max params for panels < eDP 1.4

2021-08-19 Thread Ville Syrjälä
generally designed to support only a single > + * clock and lane configuration, and typically on older panels > + * these values correspond to the native resolution of the > + * panel. >*/ > limits.min_lane_count = limits.max_lane_count; > limits.min_clock = limits.max_clock; > -- > 2.32.0 -- Ville Syrjälä Intel

Re: [PATCH 01/17] drm/dp: add DP 2.0 UHBR link rate and bw code conversions

2021-08-19 Thread Ville Syrjälä
return 135; > + case DP_LINK_BW_20: > + return 200; > + default: > + /* Spec says link_rate = link_bw * 0.27Gbps */ > + return link_bw * 27000; > + } > } > EXPORT_SYMBOL(drm_dp_bw_code_to_link_rate); > > -- > 2.20.1 -- Ville Syrjälä Intel

Re: [PATCH 2/4] drm/dp: use more of the extended receiver cap

2021-08-19 Thread Ville Syrjälä
IZE]) > { > - u8 dpcd_ext[6]; > + u8 dpcd_ext[DP_MAIN_LINK_CHANNEL_CODING + 1]; Why are we even reading less of this than the normal receiver caps? > int ret; > > /* > -- > 2.20.1 -- Ville Syrjälä Intel

Re: [PATCH 04/17] drm/dp: add helper for extracting adjust 128b/132b TX FFE preset

2021-08-19 Thread Ville Syrjälä
On Wed, Aug 18, 2021 at 09:10:39PM +0300, Jani Nikula wrote: > The DP 2.0 128b/132b channel coding uses TX FFE presets instead of > vswing and pre-emphasis. > > Cc: dri-devel@lists.freedesktop.org > Signed-off-by: Jani Nikula Reviewed-by: Ville Syrjälä > --- > drivers/gp

Re: [BUG - BISECTED] display not detected anymore

2021-08-19 Thread Ville Syrjälä
). Anyway, looking into it again the first bad commit is > > ef79d62b5ce5 ("drm/i915: Encapsulate dbuf state handling harder") > > With that commit the display is not detected anymore, one commit > before that it still works. So this one seems to be broken. > > Ville,

Re: [PATCH v3] drm/i915/dp: Use max params for panels < eDP 1.4

2021-08-20 Thread Ville Syrjälä
l back to the old max strategy on failure") > Fixes: a5c936add6a2 ("drm/i915/dp: Use slow and wide link training for > everything") > Suggested-by: Ville Syrjälä > Signed-off-by: Kai-Heng Feng Slapped a cc:stable on it and pushed to drm-intel-next. Thanks. > -

Re: [PATCH 04/19] include: drm: drm_atomic: Make use of 'new_plane_state'

2021-03-19 Thread Ville Syrjälä
Only to avoid > unused-but-set-variable warning */, 1)) In this case you can just switch the code to use for_each_old_plane_in_state() instead. > > /** > * for_each_oldnew_plane_in_state_reverse - iterate over all planes in an > atomic > -- > 2.27.0 > > ______

Re: [PATCH] drm/atomic: Add the crtc to affected crtc only if uapi.enable = true

2021-03-19 Thread Ville Syrjälä
gt; > > > we are discussing the topic, such checks would be really nice. I'm > > > > > curious if such checks already exist. > > > > > > > > > Thanks, > > > pq > > > > > > > > > > > --- > > >

Re: [PATCH] drm/atomic: Add the crtc to affected crtc only if uapi.enable = true

2021-03-19 Thread Ville Syrjälä
On Fri, Mar 19, 2021 at 01:54:13PM -0700, Navare, Manasi wrote: > On Fri, Mar 19, 2021 at 04:56:24PM +0200, Ville Syrjälä wrote: > > On Thu, Mar 18, 2021 at 04:01:26PM -0700, Navare, Manasi wrote: > > > So basically we see this warning only in case of bigjoiner when > >

Re: [PATCH 1/5] drm/fourcc: Add 16 bpc fixed point framebuffer formats.

2021-03-19 Thread Ville Syrjälä
0] x:B:G:R 16:16:16:16 little endian */ > + > +#define DRM_FORMAT_ARGB16161616 fourcc_code('A', 'R', '4', '8') /* > [63:0] A:R:G:B 16:16:16:16 little endian */ > +#define DRM_FORMAT_ABGR16161616 fourcc_code('A', 'B', '4', '8') /* > [63:0] A:B:G:R 16:16:16:16 little endian */ These look reasonable enough to me. IIRC we should be able to expose them on some recent Intel hw as well. Reviewed-by: Ville Syrjälä -- Ville Syrjälä Intel ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH] drm/atomic: Add the crtc to affected crtc only if uapi.enable = true

2021-03-19 Thread Ville Syrjälä
On Fri, Mar 19, 2021 at 02:26:24PM -0700, Navare, Manasi wrote: > On Fri, Mar 19, 2021 at 11:12:41PM +0200, Ville Syrjälä wrote: > > On Fri, Mar 19, 2021 at 01:54:13PM -0700, Navare, Manasi wrote: > > > On Fri, Mar 19, 2021 at 04:56:24PM +0200, Ville Syrjälä wrote: > > >

Re: [PATCH 1/5] drm/fourcc: Add 16 bpc fixed point framebuffer formats.

2021-03-19 Thread Ville Syrjälä
On Fri, Mar 19, 2021 at 10:45:10PM +0100, Mario Kleiner wrote: > On Fri, Mar 19, 2021 at 10:16 PM Ville Syrjälä > wrote: > > > > On Fri, Mar 19, 2021 at 10:03:13PM +0100, Mario Kleiner wrote: > > > These are 16 bits per color channel unsigned normalized formats. >

Re: 16 bpc fixed point (RGBA16) framebuffer support for core and AMD.

2021-03-22 Thread Ville Syrjälä
commit/a25d4802074b13a8d5f7edc96ae45469ecbac3c4 We should also add support for these formats into igt.a Should be semi-easy by just adding the suitable float<->uint16 conversion stuff. -- Ville Syrjälä Intel ___ dri-devel mailing list dri-devel@li

Re: [Intel-gfx] [PATCH] drm/i915/display/vlv_dsi: Do no shut down displays on reboot if a DSI panel is used

2021-03-22 Thread Ville Syrjälä
e possible to get this information in here instead > to all the vlv with dsi... > > Or avoid the quirk "infra" and skip to all vlv with active dsi?! > > Jani? > Ville? We need to figure out why the panel doesn't start up again. If it has problems with this then

Re: [Intel-gfx] [PATCH] drm/i915/display/vlv_dsi: Do no shut down displays on reboot if a DSI panel is used

2021-03-22 Thread Ville Syrjälä
On Mon, Mar 22, 2021 at 10:28:06PM +0100, Hans de Goede wrote: > Hi, > > On 3/22/21 9:59 PM, Ville Syrjälä wrote: > > On Mon, Mar 22, 2021 at 04:51:47PM -0400, Rodrigo Vivi wrote: > >> On Fri, Mar 19, 2021 at 04:45:32PM +0100, Hans de Goede wrote: > >>> Hi, &g

Re: [Intel-gfx] [PATCH] drm/i915/display/vlv_dsi: Do no shut down displays on reboot if a DSI panel is used

2021-03-23 Thread Ville Syrjälä
On Tue, Mar 23, 2021 at 06:29:53PM +0100, Hans de Goede wrote: > Hi, > > On 3/22/21 10:47 PM, Ville Syrjälä wrote: > > On Mon, Mar 22, 2021 at 10:28:06PM +0100, Hans de Goede wrote: > >> Hi, > >> > >> On 3/22/21 9:59 PM, Ville Syrjälä wrote: > >>

Re: [Intel-gfx] [PATCH resend 2/2] drm/i915/display: Make vlv_find_free_pps() skip pipes which are in use for non DP purposes

2021-03-24 Thread Ville Syrjälä
On Tue, Mar 23, 2021 at 11:39:09AM +0100, Hans de Goede wrote: > Hi, > > On 3/2/21 3:51 PM, Ville Syrjälä wrote: > > On Tue, Mar 02, 2021 at 01:00:40PM +0100, Hans de Goede wrote: > >> As explained by a long comment block, on VLV intel_setup_outputs() > >> somet

Re: [Intel-gfx] [PATCH resend 2/2] drm/i915/display: Make vlv_find_free_pps() skip pipes which are in use for non DP purposes

2021-03-24 Thread Ville Syrjälä
On Wed, Mar 24, 2021 at 03:10:59PM +0100, Hans de Goede wrote: > Hi, > > On 3/24/21 3:02 PM, Ville Syrjälä wrote: > > On Tue, Mar 23, 2021 at 11:39:09AM +0100, Hans de Goede wrote: > >> Hi, > >> > >> On 3/2/21 3:51 PM, Ville Syrjälä wrote: > >>

Re: [Intel-gfx] [PATCH v9 63/70] drm/i915: Move gt_revoke() slightly

2021-03-24 Thread Ville Syrjälä
we restore fence registers > > This means that a global reset also thrashes mmaps, but it's a global > reset we're talking about here, everything is thrash anyway. Plus/minus > fenced gtt mmaps really doesn't change the tally. My recollection is that GPU reset doesn&#x

Re: [PATCH 10/11] drm/i915: avoid stringop-overread warning on pri_latency

2021-03-24 Thread Ville Syrjälä
> Like, we have intel_print_wm_latency() for debug logging and > wm_latency_show() for debugfs, and there's a bunch of duplication and > ugh. There is all this ancient stuff in review limbo... https://patchwork.freedesktop.org/series/50802/ -- Ville Syrjälä Intel ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [Intel-gfx] [PATCH v9 63/70] drm/i915: Move gt_revoke() slightly

2021-03-24 Thread Ville Syrjälä
On Wed, Mar 24, 2021 at 06:16:44PM +0100, Daniel Vetter wrote: > On Wed, Mar 24, 2021 at 07:15:36PM +0200, Ville Syrjälä wrote: > > On Wed, Mar 24, 2021 at 06:00:12PM +0100, Daniel Vetter wrote: > > > On Tue, Mar 23, 2021 at 04:50:52PM +0100, Maarten Lankhorst wrote: > > &g

Re: [PATCH] drm/atomic: Add the crtc to affected crtc only if uapi.enable = true

2021-03-26 Thread Ville Syrjälä
On Thu, Mar 25, 2021 at 03:01:29PM -0700, Navare, Manasi wrote: > On Fri, Mar 19, 2021 at 11:27:59PM +0200, Ville Syrjälä wrote: > > On Fri, Mar 19, 2021 at 02:26:24PM -0700, Navare, Manasi wrote: > > > On Fri, Mar 19, 2021 at 11:12:41PM +0200, Ville Syrjälä wrote: > > >

Re: [PATCH v2 7/8] drm/displayid: allow data blocks with 0 payload length

2021-03-29 Thread Ville Syrjälä
gh to convey the necessary information. > > Signed-off-by: Jani Nikula Reviewed-by: Ville Syrjälä Though after looking at the current users it looks to me like we're missing some block length checks. In particular drm_parse_tiled_block() looks suspect. Judging by what I wrote in cea

Re: [PATCH v2 8/8] drm/displayid: rename displayid_hdr to displayid_header

2021-03-29 Thread Ville Syrjälä
On Mon, Mar 29, 2021 at 04:37:22PM +0300, Jani Nikula wrote: > Avoid any confusion with High Dynamic Range. No functional changes. > > Signed-off-by: Jani Nikula Reviewed-by: Ville Syrjälä > --- > drivers/gpu/drm/drm_displayid.c | 10 +- > include/drm/drm_displayid.

Re: [PATCH v2 09/14] drm/edid: Use the cached EDID in drm_get_edid() if eDP

2021-03-30 Thread Ville Syrjälä
rm_do_get_edid(connector, drm_do_probe_ddc_edid, adapter); > - drm_connector_update_edid_property(connector, edid); > return edid; > } > EXPORT_SYMBOL(drm_get_edid); > -- > 2.31.0.291.g576ba9dcdaf-goog > > ___ > 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

Re: [PATCH 1/3] drivers/nouveau/kms/nv50-: Reject format modifiers for cursor planes

2021-01-19 Thread Ville Syrjälä
fiers = nouveau_display(dev)->format_modifiers; > + > + ret = drm_universal_plane_init(dev, &wndw->plane, heads, &nv50_wndw, > format, nformat, > +format_modifiers, type, "%s-%d", name, > index); > if (ret)

Re: [PATCH v2 06/11] drm: Use state helper instead of plane state pointer in atomic_check

2021-01-22 Thread Ville Syrjälä
t need the <... ...> style here? It's been a while since I did any serious cocci so I'm getting a bit rusty on the details... Otherwise looks great Reviewed-by: Ville Syrjälä > } > > @ adds_old_state @ > identifier plane_atomic_func.func; > identifi

Re: [PATCH v2 08/11] drm: Rename plane->state variables in atomic update and disable

2021-01-22 Thread Ville Syrjälä
are 'state' as symbol moves_new_state_old_state.state; That would probably make the intent a bit more obvious, even with the dependency. Or does a dependency somehow automagically imply that? -- Ville Syrjälä Intel ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH v2 08/11] drm: Rename plane->state variables in atomic update and disable

2021-01-25 Thread Ville Syrjälä
On Mon, Jan 25, 2021 at 11:52:18AM +0100, Maxime Ripard wrote: > Hi Ville, > > On Fri, Jan 22, 2021 at 02:15:07PM +0200, Ville Syrjälä wrote: > > On Thu, Jan 21, 2021 at 05:35:33PM +0100, Maxime Ripard wrote: > > > Some drivers are storing the plane->state p

Re: [PATCH] drm: Fix HDMI_STATIC_METADATA_TYPE1 constant.

2021-01-25 Thread Ville Syrjälä
we even check any of the client provided values, or do we? EOTF I think we do check, but IMO that check should probably just be nuked as well if we don't bother checking anything else. I was in fact going to suggest nuking this entire hdr_sink_metadata parsing as unused, but

Re: [PATCH] drm/simple-kms: Drop drm_simple_kms_format_mod_supported.

2021-01-25 Thread Ville Syrjälä
t, > .atomic_duplicate_state = drm_atomic_helper_plane_duplicate_state, > .atomic_destroy_state = drm_atomic_helper_plane_destroy_state, > - .format_mod_supported = drm_simple_kms_format_mod_supported, This will now cause also this driver to repor

Re: [PATCH 2/2] drm/dp_mst: Align mst link rate with soure rate

2021-01-25 Thread Ville Syrjälä
gt; The max source rate is: > > intel_dp->source_rates[intel_dp->num_source_rates - 1]. > > No need to do the if ladder here at all. If you like, you can add a > helper: > > int intel_dp_max_source_rate(struct intel_dp *intel_dp) > { > return intel_dp->source_rates[intel_dp->num_source_rates - 1]; > } Using the max source rate isn't super great either. A bit better than the current mess though. The correct fix would be to let the driver provide the actually used link_rate+lane_count to the MST code during atomic_check(), instead of trying to guess what the driver is going to use. -- Ville Syrjälä Intel ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH] drm/simple-kms: Drop drm_simple_kms_format_mod_supported.

2021-01-25 Thread Ville Syrjälä
On Mon, Jan 25, 2021 at 04:32:48PM +0100, Mario Kleiner wrote: > On Mon, Jan 25, 2021 at 1:13 PM Ville Syrjälä > wrote: > > > On Sun, Jan 24, 2021 at 09:47:48PM +0100, Mario Kleiner wrote: > > > The check was introduced to make sure that only the > > > DRM_FORMA

Re: [PATCH v2 10/11] drm: Use state helper instead of the plane state pointer

2021-01-26 Thread Ville Syrjälä
truct drm_plane_state *new_state = > drm_atomic_get_new_plane_state(state, plane); > ... > } > > @ include depends on adds_new_state @ > @@ > > #include > > @ no_include depends on !include && adds_new_state @ > @@ > > + #include &

Re: [PULL] drm-intel-next

2021-01-27 Thread Ville Syrjälä
> > Here goes drm-intel-next-2021-01-27: > ... > - Async flips for all ilk+ platforms (Ville) Not quite yet. Still missing one rb so couldn't push the full thing. So still limited to skl+ I'm afraid. -- Ville Syrjälä Intel

Re: [PATCH v7 09/15] drm/i915: Add support for starting FRL training for HDMI2.1 via PCON

2021-02-01 Thread Ville Syrjälä
l_dp_init_connector(struct intel_digital_port > *dig_port, > (temp & ~0xf) | 0xd); > } > > + intel_dp->frl.is_trained = false; > + intel_dp->frl.trained_rate_gbps = 0; > + > return true; > > fail: > diff --git a/drivers/gpu/drm/i915/display/intel_dp.h > b/drivers/gpu/drm/i915/display/intel_dp.h > index b871a09b6901..58b76a20459c 100644 > --- a/drivers/gpu/drm/i915/display/intel_dp.h > +++ b/drivers/gpu/drm/i915/display/intel_dp.h > @@ -144,4 +144,6 @@ bool intel_dp_initial_fastset_check(struct intel_encoder > *encoder, > void intel_dp_sync_state(struct intel_encoder *encoder, >const struct intel_crtc_state *crtc_state); > > +void intel_dp_check_frl_training(struct intel_dp *intel_dp); > + > #endif /* __INTEL_DP_H__ */ > -- > 2.17.1 -- Ville Syrjälä Intel ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH v3 2/4] drm_dp_mst_topology: use correct AUX channel

2021-02-01 Thread Ville Syrjälä
msg->size, msg->buffer); > + break; > + > + default: > + ret = -EINVAL; > + break; > + } > + > + return ret; > +} > + > static int drm_dp_get_vc_payload_bw(u8 dp_link_bw, u8 dp_link_count) > { >

Re: [PATCH v7 09/15] drm/i915: Add support for starting FRL training for HDMI2.1 via PCON

2021-02-01 Thread Ville Syrjälä
On Tue, Feb 02, 2021 at 12:09:47PM +0530, Nautiyal, Ankit K wrote: > Hi Ville, > > Please find my responses inline. > > On 2/2/2021 2:08 AM, Ville Syrjälä wrote: > > On Fri, Dec 18, 2020 at 04:07:17PM +0530, Ankit Nautiyal wrote: > >> This patch adds function

Re: [PATCH] drm: Fix drm_atomic_get_new_crtc_state call error

2021-02-02 Thread Ville Syrjälä
he old crtc to the state already. > > crtc_state->connector_mask &= > ~drm_connector_mask(conn_state->connector); > -- > 2.7.4 > > ___ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://list

Re: [PATCH] drm/vblank: Avoid storing a timestamp for the same frame twice

2021-02-04 Thread Ville Syrjälä
On Thu, Feb 04, 2021 at 04:32:16PM +0100, Daniel Vetter wrote: > On Thu, Feb 04, 2021 at 04:04:00AM +0200, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > drm_vblank_restore() exists because certain power saving states > > can clobber the hardware frame count

Re: [PATCH v3 2/4] drm_dp_mst_topology: use correct AUX channel

2021-02-05 Thread Ville Syrjälä
On Fri, Feb 05, 2021 at 04:17:51PM +1100, Sam McNally wrote: > On Thu, 4 Feb 2021 at 21:19, Hans Verkuil wrote: > > > > On 01/02/2021 23:13, Ville Syrjälä wrote: > > > On Wed, Sep 23, 2020 at 12:13:53PM +1000, Sam McNally wrote: > > >> From: Hans Verkuil >

Re: [PATCH v3 2/4] drm_dp_mst_topology: use correct AUX channel

2021-02-05 Thread Ville Syrjälä
On Fri, Feb 05, 2021 at 02:46:44PM +0100, Hans Verkuil wrote: > On 05/02/2021 14:24, Ville Syrjälä wrote: > > On Fri, Feb 05, 2021 at 04:17:51PM +1100, Sam McNally wrote: > >> On Thu, 4 Feb 2021 at 21:19, Hans Verkuil wrote: > >>> > >>> On 01/02/2021 23:1

Re: [PATCH] drm/vblank: Avoid storing a timestamp for the same frame twice

2021-02-05 Thread Ville Syrjälä
On Fri, Feb 05, 2021 at 04:46:27PM +0100, Daniel Vetter wrote: > On Thu, Feb 04, 2021 at 05:55:28PM +0200, Ville Syrjälä wrote: > > On Thu, Feb 04, 2021 at 04:32:16PM +0100, Daniel Vetter wrote: > > > On Thu, Feb 04, 2021 at 04:04:00AM +0200, Ville Syrjala wrote: > >

Re: [PATCH 1/3] i915/display/intel_dp: Read PCON DSC ENC caps only for DPCD rev >= 1.4

2021-02-05 Thread Ville Syrjälä
t to avoid using stale values */ > - > memset(intel_dp->pcon_dsc_dpcd, 0, sizeof(intel_dp->pcon_dsc_dpcd)); > > + if (intel_dp->dpcd[DP_DPCD_REV] < 0x14) > + return; > + Can't check the spec, but makes sense that this stuff is only valid fo

Re: [PATCH 2/3] drm/dp_helper: Define options for FRL training for HDMI2.1 PCON

2021-02-05 Thread Ville Syrjälä
_ready_hpd); > bool drm_dp_pcon_is_frl_ready(struct drm_dp_aux *aux); > int drm_dp_pcon_frl_configure_1(struct drm_dp_aux *aux, int max_frl_gbps, > - bool concurrent_mode); > + enum dp_pcon_frl_train_mode frl_mode); > int drm_dp_pcon_frl_configure_2(struct drm_dp_aux *aux, int max_frl_mask, > - bool extended_train_mode); > + enum dp_pcon_frl_train_type frl_type); > int drm_dp_pcon_reset_frl_config(struct drm_dp_aux *aux); > int drm_dp_pcon_frl_enable(struct drm_dp_aux *aux); > > -- > 2.29.2 -- Ville Syrjälä Intel ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH 3/3] i915/display: Remove FRL related code from disable DP sequence for older platforms

2021-02-05 Thread Ville Syrjälä
_dp->frl.trained_rate_gbps = 0; If we don't need it in the ddi path we don't need it here. Reviewed-by: Ville Syrjälä > } > > static void g4x_disable_dp(struct intel_atomic_state *state, > -- > 2.29.2 -- Ville Syrjälä Intel _

Re: [Intel-gfx] [PATCH 1/3] i915/display/intel_dp: Read PCON DSC ENC caps only for DPCD rev >= 1.4

2021-02-05 Thread Ville Syrjälä
On Fri, Feb 05, 2021 at 12:07:41PM -0800, Navare, Manasi wrote: > On Fri, Feb 05, 2021 at 09:58:07PM +0200, Ville Syrjälä wrote: > > On Thu, Feb 04, 2021 at 12:18:40PM +0530, Ankit Nautiyal wrote: > > > DP-HDMI2.1 PCON has DSC encoder caps defined in registers 0x92-0x9E. >

Re: [PATCH] drm/vblank: Avoid storing a timestamp for the same frame twice

2021-02-05 Thread Ville Syrjälä
On Fri, Feb 05, 2021 at 06:24:08PM +0200, Ville Syrjälä wrote: > On Fri, Feb 05, 2021 at 04:46:27PM +0100, Daniel Vetter wrote: > > On Thu, Feb 04, 2021 at 05:55:28PM +0200, Ville Syrjälä wrote: > > > On Thu, Feb 04, 2021 at 04:32:16PM +0100, Daniel Vetter wrote: > > > &

Re: [PATCH] drm/vblank: Avoid storing a timestamp for the same frame twice

2021-02-08 Thread Ville Syrjälä
On Mon, Feb 08, 2021 at 10:56:36AM +0100, Daniel Vetter wrote: > On Fri, Feb 05, 2021 at 11:19:19PM +0200, Ville Syrjälä wrote: > > On Fri, Feb 05, 2021 at 06:24:08PM +0200, Ville Syrjälä wrote: > > > On Fri, Feb 05, 2021 at 04:46:27PM +0100, Daniel Vetter wrote: > > > &

Re: [PATCH] drm/vblank: Avoid storing a timestamp for the same frame twice

2021-02-08 Thread Ville Syrjälä
On Mon, Feb 08, 2021 at 06:43:53PM +0100, Daniel Vetter wrote: > On Mon, Feb 8, 2021 at 5:58 PM Ville Syrjälä > wrote: > > > > On Mon, Feb 08, 2021 at 10:56:36AM +0100, Daniel Vetter wrote: > > > On Fri, Feb 05, 2021 at 11:19:19PM +0200, Ville Syrjälä wrote: > >

Re: [PATCH] drm/vblank: Document drm_crtc_vblank_restore constraints

2021-02-09 Thread Ville Syrjälä
e hooked up and > + * &drm_driver.vblank_disable_immediate must be set to indicate the > + * time-stamping functions are race-free against vblank hardware counter > + * increments. Looks good. Might prevent someone from shooting themselves in the foot. Reviewed-by: Ville Sy

Re: [PATCH] drm/vblank: Avoid storing a timestamp for the same frame twice

2021-02-09 Thread Ville Syrjälä
On Tue, Feb 09, 2021 at 11:07:53AM +0100, Daniel Vetter wrote: > On Thu, Feb 04, 2021 at 04:04:00AM +0200, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > drm_vblank_restore() exists because certain power saving states > > can clobber the hardware frame count

Re: [Intel-gfx] [PATCH] Revert "drm/atomic: document and enforce rules around "spurious" EBUSY"

2021-02-10 Thread Ville Syrjälä
re all crtcs that are not logically enabled in the warn? Not sure if that could allow something to slit through that people want it to catch? -- Ville Syrjälä Intel ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [Intel-gfx] [PATCH 18/18] drm/i915/display13: Enabling dithering after the CC1 pipe

2021-02-11 Thread Ville Syrjälä
(3 << 2) > #define PIPEMISC_DITHER_TYPE_SP(0 << 2) > @@ -7668,6 +7668,7 @@ enum { > #define GAMMA_MODE_MODE_12BIT (2 << 0) > #define GAMMA_MODE_MODE_SPLIT (3 << 0) /* ivb-bdw */ > #define GAMMA_MODE_MODE_12BIT_MULTI_SEGMENTED (3

Re: [Intel-gfx] [PATCH] Revert "drm/atomic: document and enforce rules around "spurious" EBUSY"

2021-02-11 Thread Ville Syrjälä
On Thu, Feb 11, 2021 at 04:14:02PM +, Daniel Stone wrote: > On Wed, 10 Feb 2021 at 15:07, Ville Syrjälä > wrote: > > On Wed, Feb 10, 2021 at 01:38:45PM +, Simon Ser wrote: > > > The WARN_ON only happens if allow_modeset == false. If allow_modeset == > > >

Re: [PATCH] drm/i915: Remove unused function pointer typedef long_pulse_detect_func

2021-02-16 Thread Ville Syrjälä
ht we used in when passing it as an argument to intel_get_hpd_pins(), but looks like that's not the case. I guess we should unify this stuff by either removing both these typedefs and adjusting intel_hpd_hotplug_enables() accordingly, or we should use the typedef in intel_get_hpd_pins() as well

Re: [Intel-gfx] [RFC v4 10/11] drm/dp: Extract i915's eDP backlight code into DRM helpers

2021-02-18 Thread Ville Syrjälä
ux->dev is there, could also use dev_dbg et al. in the mean time. They > handle NULL dev gracefully too if the driver didn't set that. Last I looked aux->dev was random. Some drivers point it at the connector vs. some at the the pci/platform device. -- Ville Syrjälä Intel ___

Re: [PATCH v2] drm/vblank: Do not store a new vblank timestamp in drm_vblank_restore()

2021-02-18 Thread Ville Syrjälä
On Thu, Feb 18, 2021 at 06:03:05PM +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > drm_vblank_restore() exists because certain power saving states > can clobber the hardware frame counter. The way it does this is > by guesstimating how many frames were missed purely

Re: [PATCH v2] drm/vblank: Do not store a new vblank timestamp in drm_vblank_restore()

2021-02-19 Thread Ville Syrjälä
On Fri, Feb 19, 2021 at 04:08:09PM +0100, Daniel Vetter wrote: > On Thu, Feb 18, 2021 at 06:03:05PM +0200, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > drm_vblank_restore() exists because certain power saving states > > can clobber the hardware frame count

Re: [PATCH 2/2] drm/dp_mst: Set CLEAR_PAYLOAD_ID_TABLE as broadcast

2021-02-22 Thread Ville Syrjälä
if (req_type == DP_CONNECTION_STATUS_NOTIFY || > - req_type == DP_RESOURCE_STATUS_NOTIFY) > + req_type == DP_RESOURCE_STATUS_NOTIFY || > + req_type == DP_CLEAR_PAYLOAD_ID_TABLE) > hdr->broadcast = 1; Looks correct. Reviewed-by: Ville Syrjälä Hmm. L

Re: [PATCH 1/2] drm/dp_mst: Revise broadcast msg lct & lcr

2021-02-22 Thread Ville Syrjälä
> + > if (mstb->lct > 1) > memcpy(hdr->rad, mstb->rad, mstb->lct / 2); We should also do something about RAD no? > > -- > 2.17.1 > > _______ > dri-devel mailing list > dri-devel@lists.fr

Re: [PATCH 1/2] drm/dp_mst: Revise broadcast msg lct & lcr

2021-02-22 Thread Ville Syrjälä
On Mon, Feb 22, 2021 at 07:02:03PM +0200, Ville Syrjälä wrote: > On Mon, Feb 22, 2021 at 12:00:26PM +0800, Wayne Lin wrote: > > [Why & How] > > According to DP spec, broadcast message LCT equals to 1 and LCR equals > > to 6. Current implementation is incorrect. Fix i

Re: [PATCH] fbdev: atyfb: add stubs for aty_{ld,st}_lcd()

2021-02-22 Thread Ville Syrjälä
nt index, u32 val, const struct atyfb_par *par) > +{ } > + > +u32 aty_ld_lcd(int index, const struct atyfb_par *par) > +{ > + return 0; > +} > #endif /* defined(CONFIG_PMAC_BACKLIGHT) || defined > (CONFIG_FB_ATY_GENERIC_LCD) */ > > #ifdef CONFIG_FB_ATY_GENERI

Re: [PATCH 2/2] drm/dp_mst: Set CLEAR_PAYLOAD_ID_TABLE as broadcast

2021-02-23 Thread Ville Syrjälä
On Tue, Feb 23, 2021 at 05:32:36AM +, Lin, Wayne wrote: > [AMD Public Use] > > > -Original Message- > > From: Ville Syrjälä > > Sent: Tuesday, February 23, 2021 1:00 AM > > To: Lin, Wayne > > Cc: dri-devel@lists.freedesktop.org; Brol,

Re: [PATCH 1/2] drm/dp_mst: Revise broadcast msg lct & lcr

2021-02-23 Thread Ville Syrjälä
On Tue, Feb 23, 2021 at 05:32:32AM +, Lin, Wayne wrote: > [AMD Public Use] > > > -Original Message- > > From: Ville Syrjälä > > Sent: Tuesday, February 23, 2021 1:09 AM > > To: Lin, Wayne > > Cc: Brol, Eryk ; Zhuo, Qingqing ; > > sta...@v

Re: [PATCH] fbdev: atyfb: add stubs for aty_{ld,st}_lcd()

2021-02-24 Thread Ville Syrjälä
On Wed, Feb 24, 2021 at 11:59:45AM -0800, Randy Dunlap wrote: > On 2/22/21 9:44 AM, Ville Syrjälä wrote: > > On Sun, Feb 21, 2021 at 07:28:53PM -0800, Randy Dunlap wrote: > >> Fix build errors when these functions are not defined. > >> > >> ../drivers/video

Re: [PATCH -next] fbdev: atyfb: use LCD management functions for PPC_PMAC also

2021-02-26 Thread Ville Syrjälä
On Thu, Feb 25, 2021 at 04:05:37PM -0800, Randy Dunlap wrote: > Include PPC_PMAC in the configs that use aty_ld_lcd() and > aty_st_lcd() implementations so that the PM code may work > correctly for PPC_PMAC. > > Suggested-by: Ville Syrjälä > Signed-off-by: Randy Dunlap > Cc

Re: [WARNING] v5.12-rc1 in intel_pipe_disable tracepoint

2021-03-01 Thread Ville Syrjälä
c01064ab R08: 55d68f44ba60 R09: > R10: 55d68f44ba60 R11: 0246 R12: 55d68f5e0010 > R13: 000e R14: 0000 R15: 55d68e2275c0 > ---[ end trace d18216ba28a2f0e8 ]--- > > ___ &g

Re: [PATCH resend 2/2] drm/i915/display: Make vlv_find_free_pps() skip pipes which are in use for non DP purposes

2021-03-02 Thread Ville Syrjälä
outputs() thinks port B may be used for eDP and calls > + * intel_dp_init() to check. > + */ > + for (pipe = PIPE_A; pipe <= PIPE_B; pipe++) { > + if (!(pipes & (1 << pipe))) > + continue; > + > + if (intel_de

Re: [PATCH -next v2] fbdev: atyfb: use LCD management functions for PPC_PMAC also

2021-03-03 Thread Ville Syrjälä
On Fri, Feb 26, 2021 at 09:30:08AM -0800, Randy Dunlap wrote: > Include PPC_PMAC in the configs that use aty_ld_lcd() and > aty_st_lcd() implementations so that the PM code may work > correctly for PPC_PMAC. > > Suggested-by: Ville Syrjälä > Signed-off-by: Randy Dunlap > Cc

Re: [Intel-gfx] [WARNING] v5.12-rc1 in intel_pipe_disable tracepoint

2021-03-04 Thread Ville Syrjälä
On Mon, Mar 01, 2021 at 07:20:59PM +0200, Ville Syrjälä wrote: > On Mon, Mar 01, 2021 at 11:59:46AM -0500, Steven Rostedt wrote: > > > > On my test box with latest v5.12-rc1, running with all trace events > > enabled, I consistently trigger this warning. > > > &g

Re: [PATCH v3 1/3] drm/dp_helper: Define options for FRL training for HDMI2.1 PCON

2021-03-10 Thread Ville Syrjälä
ed the register masks for these options, instead of enum. (Ville) > > Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä > --- > drivers/gpu/drm/drm_dp_helper.c | 24 ++-- > drivers/gpu/drm/i915/display/intel_dp.c | 10 -- > inclu

Re: [Intel-gfx] [RFC v1 1/6] drm/edid: make a number of functions, parameters and variables const

2021-03-10 Thread Ville Syrjälä
nclude/drm/drm_displayid.h > +++ b/include/drm/drm_displayid.h > @@ -93,11 +93,11 @@ struct displayid_detailed_timing_block { > }; > > #define for_each_displayid_db(displayid, block, idx, length) \ > - for ((block) = (struct displayid_b

Re: [Intel-gfx] [RFC v1 2/6] drm/displayid: add separate drm_displayid.c

2021-03-10 Thread Ville Syrjälä
; should be needed solely within drm.ko. > > No functional changes. > > Signed-off-by: Jani Nikula Reviewed-by: Ville Syrjälä > --- > drivers/gpu/drm/Makefile| 2 +- > drivers/gpu/drm/drm_displayid.c | 59 +++

Re: [RFC v1 3/6] drm/displayid: add new displayid section/block iterators

2021-03-10 Thread Ville Syrjälä
NULL; > + iter->edid = NULL; > + return NULL; > + } > + > + /* next block in section */ > + iter->idx += sizeof(struct displayid_block) + block->num_bytes; ditto Loo

  1   2   3   4   5   6   7   8   9   10   >