Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp945921pxk; Thu, 17 Sep 2020 22:36:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydjHEBzEu/IDNAMHKvRp0i/bt8FzlGbItZPqyK0vKa269Nuta5zivCkFWRQXuLfCtNfzMN X-Received: by 2002:a05:6402:144c:: with SMTP id d12mr37511262edx.168.1600407393723; Thu, 17 Sep 2020 22:36:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600407393; cv=none; d=google.com; s=arc-20160816; b=OJPYc8Dha4We4bdSIWpK3eOfQO1VLhC/3AqTlR0Q2+FF71k8+VsY2JMHUyvX3UzdW8 MgMVlpYb16LRTf/ghKuaxk8+3CCgw+0kTWvv/1KnAO2fUaQOFnnBkcQLl8Lh/BYXTDBt JkUVbl87cSCxKy3sYK8PgaU4KiZyCFTvnSwl+3yERygh1eerUFLCCpEI4KReCEVSBtkI eE1iZ70+KU9vYLJY0NKSlsvTmRbGA853WCY6ZNK/SYGdib+vFIpn/5TA4lrxxD4SQ1kb oBc8EHQNMTMFjtD2AJ4Iziy2TCaiVHBgNRXNo5/RhAwcygPRgPEi7CAstiFoIQgb8JMi TATg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=M4SDyJ75TFmnEQGMpgJmgq4W7RJex8ma/ukZasyB2g0=; b=KqSU1fMEwumoHzM0Kc1xkZdpxS8XcB4+M65/etLUlTKJu0EGKP28iQ2v8n6inqoqxN jOS0NKDQQLlBMBjnGzKFPTNJON3QWQW3x5bI5LKlZWp7RU9kWo+9OmLyrM/+a+ZXp6uB alpftZruneqM+b02Ik5DUc3RolpFVHV5J/jPkAUO9ArD3JmFCB1kjHsc1+6fnTdgF0j9 Ltg7c53e6qaqpKQhp5vT5PMa3JMcDvGWpPLIy9sF9jlinoLMwSG+04k+ol2vv/YJzs5I L/oLFDWtaJ6nRc7fNLspO3aN7EDvzEqF2jqA6jluERzK0Cz1vI9QTH9DS3UVjCXjD9U7 EJiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=IKfdfzwI; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nu21si1421813ejb.96.2020.09.17.22.35.56; Thu, 17 Sep 2020 22:36:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=IKfdfzwI; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726514AbgIRFeD (ORCPT + 99 others); Fri, 18 Sep 2020 01:34:03 -0400 Received: from mail29.static.mailgun.info ([104.130.122.29]:64516 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726502AbgIRFeC (ORCPT ); Fri, 18 Sep 2020 01:34:02 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1600407242; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=M4SDyJ75TFmnEQGMpgJmgq4W7RJex8ma/ukZasyB2g0=; b=IKfdfzwIueREIjzgJ7eyjLFCM8MnGcQRDPHuxgbw57e0xt29NqNdnGzkTR2LRCVHlpgX0qe2 z28He7J7KJ4uzha9OOm3XiB29Pswu1IBmxWiKbdaBFM3qQcl75VpJG9bKrCXgjBCx6hxwXGG uDm5X3+97tnpXGtAlD1GT7nTwJc= X-Mailgun-Sending-Ip: 104.130.122.29 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n02.prod.us-west-2.postgun.com with SMTP id 5f6446c9c4180d293b885e01 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 18 Sep 2020 05:34:01 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id B3623C433FE; Fri, 18 Sep 2020 05:34:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: vnaralas) by smtp.codeaurora.org (Postfix) with ESMTPSA id 181BBC433CA; Fri, 18 Sep 2020 05:34:01 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 18 Sep 2020 11:04:01 +0530 From: vnaralas@codeaurora.org To: Kalle Valo Cc: ath11k@lists.infradead.org, Manikanta Pubbisetty , linux-wireless@vger.kernel.org Subject: Re: [PATCHv2] ath11k: add raw mode and software crypto support In-Reply-To: <871rj0h1oh.fsf@codeaurora.org> References: <010101746c6a54fa-91406158-3f0a-4f10-8328-a7f560dd3feb-000000@us-west-2.amazonses.com> <871rj0h1oh.fsf@codeaurora.org> Message-ID: <51bbe58e337427f5238a757d8c2c6ee1@codeaurora.org> X-Sender: vnaralas@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2020-09-17 20:48, Kalle Valo wrote: > Venkateswara Naralasetty writes: > >> Adding raw mode tx/rx support. Also, adding support >> for software crypto which depends on raw mode. >> >> To enable raw mode tx/rx: >> insmod ath11k.ko frame_mode=0 >> >> To enable software crypto: >> insmod ath11k.ko crypto_mode=1 >> >> These modes could be helpful in debugging crypto related issues. >> >> Tested-on: IPQ8074 WLAN.HK.2.1.0.1-01228-QCAHKSWPL_SILICONZ-1 >> >> Signed-off-by: Manikanta Pubbisetty >> Signed-off-by: Venkateswara Naralasetty > > [...] > >> --- a/drivers/net/wireless/ath/ath11k/wmi.c >> +++ b/drivers/net/wireless/ath/ath11k/wmi.c >> @@ -3366,6 +3366,10 @@ int ath11k_wmi_cmd_init(struct ath11k_base *ab) >> config.rx_timeout_pri[2] = TARGET_RX_TIMEOUT_LO_PRI; >> config.rx_timeout_pri[3] = TARGET_RX_TIMEOUT_HI_PRI; >> config.rx_decap_mode = TARGET_DECAP_MODE_NATIVE_WIFI; >> + >> + if (test_bit(ATH11K_FLAG_RAW_MODE, &ab->dev_flags)) >> + config.rx_decap_mode = TARGET_DECAP_MODE_RAW; > > Did you test this at all? Because to me it looks like in > ath11k_init_wmi_config_ipq8074() this is overwritten with: > > config->rx_decap_mode = TARGET_DECAP_MODE_NATIVE_WIFI; > > So I can't see how this would even work. I noticed this while I was > cleaning up ath11k_wmi_cmd_init(). I'll send a patch soon, please test > that and let me know if it works. My bad it seems my tree is bit older, sorry for the confusion. Also I noticed, .wmi_init_config of ipq8074_ops is registered with " ath11k_init_wmi_config_qca6390()" Is that correct? If that is correct, then I don't see ath11k_init_wmi_config_ipq8074() is called from any other place. I will send one patch to fix this issue. Please correct me if I am wrong.