RE: [PATCH] EDAC, pnd2: Fix ioremap() size in dnv_rd_reg() from 64K -> 32K
From: Zhuo, Qiuxu
Date: Fri Aug 09 2019 - 03:07:38 EST
>
> BIOS has marked the 32K MCHBAR window as reserved, so when dnv_rd_reg()
> tries to ioremap() a 64KB region you get warnings like:
>
> resource sanity check: requesting [mem 0xfed10000-0xfed1ffff], which spans
> more than reserved [mem 0xfed10000-0xfed17fff] caller
> dnv_rd_reg+0xc8/0x240 [pnd2_edac] mapping multiple BARs
>
> ioremap() the correct size on Denverton platforms to get rid of those warnings.
I've several dmesg logs for loading the pnd2_edac driver on a Denverton server successfully. But the logs haven't got such warning.
-Qiuxu