All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Revert "mt76: mt76x0e: don't use hw encryption for MT7630E"
@ 2019-11-04  9:46 Stanislaw Gruszka
  2019-11-04 10:03 ` Lorenzo Bianconi
  2019-11-05  8:21 ` Kalle Valo
  0 siblings, 2 replies; 8+ messages in thread
From: Stanislaw Gruszka @ 2019-11-04  9:46 UTC (permalink / raw)
  To: linux-wireless; +Cc: Felix Fietkau, Lorenzo Bianconi, Ryder Lee, Roy Luo

This reverts commit 34b0e9b767bfa09ae233ca0d6ceb299bf2e24600.

Since 7bd0650be63c ("mt76: dma: fix buffer unmap with non-linear skbs")
is no longer necessary to disable HW encryption for MT7630E.

Disabling HW encryption helped previously because somehow fragmented
skb's are not created if mac80211 encrypt frames, so buffer unmap bug
of non-linear skbs was not triggered. Now since this bug if properly
fixed by 7bd0650be63c , we can enable HW encryption back.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
---
 drivers/net/wireless/mediatek/mt76/mt76x0/pci.c | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)

diff --git a/drivers/net/wireless/mediatek/mt76/mt76x0/pci.c b/drivers/net/wireless/mediatek/mt76/mt76x0/pci.c
index 7705e55aa3d1..f84a7df296ea 100644
--- a/drivers/net/wireless/mediatek/mt76/mt76x0/pci.c
+++ b/drivers/net/wireless/mediatek/mt76/mt76x0/pci.c
@@ -51,19 +51,6 @@ static void mt76x0e_stop(struct ieee80211_hw *hw)
 	mt76x0e_stop_hw(dev);
 }
 
-static int
-mt76x0e_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
-		struct ieee80211_vif *vif, struct ieee80211_sta *sta,
-		struct ieee80211_key_conf *key)
-{
-	struct mt76x02_dev *dev = hw->priv;
-
-	if (is_mt7630(dev))
-		return -EOPNOTSUPP;
-
-	return mt76x02_set_key(hw, cmd, vif, sta, key);
-}
-
 static void
 mt76x0e_flush(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
 	      u32 queues, bool drop)
@@ -80,7 +67,7 @@ static void mt76x0e_stop(struct ieee80211_hw *hw)
 	.configure_filter = mt76x02_configure_filter,
 	.bss_info_changed = mt76x02_bss_info_changed,
 	.sta_state = mt76_sta_state,
-	.set_key = mt76x0e_set_key,
+	.set_key = mt76x02_set_key,
 	.conf_tx = mt76x02_conf_tx,
 	.sw_scan_start = mt76_sw_scan,
 	.sw_scan_complete = mt76x02_sw_scan_complete,
-- 
1.9.3


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH] Revert "mt76: mt76x0e: don't use hw encryption for MT7630E"
  2019-11-04  9:46 [PATCH] Revert "mt76: mt76x0e: don't use hw encryption for MT7630E" Stanislaw Gruszka
@ 2019-11-04 10:03 ` Lorenzo Bianconi
  2019-11-05  8:21 ` Kalle Valo
  1 sibling, 0 replies; 8+ messages in thread
From: Lorenzo Bianconi @ 2019-11-04 10:03 UTC (permalink / raw)
  To: Stanislaw Gruszka
  Cc: linux-wireless, Felix Fietkau, Lorenzo Bianconi, Ryder Lee, Roy Luo

[-- Attachment #1: Type: text/plain, Size: 2007 bytes --]

> This reverts commit 34b0e9b767bfa09ae233ca0d6ceb299bf2e24600.
> 
> Since 7bd0650be63c ("mt76: dma: fix buffer unmap with non-linear skbs")
> is no longer necessary to disable HW encryption for MT7630E.
> 
> Disabling HW encryption helped previously because somehow fragmented
> skb's are not created if mac80211 encrypt frames, so buffer unmap bug
> of non-linear skbs was not triggered. Now since this bug if properly
> fixed by 7bd0650be63c , we can enable HW encryption back.
> 
> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
> ---
>  drivers/net/wireless/mediatek/mt76/mt76x0/pci.c | 15 +--------------
>  1 file changed, 1 insertion(+), 14 deletions(-)

Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>

> 
> diff --git a/drivers/net/wireless/mediatek/mt76/mt76x0/pci.c b/drivers/net/wireless/mediatek/mt76/mt76x0/pci.c
> index 7705e55aa3d1..f84a7df296ea 100644
> --- a/drivers/net/wireless/mediatek/mt76/mt76x0/pci.c
> +++ b/drivers/net/wireless/mediatek/mt76/mt76x0/pci.c
> @@ -51,19 +51,6 @@ static void mt76x0e_stop(struct ieee80211_hw *hw)
>  	mt76x0e_stop_hw(dev);
>  }
>  
> -static int
> -mt76x0e_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
> -		struct ieee80211_vif *vif, struct ieee80211_sta *sta,
> -		struct ieee80211_key_conf *key)
> -{
> -	struct mt76x02_dev *dev = hw->priv;
> -
> -	if (is_mt7630(dev))
> -		return -EOPNOTSUPP;
> -
> -	return mt76x02_set_key(hw, cmd, vif, sta, key);
> -}
> -
>  static void
>  mt76x0e_flush(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
>  	      u32 queues, bool drop)
> @@ -80,7 +67,7 @@ static void mt76x0e_stop(struct ieee80211_hw *hw)
>  	.configure_filter = mt76x02_configure_filter,
>  	.bss_info_changed = mt76x02_bss_info_changed,
>  	.sta_state = mt76_sta_state,
> -	.set_key = mt76x0e_set_key,
> +	.set_key = mt76x02_set_key,
>  	.conf_tx = mt76x02_conf_tx,
>  	.sw_scan_start = mt76_sw_scan,
>  	.sw_scan_complete = mt76x02_sw_scan_complete,
> -- 
> 1.9.3
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] Revert "mt76: mt76x0e: don't use hw encryption for MT7630E"
  2019-11-04  9:46 [PATCH] Revert "mt76: mt76x0e: don't use hw encryption for MT7630E" Stanislaw Gruszka
  2019-11-04 10:03 ` Lorenzo Bianconi
@ 2019-11-05  8:21 ` Kalle Valo
  2019-11-05  9:00   ` Stanislaw Gruszka
  1 sibling, 1 reply; 8+ messages in thread
From: Kalle Valo @ 2019-11-05  8:21 UTC (permalink / raw)
  To: Stanislaw Gruszka
  Cc: linux-wireless, Felix Fietkau, Lorenzo Bianconi, Ryder Lee, Roy Luo

Stanislaw Gruszka <sgruszka@redhat.com> writes:

> This reverts commit 34b0e9b767bfa09ae233ca0d6ceb299bf2e24600.
>
> Since 7bd0650be63c ("mt76: dma: fix buffer unmap with non-linear skbs")
> is no longer necessary to disable HW encryption for MT7630E.
>
> Disabling HW encryption helped previously because somehow fragmented
> skb's are not created if mac80211 encrypt frames, so buffer unmap bug
> of non-linear skbs was not triggered. Now since this bug if properly
> fixed by 7bd0650be63c , we can enable HW encryption back.

This should be:

... fixed by commit 7bd0650be63c ("mt76: dma: fix buffer unmap with
non-linear skbs"), we can enable ...

-- 
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] Revert "mt76: mt76x0e: don't use hw encryption for MT7630E"
  2019-11-05  8:21 ` Kalle Valo
@ 2019-11-05  9:00   ` Stanislaw Gruszka
  2019-11-05  9:08     ` Petr Štetiar
  2019-11-05  9:13     ` Kalle Valo
  0 siblings, 2 replies; 8+ messages in thread
From: Stanislaw Gruszka @ 2019-11-05  9:00 UTC (permalink / raw)
  To: Kalle Valo
  Cc: linux-wireless, Felix Fietkau, Lorenzo Bianconi, Ryder Lee, Roy Luo

On Tue, Nov 05, 2019 at 10:21:13AM +0200, Kalle Valo wrote:
> Stanislaw Gruszka <sgruszka@redhat.com> writes:
> 
> > This reverts commit 34b0e9b767bfa09ae233ca0d6ceb299bf2e24600.
> >
> > Since 7bd0650be63c ("mt76: dma: fix buffer unmap with non-linear skbs")
> > is no longer necessary to disable HW encryption for MT7630E.
> >
> > Disabling HW encryption helped previously because somehow fragmented
> > skb's are not created if mac80211 encrypt frames, so buffer unmap bug
> > of non-linear skbs was not triggered. Now since this bug if properly
> > fixed by 7bd0650be63c , we can enable HW encryption back.
> 
> This should be:
> 
> ... fixed by commit 7bd0650be63c ("mt76: dma: fix buffer unmap with
> non-linear skbs"), we can enable ...

I provided the topic in the first reference of the commit at the top.
Should I do this anytime in the chenglog when a commit is referenced,
even if it's done already ?

Stanislaw


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] Revert "mt76: mt76x0e: don't use hw encryption for MT7630E"
  2019-11-05  9:00   ` Stanislaw Gruszka
@ 2019-11-05  9:08     ` Petr Štetiar
  2019-11-05  9:52       ` Stanislaw Gruszka
  2019-11-05  9:13     ` Kalle Valo
  1 sibling, 1 reply; 8+ messages in thread
From: Petr Štetiar @ 2019-11-05  9:08 UTC (permalink / raw)
  To: Stanislaw Gruszka
  Cc: Kalle Valo, linux-wireless, Felix Fietkau, Lorenzo Bianconi,
	Ryder Lee, Roy Luo

Stanislaw Gruszka <sgruszka@redhat.com> [2019-11-05 10:00:44]:

Hi,

> I provided the topic in the first reference of the commit at the top.
> Should I do this anytime in the chenglog when a commit is referenced,
> even if it's done already ?

 ./scripts/checkpatch.pl 0001-Revert-mt76-mt76x0e-don-t-use-hw-encryption-for-MT76.patch
 ERROR: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 7bd0650be63c ("mt76: dma: fix buffer unmap with non-linear skbs")'
 #8: 
 Since 7bd0650be63c ("mt76: dma: fix buffer unmap with non-linear skbs")

 ERROR: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 7bd0650be63c ("mt76: dma: fix buffer unmap with non-linear skbs")'
 #14: 
 fixed by 7bd0650be63c , we can enable HW encryption back.

-- ynezz

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] Revert "mt76: mt76x0e: don't use hw encryption for MT7630E"
  2019-11-05  9:00   ` Stanislaw Gruszka
  2019-11-05  9:08     ` Petr Štetiar
@ 2019-11-05  9:13     ` Kalle Valo
  1 sibling, 0 replies; 8+ messages in thread
From: Kalle Valo @ 2019-11-05  9:13 UTC (permalink / raw)
  To: Stanislaw Gruszka
  Cc: linux-wireless, Felix Fietkau, Lorenzo Bianconi, Ryder Lee, Roy Luo

Stanislaw Gruszka <sgruszka@redhat.com> writes:

> On Tue, Nov 05, 2019 at 10:21:13AM +0200, Kalle Valo wrote:
>> Stanislaw Gruszka <sgruszka@redhat.com> writes:
>> 
>> > This reverts commit 34b0e9b767bfa09ae233ca0d6ceb299bf2e24600.
>> >
>> > Since 7bd0650be63c ("mt76: dma: fix buffer unmap with non-linear skbs")
>> > is no longer necessary to disable HW encryption for MT7630E.
>> >
>> > Disabling HW encryption helped previously because somehow fragmented
>> > skb's are not created if mac80211 encrypt frames, so buffer unmap bug
>> > of non-linear skbs was not triggered. Now since this bug if properly
>> > fixed by 7bd0650be63c , we can enable HW encryption back.
>> 
>> This should be:
>> 
>> ... fixed by commit 7bd0650be63c ("mt76: dma: fix buffer unmap with
>> non-linear skbs"), we can enable ...
>
> I provided the topic in the first reference of the commit at the top.
> Should I do this anytime in the chenglog when a commit is referenced,
> even if it's done already ?

Sorry, I missed that. Yes, you are right and ignore my comment.

-- 
Kalle Valo

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] Revert "mt76: mt76x0e: don't use hw encryption for MT7630E"
  2019-11-05  9:08     ` Petr Štetiar
@ 2019-11-05  9:52       ` Stanislaw Gruszka
  2019-11-05 14:06         ` Kalle Valo
  0 siblings, 1 reply; 8+ messages in thread
From: Stanislaw Gruszka @ 2019-11-05  9:52 UTC (permalink / raw)
  To: Petr Štetiar
  Cc: Kalle Valo, linux-wireless, Felix Fietkau, Lorenzo Bianconi,
	Ryder Lee, Roy Luo

On Tue, Nov 05, 2019 at 10:08:45AM +0100, Petr Štetiar wrote:
> Stanislaw Gruszka <sgruszka@redhat.com> [2019-11-05 10:00:44]:
> 
> Hi,
> 
> > I provided the topic in the first reference of the commit at the top.
> > Should I do this anytime in the chenglog when a commit is referenced,
> > even if it's done already ?
> 
>  ./scripts/checkpatch.pl 0001-Revert-mt76-mt76x0e-don-t-use-hw-encryption-for-MT76.patch
>  ERROR: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 7bd0650be63c ("mt76: dma: fix buffer unmap with non-linear skbs")'
>  #8: 
>  Since 7bd0650be63c ("mt76: dma: fix buffer unmap with non-linear skbs")

Okay, so I should add word 'commit' before HASH.

>  ERROR: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 7bd0650be63c ("mt76: dma: fix buffer unmap with non-linear skbs")'
>  #14: 
>  fixed by 7bd0650be63c , we can enable HW encryption back.

It's not clear if topic is need, but I can change it on the way.
BTW I hate checkpath.pl .

Stanislaw


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] Revert "mt76: mt76x0e: don't use hw encryption for MT7630E"
  2019-11-05  9:52       ` Stanislaw Gruszka
@ 2019-11-05 14:06         ` Kalle Valo
  0 siblings, 0 replies; 8+ messages in thread
From: Kalle Valo @ 2019-11-05 14:06 UTC (permalink / raw)
  To: Stanislaw Gruszka
  Cc: Petr Štetiar, linux-wireless, Felix Fietkau,
	Lorenzo Bianconi, Ryder Lee, Roy Luo

Stanislaw Gruszka <sgruszka@redhat.com> writes:

> On Tue, Nov 05, 2019 at 10:08:45AM +0100, Petr Štetiar wrote:
>> Stanislaw Gruszka <sgruszka@redhat.com> [2019-11-05 10:00:44]:
>> 
>> Hi,
>> 
>> > I provided the topic in the first reference of the commit at the top.
>> > Should I do this anytime in the chenglog when a commit is referenced,
>> > even if it's done already ?
>> 
>>  ./scripts/checkpatch.pl
>> 0001-Revert-mt76-mt76x0e-don-t-use-hw-encryption-for-MT76.patch
>>  ERROR: Please use git commit description style 'commit <12+ chars
>> of sha1> ("<title line>")' - ie: 'commit 7bd0650be63c ("mt76: dma:
>> fix buffer unmap with non-linear skbs")'
>>  #8: 
>>  Since 7bd0650be63c ("mt76: dma: fix buffer unmap with non-linear skbs")
>
> Okay, so I should add word 'commit' before HASH.
>
>>  ERROR: Please use git commit description style 'commit <12+ chars
>> of sha1> ("<title line>")' - ie: 'commit 7bd0650be63c ("mt76: dma:
>> fix buffer unmap with non-linear skbs")'
>>  #14: 
>>  fixed by 7bd0650be63c , we can enable HW encryption back.
>
> It's not clear if topic is need, but I can change it on the way.
> BTW I hate checkpath.pl .

checkpatch gives only hints, it's perfectly ok to ignore warnings which
don't make sense. So no need to change anything in this case as you have
provided the title already earlier in the commit log.

-- 
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-11-05 14:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-04  9:46 [PATCH] Revert "mt76: mt76x0e: don't use hw encryption for MT7630E" Stanislaw Gruszka
2019-11-04 10:03 ` Lorenzo Bianconi
2019-11-05  8:21 ` Kalle Valo
2019-11-05  9:00   ` Stanislaw Gruszka
2019-11-05  9:08     ` Petr Štetiar
2019-11-05  9:52       ` Stanislaw Gruszka
2019-11-05 14:06         ` Kalle Valo
2019-11-05  9:13     ` Kalle Valo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.