Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp251872pxb; Mon, 13 Sep 2021 18:24:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnhDji1/nbUUzWPoJ57zk/qfvMnuc/JckepBKwoPU0H7wEoC4KuaaEUxtW7JMplTxWo/H0 X-Received: by 2002:a6b:8bcf:: with SMTP id n198mr11626248iod.178.1631582674177; Mon, 13 Sep 2021 18:24:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631582674; cv=none; d=google.com; s=arc-20160816; b=c8Wg8IDKJeogMzEDel2+Xy+2lHyWs1Sy0kKVhDbOfR1DS1/SZnFvnlktE4xZfuCXfu 6o5vfM8WmVspq+s8WE163UAHAHhDhsjmHZoIKdspa6oaVcgkOnMUtwU7iNIKa9w1MUKp DfnVJvuRf8A++7a+kDBkTr3OptNcaBhQXVJmMYWTxrfB6z6Zr4p2UR20CQtdFA9JX4Lb H5rpx5YOva4aYXNvA7U5vmJLoovITtpJ4jDYBuIRKgD/hC7F/1IoclqKrUMIGIphkJPB o/o4y9Kc0C3k8ek4uJWRuFNFbDwf2xN7QGXQZ22DveV+AdePV4cbAIvHjLfD57kdGKI7 msxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=aOPaxnI6A5tpQcqC0wbRk7yjfq4S2ZS3ZZKpgwCQYUE=; b=fVfaEo8qvDQDOU2AxeIK5hbEyBUFD+SM1R4Kv8afary1wi1N9BGZMTDoRXr+bdoUlP Y5ZXi658GXuUJHJ/nJK65xGnDXNx4d+NzhgICjYiCDQbi+ZdSa74ze1qyk/VuX/oo8U3 EbjBVRv+SNagHC0xFqvj1VdUSqP7pnE5BSzgu/NG05DAvC5ZVvFtYsvpurymNF/UgfUP PadRd5PqKeaJciMqKVCzB72McUXZOaMtf9JyzsF0DkqPc0dL0HKlQkDjoQ9JowR0mAaH hbcCyJXQVitrJq5WAF5QV7jlY1HScYcyAk9UfUcY8XKv2PF+DNJ8BmvZgBa/ppbi3/iI bjEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@eero.com header.s=google header.b=SBe4NwHK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=eero.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l3si7999497ioq.2.2021.09.13.18.24.22; Mon, 13 Sep 2021 18:24:34 -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=pass header.i=@eero.com header.s=google header.b=SBe4NwHK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=eero.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349934AbhIMWxp (ORCPT + 99 others); Mon, 13 Sep 2021 18:53:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349980AbhIMWxe (ORCPT ); Mon, 13 Sep 2021 18:53:34 -0400 Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5D6DC03BFEA for ; Mon, 13 Sep 2021 15:38:18 -0700 (PDT) Received: by mail-ot1-x336.google.com with SMTP id o16-20020a9d2210000000b0051b1e56c98fso15583735ota.8 for ; Mon, 13 Sep 2021 15:38:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eero.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=aOPaxnI6A5tpQcqC0wbRk7yjfq4S2ZS3ZZKpgwCQYUE=; b=SBe4NwHKCDPC9icGG5YGMhSLu3SzoKDnqmASyKfuqHsm5DvoIGpoTXds4Rw/IqEkBv ZtkRPzkrzxkdV4F1SBbsY72euSNbHMfB95ZH9xUnHXQKYW8CaxmCIXtitpr0R5LX7mwZ gvLUpSNdcnS6FIYV7qybQl1WfrSkG3ni36xN8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=aOPaxnI6A5tpQcqC0wbRk7yjfq4S2ZS3ZZKpgwCQYUE=; b=722MnCgG4NtwVlahvIc+rF3EqsElJqL0YhrbDmdg7LZM95fptsxN5S8DGqXp5aPwL4 t+5dcCAsHwK1WuBF5AKmY/7Yzd5oHMxPlK56SlY8NjRCxBIMplBxFOaUeHRrRcWFS7CO gvS9TRVSCuorlhPPQp3GMhlJmF2FK+aTqNyBWzd2akfbDCxPxeBgZxd7auyMLRhbK2wm QeR8xbmsqM/Sbv31SVuCk1Pdodd3HbNYXQAZAXZ5W5RF2DueKfOsR7ItIJXuC4olaGug 176EoS9Djd2As3evF5Ixe1xbQw7s8acrVPU0ziVWKtv7DD3RC3fGp9CA5dyK8RJ/BmG2 Mvfg== X-Gm-Message-State: AOAM532uymxRXqMGHdmxz/jE1bpBkTeQr9NNOt5mmI7KHO+5mqOxw7LY HoPjUmZFrKeqpWTafSWYhPbxJmM7zPZGqw== X-Received: by 2002:a9d:610d:: with SMTP id i13mr11657871otj.378.1631572696961; Mon, 13 Sep 2021 15:38:16 -0700 (PDT) Received: from ?IPv6:2600:1700:38c5:675f:a482:d150:1965:8294? ([2600:1700:38c5:675f:a482:d150:1965:8294]) by smtp.gmail.com with ESMTPSA id c24sm2200531otf.71.2021.09.13.15.38.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 13 Sep 2021 15:38:16 -0700 (PDT) Subject: Re: [PATCH 1/5] ath11k: Change DMA_FROM_DEVICE to DMA_TO_DEVICE when map reinjected packets To: Jouni Malinen , Kalle Valo Cc: ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, Baochen Qiang References: <20210913180246.193388-1-jouni@codeaurora.org> From: Peter Oh Message-ID: Date: Mon, 13 Sep 2021 15:38:15 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210913180246.193388-1-jouni@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org > diff --git a/drivers/net/wireless/ath/ath11k/dp_rx.c b/drivers/net/wireless/ath/ath11k/dp_rx.c > index 90da56316e7e..0c27eead3e02 100644 > --- a/drivers/net/wireless/ath/ath11k/dp_rx.c > +++ b/drivers/net/wireless/ath/ath11k/dp_rx.c > @@ -3434,7 +3434,7 @@ static int ath11k_dp_rx_h_defrag_reo_reinject(struct ath11k *ar, struct dp_rx_ti > > paddr = dma_map_single(ab->dev, defrag_skb->data, > defrag_skb->len + skb_tailroom(defrag_skb), > - DMA_FROM_DEVICE); > + DMA_TO_DEVICE); > if (dma_mapping_error(ab->dev, paddr)) > return -ENOMEM; > Need to update this line too? err_unmap_dma:     dma_unmap_single(ab->dev, paddr, defrag_skb->len + skb_tailroom(defrag_skb),              DMA_FROM_DEVICE); Thanks, Peter