> -----Original Message----- > From: Jani Nikula <[email protected]> > Sent: 27 November 2025 16:19 > To: Golani, Mitulkumar Ajitkumar <[email protected]>; > [email protected] > Cc: [email protected]; Golani, Mitulkumar Ajitkumar > <[email protected]>; Nautiyal, Ankit K > <[email protected]>; [email protected] > Subject: Re: [PATCH v9 04/17] drm/i915/vrr: Add functions to read out > vmin/vmax stuff > > On Thu, 27 Nov 2025, Mitul Golani <[email protected]> > wrote: > > +int intel_vrr_dcb_vmin_vblank_start_next(const struct > > +intel_crtc_state *crtc_state) { > > + struct intel_display *display = to_intel_display(crtc_state); > > + enum transcoder cpu_transcoder = crtc_state->cpu_transcoder; > > + u32 tmp = 0; > > + > > + tmp = intel_de_read(display, > > +TRANS_VRR_DCB_ADJ_FLIPLINE_CFG_LIVE(cpu_transcoder)); > > + > > + if (REG_FIELD_GET(VRR_DCB_ADJ_FLIPLINE_CNT_MASK, tmp) == 0) > > + return -1; > > My pet peeve, using magic -1 as a negative error code. Understood. I will add appropriate error code instead returning -1. Thanks > > > BR, > Jani. > > > -- > Jani Nikula, Intel
RE: [PATCH v9 04/17] drm/i915/vrr: Add functions to read out vmin/vmax stuff
Golani, Mitulkumar Ajitkumar Mon, 01 Dec 2025 23:30:35 -0800
- [PATCH v9 00/17] Enable/Disable DC balance al... Mitul Golani
- [PATCH v9 03/17] drm/i915/vrr: Add VRR D... Mitul Golani
- [PATCH v9 02/17] drm/i915/dmc: Add pipe ... Mitul Golani
- [PATCH v9 01/17] drm/i915/display: Add s... Mitul Golani
- Re: [PATCH v9 01/17] drm/i915/displa... Nautiyal, Ankit K
- [PATCH v9 04/17] drm/i915/vrr: Add funct... Mitul Golani
- Re: [PATCH v9 04/17] drm/i915/vrr: A... Jani Nikula
- RE: [PATCH v9 04/17] drm/i915/vr... Golani, Mitulkumar Ajitkumar
- [PATCH v9 06/17] drm/i915/vrr: Add state... Mitul Golani
- [PATCH v9 08/17] drm/i915/vrr: Add funct... Mitul Golani
- Re: [PATCH v9 08/17] drm/i915/vrr: A... Nautiyal, Ankit K
- [PATCH v9 05/17] drm/i915/vrr: Add DC Ba... Mitul Golani
- [PATCH v9 09/17] drm/i915/display: Add D... Mitul Golani
- Re: [PATCH v9 09/17] drm/i915/displa... Nautiyal, Ankit K
- [PATCH v9 07/17] drm/i915/vrr: Add compu... Mitul Golani
- Re: [PATCH v9 07/17] drm/i915/vrr: A... Nautiyal, Ankit K
- Re: [PATCH v9 07/17] drm/i915/vr... Nautiyal, Ankit K
- RE: [PATCH v9 07/17] drm/i91... Golani, Mitulkumar Ajitkumar
