Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3972692pxb; Tue, 25 Jan 2022 00:20:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJyq1PpJ3h7VKss7ZKqC1srrD2sOFuQthLTJbAzuQeJem1i28G31DJDSH34/QSxHxNvEOdoV X-Received: by 2002:a17:907:3e09:: with SMTP id hp9mr7648587ejc.691.1643098831808; Tue, 25 Jan 2022 00:20:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643098831; cv=none; d=google.com; s=arc-20160816; b=GXbKnMbXALhGuYh39JQN+nDAMPgO1JvbSJpLGY1UqfofHUyeLROAfsa1biy9PKRz16 1tn3Nz6Sd160zUz4fO/QSuAJmmb60YYpP6HIkQWi080qggehb3Xr/AeaImLpfCzl7xEI yHdQjFa0XF7krJTF/kzxPprE14Y+/orWnb9JRKGrw6tIQf2KqAJmZ5vSqswazWU2WbaV 7ejX3SdpDjdaRvWg6PO/BRKRHOs7dGP890yG5gzFD7u3Ltt0ohidPCnsqwh2DKHmmpOP m7ieMjWcBo9TZnxNFl2uKKX/NvbBcE8+NzgASriKp4EzyVgwHnBP603zUmO4bREIzy3N iScQ== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=mYW012nC+7/G3s0u1B97OerbLFUgLY7JGLuVwc4y6ow=; b=MS6tEvQ1zoqn5q23jmJmXr6tjpH81auRmUlyAXKK5Hof/Y2VQa92AJod+f5tKgLjOx zrJX3FdJyeGYIrFhR1zANvIYstnxGOCeyZGrjPjuDVmCVC/HhDmfIE+Jpa3OKtrJ0G/G qCohmYYFzRORxyI2oCq+j3w6EvSgHdxLWjZIBo8fpK+rhciZpi+XsbaMw0AD2SN0UdTA MT8vq3OdE3Eu7pes0ZVDPZM3QpgDELVRsKhBKBPYlYxqYdTmx+gY/rJwWcuWVwYs1j/V Zr8ibueLliaTPXrm070347EKObXNmmIPHE8odTV58zAO5wtrQAtsdd8bE6+nBvva3nDN /Dfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QnbD6aNZ; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 30si9153487ejq.841.2022.01.25.00.20.07; Tue, 25 Jan 2022 00:20:31 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=QnbD6aNZ; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S3412848AbiAYAhz (ORCPT + 99 others); Mon, 24 Jan 2022 19:37:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2364101AbiAXXqp (ORCPT ); Mon, 24 Jan 2022 18:46:45 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56571C07E300; Mon, 24 Jan 2022 13:42:36 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 1CFDAB8123D; Mon, 24 Jan 2022 21:42:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47FD4C340E4; Mon, 24 Jan 2022 21:42:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643060553; bh=2PTn4U8QrvFxiZVeAWyU4GTHX3jAXc7OZFieR3may00=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QnbD6aNZom/jj+y0Gys3aKKHwLlmhEsKS9JGgz8ST0uAfVFGrWaJ2Y50u890SR+jf YNyG0ofIapwp7Si90igGRGhewO16mMEm/FbSWmBkv2nKtvcH9qp+yo/3ypUDBfydz7 EhBaMVMafzA7mk38DiETsk2AcCt+MOkCywl9PXhs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Johannes Berg , Luca Coelho Subject: [PATCH 5.16 0987/1039] iwlwifi: fix Bz NMI behaviour Date: Mon, 24 Jan 2022 19:46:16 +0100 Message-Id: <20220124184158.456652014@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Johannes Berg commit fdfde0cb79264f88992e72b5a056a3a3284fcaad upstream. Contrary to what was stated before, the hardware hasn't changed the bits here yet. In any case, the new CSR is also directly (lower 16 bits) connected to UREG_DOORBELL_TO_ISR6, so if it still changes the changes would be there. Adjust the code and comments accordingly. Signed-off-by: Johannes Berg Fixes: 6c0795f1a524 ("iwlwifi: implement Bz NMI behaviour") Signed-off-by: Luca Coelho Link: https://lore.kernel.org/r/iwlwifi.20211210090244.75b6207536e3.I7d170a48a9096e6b7269c3a9f447c326f929b171@changeid Signed-off-by: Luca Coelho Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/intel/iwlwifi/iwl-csr.h | 5 +++-- drivers/net/wireless/intel/iwlwifi/iwl-io.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) --- a/drivers/net/wireless/intel/iwlwifi/iwl-csr.h +++ b/drivers/net/wireless/intel/iwlwifi/iwl-csr.h @@ -105,9 +105,10 @@ /* GIO Chicken Bits (PCI Express bus link power management) */ #define CSR_GIO_CHICKEN_BITS (CSR_BASE+0x100) -/* Doorbell NMI (since Bz) */ +/* Doorbell - since Bz + * connected to UREG_DOORBELL_TO_ISR6 (lower 16 bits only) + */ #define CSR_DOORBELL_VECTOR (CSR_BASE + 0x130) -#define CSR_DOORBELL_VECTOR_NMI BIT(1) /* host chicken bits */ #define CSR_HOST_CHICKEN (CSR_BASE + 0x204) --- a/drivers/net/wireless/intel/iwlwifi/iwl-io.c +++ b/drivers/net/wireless/intel/iwlwifi/iwl-io.c @@ -218,7 +218,7 @@ void iwl_force_nmi(struct iwl_trans *tra UREG_DOORBELL_TO_ISR6_NMI_BIT); else iwl_write32(trans, CSR_DOORBELL_VECTOR, - CSR_DOORBELL_VECTOR_NMI); + UREG_DOORBELL_TO_ISR6_NMI_BIT); } IWL_EXPORT_SYMBOL(iwl_force_nmi);