Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2806399rwb; Mon, 15 Aug 2022 11:43:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR47hyAwDEJShTYfn/UDhGiflsePcphIqnFNNUT7hGZu33SDGDbDtLKTSPoy3D7wp5BKJnU1 X-Received: by 2002:a17:907:2cea:b0:730:c186:21a0 with SMTP id hz10-20020a1709072cea00b00730c18621a0mr11279813ejc.678.1660589012006; Mon, 15 Aug 2022 11:43:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660589012; cv=none; d=google.com; s=arc-20160816; b=pDjiIvr4JvFIF8GXFj26dmJOjcNpSD8i/BoEa2oXvBAc9dPlUUGgGO6acH1jQd8ZBG hRNhy+pAWYk2Y89tdOSQUxqBk5mg+CzEYKxeQ69FRtDlBwEB0HQ4/udJ7Id2aF8shDxH e+LT/9wp1jB9kX7D2luKAY3oMxqqzzrSgZYpJeks8l1tY24628mmI/7tYfquHscE/8It uN2WzBCC8LC07CS/UPuC8CxNvLYCIW5Bbc9pj8ulYU+EDygU+2e75765qhRy4bRNmrKG 2YJfB+18rAKoLoiTqReuIuJLwiwDTgxzmRwrv1jeLI9QE35+dnzOEE7tl21MzqZ2zUh7 T6/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=Gdy1vYR43D4YLrhwux4IfLCUcNvlfiMGdpRtxrI892U=; b=cZKZxObTHzH8i8c6Kv5DsyF2Q2qB2w/5/9QxlX5mg2FrlgZVCLY4ToknaP6Urgmf8Q Dfyr1eF2eLtsxSU3RCZA7244UHodDO7MP4EfUztW5DgUsHomeamYbiEjPHCUK1aUTFTU zsKNR1JhGoPzJm8f8T3OpAXg2YHWj+qtLmi/flnbSDRIRwwoWNVQMP0MZz5ib+LFk6PM 14GVrJIDcQMSwMInwKbfAUmDva8dUZ1lY31I6J/mOTpckGm/Fl3hFlinTgUiYD2CBt37 N12MziiP8+qUwKV9geHfGheByW8lBnpO/OxrIjkgwkdEK/kQJwv9U0WV0iR6exF7QKzy sRJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AsdWK5AS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id eq18-20020a056402299200b0044375e1a707si4360809edb.313.2022.08.15.11.43.01; Mon, 15 Aug 2022 11:43:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AsdWK5AS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S241033AbiHOSW0 (ORCPT + 99 others); Mon, 15 Aug 2022 14:22:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240562AbiHOSVW (ORCPT ); Mon, 15 Aug 2022 14:21:22 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E550B2AE3A; Mon, 15 Aug 2022 11:17:01 -0700 (PDT) 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 B4BC9B8107A; Mon, 15 Aug 2022 18:16:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2DAA6C433D6; Mon, 15 Aug 2022 18:16:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660587418; bh=zEedom811/5se5b7aljK1JSNDPwuR5xYRPX2z+nxSlI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AsdWK5ASl90fgOJH4CGjojUfzJ4P+zK9pM/Pz1ZsCEtU+1toAjTQLZ6uy5GjjzAVN 0vSiHA5S5XZdONJlVQFprqgEfG3WEMLwQBjurhrQpUENcgaR4gaxpwpmfC0O9ImEAk WLwnASZhqcg95MkvBAs2RxwA0cq7pqzhUWPKdTOM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Himanshu Madhani , Bikash Hazarika , Quinn Tran , Nilesh Javali , "Martin K. Petersen" Subject: [PATCH 5.15 080/779] scsi: qla2xxx: Zero undefined mailbox IN registers Date: Mon, 15 Aug 2022 19:55:24 +0200 Message-Id: <20220815180340.728980504@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bikash Hazarika commit 6c96a3c7d49593ef15805f5e497601c87695abc9 upstream. While requesting a new mailbox command, driver does not write any data to unused registers. Initialize the unused register value to zero while requesting a new mailbox command to prevent stale entry access by firmware. Link: https://lore.kernel.org/r/20220713052045.10683-4-njavali@marvell.com Cc: stable@vger.kernel.org Reviewed-by: Himanshu Madhani Signed-off-by: Bikash Hazarika Signed-off-by: Quinn Tran Signed-off-by: Nilesh Javali Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/qla2xxx/qla_mbx.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/scsi/qla2xxx/qla_mbx.c +++ b/drivers/scsi/qla2xxx/qla_mbx.c @@ -238,6 +238,8 @@ qla2x00_mailbox_command(scsi_qla_host_t ql_dbg(ql_dbg_mbx, vha, 0x1112, "mbox[%d]<-0x%04x\n", cnt, *iptr); wrt_reg_word(optr, *iptr); + } else { + wrt_reg_word(optr, 0); } mboxes >>= 1;