Received: by 10.192.165.148 with SMTP id m20csp4344501imm; Mon, 30 Apr 2018 16:57:45 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoPvj8jZrFp6f8LzNO7/VBYV82sfX7b7Je7t1I0GGN7jrd234D6wL78TpwXXhcIlTiv/TZ4 X-Received: by 10.98.242.74 with SMTP id y10mr13750614pfl.75.1525132665279; Mon, 30 Apr 2018 16:57:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525132665; cv=none; d=google.com; s=arc-20160816; b=AUV73WjvpkJl+z81VtX4YibFe1+A+OEfn4AUIKtHhsmCkLmKT1oaj0PbSYRr5mWekJ UVuLRi/XXINFD2bqssDxC7iT0Fvhh7o3vOpQE1pTM/X9Sawkr9+31/FtZ0nsIY27Psd+ 1w6EnXKSMXwThHsiK4DwpcS67HuVnyBj8f1MJ50ZejIlHEs2lpE44KfwOB6H1wFXcbpY RXJgtQdW5w/CCjezxEaR5J1Lw8SjR/LA0ZFi2RYKEVLdQRqDELPeuwaPOolwxO3JOk4L UOkty8sYcJcJnAyZg9aFyP1jy9NmQj2h36q5ZJ5NdlWiA8rWoTeo81YW54A5YMSUnCAr TUVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=wv1xGFJLEFvt+8tJQmSr28QE/h+/5jcmgBGRFzchTXc=; b=S2e3z9O7tq6qYFr/ZjLoZMCEnHkIpsmDab1FKxwGfEzfRr9Uxyd5HQUsoetbhgTFId 4uFx3CNhzOLd9vD3lbE4BzKlYf0hQ9pFIjB/9Pkz/HYBznWb1snWXbmava2afppX+i53 WZmqLtE1IiYW7t0VIvp3XLga6nVdKcN07jgfj5hOxOH7h/OGXrmPiAPc8+IQgI49prxC nwQOBs9ZPw8THGCXMHl2U+lmhj6MqjpHlP+pN38LLMo/JgPTo+XV6ENcgywqqvaIKJOj tuXD/Sfa7ex+NdxXRMH3MJxBUUNLcrBT9hAEixmHup1iI293Scpwrvr1J4OZHvxxtxly wJ+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=NifWNuIo; dkim=pass header.i=@codeaurora.org header.s=default header.b=NifWNuIo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f14-v6si6971638pgu.612.2018.04.30.16.57.31; Mon, 30 Apr 2018 16:57:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=NifWNuIo; dkim=pass header.i=@codeaurora.org header.s=default header.b=NifWNuIo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755667AbeD3X4n (ORCPT + 99 others); Mon, 30 Apr 2018 19:56:43 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:51094 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753530AbeD3X4m (ORCPT ); Mon, 30 Apr 2018 19:56:42 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id D354460310; Mon, 30 Apr 2018 23:56:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1525132601; bh=MwujjklUAQRSUrZ7chosku3Jg8eWnttiQUs14Lf8A4M=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=NifWNuIoceGyne7FNhtxMDGyQgEWUK0/8w+vaoGIWjhn0gEbNWXvF2F8QYkmoXWtg 5ITnhUziHFDbX5wi2EXvdlvn1vWYAXGKR88KMnGbNUeXAbDdeSa2FwpzSs9lW5B3ss m7YAFztQPu+plQG8PhC25h1AMCJlomJsjy9KKTgc= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 2A7CB60F74; Mon, 30 Apr 2018 23:56:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1525132601; bh=MwujjklUAQRSUrZ7chosku3Jg8eWnttiQUs14Lf8A4M=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=NifWNuIoceGyne7FNhtxMDGyQgEWUK0/8w+vaoGIWjhn0gEbNWXvF2F8QYkmoXWtg 5ITnhUziHFDbX5wi2EXvdlvn1vWYAXGKR88KMnGbNUeXAbDdeSa2FwpzSs9lW5B3ss m7YAFztQPu+plQG8PhC25h1AMCJlomJsjy9KKTgc= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 01 May 2018 05:26:41 +0530 From: Sriram R To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Vasanthakumar Thiagarajan , Kalle Valo Subject: Re: [PATCH 4.4 44/44] ath10k: fix rfc1042 header retrieval in QCA4019 with eth decap mode In-Reply-To: <20180430190948.085407552@linuxfoundation.org> References: <20180430190946.093694747@linuxfoundation.org> <20180430190948.085407552@linuxfoundation.org> Message-ID: <454d05a202b8f44728e2660e3d6f95c2@codeaurora.org> X-Sender: srirrama@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-05-01 00:54, Greg Kroah-Hartman wrote: > 4.4-stable review patch. If anyone has any objections, please let me > know. Hi Greg, This is a dependency patch to the actual fix , [PATCH 2/2 - linux-stable-4.4] ath10k: rebuild crypto header in rx data frames. We would like both these patches to be upstreamed to 4.4 together. As mentioned in cover, These patches depends on 3 other mac80211 patches so the below mac80211 commits needs to be picked first in the same order and then apply this patchset. f980ebc058c2 : mac80211: allow not sending MIC up from driver for HW crypto f631a77ba920 : mac80211: allow same PN for AMSDU sub-frames cef0acd4d7d4 : mac80211: Add RX flag to indicate ICV stripped These patches should be applied in that order(commit f980ebc058c2 first) and they should apply cleanly with --3-way merge. Kindly revert if you face any issues. Thanks, Sriram.R > > ------------------ > > From: Vasanthakumar Thiagarajan > > commit 2f38c3c01de945234d23dd163e3528ccb413066d upstream. > > Chipset from QCA99X0 onwards (QCA99X0, QCA9984, QCA4019 & future) > rx_hdr_status is not padded to align in 4-byte boundary. Define a > new hw_params field to handle different alignment behaviour between > different hw. This patch fixes improper retrieval of rfc1042 header > with QCA4019. This patch along with "ath10k: Properly remove padding > from the start of rx payload" will fix traffic failure in ethernet > decap mode for QCA4019. > > Signed-off-by: Vasanthakumar Thiagarajan > Signed-off-by: Kalle Valo > Signed-off-by: Sriram R > Signed-off-by: Greg Kroah-Hartman > --- > drivers/net/wireless/ath/ath10k/core.c | 8 ++++++++ > drivers/net/wireless/ath/ath10k/core.h | 4 ++++ > 2 files changed, 12 insertions(+) > > --- a/drivers/net/wireless/ath/ath10k/core.c > +++ b/drivers/net/wireless/ath/ath10k/core.c > @@ -67,6 +67,7 @@ static const struct ath10k_hw_params ath > .board_size = QCA988X_BOARD_DATA_SZ, > .board_ext_size = QCA988X_BOARD_EXT_DATA_SZ, > }, > + .decap_align_bytes = 4, > }, > { > .id = QCA6174_HW_2_1_VERSION, > @@ -85,6 +86,7 @@ static const struct ath10k_hw_params ath > .board_size = QCA6174_BOARD_DATA_SZ, > .board_ext_size = QCA6174_BOARD_EXT_DATA_SZ, > }, > + .decap_align_bytes = 4, > }, > { > .id = QCA6174_HW_2_1_VERSION, > @@ -103,6 +105,7 @@ static const struct ath10k_hw_params ath > .board_size = QCA6174_BOARD_DATA_SZ, > .board_ext_size = QCA6174_BOARD_EXT_DATA_SZ, > }, > + .decap_align_bytes = 4, > }, > { > .id = QCA6174_HW_3_0_VERSION, > @@ -121,6 +124,7 @@ static const struct ath10k_hw_params ath > .board_size = QCA6174_BOARD_DATA_SZ, > .board_ext_size = QCA6174_BOARD_EXT_DATA_SZ, > }, > + .decap_align_bytes = 4, > }, > { > .id = QCA6174_HW_3_2_VERSION, > @@ -140,6 +144,7 @@ static const struct ath10k_hw_params ath > .board_size = QCA6174_BOARD_DATA_SZ, > .board_ext_size = QCA6174_BOARD_EXT_DATA_SZ, > }, > + .decap_align_bytes = 4, > }, > { > .id = QCA99X0_HW_2_0_DEV_VERSION, > @@ -159,6 +164,7 @@ static const struct ath10k_hw_params ath > .board_size = QCA99X0_BOARD_DATA_SZ, > .board_ext_size = QCA99X0_BOARD_EXT_DATA_SZ, > }, > + .decap_align_bytes = 1, > }, > { > .id = QCA9377_HW_1_0_DEV_VERSION, > @@ -177,6 +183,7 @@ static const struct ath10k_hw_params ath > .board_size = QCA9377_BOARD_DATA_SZ, > .board_ext_size = QCA9377_BOARD_EXT_DATA_SZ, > }, > + .decap_align_bytes = 4, > }, > { > .id = QCA9377_HW_1_1_DEV_VERSION, > @@ -195,6 +202,7 @@ static const struct ath10k_hw_params ath > .board_size = QCA9377_BOARD_DATA_SZ, > .board_ext_size = QCA9377_BOARD_EXT_DATA_SZ, > }, > + .decap_align_bytes = 4, > }, > }; > > --- a/drivers/net/wireless/ath/ath10k/core.h > +++ b/drivers/net/wireless/ath/ath10k/core.h > @@ -670,6 +670,10 @@ struct ath10k { > size_t board_size; > size_t board_ext_size; > } fw; > + > + /* Number of bytes used for alignment in rx_hdr_status */ > + int decap_align_bytes; > + > } hw_params; > > const struct firmware *board;