Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp216273pxj; Thu, 17 Jun 2021 00:47:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyRukfgWFj4iXlsoh6c96qdS9LsHmikNpgIssSk8oLEbmXETbIr2D1UpqlpEDqPH3LfHhu X-Received: by 2002:a17:906:d20b:: with SMTP id w11mr3905840ejz.242.1623916042492; Thu, 17 Jun 2021 00:47:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623916042; cv=none; d=google.com; s=arc-20160816; b=wJ6yBiFBV6UXJaAV8G7j4QwYklGblPvv4KFDKFS3pkFbdGYkpY3vhrVIXp/pTCOGy0 n/524XTIJT4glaJ09Bd4H8uZ69MH1xeEzC/HwxnTZJbBnO7hMclCZuL4uS+8fIIGbW+7 61cOiOrBLJF35xq9fnKr+f4JMEOOJ1b4Mfa24L7y1B6oMG9EWRv6C5jhBvPuSUZTqHrh X1gqb8N7JihG2VvqG7litfhkiQGKit1pjUz4rmG579BB6TdJ0UYAhosinedW7QH57snr b2bwLP7iYr+Wb3+78Rbpuk//I/Q2L1Cfa3n2OtbZ5+UAAzvaDe2vmMQEnwcqizJWCwE3 55hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=03i5CjecQxvGxshBqB5d6WOziRJoGTNMSSHzvXxob1g=; b=j7WvqjR7Uo+2euvUHre5ZvOv/IDxdAyNZe3Eo2udQSKSSBhCoz57s4YKbGz6vR+SQ4 lCC6OGYPfU98242cTD41WQo8WlZ3QPjR1tO/lCTdmzezQNH/OZcRlXASmB2qE7YfyZBW r1oaUt0am6+y0d7uQsaojtrZwF6R88Utp0zZXnKgJAY1JOO2RhOgXbwFSVEWIPA7ZZJl PeAKQAtmdytdaoPUD4p1LzZ2NugfFbqpJo5gW5TodhT9PpjZCfh3Z6F+wDE3/mH8WnIU DS3iA9miKAFDW3WXOTbh5vWGWeoip3Q4lOAS10zkU/QJUbJRJifqTT2n+Mq0A5WSn75O mcMg== 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 w11si4400150ejq.499.2021.06.17.00.46.55; Thu, 17 Jun 2021 00:47:22 -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 S230242AbhFQHpb (ORCPT + 99 others); Thu, 17 Jun 2021 03:45:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230211AbhFQHp3 (ORCPT ); Thu, 17 Jun 2021 03:45:29 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E091AC061574 for ; Thu, 17 Jun 2021 00:43:21 -0700 (PDT) Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2) (envelope-from ) id 1ltmgB-007xZi-EJ; Thu, 17 Jun 2021 09:43:11 +0200 Message-ID: <03ef297b35b87ed8f3c111cf7e67592b1c8e29a9.camel@sipsolutions.net> Subject: Re: [PATCH 11/12] iwlwifi: pcie: remove TR/CR tail allocations From: Johannes Berg To: Luca Coelho , kvalo@codeaurora.org Cc: linux-wireless@vger.kernel.org Date: Thu, 17 Jun 2021 09:43:09 +0200 In-Reply-To: (sfid-20210617_091102_610763_E92F4BD5) References: <20210617070852.496985-1-luca@coelho.fi> (sfid-20210617_091102_610763_E92F4BD5) Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.4 (3.38.4-1.fc33) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-malware-bazaar: not-scanned Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Thu, 2021-06-17 at 10:08 +0300, 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. > > Therefore, remove the TR/CR tail allocations completely. I guess you should've updated the commit message when squashing in the fix here - we do need to give it dummy pointers, and the hardware *does* use them, just for no relevant purpose :) johannes