Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3686271pxb; Mon, 24 Jan 2022 15:20:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJzuWDCkTUeFK26ISEP53vTOGWrSeVP7fMmD28eHaqNIsVkrJ7BzSada2nYPJMVhF/uxZVcY X-Received: by 2002:a17:902:758d:b0:14a:aef3:b5c5 with SMTP id j13-20020a170902758d00b0014aaef3b5c5mr16453060pll.21.1643066329461; Mon, 24 Jan 2022 15:18:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643066329; cv=none; d=google.com; s=arc-20160816; b=Af/8TGd69rrK4g87FguY+bB7K0Sp0hyTgAwC/KPJzfezUkf/vKofzsfFJzDOOgt6vU JsABqO/NYFv6M1A9ihXjzoQupnIrC82E33BQHWL+bcxsnZLXt6rxiTZe2x7ohArTldXD p9nwRaY4My+LOwTlk6VY8BBSJQOg/bpqPEWeZQhIoMC2Rv4BhlLgu+WrV1KZKry0g9OH LGCkbL6hLQ3OpNPd1aaNINbuLLZwq6zwA37O7Z3ly8B0Y84W415LrRk0eKicmVOQh7lL 9E5GoJXrF2KKMoVPUyEpwTyunZwanu5Xn8HIp8v7CWp2hy4SylAl2SMSlOgaYfIC7eVT 2e/w== 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=HgyDrsted1MeynifKuhntGAqGx4oecXYNtux0asSeIo=; b=iWjofdNS67gohbQHXJYY+yi06dorYoJUMpqjj7Ji44u1MNTQRx4vBJdK32L6QIcYyt KYcLlcVJf9nsjl/ccCeem+ENe40ynhoollZM7ezwHTwRCUeNkLCGZXE0wxIDklAgHGOM ++a+1Sgfjh+1DSwq5TUWAZboBlfz++xCta2EXUqlxlpj8v8DE7VhHzb9Mx//2R8vonpc 9/JE8K4ZwKqHtWuYEV4Bn/ijWxWhrtdnbWI3gns940pwXErJkp6rmtC1EqPt9zh3JRTE WlC0cGoWP0FtnjlJrWAhM2fmzBilpEVWQiGODonDg8G7iagUVuNVpk7A5qveAuYgaQUU Tz5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dKr8Ow3A; 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 k10si16379366plk.224.2022.01.24.15.18.37; Mon, 24 Jan 2022 15:18:49 -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=dKr8Ow3A; 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 S1384501AbiAXXOy (ORCPT + 99 others); Mon, 24 Jan 2022 18:14:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1584553AbiAXWVY (ORCPT ); Mon, 24 Jan 2022 17:21:24 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CD04C0424D3; Mon, 24 Jan 2022 12:50:29 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 0BFFC611CD; Mon, 24 Jan 2022 20:50:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D30A3C340E5; Mon, 24 Jan 2022 20:50:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643057428; bh=EmwCPnertVcmjrR8Moco0fRBdrq7Suz3ieik5+sjYIs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dKr8Ow3AjbNcH6oVSH0+/PXcyuhKYSw2cP+ELL61f0d1BCQVZS4B/iUv//t66/w8D yKGLaYoZMd1FidK6wn8CUy/9tm3eS6J0/vzMZfhfS26GGp1oN9UgAaqon6Nx9euOCv 8cfVjkjPdyohpjDJ7K1FISXir6VXK9oihF9HFVBE= 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.15 809/846] iwlwifi: fix Bz NMI behaviour Date: Mon, 24 Jan 2022 19:45:26 +0100 Message-Id: <20220124184128.831861285@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@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 @@ -104,9 +104,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);