Message ID | 20180620084222.3521-2-niklas.cassel@linaro.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 679e1f07c86221b7183dd69df7068fd42d0041f6 |
Delegated to: | Kalle Valo |
Headers | show |
Niklas Cassel <niklas.cassel@linaro.org> writes: > All packets in a bundle should use the same endpoint id as the > first lookahead. > > This matches how things are done is ath6kl, however, > this patch can theoretically handle several bundles > in ath10k_sdio_mbox_rx_process_packets(). > > Without this patch we get lots of errors about invalid endpoint id: > > ath10k_sdio mmc2:0001:1: invalid endpoint in look-ahead: 224 > ath10k_sdio mmc2:0001:1: failed to get pending recv messages: -12 > ath10k_sdio mmc2:0001:1: failed to process pending SDIO interrupts: -12 > > Signed-off-by: Alagu Sankar <alagusankar@silex-india.com> > Signed-off-by: Niklas Cassel <niklas.cassel@linaro.org> You have Alagu's s-o-b first so that implies Alagu is the author. So should I add From header for Alagu and add you (Niklas) as Co-Developed-by? Or vice versa?
Kalle Valo <kvalo@codeaurora.org> writes: > Niklas Cassel <niklas.cassel@linaro.org> writes: > >> All packets in a bundle should use the same endpoint id as the >> first lookahead. >> >> This matches how things are done is ath6kl, however, >> this patch can theoretically handle several bundles >> in ath10k_sdio_mbox_rx_process_packets(). >> >> Without this patch we get lots of errors about invalid endpoint id: >> >> ath10k_sdio mmc2:0001:1: invalid endpoint in look-ahead: 224 >> ath10k_sdio mmc2:0001:1: failed to get pending recv messages: -12 >> ath10k_sdio mmc2:0001:1: failed to process pending SDIO interrupts: -12 >> >> Signed-off-by: Alagu Sankar <alagusankar@silex-india.com> >> Signed-off-by: Niklas Cassel <niklas.cassel@linaro.org> > > You have Alagu's s-o-b first so that implies Alagu is the author. So > should I add From header for Alagu and add you (Niklas) as > Co-Developed-by? Or vice versa? Ah, the same issue is with all three patches. So whatever we decide, I'll do the same changes on all three.
On Fri, Jun 29, 2018 at 02:53:44PM +0300, Kalle Valo wrote: > Kalle Valo <kvalo@codeaurora.org> writes: > > > Niklas Cassel <niklas.cassel@linaro.org> writes: > > > >> All packets in a bundle should use the same endpoint id as the > >> first lookahead. > >> > >> This matches how things are done is ath6kl, however, > >> this patch can theoretically handle several bundles > >> in ath10k_sdio_mbox_rx_process_packets(). > >> > >> Without this patch we get lots of errors about invalid endpoint id: > >> > >> ath10k_sdio mmc2:0001:1: invalid endpoint in look-ahead: 224 > >> ath10k_sdio mmc2:0001:1: failed to get pending recv messages: -12 > >> ath10k_sdio mmc2:0001:1: failed to process pending SDIO interrupts: -12 > >> > >> Signed-off-by: Alagu Sankar <alagusankar@silex-india.com> > >> Signed-off-by: Niklas Cassel <niklas.cassel@linaro.org> > > > > You have Alagu's s-o-b first so that implies Alagu is the author. So > > should I add From header for Alagu and add you (Niklas) as > > Co-Developed-by? Or vice versa? Hello Kalle, It is not always obvious how the combination of git-author and Co-Developed-by should be: http://lkml.iu.edu/hypermail/linux/kernel/1801.2/00988.html Alagu deserves most credit, since I have simply taken parts of a very big patch and split it into smaller pieces. I tried to do the right thing by having his Signed-off-by first. Let's go with your suggestion and add a From: header with Alagu's email, and a Co-Developed-by tag with my email. (Note that both Signed-off-bys are still needed according to submitting-patches.rst) Do you want me to resend the patches with these two lines added, or can you fix them up manually? Regards, Niklas > > Ah, the same issue is with all three patches. So whatever we decide, > I'll do the same changes on all three. > > -- > Kalle Valo
Niklas Cassel <niklas.cassel@linaro.org> writes: > On Fri, Jun 29, 2018 at 02:53:44PM +0300, Kalle Valo wrote: >> Kalle Valo <kvalo@codeaurora.org> writes: >> >> > Niklas Cassel <niklas.cassel@linaro.org> writes: >> > >> >> All packets in a bundle should use the same endpoint id as the >> >> first lookahead. >> >> >> >> This matches how things are done is ath6kl, however, >> >> this patch can theoretically handle several bundles >> >> in ath10k_sdio_mbox_rx_process_packets(). >> >> >> >> Without this patch we get lots of errors about invalid endpoint id: >> >> >> >> ath10k_sdio mmc2:0001:1: invalid endpoint in look-ahead: 224 >> >> ath10k_sdio mmc2:0001:1: failed to get pending recv messages: -12 >> >> ath10k_sdio mmc2:0001:1: failed to process pending SDIO interrupts: -12 >> >> >> >> Signed-off-by: Alagu Sankar <alagusankar@silex-india.com> >> >> Signed-off-by: Niklas Cassel <niklas.cassel@linaro.org> >> > >> > You have Alagu's s-o-b first so that implies Alagu is the author. So >> > should I add From header for Alagu and add you (Niklas) as >> > Co-Developed-by? Or vice versa? > > Hello Kalle, > > It is not always obvious how the combination of git-author > and Co-Developed-by should be: > http://lkml.iu.edu/hypermail/linux/kernel/1801.2/00988.html Yeah, that's true. > Alagu deserves most credit, since I have simply taken parts > of a very big patch and split it into smaller pieces. > I tried to do the right thing by having his Signed-off-by first. > > Let's go with your suggestion and add a From: header with > Alagu's email, and a Co-Developed-by tag with my email. > (Note that both Signed-off-bys are still needed according to > submitting-patches.rst) Ok. > Do you want me to resend the patches with these two lines > added, or can you fix them up manually? No need, I did that already in the pending branch. Please check: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit/?h=pending&id=6b23bd067990df1cc1e9a4c28327393a7a3ba718 https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit/?h=pending&id=bf83a5c572e0737e59e026c989b190b4e52d2ef4 https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit/?h=pending&id=218f924d80b76520a4e60eead5e89f3ebd2e86c1
On Fri, Jun 29, 2018 at 04:51:51PM +0300, Kalle Valo wrote: > Niklas Cassel <niklas.cassel@linaro.org> writes: > > > On Fri, Jun 29, 2018 at 02:53:44PM +0300, Kalle Valo wrote: > >> Kalle Valo <kvalo@codeaurora.org> writes: > >> > >> > Niklas Cassel <niklas.cassel@linaro.org> writes: > >> > > >> >> All packets in a bundle should use the same endpoint id as the > >> >> first lookahead. > >> >> > >> >> This matches how things are done is ath6kl, however, > >> >> this patch can theoretically handle several bundles > >> >> in ath10k_sdio_mbox_rx_process_packets(). > >> >> > >> >> Without this patch we get lots of errors about invalid endpoint id: > >> >> > >> >> ath10k_sdio mmc2:0001:1: invalid endpoint in look-ahead: 224 > >> >> ath10k_sdio mmc2:0001:1: failed to get pending recv messages: -12 > >> >> ath10k_sdio mmc2:0001:1: failed to process pending SDIO interrupts: -12 > >> >> > >> >> Signed-off-by: Alagu Sankar <alagusankar@silex-india.com> > >> >> Signed-off-by: Niklas Cassel <niklas.cassel@linaro.org> > >> > > >> > You have Alagu's s-o-b first so that implies Alagu is the author. So > >> > should I add From header for Alagu and add you (Niklas) as > >> > Co-Developed-by? Or vice versa? > > > > Hello Kalle, > > > > It is not always obvious how the combination of git-author > > and Co-Developed-by should be: > > http://lkml.iu.edu/hypermail/linux/kernel/1801.2/00988.html > > Yeah, that's true. > > > Alagu deserves most credit, since I have simply taken parts > > of a very big patch and split it into smaller pieces. > > I tried to do the right thing by having his Signed-off-by first. > > > > Let's go with your suggestion and add a From: header with > > Alagu's email, and a Co-Developed-by tag with my email. > > (Note that both Signed-off-bys are still needed according to > > submitting-patches.rst) > > Ok. > > > Do you want me to resend the patches with these two lines > > added, or can you fix them up manually? > > No need, I did that already in the pending branch. Please check: > > https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit/?h=pending&id=6b23bd067990df1cc1e9a4c28327393a7a3ba718 > > https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit/?h=pending&id=bf83a5c572e0737e59e026c989b190b4e52d2ef4 > > https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit/?h=pending&id=218f924d80b76520a4e60eead5e89f3ebd2e86c1 Hello Kalle It looks good :) Regards, Niklas > > -- > Kalle Valo
Niklas Cassel <niklas.cassel@linaro.org> wrote: > All packets in a bundle should use the same endpoint id as the > first lookahead. > > This matches how things are done is ath6kl, however, > this patch can theoretically handle several bundles > in ath10k_sdio_mbox_rx_process_packets(). > > Without this patch we get lots of errors about invalid endpoint id: > > ath10k_sdio mmc2:0001:1: invalid endpoint in look-ahead: 224 > ath10k_sdio mmc2:0001:1: failed to get pending recv messages: -12 > ath10k_sdio mmc2:0001:1: failed to process pending SDIO interrupts: -12 > > Co-Developed-by: Niklas Cassel <niklas.cassel@linaro.org> > Signed-off-by: Alagu Sankar <alagusankar@silex-india.com> > Signed-off-by: Niklas Cassel <niklas.cassel@linaro.org> > Signed-off-by: Kalle Valo <kvalo@codeaurora.org> 3 patches applied to ath-next branch of ath.git, thanks. 679e1f07c862 ath10k: sdio: use same endpoint id for all packets in a bundle d1d061b1395a ath10k: sdio: allocate correct size for RECV_1MORE_BLOCK rx packets 8530b4e7b22b ath10k: sdio: set skb len for all rx packets
diff --git a/drivers/net/wireless/ath/ath10k/sdio.c b/drivers/net/wireless/ath/ath10k/sdio.c index d612ce8c9cff..d46523b0472c 100644 --- a/drivers/net/wireless/ath/ath10k/sdio.c +++ b/drivers/net/wireless/ath/ath10k/sdio.c @@ -434,12 +434,14 @@ static int ath10k_sdio_mbox_rx_process_packets(struct ath10k *ar, enum ath10k_htc_ep_id id; int ret, i, *n_lookahead_local; u32 *lookaheads_local; + int lookahead_idx = 0; for (i = 0; i < ar_sdio->n_rx_pkts; i++) { lookaheads_local = lookaheads; n_lookahead_local = n_lookahead; - id = ((struct ath10k_htc_hdr *)&lookaheads[i])->eid; + id = ((struct ath10k_htc_hdr *) + &lookaheads[lookahead_idx++])->eid; if (id >= ATH10K_HTC_EP_COUNT) { ath10k_warn(ar, "invalid endpoint in look-ahead: %d\n", @@ -462,6 +464,7 @@ static int ath10k_sdio_mbox_rx_process_packets(struct ath10k *ar, /* Only read lookahead's from RX trailers * for the last packet in a bundle. */ + lookahead_idx--; lookaheads_local = NULL; n_lookahead_local = NULL; }