Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6001788ybe; Tue, 17 Sep 2019 17:51:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqwb5mQ88BilAZETVz2sUlrZl8KixAecvDGbLVWozTvrw4elpWO27TUEcU5YZJUPX9wjNNuq X-Received: by 2002:a50:b6c8:: with SMTP id f8mr7715903ede.33.1568767870882; Tue, 17 Sep 2019 17:51:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568767870; cv=none; d=google.com; s=arc-20160816; b=oumpOA0cvQLCCmaOd9FpeYOgKeAGNph9d3o9N4DmLSd1jK40WZt+qao/Rc70/OGV7d 05ETNvhMXkzA0MJigUNLDx9fEG7oUU2/unuFp2R+DPlCUViYWuKo534m4J6MrryXNTDi VqU4kADKtM5eUaLZawfr9F2d70lqgbDeC/q87ojz98Tcbc7GooZOk4N/uhQqxwziowYd eJ0Jk06T8giD4HWc/DVjyoPorDPtUJjFSjm77hwbIMDX+MopUcIjg15I7hgZhKUbtJZF E5kT1GNqg2n2UbVtJm4REpS+ogEw5/Ix+VQGVf3oOLgwYoAS/7AWrwfB39BfJd3QBlLw H+lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=9+Nb43vvEahh6EgYk9/NpOfIE7vJR686QGgI/gaAQh8=; b=rDNMQdVJbWm7lfLH6GEOApXWxgTMbL+gdCfUljqSYDCO2znWZVEfXlRfC2fAad3cM+ AxXkQ1TiJTXzYO7DhUDGuCd2b82XqXK+CLruE9rexVIyInGnAtUYpbdtBhwJXeeGthe/ VptRRu9f9Gm6QvgQWO+CbLGhlRBZKC9eapTb2PgAqA7UYcg1X+/YYv3GRodQlaKOw8+w NuiTvSdxT3HOWmsM9u9GDGusoBIPGtv83GywrapNo4AwtMOgV4qVct8fYWzC0TgZh8To ZsL7dMtWIWLXhnOuLGuwWQI1oqODOnUwUD+pWLhD+D0bLbH6i3LsNDplwGAUZuLLrDbs HEew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=QscSjGbI; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e7si2262096edn.267.2019.09.17.17.50.47; Tue, 17 Sep 2019 17:51:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-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=@chromium.org header.s=google header.b=QscSjGbI; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726081AbfIRAmP (ORCPT + 99 others); Tue, 17 Sep 2019 20:42:15 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:42817 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725866AbfIRAmO (ORCPT ); Tue, 17 Sep 2019 20:42:14 -0400 Received: by mail-lj1-f194.google.com with SMTP id y23so5367083lje.9 for ; Tue, 17 Sep 2019 17:42:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9+Nb43vvEahh6EgYk9/NpOfIE7vJR686QGgI/gaAQh8=; b=QscSjGbI2WTdumUGXP/dz+OvEKtR2EMWBlMNR8DIIx3pdw7EMYqsYUfCI1yudvmZzB Gud8V5hB+OWr3DL/NyNh+RTizp3H10oD/ASWS5aIPkm26xg3vh/pjNgevqaTSsj1kK6a nl3vlGCTtz98VhpPEYEKpsj1Yr/VtMrRGRuvU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9+Nb43vvEahh6EgYk9/NpOfIE7vJR686QGgI/gaAQh8=; b=osTbG0vkpXMe8xARAB+6GSXxDeTHYeoVhp20jHfRm7uRz68EtXhlHpgNVZMdiIHxRb YBK4PvDB+kFvWQv3Fvd5TKcHWsG/oiTcwasis125azevJPtrZ/Zc6xu+2cz3s6LCykaH RnVaoRNsH3Jhso9fCoPQEtynORMG/Qfwwg4RXNFYUHnuthuHkGs0l32S8fL0jLEGEfaN Tyi9JOFKMgZqdcMKuFnsCn8TCXWQrRL28qMILdcQ8fTH+LsTPXV/hPZJE0mZKiLKNxxS 5Kn522JfWzKxtsondKuJlbdMEIuTI2H4IrcELYw7/VnHQ0OnOBLEHvuWFJIIi0VltZuZ c77w== X-Gm-Message-State: APjAAAXCft8Nyi7OJrbB3rWvj8tpovktRWRSBsa16eaP+F1vRH46O4fY 1sf4YQqHs7D+9MiCHuuvq9NOm7Af5no= X-Received: by 2002:a2e:89ce:: with SMTP id c14mr548283ljk.145.1568767332532; Tue, 17 Sep 2019 17:42:12 -0700 (PDT) Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com. [209.85.208.174]) by smtp.gmail.com with ESMTPSA id m17sm855828lje.0.2019.09.17.17.42.11 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Sep 2019 17:42:11 -0700 (PDT) Received: by mail-lj1-f174.google.com with SMTP id v24so5422030ljj.3 for ; Tue, 17 Sep 2019 17:42:11 -0700 (PDT) X-Received: by 2002:a2e:95cf:: with SMTP id y15mr547070ljh.27.1568767331232; Tue, 17 Sep 2019 17:42:11 -0700 (PDT) MIME-Version: 1.0 References: <1568617425-28062-1-git-send-email-yhchuang@realtek.com> <1568617425-28062-6-git-send-email-yhchuang@realtek.com> In-Reply-To: <1568617425-28062-6-git-send-email-yhchuang@realtek.com> From: Brian Norris Date: Tue, 17 Sep 2019 17:41:59 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 05/15] rtw88: pci: release tx skbs DMAed when stop To: Tony Chuang Cc: Kalle Valo , linux-wireless Content-Type: text/plain; charset="UTF-8" Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org May be a dumb question but: On Mon, Sep 16, 2019 at 12:03 AM wrote: > > From: Yan-Hsuan Chuang > > Interrupt is disabled to stop PCI, which means the skbs > queued for each TX ring will not be released via DMA > interrupt. In what cases do you hit this? I think you do this when entering PS mode, no? But then, see below. > To avoid those skbs remained being left in > the skb queue until PCI has been removed, driver needs > to release skbs by itself. Doesn't that also mean your dropping these packets? Shouldn't you be delaying PS transitions until you've finished TX'ing? Brian