Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2410556ioo; Sat, 28 May 2022 12:44:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxfih4Hl7HDZVP86L9UBz0ptduv6oWB8uTf0DWk1U0m7or/p4HwqIO5iKkB33gvIUeticC X-Received: by 2002:a17:902:d50a:b0:163:42bc:4889 with SMTP id b10-20020a170902d50a00b0016342bc4889mr21630024plg.17.1653767089712; Sat, 28 May 2022 12:44:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653767089; cv=none; d=google.com; s=arc-20160816; b=qZrnUsxmLuO92sx42o6quftNxhFIm1PY/Qjk3JQ747LyGcEKJhmEmhDtbLtllre55L tm8VKqkHUqFvEz0qNWcjsn+SfQabQUU8j1wlnKfo+wz/3h20RDFbGKtu1tm2pLvuAG9i LussuOBUQ2qkp0qyvnzF5MTyqHbZU8mW/SGZkck4xdf8ARtoPge+KAfRWCtyTdtzMtSz Rs1uV5fxQuZvStgtBlZkOUHREqQEuC89rYwnvnYT13H62SOF79ZYtlpPfpGhOpc3qA6V C7SrRaKrayzxjKraIuqOsXrzm749YIYAFqaekVnLZtHzp26OKTZREjV11fsusRyfRqXB 0Heg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=rhuLu/zc6OSTKdNFD0CtRWDuw0q1u1ps2N0Jk8WZLn8=; b=y9lfhINZcXxAzIi7U5IbzlX5E8xnKBkS5euPOgpg8CxRtLo7kWecfWqEPdYccXKZQw UK8nwG4HL5RkgQTG7ZRDuTewPmuB57ulzY4KQCGULe9auWRmR6veSNnUD+KNhbJ3Gd7w sPkFbgeaS/vavEn416wH4R/0fsodJctL2Ke2wA3X2DYq/0y4Okv/6KVezPDs46TlR/xz DKbKADUwDGxa/4KrsVVEtkaDt6XjACIiHunM86mK839fiuPi75EBfbOWLWkhSDpxpie2 R1Qd4t+3hnTdLim2azzFX/4qZyVqtisN8bSx3kUgWhSy/1dPedWWnfdTGF9YvJA/eno/ s/Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=i5OtqQLU; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l3-20020a170903244300b00154c1348e40si11300029pls.497.2022.05.28.12.44.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 12:44:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=i5OtqQLU; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 88A0C65D06; Sat, 28 May 2022 12:07:52 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236490AbiE1OZ6 (ORCPT + 67 others); Sat, 28 May 2022 10:25:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235857AbiE1OZz (ORCPT ); Sat, 28 May 2022 10:25:55 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E22861834B for ; Sat, 28 May 2022 07:25:53 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id ck4so13389355ejb.8 for ; Sat, 28 May 2022 07:25:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rhuLu/zc6OSTKdNFD0CtRWDuw0q1u1ps2N0Jk8WZLn8=; b=i5OtqQLUDHdTR+E/1nfw5rm0SWku8A2ArnSqQ5MjjVfEgdflXStu8Y5IxDokOjW33D QlrRLXuCgVl+2+6o3hbA6kEbWEuv2Qo+fAecaRwxgojMMJMLtgnm9o8pz4oNb6g3HKVt Uqt5UUwwT0IHLX0n6tNZZs+XyxWgwogTZfw1LwWFuVREg19Q/+OwuVRynsEl0BG2AKHS hmm1G8GupHgh3Pzu82gmDKH8xaetu1Vh/RGFPyu0F04baR9Zvq75I3MRDKj61TMPHVqE weffu4Glu1ZZ7hStiFx7/Ci6v9irO4LMJbUUyKIL/JdfB98VZ2tkz6uO6pzOjfBxtKZV i2oQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rhuLu/zc6OSTKdNFD0CtRWDuw0q1u1ps2N0Jk8WZLn8=; b=BFdYg4sPESx0RjmMHXc254j+toY9wGA4T2W/lmmYqlGXQojrkF6n91Aoll3F2540br blgD6YR6v5ArHFlL1IB1dIG9c78H78+WbUa7o/fAsNaAXQz6sVixcPRmAlGSdv9ccz2K WvheFZ5nj8YTC9xHUiIeUnsIvAVmBth+5VxVTPKz3k7dJoSBkLHkahCZrLmnYXZuHzp8 TZp89a2/NXG8OPDC0vQAAoOXfXXuMcR2Xnku1tRBFqRJ5VoIM57O6O6nCFOASr2NDutK Wd+WncSeXJGmObrdK9rqHM6y3/1BD/02eaZPXih3WSUyaVQnhtQNodHQv7OjbtpYwKNB qTZA== X-Gm-Message-State: AOAM533AHp8xHXl+xnTYLkzO2CtI3TLu0qdVDA5ziwx5xkQ4u4yiKNBt 8hiA/Y3n/eu2vsFQKAXZgBYjbmvEWaM= X-Received: by 2002:a17:907:162a:b0:6fe:c691:47f5 with SMTP id hb42-20020a170907162a00b006fec69147f5mr30975173ejc.289.1653747952236; Sat, 28 May 2022 07:25:52 -0700 (PDT) Received: from localhost.localdomain (93-42-70-190.ip85.fastwebnet.it. [93.42.70.190]) by smtp.googlemail.com with ESMTPSA id m3-20020a50d7c3000000b0042bc5e8f7fdsm3601915edj.16.2022.05.28.07.25.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 07:25:51 -0700 (PDT) From: Christian 'Ansuel' Marangi To: ath11k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Christian 'Ansuel' Marangi Subject: [PATCH 1/2] ath11k: fix missing srng_access_end in CE Date: Sat, 28 May 2022 16:25:15 +0200 Message-Id: <20220528142516.20819-1-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org When a CE completed send next operation is done, the srng access end is never called. Correctly end the srng access to make sure we have the correct values in the srng struct. Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.5.0.1-01208-QCAHKSWPL_SILICONZ-1 Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices") Signed-off-by: Christian 'Ansuel' Marangi --- drivers/net/wireless/ath/ath11k/ce.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/ath/ath11k/ce.c b/drivers/net/wireless/ath/ath11k/ce.c index c14c51f38709..665205d2322e 100644 --- a/drivers/net/wireless/ath/ath11k/ce.c +++ b/drivers/net/wireless/ath/ath11k/ce.c @@ -490,6 +490,8 @@ static struct sk_buff *ath11k_ce_completed_send_next(struct ath11k_ce_pipe *pipe pipe->src_ring->sw_index = sw_index; err_unlock: + ath11k_hal_srng_access_end(ab, srng); + spin_unlock_bh(&srng->lock); spin_unlock_bh(&ab->ce.ce_lock); -- 2.36.1