Skip to contentSkip to conversation

remove bogus GFP_DMA32 flags for dma allocations

PATCH In review Christoph Hellwig 6 participants 30 messages Oct 13, 2018 – Dec 5, 2018

Subsystems (12)
lore
Share & tools
lore
#0 lore raw

dma_alloc_* internally selects the zone to allocate from based on the DMA mask. Remove all explicit uses of GFP_DMA32 with dma_alloc_*.

#1 lore raw

PATCH 1/8 cpufreq: tegra186: don't pass GFP_DMA32 to dma_alloc_coherent

The DMA API does its own zone decisions based on the coherent_dma_mask.

---
 drivers/cpufreq/tegra186-cpufreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpufreq/tegra186-cpufreq.c +1 -1
index 1f59966573aa..f1e09022b819 100644
@@ -121,7 +121,7 @@ static struct cpufreq_frequency_table *init_vhint_table(
 	void *virt;
 
 	virt = dma_alloc_coherent(bpmp->dev, sizeof(*data), &phys,
-				  GFP_KERNEL | GFP_DMA32);
+				  GFP_KERNEL);
 	if (!virt)
 		return ERR_PTR(-ENOMEM);
 
Signature · 6 lines
2.19.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#5 lore raw

PATCH 2/8 firmware: tegra: don't pass GFP_DMA32 to dma_alloc_coherent

In reply to Christoph Hellwig

The DMA API does its own zone decisions based on the coherent_dma_mask.

---
 drivers/firmware/tegra/bpmp-debugfs.c | 11 +++++------
 drivers/firmware/tegra/bpmp.c         |  2 +-
 2 files changed, 6 insertions(+), 7 deletions(-)
drivers/firmware/tegra/bpmp-debugfs.c +5 -6
index f7f6a0a5cb07..567160897bac 100644
@@ -218,12 +218,12 @@ static int debugfs_show(struct seq_file *m, void *p)
 		return -ENOENT;
 
 	namevirt = dma_alloc_coherent(bpmp->dev, namesize, &namephys,
-				      GFP_KERNEL | GFP_DMA32);
+				      GFP_KERNEL);
 	if (!namevirt)
 		return -ENOMEM;
 
 	datavirt = dma_alloc_coherent(bpmp->dev, datasize, &dataphys,
-				      GFP_KERNEL | GFP_DMA32);
+				      GFP_KERNEL);
 	if (!datavirt) {
 		ret = -ENOMEM;
 		goto free_namebuf;
@@ -269,12 +269,12 @@ static ssize_t debugfs_store(struct file *file, const char __user *buf,
 		return -ENOENT;
 
 	namevirt = dma_alloc_coherent(bpmp->dev, namesize, &namephys,
-				      GFP_KERNEL | GFP_DMA32);
+				      GFP_KERNEL);
 	if (!namevirt)
 		return -ENOMEM;
 
 	datavirt = dma_alloc_coherent(bpmp->dev, datasize, &dataphys,
-				      GFP_KERNEL | GFP_DMA32);
+				      GFP_KERNEL);
 	if (!datavirt) {
 		ret = -ENOMEM;
 		goto free_namebuf;
@@ -422,8 +422,7 @@ int tegra_bpmp_init_debugfs(struct tegra_bpmp *bpmp)
 	if (!root)
 		return -ENOMEM;
 
-	virt = dma_alloc_coherent(bpmp->dev, sz, &phys,
-				  GFP_KERNEL | GFP_DMA32);
+	virt = dma_alloc_coherent(bpmp->dev, sz, &phys, GFP_KERNEL);
 	if (!virt) {
 		ret = -ENOMEM;
 		goto out;
drivers/firmware/tegra/bpmp.c +1 -1
index 14a456afa379..e6d2356ccec3 100644
@@ -531,7 +531,7 @@ static int tegra_bpmp_get_firmware_tag(struct tegra_bpmp *bpmp, char *tag,
 	int err;
 
 	virt = dma_alloc_coherent(bpmp->dev, MSG_DATA_MIN_SZ, &phys,
-				  GFP_KERNEL | GFP_DMA32);
+				  GFP_KERNEL);
 	if (!virt)
 		return -ENOMEM;
 
Signature · 6 lines
2.19.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#6 lore raw

PATCH 3/8 spi: pic32-sqi: don't pass GFP_DMA32 to dma_alloc_coherent

In reply to Christoph Hellwig

The DMA API does its own zone decisions based on the coherent_dma_mask.

---
 drivers/spi/spi-pic32-sqi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/spi-pic32-sqi.c +1 -1
index bd1c6b53283f..ab53e461d80f 100644
@@ -468,7 +468,7 @@ static int ring_desc_ring_alloc(struct pic32_sqi *sqi)
 	/* allocate coherent DMAable memory for hardware buffer descriptors. */
 	sqi->bd = dma_zalloc_coherent(&sqi->master->dev,
 				      sizeof(*bd) * PESQI_BD_COUNT,
-				      &sqi->bd_dma, GFP_DMA32);
+				      &sqi->bd_dma, GFP_KERNEL);
 	if (!sqi->bd) {
 		dev_err(&sqi->master->dev, "failed allocating dma buffer\n");
 		return -ENOMEM;
Signature · 1 line
2.19.1
#8 lore raw

PATCH 4/8 sound: hpios: don't pass GFP_DMA32 to dma_alloc_coherent

In reply to Christoph Hellwig

The DMA API does its own zone decisions based on the coherent_dma_mask.

---
 sound/pci/asihpi/hpios.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/pci/asihpi/hpios.c +1 -1
index 5ef4fe964366..7c91330af719 100644
@@ -49,7 +49,7 @@ u16 hpios_locked_mem_alloc(struct consistent_dma_area *p_mem_area, u32 size,
 	/*?? any benefit in using managed dmam_alloc_coherent? */
 	p_mem_area->vaddr =
 		dma_alloc_coherent(&pdev->dev, size, &p_mem_area->dma_handle,
-		GFP_DMA32 | GFP_KERNEL);
+		GFP_KERNEL);
 
 	if (p_mem_area->vaddr) {
 		HPI_DEBUG_LOG(DEBUG, "allocated %d bytes, dma 0x%x vma %p\n",
Signature · 1 line
2.19.1
#12 lore raw

PATCH 5/8 sound: intel/sst: don't pass GFP_DMA32 to dma_alloc_coherent

In reply to Christoph Hellwig

The DMA API does its own zone decisions based on the coherent_dma_mask.

---
 sound/soc/intel/common/sst-firmware.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/common/sst-firmware.c +1 -1
index 11041aedea31..1e067504b604 100644
@@ -355,7 +355,7 @@ struct sst_fw *sst_fw_new(struct sst_dsp *dsp,
 
 	/* allocate DMA buffer to store FW data */
 	sst_fw->dma_buf = dma_alloc_coherent(dsp->dma_dev, sst_fw->size,
-				&sst_fw->dmable_fw_paddr, GFP_DMA | GFP_KERNEL);
+				&sst_fw->dmable_fw_paddr, GFP_KERNEL);
 	if (!sst_fw->dma_buf) {
 		dev_err(dsp->dev, "error: DMA alloc failed\n");
 		kfree(sst_fw);
Signature · 1 line
2.19.1
#19 lore raw

PATCH 6/8 drm: sti: don't pass GFP_DMA32 to dma_alloc_wc

In reply to Christoph Hellwig

The DMA API does its own zone decisions based on the coherent_dma_mask.

---
 drivers/gpu/drm/sti/sti_gdp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/sti/sti_gdp.c +1 -1
index c32de6cbf061..cdf0a1396e00 100644
@@ -517,7 +517,7 @@ static void sti_gdp_init(struct sti_gdp *gdp)
 	/* Allocate all the nodes within a single memory page */
 	size = sizeof(struct sti_gdp_node) *
 	    GDP_NODE_PER_FIELD * GDP_NODE_NB_BANK;
-	base = dma_alloc_wc(gdp->dev, size, &dma_addr, GFP_KERNEL | GFP_DMA);
+	base = dma_alloc_wc(gdp->dev, size, &dma_addr, GFP_KERNEL);
 
 	if (!base) {
 		DRM_ERROR("Failed to allocate memory for GDP node\n");
Signature · 1 line
2.19.1
#24 lore raw

PATCH 7/8 media: sti/bdisp: don't pass GFP_DMA32 to dma_alloc_attrs

In reply to Christoph Hellwig

The DMA API does its own zone decisions based on the coherent_dma_mask.

---
 drivers/media/platform/sti/bdisp/bdisp-hw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/platform/sti/bdisp/bdisp-hw.c +1 -1
index 26d9fa7aeb5f..4372abbb5950 100644
@@ -510,7 +510,7 @@ int bdisp_hw_alloc_filters(struct device *dev)
 
 	/* Allocate all the filters within a single memory page */
 	size = (BDISP_HF_NB * NB_H_FILTER) + (BDISP_VF_NB * NB_V_FILTER);
-	base = dma_alloc_attrs(dev, size, &paddr, GFP_KERNEL | GFP_DMA,
+	base = dma_alloc_attrs(dev, size, &paddr, GFP_KERNEL,
 			       DMA_ATTR_WRITE_COMBINE);
 	if (!base)
 		return -ENOMEM;
Signature · 1 line
2.19.1
#29 lore raw

PATCH 8/8 fsl-diu-fb: don't pass GFP_DMA32 to dmam_alloc_coherent

In reply to Christoph Hellwig

The DMA API does its own zone decisions based on the coherent_dma_mask.

---
 drivers/video/fbdev/fsl-diu-fb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/fsl-diu-fb.c +1 -1
index bc9eb8afc313..6a49fe917bdb 100644
@@ -1697,7 +1697,7 @@ static int fsl_diu_probe(struct platform_device *pdev)
 	int ret;
 
 	data = dmam_alloc_coherent(&pdev->dev, sizeof(struct fsl_diu_data),
-				   &dma_addr, GFP_DMA | __GFP_ZERO);
+				   &dma_addr, GFP_KERNEL | __GFP_ZERO);
 	if (!data)
 		return -ENOMEM;
 	data->dma_addr = dma_addr;
Signature · 1 line
2.19.1
Reviewed-by on v1 4/8
#9 lore raw

Re: [alsa-devel] [PATCH 4/8] sound: hpios: don't pass GFP_DMA32 to dma_alloc_coherent

In reply to Christoph Hellwig
Quoted 4 lines · Christoph Hellwig

The DMA API does its own zone decisions based on the coherent_dma_mask.

Would you like to take this as a series, or shall I take individually through sound tree?

thanks,

Takashi

Quoted 25 lines
---
 sound/pci/asihpi/hpios.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/pci/asihpi/hpios.c +1 -1
index 5ef4fe964366..7c91330af719 100644
@@ -49,7 +49,7 @@ u16 hpios_locked_mem_alloc(struct consistent_dma_area *p_mem_area, u32 size,
 	/*?? any benefit in using managed dmam_alloc_coherent? */
 	p_mem_area->vaddr =
 		dma_alloc_coherent(&pdev->dev, size, &p_mem_area->dma_handle,
-		GFP_DMA32 | GFP_KERNEL);
+		GFP_KERNEL);
 
 	if (p_mem_area->vaddr) {
 		HPI_DEBUG_LOG(DEBUG, "allocated %d bytes, dma 0x%x vma %p\n",
Signature · 6 lines
2.19.1

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reviewed-by on v1 5/8
#13 lore raw

Re: [alsa-devel] [PATCH 5/8] sound: intel/sst: don't pass GFP_DMA32 to dma_alloc_coherent

In reply to Christoph Hellwig
Quoted 4 lines · Christoph Hellwig

The DMA API does its own zone decisions based on the coherent_dma_mask.

thanks,

Takashi

Quoted 25 lines
---
 sound/soc/intel/common/sst-firmware.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/common/sst-firmware.c +1 -1
index 11041aedea31..1e067504b604 100644
@@ -355,7 +355,7 @@ struct sst_fw *sst_fw_new(struct sst_dsp *dsp,
 
 	/* allocate DMA buffer to store FW data */
 	sst_fw->dma_buf = dma_alloc_coherent(dsp->dma_dev, sst_fw->size,
-				&sst_fw->dmable_fw_paddr, GFP_DMA | GFP_KERNEL);
+				&sst_fw->dmable_fw_paddr, GFP_KERNEL);
 	if (!sst_fw->dma_buf) {
 		dev_err(dsp->dev, "error: DMA alloc failed\n");
 		kfree(sst_fw);
Signature · 6 lines
2.19.1

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw

Re: [alsa-devel] [PATCH 4/8] sound: hpios: don't pass GFP_DMA32 to dma_alloc_coherent

In reply to Takashi Iwai
Quoted 5 lines · Takashi Iwai
Quoted 3 lines · Christoph Hellwig

The DMA API does its own zone decisions based on the coherent_dma_mask.

Quoted 7 lines
Quoted 1 line

Would you like to take this as a series, or shall I take individually through sound tree?

There is nothing that depends on this, so feel free to apply the two sound patches to your tree.

#11 lore raw

Re: [alsa-devel] [PATCH 4/8] sound: hpios: don't pass GFP_DMA32 to dma_alloc_coherent

Quoted 9 lines · Christoph Hellwig
Quoted 7 lines · Takashi Iwai
Quoted 4 lines · Christoph Hellwig

The DMA API does its own zone decisions based on the coherent_dma_mask.

Quoted 8 lines
Quoted 5 lines

Would you like to take this as a series, or shall I take individually through sound tree?

There is nothing that depends on this, so feel free to apply the two sound patches to your tree.

OK, thanks.

Takashi
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#14 lore raw

Re: [PATCH 5/8] sound: intel/sst: don't pass GFP_DMA32 to dma_alloc_coherent

In reply to Takashi Iwai

[ Dropping other MLs ]

Quoted 9 lines · Takashi Iwai
Quoted 4 lines · Christoph Hellwig

The DMA API does its own zone decisions based on the coherent_dma_mask.

Mark, let me know whether you'd take this via your tree or may I take via mine (with a minor correction of the subject line).

FWIW, the driver sets the 31bit (!) DMA mask, and that's the likely reason of GFP_DMA passed there in the original code.

thanks,

Takashi

Quoted 36 lines

thanks,

Takashi

Quoted 25 lines
---
 sound/soc/intel/common/sst-firmware.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/common/sst-firmware.c +1 -1
index 11041aedea31..1e067504b604 100644
@@ -355,7 +355,7 @@ struct sst_fw *sst_fw_new(struct sst_dsp *dsp,
 
 	/* allocate DMA buffer to store FW data */
 	sst_fw->dma_buf = dma_alloc_coherent(dsp->dma_dev, sst_fw->size,
-				&sst_fw->dmable_fw_paddr, GFP_DMA | GFP_KERNEL);
+				&sst_fw->dmable_fw_paddr, GFP_KERNEL);
 	if (!sst_fw->dma_buf) {
 		dev_err(dsp->dev, "error: DMA alloc failed\n");
 		kfree(sst_fw);
Signature · 6 lines
2.19.1

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

maintainer Acked-by on v1 1/8
#2 lore raw

Re: [PATCH 1/8] cpufreq: tegra186: don't pass GFP_DMA32 to dma_alloc_coherent

In reply to Christoph Hellwig
Quoted 4 lines · Christoph Hellwig

The DMA API does its own zone decisions based on the coherent_dma_mask.

Quoted 20 lines
---
 drivers/cpufreq/tegra186-cpufreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpufreq/tegra186-cpufreq.c +1 -2
index 1f59966573aa..f1e09022b819 100644
@@ -121,7 +121,7 @@ static struct cpufreq_frequency_table *init_vhint_table(
        void *virt;
 
        virt = dma_alloc_coherent(bpmp->dev, sizeof(*data), &phys,
-                                 GFP_KERNEL | GFP_DMA32);
+                                 GFP_KERNEL);
        if (!virt)
                return ERR_PTR(-ENOMEM);
 
--

2.19.1

Reviewed-by on v1 6/8
#20 lore raw

Re: [PATCH 6/8] drm: sti: don't pass GFP_DMA32 to dma_alloc_wc

In reply to Christoph Hellwig
Quoted 4 lines · Christoph Hellwig

The DMA API does its own zone decisions based on the coherent_dma_mask.

Quoted 24 lines
---
 drivers/gpu/drm/sti/sti_gdp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/sti/sti_gdp.c +1 -2
index c32de6cbf061..cdf0a1396e00 100644
@@ -517,7 +517,7 @@ static void sti_gdp_init(struct sti_gdp *gdp)
        /* Allocate all the nodes within a single memory page */
        size = sizeof(struct sti_gdp_node) *
            GDP_NODE_PER_FIELD * GDP_NODE_NB_BANK;
-       base = dma_alloc_wc(gdp->dev, size, &dma_addr, GFP_KERNEL | GFP_DMA);
+       base = dma_alloc_wc(gdp->dev, size, &dma_addr, GFP_KERNEL);
 
        if (!base) {
                DRM_ERROR("Failed to allocate memory for GDP node\n");
--

2.19.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Signature · 7 lines
Benjamin Gaignard

Graphic Study Group

Linaro.org │ Open source software for ARM SoCs

Follow Linaro: Facebook | Twitter | Blog
Reviewed-by on v1 7/8
#25 lore raw

Re: [PATCH 7/8] media: sti/bdisp: don't pass GFP_DMA32 to dma_alloc_attrs

In reply to Christoph Hellwig
Quoted 4 lines · Christoph Hellwig

The DMA API does its own zone decisions based on the coherent_dma_mask.

Quoted 24 lines
---
 drivers/media/platform/sti/bdisp/bdisp-hw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/platform/sti/bdisp/bdisp-hw.c +1 -2
index 26d9fa7aeb5f..4372abbb5950 100644
@@ -510,7 +510,7 @@ int bdisp_hw_alloc_filters(struct device *dev)
 
        /* Allocate all the filters within a single memory page */
        size = (BDISP_HF_NB * NB_H_FILTER) + (BDISP_VF_NB * NB_V_FILTER);
-       base = dma_alloc_attrs(dev, size, &paddr, GFP_KERNEL | GFP_DMA,
+       base = dma_alloc_attrs(dev, size, &paddr, GFP_KERNEL,
                               DMA_ATTR_WRITE_COMBINE);
        if (!base)
                return -ENOMEM;
--

2.19.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Signature · 7 lines
Benjamin Gaignard

Graphic Study Group

Linaro.org │ Open source software for ARM SoCs

Follow Linaro: Facebook | Twitter | Blog
maintainer
#15 lore raw

Re: [PATCH 5/8] sound: intel/sst: don't pass GFP_DMA32 to dma_alloc_coherent

In reply to Takashi Iwai
Quoted 11 lines · Takashi Iwai
Quoted 7 lines · Takashi Iwai
Quoted 3 lines · Christoph Hellwig

The DMA API does its own zone decisions based on the coherent_dma_mask.

Mark, let me know whether you'd take this via your tree or may I take via mine (with a minor correction of the subject line).

I don't have the patch... in fact, having found it in list archives I see there's also a SPI patch I'll have to go hunting for so I guess I'll apply this one when I find that :( Christoph, please CC maintainers.

Quoted 2 lines

FWIW, the driver sets the 31bit (!) DMA mask, and that's the likely reason of GFP_DMA passed there in the original code.

Likely, yes.

#21 lore raw

Re: [PATCH 6/8] drm: sti: don't pass GFP_DMA32 to dma_alloc_wc

In reply to Benjamin Gaignard
Quoted 8 lines · Benjamin Gaignard
Quoted 4 lines · Christoph Hellwig

The DMA API does its own zone decisions based on the coherent_dma_mask.

Christoph do you plan to merge this patch on your own tree ? or would like I put it directly in drm-misc-next branch ?

Regards,
Benjamin

Quoted 36 lines
Quoted 21 lines
---
 drivers/gpu/drm/sti/sti_gdp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/sti/sti_gdp.c +1 -2
index c32de6cbf061..cdf0a1396e00 100644
@@ -517,7 +517,7 @@ static void sti_gdp_init(struct sti_gdp *gdp)
        /* Allocate all the nodes within a single memory page */
        size = sizeof(struct sti_gdp_node) *
            GDP_NODE_PER_FIELD * GDP_NODE_NB_BANK;
-       base = dma_alloc_wc(gdp->dev, size, &dma_addr, GFP_KERNEL | GFP_DMA);
+       base = dma_alloc_wc(gdp->dev, size, &dma_addr, GFP_KERNEL);
 
        if (!base) {
                DRM_ERROR("Failed to allocate memory for GDP node\n");
--

2.19.1

Quoted 4 lines

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

--
Benjamin Gaignard

Graphic Study Group

Linaro.org │ Open source software for ARM SoCs

Follow Linaro: Facebook | Twitter | Blog

Signature · 11 lines
Benjamin Gaignard

Graphic Study Group

Linaro.org │ Open source software for ARM SoCs

Follow Linaro: Facebook | Twitter | Blog
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#16 lore raw

Re: [PATCH 5/8] sound: intel/sst: don't pass GFP_DMA32 to dma_alloc_coherent

In reply to Mark Brown
Quoted 8 lines · Mark Brown
Quoted 6 lines · Takashi Iwai
Quoted 5 lines · Takashi Iwai
Quoted 3 lines · Christoph Hellwig

The DMA API does its own zone decisions based on the coherent_dma_mask.

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

Mark, let me know whether you'd take this via your tree or may I take via mine (with a minor correction of the subject line).

I don't have the patch... in fact, having found it in list archives I see there's also a SPI patch I'll have to go hunting for so I guess I'll apply this one when I find that :( Christoph, please CC maintainers.

I tend to only add the list as there just are way too many maintainers for this sorts of series, and maintainers should read their list anyway.

#22 lore raw

Re: [PATCH 6/8] drm: sti: don't pass GFP_DMA32 to dma_alloc_wc

In reply to Benjamin Gaignard
Quoted 5 lines · Benjamin Gaignard
Quoted 3 lines · Benjamin Gaignard
Quoted 1 line · Christoph Hellwig
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

The DMA API does its own zone decisions based on the coherent_dma_mask.

Christoph do you plan to merge this patch on your own tree ? or would like I put it directly in drm-misc-next branch ?

Please pull it in through drm-misc-next, thanks!

#4 lore raw

Re: [PATCH 1/8] cpufreq: tegra186: don't pass GFP_DMA32 to dma_alloc_coherent

In reply to Christoph Hellwig
Quoted 11 lines · Christoph Hellwig
Quoted 7 lines · Rafael J. Wysocki
Quoted 4 lines · Christoph Hellwig

The DMA API does its own zone decisions based on the coherent_dma_mask.

Can you pick it up through the cpufreq tree?

Sure, I'll do that, thanks!

maintainer
#17 lore raw

Re: [PATCH 5/8] sound: intel/sst: don't pass GFP_DMA32 to dma_alloc_coherent

In reply to Christoph Hellwig
Quoted 8 lines · Christoph Hellwig
Quoted 3 lines · Mark Brown

I don't have the patch... in fact, having found it in list archives I see there's also a SPI patch I'll have to go hunting for so I guess I'll apply this one when I find that :( Christoph, please CC maintainers.

I tend to only add the list as there just are way too many maintainers for this sorts of series, and maintainers should read their list anyway.

For several of my subsystems that list is lkml, good luck reliably getting anything noticed by a specific person by simply posting there! Even with ASoC alsa-devel is also used by the general ALSA stuff so there's a lot of noise, especially for things without the ASoC prefix. I do trawl the lists but it's at best going to be delayed, especially during busier periods.

The usual thing for things like this is to send individual patches to specific maintainers (git send-email does the right thing with Cc: in the commit body).

maintainer
#18 lore raw

Applied "ASoC: intel: don't pass GFP_DMA32 to dma_alloc_coherent" to the asoc tree

In reply to Christoph Hellwig

The patch

ASoC: intel: don't pass GFP_DMA32 to dma_alloc_coherent

has been applied to the asoc tree at

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark

Quoted 1 line

From 3b991038498bc5011b063d6a804503c577a79434 Mon Sep 17 00:00:00 2001

From: Christoph Hellwig <[email protected]>
Date: Sat, 13 Oct 2018 17:17:04 +0200
Subject: [PATCH] ASoC: intel: don't pass GFP_DMA32 to dma_alloc_coherent

The DMA API does its own zone decisions based on the coherent_dma_mask.

---
 sound/soc/intel/common/sst-firmware.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/common/sst-firmware.c +1 -1
index 11041aedea31..1e067504b604 100644
@@ -355,7 +355,7 @@ struct sst_fw *sst_fw_new(struct sst_dsp *dsp,
 
 	/* allocate DMA buffer to store FW data */
 	sst_fw->dma_buf = dma_alloc_coherent(dsp->dma_dev, sst_fw->size,
-				&sst_fw->dmable_fw_paddr, GFP_DMA | GFP_KERNEL);
+				&sst_fw->dmable_fw_paddr, GFP_KERNEL);
 	if (!sst_fw->dma_buf) {
 		dev_err(dsp->dev, "error: DMA alloc failed\n");
 		kfree(sst_fw);
Signature · 1 line
2.19.0.rc2
maintainer
#7 lore raw

Applied "spi: pic32-sqi: don't pass GFP_DMA32 to dma_alloc_coherent" to the spi tree

In reply to Christoph Hellwig

The patch

spi: pic32-sqi: don't pass GFP_DMA32 to dma_alloc_coherent

has been applied to the spi tree at

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark

From ec506e9246bf42795f1fa8a5cd00740e5686ba73 Mon Sep 17 00:00:00 2001
From: Christoph Hellwig <[email protected]>
Date: Sat, 13 Oct 2018 17:17:02 +0200
Subject: [PATCH] spi: pic32-sqi: don't pass GFP_DMA32 to dma_alloc_coherent

The DMA API does its own zone decisions based on the coherent_dma_mask.

---
 drivers/spi/spi-pic32-sqi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/spi-pic32-sqi.c +1 -1
index 62e6bf1f50b1..d7e4e18ec3df 100644
@@ -468,7 +468,7 @@ static int ring_desc_ring_alloc(struct pic32_sqi *sqi)
 	/* allocate coherent DMAable memory for hardware buffer descriptors. */
 	sqi->bd = dma_zalloc_coherent(&sqi->master->dev,
 				      sizeof(*bd) * PESQI_BD_COUNT,
-				      &sqi->bd_dma, GFP_DMA32);
+				      &sqi->bd_dma, GFP_KERNEL);
 	if (!sqi->bd) {
 		dev_err(&sqi->master->dev, "failed allocating dma buffer\n");
 		return -ENOMEM;
Signature · 6 lines
2.19.0.rc2

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#23 lore raw

Re: [PATCH 6/8] drm: sti: don't pass GFP_DMA32 to dma_alloc_wc

In reply to Christoph Hellwig
Quoted 9 lines · Christoph Hellwig
Quoted 7 lines · Benjamin Gaignard
Quoted 5 lines · Benjamin Gaignard
Quoted 3 lines · Christoph Hellwig

The DMA API does its own zone decisions based on the coherent_dma_mask.

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Christoph do you plan to merge this patch on your own tree ? or would like I put it directly in drm-misc-next branch ?

Please pull it in through drm-misc-next, thanks!

Applied on drm-misc-next,
Thanks,
Benjamin
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#27 lore raw

Re: [PATCH 7/8] media: sti/bdisp: don't pass GFP_DMA32 to dma_alloc_attrs

In reply to Christoph Hellwig
Quoted 11 lines · Christoph Hellwig
Quoted 7 lines · Benjamin Gaignard
Quoted 4 lines · Christoph Hellwig

The DMA API does its own zone decisions based on the coherent_dma_mask.

Can you pick it up through the media tree?

No but Mauros or Hans (in CC) can add it.

#28 lore raw

Re: [PATCH 7/8] media: sti/bdisp: don't pass GFP_DMA32 to dma_alloc_attrs

Em Thu, 18 Oct 2018 14:00:40 +0200
Benjamin Gaignard <[email protected]> escreveu:

Quoted 7 lines · Christoph Hellwig
Quoted 6 lines · Benjamin Gaignard
Quoted 4 lines · Christoph Hellwig
Quoted 3 lines

The DMA API does its own zone decisions based on the coherent_dma_mask.

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Can you pick it up through the media tree?

No but Mauros or Hans (in CC) can add it.

I'm adding it. Sorry for the delay. All those trips for MS/KS made harder to handle it earlier.

Thanks,
Mauro
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel