* drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:2168: warning: Function parameter or struct member 'AMDGPU_RAS_BLOCK__ANY' not described in 'if'
@ 2025-04-27 10:22 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-04-27 10:22 UTC (permalink / raw)
To: Lijo Lazar; +Cc: oe-kbuild-all, linux-kernel, Alex Deucher, Hawking Zhang
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 02ddfb981de88a2c15621115dd7be2431252c568
commit: e1ee2111ca48169a9fdc5075f7863f5d4d591e2f drm/amdgpu: Prefer RAS recovery for scheduler hang
date: 5 months ago
config: sparc-randconfig-001-20250426 (https://download.01.org/0day-ci/archive/20250427/202504271826.xy2fFO28-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 10.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250427/202504271826.xy2fFO28-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/202504271826.xy2fFO28-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:2168: warning: Function parameter or struct member 'AMDGPU_RAS_BLOCK__ANY' not described in 'if'
>> drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:2168: warning: expecting prototype for If the current interrupt is caused by a non(). Prototype was for if() instead
vim +2168 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
2148
2149 /* For the hardware that cannot enable bif ring for both ras_controller_irq
2150 * and ras_err_evnet_athub_irq ih cookies, the driver has to poll status
2151 * register to check whether the interrupt is triggered or not, and properly
2152 * ack the interrupt if it is there
2153 */
2154 void amdgpu_ras_interrupt_fatal_error_handler(struct amdgpu_device *adev)
2155 {
2156 /* Fatal error events are handled on host side */
2157 if (amdgpu_sriov_vf(adev))
2158 return;
2159 /**
2160 * If the current interrupt is caused by a non-fatal RAS error, skip
2161 * check for fatal error. For fatal errors, FED status of all devices
2162 * in XGMI hive gets set when the first device gets fatal error
2163 * interrupt. The error gets propagated to other devices as well, so
2164 * make sure to ack the interrupt regardless of FED status.
2165 */
2166 if (!amdgpu_ras_get_fed_status(adev) &&
2167 amdgpu_ras_is_err_state(adev, AMDGPU_RAS_BLOCK__ANY))
> 2168 return;
2169
2170 if (adev->nbio.ras &&
2171 adev->nbio.ras->handle_ras_controller_intr_no_bifring)
2172 adev->nbio.ras->handle_ras_controller_intr_no_bifring(adev);
2173
2174 if (adev->nbio.ras &&
2175 adev->nbio.ras->handle_ras_err_event_athub_intr_no_bifring)
2176 adev->nbio.ras->handle_ras_err_event_athub_intr_no_bifring(adev);
2177 }
2178
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-04-27 10:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-27 10:22 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:2168: warning: Function parameter or struct member 'AMDGPU_RAS_BLOCK__ANY' not described in 'if' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®