Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp182160pxa; Wed, 26 Aug 2020 07:57:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNT1biqh265zJZJ4t9+kn4lo9D477+Z4u/mN8ko2EclyVKDkZsRA1S+ffvX5zZT7qWLNtU X-Received: by 2002:aa7:cb0a:: with SMTP id s10mr15550204edt.134.1598453820884; Wed, 26 Aug 2020 07:57:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598453820; cv=none; d=google.com; s=arc-20160816; b=MNofyKwmK5y1Unz+8dhab25yG5XrZlr4vVbZ/bSXNijvDCxWGGu+pPRxK0Ivat8niX XXe0nUVAO8EDTddKLNEbcSaoZcITGF4dt8sL9DKgSCCeqZxoCZiDw7pJSnwsFNsyp1wa Y+2gSfFNxUrs2sida7g4KQ5tl7nLdvLipZMNu3K+VYYAVlz4gkmnjedxQDxii1P4Ytva OEGIQqxRXcNAzSc1yWaEtGyQhi3joVd1s1OX87JSrm8VR+q7yRrpDL2CYHv3qsHHS/6G Z1BURBR+nIDjJo6eScYf/RAaSl71KEzmqboU8IEzMACc3TjE2Ao0S68TJusAw80JIYn6 02/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=uMUsAzrt4TI19w2Cq60GN2aXgQIdXvc8FuMeNUtVglE=; b=tL05OC/HmD9DrP3HhtkVxdUdCjLJ90BC0zyWoy9L66WTTjirTNjzrKdj3VjZQ6TB9G efoNJdj+gx+cfZy/cOOF5mmvGIXVL5YdBTQpwcDdtRYzFJAkQ8s7YJLx6IGlSnPOI3Gd jrVjlcmDbp+2MHJ21JOqNjOHgG7EK9my8NoKGTOTyZ1AnOt6Pn7id+m9fa4yZNXk6HPg QkB+SmGVVA6TUKDdwBKYuJ01ZOtbHWY6TDe4V9EXWLKRyZ+CNUyKYgYq2kk0zzrN+oy7 kWSqxOSNUbQFubECwhmHbeYKkSye/DWdw86RaLfGiLWi4ek9JaeakzxWJ2cOXLfvVfi6 0imA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=dv4MZUYX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bm15si1648293edb.441.2020.08.26.07.56.38; Wed, 26 Aug 2020 07:57:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@chromium.org header.s=google header.b=dv4MZUYX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728419AbgHZOyt (ORCPT + 99 others); Wed, 26 Aug 2020 10:54:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726885AbgHZOyc (ORCPT ); Wed, 26 Aug 2020 10:54:32 -0400 Received: from mail-ua1-x941.google.com (mail-ua1-x941.google.com [IPv6:2607:f8b0:4864:20::941]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5899C061574 for ; Wed, 26 Aug 2020 07:54:31 -0700 (PDT) Received: by mail-ua1-x941.google.com with SMTP id g11so648003ual.2 for ; Wed, 26 Aug 2020 07:54:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uMUsAzrt4TI19w2Cq60GN2aXgQIdXvc8FuMeNUtVglE=; b=dv4MZUYXkGeHUaa9XtV4J0egU16hKnMN/WsnKFJFHs+NOkqv7yzfRXMbLsAClOITmQ /joaOoQ3o83HikVzSTz7JEdMOKm74mpnUQTnGF18au4nmhUGEmJljSENovzcxCSbE9o2 eFqylNdvAFUBuemiw43omuZGmxt5XFTW3/LNA= 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=uMUsAzrt4TI19w2Cq60GN2aXgQIdXvc8FuMeNUtVglE=; b=jpR/i2mWNugLujHOQGSgH7ToRPK6Blmjzu6zd9RxDkuBLm2nbEVKEzMe32hUFeFy9N YVAGPTfZ7q/xE0PapOdZTSr9B4ZKlUGWRItC8CIoEoWkqN20HK/h0x8hDerxAC28ycRE VgPkrhRjtp4AOSGBd6+jwdYy9Y8zxR21hDJiZ2WblrgSRLiGGnQm2vtDlajoQYerlxCE 3D/TWopbUs5xhXHlZrf7687x8bQ6bMOQ0fqH+qjiZ/lIgz51zlKV0Rlwty/K09WZJLR/ fpXA2qUJ0miP3Qhj5Oc0G/FNzbl5t0edafjMd8fa3znXvjEycibeXITbD/7BZPPmihgt ur+Q== X-Gm-Message-State: AOAM533IkcFM3F64ePuKnt4JMAr2/jNwmYhe8ilFlECtyHPEJ2iHTJEO M6CygfDM1FZ88njKNRQRPky4nOM08k0wYw== X-Received: by 2002:ab0:6453:: with SMTP id j19mr8994130uap.134.1598453670111; Wed, 26 Aug 2020 07:54:30 -0700 (PDT) Received: from mail-vs1-f49.google.com (mail-vs1-f49.google.com. [209.85.217.49]) by smtp.gmail.com with ESMTPSA id g127sm354143vsc.5.2020.08.26.07.54.29 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Aug 2020 07:54:29 -0700 (PDT) Received: by mail-vs1-f49.google.com with SMTP id a13so1075653vso.12 for ; Wed, 26 Aug 2020 07:54:29 -0700 (PDT) X-Received: by 2002:a67:1e47:: with SMTP id e68mr9364977vse.45.1598453668950; Wed, 26 Aug 2020 07:54:28 -0700 (PDT) MIME-Version: 1.0 References: <1593193967-29897-1-git-send-email-pillair@codeaurora.org> <871rlcx8uv.fsf@codeaurora.org> <000201d65f51$83d2ac60$8b780520$@codeaurora.org> <877dtlcvs1.fsf@codeaurora.org> In-Reply-To: <877dtlcvs1.fsf@codeaurora.org> From: Doug Anderson Date: Wed, 26 Aug 2020 07:54:17 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] ath10k: Add interrupt summary based CE processing To: Kalle Valo Cc: Rakesh Pillai , Peter Oh , Brian Norris , linux-wireless , ath10k , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Wed, Aug 26, 2020 at 7:44 AM Kalle Valo wrote: > > (Guys, PLEASE edit your quotes. These long emails my use of patchwork > horrible.) > > "Rakesh Pillai" writes: > > >> -----Original Message----- > >> From: Peter Oh > >> Sent: Tuesday, July 21, 2020 7:03 AM > >> To: Kalle Valo > >> Cc: Brian Norris ; Doug Anderson > >> ; linux-wireless >> wireless@vger.kernel.org>; Rakesh Pillai ; ath10k > >> ; LKML > >> Subject: Re: [PATCH] ath10k: Add interrupt summary based CE processing > >> > >> I'll take my word back. > >> It's not this patch problem, but by others. > >> I have 2 extra patches before the 3 patches so my system looks like > >> > >> backports from ath.git 5.6-rc1 + linux kernel 4.4 (similar to OpenWrt) > >> On top of the working system, I cherry-picked these 5. > >> > >> #1. > >> ath10k: Avoid override CE5 configuration for QCA99X0 chipsets > >> ath.git commit 521fc37be3d879561ca5ab42d64719cf94116af0 > >> #2. > >> ath10k: Fix NULL pointer dereference in AHB device probe > >> wireless-drivers.git commit 1cfd3426ef989b83fa6176490a38777057e57f6c > >> #3. > >> ath10k: Add interrupt summary based CE processing > >> https://patchwork.kernel.org/patch/11628299/ > > > > This patch is applicable only for snoc target WCN3990, since there is > > a check for per_ce_irq. For PCI targets, per_ce_irq is false, and > > hence follows a different path. > > This information should be in the commit log. But I have a patch in the > pending branch which removes per_ce_irq: > > [v2,2/2] ath10k: Get rid of "per_ce_irq" hw param > > https://patchwork.kernel.org/patch/11654621/ > > So how will multilple hardware support work then? In theory my patches and Rakesh's patches could be squashed. His patch made things marginally better but still didn't really address the root cause. When addressing the root cause, I ended up deleting most of the code that he introduced. I think it'd be fine to just apply all 3 patches (Rakesh's plus my 2) and the end result will be good, but if desired either Rakesh or I could post a squashed series. > In theory I like the patch but there's no information in the patch if > this works or breaks other hardware, especially QCA9884 or QCA6174 PCI > devices. I really need some kind of assurance that this works with all > ath10k devices, not just WCN3990 which you are working on. > > I have written about this in the wiki: > > https://wireless.wiki.kernel.org/en/users/drivers/ath10k/submittingpatches#hardware_families The end result is that it should only affect "wcn3990-wifi", which is what this was tested on. Specifically you can see that "snoc.c" only includes one compatible string: "qcom,wcn3990-wifi". You can also see that the only place that has "per_ce_irq" set to true is "WCN3990_HW_1_0_DEV_VERSION". -Doug