Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp400940rdb; Thu, 30 Nov 2023 07:45:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IHEZQY0vmdyyOY+jjmbkoFDagI0GELgDfH+Pc4KuK+2ZLaSXR4+QRk98Q2aosl0asXBFgD5 X-Received: by 2002:a17:902:d303:b0:1cc:4e81:36a4 with SMTP id b3-20020a170902d30300b001cc4e8136a4mr24795721plc.5.1701359107540; Thu, 30 Nov 2023 07:45:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701359107; cv=none; d=google.com; s=arc-20160816; b=U8mlRtKA5H9V33UEmAgsh0yPR83FTzly0rq9EyuQIzzLpRO4KjMDyerG/M44CMtgBS fN+h1MXHIS1tueTrE1J/4NnBVF188ybRdZt/YAhFwMO8WGM9BIOxsA1FYNPhWE+fuy58 TE2tMgMybDNXrv2xc04PwhjHHOL/2PsT2Ayrpp88UWVPmo1LM1te0/InZvioTRKmUCzJ H0xcQC510wddG32Cq9C4/L+3E3tvUspz7jwYZs+8NPRt4LqLT+UzAD2TvJNfnHuBOk69 37nGb0ZH8/JCb26BmTDAyvXnn7wf6/8Tme/NULPDbPsCRUvGTAyPTg5KHBHfzK2cPFjZ ovRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=yPoPW1DlaaRlOwR49FwHc/simOYb0iF7coLrkj6W170=; fh=4VFja1VaWsZbYOKL+WElJ1Zq6mBVN76EHVmMKftl2rg=; b=tzANlOhzGOuDj3IwtrF866iJao+a4hoaW4GtHLFjkKk3U2WdymRJHAI9vQNtOTbIfC WprFqj6ZA64yueU1OwXrEbXRkEC0mcto0AUoFSr/nWIFSzjbgKdj+BOCnmSf5QH88pm1 I21yuaDfXzz7BW3nVKw0R8yFrjsPfcZu6YrVzmAjavbh519Cv7dhkMBzb5pQtMO/w8UE u6K+tXPA6dGyqbpWsYlCALSjH9oz86m5+E9R88I1lyXkGN0Z8t4O0+cUOGQ3OuHzhFJh ReO5Ux05ykyFGVlaQIJU52BoLTD+yo0N1ck2pUBnOf4tlp72RUS5KayQUK2R21NssrWj tSwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Qy93z/MP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id e8-20020a17090301c800b001ce663d7930si1445320plh.47.2023.11.30.07.44.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 07:45:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Qy93z/MP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 24ED5827D0FE; Thu, 30 Nov 2023 07:44:43 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232246AbjK3Po3 (ORCPT + 99 others); Thu, 30 Nov 2023 10:44:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232208AbjK3Po2 (ORCPT ); Thu, 30 Nov 2023 10:44:28 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C82BF83; Thu, 30 Nov 2023 07:44:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701359074; x=1732895074; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ZzJQww8gCfXPFKpB1djUtfiz73/yfE52SVZo3S21BQ8=; b=Qy93z/MPH0JCgcicBy098e5MLVumQKiFWTcZwudq4iDnHmn8wBlz4oGE lliS2DyWkriEZdqOPS7b7sXIRQy/IdT8uGwCxhNW4QnH+IDVp2y2evNTm /gasdqdxOgEW9bGvmT3bgldVluP3vtfc086LDNmGh4sCtTl45qHWNmXkp i/0/7A0O9bYqhHx1B8wax7RjDYsDTcQgyqnJQRj4eSc6e8z6r2aqU+nme PyVgD+Q+axZRhkIMxRpkT890Xv5quL51aT+1WyRMFWTk9ikDeaBIrakJy 3tbLgJfTtCQZw/jliynfZM5ifMtz43mi2wJWDipW71psQIo/s4B2limuL g==; X-IronPort-AV: E=McAfee;i="6600,9927,10910"; a="242132" X-IronPort-AV: E=Sophos;i="6.04,239,1695711600"; d="scan'208";a="242132" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2023 07:44:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10910"; a="769344631" X-IronPort-AV: E=Sophos;i="6.04,239,1695711600"; d="scan'208";a="769344631" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orsmga002.jf.intel.com with ESMTP; 30 Nov 2023 07:44:28 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1r8jDG-0002FY-1V; Thu, 30 Nov 2023 15:44:26 +0000 Date: Thu, 30 Nov 2023 23:43:51 +0800 From: kernel test robot To: Kuogee Hsieh , dri-devel@lists.freedesktop.org, robdclark@gmail.com, sean@poorly.run, swboyd@chromium.org, dianders@chromium.org, vkoul@kernel.org, daniel@ffwll.ch, airlied@gmail.com, agross@kernel.org, dmitry.baryshkov@linaro.org, andersson@kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, quic_sbillaka@quicinc.com, linux-arm-msm@vger.kernel.org, quic_abhinavk@quicinc.com, Kuogee Hsieh , marijn.suijten@somainline.org, quic_jesszhan@quicinc.com, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] drm/msm/dpu: improve DSC allocation Message-ID: <202311302343.3lXKkLxR-lkp@intel.com> References: <1701289898-12235-1-git-send-email-quic_khsieh@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1701289898-12235-1-git-send-email-quic_khsieh@quicinc.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Thu, 30 Nov 2023 07:44:43 -0800 (PST) Hi Kuogee, kernel test robot noticed the following build warnings: [auto build test WARNING on drm-misc/drm-misc-next] [also build test WARNING on drm/drm-next drm-exynos/exynos-drm-next drm-intel/for-linux-next drm-intel/for-linux-next-fixes drm-tip/drm-tip linus/master v6.7-rc3 next-20231130] [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/Kuogee-Hsieh/drm-msm-dpu-improve-DSC-allocation/20231130-064646 base: git://anongit.freedesktop.org/drm/drm-misc drm-misc-next patch link: https://lore.kernel.org/r/1701289898-12235-1-git-send-email-quic_khsieh%40quicinc.com patch subject: [PATCH v1] drm/msm/dpu: improve DSC allocation config: arm-defconfig (https://download.01.org/0day-ci/archive/20231130/202311302343.3lXKkLxR-lkp@intel.com/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project.git f28c006a5895fc0e329fe15fead81e37457cb1d1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231130/202311302343.3lXKkLxR-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/202311302343.3lXKkLxR-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c:537:24: warning: incompatible pointer to integer conversion assigning to 'uint32_t' (aka 'unsigned int') from 'void *' [-Wint-conversion] pp_to_enc_id[pp_idx] = NULL; ^ ~~~~ 1 warning generated. vim +537 drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c 463 464 static int _dpu_rm_reserve_dsc(struct dpu_rm *rm, 465 struct dpu_global_state *global_state, 466 struct drm_encoder *enc, 467 const struct msm_display_topology *top) 468 { 469 int num_dsc = 0; 470 int i, pp_idx; 471 bool pair = false; 472 int dsc_idx[DSC_MAX - DSC_0]; 473 uint32_t pp_to_enc_id[PINGPONG_MAX - PINGPONG_0]; 474 int pp_max = PINGPONG_MAX - PINGPONG_0; 475 476 if (!top->num_dsc || !top->num_intf) 477 return 0; 478 479 /* 480 * Truth: 481 * 1) every layer mixer only connects to one pingpong 482 * 2) no pingpong split -- two layer mixers shared one pingpong 483 * 3) each DSC engine contains two dsc encoders 484 * -- index(0,1), index (2,3),... etc 485 * 4) dsc pair can only happens with same DSC engine except 4 dsc 486 * merge mode application (8k) which need two DSC engines 487 * 5) odd pingpong connect to odd dsc 488 * 6) even pingpong connect even dsc 489 */ 490 491 /* num_dsc should be either 1, 2 or 4 */ 492 if (top->num_dsc > top->num_intf) /* merge mode */ 493 pair = true; 494 495 /* fill working copy with pingpong list */ 496 memcpy(pp_to_enc_id, global_state->pingpong_to_enc_id, sizeof(pp_to_enc_id)); 497 498 for (i = 0; i < ARRAY_SIZE(rm->dsc_blks); i++) { 499 if (!rm->dsc_blks[i]) /* end of dsc list */ 500 break; 501 502 if (global_state->dsc_to_enc_id[i]) { /* used */ 503 /* consective dsc index to be paired */ 504 if (pair && num_dsc) { /* already start pairing, re start */ 505 num_dsc = 0; 506 /* fill working copy with pingpong list */ 507 memcpy(pp_to_enc_id, global_state->pingpong_to_enc_id, 508 sizeof(pp_to_enc_id)); 509 } 510 continue; 511 } 512 513 /* odd index can not become start of pairing */ 514 if (pair && (i & 0x01) && !num_dsc) 515 continue; 516 517 /* 518 * find the pingpong index which had been reserved 519 * previously at layer mixer allocation 520 */ 521 for (pp_idx = 0; pp_idx < pp_max; pp_idx++) { 522 if (pp_to_enc_id[pp_idx] == enc->base.id) 523 break; 524 } 525 526 /* 527 * dsc even index must map to pingpong even index 528 * dsc odd index must map to pingpong odd index 529 */ 530 if ((i & 0x01) != (pp_idx & 0x01)) 531 continue; 532 533 /* 534 * delete pp_idx so that it can not be found at next search 535 * in the case of pairing 536 */ > 537 pp_to_enc_id[pp_idx] = NULL; 538 539 dsc_idx[num_dsc++] = i; 540 if (num_dsc >= top->num_dsc) 541 break; 542 } 543 544 if (num_dsc < top->num_dsc) { 545 DPU_ERROR("DSC allocation failed num_dsc=%d required=%d\n", 546 num_dsc, top->num_dsc ); 547 return -ENAVAIL; 548 } 549 550 /* reserve dsc */ 551 for (i = 0; i < top->num_dsc; i++) { 552 int j; 553 554 j = dsc_idx[i]; 555 global_state->dsc_to_enc_id[j] = enc->base.id; 556 } 557 558 return 0; 559 } 560 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki