Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1728026ybt; Mon, 15 Jun 2020 07:58:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoqILTRppot3hjiSwKzwnPLHKmE1Udq9jQWe0mGyXjR5NoIIRP3HVBj3G4vXkBFKIfvJIW X-Received: by 2002:a17:906:edd8:: with SMTP id sb24mr25298936ejb.25.1592233109890; Mon, 15 Jun 2020 07:58:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592233109; cv=none; d=google.com; s=arc-20160816; b=YCJaTr7ZbJpQA7FMT020wBqJr1JGeE/ufd733iMRKj6ihx1I2/Ag8PmlrrsyRjcXu+ ujrY5pZ3OEyO5sTZIauC1FjgIRkk/SYMUnqazsvuvdx3ZWqwOjk9IKIWM7c35r6bVbVV x8fFkHGpF/Ph2QQuK+zJx7jkpCFuaEJipwA75yL1vsdvloTQsYO06vT7r/Z5nAsQLEHh a7pHBqiMEjcxdk4dBEeJ6Ldj0iTtzoD6aQkV6fjGQ7pmSJD9YOoqeM3+8pr5DhDIESZ5 /NQELJDKIhk7cXgSJeAQ1GJJS/R2aL1zZQFPIKgcZ2/jekRQGo+uSzWyDtUDEhBLDtxZ FwpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:dmarc-filter :dkim-signature; bh=RTqnmaAhKbyyX5m1MHI2x1eM5OG8zLQJxTp6BIGwfIk=; b=BVxuBjgc8SnvYcE4WV0r/PjUSu/0Gzjl/36b9G1UyTpnKpva1t/eudg7nZqxSRyHRE /Yvyb/NfrG9PRI1TkQwBzonuIpKkMtJnm4yVHMdKAeOT9L1mPSIbcPx0yAkYcstW/kno mejTi1cxYWrl/WO2HuZzeA9nbLBkoUOEcXB40SpqVSjnXC6ouZvSKOGpOKr43ehyILeL jMJmYLNo0KJs+fe+1fbTL9lkAGax01xJ9wJrL3hznzyL2VP4bDrJaEUUMYH+sPl3wyxJ 5VCp/Df0qmO0hNxUCwXfUBoxLdITNaYWhPHr0mGvHI7FQyBmS5hK55hNDdGkPCG/WACc ACcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b="ffNKK/c6"; 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 p6si8812032ejb.575.2020.06.15.07.58.05; Mon, 15 Jun 2020 07:58:29 -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="ffNKK/c6"; 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 S1730789AbgFOO4f (ORCPT + 99 others); Mon, 15 Jun 2020 10:56:35 -0400 Received: from mail27.static.mailgun.info ([104.130.122.27]:11722 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730784AbgFOO4e (ORCPT ); Mon, 15 Jun 2020 10:56:34 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1592232994; h=Content-Type: MIME-Version: Message-ID: In-Reply-To: Date: References: Subject: Cc: To: From: Sender; bh=RTqnmaAhKbyyX5m1MHI2x1eM5OG8zLQJxTp6BIGwfIk=; b=ffNKK/c64j1GQNR54vNuyufjjpx7JOMxPH3L+B+wmGecBfIVxfatxXH3nf2rioJbrnpPcfdJ 0dyYxHiQbKbi7YgZiFSkvUnI6471MQgE3BunsrkSglnSyGkHd+CLAtOaeihDRBrQwZNxYewJ +NPn5qd8hM+W8U5nF1HGnZvEeHE= X-Mailgun-Sending-Ip: 104.130.122.27 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 5ee78c183a8a8b20b8539e92 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 15 Jun 2020 14:56:24 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id E58F7C433C8; Mon, 15 Jun 2020 14:56:23 +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=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=ham autolearn_force=no version=3.4.0 Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id EB0F6C433CA; Mon, 15 Jun 2020 14:56:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org EB0F6C433CA 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=none smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: Doug Anderson Cc: Sai Prakash Ranjan , linux-arm-msm , linux-wireless , LKML , ath10k@lists.infradead.org, Rakesh Pillai , netdev , Jakub Kicinski , "David S. Miller" , kuabhs@google.com Subject: Re: [PATCH] ath10k: Wait until copy complete is actually done before completing References: <20200609082015.1.Ife398994e5a0a6830e4d4a16306ef36e0144e7ba@changeid> <20200615143237.519F3C433C8@smtp.codeaurora.org> Date: Mon, 15 Jun 2020 17:56:19 +0300 In-Reply-To: (Doug Anderson's message of "Mon, 15 Jun 2020 07:39:33 -0700") Message-ID: <87zh94idik.fsf@codeaurora.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Doug Anderson writes: > On Mon, Jun 15, 2020 at 7:32 AM Kalle Valo wrote: >> >> Douglas Anderson wrote: >> >> > On wcn3990 we have "per_ce_irq = true". That makes the >> > ath10k_ce_interrupt_summary() function always return 0xfff. The >> > ath10k_ce_per_engine_service_any() function will see this and think >> > that _all_ copy engines have an interrupt. Without checking, the >> > ath10k_ce_per_engine_service() assumes that if it's called that the >> > "copy complete" (cc) interrupt fired. This combination seems bad. >> > >> > Let's add a check to make sure that the "copy complete" interrupt >> > actually fired in ath10k_ce_per_engine_service(). >> > >> > This might fix a hard-to-reproduce failure where it appears that the >> > copy complete handlers run before the copy is really complete. >> > Specifically a symptom was that we were seeing this on a Qualcomm >> > sc7180 board: >> > arm-smmu 15000000.iommu: Unhandled context fault: >> > fsr=0x402, iova=0x7fdd45780, fsynr=0x30003, cbfrsynra=0xc1, cb=10 >> > >> > Even on platforms that don't have wcn3990 this still seems like it >> > would be a sane thing to do. Specifically the current IRQ handler >> > comments indicate that there might be other misc interrupt sources >> > firing that need to be cleared. If one of those sources was the one >> > that caused the IRQ handler to be called it would also be important to >> > double-check that the interrupt we cared about actually fired. >> > >> > Signed-off-by: Douglas Anderson >> > Signed-off-by: Kalle Valo >> >> ath10k firmwares work very differently, on what hardware and firmware did you >> test this? I'll add that information to the commit log. > > I am running on a Qualcomm sc7180 SoC. Sorry, I was unclear, I meant the ath10k hardware :) I guess WCN3990 but what firmware version? -- https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches