From: kernel test robot <lkp@intel.com>
To: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH v9 3/8] drm/i915: Compute CMRR and calculate vtotal
Date: Sat, 25 May 2024 01:21:35 +0800 [thread overview]
Message-ID: <202405250142.FLXe7CwI-lkp@intel.com> (raw)
In-Reply-To: <20240524102432.2499104-4-mitulkumar.ajitkumar.golani@intel.com>
Hi Mitul,
kernel test robot noticed the following build errors:
[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on drm-tip/drm-tip next-20240523]
[cannot apply to drm-intel/for-linux-next-fixes linus/master v6.9]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Mitul-Golani/drm-i915-Define-and-compute-Transcoder-CMRR-registers/20240524-183131
base: git://anongit.freedesktop.org/drm-intel for-linux-next
patch link: https://lore.kernel.org/r/20240524102432.2499104-4-mitulkumar.ajitkumar.golani%40intel.com
patch subject: [PATCH v9 3/8] drm/i915: Compute CMRR and calculate vtotal
config: i386-randconfig-012-20240524 (https://download.01.org/0day-ci/archive/20240525/202405250142.FLXe7CwI-lkp@intel.com/config)
compiler: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240525/202405250142.FLXe7CwI-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202405250142.FLXe7CwI-lkp@intel.com/
All errors (new ones prefixed by >>):
ld: drivers/gpu/drm/i915/display/intel_vrr.o: in function `cmrr_get_vtotal':
>> drivers/gpu/drm/i915/display/intel_vrr.c:147:(.text+0x446): undefined reference to `__divdi3'
>> ld: drivers/gpu/drm/i915/display/intel_vrr.c:159:(.text+0x564): undefined reference to `__udivdi3'
vim +147 drivers/gpu/drm/i915/display/intel_vrr.c
135
136 static unsigned int
137 cmrr_get_vtotal(struct intel_crtc_state *crtc_state)
138 {
139 int multiplier_m = 1, multiplier_n = 1, vtotal;
140 int actual_refresh_rate, desired_refresh_rate;
141 long long actual_pixel_rate, adjusted_pixel_rate, pixel_clock_per_line;
142 struct drm_display_mode *adjusted_mode = &crtc_state->hw.adjusted_mode;
143
144 pixel_clock_per_line =
145 adjusted_mode->crtc_clock * 1000 / adjusted_mode->crtc_htotal;
146 actual_refresh_rate =
> 147 pixel_clock_per_line * FIXED_POINT_PRECISION / adjusted_mode->crtc_vtotal;
148 desired_refresh_rate = drm_mode_vrefresh(adjusted_mode);
149 actual_pixel_rate = actual_refresh_rate * adjusted_mode->crtc_vtotal;
150 actual_pixel_rate =
151 (actual_pixel_rate * adjusted_mode->crtc_htotal) / FIXED_POINT_PRECISION;
152
153 multiplier_m = 1001;
154 multiplier_n = 1000;
155
156 crtc_state->cmrr.cmrr_n =
157 ((desired_refresh_rate * adjusted_mode->crtc_htotal * multiplier_n) / multiplier_m);
158 crtc_state->cmrr.cmrr_n *= multiplier_n;
> 159 vtotal = (actual_pixel_rate * multiplier_n) / crtc_state->cmrr.cmrr_n;
160 adjusted_pixel_rate = actual_pixel_rate * multiplier_m;
161 crtc_state->cmrr.cmrr_m = do_div(adjusted_pixel_rate, crtc_state->cmrr.cmrr_n);
162
163 return vtotal;
164 }
165
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-05-24 17:22 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-24 10:24 [PATCH v9 0/8] Implement CMRR Support Mitul Golani
2024-05-24 10:24 ` [PATCH v9 1/8] drm/i915: Define and compute Transcoder CMRR registers Mitul Golani
2024-05-24 20:24 ` kernel test robot
2024-05-27 10:50 ` Jani Nikula
2024-05-27 10:52 ` Jani Nikula
2024-05-24 10:24 ` [PATCH v9 2/8] drm/i915: Update trans_vrr_ctl flag when cmrr is computed Mitul Golani
2024-05-28 9:06 ` Nautiyal, Ankit K
2024-05-24 10:24 ` [PATCH v9 3/8] drm/i915: Compute CMRR and calculate vtotal Mitul Golani
2024-05-24 17:21 ` kernel test robot [this message]
2024-05-25 1:24 ` kernel test robot
2024-05-28 9:34 ` Nautiyal, Ankit K
2024-05-29 11:43 ` Nautiyal, Ankit K
2024-05-24 10:24 ` [PATCH v9 4/8] Add refresh rate divider to struct representing AS SDP Mitul Golani
2024-05-28 9:35 ` Nautiyal, Ankit K
2024-05-24 10:24 ` [PATCH v9 5/8] drm/i915/display: Add support for pack and unpack Mitul Golani
2024-05-28 9:37 ` Nautiyal, Ankit K
2024-05-24 10:24 ` [PATCH v9 6/8] drm/i915/display: Compute Adaptive sync SDP params Mitul Golani
2024-05-28 9:39 ` Nautiyal, Ankit K
2024-05-24 10:24 ` [PATCH v9 7/8] drm/i915/display: Compute vrr vsync params Mitul Golani
2024-05-24 10:24 ` [PATCH v9 8/8] drm/i915/display: Compute cmrr.enable flag Mitul Golani
2024-05-24 11:02 ` ✗ Fi.CI.CHECKPATCH: warning for Implement CMRR Support (rev9) Patchwork
2024-05-24 11:02 ` ✗ Fi.CI.SPARSE: " Patchwork
2024-05-24 11:13 ` ✗ Fi.CI.BAT: failure " Patchwork
2024-05-27 10:10 ` ✓ Fi.CI.BAT: success " Patchwork
2024-05-27 15:15 ` ✗ Fi.CI.IGT: failure " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202405250142.FLXe7CwI-lkp@intel.com \
--to=lkp@intel.com \
--cc=mitulkumar.ajitkumar.golani@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.