Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp769966pxb; Wed, 18 Aug 2021 13:49:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwN20Zskkx7VvQNChRvcfEaHP7c7Bq0s6rumbz+7t1Eu/Qm2NFgCxtcwUPFdoDBGwnlFcW9 X-Received: by 2002:aa7:db13:: with SMTP id t19mr12251189eds.72.1629319799450; Wed, 18 Aug 2021 13:49:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629319799; cv=none; d=google.com; s=arc-20160816; b=O+VGFVEwiQQSVtsLIZ00518h41B94cdDo9ZaApZ6gDCLRL9J1rG/RXHlUsyWhTXJk0 GhTJADJFT9lo/4tHW1U6GKJ5qnUrg5RmRQnDLQsJctwgXBuin4fC/75BXBWTqCMrqy6G yQ028LSGDLH4icqTyNHlVXVhHJcjHd20O5bUyJbCd9mgadLT8eKsRPQ8X7MFB0XoIwOx hPoZUeTBHJtIfvx0OyJCKdIqhMskKPSahuN+C0C3wgTrKAdBm6BBJwDGlePUPPPYnNif r4TPO7q6b7f8ZHaM7Igx5vHYqsnnv3RUGGITvOuypTgVjTHIgJzkRlpBFw7EPZuHP5dH BTZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ReRbCCu0NU8RaS/JlVj2xJ16jur0TR6FOgfUXy9kMT8=; b=j9SaZZUjeiGGfH5p8/E5NFkBpM/pwrLI74tvDemaXQcPJsFetjnoviwcZxKC2KNzMI FPqrPz44GuZoYn073Jc8/+VeHP6nLT28BycThN181qKlTVC6qMgyeaUaPZlU4xBWnw5h dR4CgxOnc9MdQ/jKyZBkHt+iHf6ZjOJNP312sthTca/M/sWuVSkqgDoHlrBIA/RAt/t9 am+9Hob6go6yetP29QJsq6ki6fgbibT1mRbnzGMDGybVBmWzxBtYLJ0P3VwKHaWZaVM2 6p3jdn7xJJAr/w4oz+bocRGfgDpe2wD66ZaQHurLe3ffP1kAx2qjhw7+lJyonFraw8ad 6oXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kHgHFIrN; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gs9si906624ejc.356.2021.08.18.13.49.27; Wed, 18 Aug 2021 13:49:59 -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=@gmail.com header.s=20161025 header.b=kHgHFIrN; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233792AbhHRUop (ORCPT + 99 others); Wed, 18 Aug 2021 16:44:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233785AbhHRUom (ORCPT ); Wed, 18 Aug 2021 16:44:42 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97CB9C061764 for ; Wed, 18 Aug 2021 13:44:06 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id r9so7432644lfn.3 for ; Wed, 18 Aug 2021 13:44:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ReRbCCu0NU8RaS/JlVj2xJ16jur0TR6FOgfUXy9kMT8=; b=kHgHFIrN/AkFQjVOnO4YPNKDmkaGspaNUBCMzY0msP8ztHtG6lO1QOmF0BWTuW/DDd rCsJ7uzdbEWQvvfchSR9Iyqkz6ChERVfC2kM+iIUM0tKGAbllVb5gy4GFlqpSRmx3WlM CmaVPJ/xAUYPG/lHcVFFjdFynEvzKT/3XDNk64VIdw/Mmis2OVvDzbYTjD4kHBgP8USF ygH1DOw3CRci8FUZPqxgdlW/gHn5GBzsIQF1yTrNKr5kp6GuEWuPMjMtIuszrWFs955V LyVWV2i5enncbyXqyZiJhqBc59lNZqv5PiRrJxwyJqKNg6R0CrqT9bKloaYW0dHbPkrT KqEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ReRbCCu0NU8RaS/JlVj2xJ16jur0TR6FOgfUXy9kMT8=; b=muXMO933KlwBzcCd9MLfgAh9WmBZRzKf1IEeZcn9lpltjN47mC7OzCLLac2LDBchhx dOrVe090yQUHY1aB/PxDwQ88iGD6+C8pAQl1XwQokkpoUEWs/HrxUefIdTNTSfSbHHD3 AOF+imWRmn6sahRn6+7MuTMm2UVdc/y0Moyt5cxkr2XrSOGh4TV8TWi+FGfRpgZrLyHD 5mWS+8fQkw0HaN8FV/T6c0Td/L+vlQTCVvTRcqYuen01rr5YuX2RKjGq6DViiZ9jAnlV eDrezLWiyqLsCwndFQg8P4SzF1krLZpl/2YxZP1llo6aHub11hTblZHxYWmkXfPtNk5e z66g== X-Gm-Message-State: AOAM532edoblbzEjCtcUeIIl5Z4gksP0DtTM1IvMtMBNf32IBE3ALVJ3 9MeYFaUH+ud8IeRLUaPd/cGG1R7DG4ICRgN1As4= X-Received: by 2002:a05:6512:401a:: with SMTP id br26mr3380230lfb.539.1629319444959; Wed, 18 Aug 2021 13:44:04 -0700 (PDT) MIME-Version: 1.0 References: <20210818150943.1630199-1-festevam@denx.de> <17b5a29d098.279b.9696ff82abe5fb6502268bdc3b0467d4@gmail.com> <369c1f89-df33-455b-773e-a2e0dbf582ff@eero.com> In-Reply-To: <369c1f89-df33-455b-773e-a2e0dbf582ff@eero.com> From: Fabio Estevam Date: Wed, 18 Aug 2021 17:43:53 -0300 Message-ID: Subject: Re: [PATCH] ath10k: Do not call dma_alloc_coherent() for SDIO and USB To: Peter Oh Cc: Arend van Spriel , Fabio Estevam , Kalle Valo , ath10k@lists.infradead.org, linux-wireless , Christoph Hellwig , erik.stromdahl@gmail.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi Peter, On Wed, Aug 18, 2021 at 2:35 PM Peter Oh wrote: > > > >> Fix the problem by not calling dma_alloc_coherent() when the device > >> is not DMA capable, such as SDIO and USB. > >> > ath10k calls dma_alloc_coherent multiple places including > ath10k_htt_rx_alloc. > > Do SDIO and USB not use such data path function at all? Good point! Maybe I am not just hitting these paths on my simple tests. Kalle, How should we handle this? Thanks