From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D6C231DF256; Tue, 4 Nov 2025 03:46:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762228001; cv=none; b=AUqGTzk0WkpOEJERyxzYoXhrColWGeEtyXgqFnHc20gLLn5ZCY/C+LSPqOtAN048EmBXAZTgHMXt0DlozFJyflNGoeYoCRrPuLnUHwps9ryNfUHnZB04vv4LibHoKABXYpvQslJWRdPARAL1DS5YjwECtJI3IelI437UisgPHy0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762228001; c=relaxed/simple; bh=vhJ5Druyh/SewtsdkX3BnZDpBB+KY6ERZo+upDIZC6I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qzSVoBVvnPIhJzJY7WshqicAyJB6D0S/mdpwrOZkjO0z8a7/Yg3SFyCCjrRXcGcLzErTii0dZsrjNTYamHmMh0aybiZO9FzTYdlfMcSW9jOEsXL+qFc4K2v9WjKZqehis/+wH5Lw61BYBugV+hIPc0BfFVjNNHvEAp5pZMMq7H0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=E7kvr6yY; arc=none smtp.client-ip=198.175.65.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="E7kvr6yY" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1762228000; x=1793764000; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=vhJ5Druyh/SewtsdkX3BnZDpBB+KY6ERZo+upDIZC6I=; b=E7kvr6yYjlwfjUiiNHMc/Zp94sAPazVf/MJm2sdIn1lMhFJqEGBqRRto HU6FDIdBz+/YpPZ83UexgeU0pQmNDva9fMqMzCBD8b/aCEr78NGCr7SZs KrKuoSoT3uWN28I3NqZJGpUyq358L14n05MBJyKpZH7ojtYob8KfwI2qj CVftXbDCYf5DI1E0cUDwgIuS9mf8/wTVWpRz6ENcqVC6p6sfF2Ltqh04I 5YAgYnmapfjcTu2gmbCqD2JeI8NOrKLg726Bo86ih9jG+mhpgAXqmncgV KUMn5XTD6m/sGFkkPg5aG5q3i8aR/wrXOPNkN3WTs6TprC1PH+qieEruk g==; X-CSE-ConnectionGUID: XoY8WbD0T1+Pqdh8bFP0iw== X-CSE-MsgGUID: +6nUYVMXQqSTttwBEkkVnA== X-IronPort-AV: E=McAfee;i="6800,10657,11602"; a="64354224" X-IronPort-AV: E=Sophos;i="6.19,278,1754982000"; d="scan'208";a="64354224" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Nov 2025 19:46:39 -0800 X-CSE-ConnectionGUID: fJmA6CTDThCb/Msigxg+jw== X-CSE-MsgGUID: P6w88pgcSXGWWUHSRQblyQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,278,1754982000"; d="scan'208";a="186904544" Received: from lkp-server02.sh.intel.com (HELO 66d7546c76b2) ([10.239.97.151]) by fmviesa006.fm.intel.com with ESMTP; 03 Nov 2025 19:46:35 -0800 Received: from kbuild by 66d7546c76b2 with local (Exim 4.96) (envelope-from ) id 1vG7zz-000QpU-0C; Tue, 04 Nov 2025 03:46:28 +0000 Date: Tue, 4 Nov 2025 11:46:06 +0800 From: kernel test robot To: niravkumarlaxmidas.rabara@altera.com, dinguyen@kernel.org, matthew.gerlach@altera.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, bp@alien8.de, tony.luck@intel.com Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-edac@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Niravkumar L Rabara Subject: Re: [PATCH 4/6] EDAC/altera: Add IO96B ECC support for Agilex5 SoCFPGA Message-ID: <202511041157.q0be68K1-lkp@intel.com> References: <20251028092232.773991-5-niravkumarlaxmidas.rabara@altera.com> Precedence: bulk X-Mailing-List: linux-edac@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20251028092232.773991-5-niravkumarlaxmidas.rabara@altera.com> Hi, kernel test robot noticed the following build warnings: [auto build test WARNING on ras/edac-for-next] [also build test WARNING on robh/for-next linus/master v6.18-rc4 next-20251103] [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/niravkumarlaxmidas-rabara-altera-com/dt-bindings-edac-altera-Document-additional-ECC-instances/20251028-173250 base: https://git.kernel.org/pub/scm/linux/kernel/git/ras/ras.git edac-for-next patch link: https://lore.kernel.org/r/20251028092232.773991-5-niravkumarlaxmidas.rabara%40altera.com patch subject: [PATCH 4/6] EDAC/altera: Add IO96B ECC support for Agilex5 SoCFPGA config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20251104/202511041157.q0be68K1-lkp@intel.com/config) compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project d2625a438020ad35330cda29c3def102c1687b1b) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251104/202511041157.q0be68K1-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/202511041157.q0be68K1-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/edac/altera_edac.c:1957:25: warning: variable 'err_word0' is uninitialized when used here [-Wuninitialized] 1957 | err_queue_overflow = (err_word0 & GENMASK(9, 6)) >> 6; | ^~~~~~~~~ drivers/edac/altera_edac.c:1916:15: note: initialize the variable 'err_word0' to silence this warning 1916 | u32 err_word0; | ^ | = 0 >> drivers/edac/altera_edac.c:1963:41: warning: variable 'err_word1' is uninitialized when used here [-Wuninitialized] 1963 | dci->edac_dev_name, err_word0, err_word1); | ^~~~~~~~~ drivers/edac/altera_edac.c:1917:15: note: initialize the variable 'err_word1' to silence this warning 1917 | u32 err_word1; | ^ | = 0 >> drivers/edac/altera_edac.c:1958:7: warning: variable 'error_type' is uninitialized when used here [-Wuninitialized] 1958 | if (error_type == ECC_SINGLE_DBE || error_type == ECC_MULTI_DBE || | ^~~~~~~~~~ drivers/edac/altera_edac.c:1923:2: note: variable 'error_type' is declared here 1923 | enum io96b_error_type error_type; | ^ 3 warnings generated. vim +/err_word0 +1957 drivers/edac/altera_edac.c 1912 1913 static irqreturn_t io96b_irq_handler(int irq, void *dev_id) 1914 { 1915 struct altr_edac_device_dev *dci = dev_id; 1916 u32 err_word0; 1917 u32 err_word1; 1918 u32 cnt = 0; 1919 u32 ecc_error_status; 1920 u16 err_queue_overflow; 1921 u16 err_count = 0; 1922 bool dbe = false; 1923 enum io96b_error_type error_type; 1924 u32 err_queue = IO96B_ECC_ERR_ENTRIES_OFST; 1925 1926 ecc_error_status = readl(dci->base + IO96B_ECC_ERR_REG_OFST); 1927 err_queue_overflow = ecc_error_status & GENMASK(31, 16); 1928 err_count = ecc_error_status & GENMASK(15, 0); 1929 1930 if (!err_queue_overflow) { 1931 while (cnt < err_count) { 1932 err_word0 = readl(dci->base + err_queue); 1933 err_word1 = readl(dci->base + (err_queue + 4)); 1934 1935 error_type = (err_word0 & GENMASK(9, 6)) >> 6; 1936 if (error_type == ECC_SINGLE_DBE || error_type == ECC_MULTI_DBE || 1937 error_type == ECC_WRITE_LINK_DBE || 1938 error_type == ECC_READ_LINK_DBE || 1939 error_type == ECC_READ_LINK_RMW_DBE) { 1940 edac_printk(KERN_ERR, EDAC_DEVICE, 1941 "%s: DBE: word0:0x%08X, word1:0x%08X\n", 1942 dci->edac_dev_name, err_word0, err_word1); 1943 dbe = true; 1944 } else { 1945 edac_printk(KERN_ERR, EDAC_DEVICE, 1946 "%s: SBE: word0:0x%08X, word1:0x%08X\n", 1947 dci->edac_dev_name, err_word0, err_word1); 1948 edac_device_handle_ce(dci->edac_dev, 0, 0, 1949 dci->edac_dev_name); 1950 } 1951 cnt++; 1952 err_queue += 8; 1953 } 1954 if (dbe) 1955 panic("\nEDAC:IO96B[Uncorrectable errors]\n"); 1956 } else { > 1957 err_queue_overflow = (err_word0 & GENMASK(9, 6)) >> 6; > 1958 if (error_type == ECC_SINGLE_DBE || error_type == ECC_MULTI_DBE || 1959 error_type == ECC_WRITE_LINK_DBE || 1960 error_type == ECC_READ_LINK_DBE || 1961 error_type == ECC_READ_LINK_RMW_DBE) { 1962 panic("\nEDAC: UE: %s: word0:0x%08X, word1:0x%08X\n", > 1963 dci->edac_dev_name, err_word0, err_word1); 1964 } else { 1965 edac_printk(KERN_ERR, EDAC_DEVICE, 1966 "%s: Buffer Overflow SBE:0x%08X\n", 1967 dci->edac_dev_name, err_queue_overflow); 1968 edac_device_handle_ce(dci->edac_dev, 0, 0, dci->edac_dev_name); 1969 } 1970 } 1971 1972 //Clear Queue 1973 writel(IO96B_ECC_ERROR_QUEUE_CLEAR, dci->base + IO96B_CMD_REQ_OFST); 1974 return IRQ_HANDLED; 1975 } 1976 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki