GFP_DMA flag usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



According to [1] the GFP_DMA (and might be __GFP_DMA32, though it's
not explicitly listed, however dell-smbios.c is listed there) has some
memory allocator performance impact and in 99.99% shows a buggy / old
hw / code.

So, in PDx86 we have two files

$ git grep -n GFP_DMA -- drivers/platform/x86/
drivers/platform/x86/asus-wmi.c:343:    input.pointer =
kzalloc(args.length, GFP_DMA | GFP_KERNEL);
drivers/platform/x86/dell-smbios-smm.c:138:     buffer = (void
*)__get_free_page(GFP_KERNEL | GFP_DMA32);

Looking to the ASuS related code I would conclude that the guy who
submitted a patch didn't investigate it properly and root cause left
unknown. So, would be nice to have someone with actual bug reproducer
to find a better solution.

Dell case, since we have an active maintainer, can be clarified by
contributors and Dell representative here.

Any (additional) thoughts with regard to the topic?

[1]: https://lwn.net/Articles/753274/

-- 
With Best Regards,
Andy Shevchenko



[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux