Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp344485rdb; Thu, 30 Nov 2023 06:25:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IGpJBM+1AzeBtPsZRL1sunISCEKmhkuv/EYC9t1zMw3UYzlX1nJ/QNFIapX7oRnj5V1nZgT X-Received: by 2002:a05:6a20:4288:b0:187:be84:38dd with SMTP id o8-20020a056a20428800b00187be8438ddmr25783677pzj.62.1701354346038; Thu, 30 Nov 2023 06:25:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701354346; cv=none; d=google.com; s=arc-20160816; b=Idn83cvDQg3U7vwmwD50mKAlRAHzKkmSY53gGaJYjZ9rtoTyAQQ3CcC0qWqHMhdpw2 n/AQHmmDCzFWEu93FelwMZh3Ak+moDTSYp0xQ9PJti9JgyN2ZFieCOeEx/INdclRnHUU n+Sg89aPXyaZBVgzIyuF3jWwKIgoUuiPvYUNP5wygBZq+3rfxr/Lhu22fugwfTaO5U1R IJhYhn/XvvsBEMlPQ2e3HB8LvfW/5msqQKBjn0oxhfsqcvhPqCqkz0MBTfANuQUuqD/i m19gK8TsFVeeF8sA2F4ITu2gfVxV6p2t+EEbZuI7mV5QoI0O71JgrcBBtxmqZDw4fG2h ClSA== 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=7y+8gc7Sa9nsK5HG85lUh34VgB69JDZHbLOwKxJUx8w=; fh=ww6Gu8w3m7dJkftAQ+r9AsqIugGU5L9RmsysUZKVpKI=; b=bN53vkzbRc7fKtpdNziwEjPuDjE+pO3ki2yXl+XOxrxzAR45O7u94bWWCctP3zLg3R Y0O15Zx/Q76+wwDBEOxD+9ChZG4bwmOUoaUbVjqAmZh6yVxjyfnb2TgcEMIAjgzv+dGX H/9jFtrzTq44FHbOlaJl6xnhIg7soL//8oISR1V7S2YKJNjkZH6vGhL7Zvsg2LImLB7F wJALEXRMLY79o3vUBRarwi2cdgBfvrPepr5HNRNNpjLL1YBSuuBMjxHoCHLY3ZGFm2vi 0B6tiwR5u6IClDyGnOlMziBh+70XaJvZlAtRqxarRQ6tE36RdvFUEwn7i89maQFQ1O4/ r7XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Sb67twGM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id p17-20020a056a000b5100b006cdde43ecc3si1355618pfo.283.2023.11.30.06.25.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 06:25:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Sb67twGM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 48D538022962; Thu, 30 Nov 2023 06:25:37 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345997AbjK3OZB (ORCPT + 99 others); Thu, 30 Nov 2023 09:25:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345940AbjK3OZA (ORCPT ); Thu, 30 Nov 2023 09:25:00 -0500 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FFA185; Thu, 30 Nov 2023 06:25:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701354306; x=1732890306; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=IbtxtPQSaw1rbwoM+xVDv5JrPCQ3Y9QHpjjvR9eEpmU=; b=Sb67twGM1X3ykDke0pRRWqbDMhuMr6WYnwli7m0sAeU1oRh/5K6q3Juo ZMChCW2qPA/bJLz65+nEPB0Ycf0kWz2EZRktJ2qembgx10BKQCzpxVeeY dAAsqFCne45XKfmw9qa+WP9Mr+4inZ6AoHJbonbVBWec0qfN5fE2lX3di dM0B9H/s0Ne3LVpbi3ylDDs0SaLINYLfI8yGHNJGkwC3A2EKipbKpX8tC wsfaIwKaD4TLmohY1fDu/UtAOnnT/Bvjda+rV/1tmD7tn0XbML1jiSg+n OYXj2xfR6Rmexe/X9g37h68kynQ7GJ5mCcfL2oAP3drAQFQSAATYJqPbJ A==; X-IronPort-AV: E=McAfee;i="6600,9927,10910"; a="209448" X-IronPort-AV: E=Sophos;i="6.04,239,1695711600"; d="scan'208";a="209448" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2023 06:25:05 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10910"; a="803711816" X-IronPort-AV: E=Sophos;i="6.04,239,1695711600"; d="scan'208";a="803711816" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orsmga001.jf.intel.com with ESMTP; 30 Nov 2023 06:24:59 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1r8hyL-00027A-0z; Thu, 30 Nov 2023 14:24:57 +0000 Date: Thu, 30 Nov 2023 22:24:25 +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: 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: <202311302230.t6X5rroJ-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 howler.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 (howler.vger.email [0.0.0.0]); Thu, 30 Nov 2023 06:25:37 -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: arm64-defconfig (https://download.01.org/0day-ci/archive/20231130/202311302230.t6X5rroJ-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231130/202311302230.t6X5rroJ-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/202311302230.t6X5rroJ-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c: In function '_dpu_rm_reserve_dsc': >> drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c:537:38: warning: assignment to 'uint32_t' {aka 'unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion] 537 | pp_to_enc_id[pp_idx] = NULL; | ^ 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