![]() |
|
|||
0001 /* 0002 * Copyright (C) 2019 Advanced Micro Devices, Inc. 0003 * 0004 * Permission is hereby granted, free of charge, to any person obtaining a 0005 * copy of this software and associated documentation files (the "Software"), 0006 * to deal in the Software without restriction, including without limitation 0007 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 0008 * and/or sell copies of the Software, and to permit persons to whom the 0009 * Software is furnished to do so, subject to the following conditions: 0010 * 0011 * The above copyright notice and this permission notice shall be included 0012 * in all copies or substantial portions of the Software. 0013 * 0014 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 0015 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 0016 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 0017 * THE COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 0018 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 0019 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 0020 */ 0021 0022 #include "amdgpu.h" 0023 #include "amdgpu_ras.h" 0024 0025 int amdgpu_nbio_ras_late_init(struct amdgpu_device *adev, struct ras_common_if *ras_block) 0026 { 0027 int r; 0028 r = amdgpu_ras_block_late_init(adev, ras_block); 0029 if (r) 0030 return r; 0031 0032 if (amdgpu_ras_is_supported(adev, ras_block->block)) { 0033 r = amdgpu_irq_get(adev, &adev->nbio.ras_controller_irq, 0); 0034 if (r) 0035 goto late_fini; 0036 r = amdgpu_irq_get(adev, &adev->nbio.ras_err_event_athub_irq, 0); 0037 if (r) 0038 goto late_fini; 0039 } 0040 0041 return 0; 0042 late_fini: 0043 amdgpu_ras_block_late_fini(adev, ras_block); 0044 return r; 0045 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |