Skip to content

Commit 0e99b2c

Browse files
thenzlmartinkpetersen
authored andcommitted
scsi: megaraid_sas: silence a warning
Add a flag to DMA memory allocation to silence a warning. This driver allocates DMA memory for IO frames. This allocation may exceed MAX_ORDER pages for few megaraid_sas controllers (controllers with very high queue depth). Consequently, the driver has logic to keep reducing the controller queue depth until the DMA memory allocation succeeds. On impacted megaraid_sas controllers there would be multiple DMA allocation failures until driver settled on an allocation that fit. These failed DMA allocation requests caused stack traces in system logs. These were not harmful and this patch silences those warnings/stack traces. [mkp: clarified commit desc] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Tomas Henzl <[email protected]> Acked-by: Sumit Saxena <[email protected]> Reviewed-by: Lee Duncan <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent c14335e commit 0e99b2c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/scsi/megaraid/megaraid_sas_fusion.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,8 @@ megasas_alloc_request_fusion(struct megasas_instance *instance)
623623

624624
fusion->io_request_frames =
625625
dma_pool_alloc(fusion->io_request_frames_pool,
626-
GFP_KERNEL, &fusion->io_request_frames_phys);
626+
GFP_KERNEL | __GFP_NOWARN,
627+
&fusion->io_request_frames_phys);
627628
if (!fusion->io_request_frames) {
628629
if (instance->max_fw_cmds >= (MEGASAS_REDUCE_QD_COUNT * 2)) {
629630
instance->max_fw_cmds -= MEGASAS_REDUCE_QD_COUNT;
@@ -661,7 +662,7 @@ megasas_alloc_request_fusion(struct megasas_instance *instance)
661662

662663
fusion->io_request_frames =
663664
dma_pool_alloc(fusion->io_request_frames_pool,
664-
GFP_KERNEL,
665+
GFP_KERNEL | __GFP_NOWARN,
665666
&fusion->io_request_frames_phys);
666667

667668
if (!fusion->io_request_frames) {

0 commit comments

Comments
 (0)