ASoC: amd: fix report accurate hw_ptr during dma
Subsystems (3)
PATCH 1/1 ASoC: amd: fix report accurate hw_ptr during dma
From: Guenter Roeck <[email protected]>
ERROR: "__aeabi_uldivmod" [sound/soc/amd/snd-soc-acp-pcm.ko] undefined!
64-bit divides require special operations to avoid build errors on 32-bit systems.
Reviewed-on: https://chromium-review.googlesource.com/678919
Reviewed-on: https://chromium-review.googlesource.com/681618
---
v2: resend with the Chromium tags removed and the subject updated.
sound/soc/amd/acp-pcm-dma.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
sound/soc/amd/acp-pcm-dma.c +1 -2
@@ -856,12 +856,11 @@ static snd_pcm_uframes_t acp_dma_pointer(struct snd_pcm_substream *substream)if (substream->stream ==SNDRV_PCM_STREAM_PLAYBACK ) {if (bytescount > rtd->renderbytescount) bytescount = bytescount - rtd->renderbytescount; - pos = bytescount % buffersize; }else {if (bytescount > rtd->capturebytescount) bytescount = bytescount - rtd->capturebytescount; - pos = bytescount % buffersize; } + pos =do_div (bytescount, buffersize);return bytes_to_frames (runtime, pos); }
Signature · 6 lines
2.13.6 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Mark Brown
maintainerQuoted 6 lines · Alex Deucher
From: Guenter Roeck <[email protected]>
ERROR: "
__aeabi_uldivmod" [sound/soc/amd/snd-soc-acp-pcm.ko] undefined!64-bit divides require special operations to avoid build errors on 32-bit systems.
Like I said in reply to your other mail please don't resubmit already applied patches. The current tip of my topic/amd branch appears to be this very patch, if there's anything needs changing please send an incremental patch.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
A message that is not in the archive (sent off-list or not yet received): 20171108182214.bwdvt5wwwz7wqf32-7j8lgAiuQgnQXOPxS62xeg@public.gmane.org
Quoted 5 lines · Mark Brown
Quoted 4 lines · Alex Deucher
From: Guenter Roeck <[email protected]>
ERROR: "
__aeabi_uldivmod" [sound/soc/amd/snd-soc-acp-pcm.ko] undefined!
Quoted 7 lines
Quoted 2 lines
64-bit divides require special operations to avoid build errors on 32-bit systems.
Like I said in reply to your other mail please don't resubmit already applied patches. The current tip of my topic/amd branch appears to be this very patch, if there's anything needs changing please send an incremental patch.
I'm not seeing this one in your tree either. This is just a resend of Guenter's patch from an hour ago with the chromium stuff removed. Maybe you already applied it in the interim?
Alex
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Mark Brown
maintainerQuoted 10 lines · Alex Deucher
Quoted 4 lines · Mark Brown
Like I said in reply to your other mail please don't resubmit already applied patches. The current tip of my topic/amd branch appears to be this very patch, if there's anything needs changing please send an incremental patch.
I'm not seeing this one in your tree either. This is just a resend of Guenter's patch from an hour ago with the chromium stuff removed. Maybe you already applied it in the interim?
Is this different to "ASoC: amd: Report accurate hw_ptr during dma" which was applied at 16:07?
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
A message that is not in the archive (sent off-list or not yet received): 20171108184752.wff6qn6ssguaegkq-7j8lgAiuQgnQXOPxS62xeg@public.gmane.org
Quoted 8 lines · Mark Brown
Quoted 6 lines · Alex Deucher
Quoted 4 lines · Mark Brown
Like I said in reply to your other mail please don't resubmit already applied patches. The current tip of my topic/amd branch appears to be this very patch, if there's anything needs changing please send an incremental patch.
Quoted 7 lines
Quoted 3 lines
I'm not seeing this one in your tree either. This is just a resend of Guenter's patch from an hour ago with the chromium stuff removed. Maybe you already applied it in the interim?
Is this different to "ASoC: amd: Report accurate
hw_ptrduring dma" which was applied at 16:07?
I suspect we may be getting hit by chromeos-isms again. In Chrome OS, we don't use Fixes: tags but "FIXUP: <original description>" in the subject (not that I like it, but it is what it is).
Guenter
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Mark Brown
maintainerQuoted 8 lines · Guenter Roeck
Quoted 2 lines · Mark Brown
Is this different to "ASoC: amd: Report accurate
hw_ptrduring dma" which was applied at 16:07?I suspect we may be getting hit by chromeos-isms again. In Chrome OS, we don't use Fixes: tags but "FIXUP: <original description>" in the subject (not that I like it, but it is what it is).
So it probably is the same patch that was just resent with a slightly modified subject line? That's what it looked like initially.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
A message that is not in the archive (sent off-list or not yet received): 20171108194948.bq46lwurlzf45tzm-7j8lgAiuQgnQXOPxS62xeg@public.gmane.org
Quoted 6 lines · Mark Brown
Quoted 4 lines · Guenter Roeck
Quoted 2 lines · Mark Brown
Is this different to "ASoC: amd: Report accurate
hw_ptrduring dma" which was applied at 16:07?
Quoted 6 lines
Quoted 3 lines
I suspect we may be getting hit by chromeos-isms again. In Chrome OS, we don't use Fixes: tags but "FIXUP: <original description>" in the subject (not that I like it, but it is what it is).
So it probably is the same patch that was just resent with a slightly modified subject line? That's what it looked like initially.
The original patch which was applied to your tree already:
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git/commit/?h=for-next&id=61add8147942d23519b91f0edc30980d7c14482c
That patch as a 64 bit divide in it which was fixed by this patch from Guenter:
https://lists.freedesktop.org/archives/dri-devel/2017-November/157063.html
which contained a bunch of Chrome tags. I removed the tags and updated the subject and added a fixes line and resent it as this patch (subject of this thread):
https://lists.freedesktop.org/archives/dri-devel/2017-November/157076.html
Please apply. Sorry for the confusion.
Alex
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 18 lines
-----Original Message-----
From: Mark Brown [mailto:[email protected]]
Sent: Wednesday, November 08, 2017 1:48 PM
To: Alex Deucher
Cc: amd-gfx list; [email protected]; Maling list - DRI developers; Mukunda, Vijendar; Liam Girdwood; Takashi Iwai; Guenter Roeck; Deucher, Alexander
Subject: Re: [PATCH] ASoC: amd: fix report accuratehw_ptrduring dmaQuoted 1 line · Alex Deucher
On Wed, Nov 8, 2017 at 1:22 PM, Mark Brown <[email protected]>
Quoted 4 lines · wrote:
Quoted 4 lines
Like I said in reply to your other mail please don't resubmit already applied patches. The current tip of my topic/amd branch appears to be this very patch, if there's anything needs changing please send an incremental patch.
Quoted 6 lines
Quoted 3 lines
I'm not seeing this one in your tree either. This is just a resend of Guenter's patch from an hour ago with the chromium stuff removed. Maybe you already applied it in the interim?
Is this different to "ASoC: amd: Report accurate
hw_ptrduring dma" which was applied at 16:07?
Yes, this is a fix for that patch. It fixes a 64 bit division that wasn't properly handled.
Alex
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): BN6PR12MB1652F8671D062FDE91D42951F7560-/b2+HYfkarQqUD6E6FAiowdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
Quoted 24 lines · Alexander
Quoted 5 lines
-----Original Message-----
From: Mark Brown [mailto:[email protected]]
Sent: Wednesday, November 08, 2017 1:48 PM
To: Alex Deucher
Cc: amd-gfx list; alsa-devel-K7yf7f+aM1XWsZ/[email protected]; Maling list - DRIdevelopers;
Quoted 10 lines
Mukunda, Vijendar; Liam Girdwood; Takashi Iwai; Guenter Roeck; Deucher, Alexander
Subject: Re: [PATCH] ASoC: amd: fix report accuratehw_ptrduring dmaQuoted 1 line · Alex Deucher
On Wed, Nov 8, 2017 at 1:22 PM, Mark Brown <[email protected]>
Quoted 2 lines · wrote:
Quoted 2 lines
Like I said in reply to your other mail please don't resubmit already applied patches. The current tip of my topic/amd branch appears to
be
Quoted 7 lines
Quoted 6 lines
Quoted 2 lines
this very patch, if there's anything needs changing please send an incremental patch.
I'm not seeing this one in your tree either. This is just a resend of Guenter's patch from an hour ago with the chromium stuff removed. Maybe you already applied it in the interim?
Quoted 7 lines
Quoted 2 lines
Is this different to "ASoC: amd: Report accurate
hw_ptrduring dma" which was applied at 16:07?Yes, this is a fix for that patch. It fixes a 64 bit division that wasn't properly handled.
In that case, the subject should reflect the problem fixed, the description should describe the problem, and there should be a Fixes: tag pointing to the problematic patch.
Sorry, I was not aware that the problematic patch is already pending upstream, or I would have submitted a proper patch upstream myself.
Guenter
Quoted 3 lines
Alex
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 31 lines · Guenter Roeck
Quoted 29 lines · Alexander
Quoted 28 lines
-----Original Message-----
From: Mark Brown [mailto:[email protected]]
Sent: Wednesday, November 08, 2017 1:48 PM
To: Alex Deucher
Cc: amd-gfx list; [email protected]; Maling list - DRI developers;
Mukunda, Vijendar; Liam Girdwood; Takashi Iwai; Guenter Roeck; Deucher, Alexander
Subject: Re: [PATCH] ASoC: amd: fix report accuratehw_ptrduring dmaQuoted 1 line · Alex Deucher
On Wed, Nov 8, 2017 at 1:22 PM, Mark Brown <[email protected]>
Quoted 10 lines · wrote:
Quoted 6 lines
Like I said in reply to your other mail please don't resubmit already
applied patches. The current tip of my topic/amd branch appears to be
this very patch, if there's anything needs changing please send an incremental patch.I'm not seeing this one in your tree either. This is just a resend of Guenter's patch from an hour ago with the chromium stuff removed. Maybe you already applied it in the interim?
Is this different to "ASoC: amd: Report accurate
hw_ptrduring dma" which was applied at 16:07?
Quoted 7 lines
Quoted 3 lines
Yes, this is a fix for that patch. It fixes a 64 bit division that wasn't properly handled.
In that case, the subject should reflect the problem fixed, the description should describe the problem, and there should be a Fixes: tag pointing to the problematic patch.
I updated the patch subject and added a fixes tag when I resent it after removing the chrome tags. The subject could have been bit better, but I wasn't sure how far to take it since it wasn't my patch originally.
Alex
Quoted 10 lines
Sorry, I was not aware that the problematic patch is already pending upstream, or I would have submitted a proper patch upstream myself.
Guenter
Quoted 3 lines
Alex
A message that is not in the archive (sent off-list or not yet received): CADnq5_M8y44hapOkPoapGP-WRP=a-6zc3s-A_3Fv85ssPRFFEQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 41 lines · Alex Deucher
Quoted 10 lines · Guenter Roeck
Quoted 8 lines · Alexander
Quoted 8 lines
-----Original Message-----
From: Mark Brown [mailto:[email protected]]
Sent: Wednesday, November 08, 2017 1:48 PM
To: Alex Deucher
Cc: amd-gfx list; alsa-devel-K7yf7f+aM1XWsZ/[email protected]; Maling list - DRI developers;
Mukunda, Vijendar; Liam Girdwood; Takashi Iwai; Guenter Roeck;Deucher,
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Alexander
Subject: Re: [PATCH] ASoC: amd: fix report accuratehw_ptrduring dmaQuoted 1 line · Alex Deucher
On Wed, Nov 8, 2017 at 1:22 PM, Mark Brown <[email protected]>
Quoted 3 lines · wrote:
Quoted 3 lines
Like I said in reply to your other mail please don't resubmit already
applied patches. The current tip of my topic/amd branch appearsto
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
be
this very patch, if there's anything needs changing please send an incremental patch.I'm not seeing this one in your tree either. This is just a resend
of
Quoted 7 lines
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
Guenter's patch from an hour ago with the chromium stuff removed. Maybe you already applied it in the interim?
Is this different to "ASoC: amd: Report accurate
hw_ptrduring dma" which was applied at 16:07?Yes, this is a fix for that patch. It fixes a 64 bit division that
wasn't
Quoted 4 lines
Quoted 2 lines
properly handled.
In that case, the subject should reflect the problem fixed, the
Quoted 10 lines
description
Quoted 2 lines
should describe the problem, and there should be a Fixes: tag pointing to the problematic patch.
I updated the patch subject and added a fixes tag when I resent it after removing the chrome tags. The subject could have been bit better, but I wasn't sure how far to take it since it wasn't my patch originally.
In such situations, it is probably better to write a new patch with proper subject and description and add a tag such as "Reported-by:", "Suggested-by:", or "Originally-from:" to give some credit if you feel generous. The attempt to retain my ownership caused way more trouble than it is worth.
Guenter
Quoted 13 lines
Alex
Quoted 10 lines
Sorry, I was not aware that the problematic patch is already pending upstream, or I would have submitted a proper patch upstream myself.
Guenter
Quoted 3 lines
Alex
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Mark Brown
maintainerQuoted 8 lines · Alex Deucher
Quoted 7 lines · Guenter Roeck
On Wed, Nov 8, 2017 at 11:18 AM, Deucher, Alexander
Quoted 5 lines
Quoted 2 lines
Is this different to "ASoC: amd: Report accurate
hw_ptrduring dma" which was applied at 16:07?Yes, this is a fix for that patch. It fixes a 64 bit division that wasn't properly handled.
Ugh. Two problems here. One is obviously that there's a patch that was sent out only a couple of days ago with a whole bunch of tags about internal testing and review and now you've found issues with it. That's worrying.
The other is that you really, really need to get more on top of upstream process. There have been constant problems with this driver and they feel like they're getting worse not better, with the original send of this the noise in the subject lines and body of the e-mail means that what you're sending looks like a case of git send-email CCing people in accidentally rather than a deliberate upstream submission.
The constant problems mean that even as I open the e-mail I'm expecting to have to push back on something which isn't great and affects the way I review things.
Quoted 8 lines
Quoted 3 lines
In that case, the subject should reflect the problem fixed, the description should describe the problem, and there should be a Fixes: tag pointing to the problematic patch.
I updated the patch subject and added a fixes tag when I resent it after removing the chrome tags. The subject could have been bit better, but I wasn't sure how far to take it since it wasn't my patch originally.
If you're concerned about rewriting commit logs just add a note saying that you did so in the commit log. Please resend normally.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel