Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp959020lqh; Fri, 29 Mar 2024 02:34:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVky8038OHCy0/De8W4EARYGGuF4/EMiyV0MZYdLQgMYBFSv9yJCilJIBVaGJz7tuWiIixoBh2+Kv78UIPh5Iq+zpuoomQiUe+dQ5zmkQ== X-Google-Smtp-Source: AGHT+IGRlJ2WtUeN8MJNQr4XQ6ekAxmUHq6EgmPRrsF7yWAZjWxCnyChNV8V2Mvp4J6ygyYEVX/2 X-Received: by 2002:a50:8d19:0:b0:567:6447:1900 with SMTP id s25-20020a508d19000000b0056764471900mr1292526eds.17.1711704883566; Fri, 29 Mar 2024 02:34:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711704883; cv=pass; d=google.com; s=arc-20160816; b=NH1nYZDvRb0D0aF7a56almlFdfyV8TGB7vQNWj5+nt0UwAVtZ+b/khUR050y5qVx/K 8uXOSKfeMRXngRJBKT1oIZYIr1aKzwQScpYXxgqkNjKbhnLOiYRmpzzb++Tt5SH5AroP aoRzm7nX+TPd1v9DQZQornKFtEjwQv6JrTpx8NLu/yKVYNwadW3LxdY0sgUAwVRospMD zuB3ao7/xj2Rkmqy+UlsgW6yYa5Ku7ydYNp/przBIhsMRgn+NKh2ejzQJxpnRZz8DBSd KEgNNgdNUsi1oCRhpE/trGcvc10dPIRHwd+ARFe+pFwaBpwLCdyLPB//5kAjo0krtwpm YR1Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ZgcyzqO+ePXe1tBExO3EiG5dc5/6lLdtfaqC0vPVBGo=; fh=2OdpV1GaSh89LlmqdEIy9/6MZwB8hqV+xQ/rCOpsL4c=; b=vmYHbe3JkjwvZ31+vQkZk7vr9zWxcUoTnsTmWzpYvflAV2PYijvHXgg8msjV0IxQem K4k4x/suCrm6wFhJJqatHpDIgiSRaufK+LMJ7aW9Am49Ve/NV8rXM24DpAJN5XZDvLsl JCxd5WkE7RdU8R8OjNcAoLdwfXyebVL6aWtNdNkB53UndPlZr/jmS43OD+pjIF5AAtzF PMWhUq7MSVMS8FUTxV86Kp307fDG5JYeNE84rlzmcjUzxpXTRvTJ66HxAe7NRmaMp0O2 6+NIKmhe4bjzn8OC2lm/yBaK7Zngo3a5yjTsrfUaN4d2GhFFPYgWxAVZRLZ2N+jr2QIi tz7w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1cAClxC3; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-wireless+bounces-5530-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5530-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id l14-20020a056402254e00b0056893d784f7si1730601edb.52.2024.03.29.02.34.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 02:34:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5530-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1cAClxC3; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-wireless+bounces-5530-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5530-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4C64E1F21923 for ; Fri, 29 Mar 2024 09:34:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 030D351C42; Fri, 29 Mar 2024 09:34:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="1cAClxC3" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BD1C65102E; Fri, 29 Mar 2024 09:34:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711704857; cv=none; b=W7iWLx7zHQd3H0vcL0TJGlU/XNA1o4kUQP2SpLx5w3n2J/79XaAZm2rOra+pB0WkdjY9bjfQ/Quu9O3w9omN9SV9y2jLfjLX1RnzNwcUXD6nZXg/1+VQwHujHBDwKwU+kksN+u1pjff53rTfOCYy6zwVHFJxi3loSkYr9tNTWUY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711704857; c=relaxed/simple; bh=VgkXK0mJbYwXmgA/6NHIdEfy55H6cuyxcE22eOH92fk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=uijVPUubIB84ZFKK13YVAiUGBMoi0kXvfwJe2ZZBYl4in5YyP6vDztSkr9clSqC7bwCsZx8Pmyj9x8ETNZvcEdrzuhAAhC3NS39LOoCkCC8q1jTRl8pEgVj3h5EwuUjOnOxS9MijqbNEru9Jt8gQGu6JD9bYyYK4KxsTYas8l+U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1cAClxC3; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD4E8C43390; Fri, 29 Mar 2024 09:34:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1711704857; bh=VgkXK0mJbYwXmgA/6NHIdEfy55H6cuyxcE22eOH92fk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=1cAClxC3ogn/r0oV/tLjAsJ1vBzDKD80PKytAlHLyPYbULwNvpVPYhkHrMKBvJDMD 5e4N8fxBthCbQZ8y3LPCyMUtQS7aKn7C/WI9ndSNXAIf/EfPACtYc2RaZvu8Ux83QJ odDxVdad2kJN7ocnLI+Sbv4a0QWtQSQnVH+56zgY= Date: Fri, 29 Mar 2024 10:34:08 +0100 From: Greg KH To: Aaron Ma Cc: sashal@kernel.org, stable@vger.kernel.org, gregory.greenman@intel.com, linux-wireless@vger.kernel.org Subject: Re: [PATCH 6.6 1/1] wifi: iwlwifi: pcie: fix RB status reading Message-ID: <2024032900-resort-relapse-fe31@gregkh> References: <20240328015402.114435-1-aaron.ma@canonical.com> <20240328015402.114435-2-aaron.ma@canonical.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240328015402.114435-2-aaron.ma@canonical.com> On Thu, Mar 28, 2024 at 09:54:02AM +0800, Aaron Ma wrote: > From: Johannes Berg > > [ Upstream commit 9f9797c7de18d2ec6be4ef6e0abbaea585040b39 ] > > On newer hardware, a queue's RB status / write pointer > can be bigger than 4095 (0xFFF), so we cannot mask the > value by 0xFFF unconditionally. Since anyway that's > only necessary on older hardware, move the masking to > the helper function and apply it only for older HW. > This also moves the endian conversion in to handle it > more easily. > > Signed-off-by: Johannes Berg > Signed-off-by: Gregory Greenman > Link: https://lore.kernel.org/r/20230830112059.7be2a3fff6f4.I94f11dee314a4f7c1941d2d223936b1fa8aa9ee4@changeid > Signed-off-by: Johannes Berg > Cc: stable@vger.kernel.org # 6.6.y > Signed-off-by: Aaron Ma > --- > drivers/net/wireless/intel/iwlwifi/pcie/internal.h | 8 ++++---- > drivers/net/wireless/intel/iwlwifi/pcie/rx.c | 2 +- > drivers/net/wireless/intel/iwlwifi/pcie/trans.c | 12 ++++-------- > 3 files changed, 9 insertions(+), 13 deletions(-) Now queued up, thanks. greg k-h