Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2328365rdb; Thu, 21 Sep 2023 15:41:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGciT+bQlF5EjMhbG8XW7J3i4eS403ZfjzRedrFkLGGt+eAO1iqfu6aMtDA13GzknlSZtgK X-Received: by 2002:a17:903:184:b0:1c5:61a6:7267 with SMTP id z4-20020a170903018400b001c561a67267mr6538983plg.29.1695336110674; Thu, 21 Sep 2023 15:41:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695336110; cv=none; d=google.com; s=arc-20160816; b=sYvHLdIRwQPbzx2xX2PnBNPSZox8Ffg07C8Knd72TYXmiHOXBu2W+Gh6Kt29D7KZKL 1Sv99/dntOzY5ei74K4aCQBsyiq2zDnxq0OdCnxIRoy0H/K9jDwIqJHNm+/jVFwQnY84 sZyc5rzS64eSqqahok21mqLsb1MygyOmZIAoWCN41MDX7BuGBVD2jAttnsJPsrfaexkF fOARA5QAbQP1QcHOTXHIOFhgNk+f38p3J72vwEpa+Ami8qVX36P2qd+2yvacM/tDJPfv uYlgpFrYJGaJmK4kGBoeJFSlxi04StflBufpzBmNWOljdxpz4UaYRxkOCArGdePBkYHH 29+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=xxyLg2PStbvY6HkVtenr93FmcfmtGwWRzU5ToWUqwHE=; fh=2UGyKc87B52f7sIwEYl9g+SBtVnXUiLMuSlEko54uMQ=; b=MhSOag0Si9GzbwP0ai2rANqKEedcmQ/AGrGBnm7AI2y2SZXttI76sSHHhhpk/wB0Mo hkjkMsirnkp24s/LKMjM9y2ceWm2iwdn19DS2dm4gzBMovzC4q9UDRFQ6pvveiYAt2Ip RjCKfhzNPGg1+OpuFlyr9v7qXd5L4eIa/NH/Z/IGyX6ePnIA7siNd0zFTgIQ8YAaH8xU 2SR5dGN9j2baLNY8Grw7QVBWxtn+kscfiwgRq9N3dsjQL9dtR+HYHc2/yuALEhQGBkwe XIX/4lClgc4GaFR8GWvF5SI6nfh1gFQ/QUrknl4egt+FE3IskntDDjPQ4VYXVe0n0rDb wDPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Yrfq946h; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id a9-20020a170902ee8900b001bba879700fsi2299377pld.514.2023.09.21.15.41.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 15:41:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Yrfq946h; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 12C418087B64; Thu, 21 Sep 2023 13:46:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232334AbjIUUqW (ORCPT + 56 others); Thu, 21 Sep 2023 16:46:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232122AbjIUUqO (ORCPT ); Thu, 21 Sep 2023 16:46:14 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C08780FA2 for ; Thu, 21 Sep 2023 10:36:55 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42C98C116A9; Thu, 21 Sep 2023 08:02:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695283376; bh=IOdNZNubT9aIKkrAuzJC/mLMct1EI8QHVI/pL/hli6Q=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=Yrfq946hPwnkGTVSaqo00WtrSsQR6WYrjwOYpxTcuW55WmhTsfyf2usR/CG1c2g8z g5u55R+5BWMI33pC1C3rRf4lIb/h+RWUSotdn+Ac9L20pMNEEujkXFLHaA/3IldEMS AXet4R2lDMMejOt6LrAK6LU1jyT7QbryeFri3UsnOObWMUwl0YCgAPMrNLqaZFuy6q To1gNw0nn5VXYqCXVemoLwIiUDZoxKbHCeQOEbnzhN60IVRz/45zhqSaTlBsZc525Y fn+1YfBXtHSRFIYIoAtSkfRKhX/eMWBxSLI5EnevQHBFYPeKNf7R5olAr5BhAvAvw7 3p8fdfccf40PA== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] wifi: ath12k: fix DMA unmap warning on NULL DMA address From: Kalle Valo In-Reply-To: <20230830021131.5610-1-quic_bqiang@quicinc.com> References: <20230830021131.5610-1-quic_bqiang@quicinc.com> To: Baochen Qiang Cc: , User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <169528337320.1539628.12793449694122971146.kvalo@kernel.org> Date: Thu, 21 Sep 2023 08:02:55 +0000 (UTC) X-Spam-Status: No, score=-0.1 required=5.0 tests=DATE_IN_PAST_06_12, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 21 Sep 2023 13:46:36 -0700 (PDT) Baochen Qiang wrote: > In ath12k_dp_tx(), if we reach fail_dma_unmap due to some errors, > current code does DMA unmap unconditionally on skb_cb->paddr_ext_desc. > However, skb_cb->paddr_ext_desc may be NULL and thus we get below > warning: > > kernel: [ 8887.076212] WARNING: CPU: 3 PID: 0 at drivers/iommu/dma-iommu.c:1077 iommu_dma_unmap_page+0x79/0x90 > > Fix it by checking skb_cb->paddr_ext_desc before unmap it. > > Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4 > > Fixes: d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices") > Signed-off-by: Baochen Qiang > Acked-by: Jeff Johnson > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 9ae8c496d211 wifi: ath12k: fix DMA unmap warning on NULL DMA address -- https://patchwork.kernel.org/project/linux-wireless/patch/20230830021131.5610-1-quic_bqiang@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches