From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.41 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795992220; b=B3ya//XVo9MMyWPXqNodLKARRkITHAbyZ1nzy6iAkUVCLIs0Y0de+MNo9MFRjQXP415Q ER8LynXkVpWYuhQKCkL+YfgSPZs92OROv7Rc1N3W47I8IsPYssFuq6SE88X9n0TXaYd/U ZPpu9Ma70v1b3nhXa/NPkyCQWU1q+4x4NsiwGOpaBdFYaUaGPxvJLGCwHfBnbuLnKXXEW scZi+Ii5uaz/sfKK9oV6ggpwG/V0TDTTU45bWSYyW8qQLXLRCbdVjnbW/O3Q0CnD0N6V5 pPGx+GUFaukpXEi7sbvFZ+IEOIQ9xNb93I2BqE7XL+mxCn+K27/dhTXIg8WKlVBeBQA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795992220; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=N4vlZsXojWOt3f7yVvYwm/MdV6T8/VuwySW2pkqMon8=; b=zHY5NJcHDBNbD2gBlvvZnNFfbLJae1ghU2fYZA5Ti+wQU5LtiVJeun2iWOrlGSFhU/O+ GNqohN8z0TqNdW71WvDPPrn69HiyBqrmacTO6fJcLeyHw6FIz1Rpc0qJPTNsXhygCSA3o 3Le+/MZ879TtmgZz2PuWd+U+8yqeSmmLO6iY9q+/vxsAN5v/qU/jIkPsXPn0tcKIB3+ZW 8NS/bNQGRpnNL+a1p5Ezvxoy5QguuLAMKgrdAvyn7INk0JxAYTqvle3h82ckO3nXkqDiC 4mjiZ96L/kq3mSRfjnK6cUYyK9EfPLsEPz1V56pYaMjPSBb0MVDD6GP3YnSnn+FHvVA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=HneJnSwg; arc=none smtp.remote-ip=209.85.128.41 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C715E606A330 for ; Sun, 29 Nov 2026 22:43:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C715E606A330 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=HneJnSwg Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-4a35ac4475dso69514175e9.2 for ; Sun, 29 Nov 2026 14:43:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795992218; x=1796597018; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=N4vlZsXojWOt3f7yVvYwm/MdV6T8/VuwySW2pkqMon8=; b=HneJnSwg8eRC6jYCuesNw6ktrIy7oenVQ3ib/KWT0PFSaWLKKu6r7XOPqHfPbdX6+x biyVZr59GgRXN+hXrcLFU+rfGaJ6ojJnebiVs0QuZkoeppx236o2hWqdV3dlHPhLJc4M y9liAB6r0XUcCkngr5mFRF3A3wOg5mA0ANDn8E2QH2rQkXrSrEhIaEpUY7N09mA0YTSx PENWyd5A0HOOcz0RpxTa9mv+4BEL19INLdq10Q7Uze6F6w1b6VLiienw/QeRMqLri8hU 3n0uHA2107MRs065yPJEpr+zDVyGqj1hGlyp4pBiOeSJTDOPp232G/TmsUYaHtf2jrMw 3xMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795992218; x=1796597018; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=N4vlZsXojWOt3f7yVvYwm/MdV6T8/VuwySW2pkqMon8=; b=pEkF+7yKl6gcCpxFNm7nMdq8fp5oOD5wnGahD+KmShDFyRmX7UdXTTch4A/A/WvC0S tCWk/y3v+aIiLoDixwSU/ux//o8tJysAXmduoyIShkzkzCqcB4zGj4TFEKjophhB7RpE x1efuCWXK+vi5P1II1yzLwiMrGhijDx42JuxVUM4TpmyTLeWf7ZI0vhFbKyJ8/+3r2M+ s51WEqLo4RXnXGv/vp5FK9lBor7supdPdnOWNKwvd3E05VPwxq3R/cFDx06/TE6+InCm G0jezpotTcBmhy8U5MtWzcoprKqgw3/tUAJbPF0+pyMFjVaDAuW7BU8P6Vu+mpu1Na/B lECA== X-Gm-Message-State: APuU4Z/Kr7+0SB3WF4idcp7HpWg/hO1T0hZlLZjN9oylDZlI9P4an0NY ZofyZyddSKr/wo+9pHt5y6hrp4Vqy4f2Rclr54fbLqT0RLLVSTgEpgW/ X-Gm-Gg: AZFdTZd02NjWLDeJ7GFKpQ08Celh83VCB6ho9YP7GYlpK0sfY9Tkl+2ffBQV/412Yqk +O1RKuhn0eVMvsmi8UtzQyKogY2Iy9u8FhUuyTUKYqkxDqxAFWlWqWir2ADfjVcDcnWs6WynEK4 W8K0T8gk3xpIHKqSZri0qG945mK6f5WFCfLZz3plQkM+ISHZP5sajRaasTjSyP9LJ3EpZuqOMr1 BTZwgbqjm1e4maYD3OZVhK+OwQvOktyBRFMe0hsEkjDSta1Zz0NxE9tO+OOnu8o+DL+bD2riL5f 1hnIIc9vOvMa07D5qv09EqtsEspqgUvTgB5srg0JBYdlrDXBMGYQBpvP+09AOXm/MgF0ZfJL5me kx7cIuru2cnjgtAy76FM8BeqndMCZVDT5CX11Q8MHip0wo3QYTOaCJnD/blVicAqQqlZZD9Lacu KSkh+0dgcZ0AZ8YpixrIW1WaJFu6o6TUVK7nWBtle5tyyUxAduiCC+XIo2eVOZe3yT5Z0JXfh+9 M6E6VX/lvqp21moLoVN7tSU5d4GWzCPXH/j+y2mBiVhRXNz4fFeaGcIOxa+tL72Zgwl+R8Cjq08 +NZcalhwVnUlgF7yt71Fx6nyHxc0Icopf7ASPI92eg6dOmAgKDWlFqE8/5Ie/Q== X-Received: by 2002:a05:600d:6512:20b0:4bb:be79:27 with SMTP id 5b1f17b1804b1-4bbbe79013bmr67683575e9.29.1795992218208; Sun, 29 Nov 2026 14:43:38 -0800 (PST) Received: from unicorn.lan.internal ([2a0d:3341:b894:4600:8861:5ef2:57ea:3308]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb853a12acsm904782745e9.8.2026.11.29.14.43.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 14:43:37 -0800 (PST) From: Giuseppe Piscitelli To: ath11k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, jjohnson@kernel.org Subject: [PATCH ath-next 2/2] wifi: ath11k: dump TX data before DMA mapping Date: Sun, 29 Nov 2026 23:43:27 +0100 Message-ID: <20261129224327.744212-2-ooonea@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20261129224327.744212-1-ooonea@gmail.com> References: <20261129224327.744212-1-ooonea@gmail.com> X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The device can complete the descriptor once the ring head is published. Completion can release the skb before the late debug dump reads skb->data and skb->len. Dump the frame before mapping it for DMA, while the host still owns the buffer. OpenAI Codex helped trace skb ownership and verify the AArch64 build. Fixes: aa2092a9bab3 ("ath11k: add raw mode and software crypto support") Signed-off-by: Giuseppe Piscitelli --- diff --git a/drivers/net/wireless/ath/ath11k/dp_tx.c b/drivers/net/wireless/ath/ath11k/dp_tx.c --- a/drivers/net/wireless/ath/ath11k/dp_tx.c +++ b/drivers/net/wireless/ath/ath11k/dp_tx.c @@ -209,6 +209,9 @@ goto fail_remove_idr; } + ath11k_dbg_dump(ab, ATH11K_DBG_DP_TX, NULL, "dp tx msdu: ", + skb->data, skb->len); + ti.paddr = dma_map_single(ab->dev, skb->data, skb->len, DMA_TO_DEVICE); if (unlikely(dma_mapping_error(ab->dev, ti.paddr))) { atomic_inc(&ab->soc_stats.tx_err.misc_fail); @@ -262,9 +265,6 @@ ath11k_dp_shadow_start_timer(ab, tcl_ring, &dp->tx_ring_timer[ti.ring_id]); spin_unlock_bh(&tcl_ring->lock); - - ath11k_dbg_dump(ab, ATH11K_DBG_DP_TX, NULL, "dp tx msdu: ", - skb->data, skb->len); return 0;