Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4659506pxj; Tue, 22 Jun 2021 05:23:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzY4w5sBBGGWsQIKvWsP0ATsfv3RU8vlTLBFdZ4CioVCaQ0r9BNwAiAovOEbmi/WJz+fplp X-Received: by 2002:a17:907:9fd:: with SMTP id ce29mr3603466ejc.62.1624364590134; Tue, 22 Jun 2021 05:23:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624364590; cv=none; d=google.com; s=arc-20160816; b=aZ132Q4E/2AixC6zMZRRxahBvY+vhgx7WW75hBtOcUuYFYf1r6yx6aMbOz2VU2GSB6 lSH1NRAVo/NBIXPwax7UCy9OXf7aMhkoSBHFC2k1dmGKplgAd5+yp4wi1Lt0AL9fJjM6 v1ib6Mcq6RfNjWKq9b6NZWIQ89QtgjIRam9El8iSpmWz1App2ZZdpXU316vY0lvrPesL 5tbo+7TfwZYw7XmvAmMHOM0Zu4z5d/7L+tjMPdfb/XXgcn/r5OUP2Tn+XYFveJQl/e8G qqAoWmhXh+aQg31Ks6e3o0IxY+obfwIylV6AoR4kkwEqPWOwRAGjHTWG4ZYGsuUsUiDV pTCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:date:message-id:user-agent:cc:to :references:in-reply-to:from:content-transfer-encoding:mime-version; bh=EUAQ0Eqq0I47eD+BrZIymndq4DEmurA+BACVJnI6yZQ=; b=L2KmPlkvMb22OJyU7bbGfyirBNVMsauCj9Pahrv7G9sVDmA8Tl2TZcM9cu8OS46ezR XY1v6YCUL7/KOgc6aIEbYLRu25u7HYeEoHiULGz1aelNoIEMy9aLltU21EtY7am7tu0/ QkPnBwmHBhHy7O6NhzTf8T30zx6lRY9PvRs4tmPZmXc3aiqJmIWQrE5UWnY76uyzJwVH 75QSzhNSYoORdejxgofEsBCSbWcIuEXMykxSwM4MdE4LpQ9LMgshfY6dFMaf4ZKTTI8R MkETB+576Sk1seotsYTQO6Ko0rD9FhbFQ3CfsIcRi+JeiVcIZCugmNYmU0Cl7SmMwALS feuQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hx16si10470969ejc.387.2021.06.22.05.22.47; Tue, 22 Jun 2021 05:23:10 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231181AbhFVMXQ (ORCPT + 99 others); Tue, 22 Jun 2021 08:23:16 -0400 Received: from paleale.coelho.fi ([176.9.41.70]:48528 "EHLO farmhouse.coelho.fi" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229912AbhFVMXP (ORCPT ); Tue, 22 Jun 2021 08:23:15 -0400 Received: from 91-156-6-193.elisa-laajakaista.fi ([91.156.6.193] helo=kveik.lan) by farmhouse.coelho.fi with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lvfOf-001awB-EH; Tue, 22 Jun 2021 15:20:54 +0300 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Luca Coelho In-Reply-To: References: To: Luca Coelho Cc: kvalo@codeaurora.org, johannes@sipsolutions.net, linux-wireless@vger.kernel.org User-Agent: pwcli/0.1.0-git (https://github.com/kvalo/pwcli/) Python/3.9.2 Message-Id: Date: Tue, 22 Jun 2021 15:20:54 +0300 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on farmhouse.coelho.fi X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, TVD_RCVD_IP autolearn=ham autolearn_force=no version=3.4.5-pre1 Subject: Re: [PATCH v2 11/12] iwlwifi: pcie: remove TR/CR tail allocations Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Luca Coelho wrote: > From: Johannes Berg > > The TR/CR tail data are meant to be per-queue-arrays, however, > we allocate them completely wrong (we have a separate allocation > per queue). > > Looking at this more closely, it turns out that the hardware > never uses these - we have a separate free list per RX queue > and maintain a write pointer for that in a register, and the > RX itself is indicated in the RB status (rb_stts) DMA region. > > Despite nothing using the tail pointers, the hardware will > unconditionally access them to write updates, even when we aren't > using CRs/TRs. > > Give it dummy values that we never use/update so it can do that > without causing trouble. > > Signed-off-by: Johannes Berg > Signed-off-by: Luca Coelho Patch applied to iwlwifi-next.git, thanks. a5575a54df00 iwlwifi: pcie: remove TR/CR tail allocations