Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp160570pxb; Wed, 11 Nov 2020 23:45:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJwZ9jS0WqXIjCub6CbAQQH0rxMfmm37C1sqU4bgCQoWil4k26r/psbl2FH98NarLr5Y8AHI X-Received: by 2002:a05:6402:14cf:: with SMTP id f15mr3767682edx.18.1605167130914; Wed, 11 Nov 2020 23:45:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605167130; cv=none; d=google.com; s=arc-20160816; b=HBfU7mp1EqFfI67S+zANynLgijvlgF+QT2nJIjAveLS3c0YsPSavIvemLW321+TFkl LeOguB9XwvWbcf0QJS2Lpi1CZn7P/mIbfEMa2gpy9H51/OeF1k+LLS+Op9obVModa6So 2zGLgvSHa7fnQDC9CvfmKH2NxIclnIbuWCGhxH5WrD9txo/S/r47pg5xFCipqpQcF1MA d9EAibv/AkyCZSKeAJLmKrou6tAQ6GMgDOCV7b7/Emj0D1khvcSvbYBifzMZxjTO8zs7 T0UYZcIpneR0uN0WnaNopOZHBUAXJZOF8hlMw/+OJQQ+HwBONtmNLGWJws7cuneY9m4s ubQg== 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=e0+tPyIMi8LorsVhRa4s9WlRbsd8PnxPsrl8tF6MYLY=; b=VBom0WDwau63zYD7b/N9B9kOog2ojg7n+WMfGOYykTyDv/89caUcdE5k2maDEqpCb3 oqhuxxbr6l15/FAJcY6+ZGEbu1EKdvIemJhPBCKFubK52NEK8v9Jh+1ilRRcDRiiP8WU hB3dZhIkdT/w3fP2jKrzLLf/iUuAWOD/C+5OMOlyKJE1fwtsRJ9UP/tdebbi0KfmfFUr m+UStitRdn9W8eTQZiyvvVfLTolaX4HvjCHCa/vpPmYbbkMzT/J8wb0JIo0HmtnkFdpU G2TAZT8sTSP4Yw0dVbcYhex4mIEWBOjcL+H0lpmqz+nGIgPgSG+wnd5IK0DSDlqTgfXI ebDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="U/S7xXq7"; 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 u6si3538980edq.475.2020.11.11.23.45.06; Wed, 11 Nov 2020 23:45:30 -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="U/S7xXq7"; 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 S1726066AbgKLHnO (ORCPT + 99 others); Thu, 12 Nov 2020 02:43:14 -0500 Received: from m42-4.mailgun.net ([69.72.42.4]:63314 "EHLO m42-4.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725860AbgKLHnO (ORCPT ); Thu, 12 Nov 2020 02:43:14 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1605166993; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=e0+tPyIMi8LorsVhRa4s9WlRbsd8PnxPsrl8tF6MYLY=; b=U/S7xXq7Vo0LficEaPTy1J7r1Gx/+213Wf0W8ew3Zg/cWBFSvImLBdPZbKm7XLmJ2flQAxUj nOVNlJRwBBvmvgd5jaDEoSDklGz/QbfDeW2JGOVvI6wQKWR/8ylM1rnOmyh4mTPubjSjLimh E4oiL7JuA1vZtN38L+04+JGsx4k= X-Mailgun-Sending-Ip: 69.72.42.4 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-n03.prod.us-west-2.postgun.com with SMTP id 5face791e9dd187f53cea477 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 12 Nov 2020 07:43:13 GMT Sender: mkenna=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 4A4F2C433CB; Thu, 12 Nov 2020 07:43:13 +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 93074C433C6; Thu, 12 Nov 2020 07:43:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 93074C433C6 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 v2 0/3] ath11k: vdev and peer delete synchronization with firmware Date: Thu, 12 Nov 2020 13:12:57 +0530 Message-Id: <1605166980-29115-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' 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