[Intel-gfx] [PATCH 4/7] drm/i915/bios: use alternate aux channel directly from child data

2021-08-24 Thread Jani Nikula
Avoid extra caching of the data. Cc: José Roberto de Souza Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_bios.c | 26 +++ drivers/gpu/drm/i915/i915_drv.h | 1 - 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm

[Intel-gfx] [PATCH 5/7] drm/i915/bios: move ddc pin mapping code next to ddc pin sanitize

2021-08-24 Thread Jani Nikula
Move code around to avoid a forward declaration in the future. Cc: José Roberto de Souza Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_bios.c | 154 +++--- 1 file changed, 77 insertions(+), 77 deletions(-) diff --git a/drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH 6/7] drm/i915/bios: use ddc pin directly from child data

2021-08-24 Thread Jani Nikula
numbering. Cc: José Roberto de Souza Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_bios.c | 49 +-- drivers/gpu/drm/i915/i915_drv.h | 2 - 2 files changed, 28 insertions(+), 23 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_bios.c b

[Intel-gfx] [PATCH 7/7] drm/i915/bios: get rid of vbt ddi_port_info

2021-08-24 Thread Jani Nikula
We can finally remove the extra caching in ddi_port_info. Good riddance. Cc: José Roberto de Souza Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_bios.c | 63 +-- drivers/gpu/drm/i915/i915_drv.h | 7 +-- 2 files changed, 25 insertions(+), 45

Re: [Intel-gfx] [PATCH] drm/i915/dsi: Retrieve max brightness level from VBT

2021-08-24 Thread Jani Nikula
ion bits in VBT that meet panel's request. > Driver can refer to this setting then configure max brightness level > in DCS backlight driver properly. > > v2: modify variable name brightness_precision_bits instead of > max_brightness_level. > > Cc: Ville Syrjala > C

Re: [Intel-gfx] [PATCH] drm/i915/fdi: make intel_fdi_link_freq() return int

2021-08-24 Thread Jani Nikula
On Tue, 24 Aug 2021, Ville Syrjälä wrote: > On Mon, Aug 23, 2021 at 12:36:45PM +0300, Jani Nikula wrote: >> The unsigned doesn't help us here. >> >> Cc: Ville Syrjälä >> Suggested-by: Ville Syrjälä >> Signed-off-by: Jani Nikula > > Reviewed-b

Re: [Intel-gfx] [PATCH 0/6] drm/i915/display: split out some dpt and fb stuff from intel_display.c

2021-08-24 Thread Jani Nikula
On Tue, 24 Aug 2021, Jani Nikula wrote: > On Tue, 24 Aug 2021, Rodrigo Vivi wrote: >> On Mon, Aug 23, 2021 at 03:25:30PM +0300, Jani Nikula wrote: >>> Make some forward progress on reducing intel_display.c size. >>> >>> Jani Nikula (6): >>

Re: [Intel-gfx] [PATCH 00/13] drm/i915: Clean up DPLL stuff

2021-08-25 Thread Jani Nikula
hat while applying. The series is Reviewed-by: Jani Nikula > > Ville Syrjälä (13): > drm/i915: Set output_types to EDP for vlv/chv DPLL forcing > drm/i915: Clean up gen2 DPLL readout > drm/i915: Extract ilk_update_pll_dividers() > drm/i915: Constify struct dpll all ov

Re: [Intel-gfx] [PATCH 1/2] drm: i915: move intel_pch.h to include/drm

2021-08-25 Thread Jani Nikula
drivers/gpu/drm/i915/intel_pch.h > +++ b/include/drm/intel_pch.h > @@ -84,6 +84,4 @@ enum intel_pch { > #define HAS_PCH_NOP(dev_priv) > (INTEL_PCH_TYPE(dev_priv) == PCH_NOP) > #define HAS_PCH_SPLIT(dev_priv) > (INTEL_PCH_TYPE(dev_priv) != PCH_NONE) > > -void intel_detect_pch(struct drm_i915_private *dev_priv); > - > #endif /* __INTEL_PCH__ */ -- Jani Nikula, Intel Open Source Graphics Center

Re: [Intel-gfx] [PATCH 2/2] drm/amdgpu: Disable PCIE_DPM on Intel RKL Platform

2021-08-25 Thread Jani Nikula
p; PP_PCIE_DPM_MASK ? > false : true; > + data->pcie_dpm_key_disabled = intel_tgp_chk() || !(hwmgr->feature_mask > & PP_PCIE_DPM_MASK); > /* need to set voltage control types before EVV patching */ > data->voltage_control = SMU7_VOLTAGE_CONTROL_NONE; > data->vddci_control = SMU7_VOLTAGE_CONTROL_NONE; -- Jani Nikula, Intel Open Source Graphics Center

Re: [Intel-gfx] [PATCH 2/2] drm/amdgpu: Disable PCIE_DPM on Intel RKL Platform

2021-08-25 Thread Jani Nikula
On Wed, 25 Aug 2021, Koba Ko wrote: > On Wed, Aug 25, 2021 at 5:22 PM Jani Nikula > wrote: >> >> On Wed, 25 Aug 2021, Koba Ko wrote: >> > AMD polaris GPUs have an issue about audio noise on RKL platform, >> > they provide a commit to fix but for SMU7-base

[Intel-gfx] [PATCH 0/3] drm/i915: better backlight & panel abstractions

2021-08-25 Thread Jani Nikula
more? BR, Jani. Cc: Lyude Paul Jani Nikula (3): drm/i915/backlight: extract backlight code to a separate file drm/i915/backlight: mass rename functions to have intel_backlight_ prefix drm/i915/panel: mass rename functions to have intel_panel_ prefix drivers/gpu/drm/i91

[Intel-gfx] [PATCH 1/3] drm/i915/backlight: extract backlight code to a separate file

2021-08-25 Thread Jani Nikula
In a long overdue refactoring, split out backlight code to new intel_backlight.[ch]. Simple code movement, leave renames for follow-up work. No functional changes. Cc: Lyude Paul Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/Makefile |1 + drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH 2/3] drm/i915/backlight: mass rename functions to have intel_backlight_ prefix

2021-08-25 Thread Jani Nikula
Follow the usual naming conventions. As a drive-by cleanup, also pass intel_connector instead of drm_connector to intel_backlight_setup(). No functional changes. Cc: Lyude Paul Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/g4x_dp.c | 2 +- drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH 3/3] drm/i915/panel: mass rename functions to have intel_panel_ prefix

2021-08-25 Thread Jani Nikula
Follow the usual naming conventions. Also pull HAS_GMCH() check to intel_panel_fitting(). No functional changes. Cc: Lyude Paul Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/icl_dsi.c | 4 ++-- drivers/gpu/drm/i915/display/intel_dp.c| 9 +++- drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH 2/2] drm/i915/dsi/xelpd: Enable mipi dsi support.

2021-08-25 Thread Jani Nikula
On Mon, 23 Aug 2021, Vandita Kulkarni wrote: > Enable MIPI DSI support on ADL-P platform. > The esc clock changes, WA changes are taken care > in the previous patches. > As per the Bspec the seq remains to be same as TGL. > > Signed-off-by: Vandita Kulkarni Review

Re: [Intel-gfx] [v2] drm/i915/dsi/xelpd: Add WA to program LP to HS wakeup guardband

2021-08-25 Thread Jani Nikula
GL_DSI_CHKN_REG_0 0x6B0C0 > +#define _TGL_DSI_CHKN_REG_1 0x6B8C0 > +#define TGL_DSI_CHKN_REG(port) _MMIO_PORT(port,\ > + _TGL_DSI_CHKN_REG_0, \ > + _TGL_DSI

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

2021-08-25 Thread Jani Nikula
On Thu, 19 Aug 2021, Ville Syrjälä wrote: > On Fri, Aug 13, 2021 at 01:43:20PM +0300, Jani Nikula wrote: >> Extend the use of extended receiver cap at 0x2200 to cover >> MAIN_LINK_CHANNEL_CODING_CAP in 0x2206, in case an implementation hides >> the DP 2.0 128b/132b channel en

Re: [Intel-gfx] [PATCH v2 11/11] drm/i915: Extract i915_module.c

2021-08-25 Thread Jani Nikula
7;re using GEM_BUG_ON() in generic driver code. BR, Jani. > + if (init_funcs[i].exit) > + init_funcs[i].exit(); > + } > +} -- Jani Nikula, Intel Open Source Graphics Center

[Intel-gfx] [PATCH] drm/i915/snps: constify struct intel_mpllb_state arrays harder

2021-08-25 Thread Jani Nikula
The tables should be const arrays of const pointers, not just arrays of const pointers. Cc: Matt Roper Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_snps_phy.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH] drm/i915/pci: rename functions to have i915_pci prefix

2021-08-25 Thread Jani Nikula
Follow the usual naming conventions. While at it, fix i915_pci.h SPDX license comment format and add header include guards. Cc: Daniel Vetter Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_module.c | 4 ++-- drivers/gpu/drm/i915/i915_pci.c| 4 ++-- drivers/gpu/drm/i915

[Intel-gfx] [PATCH 0/5] drm/i915/fdi: refactor some fdi code out of intel_display.c

2021-08-25 Thread Jani Nikula
Axe more stuff from intel_display.c. Jani Nikula (5): drm/i915/fdi: move intel_update_fdi_pll_freq to intel_fdi.c drm/i915/fdi: move fdi bc bifurcation functions to intel_fdi.c drm/i915/fdi: move more FDI stuff to FDI link train hooks drm/i915/fdi: move fdi mphy reset and programming to

[Intel-gfx] [PATCH 1/5] drm/i915/fdi: move intel_update_fdi_pll_freq to intel_fdi.c

2021-08-25 Thread Jani Nikula
Move FDI related functions to intel_fdi.c. Rename to have intel_fdi prefix while at it. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_display.c | 18 +- drivers/gpu/drm/i915/display/intel_fdi.c | 16 drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH 2/5] drm/i915/fdi: move fdi bc bifurcation functions to intel_fdi.c

2021-08-25 Thread Jani Nikula
Move FDI related functions to intel_fdi.c. Don't bother with renaming as we'll make the functions static shortly. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_display.c | 49 drivers/gpu/drm/i915/display/intel_fdi.

[Intel-gfx] [PATCH 3/5] drm/i915/fdi: move more FDI stuff to FDI link train hooks

2021-08-25 Thread Jani Nikula
Accept slight duplication in the fdi link train hooks in exchange for simplification in ilk_pch_enable(). This lets us make ivb_update_fdi_bc_bifurcation() static again, now in intel_fdi.c. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_display.c | 8 --- drivers/gpu/drm

[Intel-gfx] [PATCH 4/5] drm/i915/fdi: move fdi mphy reset and programming to intel_fdi.c

2021-08-25 Thread Jani Nikula
This fairly detailed stuff that really has no place in intel_display.c. Combine the calls into one to avoid exposing both. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_display.c | 102 +-- drivers/gpu/drm/i915/display/intel_fdi.c | 100

[Intel-gfx] [PATCH 5/5] drm/i915/fdi: convert BUG()'s to MISSING_CASE()

2021-08-25 Thread Jani Nikula
These shouldn't happen, but in the off chance they do, we'll want a warning rather than panic. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_fdi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_fdi.c b/d

Re: [Intel-gfx] [PATCH 2/2] drm/i915/runtime_pm: Let's avoid the undocumented D1 opregion notification.

2021-08-25 Thread Jani Nikula
{ >> Local0 = CLID /* \_SB_.PC00.GFX0.CLID */ >> If ((0x8000 & Local0)) >> { >> CLID &= 0x0F >> GLID (CLID) >>

Re: [Intel-gfx] [PATCH 0/3] drm/i915: better backlight & panel abstractions

2021-08-25 Thread Jani Nikula
t; comes. Thanks! BR, Jani. > > On Wed, 2021-08-25 at 14:06 +0300, Jani Nikula wrote: >> Extract the backlight code out of intel_panel.c, and rename the panel >> and backlight functions according to usual conventions. >> >> Lyude, I haven't seen follow-ups on the

Re: [Intel-gfx] [PATCH 0/3] drm/i915: better backlight & panel abstractions

2021-08-26 Thread Jani Nikula
On Wed, 25 Aug 2021, Jani Nikula wrote: > On Wed, 25 Aug 2021, Lyude Paul wrote: >> Reviewed-by: Lyude Paul (assuming this still applies) >> >> As I mentioned on IRC pretty much all of the DPCD backlight helpers already >> made it upstream. There are some changes I

Re: [Intel-gfx] [PATCH] drm/i915/pci: rename functions to have i915_pci prefix

2021-08-26 Thread Jani Nikula
On Wed, 25 Aug 2021, Rodrigo Vivi wrote: > On Wed, Aug 25, 2021 at 06:06:23PM +0300, Jani Nikula wrote: >> Follow the usual naming conventions. While at it, fix i915_pci.h SPDX >> license comment format and add header include guards. >> >> Cc: Daniel Vetter &g

Re: [Intel-gfx] [PATCH 21/33] drm/i915/guc: Connect reset modparam updates to GuC policy flags

2021-08-26 Thread Jani Nikula
add this kind of checks in the middle of the generic functions. What if the type was bool or ulong, where the generic function is a debugfs helper outside of i915? See the comment in i915_debugfs_params() that I added there exactly because I envisioned someone was going to need this facility:

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

2021-08-26 Thread Jani Nikula
display.c | 3 +++ drivers/gpu/drm/i915/gt/intel_migrate.c | 2 +- drivers/gpu/drm/i915/gt/selftest_hangcheck.c | 4 +-- drivers/gpu/drm/i915/i915_module.c | 37 ++-- 4 files changed, 30 insertions(+), 16 deletions(-) -- Jani Nikula, Intel Open Source Graphics Center

Re: [Intel-gfx] [PATCH] drm/i915/snps: constify struct intel_mpllb_state arrays harder

2021-08-26 Thread Jani Nikula
On Wed, 25 Aug 2021, Matt Roper wrote: > On Wed, Aug 25, 2021 at 05:58:11PM +0300, Jani Nikula wrote: >> The tables should be const arrays of const pointers, not just arrays of >> const pointers. >> >> Cc: Matt Roper >> Signed-off-by: Jani Nikula > > R

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

2021-08-26 Thread Jani Nikula
On Wed, 25 Aug 2021, Jani Nikula wrote: > On Thu, 19 Aug 2021, Ville Syrjälä wrote: >> On Fri, Aug 13, 2021 at 01:43:20PM +0300, Jani Nikula wrote: >>> Extend the use of extended receiver cap at 0x2200 to cover >>> MAIN_LINK_CHANNEL_CODING_CAP in 0x2206, in case an i

[Intel-gfx] [PATCH] drm/i915: remove unused i915->active_pipes

2021-08-26 Thread Jani Nikula
Apparently the last reader of i915->active_pipes was removed with commit ef79d62b5ce5 ("drm/i915: Encapsulate dbuf state handling harder"), and now it's only ever written to. Remove it completely. Cc: Stanislav Lisovskiy Cc: Ville Syrjälä Signed-off-by: Jani Nikula --- dr

Re: [Intel-gfx] [PATCH 1/5] drm/i915/fdi: move intel_update_fdi_pll_freq to intel_fdi.c

2021-08-27 Thread Jani Nikula
On Thu, 26 Aug 2021, Rodrigo Vivi wrote: > On Wed, Aug 25, 2021 at 06:47:48PM +0300, Jani Nikula wrote: >> Move FDI related functions to intel_fdi.c. Rename to have intel_fdi >> prefix while at it. >> >> Signed-off-by: Jani Nikula > > Reviewed-by: Rodrigo Vivi

[Intel-gfx] [PATCH] drm/i915/dg2: UHBR tables added for pll programming

2021-08-27 Thread Jani Nikula
From: Animesh Manna UHBR modes has higher link rate and added new values for programming mpll of SNPS phy. No change in sequence, only the pll parameters are different for UHBR modes. Signed-off-by: Animesh Manna Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_snps_phy.c

Re: [Intel-gfx] [PATCH] drm/i915: remove unused i915->active_pipes

2021-08-30 Thread Jani Nikula
On Fri, 27 Aug 2021, Ville Syrjälä wrote: > On Thu, Aug 26, 2021 at 05:18:30PM +0300, Jani Nikula wrote: >> Apparently the last reader of i915->active_pipes was removed with commit >> ef79d62b5ce5 ("drm/i915: Encapsulate dbuf state handling harder"), and >> now

Re: [Intel-gfx] [PATCH] drm/i915/dg2: UHBR tables added for pll programming

2021-08-30 Thread Jani Nikula
On Fri, 27 Aug 2021, Jani Nikula wrote: > From: Animesh Manna > > UHBR modes has higher link rate and added new values for programming > mpll of SNPS phy. No change in sequence, only the pll parameters > are different for UHBR modes. > > Signed-off-by: Animesh Manna > Si

[Intel-gfx] [PATCH 0/5] drm/displayid: VESA vendor block and drm/i915 MSO use of it

2021-08-30 Thread Jani Nikula
We need the DisplayID VESA vendor block data for properly configuring eDP MSO (Multi-SST Operation) pixel overlap. I haven't actually tested this on a panel that requires the overlap, but this is all pretty straightforward to prepare for that use case. BR, Jani. Jani Nikula (5): drm/disp

[Intel-gfx] [PATCH 1/5] drm/displayid: re-align data block macros

2021-08-30 Thread Jani Nikula
Make the values easier to read. Also add DisplayID Structure version and revision information (this is different from the spec version). Signed-off-by: Jani Nikula --- include/drm/drm_displayid.h | 57 +++-- 1 file changed, 29 insertions(+), 28 deletions(-) diff

[Intel-gfx] [PATCH 3/5] drm/edid: parse the DisplayID v2.0 VESA vendor block for MSO

2021-08-30 Thread Jani Nikula
tending it to parse also DisplayID data to avoid requiring extra calls to update the information. Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_edid.c | 63 + include/drm/drm_connector.h | 12 +++ include/drm/drm_displayid.h | 11 +++ 3 files c

[Intel-gfx] [PATCH 4/5] drm/i915/edp: postpone MSO init until after EDID read

2021-08-30 Thread Jani Nikula
MSO will require segment pixel overlap information from the EDID. Postpone MSO init until after we've read and cached the EDID. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_dp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm

[Intel-gfx] [PATCH 5/5] drm/i915/edp: use MSO pixel overlap from DisplayID data

2021-08-30 Thread Jani Nikula
Now that we have MSO pixel overlap in display info, use it. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_dp.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c

[Intel-gfx] [PATCH 2/5] drm/displayid: add DisplayID v2.0 data blocks and primary use cases

2021-08-30 Thread Jani Nikula
DisplayID v2.0 changes the data block identifiers and product types (now called primary use cases). Signed-off-by: Jani Nikula --- include/drm/drm_displayid.h | 29 + 1 file changed, 29 insertions(+) diff --git a/include/drm/drm_displayid.h b/include/drm

Re: [Intel-gfx] [PATCH 3/5] drm/edid: parse the DisplayID v2.0 VESA vendor block for MSO

2021-08-30 Thread Jani Nikula
On Mon, 30 Aug 2021, Jani Nikula wrote: > The VESA Organization Vendor-Specific Data Block, defined in VESA > DisplayID Standard v2.0, specifies the eDP Multi-SST Operation (MSO) > stream count and segment pixel overlap. > > DisplayID v1.3 has Appendix B: DisplayID as an

[Intel-gfx] [PATCH 0/5] drm/i915/display: debugfs cleanups

2021-08-30 Thread Jani Nikula
Some minor cleanupi of the display debugfs code. BR, Jani. Jani Nikula (5): drm/i915/debugfs: clean up LPSP status drm/i915/debugfs: clean up LPSP capable drm/i915/debugfs: register LPSP capability on all platforms drm/i915/display: stop returning errors from debugfs registration drm

[Intel-gfx] [PATCH 1/5] drm/i915/debugfs: clean up LPSP status

2021-08-30 Thread Jani Nikula
Clean up the LPSP status printout. No functional changes. Signed-off-by: Jani Nikula --- .../drm/i915/display/intel_display_debugfs.c | 37 ++- 1 file changed, 11 insertions(+), 26 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs.c b/drivers/gpu

[Intel-gfx] [PATCH 2/5] drm/i915/debugfs: clean up LPSP capable

2021-08-30 Thread Jani Nikula
Clean up the LPSP capability printout. No functional changes. Signed-off-by: Jani Nikula --- .../drm/i915/display/intel_display_debugfs.c | 44 +++ 1 file changed, 17 insertions(+), 27 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs.c b/drivers

[Intel-gfx] [PATCH 3/5] drm/i915/debugfs: register LPSP capability on all platforms

2021-08-30 Thread Jani Nikula
The debugfs file shows it's not capable, don't duplicate the info. Signed-off-by: Jani Nikula --- .../gpu/drm/i915/display/intel_display_debugfs.c| 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs.c

[Intel-gfx] [PATCH 4/5] drm/i915/display: stop returning errors from debugfs registration

2021-08-30 Thread Jani Nikula
Failures to register debugfs should be ignored anyway, so stop propagating errors altogether for clarity and simplicity. No functional changes. Signed-off-by: Jani Nikula --- .../drm/i915/display/intel_display_debugfs.c | 19 +-- .../drm/i915/display/intel_display_debugfs.h

[Intel-gfx] [PATCH 5/5] drm/i915/debugfs: pass intel_connector to intel_connector_debugfs_add()

2021-08-30 Thread Jani Nikula
Prefer the intel_ types. No functional changes. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_connector.c | 2 +- drivers/gpu/drm/i915/display/intel_display_debugfs.c | 3 ++- drivers/gpu/drm/i915/display/intel_display_debugfs.h | 4 ++-- 3 files changed, 5 insertions

[Intel-gfx] [PATCH v2] drm/i915/debugfs: pass intel_connector to intel_connector_debugfs_add()

2021-08-30 Thread Jani Nikula
Prefer the intel_ types. No functional changes. v2: Fix build. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_connector.c | 2 +- drivers/gpu/drm/i915/display/intel_display_debugfs.c | 3 ++- drivers/gpu/drm/i915/display/intel_display_debugfs.h | 6 +++--- 3 files

Re: [Intel-gfx] [PATCH 3/5] drm/edid: parse the DisplayID v2.0 VESA vendor block for MSO

2021-08-31 Thread Jani Nikula
On Mon, 30 Aug 2021, Ville Syrjälä wrote: > On Mon, Aug 30, 2021 at 01:29:01PM +0300, Jani Nikula wrote: >> The VESA Organization Vendor-Specific Data Block, defined in VESA >> DisplayID Standard v2.0, specifies the eDP Multi-SST Operation (MSO) >> stream count and

Re: [Intel-gfx] [PATCH v3 1/2] drm/i915/opregion: add support for mailbox #5 EDID

2021-08-31 Thread Jani Nikula
->aux.ddc); if (edid) { if (drm_add_edid_modes(connector, edid)) { drm_connector_update_edid_property(connector, edid); In any case, I think it's just plain wrong to use both the display and opregion EDIDs at the same time. It's probably all around safer to start with fallback. P

Re: [Intel-gfx] [PATCH v3 0/2] GPD Win Max display fixes

2021-08-31 Thread Jani Nikula
box #5 [1] > > The first patch is based on Jani's patch series [2] adding support for > the opregion, with changes. I've changed authorship, but I'd be glad to > revert it If you don't mind, please just add: Co-developed-by: Jani Nikula Thanks, Jani. > > The

[Intel-gfx] [PATCH v2 0/6] drm/displayid: VESA vendor block and drm/i915 MSO use of it

2021-08-31 Thread Jani Nikula
v2 of https://patchwork.freedesktop.org/series/94161/ with the VESA OUI check and an OUI helper patch added. Jani Nikula (6): drm/displayid: re-align data block macros drm/displayid: add DisplayID v2.0 data blocks and primary use cases drm/edid: abstract OUI conversion to 24-bit int drm

[Intel-gfx] [PATCH v2 1/6] drm/displayid: re-align data block macros

2021-08-31 Thread Jani Nikula
Make the values easier to read. Also add DisplayID Structure version and revision information (this is different from the spec version). Signed-off-by: Jani Nikula --- include/drm/drm_displayid.h | 57 +++-- 1 file changed, 29 insertions(+), 28 deletions(-) diff

[Intel-gfx] [PATCH v2 2/6] drm/displayid: add DisplayID v2.0 data blocks and primary use cases

2021-08-31 Thread Jani Nikula
DisplayID v2.0 changes the data block identifiers and product types (now called primary use cases). Signed-off-by: Jani Nikula --- include/drm/drm_displayid.h | 29 + 1 file changed, 29 insertions(+) diff --git a/include/drm/drm_displayid.h b/include/drm

[Intel-gfx] [PATCH v2 3/6] drm/edid: abstract OUI conversion to 24-bit int

2021-08-31 Thread Jani Nikula
Replace the open coded OUI conversion from three bytes to a 24-bit int, as we'll be adding one more user shortly. No functional changes. Side note: CTA-861 format has the OUI bytes in reverse order. Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_edid.c | 17 +++-- 1

[Intel-gfx] [PATCH v2 4/6] drm/edid: parse the DisplayID v2.0 VESA vendor block for MSO

2021-08-31 Thread Jani Nikula
tending it to parse also DisplayID data to avoid requiring extra calls to update the information. v2: Check for VESA OUI (Ville) Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_edid.c | 72 + include/drm/drm_connector.h | 12 +++ include/drm/drm_displa

[Intel-gfx] [PATCH v2 5/6] drm/i915/edp: postpone MSO init until after EDID read

2021-08-31 Thread Jani Nikula
MSO will require segment pixel overlap information from the EDID. Postpone MSO init until after we've read and cached the EDID. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_dp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm

[Intel-gfx] [PATCH v2 6/6] drm/i915/edp: use MSO pixel overlap from DisplayID data

2021-08-31 Thread Jani Nikula
Now that we have MSO pixel overlap in display info, use it. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_dp.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c

Re: [Intel-gfx] [PATCH 3/5] drm/edid: parse the DisplayID v2.0 VESA vendor block for MSO

2021-08-31 Thread Jani Nikula
On Tue, 31 Aug 2021, Jani Nikula wrote: > On Mon, 30 Aug 2021, Ville Syrjälä wrote: >> Don't we need to check the OUI to make sure the block is the right >> type? I don't have the v2 spec at hand atm, but I presume a vendor >> specific block could contai

Re: [Intel-gfx] [PATCH 0/5] Fix in max source calculation for dp/edp

2021-09-01 Thread Jani Nikula
On Thu, 12 Aug 2021, Animesh Manna wrote: > HBR3 support for display gen11+ platform is depends upon some > conditions which are mentioned below. The series no longer applies, please rebase and resend. BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center

[Intel-gfx] [PATCH] drm/i915/dp: fix DG2 max source rate check

2021-09-01 Thread Jani Nikula
Accidentally dropped the else in a rebase fail, causing the DG2 max rate to be overwritten later in the if ladder. Fixes: e752d1f9c14a ("drm/i915/dg2: add DG2 UHBR source rates") Cc: Manasi Navare Cc: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/inte

Re: [Intel-gfx] [PATCH 5/5] drm/i915/dsi: Read/write proper brightness value via MIPI DCS command

2021-09-01 Thread Jani Nikula
st robot > Cc: Ville Syrjala > Cc: Jani Nikula > Cc: Vandita Kulkarni > Cc: Cooper Chiou > Cc: William Tseng > Signed-off-by: Lee Shawn C > --- > .../drm/i915/display/intel_dsi_dcs_backlight.c| 15 +-- > 1 file changed, 9 insertions(+), 6 deletions(

[Intel-gfx] [PATCH v2 0/7] drm/i915/bios: remove vbt ddi_port_info caching

2021-09-01 Thread Jani Nikula
v2 of https://patchwork.freedesktop.org/series/93957/ with the CI issues fixed (fingers crossed!). BR, Jani. Jani Nikula (7): drm/i915/bios: use hdmi level shift directly from child data drm/i915/bios: use max tmds clock directly from child data drm/i915/bios: use dp max link rate directly

[Intel-gfx] [PATCH v2 1/7] drm/i915/bios: use hdmi level shift directly from child data

2021-09-01 Thread Jani Nikula
Avoid extra caching of the data. Cc: José Roberto de Souza Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_bios.c | 26 +-- drivers/gpu/drm/i915/i915_drv.h | 4 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/gpu

[Intel-gfx] [PATCH v2 2/7] drm/i915/bios: use max tmds clock directly from child data

2021-09-01 Thread Jani Nikula
Avoid extra caching of the data. Cc: José Roberto de Souza Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_bios.c | 52 +++ drivers/gpu/drm/i915/i915_drv.h | 2 - 2 files changed, 26 insertions(+), 28 deletions(-) diff --git a/drivers/gpu/drm

[Intel-gfx] [PATCH v2 3/7] drm/i915/bios: use dp max link rate directly from child data

2021-09-01 Thread Jani Nikula
Avoid extra caching of the data. Cc: José Roberto de Souza Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_bios.c | 28 ++- drivers/gpu/drm/i915/i915_drv.h | 2 -- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm

[Intel-gfx] [PATCH v2 4/7] drm/i915/bios: use alternate aux channel directly from child data

2021-09-01 Thread Jani Nikula
Avoid extra caching of the data. v2: Check for !info->devdata in intel_bios_port_aux_ch() (Ankit) Cc: José Roberto de Souza Cc: Ankit Nautiyal Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_bios.c | 26 +++ drivers/gpu/drm/i915/i915_drv.h |

[Intel-gfx] [PATCH v2 6/7] drm/i915/bios: use ddc pin directly from child data

2021-09-01 Thread Jani Nikula
numbering. v2: Check !devdata in intel_bios_alternate_ddc_pin() Cc: José Roberto de Souza Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_bios.c | 49 +-- drivers/gpu/drm/i915/i915_drv.h | 2 - 2 files changed, 28 insertions(+), 23 deletions(-) diff

[Intel-gfx] [PATCH v2 5/7] drm/i915/bios: move ddc pin mapping code next to ddc pin sanitize

2021-09-01 Thread Jani Nikula
Move code around to avoid a forward declaration in the future. Cc: José Roberto de Souza Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_bios.c | 154 +++--- 1 file changed, 77 insertions(+), 77 deletions(-) diff --git a/drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH v2 7/7] drm/i915/bios: get rid of vbt ddi_port_info

2021-09-01 Thread Jani Nikula
We can finally remove the extra caching in ddi_port_info. Good riddance. v2: Rebased Cc: José Roberto de Souza Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_bios.c | 63 +-- drivers/gpu/drm/i915/i915_drv.h | 7 +-- 2 files changed, 25

Re: [Intel-gfx] [PATCH 4/5] drm/i915/display: stop returning errors from debugfs registration

2021-09-01 Thread Jani Nikula
On Wed, 01 Sep 2021, Rodrigo Vivi wrote: > On Mon, Aug 30, 2021 at 03:53:43PM +0300, Jani Nikula wrote: >> Failures to register debugfs should be ignored anyway, so stop >> propagating errors altogether for clarity and simplicity. No functional >> changes. > > not eve

Re: [Intel-gfx] [PATCH 5/5] drm/i915/debugfs: pass intel_connector to intel_connector_debugfs_add()

2021-09-01 Thread Jani Nikula
On Wed, 01 Sep 2021, Rodrigo Vivi wrote: > On Mon, Aug 30, 2021 at 03:53:44PM +0300, Jani Nikula wrote: >> Prefer the intel_ types. No functional changes. >> >> Signed-off-by: Jani Nikula >> --- >> drivers/gpu/drm/i915/display/intel_connector.c | 2 +-

Re: [Intel-gfx] [PATCH] drm/i915/dp: fix DG2 max source rate check

2021-09-02 Thread Jani Nikula
On Wed, 01 Sep 2021, Imre Deak wrote: > On Wed, Sep 01, 2021 at 02:28:15PM +0300, Jani Nikula wrote: >> Accidentally dropped the else in a rebase fail, causing the DG2 max rate >> to be overwritten later in the if ladder. >> >> Fixes: e752d1f9c14a ("drm/i91

Re: [Intel-gfx] [PATCH 2/5] drm/i915/debugfs: clean up LPSP capable

2021-09-02 Thread Jani Nikula
On Wed, 01 Sep 2021, Rodrigo Vivi wrote: > On Mon, Aug 30, 2021 at 03:53:41PM +0300, Jani Nikula wrote: >> Clean up the LPSP capability printout. No functional changes. >> >> Signed-off-by: Jani Nikula > > Reviewed-by: Rodrigo Vivi Thanks, pushed the first

Re: [Intel-gfx] [v2 5/5] drm/i915/dsi: Read/write proper brightness value via MIPI DCS command

2021-09-02 Thread Jani Nikula
ghtness value more easily. > > Reported-by: kernel test robot > Cc: Ville Syrjala > Cc: Jani Nikula > Cc: Vandita Kulkarni > Cc: Cooper Chiou > Cc: William Tseng > Signed-off-by: Lee Shawn C Reviewed-by: Jani Nikula > --- > .../i915/display/intel_dsi_dcs_backlight

Re: [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for DSI driver improvement (rev2)

2021-09-02 Thread Jani Nikula
checked > d2500f03aee8 drm/i915/dsi: Read/write proper brightness value via MIPI DCS > command > > -- Jani Nikula, Intel Open Source Graphics Center

Re: [Intel-gfx] [PATCH v2 0/7] drm/i915/bios: remove vbt ddi_port_info caching

2021-09-03 Thread Jani Nikula
On Wed, 01 Sep 2021, Jani Nikula wrote: > v2 of https://patchwork.freedesktop.org/series/93957/ with the CI issues > fixed (fingers crossed!). José, I'd like to get an ack from you on this before applying. I know it's bound conflict with your in flight series. Thoughts? B

Re: [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Enable TPS3/4 on all platforms that support them

2021-09-03 Thread Jani Nikula
onnector [i915]] eDP > DPCD: 04 fb ff > <7>[8.234921] [drm:drm_dp_read_dpcd_caps] AUX A/DDI A/PHY A: Base DPCD: > 14 0a 82 41 00 00 01 c0 02 00 00 00 0f 09 80 > <7>[8.234943] [drm:drm_dp_read_dpcd_caps] AUX A/DDI A/PHY A: DPCD: 14 0a > 82 c1 00 00 01 c0 02 00 00 00 0f 09 80 Should try this in combination with [1]? BR, Jani. [1] https://patchwork.freedesktop.org/patch/msgid/20210719235927.283173-1-khaled.almahall...@intel.com -- Jani Nikula, Intel Open Source Graphics Center

Re: [Intel-gfx] [PATCH 01/10] drm/i915: move display funcs into a display struct.

2021-09-06 Thread Jani Nikula
On Mon, 06 Sep 2021, Dave Airlie wrote: > From: Dave Airlie > > This is the first step in an idea to refactor the display code > into a bit more of a corner. So, do we want to make i915->display a pointer? If we do, and we're about to touch every place accessing the display struct, we might jus

Re: [Intel-gfx] [PATCH v2 0/7] drm/i915/bios: remove vbt ddi_port_info caching

2021-09-07 Thread Jani Nikula
On Fri, 03 Sep 2021, "Souza, Jose" wrote: > On Fri, 2021-09-03 at 14:04 +0300, Jani Nikula wrote: >> José, I'd like to get an ack from you on this before applying. I know >> it's bound conflict with your in flight series. Thoughts? > > If you a

Re: [Intel-gfx] [PATCH 4/7] drm/i915/bios: use alternate aux channel directly from child data

2021-09-07 Thread Jani Nikula
On Thu, 26 Aug 2021, "Nautiyal, Ankit K" wrote: > On 8/24/2021 7:04 PM, Jani Nikula wrote: >> Avoid extra caching of the data. >> >> Cc: José Roberto de Souza >> Signed-off-by: Jani Nikula >> --- >> drivers/gpu/drm/i915/display/intel_bios.c

Re: [Intel-gfx] [PATCH] drm/i915: deduplicate frequency dump on debugfs

2021-09-08 Thread Jani Nikula
: %d (%lldns)\n", > -rpprevup, > -intel_gt_pm_interval_to_ns(&dev_priv->gt, rpprevup)); > - seq_printf(m, "Up threshold: %d%%\n", > -rps->power.up_threshold); > - > - seq_printf(m, "RP CUR DOWN EI: %d (%lldns)\n", > -rpdownei, > -intel_gt_pm_interval_to_ns(&dev_priv->gt, > - rpdownei)); > - seq_printf(m, "RP CUR DOWN: %d (%lldns)\n", > -rpcurdown, > -intel_gt_pm_interval_to_ns(&dev_priv->gt, > - rpcurdown)); > - seq_printf(m, "RP PREV DOWN: %d (%lldns)\n", > -rpprevdown, > -intel_gt_pm_interval_to_ns(&dev_priv->gt, > - rpprevdown)); > - seq_printf(m, "Down threshold: %d%%\n", > -rps->power.down_threshold); > - > - max_freq = (IS_GEN9_LP(dev_priv) ? rp_state_cap >> 0 : > - rp_state_cap >> 16) & 0xff; > - max_freq *= (IS_GEN9_BC(dev_priv) || > - GRAPHICS_VER(dev_priv) >= 11 ? GEN9_FREQ_SCALER : > 1); > - seq_printf(m, "Lowest (RPN) frequency: %dMHz\n", > -intel_gpu_freq(rps, max_freq)); > - > - max_freq = (rp_state_cap & 0xff00) >> 8; > - max_freq *= (IS_GEN9_BC(dev_priv) || > - GRAPHICS_VER(dev_priv) >= 11 ? GEN9_FREQ_SCALER : > 1); > - seq_printf(m, "Nominal (RP1) frequency: %dMHz\n", > -intel_gpu_freq(rps, max_freq)); > - > - max_freq = (IS_GEN9_LP(dev_priv) ? rp_state_cap >> 16 : > - rp_state_cap >> 0) & 0xff; > - max_freq *= (IS_GEN9_BC(dev_priv) || > - GRAPHICS_VER(dev_priv) >= 11 ? GEN9_FREQ_SCALER : > 1); > - seq_printf(m, "Max non-overclocked (RP0) frequency: %dMHz\n", > -intel_gpu_freq(rps, max_freq)); > - seq_printf(m, "Max overclocked frequency: %dMHz\n", > -intel_gpu_freq(rps, rps->max_freq)); > - > - seq_printf(m, "Current freq: %d MHz\n", > -intel_gpu_freq(rps, rps->cur_freq)); > - seq_printf(m, "Actual freq: %d MHz\n", cagf); > - seq_printf(m, "Idle freq: %d MHz\n", > -intel_gpu_freq(rps, rps->idle_freq)); > - seq_printf(m, "Min freq: %d MHz\n", > -intel_gpu_freq(rps, rps->min_freq)); > - seq_printf(m, "Boost freq: %d MHz\n", > -intel_gpu_freq(rps, rps->boost_freq)); > - seq_printf(m, "Max freq: %d MHz\n", > -intel_gpu_freq(rps, rps->max_freq)); > - seq_printf(m, > -"efficient (RPe) frequency: %d MHz\n", > -intel_gpu_freq(rps, rps->efficient_freq)); > - } else { > - seq_puts(m, "no P-state info available\n"); > - } > + struct drm_i915_private *i915 = node_to_i915(m->private); > + struct intel_gt *gt = &i915->gt; > + struct drm_printer p = drm_seq_file_printer(m); > > - seq_printf(m, "Current CD clock frequency: %d kHz\n", > dev_priv->cdclk.hw.cdclk); > - seq_printf(m, "Max CD clock frequency: %d kHz\n", > dev_priv->max_cdclk_freq); > - seq_printf(m, "Max pixel clock frequency: %d kHz\n", > dev_priv->max_dotclk_freq); > + debugfs_gt_pm_frequency_dump(gt, &p); > > - intel_runtime_pm_put(&dev_priv->runtime_pm, wakeref); > return 0; > } -- Jani Nikula, Intel Open Source Graphics Center

Re: [Intel-gfx] [PATCH 2/2] drm/i915/uncore: constify the register vtables.

2021-09-08 Thread Jani Nikula
On Wed, 08 Sep 2021, Dave Airlie wrote: > From: Dave Airlie > > This reworks the uncore function vtable so that it's constant. There's a bug in there, see comment inline, with that fixed, Reviewed-by: Jani Nikula > > Signed-off-by: Dave Airlie > --- > driv

Re: [Intel-gfx] [PATCH 1/2] drm/i915/uncore: split the fw get function into separate vfunc

2021-09-08 Thread Jani Nikula
d symmetrical, and the compiler will inline the call away. Other than that, and the fact that this fails to apply and thus doesn't give us CI results, Reviewed-by: Jani Nikula > > fw_domains_reset(uncore, uncore->fw_domains); > assert_forcewakes_inactive(

Re: [Intel-gfx] [PATCH 03/21] drm/i915/wm: move the update watermark wrapper to display side.

2021-09-08 Thread Jani Nikula
rivers/gpu/drm/i915/intel_pm.h > @@ -29,7 +29,6 @@ struct skl_wm_level; > void intel_init_clock_gating(struct drm_i915_private *dev_priv); > void intel_suspend_hw(struct drm_i915_private *dev_priv); > int ilk_wm_max_level(const struct drm_i915_private *dev_priv); > -void intel_update_watermarks(struct drm_i915_private *dev_priv); > void intel_init_pm(struct drm_i915_private *dev_priv); > void intel_init_clock_gating_hooks(struct drm_i915_private *dev_priv); > void intel_pm_setup(struct drm_i915_private *dev_priv); -- Jani Nikula, Intel Open Source Graphics Center

Re: [Intel-gfx] [PATCH 05/21] drm/i915: split watermark vfuncs from display vtable.

2021-09-08 Thread Jani Nikula
priv)) { > if (!intel_get_cxsr_latency(!IS_MOBILE(dev_priv), > dev_priv->is_ddr3, > @@ -8008,18 +8008,18 @@ void intel_init_pm(struct drm_i915_private *dev_priv) > dev_priv->fsb_freq, dev_priv->mem_freq); > /* Disable CxSR and never update its watermark again */ > intel_set_memory_cxsr(dev_priv, false); > - dev_priv->display.update_wm = NULL; > + dev_priv->wm_disp.update_wm = NULL; > } else > - dev_priv->display.update_wm = pnv_update_wm; > + dev_priv->wm_disp.update_wm = pnv_update_wm; > } else if (DISPLAY_VER(dev_priv) == 4) { > - dev_priv->display.update_wm = i965_update_wm; > + dev_priv->wm_disp.update_wm = i965_update_wm; > } else if (DISPLAY_VER(dev_priv) == 3) { > - dev_priv->display.update_wm = i9xx_update_wm; > + dev_priv->wm_disp.update_wm = i9xx_update_wm; > } else if (DISPLAY_VER(dev_priv) == 2) { > if (INTEL_NUM_PIPES(dev_priv) == 1) > - dev_priv->display.update_wm = i845_update_wm; > + dev_priv->wm_disp.update_wm = i845_update_wm; > else > - dev_priv->display.update_wm = i9xx_update_wm; > + dev_priv->wm_disp.update_wm = i9xx_update_wm; > } else { > drm_err(&dev_priv->drm, > "unexpected fall-through in %s\n", __func__); -- Jani Nikula, Intel Open Source Graphics Center

Re: [Intel-gfx] [PATCH 06/21] drm/i915: split color functions from display vtable

2021-09-08 Thread Jani Nikula
On Wed, 08 Sep 2021, Dave Airlie wrote: > From: Dave Airlie > > These are only used internally in the color module I think this patch is a testament to my comment on wrappers for calling vfuncs. It's all intel_color.c implementation details. Reviewed-by: Jani Nikula I might

Re: [Intel-gfx] [PATCH 07/21] drm/i915: split audio functions from display vtable

2021-09-08 Thread Jani Nikula
odec_enable; > + dev_priv->audio_funcs.audio_codec_disable = > ilk_audio_codec_disable; > } > } > > diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h > index 7e5a8b1bbdd8..3e60bf8182e3 100644 > --- a/drivers/gpu/drm/i915/i915_d

Re: [Intel-gfx] [PATCH 08/21] drm/i915: split cdclk functions from display vtable.

2021-09-08 Thread Jani Nikula
tate->force_min_cdclk) > *need_cdclk_calc = true; > > - ret = dev_priv->display.bw_calc_min_cdclk(state); > + ret = dev_priv->cdclk_funcs.bw_calc_min_cdclk(state); > if (ret) > return ret; > > diff --git a/drivers/gpu

Re: [Intel-gfx] [PATCH 09/21] drm/i915: split irq hotplug function from display vtable

2021-09-08 Thread Jani Nikula
10 @@ struct drm_i915_display_cdclk_funcs { > u8 (*calc_voltage_level)(int cdclk); > }; > > +struct drm_i915_irq_funcs { Here, I'm a bit divided with the naming, irqs being more of i915 core, even if serving display. I could go with intel_hotplug_funcs. *shrug*. Reviewed-by:

Re: [Intel-gfx] [PATCH 10/21] drm/i915: split fdi link training from display vtable.

2021-09-08 Thread Jani Nikula
rivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h > index ece23401cb46..49b23ea46475 100644 > --- a/drivers/gpu/drm/i915/i915_drv.h > +++ b/drivers/gpu/drm/i915/i915_drv.h > @@ -388,6 +388,11 @@ struct drm_i915_irq_funcs { > void (*hpd_irq_setup)(struct drm_i

Re: [Intel-gfx] [PATCH 11/21] drm/i915: split the dpll clock compute out from display vtable.

2021-09-08 Thread Jani Nikula
/i915/i915_drv.h > @@ -393,6 +393,10 @@ struct drm_i915_fdi_link_train_funcs { > const struct intel_crtc_state *crtc_state); > }; > > +struct drm_i915_dpll_funcs { Nitpick, intel_dpll_funcs. Starting to spot the pattern? ;D Part of the point is

Re: [Intel-gfx] [PATCH 12/21] drm/i915: constify fdi link training vtable

2021-09-08 Thread Jani Nikula
On Wed, 08 Sep 2021, Dave Airlie wrote: > From: Dave Airlie > > Avoid having writeable function pointers. Would benefit from the call wrapper and naming. Reviewed-by: Jani Nikula > --- > drivers/gpu/drm/i915/display/intel_display.c | 2 +- > drivers/gpu/drm/i915/d

Re: [Intel-gfx] [PATCH 13/21] drm/i915: constify irq function vtable.

2021-09-08 Thread Jani Nikula
pd_irq_setup; > + dev_priv->irq_funcs = &icp_hpd_funcs; > else if (INTEL_PCH_TYPE(dev_priv) >= PCH_SPT) > - dev_priv->irq_funcs.hpd_irq_setup = spt_hpd_irq_setup; > + dev_priv->irq_funcs = &spt_hpd_funcs; > else > - dev_priv->irq_funcs.hpd_irq_setup = ilk_hpd_irq_setup; > + dev_priv->irq_funcs = &ilk_hpd_funcs; > } > } -- Jani Nikula, Intel Open Source Graphics Center

<    3   4   5   6   7   8   9   10   11   12   >