On 3/7/22 16:35, Sreekanth Reddy wrote: > On Fri, Feb 25, 2022 at 5:01 AM Damien Le Moal > <damien.lemoal@xxxxxxxxxxxxxxxxxx> wrote: >> >> The replyPostRegisterIndex array of struct MPT3SAS_ADAPTER is regular >> memory allocated from RAM, and not an IO mem resource. writel() should >> thus not be used to assign values to the array entries. Replace the >> writel() call modifying the array with direct assignements. This change >> suppresses sparse warnings. > > writel() is a must here. replyPostRegisterIndex array is having the > iommu address. > and here the driver is writing the data to these iommu addresses retrieved from > replyPostRegisterIndex array. Fixed in v3. Please check. -- Damien Le Moal Western Digital Research