Re: [Intel-gfx] [PATCH v3 3/8] drm/i915: add new helpers for accessing stepping info

2021-03-26 Thread Jani Nikula
On Fri, 26 Mar 2021, Jani Nikula wrote: > On Thu, 25 Mar 2021, "Souza, Jose" wrote: >> On Mon, 2021-03-08 at 15:56 +0200, Jani Nikula wrote: >>> Add new runtime info field for stepping. Add new helpers for accessing >>> them. As we'll be

Re: [Intel-gfx] [PULL] topic/i915-gem-next

2021-03-26 Thread Jani Nikula
in drm-next they will backmerge, and the -gt-next tree is open for > business again. I guess worth noting is that drm-intel-gt-next is now rebased on top of current drm-next. Since the topic branch is part of drm-tip, I presume the conflicts are manageable. BR, Jani. -- Jani Nikula, Intel Ope

Re: [Intel-gfx] [PATCH v4 0/7] drm/i915: refactor KBL/TGL/ADLS stepping scheme

2021-03-29 Thread Jani Nikula
On Fri, 26 Mar 2021, Jani Nikula wrote: > v4 of [1], minor tweaks to address review. > > BR, > Jani. > > [1] https://patchwork.freedesktop.org/series/87323/ Pushed to drm-intel-next, thanks for the reviews. BR, Jani. > > > Jani Nikula (7): > drm/i915: split o

[Intel-gfx] [PATCH v2 0/8] drm/edid: overhaul displayid iterator

2021-03-29 Thread Jani Nikula
v2 of [1], addressing Ville's review comments, and adding a couple of extra patches on top. BR, Jani. [1] https://patchwork.freedesktop.org/series/87802/ Jani Nikula (8): drm/edid: make a number of functions, parameters and variables const drm/displayid: add separate drm_displayid.c

[Intel-gfx] [PATCH v2 1/8] drm/edid: make a number of functions, parameters and variables const

2021-03-29 Thread Jani Nikula
If there's no need to change it, it should be const. There's more to be done, but start off with changes that make follow-up work easier. No functional changes. Reviewed-by: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_ed

[Intel-gfx] [PATCH v2 2/8] drm/displayid: add separate drm_displayid.c

2021-03-29 Thread Jani Nikula
lä Signed-off-by: Jani Nikula --- drivers/gpu/drm/Makefile| 2 +- drivers/gpu/drm/drm_displayid.c | 59 + drivers/gpu/drm/drm_edid.c | 58 ++-- include/drm/drm_displayid.h | 8 + include/drm/drm_edid.h

[Intel-gfx] [PATCH v2 3/8] drm/displayid: add new displayid section/block iterators

2021-03-29 Thread Jani Nikula
ille) - remove __ prefix from displayid_iter_block Reviewed-by: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_displayid.c | 74 + include/drm/drm_displayid.h | 18 2 files changed, 92 insertions(+) diff --git a/drivers/gpu/drm/drm_displayid.c b/dr

[Intel-gfx] [PATCH v2 4/8] drm/edid: use the new displayid iterator for detailed modes

2021-03-29 Thread Jani Nikula
Neatly reduce displayid boilerplate in code. No functional changes. Reviewed-by: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_edid.c | 23 ++- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm

[Intel-gfx] [PATCH v2 5/8] drm/edid: use the new displayid iterator for finding CEA extension

2021-03-29 Thread Jani Nikula
Neatly reduce displayid boilerplate in code. No functional changes. Reviewed-by: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_edid.c | 25 + 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm

[Intel-gfx] [PATCH v2 6/8] drm/edid: use the new displayid iterator for tile info

2021-03-29 Thread Jani Nikula
Neatly reduce displayid boilerplate in code. Remove excessive debug logging while at it, no other functional changes. The old displayid iterator becomes unused; remove it as well as make drm_find_displayid_extension() static. Reviewed-by: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers

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

2021-03-29 Thread Jani Nikula
The DisplayID specifications explicitly call out 0 as a valid payload length for data blocks. The mere presence of a data block, or the information coded in the block specific data (bits 7:3 in offset 1), may be enough to convey the necessary information. Signed-off-by: Jani Nikula --- drivers

[Intel-gfx] [PATCH v2 8/8] drm/displayid: rename displayid_hdr to displayid_header

2021-03-29 Thread Jani Nikula
Avoid any confusion with High Dynamic Range. No functional changes. Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_displayid.c | 10 +- include/drm/drm_displayid.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/drm_displayid.c b/drivers

Re: [Intel-gfx] [PATCH v5 1/2] drm/dp_helper: Define options for FRL training for HDMI2.1 PCON

2021-03-31 Thread Jani Nikula
On Fri, 26 Mar 2021, Maxime Ripard wrote: > Hi, > > On Fri, Mar 26, 2021 at 11:47:58AM +0200, Jani Nikula wrote: >> On Tue, 23 Mar 2021, Ankit Nautiyal wrote: >> > Currently the FRL training mode (Concurrent, Sequential) and >> > training type (Normal, Exten

Re: [Intel-gfx] [PATCH v2 0/2] HDCP 2.2 DP errata

2021-03-31 Thread Jani Nikula
On Thu, 25 Mar 2021, Jani Nikula wrote: > On Wed, 24 Mar 2021, Anshuman Gupta wrote: >> HDCP DP 2.2 errata is part of HDCP DP 2.3 specs >> as well. >> >> Anshuman Gupta (2): >> drm/i915/hdcp: Add DP HDCP2.2 timeout to read entire msg >> drm/hdc

Re: [Intel-gfx] [PATCH v2 1/2] drm/i915/hdcp: Add DP HDCP2.2 timeout to read entire msg

2021-03-31 Thread Jani Nikula
} >> +} >> + >> byte = buf; >> *byte = msg_id; >> >> diff --git a/include/drm/drm_hdcp.h b/include/drm/drm_hdcp.h >> index ac22c246542a..2b165a0f434f 100644 >> --- a/include/drm/drm_hdcp.h >> +++ b/include/drm/drm_hdcp.h >>

Re: [Intel-gfx] [PATCH v2 0/8] drm/edid: overhaul displayid iterator

2021-03-31 Thread Jani Nikula
On Mon, 29 Mar 2021, Jani Nikula wrote: > v2 of [1], addressing Ville's review comments, and adding a couple of > extra patches on top. > > BR, > Jani. > > [1] https://patchwork.freedesktop.org/series/87802/ Pushed to drm-misc-next, with Ville's review and Maxim

[Intel-gfx] [PULL] drm-intel-next

2021-04-01 Thread Jani Nikula
dst_stride!=width/height drm/i915: Fix docbook header for __intel_runtime_pm_get_if_active() Jani Nikula (23): drm/i915: remove unused ADLS_REVID_* macros drm/i915/bios: mass convert dev_priv to i915 drm/i915/bios: store bdb version in i915 drm/i915/bios: re

[Intel-gfx] [PATCH] drm/i915/hdmi: convert intel_hdmi_to_dev to intel_hdmi_to_i915

2021-04-01 Thread Jani Nikula
Prefer i915 over drm pointer. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_hdmi.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_hdmi.c b/drivers/gpu/drm/i915/display/intel_hdmi.c index d69f0a6dc26d

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Extract intel_adjusted_rate()

2021-04-01 Thread Jani Nikula
dst_w * dst_h); > } > > +unsigned int intel_plane_pixel_rate(const struct intel_crtc_state > *crtc_state, > + const struct intel_plane_state *plane_state) > +{ > + if (!plane_state->uapi.visible) Potential functional change not covere

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Reuse intel_adjusted_rate() for pfit pixel rate adjustment

2021-04-01 Thread Jani Nikula
e same thing after the division? BR, Jani. > - if (pipe_h < pfit_h) > - pipe_h = pfit_h; > - > - if (drm_WARN_ON(crtc_state->uapi.crtc->dev, > - !pfit_w || !pfit_h)) > - return pixel_rate; > - > - return

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Split out glk_plane_min_cdclk()

2021-04-01 Thread Jani Nikula
On Tue, 30 Mar 2021, Ville Syrjala wrote: > From: Ville Syrjälä > > Split the glk+ stuff into it's own version of the .min_cdclk() > vfunc. > > Signed-off-by: Ville Syrjälä For the series, Reviewed-by: Jani Nikula > --- > .../drm/i915/display/

Re: [Intel-gfx] [PATCH v2 05/20] drm/dp: Add backpointer to drm_device in drm_dp_aux

2021-04-01 Thread Jani Nikula
c; > struct device *dev; > + struct drm_device *drm_dev; Bikeshed, I would probably have called it just drm for brevity, but no strong feelings. BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center ___ Intel-gfx mailing lis

Re: [Intel-gfx] [PATCH v2 00/20] drm: Use new DRM printk funcs (like drm_dbg_*()) in DP helpers

2021-04-01 Thread Jani Nikula
drm_dp_mst_topology_mgr > to drm_dp_get_vc_payload_bw()" as this was the style in use > previously, and 2 chars over the limit looks nicer then trying to > line-wrap this > * Don't rewrap comments For anything touching i915, and for merging via whichever tree or branch see

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Reuse intel_adjusted_rate() for pfit pixel rate adjustment

2021-04-01 Thread Jani Nikula
On Thu, 01 Apr 2021, Ville Syrjälä wrote: > On Thu, Apr 01, 2021 at 03:55:20PM +0300, Jani Nikula wrote: >> On Tue, 30 Mar 2021, Ville Syrjala wrote: >> > From: Ville Syrjälä >> > >> > Replace the hand rolled pfit downscale calculations with >> > i

Re: [Intel-gfx] [PATCH] pwm: Rename pwm_get_state() to better reflect its semantic

2021-04-06 Thread Jani Nikula
by the consumer (opposed to what was actually implemented in > hardware in reply to the last request). To make this semantic obvious > rename the function. > > Signed-off-by: Uwe Kleine-König > --- > drivers/gpu/drm/i915/display/intel_panel.c | 4 +-- Acked-by: Jani Nikula -

Re: [Intel-gfx] [PATCH] drm/i915/sysfs: convert snprintf to sysfs_emit

2021-04-06 Thread Jani Nikula
gt_max_freq_mhz_store(struct device *kdev, > @@ -387,8 +382,7 @@ static ssize_t gt_min_freq_mhz_show(struct device *kdev, > struct device_attribute > struct drm_i915_private *dev_priv = kdev_minor_to_i915(kdev); > struct intel_rps *rps = &dev_priv->gt.rps; > > -

Re: [Intel-gfx] [PATCH] drm/i915/dpcd_bl: Don't try vesa interface unless specified by VBT

2021-04-06 Thread Jani Nikula
On Tue, 23 Mar 2021, Lyude Paul wrote: > On Tue, 2021-03-23 at 16:06 +0200, Jani Nikula wrote: >> On Thu, 18 Mar 2021, Lyude Paul wrote: >> > Actually-NAK this. I just realized I've been misreading the bug and that >> > this >> > doesn't actually s

[Intel-gfx] [RFC] drm/i915/backlight: switch to unique backlight device names

2021-04-07 Thread Jani Nikula
ce or two different devices. Cc: Ville Syrjälä Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/2794 Signed-off-by: Jani Nikula --- Is the name "intel_backlight" part of the UABI? In theory the userspace should only look at the names and types available under /sys/class/bac

Re: [Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/backlight: switch to unique backlight device names

2021-04-07 Thread Jani Nikula
> > * Linux: CI_DRM_9931 -> Patchwork_19897 > > CI-20190529: 20190529 > CI_DRM_9931: 88d3a98ecbb1264e9046972e1103ac11b573bf83 @ > git://anongit.freedesktop.org/gfx-ci/linux > IGT_6059: fae783adafb5face387d2df7a983de5c1d752b45 @ > git://anongit.freedesktop.org/xorg/app/intel-gpu-tools > Patchwork_19897: 9a58db04f241c83503c0a25dd4d30b78424d3662 @ > git://anongit.freedesktop.org/gfx-ci/linux > > > == Linux commits == > > 9a58db04f241 drm/i915/backlight: switch to unique backlight device names > > == Logs == > > For more details see: > https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19897/index.html -- Jani Nikula, Intel Open Source Graphics Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH v1 1/1] drm/i915: Include only needed headers in ascii85.h

2021-04-07 Thread Jani Nikula
On Wed, 07 Apr 2021, Andy Shevchenko wrote: > The ascii85.h is user of exactly two headers, i.e. math.h and types.h. > There is no need to carry on entire kernel.h. > > Signed-off-by: Andy Shevchenko That's hardly drm/i915 specific! Reviewed-by: Jani Nikula But who's g

Re: [Intel-gfx] [PATCH v2 16/50] drm/i915/xelpd: Add rc_qp_table for rcparams calculation

2021-04-07 Thread Jani Nikula
res, buf_i, bpp_i; > > if (vdsc_cfg->slice_height >= 8) > rc->first_line_bpg_offset = 12 + DIV_ROUND_UP((9 * min(34, > vdsc_cfg->slice_height - 8)), 100); > @@ -409,7 +410,26 @@ calculate_rc_params(struct rc_parameters *rc, &g

Re: [Intel-gfx] [PATCH v2 00/20] drm: Use new DRM printk funcs (like drm_dbg_*()) in DP helpers

2021-04-08 Thread Jani Nikula
t, and are all in sync, it's only the drm-next -> drm-misc-next backmerge that's still needed. BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop

Re: [Intel-gfx] [PATCH 01/12] drm/i915: rename display.version to display.ver

2021-04-12 Thread Jani Nikula
; versus "version" but Jani suggested using the > full word "version" when we were first adding this, so you should > probably get an ack from him. For display version there were precious few places where we actually needed to refer to it, so I thought the longer ve

Re: [Intel-gfx] [PATCH 02/12] drm/i915: add macros for graphics and media versions

2021-04-12 Thread Jani Nikula
16c75927a12..405883a8cc84 100644 > --- a/drivers/gpu/drm/i915/intel_device_info.h > +++ b/drivers/gpu/drm/i915/intel_device_info.h > @@ -162,6 +162,9 @@ enum intel_ppgtt_type { > struct intel_device_info { > u16 gen_mask; > > + u8 graphics_ver; > + u8 media_ver; > + > u8 gen; > u8 gt; /* GT number, 0 if undefined */ > intel_engine_mask_t platform_engine_mask; /* Engines supported by the > HW */ -- Jani Nikula, Intel Open Source Graphics Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 02/12] drm/i915: add macros for graphics and media versions

2021-04-12 Thread Jani Nikula
On Mon, 12 Apr 2021, Jani Nikula wrote: > On Wed, 07 Apr 2021, Lucas De Marchi wrote: >> Like it was done in >> commit 01eb15c9165e ("drm/i915: Add DISPLAY_VER() and related macros") >> add the correspondent macros for graphics and media. Going forward we >>

Re: [Intel-gfx] [PATCH 18/19] drm/i915/gtt: map the PD up front

2021-04-12 Thread Jani Nikula
lly in the mmio macros), and it would be a terrible > flag day. FWIW, we had the dev_priv/dev macro trickery for a while to not have that flag day conversion, until everything used i915 or &i915->drm. But we got rid of it afterwards. BR, Jani. -- Jani Nikula, I

Re: [Intel-gfx] [PATCH 3/3] drm/i915/display: remove strap checks from gen 9

2021-04-13 Thread Jani Nikula
t(dev_priv, PORT_F); > - /* > - * On SKL we don't have a way to detect DDI-E so we rely on VBT. > - */ > - if (IS_DISPLAY_VER(dev_priv, 9) > - intel_ddi_init(dev_priv, PORT_E); > } else if (HAS_PCH_SPLIT(dev_priv)) { > int found; -- Jani Nikula, Intel Open Source Graphics Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH v2 01/12] drm/i915/display: use DISPLAY_VER() on remaining users

2021-04-13 Thread Jani Nikula
gned-off-by: Lucas De Marchi Reviewed-by: Jani Nikula > --- > drivers/gpu/drm/i915/display/intel_audio.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/display/intel_audio.c > b/drivers/gpu/drm/i915/display/intel_audio.c > index

Re: [Intel-gfx] [PATCH v2 02/12] drm/i915: rename display.version to display.ver

2021-04-13 Thread Jani Nikula
same way use used "gen" rather than "generation", use "ver" > instead of "version". > > Signed-off-by: Lucas De Marchi > Reviewed-by: José Roberto de Souza > Acked-by: Jani Nikula Reviewed-by: Jani Nikula > --- > drivers/gpu/drm/i

Re: [Intel-gfx] [PATCH v2 04/12] drm/i915: add macros for graphics and media versions

2021-04-13 Thread Jani Nikula
)->caps) > > -#define INTEL_GEN(dev_priv) (INTEL_INFO(dev_priv)->gen) > #define INTEL_DEVID(dev_priv)(RUNTIME_INFO(dev_priv)->device_id) > > +/* > + * Deprecated: this will be replaced by individual IP checks: > + * GRAPHICS_VER(), MEDIA_VER and DISPLAY_VER() Nitpi

Re: [Intel-gfx] [PATCH v2 03/12] drm/i915/display: rename display version macros

2021-04-13 Thread Jani Nikula
E1; @@ > - IS_DISPLAY_VER(dev_priv, E1) > + DISPLAY_VER(dev_priv) == E1 > > @@ expression dev_priv, from, until; @@ > - IS_DISPLAY_RANGE(dev_priv, from, until) > + IS_DISPLAY_VER(dev_priv, from, until) > Thanks for summing up the discussion in a deligh

Re: [Intel-gfx] [PATCH v2 05/12] drm/i915/gt: replace gen use in intel_engine_cs

2021-04-13 Thread Jani Nikula
t; as is for automatic conversion later. > > Signed-off-by: Lucas De Marchi Reviewed-by: Jani Nikula > --- > drivers/gpu/drm/i915/gt/intel_engine_cs.c| 40 ++-- > drivers/gpu/drm/i915/gt/selftest_engine_cs.c | 18 - > 2 files changed, 29 insertions(+), 29 d

Re: [Intel-gfx] [PATCH v2 06/12] drm/i915/selftests: replace unused mask with simple version

2021-04-13 Thread Jani Nikula
On Mon, 12 Apr 2021, Lucas De Marchi wrote: > Since its introduction 2 years ago, we never used the mask to span more > than one gen. Replace gen_mask a single number and start using the new > GRAPHICS_VER(). > > Signed-off-by: Lucas De Marchi Reviewed-by: Jani Nikula > ---

Re: [Intel-gfx] [PATCH v2 07/12] drm/i915/selftests: eliminate use of gen_mask

2021-04-13 Thread Jani Nikula
6, 7, > 0x38, > }, > { > "RING_MI_MODE", > - INTEL_GEN_MASK(8, BITS_PER_LONG), > + 8, U8_MAX, Makes me wonder if we should add VER_MAX. Can be do

Re: [Intel-gfx] [PATCH v2 08/12] drm/i915: finish removal of gen_mask

2021-04-13 Thread Jani Nikula
,10 @@ static inline struct drm_i915_private > *pdev_to_i915(struct pci_dev *pdev) > * GRAPHICS_VER(), MEDIA_VER and DISPLAY_VER() > */ > #define INTEL_GEN(dev_priv) (INTEL_INFO(dev_priv)->gen) > +/* > + * Deprecated: use IS_GRAPHICS_VER() > + */ Nitpick, I think this

Re: [Intel-gfx] [PATCH v2 09/12] drm/i915: eliminate remaining uses of intel_device_info->gen

2021-04-13 Thread Jani Nikula
u64 target_addr) > { > - const unsigned int gen = eb->reloc_cache.gen; > + const unsigned int ver = eb->reloc_cache.graphics_ver; Nitpick, I think I'd like to use the more specific name throughout, also for local variables, i.e. graphics_ver, media_ver, or

Re: [Intel-gfx] [PATCH v2 10/12] drm/i915: finish removal of gen from intel_device_info

2021-04-13 Thread Jani Nikula
* Deprecated: use IS_GRAPHICS_VER() > */ > #define IS_GEN_RANGE(dev_priv, s, e) IS_GRAPHICS_VER(dev_priv, (s), (e)) > +/* > + * Deprecated: use GRAPHICS_VER() > + */ Nitpick, also mention media and display variants here. Reviewed-by: Jani Nikula > +#define IS_GEN(dev_priv, n)

Re: [Intel-gfx] [PATCH v2 11/12] drm/i915: add media and display versions to device_info print

2021-04-13 Thread Jani Nikula
On Mon, 12 Apr 2021, Lucas De Marchi wrote: > Since we are now converting from a single gen version to graphics_ver, > media_ver and display_ver, add the last 2 when printing the device info. > > Signed-off-by: Lucas De Marchi Reviewed-by: Jani Nikula > --- > dr

Re: [Intel-gfx] [PATCH v2 12/12] drm/i915: split dgfx features from gen 12

2021-04-13 Thread Jani Nikula
GEN() macro. > > Signed-off-by: Lucas De Marchi Reviewed-by: Jani Nikula > --- > drivers/gpu/drm/i915/i915_pci.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/i915/i915_pci.c b/drivers/gpu/drm/i915/i915_pci.c > index 1453c1436f31.

Re: [Intel-gfx] [PATCH v2 00/12] drm/i915: Extend GEN renames to the rest of the driver

2021-04-13 Thread Jani Nikula
, 2) don't revert it but cherry-pick it to the topic branch also. Cc: Joonas and Daniel for their input on this as well. BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 0/5] drm/i915: Fix glk display version regressions

2021-04-13 Thread Jani Nikula
ay.c | 3 ++- > drivers/gpu/drm/i915/display/intel_dp_link_training.c | 2 +- > drivers/gpu/drm/i915/display/intel_fbc.c | 2 +- > drivers/gpu/drm/i915/display/skl_universal_plane.c| 2 +- > 5 files changed, 8 insertions(+), 7 deletions(-) -- Jani Nikula, Intel Open Sourc

Re: [Intel-gfx] [PATCH v2 00/12] drm/i915: Extend GEN renames to the rest of the driver

2021-04-14 Thread Jani Nikula
On Tue, 13 Apr 2021, Jani Nikula wrote: > On Mon, 12 Apr 2021, Lucas De Marchi wrote: >> Like was done for the display part that parted ways with INTEL_GEN(), >> replacing with DISPLAY_VER(), do a similar conversion for the rest of >> the driver. >> >> v1.1: Remo

Re: [Intel-gfx] [PATCH 1/5] drm/i915: Restore lost glk FBC 16bpp w/a

2021-04-14 Thread Jani Nikula
: Matt Roper > Fixes: 2b5a4562edd0 ("drm/i915/display: Simplify GLK display version tests") I think this should be: Fixes: 005e95377249 ("drm/i915/display: Eliminate most usage of INTEL_GEN()") Right? Reviewed-by: Jani Nikula > Signed-off-by: Ville Syrjälä > --- > driv

Re: [Intel-gfx] [PATCH 1/5] drm/i915: Restore lost glk FBC 16bpp w/a

2021-04-14 Thread Jani Nikula
On Wed, 14 Apr 2021, Jani Nikula wrote: > On Mon, 12 Apr 2021, Ville Syrjala wrote: >> From: Ville Syrjälä >> >> We lost the FBC 16bpp 512byte stride requirement on glk when >> we switched from display version 9 to 10. Restore the w/a to >> avoid enabling FBC w

Re: [Intel-gfx] [PATCH 2/5] drm/i915: Restore lost glk ccs w/a

2021-04-14 Thread Jani Nikula
on tests") > Signed-off-by: Ville Syrjälä Reviewed-by: Jani Nikula > --- > drivers/gpu/drm/i915/display/intel_display.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/display/intel_display.c > b/drivers/gpu/drm/i915/displa

Re: [Intel-gfx] [PATCH 3/5] drm/i915: Disable LTTPR detection on GLK once again

2021-04-14 Thread Jani Nikula
ion. > > Cc: Matt Roper > Fixes: 2b5a4562edd0 ("drm/i915/display: Simplify GLK display version tests") > Signed-off-by: Ville Syrjälä Reviewed-by: Jani Nikula > --- > drivers/gpu/drm/i915/display/intel_dp_link_training.c | 2 +- > 1 file changed, 1 insertion(+

Re: [Intel-gfx] [PATCH 4/5] drm/i915: Don't use {skl, cnl}_hpd_pin() for bxt/glk

2021-04-14 Thread Jani Nikula
ut I find it a bit less confusing when bxt/glk are > fully separated from the logic for the other platforms. > > Signed-off-by: Ville Syrjälä The whole hpd pin code could use a relocation from intel_ddi.c and some overhaul. But first things first, Reviewed-by: Jani Nikula >

Re: [Intel-gfx] [PATCH 5/5] drm/i915: Remove a few redundant glk checks

2021-04-14 Thread Jani Nikula
On Mon, 12 Apr 2021, Ville Syrjala wrote: > From: Ville Syrjälä > > Now that glk display version is 10 we can drop a few more glk checks. > > Signed-off-by: Ville Syrjälä Reviewed-by: Jani Nikula > --- > drivers/gpu/drm/i915/display/intel_ddi.c | 2 +- &g

Re: [Intel-gfx] [PATCH 0/5] drm/i915: Fix glk display version regressions

2021-04-14 Thread Jani Nikula
On Tue, 13 Apr 2021, Jani Nikula wrote: > On Mon, 12 Apr 2021, Ville Syrjala wrote: >> From: Ville Syrjälä >> >> Fix a couple of regressions due to the glk display version 9->10 >> change. I *think* all the ones that slipped through involved >> either DIS

Re: [Intel-gfx] [PATCH v2 00/12] drm/i915: Extend GEN renames to the rest of the driver

2021-04-14 Thread Jani Nikula
On Wed, 14 Apr 2021, Jani Nikula wrote: > On Tue, 13 Apr 2021, Jani Nikula wrote: >> On Mon, 12 Apr 2021, Lucas De Marchi wrote: >>> Like was done for the display part that parted ways with INTEL_GEN(), >>> replacing with DISPLAY_VER(), do a similar conversion for

Re: [Intel-gfx] [PATCH v2 08/12] drm/i915: finish removal of gen_mask

2021-04-14 Thread Jani Nikula
it from the mask. We'd still be retaining the range macros as IS_GRAPHICS_VER(), IS_MEDIA_VER() and IS_DISPLAY_VER(), although more for clarity than for any other reason. BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 2/8] drm/i915: Rewrite the FBC tiling check a bit

2021-04-14 Thread Jani Nikula
I915_FORMAT_MOD_Y_TILED: > + return DISPLAY_VER(dev_priv) >= 9; So this adds the version check on I915_FORMAT_MOD_Y_TILED which didn't have it before? BR, Jani. > + case I915_FORMAT_MOD_X_TILED: > return true; >

Re: [Intel-gfx] [PATCH v2 08/12] drm/i915: finish removal of gen_mask

2021-04-15 Thread Jani Nikula
On Wed, 14 Apr 2021, Tvrtko Ursulin wrote: > On 14/04/2021 14:13, Jani Nikula wrote: >> On Wed, 14 Apr 2021, Tvrtko Ursulin wrote: >>> On 13/04/2021 06:09, Lucas De Marchi wrote: >>>> Now that it's not used anywhere, remove it from struct >>>> int

Re: [Intel-gfx] [PATCH 00/11] drm/i915/adl_p: Add support for Display Page Tables

2021-04-15 Thread Jani Nikula
/intel_gtt.h | 5 + > drivers/gpu/drm/i915/i915_drv.h | 1 + > drivers/gpu/drm/i915/i915_pci.c | 22 + > drivers/gpu/drm/i915/i915_reg.h | 2 + > drivers/gpu/drm/i915/intel_device_info.c | 1 + > drivers/gpu/drm/i915/intel

Re: [Intel-gfx] [PATCH v19 6/6] drm/i915/selftests: Rename functions names

2021-04-16 Thread Jani Nikula
h S3RST any S3 may become S4! */ > simulate_hibernate(i915); > > - pm_resume(i915); > + i915_pm_resume(i915); > > err = switch_to_context(ctx); > out: > @@ -192,7 +192,7 @@ static int igt_gem_hibernate(void *arg) > /* Here be dragons! */ &g

[Intel-gfx] [PULL] topic/intel-gen-to-ver -> drm-intel-next and drm-intel-gt-next

2021-04-19 Thread Jani Nikula
915/intel_pm.c| 50 - drivers/gpu/drm/i915/intel_uncore.c| 8 ++- drivers/gpu/drm/i915/selftests/intel_uncore.c | 8 ++- drivers/gpu/drm/i915/selftests/mock_gem_device.c | 2 +- 51 files changed, 376 inser

Re: [Intel-gfx] [PATCH 0/8] drm/i915: dbuf cleanups

2021-04-20 Thread Jani Nikula
On Fri, 16 Apr 2021, Ville Syrjala wrote: > From: Ville Syrjälä > > A bunch of drive-by-cleanup While I was reading through > the dbuf code. Good stuff. On the series, Reviewed-by: Jani Nikula Some thoughts provoked by the series: * Time to start splitting up dbuf/ddb/wm stuff f

[Intel-gfx] [PATCH] drm/i915/selftests: Rename pm_ prefixed functions names

2021-04-20 Thread Jani Nikula
all pm_ prefixed functions in the file Signed-off-by: Hsin-Yi Wang Reported-by: kernel test robot Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/selftests/i915_gem.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/i915/selftests

Re: [Intel-gfx] [PATCH] drm/i915/selftests: Rename pm_ prefixed functions names

2021-04-20 Thread Jani Nikula
On Tue, 20 Apr 2021, Rodrigo Vivi wrote: > On Tue, Apr 20, 2021 at 04:08:53PM +0300, Jani Nikula wrote: >> From: Hsin-Yi Wang >> >> pm_resume and pm_suspend might be conflict with the ones defined in >> include/linux/suspend.h. Rename all pm_* to igt_pm_* in selft

Re: [Intel-gfx] [PATCH] drm/i915/selftests: Rename pm_ prefixed functions names

2021-04-21 Thread Jani Nikula
On Tue, 20 Apr 2021, Rodrigo Vivi wrote: > On Tue, Apr 20, 2021 at 05:41:47PM +0300, Jani Nikula wrote: >> On Tue, 20 Apr 2021, Rodrigo Vivi wrote: >> > On Tue, Apr 20, 2021 at 04:08:53PM +0300, Jani Nikula wrote: >> >> From: Hsin-Yi Wang >> >> >&g

Re: [Intel-gfx] [PATCH] drm/i915: set min brightness for aux backlight interface.

2021-04-21 Thread Jani Nikula
tract the dpcd backlight code from i915 to drm helpers, and I think the min brightness should be handled after or in connection with that change. BR, Jani. > > Cc: Jani Nikula > Cc: Ville Syrjala > Cc: Lyude Paul > Cc: Cooper Chiou > > Signed-off-by: Lee Shawn C &g

Re: [Intel-gfx] [PULL] gvt-next-fixes

2021-04-21 Thread Jani Nikula
ssible check > > drivers/gpu/drm/i915/gvt/cmd_parser.c | 5 - > drivers/gpu/drm/i915/gvt/gtt.c | 6 -- > drivers/gpu/drm/i915/gvt/gvt.c| 8 > 3 files changed, 4 insertions(+), 15 deletions(-) -- Jani Nikula, Intel Open Source Graphics Center

Re: [Intel-gfx] [PATCH v2 00/50] Introduce Alder Lake-P

2021-04-21 Thread Jani Nikula
we can merge it to both drm-intel-next and drm-intel-gt-next. BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 00/11] drm/i915/adl_p: Add support for Display Page Tables

2021-04-21 Thread Jani Nikula
On Thu, 15 Apr 2021, Jani Nikula wrote: > On Wed, 14 Apr 2021, Imre Deak wrote: >> Alder Lake-P adds a new Display Page Table hardware structure, mapping >> tiled framebuffer pages to the display engine, reducing the address >> space required in GGTT for these framebuffers

Re: [Intel-gfx] [PATCH 00/11] drm/i915/adl_p: Add support for Display Page Tables

2021-04-21 Thread Jani Nikula
On Wed, 21 Apr 2021, Imre Deak wrote: > On Wed, Apr 21, 2021 at 02:03:45PM +0300, Jani Nikula wrote: >> On Thu, 15 Apr 2021, Jani Nikula wrote: >> > On Wed, 14 Apr 2021, Imre Deak wrote: >> >> Alder Lake-P adds a new Display Page Table hardware structure, mapping

Re: [Intel-gfx] [PATCH] drm/i915/dmc: Let's abstract the dmc path.

2021-04-21 Thread Jani Nikula
erly abstracted. > - allows future junction with CSR_VERSION for simplicity. > - Enforces dmc file will never change this standard. > > v2: define DMC_PATH inside .c (Lucas) > > Cc: Fei Yang > Cc: Jani Nikula > Cc: Lucas De Marchi > Signed-off-by: Rodrigo Vivi >

Re: [Intel-gfx] [PATCH 3/8] drm/i915: Extract intel_fbc_update()

2021-04-21 Thread Jani Nikula
On Wed, 14 Apr 2021, Ville Syrjala wrote: > From: Ville Syrjälä > > Pull the fbc enable vs. disable stuff into a small helper so > we don't have to have it pollute the higher level modeset code. > > Signed-off-by: Ville Syrjälä Reviewed-by: Jani Nikula > --- >

Re: [Intel-gfx] [PATCH 2/8] drm/i915: Rewrite the FBC tiling check a bit

2021-04-21 Thread Jani Nikula
On Thu, 15 Apr 2021, Ville Syrjälä wrote: > On Wed, Apr 14, 2021 at 06:09:23PM +0300, Jani Nikula wrote: >> On Wed, 14 Apr 2021, Ville Syrjala wrote: >> > From: Ville Syrjälä >> > >> > Write the tiling check in a nicer form. >> > >> > Signed

Re: [Intel-gfx] [PATCH 1/8] drm/i915: Add frontbuffer tracking tracepoints

2021-04-21 Thread Jani Nikula
On Wed, 14 Apr 2021, Ville Syrjala wrote: > From: Ville Syrjälä > > Add some tracpoints for frontbuffer tracking so we can > try to figure out what's going on. > > Signed-off-by: Ville Syrjälä Acked-by: Jani Nikula > --- > .../gpu/drm/i915/display/intel_front

Re: [Intel-gfx] [PATCH 5/8] drm/i915: Move the "recompress on activate" to a central place

2021-04-21 Thread Jani Nikula
_priv) > @@ -418,6 +414,7 @@ static void intel_fbc_activate(struct drm_i915_private > *dev_priv) > drm_WARN_ON(&dev_priv->drm, !mutex_is_locked(&fbc->lock)); > > intel_fbc_hw_activate(dev_priv); > + intel_fbc_recompress(dev_priv); > > fbc->no_fbc_reason = NULL; > } -- Jani Nikula, Intel Open Source Graphics Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 4/8] drm/i915: Clear no_fbc_reason on activate

2021-04-21 Thread Jani Nikula
On Wed, 14 Apr 2021, Ville Syrjala wrote: > From: Ville Syrjälä > > We try to set no_fbc_reason when FBC is not possible, let's > consistently clear when activating FBC. > > Signed-off-by: Ville Syrjälä Reviewed-by: Jani Nikula > --- > drivers/gpu/drm/

Re: [Intel-gfx] [PATCH 8/8] drm/i915: Pimp the FBC debugfs output

2021-04-21 Thread Jani Nikula
uot;Compressing: %s\n", yesno(mask)); > + if (!plane->has_fbc) > + continue; > + > + seq_printf(m, "%c [CRTC:%d:%s]/[PLANE:%d:%s]: %s\n", > + fbc->crtc == crtc ? '*

Re: [Intel-gfx] [PATCH v2 1/1] drm/i915/dg1: Add HWMON power sensor support

2021-04-21 Thread Jani Nikula
915_reg_t pkg_power_sku; > + i915_reg_t pkg_energy_status; > + i915_reg_t pkg_rapl_limit; > + i915_reg_t pkg_rapl_limit_udw; > + i915_reg_t plt_energy_status; > + i915_reg_t reg_energy_status; > +}; > + > +struct i915_hwmon { > + struct device *dev; > +

Re: [Intel-gfx] [PATCH] vfio/gvt: fix DRM_I915_GVT dependency on VFIO_MDEV

2021-04-22 Thread Jani Nikula
_attributes") >> Signed-off-by: Arnd Bergmann >> --- >> drivers/gpu/drm/i915/Kconfig | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) > > Oh kconfig stuff like this makes my head hurt, thanks for finding it > > I also can't see an alternati

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

2021-04-23 Thread Jani Nikula
disable_rpm_wakeref_asserts(&dev_priv->runtime_pm); > @@ -1271,6 +1274,8 @@ static int i915_drm_resume(struct drm_device *dev) > > intel_gvt_resume(dev_priv); > > + intel_bxt_dsm_detect(pdev); > + In intel_display_resume() perhaps? (Yay for confusing naming wrt display and modeset, it's a work-in-progress.) BR, Jani. > enable_rpm_wakeref_asserts(&dev_priv->runtime_pm); > > return 0; -- Jani Nikula, Intel Open Source Graphics Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [v3 2/2] backlight: Add DisplayPort aux backlight driver

2021-04-26 Thread Jani Nikula
gt; + "failed to register backlight (%d)\n", ret); > + goto free_ddc; > + } > + > + platform_set_drvdata(pdev, bd); > + > + return 0; > + > +free_ddc: > + if (ddc) > + put_device(&ddc->dev); > + >

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

2021-04-26 Thread Jani Nikula
On Mon, 26 Apr 2021, Kai-Heng Feng wrote: > On Fri, Apr 23, 2021 at 3:35 PM Jani Nikula > wrote: >> >> On Fri, 23 Apr 2021, Kai-Heng Feng wrote: >> > On HP Fury G7 Workstations, graphics output is re-routed from Intel GFX >> > to discrete GFX after S3. This

Re: [Intel-gfx] [PATCH 1/1] i915/query: Correlate engine and cpu timestamps with better accuracy

2021-04-26 Thread Jani Nikula
NGE(i915, 1, 6) instead of IS_GEN(i915, 6) ? Please see the new deprecation comments in i915_drv.h. We're moving from GEN to VER. In short, please use the new VER macros for individual components instead of the generic GEN. Thanks, Jani. -- Jani Nikula, Intel Open Source Graphics Center _

Re: [Intel-gfx] [drm-intel:drm-intel-next 3/4] drivers/gpu/drm/i915/display/intel_dp_hdcp.c:582 intel_dp_hdcp2_read_msg() error: uninitialized symbol 'msg_end'.

2021-04-26 Thread Jani Nikula
i915/hdcp: Fix uninitialized symbol 'msg_end'"). BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH] display: Fix typo issue

2021-04-26 Thread Jani Nikula
> + * recommendation, port should be enabled before plane & pipe */ > if (is_cmd_mode(intel_dsi)) { > for_each_dsi_port(port, intel_dsi->ports) > intel_de_write(dev_priv, -- Jani Nikula, Intel Open Source Graphics Center _

Re: [Intel-gfx] BUG in i915/i915_pci.c, commit fe0f1e3

2021-04-26 Thread Jani Nikula
rst bad commit. > > I hope this is the correct mailing list for this issue. > > Let me know if you need more information or someone to test it. This seems to have fallen between the cracks, apologies. Is this still an issue with newer kernels? If yes, please file a bug at [1]. BR, Jani

Re: [Intel-gfx] [PATCH] drm/i915: Stop using crtc->index as the pipe

2021-04-27 Thread Jani Nikula
ways > just use the intel_ types in our vfunc implementations. > > intel_crtc we've cleaned up the most I think, intel_encoder a bit less > perhaps, and intel_connector not really at all. Hence you see a lot more > of intel_connector floating around. We also don't usually

Re: [Intel-gfx] [PATCH] drm: i915: fix build when ACPI is disabled and BACKLIGHT=m

2021-04-27 Thread Jani Nikula
> class is a module") > Fixes: 44c1220a441c ("drm/i915: extract intel_panel.h from intel_drv.h") > Signed-off-by: Randy Dunlap > Cc: Ville Syrjälä > Cc: Jani Nikula > Cc: Damien Lespiau > Cc: Daniel Vetter > Cc: Jani Nikula > Cc: Joonas Lahtinen &

[Intel-gfx] [PULL] drm-intel-next-fixes for the merge window

2021-04-27 Thread Jani Nikula
n fix (Maarten) Dan Carpenter (2): drm/i915/gvt: Fix error code in intel_gvt_init_device() drm/i915: fix an error code in intel_overlay_do_put_image() Jani Nikula (1): Merge tag 'gvt-next-fixes-2021-04-21' of http

Re: [Intel-gfx] [PATCH] drm/i915: Stop using crtc->index as the pipe

2021-04-27 Thread Jani Nikula
; Signed-off-by: Ville Syrjälä Reviewed-by: Jani Nikula > --- > drivers/gpu/drm/i915/display/intel_pipe_crc.c | 51 ++- > 1 file changed, 26 insertions(+), 25 deletions(-) > > diff --git a/drivers/gpu/drm/i915/display/intel_pipe_crc.c > b/drivers/gpu/drm/i9

[Intel-gfx] [PATCH] drm/i915/hdcp: add intel_dp_hdcp.h and rename init accordingly

2021-04-27 Thread Jani Nikula
Add separate intel_dp_hdcp.h to go with intel_dp_hdcp.c, and rename the init function intel_dp_hdcp_init() to follow naming where function prefix matches the file name. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_dp.c | 5 +++-- drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH] drm/i915/display: move crtc and dpll declarations where they belong

2021-04-27 Thread Jani Nikula
The definitions are in the crtc and dpll files; move the declarations to the corresponding headers. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/icl_dsi.c| 1 + drivers/gpu/drm/i915/display/intel_crt.c | 1 + drivers/gpu/drm/i915/display/intel_crtc.h | 3

Re: [Intel-gfx] [PATCH v7 0/4] drm: Move struct drm_device.pdev to legacy

2021-04-27 Thread Jani Nikula
elevant for legacy drivers. In a later patchset, we may want to > convert these as well and remove pdev entirely. On the series, Reviewed-by: Jani Nikula How should we merge these? > > v7: > * fix instances of pdev that have benn added under i915/ > v6: > *

Re: [Intel-gfx] [PATCH] drm/i915/gem: Remove reference to struct drm_device.pdev

2021-04-27 Thread Jani Nikula
quot;drm/i915: Create stolen memory region from local > memory") > Cc: CQ Tang > Cc: Matthew Auld > Cc: Tvrtko Ursulin > Cc: Xinyun Liu > Cc: Tvrtko Ursulin > Cc: Jani Nikula > Cc: Joonas Lahtinen > Cc: Rodrigo Vivi > Cc: Chris Wilson > Cc: Mika Kuo

Re: [Intel-gfx] [PATCH v7 0/4] drm: Move struct drm_device.pdev to legacy

2021-04-27 Thread Jani Nikula
On Tue, 27 Apr 2021, Thomas Zimmermann wrote: > Hi Jani > > Am 27.04.21 um 14:04 schrieb Jani Nikula: >> On Tue, 27 Apr 2021, Thomas Zimmermann wrote: >>> V7 of the patchset fixes some bitrot in the intel driver. >>> >>> The pdev field in struct drm_d

<    5   6   7   8   9   10   11   12   13   14   >