All of lore.kernel.org
 help / color / mirror / Atom feed
* [intel-linux-intel-lts:5.4/yocto 8/24] drivers/gpu/drm/i915/gvt/display.c:834:5: error: no previous prototype for 'setup_vgpu_virtual_display_path'
@ 2020-08-01 18:10 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-08-01 18:10 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 6268 bytes --]

tree:   https://github.com/intel/linux-intel-lts.git 5.4/yocto
head:   8bbfe55bfdb2905c35914605bc1b4a4404d86649
commit: 2521b097a48688b899e3db9cb855aa1ec59b02e8 [8/24] drm/i915/gvt: Rebase IDV 2.1 direct display to 5.4.x.
config: x86_64-randconfig-a015-20200731 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce (this is a W=1 build):
        git checkout 2521b097a48688b899e3db9cb855aa1ec59b02e8
        # save the attached .config to linux build tree
        make W=1 ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/i915/gvt/display.c:834:5: error: no previous prototype for 'setup_vgpu_virtual_display_path' [-Werror=missing-prototypes]
     834 | int setup_vgpu_virtual_display_path(struct intel_vgpu *vgpu,
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/gvt/display.c:915:6: error: no previous prototype for 'clean_vgpu_virtual_display_path' [-Werror=missing-prototypes]
     915 | void clean_vgpu_virtual_display_path(struct intel_vgpu *vgpu,
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/gvt/display.c:1190:1: error: no previous prototype for 'vgpu_compute_plane_wm_params' [-Werror=missing-prototypes]
    1190 | vgpu_compute_plane_wm_params(struct intel_vgpu *vgpu,
         | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/gvt/display.c:1449:5: error: no previous prototype for 'vgpu_compute_plane_wm' [-Werror=missing-prototypes]
    1449 | int vgpu_compute_plane_wm(struct intel_vgpu *vgpu,
         |     ^~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors

vim +/setup_vgpu_virtual_display_path +834 drivers/gpu/drm/i915/gvt/display.c

   833	
 > 834	int setup_vgpu_virtual_display_path(struct intel_vgpu *vgpu,
   835					    struct intel_vgpu_display_path *disp_path)
   836	{
   837		struct drm_i915_private *dev_priv = vgpu->gvt->dev_priv;
   838		struct intel_connector *connector = NULL;
   839		struct drm_connector_list_iter conn_iter;
   840		struct intel_digital_port *dig_port;
   841		struct intel_crtc *intel_crtc;
   842		int ret = -EINVAL;
   843	
   844		if (!disp_path) {
   845			gvt_err("vgpu-%d invalid vgpu display path\n", vgpu->id);
   846			return ret;
   847		}
   848	
   849		intel_vgpu_init_i2c_edid(vgpu, &disp_path->i2c_edid);
   850	
   851		disp_path->p_pipe = intel_gvt_pipe_from_port(vgpu->gvt->dev_priv, disp_path->p_port);
   852		disp_path->pipe = disp_path->id - 1 + PIPE_A;
   853		disp_path->trans = disp_path->id - 1 + TRANSCODER_A;
   854		if (IS_GEN9_LP(dev_priv)) {
   855			disp_path->port = disp_path->id - 1 + PORT_A;
   856			if (disp_path->port == PORT_A) {
   857				disp_path->port_type = INTEL_OUTPUT_EDP;
   858				disp_path->trans = TRANSCODER_EDP;
   859			}
   860	
   861		} else {
   862			disp_path->port = disp_path->id - 1 + PORT_B;
   863			disp_path->port_type = INTEL_OUTPUT_DP;
   864		}
   865	
   866		clear_bit(INTEL_GVT_DIRECT_DISPLAY_HW_VSYNC, (void *)&disp_path->stat);
   867		disp_path->sw_vsync_injected = 0;
   868		disp_path->vsync_interval_ns = vgpu->gvt->irq.vblank_timer.period;
   869		disp_path->last_hwvsync_ns = 0;
   870	
   871		if (disp_path->p_port == PORT_NONE) {
   872			ret = setup_virtual_dp_monitor_edid(vgpu, disp_path, NULL);
   873			gvt_dbg_dpy("Virtual DP monitor is assigned to vgpu-%d PORT_%c\n",
   874				    vgpu->id, port_name(disp_path->port));
   875		} else {
   876			gvt_dbg_dpy("Host PIPE_%c PORT_%c is assigned to vgpu-%d PORT_%c\n",
   877				    pipe_name(disp_path->p_pipe), port_name(disp_path->p_port),
   878				    vgpu->id, port_name(disp_path->port));
   879		}
   880	
   881		drm_connector_list_iter_begin(&vgpu->gvt->dev_priv->drm, &conn_iter);
   882		for_each_intel_connector_iter(connector, &conn_iter) {
   883			dig_port = enc_to_dig_port(&connector->encoder->base);
   884			if (connector->detect_edid && dig_port) {
   885				if (dig_port->base.port == disp_path->p_port) {
   886					ret = setup_virtual_dp_monitor_edid(vgpu, disp_path, connector->detect_edid);
   887				}
   888			}
   889		}
   890		drm_connector_list_iter_end(&conn_iter);
   891	
   892		for_each_intel_crtc(&vgpu->gvt->dev_priv->drm, intel_crtc) {
   893			drm_modeset_lock(&intel_crtc->base.mutex, NULL);
   894			if (disp_path->p_pipe == intel_crtc->pipe) {
   895				struct drm_display_mode *mode = &(&intel_crtc->base)->mode;
   896	
   897				if (mode->vrefresh)
   898					disp_path->vsync_interval_ns = NSEC_PER_SEC / mode->vrefresh;
   899				drm_modeset_unlock(&intel_crtc->base.mutex);
   900				break;
   901			}
   902			drm_modeset_unlock(&intel_crtc->base.mutex);
   903		}
   904	
   905		if (vgpu->gvt->irq.vblank_timer.period > disp_path->vsync_interval_ns) {
   906			gvt_dbg_dpy("vgpu:%d vblank timer freq (%lld) is slower than HW vsync freq (%lld) on PIPE_%c\n",
   907				    vgpu->id, vgpu->gvt->irq.vblank_timer.period,
   908				    disp_path->vsync_interval_ns,
   909				    pipe_name(disp_path->p_pipe));
   910		}
   911	
   912		return ret;
   913	}
   914	
 > 915	void clean_vgpu_virtual_display_path(struct intel_vgpu *vgpu,
   916					     struct intel_vgpu_display_path *disp_path)
   917	{
   918		if (!disp_path) {
   919			gvt_err("vgpu-%d invalid vgpu display path\n", vgpu->id);
   920			return;
   921		}
   922	
   923		clean_virtual_dp_monitor(vgpu, disp_path);
   924	
   925		disp_path->id = 0;
   926		disp_path->resolution = GVT_EDID_NUM;
   927		disp_path->edid_id = 0;
   928		disp_path->p_port = PORT_NONE;
   929		disp_path->p_pipe = INVALID_PIPE;
   930		disp_path->port = PORT_NONE;
   931		disp_path->pipe = INVALID_PIPE;
   932		clear_bit(INTEL_GVT_DIRECT_DISPLAY_HW_VSYNC, (void *)&disp_path->stat);
   933		disp_path->sw_vsync_injected = 0;
   934		disp_path->last_hwvsync_ns = 0;
   935	
   936		gvt_dbg_dpy("vgpu-%d virtual display path-%d cleaned\n",
   937			    vgpu->id, disp_path->id);
   938	}
   939	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 35574 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-01 18:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-01 18:10 [intel-linux-intel-lts:5.4/yocto 8/24] drivers/gpu/drm/i915/gvt/display.c:834:5: error: no previous prototype for 'setup_vgpu_virtual_display_path' kernel test robot

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.