[PATCH 2/2] drm/i915/debugfs: add dedicated intel_display_caps debugfs for display

2024-09-13 Thread Jani Nikula
debugfs. Note that we don't add node_to_intel_display() functionality in to_intel_display(). It's too specific for that. Signed-off-by: Jani Nikula --- .../drm/i915/display/intel_display_debugfs.c | 18 ++ drivers/gpu/drm/i915/i915_debugfs.c| 4 2 fil

[PATCH 0/2] drm/i915/debugfs: intel_display_caps

2024-09-13 Thread Jani Nikula
Strike another i915 core -> display include and call. Jani Nikula (2): drm/i915/debugfs: remove superfluous kernel_param_lock/unlock drm/i915/debugfs: add dedicated intel_display_caps debugfs for display .../drm/i915/display/intel_display_debugfs.c | 18 ++ drivers/gpu/

[PATCH 1/2] drm/i915/debugfs: remove superfluous kernel_param_lock/unlock

2024-09-13 Thread Jani Nikula
We're not actually accessing the module params here anymore. The locking is completely unnecessary. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_debugfs.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debu

Re: [PATCH 5/8] drm/imagination: annotate pvr_fw_version_packed() with __maybe_unused

2024-09-13 Thread Jani Nikula
On Tue, 10 Sep 2024, Matt Coster wrote: > On 10/09/2024 11:03, Jani Nikula wrote: >> Building with clang and and W=1 leads to warning about unused >> pvr_fw_version_packed(). Fix by annotating it with __maybe_unused. >> >> See also commit 6863f5643dd7 ("kbuild: a

RE: [PATCH 3/8] drm/kmb: annotate set_test_mode_src_osc_freq_target_{low,hi}_bits() with __maybe_unused

2024-09-13 Thread Jani Nikula
On Tue, 10 Sep 2024, "Chrisanthus, Anitha" wrote: > Thanks for the patch. > > Acked-by: Anitha Chrisanthus Thanks, pushed to drm-misc-next. BR, Jani. -- Jani Nikula, Intel

Re: [PATCH 1/3] drm/i915/irq: Remove duplicated irq_enabled variable

2024-09-13 Thread Jani Nikula
;)' shows that this was a legacy > DRM level irq_enabled information that got removed. > > But the driver one already existed under a different > name. > > Cc: Jani Nikula > Signed-off-by: Rodrigo Vivi > --- > drivers/gpu/drm/i915/i915_drv.h | 2 -- > drivers/gp

Re: [PATCH] drm/i915/display: Convert i915_suspend into i9xx_display_sr

2024-09-13 Thread Jani Nikula
intel_display struct yet because it depends > on drm_i915_private for the IS_MOBILE. > > While doing this conversion also update the MIT header using > the new SPDX ones. > > Cc: Jesse Barnes > Cc: Jani Nikula > Signed-off-by: Rodrigo Vivi > --- > drivers/gpu/drm/i915

Re: [PATCH] drm/i915/display: Check whether platform supports joiner

2024-09-12 Thread Jani Nikula
On Thu, 12 Sep 2024, Jani Nikula wrote: > On Thu, 12 Sep 2024, Ankit Nautiyal wrote: >> Add macros to check if platform supports bigjoiner/uncompressed joiner. >> Replace the existing DISPLAY_VER checks with these. >> Additionally use it before readout for joiner stu

[PATCH v3 4/4] drm/i915/display: move dmc snapshotting to new display snapshot

2024-09-12 Thread Jani Nikula
Convert dmc error state printing to new snapshot capture/print division. v2: Rebase Reviewed-by: Rodrigo Vivi Signed-off-by: Jani Nikula --- .../drm/i915/display/intel_display_snapshot.c | 5 +++ drivers/gpu/drm/i915/display/intel_dmc.c | 38 +++ drivers/gpu/drm/i915

[PATCH v3 3/4] drm/i915/display: move device info and params handling to snapshot

2024-09-12 Thread Jani Nikula
Snapshot display device and runtime info as well as display parameters in display snapshot. Reviewed-by: Rodrigo Vivi Signed-off-by: Jani Nikula --- .../drm/i915/display/intel_display_snapshot.c | 25 +++ drivers/gpu/drm/i915/i915_gpu_error.c | 10 drivers/gpu

[PATCH v3 2/4] drm/i915/display: add intel_display_snapshot abstraction

2024-09-12 Thread Jani Nikula
bolting the snapshots there as well. v3: Fix build harder for CONFIG_DRM_I915_CAPTURE_ERROR=n v2: Fix build for CONFIG_DRM_I915_CAPTURE_ERROR=n (kernel test robot) Reviewed-by: Rodrigo Vivi Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/Makefile | 1 + .../drm/i915/display

[PATCH v3 1/4] drm/i915: dump display parameters captured in error state, not current

2024-09-12 Thread Jani Nikula
drigo Vivi Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_display_params.c | 8 +--- drivers/gpu/drm/i915/display/intel_display_params.h | 5 ++--- drivers/gpu/drm/i915/i915_debugfs.c | 2 +- drivers/gpu/drm/i915/i915_gpu_error.c | 2 +- 4

[PATCH v3 0/4] drm/i915/display: add snapshot capture/print infra

2024-09-12 Thread Jani Nikula
Rebased [1]. BR, Jani. [1] https://lore.kernel.org/r/cover.1725888718.git.jani.nik...@intel.com Jani Nikula (4): drm/i915: dump display parameters captured in error state, not current drm/i915/display: add intel_display_snapshot abstraction drm/i915/display: move device info and params

Re: [PATCH] drm/i915/display: Check whether platform supports joiner

2024-09-12 Thread Jani Nikula
i915/display/intel_dp.c > b/drivers/gpu/drm/i915/display/intel_dp.c > index cb0f6db5f8e7..c53eb8e165de 100644 > --- a/drivers/gpu/drm/i915/display/intel_dp.c > +++ b/drivers/gpu/drm/i915/display/intel_dp.c > @@ -2520,7 +2520,7 @@ bool intel_dp_joiner_needs_dsc(struct drm_i915_private > *i915, bool use_joiner) >* limitation. DG2 onwards pipe joiner can be enabled without >* compression. >*/ > - return DISPLAY_VER(i915) < 13 && use_joiner; > + return !HAS_UNCOMPRESSED_JOINER(i915) && use_joiner; > } > > static int -- Jani Nikula, Intel

Re: [PATCH 7/8] drm/msmi: annotate pll_cmp_to_fdata() with __maybe_unused

2024-09-12 Thread Jani Nikula
On Thu, 12 Sep 2024, Dmitry Baryshkov wrote: > On Thu, Sep 12, 2024 at 02:50:04PM GMT, Marc Gonzalez wrote: >> On 12/09/2024 14:28, Dmitry Baryshkov wrote: >> > On Thu, Sep 12, 2024 at 02:14:10PM GMT, Marc Gonzalez wrote: >> >> On 12/09/2024 13:15, Jani Nikula wro

Re: [PATCH 5/5] drm/i915/bios: Extract soc/intel_rom.c

2024-09-12 Thread Jani Nikula
single codepath that > can focus on the details related to the VBT layout. > > This should have no functional changes. Neat! Some nitpicks inline, but overall, Reviewed-by: Jani Nikula > > Signed-off-by: Ville Syrjälä > --- > drivers/gpu/drm/i915/Makefile

Re: [PATCH 4/5] drm/i915/bios: Extract vbt_signature[]

2024-09-12 Thread Jani Nikula
ntel_bios.c > @@ -2964,6 +2964,8 @@ static const struct bdb_header *get_bdb_header(const > struct vbt_header *vbt) > return _vbt + vbt->bdb_offset; > } > > +static const char vbt_signature[4] = "$VBT"; Always a bit scary to add s

Re: [PATCH 3/5] drm/i915/bios: Extract intel_spi_read16()

2024-09-12 Thread Jani Nikula
m_size - count) { > drm_dbg(display->drm, > @@ -3109,7 +3113,7 @@ static struct vbt_header *spi_oprom_get_vbt(struct > intel_display *display, > goto err_not_found; > > for (count = 0; count < vbt_size; count += 4) > - *(vbt + store++) = intel_spi_read(&i915->uncore, found + count); > + *(vbt + store++) = intel_spi_read32(&i915->uncore, found + > count); > > if (!intel_bios_is_valid_vbt(display, vbt, vbt_size)) > goto err_free_vbt; -- Jani Nikula, Intel

Re: [PATCH 2/5] drm/i915/bios: Round PCI ROM VBT allocation to multiple of 4

2024-09-12 Thread Jani Nikula
the two codepaths. This will make no functional difference. > > Signed-off-by: Ville Syrjälä Reviewed-by: Jani Nikula > --- > drivers/gpu/drm/i915/display/intel_bios.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/display/intel_b

Re: [PATCH 1/5] drm/i915/bios: Add some size checks to SPI VBT read

2024-09-12 Thread Jani Nikula
On Tue, 10 Sep 2024, Ville Syrjala wrote: > From: Ville Syrjälä > > Unify the SPI vs. PCI ROM VBT read codepaths a bit by > pulling some size overflow checks from the PCI side > into the SPI side. > > Signed-off-by: Ville Syrjälä Reviewed-by: Jani Nikula > --- > d

Re: [PATCH 7/8] drm/msmi: annotate pll_cmp_to_fdata() with __maybe_unused

2024-09-12 Thread Jani Nikula
On Thu, 12 Sep 2024, Marc Gonzalez wrote: > On 11/09/2024 12:23, Jani Nikula wrote: >> On Tue, 10 Sep 2024, Marc Gonzalez wrote: >>> On 10/09/2024 16:51, Dmitry Baryshkov wrote: >>>> On Tue, Sep 10, 2024 at 01:03:43PM GMT, Jani Nikula wrote: >>>>>

Re: [PATCH v10 1/4] drm/i915/lobf: No need to pass connector-state on lobf-compute-config.

2024-09-12 Thread Jani Nikula
el_alpm_lobf_compute_config(intel_dp, pipe_config); > intel_dp_drrs_compute_config(connector, pipe_config, link_bpp_x16); > intel_dp_compute_vsc_sdp(intel_dp, pipe_config, conn_state); > intel_dp_compute_hdr_metadata_infoframe_sdp(intel_dp, pipe_config, > conn_state); -- Jani Nikula, Intel

Re: [PATCHv2 5/5] drm/i915/display/histogram: Histogram changes for Display LNL+

2024-09-12 Thread Jani Nikula
_BIN_B 0x491CC > +#define DPST_IE_BIN(pipe)_MMIO_PIPE(pipe, > _DPST_IE_BIN_A, _DPST_IE_BIN_B) > +#define DPST_IE_BIN_DATA_MASK REG_GENMASK(9, > 0) > +#define DPST_IE_BIN_DATA(val) > REG_FIELD_PREP(DPST_IE_BIN_DATA_MASK, val) > + > +#define _DPST_IE_INDEX_A 0x490DC > +#define _DPST_IE_INDEX_B 0x491DC > +#define DPST_IE_INDEX(pipe) _MMIO_PIPE(pipe, > _DPST_IE_INDEX_A, _DPST_IE_INDEX_B) > +#define DPST_IE_BIN_INDEX_MASK REG_GENMASK(6, > 0) > +#define DPST_IE_BIN_INDEX(val) > REG_FIELD_PREP(DPST_IE_BIN_INDEX_MASK, val) > + > #define INTEL_HISTOGRAM_PIPEA0x9000 > #define INTEL_HISTOGRAM_PIPEB0x9002 > #define INTEL_HISTOGRAM_EVENT(pipe) PIPE(pipe, \ -- Jani Nikula, Intel

Re: [PATCHv2 3/5] Add crtc properties for global histogram

2024-09-12 Thread Jani Nikula
ews to > @@ -1431,6 +1437,13 @@ struct intel_crtc_state { > > /* LOBF flag */ > bool has_lobf; > + > + /* HISTOGRAM data */ Why all caps? > + int histogram_en; > + struct drm_property_blob *global_iet; > + struct drm_property_blob *histogram; > + bool global_iet_changed; > + bool histogram_en_changed; Please add a substruct for all the histogram stuff to keep it clean. > }; > > enum intel_pipe_crc_source { > @@ -1538,6 +1551,10 @@ struct intel_crtc { > struct pm_qos_request vblank_pm_qos; > > struct intel_histogram *histogram; > + /* HISTOGRAM properties */ > + struct drm_property *histogram_en_property; > + struct drm_property *global_iet_property; > + struct drm_property *histogram_property; > > #ifdef CONFIG_DEBUG_FS > struct intel_pipe_crc pipe_crc; > diff --git a/drivers/gpu/drm/i915/display/intel_histogram.c > b/drivers/gpu/drm/i915/display/intel_histogram.c > index 83ba826a7a89..ad4f75607ccb 100644 > --- a/drivers/gpu/drm/i915/display/intel_histogram.c > +++ b/drivers/gpu/drm/i915/display/intel_histogram.c > @@ -66,6 +66,12 @@ static void intel_histogram_handle_int_work(struct > work_struct *work) > i, histogram->bindata[i]); > } > > + drm_property_replace_global_blob(&i915->drm, > + &intel_crtc->config->histogram, > + sizeof(histogram->bindata), > + histogram->bindata, &intel_crtc->base.base, > + intel_crtc->histogram_property); > + > /* Notify user for Histogram rediness */ > if (kobject_uevent_env(&i915->drm.primary->kdev->kobj, KOBJ_CHANGE, > histogram_event)) > @@ -193,6 +199,7 @@ static void intel_histogram_disable(struct intel_crtc > *intel_crtc) > > cancel_delayed_work(&histogram->handle_histogram_int_work); > histogram->enable = false; > + intel_crtc->config->histogram_en = false; > } > > int intel_histogram_update(struct intel_crtc *intel_crtc, bool enable) -- Jani Nikula, Intel

Re: [PATCHv2 2/5] drm/i915/display: histogram interrupt handling

2024-09-12 Thread Jani Nikula
PIPE_LEGACY_BLC_EVENT_ENABLE (1UL << 22) > #define PIPE_ODD_FIELD_INTERRUPT_ENABLE(1UL << 21) > @@ -1678,7 +1678,7 @@ > #define PIPE_HOTPLUG_INTERRUPT_STATUS (1UL << 10) > #define PIPE_VSYNC_INTERRUPT_STATUS(1UL << 9) > #define PIPE_DISPLAY_LINE_COMPARE_STATUS (1UL << 8) > -#define PIPE_DPST_EVENT_STATUS (1UL << 7) > +#define PIPE_HISTOGRAM_EVENT_STATUS(1UL << 7) > #define PIPE_A_PSR_STATUS_VLV (1UL << 6) > #define PIPE_LEGACY_BLC_EVENT_STATUS (1UL << 6) > #define PIPE_ODD_FIELD_INTERRUPT_STATUS(1UL << 5) > @@ -2516,6 +2516,7 @@ > #define GEN11_PIPE_PLANE7_FLIP_DONE REG_BIT(18) /* icl/tgl */ > #define GEN11_PIPE_PLANE6_FLIP_DONE REG_BIT(17) /* icl/tgl */ > #define GEN11_PIPE_PLANE5_FLIP_DONE REG_BIT(16) /* icl+ */ > +#define GEN9_PIPE_HISTOGRAM_EVENT REG_BIT(12) /* skl+ */ > #define GEN9_PIPE_CURSOR_FAULT REG_BIT(11) /* skl+ */ > #define GEN9_PIPE_PLANE4_FAULT REG_BIT(10) /* skl+ */ > #define GEN8_PIPE_CURSOR_FAULT REG_BIT(10) /* bdw */ -- Jani Nikula, Intel

Re: [PATCHv2 1/5] drm/i915/display: Add support for histogram

2024-09-12 Thread Jani Nikula
INTEL_HISTOGRAM_PIPEA, \ > + INTEL_HISTOGRAM_PIPEB) > + > +#define HISTOGRAM_BIN_COUNT 32 > +#define HISTOGRAM_IET_LENGTH 33 > + Please put registers in a separate _regs.h file. > +enum intel_global_hist_status { > + INTEL_HISTOGRAM_ENABLE, > + INTEL_HISTOGRAM_DISABLE, > +}; > + > +enum intel_global_histogram { > + INTEL_HISTOGRAM, > +}; > + > +enum intel_global_hist_lut { > + INTEL_HISTOGRAM_PIXEL_FACTOR, > +}; > + > +int intel_histogram_atomic_check(struct intel_crtc *intel_crtc); > +int intel_histogram_update(struct intel_crtc *intel_crtc, bool enable); > +int intel_histogram_set_iet_lut(struct intel_crtc *intel_crtc, u32 *data); > +int intel_histogram_init(struct intel_crtc *intel_crtc); > +void intel_histogram_deinit(struct intel_crtc *intel_crtc); > + > +#endif /* __INTEL_HISTOGRAM_H__ */ > diff --git a/drivers/gpu/drm/xe/Makefile b/drivers/gpu/drm/xe/Makefile > index b9670ae09a9e..424ea43016dd 100644 > --- a/drivers/gpu/drm/xe/Makefile > +++ b/drivers/gpu/drm/xe/Makefile > @@ -238,6 +238,7 @@ xe-$(CONFIG_DRM_XE_DISPLAY) += \ > i915-display/intel_hdcp.o \ > i915-display/intel_hdcp_gsc_message.o \ > i915-display/intel_hdmi.o \ > + i915-display/intel_histogram.o \ > i915-display/intel_hotplug.o \ > i915-display/intel_hotplug_irq.o \ > i915-display/intel_hti.o \ -- Jani Nikula, Intel

Re: [PATCH 1/3] drm/i915/dp: use fsleep instead of usleep_rage for LT

2024-09-12 Thread Jani Nikula
2b_lane_eq(struct intel_dp *intel_dp, > deadline = jiffies + msecs_to_jiffies_timeout(400); > > for (try = 0; try < max_tries; try++) { > - usleep_range(delay_us, 2 * delay_us); > + fsleep(delay_us); > > /* >* The delay may get updated. The transmitter shall read the -- Jani Nikula, Intel

Re: [PATCH 2/3] drm/i915/dp: read Aux RD interval after reading the FFE preset

2024-09-12 Thread Jani Nikula
/* > + * The delay may get updated. The transmitter shall read the > + * delay before link status during link training. > + */ > + delay_us = drm_dp_128b132b_read_aux_rd_interval(&intel_dp->aux); > } > > if (try == max_tries) { -- Jani Nikula, Intel

Re: [PATCH 1/3] drm/i915/dp: use fsleep instead of usleep_rage for LT

2024-09-12 Thread Jani Nikula
8b132b_lane_eq(struct intel_dp *intel_dp, > deadline = jiffies + msecs_to_jiffies_timeout(400); > > for (try = 0; try < max_tries; try++) { > - usleep_range(delay_us, 2 * delay_us); > + fsleep(delay_us); > > /* >* The delay may get updated. The transmitter shall read the -- Jani Nikula, Intel

Re: [PATCH v2 06/11] drm/i915/reg: fix PCH transcoder timing indentation

2024-09-11 Thread Jani Nikula
On Tue, 10 Sep 2024, Ville Syrjälä wrote: > On Tue, Sep 10, 2024 at 04:28:50PM +0300, Jani Nikula wrote: >> Adhere to the style described at the top of i915_reg.h. >> >> Signed-off-by: Jani Nikula > > Reviewed-by: Ville Syrjälä Thanks, pushed the series to din. Fee

Re: [PATCH 0/2] HDCP intel_display refactors

2024-09-11 Thread Jani Nikula
c.c | 40 +- > drivers/gpu/drm/i915/display/intel_hdcp_gsc.h | 9 +- > .../drm/i915/display/intel_hdcp_gsc_message.c | 44 +- > .../drm/i915/display/intel_hdcp_gsc_message.h | 3 +- > drivers/gpu/drm/xe/display/xe_hdcp_gsc.c | 44 +- > 6 files changed, 422 insertions(+), 407 deletions(-) -- Jani Nikula, Intel

Re: [PATCH 7/8] drm/msmi: annotate pll_cmp_to_fdata() with __maybe_unused

2024-09-11 Thread Jani Nikula
On Tue, 10 Sep 2024, Marc Gonzalez wrote: > On 10/09/2024 16:51, Dmitry Baryshkov wrote: > >> On Tue, Sep 10, 2024 at 01:03:43PM GMT, Jani Nikula wrote: >> >>> Building with clang and and W=1 leads to warning about unused >>> pll_cmp_to_fdata(). Fix

Re: [PATCH 2/8] drm: renesas: rcar-du: annotate rcar_cmm_read() with __maybe_unused

2024-09-11 Thread Jani Nikula
On Wed, 11 Sep 2024, Laurent Pinchart wrote: > Jiapeng Chong has sent a patch to drop the function, and I've reviewed > it. See > https://lore.kernel.org/r/20240619075436.86407-1-jiapeng.ch...@linux.alibaba.com Even better, thanks! BR, Jani. -- Jani Nikula, Intel

Re: linux-next: manual merge of the drm-xe tree with the drm-intel tree

2024-09-11 Thread Jani Nikula
> + #include >> >> #include "soc/intel_dram.h" >> #include "i915_drv.h" /* FIXME: HAS_DISPLAY() depends on this >> */ > > This is now a conflict between the drm-intel and drm trees. I backmerged drm-next to drm-intel-next, resolving the conflict. Thanks, Jani. -- Jani Nikula, Intel

Re: [PATCH 4/8] drm/bridge: ti-sn65dsi86: annotate ti_sn_pwm_pin_{request, release} with __maybe_unused

2024-09-11 Thread Jani Nikula
On Tue, 10 Sep 2024, Doug Anderson wrote: > Hi, > > On Tue, Sep 10, 2024 at 3:04 AM Jani Nikula wrote: >> >> Building with clang, W=1, CONFIG_PM=n and CONFIG_OF_GPIO=n leads to >> warning about unused ti_sn_pwm_pin_request() and >> ti_sn_pwm_pin_relea

Re: [PATCH 2/8] drm: renesas: rcar-du: annotate rcar_cmm_read() with __maybe_unused

2024-09-10 Thread Jani Nikula
On Tue, 10 Sep 2024, Geert Uytterhoeven wrote: > Hi Jani, > > On Tue, Sep 10, 2024 at 12:06 PM Jani Nikula wrote: >> Building with clang and and W=1 leads to warning about unused >> rcar_cmm_read(). Fix by annotating it with __maybe_unused. >> >> See also co

Re: [PATCH 00/11] drm/i915: split out display regs

2024-09-10 Thread Jani Nikula
On Tue, 10 Sep 2024, Ville Syrjälä wrote: > On Mon, Sep 09, 2024 at 09:58:51PM +0300, Jani Nikula wrote: >> We've split out register macros from i915_reg.h functionally, but it has >> slowed down quite a bit. At this stage, split out all the display regs >> from i915_r

[PATCH v2 11/11] drm/i915/reg: remove superfluous whitespace

2024-09-10 Thread Jani Nikula
Clean up some whitespace. Reviewed-by: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_reg.h | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 6dbaaca1ab4c..7396fc630e29 100644 --- a/drivers

[PATCH v2 10/11] drm/i915/reg: remove unused DSI register macros

2024-09-10 Thread Jani Nikula
Not needed. Remove. Reviewed-by: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_reg.h | 19 --- 1 file changed, 19 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 70864cf96102..6dbaaca1ab4c 100644 --- a

[PATCH v2 08/11] drm/i915/reg: fix DIP CTL register style

2024-09-10 Thread Jani Nikula
Adhere to the style described at the top of i915_reg.h. Reviewed-by: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_reg.h | 82 ++--- 1 file changed, 44 insertions(+), 38 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers

[PATCH v2 09/11] drm/i915/reg: fix small register style issues here and there

2024-09-10 Thread Jani Nikula
Adhere to the style described at the top of i915_reg.h. Reviewed-by: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_reg.h | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915

[PATCH v2 07/11] drm/i915/reg: fix PCH transcoder timing and data/link m/n style

2024-09-10 Thread Jani Nikula
Adhere to the style described at the top of i915_reg.h. v2: Rebase with the indentation fixed (Ville) Reviewed-by: Ville Syrjälä # v1 Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_reg.h | 77 ++--- 1 file changed, 43 insertions(+), 34 deletions(-) diff

[PATCH v2 06/11] drm/i915/reg: fix PCH transcoder timing indentation

2024-09-10 Thread Jani Nikula
Adhere to the style described at the top of i915_reg.h. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_reg.h | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 2f09145b9791

[PATCH v2 03/11] drm/i915/reg: fix pipe conf, stat etc. register style

2024-09-10 Thread Jani Nikula
Adhere to the style described at the top of i915_reg.h. Reviewed-by: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_reg.h | 32 +--- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu

[PATCH v2 05/11] drm/i915/reg: fix SKL scaler register style

2024-09-10 Thread Jani Nikula
Adhere to the style described at the top of i915_reg.h. Reviewed-by: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_reg.h | 64 - 1 file changed, 31 insertions(+), 33 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers

[PATCH v2 01/11] drm/i915/reg: fix transcoder timing register style

2024-09-10 Thread Jani Nikula
Adhere to the style described at the top of i915_reg.h. Reviewed-by: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_psr_regs.h | 1 + drivers/gpu/drm/i915/i915_reg.h | 51 ++- 2 files changed, 29 insertions(+), 23 deletions

[PATCH v2 04/11] drm/i915/reg: fix pipe data/link m/n register style

2024-09-10 Thread Jani Nikula
Adhere to the style described at the top of i915_reg.h. Reviewed-by: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_reg.h | 39 ++--- 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers

[PATCH v2 02/11] drm/i915/reg: fix g4x pipe data/link m/n register style

2024-09-10 Thread Jani Nikula
Adhere to the style described at the top of i915_reg.h. Reviewed-by: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_reg.h | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h

[PATCH v2 00/11] drm/i915: register style fixes

2024-09-10 Thread Jani Nikula
Amended style fixes from [1] in preparation of doing the display/non-display register split. This doesn't include the actual split patch from that series, just the prep. BR, Jani. [1] https://lore.kernel.org/r/cover.1725908151.git.jani.nik...@intel.com Jani Nikula (11): drm/i915/reg

Re: [PATCH] drm/i915/pciid: Add new PCI id for ARL

2024-09-10 Thread Jani Nikula
\ >> MACRO__(0x7D51, ## __VA_ARGS__), \ >> MACRO__(0x7D67, ## __VA_ARGS__), \ >> -MACRO__(0x7DD1, ## __VA_ARGS__) >> + MACRO__(0x7DD1, ## __VA_ARGS__), \ >> +MACRO__(0xB640, ## __VA_ARGS__) >> >> /* MTL */ >> #define INTEL_MTL_IDS(MACRO__, ...) \ -- Jani Nikula, Intel

Re: [PATCH] drm: enable warnings on unused static inlines

2024-09-10 Thread Jani Nikula
On Thu, 05 Sep 2024, Jani Nikula wrote: > On Wed, 04 Sep 2024, Nathan Chancellor wrote: >> I ran this through my test matrix and this is what it found (across >> various configuration options, I can give specifics as necessary): > > Thanks, I didn't really expect thi

[PATCH 6/8] drm/meson: dw-hdmi: annotate dw_hdmi_dwc_write_bits() with __maybe_unused

2024-09-10 Thread Jani Nikula
Building with clang and and W=1 leads to warning about unused dw_hdmi_dwc_write_bits(). Fix by annotating it with __maybe_unused. See also commit 6863f5643dd7 ("kbuild: allow Clang to find unused static inline functions for W=1 build"). Signed-off-by: Jani Nikula --- Cc: Neil Arm

[PATCH 5/8] drm/imagination: annotate pvr_fw_version_packed() with __maybe_unused

2024-09-10 Thread Jani Nikula
Building with clang and and W=1 leads to warning about unused pvr_fw_version_packed(). Fix by annotating it with __maybe_unused. See also commit 6863f5643dd7 ("kbuild: allow Clang to find unused static inline functions for W=1 build"). Signed-off-by: Jani Nikula --- Cc: Frank Binns

[PATCH 8/8] drm: enable warnings on unused static inlines

2024-09-10 Thread Jani Nikula
We enable most W=1 warnings by default subsystem wide. Also enable warnings on unused static inlines when building with clang. See also commit 6863f5643dd7 ("kbuild: allow Clang to find unused static inline functions for W=1 build"). Cc: Nathan Chancellor Signed-off-by: J

[PATCH 7/8] drm/msmi: annotate pll_cmp_to_fdata() with __maybe_unused

2024-09-10 Thread Jani Nikula
Building with clang and and W=1 leads to warning about unused pll_cmp_to_fdata(). Fix by annotating it with __maybe_unused. See also commit 6863f5643dd7 ("kbuild: allow Clang to find unused static inline functions for W=1 build"). Signed-off-by: Jani Nikula --- Cc: Rob Clark C

[PATCH 4/8] drm/bridge: ti-sn65dsi86: annotate ti_sn_pwm_pin_{request, release} with __maybe_unused

2024-09-10 Thread Jani Nikula
build"). Signed-off-by: Jani Nikula --- Cc: Douglas Anderson Cc: Andrzej Hajda Cc: Neil Armstrong Cc: Robert Foss Cc: Laurent Pinchart Cc: Jonas Karlman Cc: Jernej Skrabec Cc: Nathan Chancellor --- drivers/gpu/drm/bridge/ti-sn65dsi86.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletion

[PATCH 3/8] drm/kmb: annotate set_test_mode_src_osc_freq_target_{low, hi}_bits() with __maybe_unused

2024-09-10 Thread Jani Nikula
r W=1 build"). Signed-off-by: Jani Nikula --- Cc: Anitha Chrisanthus Cc: Edmund Dea Cc: Nathan Chancellor --- drivers/gpu/drm/kmb/kmb_dsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/kmb/kmb_dsi.c b/drivers/gpu/drm/kmb/kmb_dsi.c index cf

[PATCH 2/8] drm: renesas: rcar-du: annotate rcar_cmm_read() with __maybe_unused

2024-09-10 Thread Jani Nikula
Building with clang and and W=1 leads to warning about unused rcar_cmm_read(). Fix by annotating it with __maybe_unused. See also commit 6863f5643dd7 ("kbuild: allow Clang to find unused static inline functions for W=1 build"). Signed-off-by: Jani Nikula --- Cc: Laurent Pinchart

[PATCH 0/8] drm: fix and enable warnings on unused static inlines

2024-09-10 Thread Jani Nikula
i.nik...@intel.com Jani Nikula (8): drm/bridge: dw-hdmi-i2s: annotate hdmi_read() with __maybe_unused drm: renesas: rcar-du: annotate rcar_cmm_read() with __maybe_unused drm/kmb: annotate set_test_mode_src_osc_freq_target_{low,hi}_bits() with __maybe_unused drm/bridge: ti-sn65

[PATCH 1/8] drm/bridge: dw-hdmi-i2s: annotate hdmi_read() with __maybe_unused

2024-09-10 Thread Jani Nikula
Building with clang and and W=1 leads to warning about unused hdmi_read(). Fix by annotating it with __maybe_unused. See also commit 6863f5643dd7 ("kbuild: allow Clang to find unused static inline functions for W=1 build"). Signed-off-by: Jani Nikula --- Cc: Andrzej Hajda Cc: Neil

Re: [PATCH 2/2] drm/i915/hdcp: Use intel_display in hdcp_gsc

2024-09-10 Thread Jani Nikula
t i915_hdcp_ops gsc_hdcp_ops = { > .close_hdcp_session = intel_hdcp_gsc_close_session, > }; > > -int intel_hdcp_gsc_init(struct xe_device *xe) > +int intel_hdcp_gsc_init(struct intel_display *display) > { > struct i915_hdcp_arbiter *data; > + struct xe_device *xe = to_xe_device(display->drm); > int ret; > > data = kzalloc(sizeof(*data), GFP_KERNEL); > if (!data) > return -ENOMEM; > > - mutex_lock(&xe->display.hdcp.hdcp_mutex); > - xe->display.hdcp.arbiter = data; > - xe->display.hdcp.arbiter->hdcp_dev = xe->drm.dev; > - xe->display.hdcp.arbiter->ops = &gsc_hdcp_ops; > + mutex_lock(&display->hdcp.hdcp_mutex); > + display->hdcp.arbiter = data; > + display->hdcp.arbiter->hdcp_dev = display->drm->dev; > + display->hdcp.arbiter->ops = &gsc_hdcp_ops; > ret = intel_hdcp_gsc_hdcp2_init(xe); This needs to accept display as well. Or are you going to do the full xe_hdcp_gsc.c conversion in a separate patch? BR, Jani. > if (ret) > kfree(data); > > - mutex_unlock(&xe->display.hdcp.hdcp_mutex); > + mutex_unlock(&display->hdcp.hdcp_mutex); > > return ret; > } > > -void intel_hdcp_gsc_fini(struct xe_device *xe) > +void intel_hdcp_gsc_fini(struct intel_display *display) > { > struct intel_hdcp_gsc_message *hdcp_message = > - xe->display.hdcp.hdcp_message; > - struct i915_hdcp_arbiter *arb = xe->display.hdcp.arbiter; > + display->hdcp.hdcp_message; > + struct i915_hdcp_arbiter *arb = display->hdcp.arbiter; > > if (hdcp_message) { > xe_bo_unpin_map_no_vm(hdcp_message->hdcp_bo); > kfree(hdcp_message); > - xe->display.hdcp.hdcp_message = NULL; > + display->hdcp.hdcp_message = NULL; > } > > kfree(arb); > - xe->display.hdcp.arbiter = NULL; > + display->hdcp.arbiter = NULL; > } > > static int xe_gsc_send_sync(struct xe_device *xe, -- Jani Nikula, Intel

Re: [PATCH 1/2] drm/i915/hdcp: Move to using intel_display in intel_hdcp

2024-09-10 Thread Jani Nikula
On Tue, 10 Sep 2024, Suraj Kandpal wrote: > Move to using intel_display wherever possible in intel_hdcp.c > as a part of code refactor. Overall good stuff, thanks for doing this! A bunch of nitpicks inline, almost all of them boil down to these two: - to_intel_display() uses _Generic(), pass in

Re: [PATCH 06/11] drm/i915/reg: fix PCH transcoder timing and data/link m/n style

2024-09-10 Thread Jani Nikula
On Tue, 10 Sep 2024, Ville Syrjälä wrote: > On Mon, Sep 09, 2024 at 09:58:57PM +0300, Jani Nikula wrote: >> Adhere to the style described at the top of i915_reg.h. >> >> Signed-off-by: Jani Nikula >> --- >> drivers/gpu/drm/i915/i915_reg.h | 77 +++

Re: [PATCH 11/11] drm/i915: split out display regs from i915_reg.h

2024-09-09 Thread Jani Nikula
On Mon, 09 Sep 2024, Ville Syrjälä wrote: > On Mon, Sep 09, 2024 at 09:59:02PM +0300, Jani Nikula wrote: >> Split out display/intel_display_regs.h from i915_reg.h. This is done >> programmatically. >> >> Register macros in i915_reg.h are considered in chunks separate

Re: [PATCH v2 2/4] drm/i915/display: add intel_display_snapshot abstraction

2024-09-09 Thread Jani Nikula
On Mon, 09 Sep 2024, Rodrigo Vivi wrote: > On Mon, Sep 09, 2024 at 04:32:57PM +0300, Jani Nikula wrote: >> The error state capture still handles display info at a too detailed >> level. Start abstracting the whole display snapshot capture and printing >> at a higher level. Mo

[PATCH 10/11] drm/i915/reg: remove superfluous whitespace

2024-09-09 Thread Jani Nikula
Clean up some whitespace. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_reg.h | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index f626d79bc3c0..3f4cfafd050f 100644 --- a/drivers/gpu/drm/i915/i915_reg.h +++ b

[PATCH 09/11] drm/i915/reg: remove unused DSI register macros

2024-09-09 Thread Jani Nikula
Not needed. Remove. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_reg.h | 19 --- 1 file changed, 19 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 993623710700..f626d79bc3c0 100644 --- a/drivers/gpu/drm/i915

[PATCH 08/11] drm/i915/reg: fix small register style issues here and there

2024-09-09 Thread Jani Nikula
Adhere to the style described at the top of i915_reg.h. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_reg.h | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index

[PATCH 07/11] drm/i915/reg: fix DIP CTL register style

2024-09-09 Thread Jani Nikula
Adhere to the style described at the top of i915_reg.h. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_reg.h | 82 ++--- 1 file changed, 44 insertions(+), 38 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index

[PATCH 06/11] drm/i915/reg: fix PCH transcoder timing and data/link m/n style

2024-09-09 Thread Jani Nikula
Adhere to the style described at the top of i915_reg.h. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_reg.h | 77 ++--- 1 file changed, 43 insertions(+), 34 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index

[PATCH 05/11] drm/i915/reg: fix SKL scaler register style

2024-09-09 Thread Jani Nikula
Adhere to the style described at the top of i915_reg.h. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_reg.h | 64 - 1 file changed, 31 insertions(+), 33 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index

[PATCH 04/11] drm/i915/reg: fix pipe data/link m/n register style

2024-09-09 Thread Jani Nikula
Adhere to the style described at the top of i915_reg.h. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_reg.h | 39 ++--- 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index

[PATCH 03/11] drm/i915/reg: fix pipe conf, stat etc. register style

2024-09-09 Thread Jani Nikula
Adhere to the style described at the top of i915_reg.h. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_reg.h | 32 +--- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index

[PATCH 02/11] drm/i915/reg: fix g4x pipe data/link m/n register style

2024-09-09 Thread Jani Nikula
Adhere to the style described at the top of i915_reg.h. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_reg.h | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 7a6ca695bb6a

[PATCH 01/11] drm/i915/reg: fix transcoder timing register style

2024-09-09 Thread Jani Nikula
Adhere to the style described at the top of i915_reg.h. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_psr_regs.h | 1 + drivers/gpu/drm/i915/i915_reg.h | 51 ++- 2 files changed, 29 insertions(+), 23 deletions(-) diff --git a/drivers/gpu/drm

[PATCH 00/11] drm/i915: split out display regs

2024-09-09 Thread Jani Nikula
e way for further cleanups. BR, Jani. Jani Nikula (11): drm/i915/reg: fix transcoder timing register style drm/i915/reg: fix g4x pipe data/link m/n register style drm/i915/reg: fix pipe conf, stat etc. register style drm/i915/reg: fix pipe data/link m/n register style drm/i915/reg: fi

Re: [PATCH v2 2/8] drm/i915/pps: only touch the vlv_ members on VLV/CHV

2024-09-09 Thread Jani Nikula
On Mon, 09 Sep 2024, Ville Syrjälä wrote: > On Mon, Sep 09, 2024 at 03:15:37PM +0300, Jani Nikula wrote: >> While the struct intel_pps vlv_pps_pipe and vlv_active_pipe members are >> only relevant for VLV/CHV, we still initialize them on all platforms and >> check them on BXT

[PATCH v2 4/4] drm/i915/display: move dmc snapshotting to new display snapshot

2024-09-09 Thread Jani Nikula
Convert dmc error state printing to new snapshot capture/print division. Reviewed-by: Rodrigo Vivi Signed-off-by: Jani Nikula --- .../drm/i915/display/intel_display_snapshot.c | 5 +++ drivers/gpu/drm/i915/display/intel_dmc.c | 39 +++ drivers/gpu/drm/i915/display

[PATCH v2 0/4] drm/i915/display: add snapshot capture/print infra

2024-09-09 Thread Jani Nikula
Another spin of [1]. BR, Jani. [1] https://lore.kernel.org/r/cover.1725372032.git.jani.nik...@intel.com Jani Nikula (4): drm/i915: dump display parameters captured in error state, not current drm/i915/display: add intel_display_snapshot abstraction drm/i915/display: move device info and

[PATCH v2 3/4] drm/i915/display: move device info and params handling to snapshot

2024-09-09 Thread Jani Nikula
Snapshot display device and runtime info as well as display parameters in display snapshot. Reviewed-by: Rodrigo Vivi Signed-off-by: Jani Nikula --- .../drm/i915/display/intel_display_snapshot.c | 25 +++ drivers/gpu/drm/i915/i915_gpu_error.c | 10 drivers/gpu

[PATCH v2 2/4] drm/i915/display: add intel_display_snapshot abstraction

2024-09-09 Thread Jani Nikula
bolting the snapshots there as well. v3: Fix build harder for CONFIG_DRM_I915_CAPTURE_ERROR=n v2: Fix build for CONFIG_DRM_I915_CAPTURE_ERROR=n (kernel test robot) Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/Makefile | 1 + .../drm/i915/display/intel_display_snapshot.c

[PATCH v2 1/4] drm/i915: dump display parameters captured in error state, not current

2024-09-09 Thread Jani Nikula
drigo Vivi Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_display_params.c | 8 +--- drivers/gpu/drm/i915/display/intel_display_params.h | 5 ++--- drivers/gpu/drm/i915/i915_debugfs.c | 2 +- drivers/gpu/drm/i915/i915_gpu_error.c | 2 +- 4

Re: [CI] drm/i915/dp: Dump the LTTPR PHY descriptors

2024-09-09 Thread Jani Nikula
nt; i++) > + for (i = 0; i < lttpr_count; i++) { > intel_dp_read_lttpr_phy_caps(intel_dp, dpcd, DP_PHY_LTTPR(i)); > + drm_dp_dump_lttpr_desc(&intel_dp->aux, DP_PHY_LTTPR(i)); > + } > > return lttpr_count; > } -- Jani Nikula, Intel

Re: [PATCH v2 3/8] drm/i915/pps: add vlv_pps_pipe_init()

2024-09-09 Thread Jani Nikula
On Mon, 09 Sep 2024, Jani Nikula wrote: > We need to track PPS also for non-eDP usage on VLV/CHV. Add new > vlv_pps_pipe_init() for initializing the related parts, hiding the PPS > pipe details inside PPS code. > > Signed-off-by: Jani Nikula > --- > drivers/gpu/drm/i915/di

Re: [PATCH 3/4] drm/i915/pps: add intel_pps_dp_power_down()

2024-09-09 Thread Jani Nikula
On Wed, 04 Sep 2024, Ville Syrjälä wrote: > On Wed, Sep 04, 2024 at 05:02:33PM +0300, Jani Nikula wrote: >> Add intel_pps_dp_power_down() and move the VLV/CHV active pipe clear >> there from intel_dp_link_down(), hiding the PPS pipe details inside PPS >> code. >> &g

[PATCH v2 8/8] drm/i915/pps: move vlv_active_pipe() to intel_pps.c

2024-09-09 Thread Jani Nikula
All the users for vlv_active_pipe() are within intel_pps.c now, and there are already uses of g4x_dp_port_enabled() and intel_dp->output_reg in there, so seems fine to reduce interfaces and move vlv_active_pipe() to intel_pps.c too. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/disp

[PATCH v2 7/8] drm/i915/pps: add vlv_pps_backlight_initial_pipe()

2024-09-09 Thread Jani Nikula
Add vlv_pps_backlight_initial_pipe() and move the VLV/CHV initial backlight pipe logic there, hiding the PPS pipe details inside PPS code. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_dp.c | 16 ++-- drivers/gpu/drm/i915/display/intel_pps.c | 20

[PATCH v2 6/8] drm/i915/pps: rename vlv_pps_init() to vlv_pps_port_enable()

2024-09-09 Thread Jani Nikula
Follow the naming for vlv_pps_port_disable(), as these are counterparts. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/g4x_dp.c| 2 +- drivers/gpu/drm/i915/display/intel_pps.c | 5 +++-- drivers/gpu/drm/i915/display/intel_pps.h | 4 ++-- 3 files changed, 6 insertions(+), 5

[PATCH v2 5/8] drm/i915/pps: add vlv_pps_port_disable()

2024-09-09 Thread Jani Nikula
Add vlv_pps_port_disable() and move the VLV/CHV active pipe clear there from intel_dp_link_down(), hiding the PPS pipe details inside PPS code. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/g4x_dp.c| 8 ++-- drivers/gpu/drm/i915/display/intel_pps.c | 12

[PATCH v2 4/8] drm/i915/pps: add vlv_pps_pipe_reset()

2024-09-09 Thread Jani Nikula
We need to track PPS also for non-eDP usage on VLV/CHV. Add new vlv_pps_pipe_reset() for resetting the related parts, hiding the PPS pipe details inside PPS code. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/g4x_dp.c| 8 ++-- drivers/gpu/drm/i915/display/intel_pps.c | 9

[PATCH v2 3/8] drm/i915/pps: add vlv_pps_pipe_init()

2024-09-09 Thread Jani Nikula
We need to track PPS also for non-eDP usage on VLV/CHV. Add new vlv_pps_pipe_init() for initializing the related parts, hiding the PPS pipe details inside PPS code. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_dp.c | 6 ++ drivers/gpu/drm/i915/display/intel_pps.c | 7

[PATCH v2 2/8] drm/i915/pps: only touch the vlv_ members on VLV/CHV

2024-09-09 Thread Jani Nikula
While the struct intel_pps vlv_pps_pipe and vlv_active_pipe members are only relevant for VLV/CHV, we still initialize them on all platforms and check them on BXT/GLK. Wrap all access inside VLV/CHV checks for consistency. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_dp.c

[PATCH v2 1/8] drm/i915/pps: add vlv_ prefix to pps_pipe and active_pipe members

2024-09-09 Thread Jani Nikula
The pps_pipe and active_pipe members of struct intel_pps are only relevant on VLV/CHV. Prefix them with vlv_. Note that there are still a few cases where they're accessed on non-VLV/CHV paths. We'll fix them separately. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/displa

[PATCH v2 0/8] drm/i915/pps: hide VLV/CHV PPS pipe stuff inside intel_pps.c

2024-09-09 Thread Jani Nikula
v2 of [1], and largely changed to isolate VLV/CHV stuff too. There are a couple of stragglers accessing intel_dp->pps directly, but this is progress. BR, Jani. [1] https://lore.kernel.org/r/cover.1725458428.git.jani.nik...@intel.com Jani Nikula (8): drm/i915/pps: add vlv_ prefix

RE: [PATCH] drm/i915/bios: fix printk format width

2024-09-09 Thread Jani Nikula
On Thu, 05 Sep 2024, "Kulkarni, Vandita" wrote: >> -Original Message- >> From: Intel-gfx On Behalf Of Jani >> Nikula >> Sent: Thursday, September 5, 2024 4:55 PM >> To: intel-gfx@lists.freedesktop.org >> Cc: Nikula, Jani ; sta...@vger.ker

Re: [PATCH 1/6] drm/i915/cdclk: Add missing braces

2024-09-06 Thread Jani Nikula
On Fri, 06 Sep 2024, Ville Syrjala wrote: > From: Ville Syrjälä > > CodingStyle says when one branch of an if ladder is braced > then all of them should be. Make it so. > > Signed-off-by: Ville Syrjälä Reviewed-by: Jani Nikula > --- > drivers/gpu/drm/i915/display/in

Re: [PATCH 2/6] drm/i915/cdclk: Convert CDCLK code to intel_display

2024-09-06 Thread Jani Nikula
nitpicks inline, but overall Reviewed-by: Jani Nikula [snip] > @@ -2685,20 +2712,21 @@ intel_set_cdclk_post_plane_update(struct > intel_atomic_state *state) > else > pipe = INVALID_PIPE; > > - drm_WARN_ON(&i915->drm, !new_cdclk_state-&g

Re: [PATCH 5/5] drm/i915: Add Wa_14021768792 as per WA framework

2024-09-06 Thread Jani Nikula
i915) > +{ > + return XE_WA(xe_root_mmio_gt(i915), 14021768792); > +} > diff --git a/drivers/gpu/drm/xe/xe_wa_oob.rules > b/drivers/gpu/drm/xe/xe_wa_oob.rules > index 920ca5060146..a7cc2c2d98d0 100644 > --- a/drivers/gpu/drm/xe/xe_wa_oob.rules > +++ b/drivers/gpu/drm/xe/xe_wa_oob.rules > @@ -37,3 +37,4 @@ > 16023588340 GRAPHICS_VERSION(2001) > 14019789679 GRAPHICS_VERSION(1255) > GRAPHICS_VERSION_RANGE(1270, 2004) > +14021768792 PLATFORM(BATTLEMAGE), GRAPHICS_STEP(C0, FOREVER) -- Jani Nikula, Intel

Re: [PATCH] drm/i915/display: use to_intel_display() global state macros

2024-09-05 Thread Jani Nikula
On Wed, 04 Sep 2024, Ville Syrjälä wrote: > On Wed, Sep 04, 2024 at 03:53:01PM +0300, Jani Nikula wrote: >> Convert intel_atomic_get_{old,new}_cdclk_state() and >> intel_atomic_get_{old,new}_dbuf_state() to use to_intel_display() >> instead of to_i915(). >> &g

Re: [PATCH] drm/i915: use IS_ENABLED() instead of defined() on config options

2024-09-05 Thread Jani Nikula
On Wed, 04 Sep 2024, "Dixit, Ashutosh" wrote: > On Wed, 04 Sep 2024 07:52:18 -0700, Jani Nikula wrote: >> >> Prefer IS_ENABLED() instead of defined() for checking whether a kconfig >> option is enabled. > > Reviewed-by: Ashutosh Dixit Thanks, pushed to di

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