[PATCH 23/40] drm/amdgpu: Fix wrap-around bugs in RAS

2021-06-14 Thread Luben Tuikov
Fix the size of the EEPROM from 256000 bytes to 262144 bytes (256 KiB). Fix a couple or wrap around bugs. If a valid value/address is 0 <= addr < size, the inverse of this inequality (barring negative values which make no sense here) is addr >= size. Fix this in the RAS code. Cc: Jean Delvare Cc

Re: [PATCH 23/40] drm/amdgpu: Fix wrap-around bugs in RAS

2021-06-10 Thread Alex Deucher
On Tue, Jun 8, 2021 at 5:40 PM Luben Tuikov wrote: > > Fix the size of the EEPROM from 256000 bytes > to 262144 bytes (256 KiB). > > Fix a couple or wrap around bugs. If a valid > value/address is 0 <= addr < size, the inverse of > this inequality (barring negative values which > make no sense her

[PATCH 23/40] drm/amdgpu: Fix wrap-around bugs in RAS

2021-06-08 Thread Luben Tuikov
Fix the size of the EEPROM from 256000 bytes to 262144 bytes (256 KiB). Fix a couple or wrap around bugs. If a valid value/address is 0 <= addr < size, the inverse of this inequality (barring negative values which make no sense here) is addr >= size. Fix this in the RAS code. Cc: Jean Delvare Cc