Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2920107pxb; Mon, 16 Nov 2020 00:10:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJyJJzSoqWwTzpjVUGlKNxcOX0c61FuV+Q+ORfpIjJV+bbYFkpdu4K/carpKczs2krmwIMiA X-Received: by 2002:a17:906:22c7:: with SMTP id q7mr13943208eja.291.1605514206637; Mon, 16 Nov 2020 00:10:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605514206; cv=none; d=google.com; s=arc-20160816; b=wSFLPy7uSghmN0JyuTrysc4dVgEQrJu7CEUuGdXODd/rCE/ogV9mbRZ/ExDtnDigew pm+/bwPQQSsTauRX+IN+MnwWMOTfsvxTUNm8O7tIxV0YqoC85C5zXT/9fmODj2l1xQ6s 5+uK5UVuWPVPZVO5VY5Rym0aNhKP5Ok+KL1O8ZIBbkaMmxgOUChIpnnSMIiC887YmN4e a/MWMue/+nBZvJt4gRD+Kt4xn5hcBq+K1S9NlYi33FtzwRWUd9rqLpDEPeE1bGyixUCI HPanzZSIUwzzcZ711FYS1F8RkN3xQjEwfkqaoc/WtkzrUEVT+W/JJgURNrMQrBc+kn3w bhgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from:dmarc-filter :sender:dkim-signature; bh=u6xdVyUnWww5n032XPYEnkKGe5sQMXEPv/UCi8U/qjI=; b=JDRD2J+xZrPP0NpREnvf/Yz4RWufAw/1/PGdQ/8WtSnWBlwOxlCvRSIyBwkZjDk9TV MpH4rVYWXcMZ0BfmhtEeJzi3ybO+uLPcmhCMOsPXLhxhBtKndyZaKpPzF84ecvLt9C40 xNB9J2ZHbZ01XGpLZT2WSacfmkha7HpMrqF2Cwt2KCx4wteZ3gJ18EyXDEbKuh2CPjUC 1e98xw6wRiVR1t7oYGMAtkg69N+pPzAfVdekSXzeHDogj21gEZxTY9yEh3FFvPKLSEx4 i4MyL5dnSAoFmD//MvYNFhs/QBwyHPX6GhfOOye8b4czVVQ2T3LejNxLgmwPkbriIHtf kNYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=WrF9VByr; 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 d20si11521422edr.435.2020.11.16.00.09.43; Mon, 16 Nov 2020 00:10:06 -0800 (PST) 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=pass header.i=@mg.codeaurora.org header.s=smtp header.b=WrF9VByr; 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 S1727976AbgKPIJN (ORCPT + 99 others); Mon, 16 Nov 2020 03:09:13 -0500 Received: from z5.mailgun.us ([104.130.96.5]:11848 "EHLO z5.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727376AbgKPIJN (ORCPT ); Mon, 16 Nov 2020 03:09:13 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1605514153; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=u6xdVyUnWww5n032XPYEnkKGe5sQMXEPv/UCi8U/qjI=; b=WrF9VByrQQqgRWFzAoJAU+2h5/oTCsrLbt37PwzolLZKuUSEPOFARwrOp9CYB0PIEXH8EYl0 VSXLgPtMqvrYxfhZKBgyZgEMp24zmuUWfI3qN6fzZk618PLKY5SYVJ6MW6vhMbhfu0LsnYkM wGCHGfTYrIaYOaLQ80K6VgCLsCk= X-Mailgun-Sending-Ip: 104.130.96.5 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-n06.prod.us-east-1.postgun.com with SMTP id 5fb233a8135ce186e910a9d3 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 16 Nov 2020 08:09:12 GMT Sender: mkenna=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 16873C43461; Mon, 16 Nov 2020 08:09:12 +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,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from ssreeela-linux.qualcomm.com (blr-c-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mkenna) by smtp.codeaurora.org (Postfix) with ESMTPSA id 49A2DC433ED; Mon, 16 Nov 2020 08:09:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 49A2DC433ED Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=mkenna@codeaurora.org From: Maharaja Kennadyrajan To: ath11k@lists.infradead.org, linux-wireless@vger.kernel.org Cc: Maharaja Kennadyrajan Subject: [PATCH v3 0/3] ath11k: vdev and peer delete synchronization with firmware Date: Mon, 16 Nov 2020 13:39:00 +0530 Message-Id: <1605514143-17652-1-git-send-email-mkenna@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org When add an interface immediately after removing the interface, vdev deletion in firmware might not have been completed. add vdev_delete_resp_event and wait_event_timeout to synchronize with firmware. Peer creation in firmware fails if last peer deletion is still in progress, add wait for the event after deleting every peer from host driver to synchronize with firmware. 1) add vdev delete resp event and wait event to get ack from firmware 2) add wait event timeout for peer delete to get ack from firmware 3) code clean up and replace the api 'ath11k_mac_get_ar_vdev_stop_status' with 'ath11k_mac_get_ar_by_vdev_id' V3: Rebased on latest ath.git TOT & added correct version name in the subject name in the patches. V2: Rebased on latest ath.git TOT - Addressed Kalle's comment. Ritesh Singh (3): ath11k: vdev delete synchronization with firmware ath11k: peer delete synchronization with firmware ath11k: remove "ath11k_mac_get_ar_vdev_stop_status" references drivers/net/wireless/ath/ath11k/core.c | 2 + drivers/net/wireless/ath/ath11k/core.h | 9 ++-- drivers/net/wireless/ath/ath11k/mac.c | 82 ++++++++++++++++------------------ drivers/net/wireless/ath/ath11k/mac.h | 2 - drivers/net/wireless/ath/ath11k/peer.c | 44 ++++++++++++++++-- drivers/net/wireless/ath/ath11k/peer.h | 2 + drivers/net/wireless/ath/ath11k/wmi.c | 81 ++++++++++++++++++++++++++++++--- drivers/net/wireless/ath/ath11k/wmi.h | 4 ++ 8 files changed, 166 insertions(+), 60 deletions(-) -- 2.7.4