All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Suraj Kandpal <suraj.kandpal@intel.com>,
	intel-xe@lists.freedesktop.org, intel-gfx@lists.freedesktop.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	ankit.k.nautiyal@intel.com,
	Suraj Kandpal <suraj.kandpal@intel.com>
Subject: Re: [PATCH 2/3] drm/i915/bios: Add function to check if edp data override is needed
Date: Sat, 26 Jul 2025 19:20:40 +0800	[thread overview]
Message-ID: <202507261913.LoCL2yuM-lkp@intel.com> (raw)
In-Reply-To: <20250725061548.2704697-3-suraj.kandpal@intel.com>

Hi Suraj,

kernel test robot noticed the following build warnings:

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on linus/master v6.16-rc7 next-20250725]
[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/Suraj-Kandpal/drm-i915-vbt-Add-eDP-Data-Overrride-field-in-VBT/20250725-141824
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
patch link:    https://lore.kernel.org/r/20250725061548.2704697-3-suraj.kandpal%40intel.com
patch subject: [PATCH 2/3] drm/i915/bios: Add function to check if edp data override is needed
config: i386-buildonly-randconfig-006-20250725 (https://download.01.org/0day-ci/archive/20250726/202507261913.LoCL2yuM-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250726/202507261913.LoCL2yuM-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202507261913.LoCL2yuM-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/i915/display/intel_bios.c:2524:2: warning: variable 'val' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
    2524 |         default:
         |         ^~~~~~~
   drivers/gpu/drm/i915/display/intel_bios.c:2528:34: note: uninitialized use occurs here
    2528 |         return edp_data_override_mask & val;
         |                                         ^~~
   drivers/gpu/drm/i915/display/intel_bios.c:2485:9: note: initialize the variable 'val' to silence this warning
    2485 |         u32 val;
         |                ^
         |                 = 0
   1 warning generated.


vim +/val +2524 drivers/gpu/drm/i915/display/intel_bios.c

  2482	
  2483	static bool parse_bdb_263_edp_data_override(const u32 edp_data_override_mask, int rate)
  2484	{
  2485		u32 val;
  2486	
  2487		switch (rate) {
  2488		case 2000000:
  2489			val = BDB_263_VBT_EDP_LINK_RATE_20;
  2490			break;
  2491		case 1350000:
  2492			val = BDB_263_VBT_EDP_LINK_RATE_13_5;
  2493			break;
  2494		case 1000000:
  2495			val = BDB_263_VBT_EDP_LINK_RATE_10;
  2496			break;
  2497		case 810000:
  2498			val = BDB_263_VBT_EDP_LINK_RATE_8_1;
  2499			break;
  2500		case 675000:
  2501			val = BDB_263_VBT_EDP_LINK_RATE_6_75;
  2502			break;
  2503		case 540000:
  2504			val = BDB_263_VBT_EDP_LINK_RATE_5_4;
  2505			break;
  2506		case 432000:
  2507			val = BDB_263_VBT_EDP_LINK_RATE_4_32;
  2508			break;
  2509		case 324000:
  2510			val = BDB_263_VBT_EDP_LINK_RATE_3_24;
  2511			break;
  2512		case 270000:
  2513			val = BDB_263_VBT_EDP_LINK_RATE_2_7;
  2514			break;
  2515		case 243000:
  2516			val = BDB_263_VBT_EDP_LINK_RATE_2_43;
  2517			break;
  2518		case 216000:
  2519			val = BDB_263_VBT_EDP_LINK_RATE_2_16;
  2520			break;
  2521		case 162000:
  2522			val = BDB_263_VBT_EDP_LINK_RATE_1_62;
  2523			break;
> 2524		default:
  2525			break;
  2526		}
  2527	
  2528		return edp_data_override_mask & val;
  2529	}
  2530	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  reply	other threads:[~2025-07-26 11:21 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-25  6:15 [PATCH 0/3] eDP Data Override Suraj Kandpal
2025-07-25  6:15 ` [PATCH 1/3] drm/i915/vbt: Add eDP Data Overrride field in VBT Suraj Kandpal
2025-07-28 12:45   ` Jani Nikula
2025-07-29  4:16     ` Kandpal, Suraj
2025-07-25  6:15 ` [PATCH 2/3] drm/i915/bios: Add function to check if edp data override is needed Suraj Kandpal
2025-07-26 11:20   ` kernel test robot [this message]
2025-07-28 12:57   ` Jani Nikula
2025-07-29  4:22     ` Kandpal, Suraj
2025-07-25  6:15 ` [PATCH 3/3] drm/i915/edp: eDP Data Overrride Suraj Kandpal
2025-07-28 13:00   ` Jani Nikula
2025-07-29  4:59     ` Kandpal, Suraj
2025-07-25  6:22 ` ✓ CI.KUnit: success for eDP Data Override (rev3) Patchwork
2025-07-25  6:36 ` ✗ CI.checksparse: warning " Patchwork
2025-07-25  8:23 ` ✗ Fi.CI.DOCS: " Patchwork
2025-07-25  8:36 ` ✗ Xe.CI.Full: failure " Patchwork
2025-07-25  8:46 ` ✓ i915.CI.BAT: success " Patchwork
2025-07-25 10:50 ` ✗ i915.CI.Full: failure " Patchwork
2025-07-28 12:35 ` [PATCH 0/3] eDP Data Override Jani Nikula

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202507261913.LoCL2yuM-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ankit.k.nautiyal@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=suraj.kandpal@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.