From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9708DC25B6B for ; Thu, 26 Oct 2023 01:25:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232000AbjJZBZ4 (ORCPT ); Wed, 25 Oct 2023 21:25:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229954AbjJZBZy (ORCPT ); Wed, 25 Oct 2023 21:25:54 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8E33136 for ; Wed, 25 Oct 2023 18:25:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698283553; x=1729819553; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=amRn4daTHQX0xyFE0A0SgaV8/g/JqTUm/9VBQw6e+oY=; b=G4prrn559aiGpd01ZexAOyh62Wks6dgJ4Zj1MDaASRacQEFXD6APT7vx tVuG8QMsWI2ggY8TVQnYjAIzVBdehisMEdwGesEDziT3QoQJv5L/+zweI RZ4HgIeNkboyIsox7TZCH7vcQCuTePfhXkSjZgq6mXjoAlKq+tQTpS4ws azGXH7ljCfQ/xG6prXpIhPnzGAYxKdwkKJlOmDvrEKcSEBormUvV+4gHK 1HXNB7v6P54WFP15Cg6KJpdc6P6oIdIaw3GcBzuNItsm4xfArL1AirvmK LbFJugrJL/9fvX4hB50Cb4mOALKdNqr9E68yEyDaWr86VEa/EzZkdMKEn A==; X-IronPort-AV: E=McAfee;i="6600,9927,10874"; a="224225" X-IronPort-AV: E=Sophos;i="6.03,252,1694761200"; d="scan'208";a="224225" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2023 18:25:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10874"; a="932563473" X-IronPort-AV: E=Sophos;i="6.03,252,1694761200"; d="scan'208";a="932563473" Received: from lkp-server01.sh.intel.com (HELO 8917679a5d3e) ([10.239.97.150]) by orsmga005.jf.intel.com with ESMTP; 25 Oct 2023 18:25:47 -0700 Received: from kbuild by 8917679a5d3e with local (Exim 4.96) (envelope-from ) id 1qvp85-0009KA-0R; Thu, 26 Oct 2023 01:25:45 +0000 Date: Thu, 26 Oct 2023 09:25:12 +0800 From: kernel test robot To: Sagar Vashnav , Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deucher , Christian =?iso-8859-1?Q?K=F6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev Subject: Re: [PATCH] drm/amd/display: add kernel docs for dc_stream_forward_crc_window Message-ID: <202310260912.JFR01gdE-lkp@intel.com> References: <20231025140419.21180-1-sagarvashnav72427@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231025140419.21180-1-sagarvashnav72427@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sagar, kernel test robot noticed the following build warnings: [auto build test WARNING on drm-misc/drm-misc-next] [also build test WARNING on linus/master v6.6-rc7 next-20231025] [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/Sagar-Vashnav/drm-amd-display-add-kernel-docs-for-dc_stream_forward_crc_window/20231026-001250 base: git://anongit.freedesktop.org/drm/drm-misc drm-misc-next patch link: https://lore.kernel.org/r/20231025140419.21180-1-sagarvashnav72427%40gmail.com patch subject: [PATCH] drm/amd/display: add kernel docs for dc_stream_forward_crc_window config: csky-randconfig-002-20231026 (https://download.01.org/0day-ci/archive/20231026/202310260912.JFR01gdE-lkp@intel.com/config) compiler: csky-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231026/202310260912.JFR01gdE-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202310260912.JFR01gdE-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:536: warning: bad line: drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:539: warning: bad line: vim +536 drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c 530 531 /** 532 * dc_stream_forward_crc_window() - Forward CRC window configuration to DMUB or DMCU. 533 * @stream: The stream state to forward CRC window configuration for. 534 * @rect: Pointer to the rectangle defining the CRC window coordinates. 535 * @is_stop: Flag indicating whether the CRC capture should be stopped. > 536 537 * This function is responsible for forwarding the CRC window configuration 538 * for a given stream to either the DMUB or DMCU, depending on their availability. 539 540 * Return: 541 * %true if the CRC window configuration was successfully forwarded; 542 * %false if the stream was not found or CRC forwarding is not supported. 543 */ 544 bool 545 dc_stream_forward_crc_window(struct dc_stream_state *stream, 546 struct rect *rect, bool is_stop) 547 { 548 struct dmcu *dmcu; 549 struct dc_dmub_srv *dmub_srv; 550 struct otg_phy_mux mux_mapping; 551 struct pipe_ctx *pipe; 552 int i; 553 struct dc *dc = stream->ctx->dc; 554 555 for (i = 0; i < MAX_PIPES; i++) { 556 pipe = &dc->current_state->res_ctx.pipe_ctx[i]; 557 if (pipe->stream == stream && !pipe->top_pipe && !pipe->prev_odm_pipe) 558 break; 559 } 560 561 /* Stream not found */ 562 if (i == MAX_PIPES) 563 return false; 564 565 mux_mapping.phy_output_num = stream->link->link_enc_hw_inst; 566 mux_mapping.otg_output_num = pipe->stream_res.tg->inst; 567 568 dmcu = dc->res_pool->dmcu; 569 dmub_srv = dc->ctx->dmub_srv; 570 571 /* forward to dmub */ 572 if (dmub_srv) 573 dc_stream_forward_dmub_crc_window(dmub_srv, rect, &mux_mapping, is_stop); 574 /* forward to dmcu */ 575 else if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) 576 dc_stream_forward_dmcu_crc_window(dmcu, rect, &mux_mapping, is_stop); 577 else 578 return false; 579 580 return true; 581 } 582 #endif /* CONFIG_DRM_AMD_SECURE_DISPLAY */ 583 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki