Re: [Intel-gfx] [PATCH 04/13] drm/i915/pps: rename intel_edp_panel_* to intel_pps_*

2021-01-08 Thread Jani Nikula
_off() Fixed in v2. 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

[Intel-gfx] [PATCH v2 13/17] drm/i915/pps: rename intel_dp_init_panel_power_sequencer* functions

2021-01-08 Thread Jani Nikula
power_timestamps -> pps_init_timestamps as this is what the functions do. Skip the intel_ prefix here to emphasize these are static and not exported. No functional changes. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_pps.c | 37 ++-- 1 file changed, 1

[Intel-gfx] [PATCH v2 15/17] drm/i915/pps: move pps code over from intel_display.c and refactor

2021-01-08 Thread Jani Nikula
intel_display.c has some pps functions that belong to intel_pps.c. Move them over. While at it, refactor the duplicate intel_pps_init() in intel_display.c into an orthogonal intel_pps_setup() in intel_pps.c, and call it earlier in intel_modeset_init_nogem(). Signed-off-by: Jani Nikula

[Intel-gfx] [PATCH v2 14/17] drm/i915/pps: refactor init abstractions

2021-01-08 Thread Jani Nikula
altogether. Finally, remove some initialization from vlv_initial_power_sequencer_setup() and do it in the caller to highlight the similarity, not the difference, in the platforms. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_pps.c | 33 +++- 1 file c

[Intel-gfx] [PATCH v2 16/17] drm/i915/dp: abstract struct intel_dp pps members to a sub-struct

2021-01-08 Thread Jani Nikula
Add some namespacing to highlight what belongs where. No functional changes. Signed-off-by: Jani Nikula --- .../drm/i915/display/intel_display_debugfs.c | 8 +- .../drm/i915/display/intel_display_types.h| 61 +++--- drivers/gpu/drm/i915/display/intel_dp.c | 14 +- drivers/gpu/drm

[Intel-gfx] [PATCH v2 17/17] drm/i915/dp: split out aux functionality to intel_dp_aux.c

2021-01-08 Thread Jani Nikula
Split out the DP aux functionality to a new intel_dp_aux.[ch]. This is a surprisingly clean cut. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/display/intel_dp.c | 680 +-- drivers/gpu/drm/i915/display/intel_dp_aux.c

Re: [Intel-gfx] [PATCH 06/13] drm/i915/pps: abstract intel_pps_vdd_off_sync

2021-01-08 Thread Jani Nikula
On Tue, 29 Dec 2020, Anshuman Gupta wrote: > On 2020-12-22 at 20:19:46 +0530, Jani Nikula wrote: >> Add a locked version of intel_pps_vdd_off_sync_unlocked() that does >> everything the callers expect it to. >> >> Signed-off-by: Jani Nikula >> --- >>

Re: [Intel-gfx] Missing DPPLL case on i7-1165G7

2021-01-08 Thread Jani Nikula
(100, >> 2000, 19200, 7000) and also nothing changed. >> >> Any thoughts? > > One possibility is that from the different backlight methods (DPCD, > direct PWM on a CPU pin) the driver selects the incorrect one. Could you > provide a log booting with

Re: [Intel-gfx] [PATCH] drm/i915/backlight: fix CPU mode backlight takeover on LPT

2021-01-11 Thread Jani Nikula
oday, so please hold off on actually sending the rebased version for a bit longer. BR, Jani. > > On Fri, 2021-01-08 at 17:28 +0200, Jani Nikula wrote: >> The pch_get_backlight(), lpt_get_backlight(), and lpt_set_backlight() >> functions operate directly on the hardware register

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

2021-01-11 Thread Jani Nikula
-- > Colin Xu (1): > drm/i915/gvt: Fix vfio_edid issue for BXT/APL > > drivers/gpu/drm/i915/gvt/display.c | 81 > +++--- > drivers/gpu/drm/i915/gvt/vgpu.c| 5 +-- > 2 files changed, 59 insertions(+), 27 deletions(-) -- Jan

Re: [Intel-gfx] [PATCH v5 1/4] drm/i915: Keep track of pwm-related backlight hooks separately

2021-01-11 Thread Jani Nikula
c99bf404a32 100644 > --- a/drivers/gpu/drm/i915/display/intel_panel.c > +++ b/drivers/gpu/drm/i915/display/intel_panel.c > @@ -511,25 +511,34 @@ static u32 scale_hw_to_user(struct intel_connector > *connector, >0, user_max); > } > > -static u32 intel_pan

Re: [Intel-gfx] [PATCH v5 2/4] drm/i915/dp: Enable Intel's HDR backlight interface (only SDR for now)

2021-01-11 Thread Jani Nikula
ght() if we fail > to read the current backlight mode from the DPCD > * s/uint8_t/u8/ > * Remove unneeded parenthesis in intel_dp_aux_hdr_enable_backlight() > * Use drm_dbg_kms() in intel_dp_aux_init_backlight_funcs() > > Signed-off-by: Lyude Paul > Acked-by: Jani Nikula > Cc:

Re: [Intel-gfx] [PATCH v5 3/4] drm/i915/dp: Allow forcing specific interfaces through enable_dpcd_backlight

2021-01-11 Thread Jani Nikula
rces i915 to only probe for the Intel > backlight interface (might be useful if we find panels in the wild that > report the VESA interface in their VBT, but actually only support the > Intel backlight interface). > > v3: > * Rebase > > Signed-off-by: Lyude Paul > Reviewed-by:

Re: [Intel-gfx] [PATCH v5 4/4] drm/dp: Revert "drm/dp: Introduce EDID-based quirks"

2021-01-11 Thread Jani Nikula
Fix indenting error picked up by checkpatch in > intel_edp_init_connector() > > Signed-off-by: Lyude Paul > Acked-by: Jani Nikula Still stands. BR, Jani. > Cc: thay...@noraisin.net > Cc: Vasily Khoruzhick > --- > drivers/gpu/drm/drm_dp_helper.c | 8

Re: [Intel-gfx] [PATCH v5 4/4] drm/dp: Revert "drm/dp: Introduce EDID-based quirks"

2021-01-11 Thread Jani Nikula
On Mon, 11 Jan 2021, Jani Nikula wrote: > On Thu, 07 Jan 2021, Lyude Paul wrote: >> This reverts commit 0883ce8146ed6074c76399f4e70dbed788582e12. Originally >> these quirks were added because of the issues with using the eDP >> backlight interfaces on certain laptop

Re: [Intel-gfx] [PATCH] drm/i915/backlight: fix CPU mode backlight takeover on LPT

2021-01-11 Thread Jani Nikula
On Mon, 11 Jan 2021, Jani Nikula wrote: > On Fri, 08 Jan 2021, Lyude Paul wrote: >> Reviewed-by: Lyude Paul >> >> Let me know when you've pushed this upstream and I'll go ahead and send out a >> rebased version of my backlight series. > > Pushed, thank

Re: [Intel-gfx] [PATCH 1/2] drm/i915/tgl: Use TGL stepping info for applying WAs

2021-01-11 Thread Jani Nikula
- tgl_revids_get(p)->disp_stepping <= (until)) >> + tgl_stepping_get(p)->disp_stepping >= (since) && \ >> + tgl_stepping_get(p)->disp_stepping <= (until)) >> >> -#define IS_TGL_UY_GT_REVID(p, since, until) \ >> +#define IS_TGL_

Re: [Intel-gfx] [PATCH 1/2] drm/i915/tgl: Use TGL stepping info for applying WAs

2021-01-11 Thread Jani Nikula
On Mon, 11 Jan 2021, Jani Nikula wrote: > On Fri, 08 Jan 2021, Matt Roper wrote: >> On Fri, Jan 08, 2021 at 03:18:52PM -0800, Aditya Swarup wrote: >>> TGL adds another level of indirection for applying WA based on stepping >>> information rather than PCI REVID. So

Re: [Intel-gfx] [RFC-v19 02/13] drm/i915/pxp: set KCR reg init during the boot time

2021-01-12 Thread Jani Nikula
clude "intel_pxp.h" >> > >  #include "intel_pxp_context.h" >> > > >> > > +/* KCR register definitions */ >> > >> > please define this in i915_reg.h >> >> Generally the trend on the GT side is to contain in a .c

Re: [Intel-gfx] [PATCH 1/2] drm/i915/tgl: Use TGL stepping info for applying WAs

2021-01-12 Thread Jani Nikula
On Mon, 11 Jan 2021, Aditya Swarup wrote: > On 1/11/21 12:13 PM, Jani Nikula wrote: >> On Fri, 08 Jan 2021, Matt Roper wrote: >> FWIW I have a wip series changing the whole thing to abstract steppings >> enums that are shared between platforms, but it's in a bit of lim

Re: [Intel-gfx] [PATCH 1/2] drm/i915/tgl: Use TGL stepping info for applying WAs

2021-01-12 Thread Jani Nikula
On Mon, 11 Jan 2021, Lucas De Marchi wrote: > On Mon, Jan 11, 2021 at 10:13:15PM +0200, Jani Nikula wrote: >>On Fri, 08 Jan 2021, Matt Roper wrote: > in the end both sides will need that (even if it was a mistake to merge > it in drm-intel-gt-next). I got an ack from Rodr

Re: [Intel-gfx] [PATCH 1/2] drm/i915/tgl: Use TGL stepping info for applying WAs

2021-01-12 Thread Jani Nikula
On Mon, 11 Jan 2021, Lucas De Marchi wrote: > On Mon, Jan 11, 2021 at 12:57:43PM -0800, Matt Roper wrote: >>On Mon, Jan 11, 2021 at 10:18:45PM +0200, Jani Nikula wrote: >>So to clarify, it looks like we have a bunch of revid changes to the >>display code that got merged to

Re: [Intel-gfx] [PATCH 1/2] drm/i915/tgl: Use TGL stepping info for applying WAs

2021-01-12 Thread Jani Nikula
On Mon, 11 Jan 2021, Aditya Swarup wrote: > On 1/11/21 12:57 PM, Matt Roper wrote: >> On Mon, Jan 11, 2021 at 10:18:45PM +0200, Jani Nikula wrote: >>> On Mon, 11 Jan 2021, Jani Nikula wrote: >>>> On Fri, 08 Jan 2021, Matt Roper wrote: >>>>> On

[Intel-gfx] [PATCH] drm/i915/region: make intel_region_map static

2021-01-12 Thread Jani Nikula
There are no users outside of intel_memory_region.c. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/intel_memory_region.c | 2 +- drivers/gpu/drm/i915/intel_memory_region.h | 5 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_memory_region.c

[Intel-gfx] [PATCH] drm/i915/lmem: make intel_region_lmem_ops static

2021-01-12 Thread Jani Nikula
There are no users outside of intel_region_lmem.c. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/intel_region_lmem.c | 2 +- drivers/gpu/drm/i915/intel_region_lmem.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_region_lmem.c b/drivers

Re: [Intel-gfx] [PATCH 1/2] drm/i915/tgl: Use TGL stepping info for applying WAs

2021-01-12 Thread Jani Nikula
o both places, then delete the topic > branch. Atm the problem is this: $ git merge-base drm-intel/drm-intel-next drm-intel/drm-intel-gt-next That would be the baseline for the topic branch. BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center ___

Re: [Intel-gfx] [PATCH] drm/i915/hdcp: Disable the QSES check for HDCP 1.4 over MST

2021-01-12 Thread Jani Nikula
te_an_aksv, > .read_bksv = intel_dp_hdcp_read_bksv, > @@ -674,7 +650,7 @@ static const struct intel_hdcp_shim > intel_dp_mst_hdcp_shim = { > .read_ksv_fifo = intel_dp_hdcp_read_ksv_fifo, > .read_v_prime_part = intel_dp_hdcp_read_v_prime_part, > .toggle_signalling = intel_dp_mst_hdcp

Re: [Intel-gfx] [PATCH] drm/i915/lmem: make intel_region_lmem_ops static

2021-01-13 Thread Jani Nikula
On Tue, 12 Jan 2021, Chris Wilson wrote: > Quoting Matthew Auld (2021-01-12 17:26:41) >> On Tue, 12 Jan 2021 at 17:23, Jani Nikula wrote: >> > >> > There are no users outside of intel_region_lmem.c. >> > >> > Signed-off-by: Jani Nikula >> R

Re: [Intel-gfx] [PATCH] drm/i915/display: Bitwise or the conversion colour specifier together

2021-01-13 Thread Jani Nikula
On Fri, 08 Jan 2021, Jani Nikula wrote: > On Thu, 24 Dec 2020, "Nautiyal, Ankit K" wrote: >> Thanks Chris to catch this. >> >> This definitely should be bitwise Operator, as mentioned by Jani is >> right thing to do. >> >> The PCON which I

Re: [Intel-gfx] [PATCH 1/1] drm/i915/hdcp: Simplify code in intel_hdcp_auth_downstream()

2021-05-31 Thread Jani Nikula
On Fri, 28 May 2021, "Leizhen (ThunderTown)" wrote: > On 2021/5/27 18:04, Jani Nikula wrote: >> On Thu, 27 May 2021, Zhen Lei wrote: >>> If intel_hdcp_validate_v_prime() has been successful within the allowed >>> number of tries, we can directly call

Re: [Intel-gfx] [PATCH] drm/i915: Add relocation exceptions for two other platforms

2021-06-01 Thread Jani Nikula
INTEL_GEN(eb->i915) >= 12 && !IS_TIGERLAKE(eb->i915)) > + if (entry->relocation_count && !platform_has_relocs_enabled(eb)) > return -EINVAL; > > if (unlikely(entry->flags & eb->invalid_flags)) -- 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 v9 07/15] drm: Add a prefetching memcpy_from_wc

2021-06-01 Thread Jani Nikula
ers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c > index 3d8d68a98b95..8804ec7d3215 100644 > --- a/drivers/gpu/drm/drm_drv.c > +++ b/drivers/gpu/drm/drm_drv.c > @@ -35,6 +35,7 @@ > #include > #include > > +#include > #include > #include > #include > @

Re: [Intel-gfx] [PATCH] drm/i915: Fix wrong name announced on FB driver switching

2021-06-01 Thread Jani Nikula
On Wed, 26 May 2021, Janusz Krzysztofik wrote: > Hi, > > On poniedziałek, 3 maja 2021 19:38:17 CEST Jani Nikula wrote: >> On Thu, 29 Apr 2021, Janusz Krzysztofik > wrote: >> > Commit 7a0f9ef9703d ("drm/i915: Use drm_fb_helper_fill_info") >> &g

Re: [Intel-gfx] [PATCH v6 1/9] drm/i915/dpcd_bl: Remove redundant AUX backlight frequency calculations

2021-06-01 Thread Jani Nikula
* Wrap panel->backlight.edp.vesa.pwm_freq_pre_divider in >> DP_EDP_BACKLIGHT_FREQ_AUX_SET_CAP check - Jani > > This looks okay to me now... Jani, agree? Reviewed-by: Jani Nikula > >> >> Signed-off-by: Lyude Paul >> Cc: Jani Nikula >> Cc: Dave Airlie >> Cc: greg.de

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

2021-06-03 Thread Jani Nikula
/gpu/drm/i915/i915_drv.h | 3 ++ drivers/gpu/drm/i915/i915_mm.c| 44 +++ drivers/gpu/drm/i915/selftests/i915_request.c | 4 +-- 5 files changed, 54 insertions(+), 7 deletions(-) -- Jani Nikula, Intel Ope

Re: [Intel-gfx] [PATCH] Revert "i915: use io_mapping_map_user"

2021-06-03 Thread Jani Nikula
On Wed, 02 Jun 2021, Daniel Vetter wrote: > Adding Jani and Rodrigo since drm-intel-fixes is on them. Just sent the fixes pull request with this for v5.13-rc5: https://lore.kernel.org/r/87lf7rpcmp@intel.com BR, Jani. -- Jani Nikula, Intel Open Source Graphics Cen

Re: [Intel-gfx] [CI 15/19] drm/i915/bigjoiner: atomic commit changes for uncompressed joiner

2021-06-03 Thread Jani Nikula
gpu/drm/i915/i915_reg.h > +++ b/drivers/gpu/drm/i915/i915_reg.h > @@ -11493,6 +11493,8 @@ enum skl_power_gate { > #define SPLITTER_CONFIGURATION_MASK REG_GENMASK(26, 25) > #define SPLITTER_CONFIGURATION_2_SEGMENT > REG_FIELD_PREP(SPLITTER_CONFIGURATION_MASK, 0) > #define SPLITTER_CONFIGURATION_4_SEGMENT > REG_FIELD_PREP(SPLITTER_CONFIGURATION_MASK, 1) > +#define UNCOMPRESSED_JOINER_MASTER (1 << 21) > +#define UNCOMPRESSED_JOINER_SLAVE (1 << 20) > > #define _ICL_PIPE_DSS_CTL2_PB0x78204 > #define _ICL_PIPE_DSS_CTL2_PC0x78404 -- 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] drm/i915/dsc: Remove redundant checks in DSC disable

2021-06-03 Thread Jani Nikula
tc(old_crtc_state->uapi.crtc); >> >struct drm_i915_private *dev_priv = to_i915(crtc->base.dev); >> > >> > - if (!(old_crtc_state->dsc.compression_enable && >> > - old_crtc_state->bigjoiner)) >> >

[Intel-gfx] [PATCH 1/2] drm/i915/dsc: abstract helpers to get bigjoiner primary/secondary crtc

2021-06-03 Thread Jani Nikula
helpers to configure DSC for Bigjoiner slave") Fixes: d961eb20adb6 ("drm/i915/bigjoiner: atomic commit changes for uncompressed joiner") Cc: Animesh Manna Cc: Manasi Navare Cc: Vandita Kulkarni Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_display.c | 7 ++-

[Intel-gfx] [PATCH 2/2] drm/i915/dsc: use crtc index for bigjoiner primary/secondary crtc

2021-06-03 Thread Jani Nikula
adb6 ("drm/i915/bigjoiner: atomic commit changes for uncompressed joiner") Cc: Animesh Manna Cc: Manasi Navare Cc: Vandita Kulkarni Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_vdsc.c | 31 +++ 1 file changed, 15 insertions(+), 16 deletions(-) dif

Re: [Intel-gfx] [CI 15/19] drm/i915/bigjoiner: atomic commit changes for uncompressed joiner

2021-06-03 Thread Jani Nikula
On Thu, 03 Jun 2021, Jani Nikula wrote: > On Fri, 14 May 2021, Matt Roper wrote: >> From: Animesh Manna >> >> Respective bit for master or slave to be set for uncompressed >> bigjoiner in dss_ctl1 register. > > I was looking at the changes here due to a static

Re: [Intel-gfx] [CI 15/19] drm/i915/bigjoiner: atomic commit changes for uncompressed joiner

2021-06-03 Thread Jani Nikula
On Thu, 03 Jun 2021, "Manna, Animesh" wrote: >> -Original Message----- >> From: Jani Nikula >> Sent: Thursday, June 3, 2021 3:10 PM >> To: Roper, Matthew D ; intel- >> g...@lists.freedesktop.org >> Cc: Manna, Animesh ; Navare, Manasi D >>

Re: [Intel-gfx] [CI 15/19] drm/i915/bigjoiner: atomic commit changes for uncompressed joiner

2021-06-04 Thread Jani Nikula
On Thu, 03 Jun 2021, "Navare, Manasi" wrote: > On Thu, Jun 03, 2021 at 06:49:23AM -0700, Manna, Animesh wrote: >> >> >> > -Original Message- >> > From: Jani Nikula >> > Sent: Thursday, June 3, 2021 6:03 PM >> > To: Rope

Re: [Intel-gfx] [PATCH 3/3] drm/i915/adlp: Fix AUX power well -> PHY mapping

2021-06-09 Thread Jani Nikula
rivate *dev_priv, > struct i915_power_well *power_well) > { > - int pw_idx = power_well->desc->hsw.idx; > - enum phy phy = ICL_AUX_PW_TO_PHY(pw_idx); /* non-TBT only */ > - bool is_tbt = power_well

Re: [Intel-gfx] [PATCH] drm/i915/adl_p: Same slices mask is not same Dbuf state

2021-06-09 Thread Jani Nikula
&& (new_dbuf_state->joined_mbus == old_dbuf_state->joined_mbus))) > return; I've pushed this to din because supposedly this is urgent. However, the && is supposed to be at the end of the previous line, and there was a checkpatch email reply abou

Re: [Intel-gfx] [PATCH] drm/i915/adl_p: CDCLK crawl support for ADL

2021-06-09 Thread Jani Nikula
inline, please fix them afterwards. BR, Jani. > > v2: - Added has_cdclk_crawl as a feature flag to > intel_device_info(Matt Roper) > - s/gen13_cdclk_pll_crawl/adlp_cdclk_pll_crawl/ > (Matt Roper) > > Cc: Mika Kahola > Signed-off-by: Stanislav Lisovskiy &g

Re: [Intel-gfx] [PATCH 2/2] drm/i915/dsc: use crtc index for bigjoiner primary/secondary crtc

2021-06-09 Thread Jani Nikula
On Thu, 03 Jun 2021, Jani Nikula wrote: > Pipe numbering isn't guaranteed to be contiguous; there may be fused off > pipes in the middle. The current bigjoiner primary/secondary crtc lookup > with pipe +/- 1 does not take this into account, and may fail > unexpectedly. Fixing

Re: [Intel-gfx] [PATCH 2/2] drm/i915/dsc: use crtc index for bigjoiner primary/secondary crtc

2021-06-09 Thread Jani Nikula
On Wed, 09 Jun 2021, Jani Nikula wrote: > On Thu, 03 Jun 2021, Jani Nikula wrote: >> Pipe numbering isn't guaranteed to be contiguous; there may be fused off >> pipes in the middle. The current bigjoiner primary/secondary crtc lookup >> with pipe +/- 1 does not take

[Intel-gfx] [PATCH v2] drm/i915/dsc: abstract helpers to get bigjoiner primary/secondary crtc

2021-06-10 Thread Jani Nikula
etc. Fixes: 8a029c113b17 ("drm/i915/dp: Modify VDSC helpers to configure DSC for Bigjoiner slave") Fixes: d961eb20adb6 ("drm/i915/bigjoiner: atomic commit changes for uncompressed joiner") Cc: Animesh Manna Cc: Manasi Navare Cc: Vandita Kulkarni Signed-off-by: Jani Nikula --

Re: [Intel-gfx] [PATCH v2] drm/i915/dsc: abstract helpers to get bigjoiner primary/secondary crtc

2021-06-14 Thread Jani Nikula
On Fri, 11 Jun 2021, "Navare, Manasi" wrote: > On Thu, Jun 10, 2021 at 12:05:28PM +0300, Jani Nikula wrote: >> Add a single point of truth for figuring out the primary/secondary crtc >> for bigjoiner instead of duplicating the magic pipe +/- 1 in multiple >> p

Re: [Intel-gfx] [PATCH v2 03/17] drm/i915: Wrap the platform specific buf trans structs into a union

2021-06-18 Thread Jani Nikula
On Tue, 08 Jun 2021, Ville Syrjala wrote: > From: Ville Syrjälä > > In order to abstact the buf trans stuff let's wrap the platform > specific structs into a union. > > v2: Handle adl-p > > Reviewed-by: Jani Nikula #v1 Holds for v2. > Signed-off-by: Ville S

Re: [Intel-gfx] [PATCH v2 04/17] drm/i915: Rename dkl phy buf trans tables

2021-06-18 Thread Jani Nikula
On Tue, 08 Jun 2021, Ville Syrjala wrote: > From: Ville Syrjälä > > Rename the dkl phy buf trans tables to follow the same > naming pattern used by everyone else. > > v2: Handle adl-p > > Reviewed-by: Jani Nikula #v1 Holds for v2. > Signed-off-by: Ville Syrjälä &g

Re: [Intel-gfx] [PATCH v2 05/17] drm/i915: Wrap the buf trans tables into a struct

2021-06-18 Thread Jani Nikula
; + }; > ...> > > @@ > identifier wrap.old; > @@ > ( > - ARRAY_SIZE(old) > + old.num_entries > | > - old > + old.entries > ) > > @@ > @@ > union intel_ddi_buf_trans_entry { > ... > }; > + > +struct intel_ddi_buf_trans { > + const un

Re: [Intel-gfx] [PATCH v2 06/17] drm/i915: Introduce intel_get_buf_trans()

2021-06-18 Thread Jani Nikula
> *num_entries) > + { > + *num_entries = ddi_translations->num_entries; > + return ddi_translations->entries; > + } > > v2: Handle adl-p > > Reviewed-by: Jani Nikula #v1 Holds for v2. > Signed-off-by: Ville Syrjälä > --- > .../drm/i915/displa

Re: [Intel-gfx] [PATCH v2 07/17] drm/i915; Return the whole buf_trans struct from get_buf_trans()

2021-06-18 Thread Jani Nikula
On Tue, 08 Jun 2021, Ville Syrjala wrote: > From: Ville Syrjälä > > Raise the abstraction level of the get_buf_trans() functions > a bit more by returning the whole wrapper intel_ddi_buf_trans > struct. > > v2: Handle adl-p > > Reviewed-by: Jani Nikula #v1 Holds for

Re: [Intel-gfx] [PATCH v2 09/17] drm/i915: Introduce encoder->get_buf_trans()

2021-06-18 Thread Jani Nikula
On Tue, 08 Jun 2021, Ville Syrjala wrote: > From: Ville Syrjälä > > Convert the get_buf_trans() functions into an encoder vfunc. > Allows us to get rid of bunch of platform if-ladders. > > v2: Handle adl-p > > Reviewed-by: Jani Nikula #v1 Holds for v2. > S

Re: [Intel-gfx] [PATCH v2 11/17] drm/i915: Introduce rkl_get_combo_buf_trans()

2021-06-18 Thread Jani Nikula
On Tue, 08 Jun 2021, Ville Syrjala wrote: > From: Ville Syrjälä > > Give RKL its own get_buf_trans() func. > > v2: Drop the FIXME since the spec was clarified to > indicate that TGL values are used for the HDMI/eDP cases. > > Reviewed-by: Jani Nikula #v1 Holds

Re: [Intel-gfx] [PATCH v2 12/17] drm/i915: Fix dg1 buf trans tables

2021-06-18 Thread Jani Nikula
sure we use the proper buf trans tables for > DP as well as eDP. > > v2: Add the hobl stuff > > Reviewed-by: Jani Nikula Holds for v2. > Signed-off-by: Ville Syrjälä > --- > .../drm/i915/display/intel_ddi_buf_trans.c| 55 +-- > 1 file changed,

Re: [Intel-gfx] [PATCH v2 13/17] drm/i915: Deduplicate icl DP HBR2 vs. eDP HBR3 table

2021-06-18 Thread Jani Nikula
On Tue, 08 Jun 2021, Ville Syrjala wrote: > From: Ville Syrjälä > > The icl combo phy DP HBR2 is identical to the eDP HBR3 table. > Get rid of one redundant copy. > > Signed-off-by: Ville Syrjälä Reviewed-by: Jani Nikula > --- > .../drm/i915/display/intel

Re: [Intel-gfx] [PATCH 2/8] drm/i915/display: move intel_plane_uses_fence to inline.

2021-10-07 Thread Jani Nikula
Y_VER(dev_priv) < 4 || > + (plane->has_fbc && > + plane_state->view.gtt.type == I915_GGTT_VIEW_NORMAL); > +} > + > static inline struct intel_frontbuffer * > to_intel_frontbuffer(struct drm_framebuffer *fb) > { -- Jani Nikula, Intel Open Source Graphics Center

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

2021-10-07 Thread Jani Nikula
iles changed, 66 insertions(+), 28 deletions(-) -- Jani Nikula, Intel Open Source Graphics Center

[Intel-gfx] [PATCH] drm/i915/dg2: update link training for 128b/132b

2021-10-07 Thread Jani Nikula
: - Rebase - Modify intel_dp_adjust_request_changed() and intel_dp_link_max_vswing_reached() to take 128b/132b into account. (Ville) Cc: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_ddi.c | 18 ++- .../drm/i915/display/intel_dp_link_training.c | 124

Re: [Intel-gfx] [PATCH 4/8] drm/i915/display: refactor initial plane config to a separate file

2021-10-07 Thread Jani Nikula
ic_plane.h" > +#include "display/intel_display.h" > +#include "display/intel_fb.h" The display/ prefixes are unnecessary in the same directory. BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center

Re: [Intel-gfx] [RFC PATCH 0/8] drm/i915/display: refactor plane config + pin out

2021-10-07 Thread Jani Nikula
d a few nitpicks I commented on. Overall this looks good to me, but I'd like Ville's input on the code movement at the high level, are the split and files sane etc. I can do the detailed review after that. BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center

[Intel-gfx] [PATCH] drm/i915/dp: take LTTPR into account in 128b/132b rates

2021-10-07 Thread Jani Nikula
; and "current". But it would seem bizarre to have to wait until trying to operate a 128b/132b link layer at a certain bit rate to figure this out. Cc: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_dp.c | 17 + 1 file changed, 17 inser

[Intel-gfx] [PATCH] drm/i915/dg2: fix snps buf trans for uhbr

2021-10-07 Thread Jani Nikula
The UHBR check was using > instead of >=. Use the helper instead to avoid mistakes. Also always use the non-UHBR values for HDMI. Fixes: 2817efaeb608 ("drm/i915/dg2: add SNPS PHY translations for UHBR link rates") Reported-by: Ville Syrjälä Cc: Ville Syrjälä Signed-off

[Intel-gfx] [PATCH v2] drm/i915/dg2: fix snps buf trans for uhbr

2021-10-07 Thread Jani Nikula
rates") Reported-by: Ville Syrjälä Cc: Ville Syrjälä Reviewed-by: Ville Syrjälä # v1 Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_ddi_buf_trans.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_ddi_buf_trans.c

Re: [Intel-gfx] [PATCH] drm/i915/dg2: fix snps buf trans for uhbr

2021-10-07 Thread Jani Nikula
On Thu, 07 Oct 2021, Ville Syrjälä wrote: > On Thu, Oct 07, 2021 at 02:56:29PM +0300, Jani Nikula wrote: >> The UHBR check was using > instead of >=. Use the helper instead to >> avoid mistakes. Also always use the non-UHBR values for HDMI. >> >> Fixes: 2817efae

Re: [Intel-gfx] [PATCH] drm/i915/dp: take LTTPR into account in 128b/132b rates

2021-10-07 Thread Jani Nikula
On Thu, 07 Oct 2021, Ville Syrjälä wrote: > On Thu, Oct 07, 2021 at 01:57:27PM +0300, Jani Nikula wrote: >> Limit the supported UHBR rates based on the repeater support, if there >> are repeaters. >> >> This should be done in DP helper level, but that requires

[Intel-gfx] [PATCH v4 1/2] drm/i915/dp: abstract intel_dp_lane_max_vswing_reached()

2021-10-07 Thread Jani Nikula
Add per-lane abstraction for max vswing reached to make follow-up cleaner, as this one reverses the conditions. Cc: Ville Syrjälä Signed-off-by: Jani Nikula --- .../drm/i915/display/intel_dp_link_training.c | 42 +++ 1 file changed, 25 insertions(+), 17 deletions(-) diff --git

[Intel-gfx] [PATCH v4 2/2] drm/i915/dg2: update link training for 128b/132b

2021-10-07 Thread Jani Nikula
/vswing instead of 128b132b/8b10b Cc: Ville Syrjälä Reviewed-by: Ville Syrjälä # v3 Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_ddi.c | 18 ++- .../drm/i915/display/intel_dp_link_training.c | 152 ++ 2 files changed, 134 insertions(+), 36 deletions(-) diff

Re: [Intel-gfx] [PATCH v4 1/2] drm/i915/dp: abstract intel_dp_lane_max_vswing_reached()

2021-10-07 Thread Jani Nikula
On Thu, 07 Oct 2021, Ville Syrjälä wrote: > On Thu, Oct 07, 2021 at 04:39:07PM +0300, Jani Nikula wrote: >> Add per-lane abstraction for max vswing reached to make follow-up >> cleaner, as this one reverses the conditions. >> >> Cc: Ville Syrjälä &g

Re: [Intel-gfx] [PATCH v2 1/4] drm/i915/panelreplay: HAS_PR() macro added for panel replay

2021-10-07 Thread Jani Nikula
at's the dependency. BR, Jani. > >> #define HAS_PSR_HW_TRACKING(dev_priv) \ >> (INTEL_INFO(dev_priv)->display.has_psr_hw_tracking) >> #define HAS_PSR2_SEL_FETCH(dev_priv) (GRAPHICS_VER(dev_priv) >= 12) >> -- >> 2.29.0 -- Jani Nikula, Intel Open Source Graphics Center

Re: [Intel-gfx] [PATCH v2 2/4] drm/i915/panelreplay: Initializaton and compute config for panel replay

2021-10-07 Thread Jani Nikula
struct intel_crtc_state *crtc_state); > > #endif /* __INTEL_PSR_H__ */ > diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h > index b52df4db3e8f..d18340cbf8ac 100644 > --- a/include/drm/drm_dp_helper.h > +++ b/include/drm/drm_dp_helper.h > @@ -541,6 +541,9 @@ struct drm_panel; > /* DFP Capability Extension */ > #define DP_DFP_CAPABILITY_EXTENSION_SUPPORT 0x0a3 /* 2.0 */ > > +#define DP_PANEL_REPLAY_SUPPORT 0x0b0 > +# define PANEL_REPLAY_SUPPORT (1 << 0) > + Often easier and better to split out drm helper changes to separate patches for all kinds of reasons. BR, Jani. > /* Link Configuration */ > #define DP_LINK_BW_SET 0x100 > # define DP_LINK_RATE_TABLE 0x00/* eDP 1.4 */ -- Jani Nikula, Intel Open Source Graphics Center

Re: [Intel-gfx] [PATCH v2 2/4] drm/i915/panelreplay: Initializaton and compute config for panel replay

2021-10-07 Thread Jani Nikula
ct intel_dp *intel_dp); > void intel_psr_resume(struct intel_dp *intel_dp); > +void intel_panel_replay_compute_config(struct intel_dp *intel_dp, > +struct intel_crtc_state *crtc_state); > > #endif /* __INTEL_PSR_H__ */ > diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h > index b52df4db3e8f..d18340cbf8ac 100644 > --- a/include/drm/drm_dp_helper.h > +++ b/include/drm/drm_dp_helper.h > @@ -541,6 +541,9 @@ struct drm_panel; > /* DFP Capability Extension */ > #define DP_DFP_CAPABILITY_EXTENSION_SUPPORT 0x0a3 /* 2.0 */ > > +#define DP_PANEL_REPLAY_SUPPORT 0x0b0 > +# define PANEL_REPLAY_SUPPORT (1 << 0) > + > /* Link Configuration */ > #define DP_LINK_BW_SET 0x100 > # define DP_LINK_RATE_TABLE 0x00/* eDP 1.4 */ -- Jani Nikula, Intel Open Source Graphics Center

Re: [Intel-gfx] [PATCH v2 3/4] drm/i915/panelreplay: enable/disable panel replay

2021-10-07 Thread Jani Nikula
(1 << 0) > + Previous patch has: +#define DP_PANEL_REPLAY_SUPPORT 0x0b0 +# define PANEL_REPLAY_SUPPORT (1 << 0) + Also, it's called "PANEL REPLAY CAPABILITY SUPPORTED" in the spec, so DP_PANEL_REPLAY_CAP or something sounds more like it. > #define DP_PAYLOAD_ALLOCATE_SET 0x1c0 > #define DP_PAYLOAD_ALLOCATE_START_TIME_SLOT 0x1c1 > #define DP_PAYLOAD_ALLOCATE_TIME_SLOT_COUNT 0x1c2 -- Jani Nikula, Intel Open Source Graphics Center

Re: [Intel-gfx] [PATCH v2 4/4] drm/i915/panelreplay: Added state checker for panel replay state

2021-10-07 Thread Jani Nikula
mpares sw and hw states. This seems off. BR, Jani. > pipe_config->infoframes.enable |= > intel_hdmi_infoframe_enable(DP_SDP_VSC); > > if (!intel_dp->psr.psr2_enabled) -- Jani Nikula, Intel Open Source Graphics Center

Re: [Intel-gfx] [PATCH 1/5] dri: cleanup debugfs error handling

2021-10-08 Thread Jani Nikula
struct dentry *root); > void drm_debugfs_cleanup(struct drm_minor *minor); > void drm_debugfs_connector_add(struct drm_connector *connector); > void drm_debugfs_connector_remove(struct drm_connector *connector); > @@ -191,10 +191,9 @@ void drm_debugfs_crtc_add(struct drm_crtc *crtc); > void drm_debugfs_crtc_remove(struct drm_crtc *crtc); > void drm_debugfs_crtc_crc_add(struct drm_crtc *crtc); > #else > -static inline int drm_debugfs_init(struct drm_minor *minor, int minor_id, > +static inline void drm_debugfs_init(struct drm_minor *minor, int minor_id, > struct dentry *root) > { > - return 0; > } > > static inline void drm_debugfs_cleanup(struct drm_minor *minor) > -- > 2.32.0 > -- Jani Nikula, Intel Open Source Graphics Center

Re: [Intel-gfx] [PATCH 01/16] drm/i915: Remove pointless extra namespace from dkl/snps buf trans structs

2021-10-08 Thread Jani Nikula
On Wed, 06 Oct 2021, Ville Syrjala wrote: > From: Ville Syrjälä > > The struct itself already has sufficient namespace. No need to > duplicate it in the members. > > Signed-off-by: Ville Syrjälä Reviewed-by: Jani Nikula > --- > drivers/gpu/drm/i915/display/in

Re: [Intel-gfx] [PATCH 02/16] drm/i915: Shrink {icl_mg, tgl_dkl}_phy_ddi_buf_trans

2021-10-08 Thread Jani Nikula
On Wed, 06 Oct 2021, Ville Syrjala wrote: > From: Ville Syrjälä > > All the values we have in {icl_mg,tgl_dkl}_phy_ddi_buf_trans > fit into u8. Shrink the types accordingly. > > Signed-off-by: Ville Syrjälä Reviewed-by: Jani Nikula > --- > drivers/gpu/drm/i915/displ

Re: [Intel-gfx] [PATCH 03/16] drm/i915: Use standard form terminating condition for lane for loops

2021-10-08 Thread Jani Nikula
On Wed, 06 Oct 2021, Ville Syrjala wrote: > From: Ville Syrjälä > > Use <4 instead of <=3 as the terminating condition for the > loops over the 4 lanes. > > Signed-off-by: Ville Syrjälä Reviewed-by: Jani Nikula > --- > drivers/gpu/drm/i915/display/intel_ddi.c

Re: [Intel-gfx] [PATCH 04/16] drm/i915: Add all per-lane register definitions for icl combo phy

2021-10-08 Thread Jani Nikula
argue the phy should be before lane, but that's another conversation. Reviewed-by: Jani Nikula > --- > drivers/gpu/drm/i915/display/icl_dsi.c | 14 +++--- > drivers/gpu/drm/i915/display/intel_combo_phy.c | 8 > drivers/gpu/drm/i915/display/intel_ddi.

Re: [Intel-gfx] [PATCH 05/16] drm/i915: Remove dead DKL_TX_LOADGEN_SHARING_PMD_DISABLE stuff

2021-10-08 Thread Jani Nikula
gt; > Signed-off-by: Ville Syrjälä I admit not looking this up in spec, but this is dead code removal anyway... Reviewed-by: Jani Nikula > --- > drivers/gpu/drm/i915/display/intel_ddi.c | 8 > drivers/gpu/drm/i915/i915_reg.h | 1 - > 2 files changed, 9 d

Re: [Intel-gfx] [PATCH 06/16] drm/i915: Extract icl_combo_phy_loadgen_select()

2021-10-08 Thread Jani Nikula
On Wed, 06 Oct 2021, Ville Syrjala wrote: > From: Ville Syrjälä > > Pull the convoluted loadgen calculation into a small helper. > > Signed-off-by: Ville Syrjälä Reviewed-by: Jani Nikula > --- > drivers/gpu/drm/i915/display/intel_ddi.c | 23 ++-

[Intel-gfx] [PATCH 2/2] drm/i915/dg2: update link training for 128b/132b

2021-10-11 Thread Jani Nikula
/vswing instead of 128b132b/8b10b Cc: Ville Syrjälä Reviewed-by: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_ddi.c | 18 ++- .../drm/i915/display/intel_dp_link_training.c | 152 ++ 2 files changed, 134 insertions(+), 36 deletions(-) diff

[Intel-gfx] [PATCH 1/2] drm/i915/dp: abstract intel_dp_lane_max_vswing_reached()

2021-10-11 Thread Jani Nikula
Add per-lane abstraction for max vswing reached to make follow-up cleaner, as this one reverses the conditions. v2: both conditions need to be true, reverse (Ville) Cc: Ville Syrjälä Signed-off-by: Jani Nikula --- .../drm/i915/display/intel_dp_link_training.c | 42 +++ 1 file

Re: [Intel-gfx] [PATCH] drm/i915: replacing drm_modeset_lock_all for DRM_MODESET_LOCK_ALL_*

2021-10-12 Thread Jani Nikula
> - drm_modeset_drop_locks(&ctx); > - drm_modeset_acquire_fini(&ctx); > + DRM_MODESET_LOCK_ALL_END(dev, ctx, ret); > > if (ret) > drm_err(&dev_priv->drm, -- Jani Nikula, Intel Open Source Graphics Center

Re: [Intel-gfx] [PATCH 1/2] drm/i915/dp: abstract intel_dp_lane_max_vswing_reached()

2021-10-12 Thread Jani Nikula
On Mon, 11 Oct 2021, Jani Nikula wrote: > Add per-lane abstraction for max vswing reached to make follow-up > cleaner, as this one reverses the conditions. > > v2: both conditions need to be true, reverse (Ville) > > Cc: Ville Syrjälä > Signed-off-by: Jani Nikula Pushed bo

Re: [Intel-gfx] [PATCH 5/8] drm/i915/display: move pin/unpin fb/plane code to a new file.

2021-10-12 Thread Jani Nikula
gt;ggtt_vma = NULL; > + return PTR_ERR(vma); > + } > + > + plane_state->dpt_vma = vma; > + > + WARN_ON(plane_state->ggtt_vma == plane_state->dpt_vma); > + } > + > + return 0; > +} > + > +void intel_plane_unpin_fb(struct intel_plane_state *old_plane_state) > +{ > + struct drm_framebuffer *fb = old_plane_state->hw.fb; > + struct i915_vma *vma; > + > + if (!intel_fb_uses_dpt(fb)) { > + vma = fetch_and_zero(&old_plane_state->ggtt_vma); > + if (vma) > + intel_unpin_fb_vma(vma, old_plane_state->flags); > + } else { > + struct intel_framebuffer *intel_fb = to_intel_framebuffer(fb); > + > + vma = fetch_and_zero(&old_plane_state->dpt_vma); > + if (vma) > + intel_unpin_fb_vma(vma, old_plane_state->flags); > + > + vma = fetch_and_zero(&old_plane_state->ggtt_vma); > + if (vma) > + intel_dpt_unpin(intel_fb->dpt_vm); > + } > +} > diff --git a/drivers/gpu/drm/i915/display/intel_fb_pin.h > b/drivers/gpu/drm/i915/display/intel_fb_pin.h > new file mode 100644 > index ..e4fcd0218d9d > --- /dev/null > +++ b/drivers/gpu/drm/i915/display/intel_fb_pin.h > @@ -0,0 +1,28 @@ > +/* SPDX-License-Identifier: MIT */ > +/* > + * Copyright © 2021 Intel Corporation > + */ > + > +#ifndef __INTEL_FB_PIN_H__ > +#define __INTEL_FB_PIN_H__ > + > +#include > + > +struct drm_framebuffer; > +struct i915_vma; > +struct intel_plane_state; > +struct i915_ggtt_view; > + > +struct i915_vma * > +intel_pin_and_fence_fb_obj(struct drm_framebuffer *fb, > +bool phys_cursor, > +const struct i915_ggtt_view *view, > +bool uses_fence, > +unsigned long *out_flags); > + > +void intel_unpin_fb_vma(struct i915_vma *vma, unsigned long flags); > + > +int intel_plane_pin_fb(struct intel_plane_state *plane_state); > +void intel_plane_unpin_fb(struct intel_plane_state *old_plane_state); > + > +#endif > diff --git a/drivers/gpu/drm/i915/display/intel_fbdev.c > b/drivers/gpu/drm/i915/display/intel_fbdev.c > index 53484267b2a4..adc3a81be9f7 100644 > --- a/drivers/gpu/drm/i915/display/intel_fbdev.c > +++ b/drivers/gpu/drm/i915/display/intel_fbdev.c > @@ -46,6 +46,7 @@ > #include "i915_drv.h" > #include "intel_display_types.h" > #include "intel_fb.h" > +#include "intel_fb_pin.h" > #include "intel_fbdev.h" > #include "intel_frontbuffer.h" -- Jani Nikula, Intel Open Source Graphics Center

[Intel-gfx] [PATCH 1/2] drm/dp: add helpers to read link training delays

2021-10-12 Thread Jani Nikula
. Cc: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_dp_helper.c | 132 include/drm/drm_dp_helper.h | 21 - 2 files changed, 151 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_dp_helper.c b/drivers/gpu/drm

[Intel-gfx] [PATCH 2/2] drm/i915/dp: use new link training delay helpers

2021-10-12 Thread Jani Nikula
e way. Cc: Ville Syrjälä Signed-off-by: Jani Nikula --- .../drm/i915/display/intel_dp_link_training.c | 38 +++ 1 file changed, 13 insertions(+), 25 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp_link_training.c b/drivers/gpu/drm/i915/display/intel_dp_link_train

Re: [Intel-gfx] [PATCH 1/4] drm/i915/huc: Use i915_probe_error to report early CTB failures

2021-10-12 Thread Jani Nikula
PROBE_ERROR(ct, "Failed to register %s buffer (%pe)\n", >> + guc_ct_buffer_type_to_str(type), ERR_PTR(err)); Please tell me why we are adding not just i915-specific logging helpers, but file specific ones? To be honest I'd like to see all of the CT_ERROR, CT_DEBUG, CT_PROBE_ERROR macros just gone. BR, Jani. >> return err; >> } >> >> -- >> 2.25.1 >> -- Jani Nikula, Intel Open Source Graphics Center

Re: [Intel-gfx] [PATCH 1/4] drm/i915/huc: Use i915_probe_error to report early CTB failures

2021-10-12 Thread Jani Nikula
On Tue, 12 Oct 2021, Jani Nikula wrote: > On Mon, 11 Oct 2021, Matthew Brost wrote: >> On Mon, Oct 11, 2021 at 08:51:03PM +0530, Thanneeru Srinivasulu wrote: >>> Replace DRM_ERROR with CT_PROBE_ERROR to report early CTB failures. >>> >>> Signed-off-by: Than

Re: [Intel-gfx] [PATCH 6/8] drm/i915/display: refactor fbdev pin/unpin out into functions.

2021-10-12 Thread Jani Nikula
x27;m not insisting on making changes, but I guess I need to be told it doesn't matter. BR, Jani. > + i915_ggtt_offset(ifbdev->vma)); > > intel_runtime_pm_put(&dev_priv->runtime_pm, wakeref); > vga_switcheroo_client_fb_set(pdev, info); > return 0; > > out_unpin: > - intel_unpin_fb_vma(vma, flags); > + intel_fbdev_unpin(ifbdev); > out_unlock: > intel_runtime_pm_put(&dev_priv->runtime_pm, wakeref); > return ret; > @@ -316,8 +329,7 @@ static void intel_fbdev_destroy(struct intel_fbdev > *ifbdev) > > drm_fb_helper_fini(&ifbdev->helper); > > - if (ifbdev->vma) > - intel_unpin_fb_vma(ifbdev->vma, ifbdev->vma_flags); > + intel_fbdev_unpin(ifbdev); > > if (ifbdev->fb) > drm_framebuffer_remove(&ifbdev->fb->base); -- Jani Nikula, Intel Open Source Graphics Center

[Intel-gfx] [PATCH 0/1] drm/i915: vlv sideband

2021-10-13 Thread Jani Nikula
ly want to split out sideband registers from i915_reg.h, and they could go to vlv_sideband.h or vlv_sideband_reg.h or something BR, Jani. Cc: Lucas De Marchi Cc: Ville Syrjälä Jani Nikula (1): drm/i915: split out vlv sideband to a separate file drivers/gpu/drm/i915/Makefile

[Intel-gfx] [PATCH 1/1] drm/i915: split out vlv sideband to a separate file

2021-10-13 Thread Jani Nikula
The VLV/CHV sideband code is pretty distinct from the rest of the sideband code. Split it out to new vlv_sideband.[ch]. Pure code movement with relevant #include changes, and a tiny checkpatch fix on top. Cc: Lucas De Marchi Cc: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm

Re: [Intel-gfx] [PATCH 0/1] drm/i915: vlv sideband

2021-10-13 Thread Jani Nikula
On Wed, 13 Oct 2021, Ville Syrjälä wrote: > On Wed, Oct 13, 2021 at 01:11:58PM +0300, Jani Nikula wrote: >> Three main ideas here: >> >> - vlv sideband only has the name "sideband" in common with the rest of >> intel_sideband.[ch] > > I wouldn't

Re: [Intel-gfx] [PATCH] drm/i915: Prefer struct_size over open coded arithmetic

2021-10-13 Thread Jani Nikula
series/95408/ > State : failure > > But it builds without error against linux-next (tag next-20211001). Against > which tree and branch do I need to build? drm-tip [1]. It's a sort of linux-next for graphics. I think there are still some branches that don't feed to linux-next. BR, Jani. [1] https://cgit.freedesktop.org/drm/drm-tip > > Regards, > Len -- Jani Nikula, Intel Open Source Graphics Center

Re: [Intel-gfx] [PATCH 1/1] RFC : drm/i915: Adding new sysfs frequency attributes

2021-10-13 Thread Jani Nikula
f(buff, PAGE_SIZE, "%u\n", tdc); > +} > + > +static DEVICE_ATTR_RO(punit_req_freq_mhz); > +static DEVICE_ATTR_RO(throttle_reason_status); > +static DEVICE_ATTR_RO(throttle_reason_pl1); > +static DEVICE_ATTR_RO(throttle_reason_pl2); > +static DEVICE_ATTR_RO(throttle_reason_pl4); > +static DEVICE_ATTR_RO(throttle_reason_thermal); > +static DEVICE_ATTR_RO(throttle_reason_prochot); > +static DEVICE_ATTR_RO(throttle_reason_ratl); > +static DEVICE_ATTR_RO(throttle_reason_vr_thermalert); > +static DEVICE_ATTR_RO(throttle_reason_vr_tdc); > + > +static const struct attribute *freq_attrs[] = { > + &dev_attr_punit_req_freq_mhz.attr, > + &dev_attr_throttle_reason_status.attr, > + &dev_attr_throttle_reason_pl1.attr, > + &dev_attr_throttle_reason_pl2.attr, > + &dev_attr_throttle_reason_pl4.attr, > + &dev_attr_throttle_reason_thermal.attr, > + &dev_attr_throttle_reason_prochot.attr, > + &dev_attr_throttle_reason_ratl.attr, > + &dev_attr_throttle_reason_vr_thermalert.attr, > + &dev_attr_throttle_reason_vr_tdc.attr, > + NULL > +}; > + > #if IS_ENABLED(CONFIG_DRM_I915_CAPTURE_ERROR) > > static ssize_t error_state_read(struct file *filp, struct kobject *kobj, -- Jani Nikula, Intel Open Source Graphics Center

Re: [Intel-gfx] [PATCH 03/11] drm/i915: Restructure probe to handle multi-tile platforms

2021-10-13 Thread Jani Nikula
ci_dev(uncore->i915->drm.dev); > - > - pci_iounmap(pdev, uncore->regs); > + if (uncore->regs) > + iounmap(uncore->regs); > } > > void intel_uncore_init_early(struct intel_uncore *uncore, > diff --git a/drivers/gpu/drm/i915/intel_uncore.h > b/drivers/gpu/drm/i915/intel_uncore.h > index d1d17b04e29f..83a455aa8374 100644 > --- a/drivers/gpu/drm/i915/intel_uncore.h > +++ b/drivers/gpu/drm/i915/intel_uncore.h > @@ -29,6 +29,7 @@ > #include > #include > #include > +#include > > #include "i915_reg.h" > > @@ -218,7 +219,7 @@ void > intel_uncore_mmio_debug_init_early(struct intel_uncore_mmio_debug > *mmio_debug); > void intel_uncore_init_early(struct intel_uncore *uncore, >struct drm_i915_private *i915); > -int intel_uncore_setup_mmio(struct intel_uncore *uncore); > +int intel_uncore_setup_mmio(struct intel_uncore *uncore, phys_addr_t > phys_addr); > int intel_uncore_init_mmio(struct intel_uncore *uncore); > void intel_uncore_prune_engine_fw_domains(struct intel_uncore *uncore, > struct intel_gt *gt); -- Jani Nikula, Intel Open Source Graphics Center

<    1   2   3   4   5   6   7   8   9   10   >