From: Stanislaw Gruszka <sgruszka@redhat.com>
To: LorenzoBianconilorenzo@kernel.org
Cc: nbd@nbd.name, linux-wireless@vger.kernel.org
Subject: Re: [PATCH 0/4] do not use sg if not properly supported by usb controller
Date: Tue, 12 Feb 2019 14:45:50 +0100 [thread overview]
Message-ID: <20190212134550.GA12256@redhat.com> (raw)
In-Reply-To: <cover.1549977282.git.lorenzo@kernel.org>
On Tue, Feb 12, 2019 at 02:24:47PM +0100, LorenzoBianconilorenzo@kernel.org wrote:
> From: Lorenzo Bianconi <lorenzo@kernel.org>
>
> Use linear fragment and not a single usb scatter-gather buffer in mt76u
> {tx,rx} datapath if the usb controller has sg data length constraints.
> Moreover add disable_usb_sg module parameter in order to explicitly
> disable scatter-gather. SG I/O is not supported by all host drivers and
> some users have reported sg issues on AMD IOMMU.
Again. This is not right approach. SG issues should be fixed
not workarounded.
> This series has been tested on AMD IOMMU cpus/motherboards and on rpi3+
> - rebased on top of 'fix multiple issues in mt76u error path'
> https://patchwork.kernel.org/cover/10804919/
>
> Lorenzo Bianconi (4):
> mt76: usb: move mt76u_check_sg in usb.c
> mt76: usb: do not use sg buffers for mcu messages
> mt76: usb: use a linear buffer for tx/rx datapath if sg is not
> supported
> mt76: usb: introduce disable_usb_sg parameter
>
> drivers/net/wireless/mediatek/mt76/mt76.h | 14 +-
> .../net/wireless/mediatek/mt76/mt76x0/usb.c | 2 +-
> .../wireless/mediatek/mt76/mt76x02_usb_mcu.c | 3 +-
> .../wireless/mediatek/mt76/mt76x2/usb_init.c | 2 +-
> drivers/net/wireless/mediatek/mt76/usb.c | 133 +++++++++++++-----
> drivers/net/wireless/mediatek/mt76/usb_mcu.c | 5 +-
> 6 files changed, 105 insertions(+), 54 deletions(-)
I really think my approach is simpler. Diffstat from my proposed patch is:
drivers/net/wireless/mediatek/mt76/mt76.h | 1 +
drivers/net/wireless/mediatek/mt76/usb.c | 55 ++++++++++++++---------
2 files changed, 36 insertions(+), 20 deletions(-)
Also this fix bug(s), presumably regression for mt76x0, should be
backported.
Stanislaw
next prev parent reply other threads:[~2019-02-12 13:45 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-12 13:42 [PATCH RESEND 0/4] do not use sg if not properly supported by usb controller lorenzo
2019-02-12 13:42 ` [PATCH RESEND 1/4] mt76: usb: move mt76u_check_sg in usb.c lorenzo
2019-02-12 13:42 ` [PATCH RESEND 2/4] mt76: usb: do not use sg buffers for mcu messages lorenzo
2019-02-12 13:42 ` [PATCH RESEND 3/4] mt76: usb: use a linear buffer for tx/rx datapath if sg is not supported lorenzo
2019-02-12 13:42 ` [PATCH RESEND 4/4] mt76: usb: introduce disable_usb_sg parameter lorenzo
2019-02-12 13:45 ` Stanislaw Gruszka [this message]
2019-02-12 13:51 ` [PATCH 0/4] do not use sg if not properly supported by usb controller Stanislaw Gruszka
2019-02-12 14:09 ` Lorenzo Bianconi
2019-02-12 14:17 ` Stanislaw Gruszka
2019-02-12 14:25 ` Lorenzo Bianconi
2019-02-12 14:54 ` Stanislaw Gruszka
2019-02-12 15:08 ` Lorenzo Bianconi
2019-02-12 15:26 ` Stanislaw Gruszka
2019-02-12 15:50 ` Lorenzo Bianconi
2019-02-12 22:09 ` Lorenzo Bianconi
2019-02-13 9:44 ` Stanislaw Gruszka
2019-02-13 11:00 ` Lorenzo Bianconi
2019-02-13 11:59 ` Stanislaw Gruszka
2019-02-18 18:56 ` [PATCH RESEND " Felix Fietkau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190212134550.GA12256@redhat.com \
--to=sgruszka@redhat.com \
--cc=LorenzoBianconilorenzo@kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=nbd@nbd.name \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).