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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E1785CD4F3C for ; Mon, 18 May 2026 00:17:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BB89210E06C; Mon, 18 May 2026 00:17:10 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="SOvapXev"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) by gabe.freedesktop.org (Postfix) with ESMTPS id 80B9010E06C for ; Mon, 18 May 2026 00:17:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1779063429; x=1810599429; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=8yAw1U58L4AuAg24Du1Y64ZJQN73cgOY6UKX6CqMhYY=; b=SOvapXevkXLY02eqw+Ek7AL53S/QPUB1BRITXEoNGmAvwgs7zVEuzZ9j pkmu3TEZwu2ng2uuRxRTDriTz4y5y1rL6qFk4PaFMj8sSbZpPt6iCAAMS AzdyARm2T7MzXZU7FDWsg5oCGBdh+BBDLzppPXIwLwWuoSHHQVEMt3/U0 YN7z0csB8cl/3TC6+q1r81G42fHsloZBGkA5xNXw6RggIqg0vvaN1VRnA ZxEnP1qutVTW7t+3CnlrpMELfVeGTYqgJGntUkTFYj0LlI00DriltsOUE hj/gf1lOMTT2fiw6JW+CfTKg/4xd+eh/MUzdIOUkSpQkVKO0mFGOtU57g A==; X-CSE-ConnectionGUID: 3IpcATBHTjCI9MtGXvldGQ== X-CSE-MsgGUID: aRI+7h2hQ7+ba9EfS+XF8Q== X-IronPort-AV: E=McAfee;i="6800,10657,11789"; a="91306270" X-IronPort-AV: E=Sophos;i="6.23,240,1770624000"; d="scan'208";a="91306270" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2026 17:17:09 -0700 X-CSE-ConnectionGUID: TIn2eElcQWKhuDnHoDk6+A== X-CSE-MsgGUID: IGFJWgncTguAEq4bFPb9PQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,240,1770624000"; d="scan'208";a="236236106" Received: from lkp-server01.sh.intel.com (HELO d94e5e629b2d) ([10.239.97.150]) by fmviesa007.fm.intel.com with ESMTP; 17 May 2026 17:17:05 -0700 Received: from kbuild by d94e5e629b2d with local (Exim 4.98.2) (envelope-from ) id 1wOlfJ-0000000026w-3eaF; Mon, 18 May 2026 00:17:01 +0000 Date: Mon, 18 May 2026 08:16:16 +0800 From: kernel test robot To: vishnu.saini@oss.qualcomm.com, Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Luca Ceresoli , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter Cc: oe-kbuild-all@lists.linux.dev, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, prahlad.valluru@oss.qualcomm.com, Ravi Agola , Vishnu Saini Subject: Re: [PATCH] drm/bridge: lt9611uxc: support displays with up to 4 EDID blocks Message-ID: <202605180850.uN2x73KR-lkp@intel.com> References: <20260517-lt9611usc_edid34_misc_next-v1-1-5e2fd8c6399b@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260517-lt9611usc_edid34_misc_next-v1-1-5e2fd8c6399b@oss.qualcomm.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi, kernel test robot noticed the following build warnings: [auto build test WARNING on 4c26e162947f91aa78ba57dd4fddd38fc80e7d60] url: https://github.com/intel-lab-lkp/linux/commits/vishnu-saini-oss-qualcomm-com/drm-bridge-lt9611uxc-support-displays-with-up-to-4-EDID-blocks/20260518-021632 base: 4c26e162947f91aa78ba57dd4fddd38fc80e7d60 patch link: https://lore.kernel.org/r/20260517-lt9611usc_edid34_misc_next-v1-1-5e2fd8c6399b%40oss.qualcomm.com patch subject: [PATCH] drm/bridge: lt9611uxc: support displays with up to 4 EDID blocks config: csky-randconfig-001-20260518 (https://download.01.org/0day-ci/archive/20260518/202605180850.uN2x73KR-lkp@intel.com/config) compiler: csky-linux-gcc (GCC) 15.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260518/202605180850.uN2x73KR-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/202605180850.uN2x73KR-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/gpu/drm/bridge/lontium-lt9611uxc.c: In function 'lt9611uxc_get_edid_block': >> drivers/gpu/drm/bridge/lontium-lt9611uxc.c:454:37: warning: 'memcmp' specified bound 8 exceeds source size 4 [-Wstringop-overread] 454 | while (!ret && 0 == memcmp(&edid_header, &buf, 8) && retry_cnt-- > 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/bridge/lontium-lt9611uxc.c:415:53: note: source object allocated here 415 | static int lt9611uxc_get_edid_block(void *data, u8 *buf, unsigned int block, size_t len) | ~~~~^~~ vim +/memcmp +454 drivers/gpu/drm/bridge/lontium-lt9611uxc.c 414 415 static int lt9611uxc_get_edid_block(void *data, u8 *buf, unsigned int block, size_t len) 416 { 417 struct lt9611uxc *lt9611uxc = data; 418 int ret = 0; 419 int retry_cnt = 10; 420 int edid_ext_block; 421 const u8 edid_header[8] = { 0x00, 0xFF, 0xFF, 0xFF, 422 0xFF, 0xFF, 0xFF, 0x00 }; 423 424 if (len > EDID_BLOCK_SIZE) 425 return -EINVAL; 426 427 if (block >= EDID_NUM_BLOCKS) 428 return -EINVAL; 429 430 if (block == 2) { 431 lt9611uxc_lock(lt9611uxc); 432 433 /* Read number of block available in EDID data */ 434 ret = regmap_read(lt9611uxc->regmap, 0xb02a, &edid_ext_block); 435 if (ret) { 436 dev_err(lt9611uxc->dev, "edid block read failed: %d\n", ret); 437 lt9611uxc_unlock(lt9611uxc); 438 return ret; 439 } 440 441 /* Reset EDID ready flag so that lt9611uxc can read 2nd and 3rd block */ 442 regmap_write(lt9611uxc->regmap, 0xb02a, (edid_ext_block & (~BIT(3)))); 443 444 lt9611uxc_unlock(lt9611uxc); 445 446 msleep(100); 447 448 ret = lt9611uxc_read_edid_block(lt9611uxc, block, buf, len); 449 450 /* 451 * Compare first 8 bytes of EDID header (0th block) and 2nd block to confirm 452 * that 2nd EDID block data is read successfully by lt9611uxc 453 */ > 454 while (!ret && 0 == memcmp(&edid_header, &buf, 8) && retry_cnt-- > 0) { 455 msleep(100); 456 ret = lt9611uxc_read_edid_block(lt9611uxc, block, buf, len); 457 } 458 } else { 459 ret = lt9611uxc_read_edid_block(lt9611uxc, block, buf, len); 460 } 461 462 return ret; 463 }; 464 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki