GFP_ATOMIC in Intel code
Quoted 10 lines · Vinod
Quoted 5 lines · Pierre-Louis Bossart
Looking at the latest for-next branch, by accident I saw a number of
GFP_ATOMICreferences.With my extended break I don't remember much but didn't we agree that none of those were needed? If yes I'll send a patch to fix all this.
I thought that someone had fixed up all these instances,
Looking back at the git history, "someone" was mostly you :)
A few of them below seem to be new codes that copied the bad past examples, some are overlooked one, and some are mailbox codes that aren't 100% sure to safe to replace (although I guess it is).
Quoted 2 lines
looks like few
missed, so yes please do fix them up and Welcome back :-)
I hope you enjoyed the time-off, Pierre.
thanks,
Takashi
Quoted 6 lines
Quoted 6 lines
Thanks
-Pierre
Quoted 16 lines
Quoted 12 lines
/data/pbossart/ktest/broonie-next/sound/soc/intel$ git grep ATOMIC atom/sst/sst_pvt.c: msg =
kzalloc(sizeof(struct ipc_post), GFP_ATOMIC); atom/sst/sst_pvt.c:msg->mailbox_data=kzalloc(SST_MAILBOX_SIZE, GFP_ATOMIC);
boards/cht_bsw_rt5672.c: drv =devm_kzalloc(&pdev->dev, sizeof(*drv), GFP_ATOMIC);
boards/glk_rt5682_max98357a.c: ctx =devm_kzalloc(&pdev->dev, sizeof(*ctx), GFP_ATOMIC);
boards/kbl_da7219_max98927.c: ctx =devm_kzalloc(&pdev->dev, sizeof(*ctx), GFP_ATOMIC);
boards/skl_hda_dsp_generic.c: ctx =devm_kzalloc(&pdev->dev, sizeof(*ctx), GFP_ATOMIC);Signature · 1 line
~Vinod
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Quoted 7 lines · Takashi Iwai
Quoted 5 lines · Vinod
Quoted 3 lines · Pierre-Louis Bossart
Looking at the latest for-next branch, by accident I saw a number of
GFP_ATOMICreferences.
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
With my extended break I don't remember much but didn't we agree that none of those were needed? If yes I'll send a patch to fix all this.
I thought that someone had fixed up all these instances,
Looking back at the git history, "someone" was mostly you :)
Yeah that is right :)
Jia-Ju Bai initially reported this and fixed few I did rest at that time
Quoted 6 lines
A few of them below seem to be new codes that copied the bad past examples, some are overlooked one, and some are mailbox codes that aren't 100% sure to safe to replace (although I guess it is).
Quoted 2 lines
looks like few
missed, so yes please do fix them up and Welcome back :-)
Am not sure why were they missed but yes lets fix them and keep an eye to not get copy-pasted back in from downstream code (which i suspect is using these and people basing these off...)
Signature · 1 line
~Vinod