Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp547749iog; Fri, 24 Jun 2022 09:02:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u8Z3WluFmhslqL882eVAQ1fBclVpyPB1tgjvyDtxGzf0gmYfEnqWkmR8ZJnLNC/BYjQo/y X-Received: by 2002:a17:907:8a01:b0:726:2c8e:4cad with SMTP id sc1-20020a1709078a0100b007262c8e4cadmr5184282ejc.611.1656086567192; Fri, 24 Jun 2022 09:02:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656086567; cv=none; d=google.com; s=arc-20160816; b=l/9JFtD8/2wwEg2CuGMvZOlPU2daQiIa8MjFkkSFsSnauQroZyY/UswiCnc3gk23+J C/yh3bdoS2f07s/swJsONaDo4aomEV+oioh119SQQd49fUSfZxUav8Z5YJ4/NEbRMKrS SwZ9v1m12obpnNyhSebAnzPbPyL24nHFRYezgAT/rag3JBQzDrvoWEDETY0S4o3Nt5UQ VRqsWUBEWddOY6TKnvgYWK6/yUgZvOPHW7ghNLseU20I3+BlKjP0tMnmx0pZBedSF2If uF2W3zSHpSKeRa5p05o2NHmsO5nSqZERxaVU+mllTbFCGjLB2OQ6AeVdLS9MI/kINoRc yAsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:reply-to:user-agent :mime-version:date:message-id; bh=AQnsbuWUC9GzJbJyZydIoOpuiXLjLgkaavCile2Cl4o=; b=yoArekGE0V7Y/u7n/BSl62USZwp6s2KpDQ1oaXev+m9nHcajU7ucr78hvoFTc6PJyB hspnlqOPc/k/YWzr9/v9qKEKtjxNeyjZlaIHh3PqInE5DCAiQ8ckyImi93tHvXKQI5aE D7kznG/p1YN2tE4LtB65qCG6tK1XWnLumEe+6XE6wDZNqwHfec0FYxlOXL2lkAQJvipa BlCI8iHpOTBGhGSgyDI7vPViyebflXz1epFfrvS5iNZ6apdg+y+EylJevpFAe0Z+fGP0 VxEzOR/72PlXwlWe7t2xtgL1vMF+xEhB/ltJnmFLBtAwnhhF987o3l4F3bvY5itwWi6N 3GFA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v21-20020a1709063bd500b0070870e20c98si2738593ejf.123.2022.06.24.09.02.11; Fri, 24 Jun 2022 09:02:47 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232562AbiFXPif (ORCPT + 99 others); Fri, 24 Jun 2022 11:38:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232556AbiFXPiZ (ORCPT ); Fri, 24 Jun 2022 11:38:25 -0400 Received: from mailout.easymail.ca (mailout.easymail.ca [64.68.200.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F15BE1E3F8; Fri, 24 Jun 2022 08:38:23 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 36ABB61F0C; Fri, 24 Jun 2022 15:38:22 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo09-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo09-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id E8sVpuImiYNQ; Fri, 24 Jun 2022 15:38:22 +0000 (UTC) Received: from mail.gonehiking.org (unknown [38.15.45.1]) by mailout.easymail.ca (Postfix) with ESMTPA id E956B61EFC; Fri, 24 Jun 2022 15:38:21 +0000 (UTC) Received: from [192.168.1.4] (internal [192.168.1.4]) by mail.gonehiking.org (Postfix) with ESMTP id 146083EE4C; Fri, 24 Jun 2022 09:38:21 -0600 (MDT) Message-ID: Date: Fri, 24 Jun 2022 09:38:20 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Reply-To: khalid@gonehiking.org Subject: Re: [PATCH v2 2/3] scsi: BusLogic remove bus_to_virt Content-Language: en-US To: Arnd Bergmann Cc: linux-scsi , Linux Kernel Mailing List , Arnd Bergmann , Jakub Kicinski , Christoph Hellwig , Marek Szyprowski , Robin Murphy , "open list:IOMMU DRIVERS" , "Maciej W . Rozycki" , Matt Wang , Miquel van Smoorenburg , Mark Salyzyn , linuxppc-dev , linux-arch , alpha , linux-m68k , Parisc List , Denis Efremov References: <20220617125750.728590-1-arnd@kernel.org> <20220617125750.728590-3-arnd@kernel.org> <7a6df2da-95e8-b2fd-7565-e4b7a51c5b63@gonehiking.org> From: Khalid Aziz In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On 6/23/22 08:47, Arnd Bergmann wrote: > > > Can you test it again with this patch on top? > > diff --git a/drivers/scsi/BusLogic.c b/drivers/scsi/BusLogic.c > index d057abfcdd5c..9e67f2ee25ee 100644 > --- a/drivers/scsi/BusLogic.c > +++ b/drivers/scsi/BusLogic.c > @@ -2554,8 +2554,14 @@ static void blogic_scan_inbox(struct > blogic_adapter *adapter) > enum blogic_cmplt_code comp_code; > > while ((comp_code = next_inbox->comp_code) != BLOGIC_INBOX_FREE) { > - struct blogic_ccb *ccb = blogic_inbox_to_ccb(adapter, > adapter->next_inbox); > - if (comp_code != BLOGIC_CMD_NOTFOUND) { > + struct blogic_ccb *ccb = blogic_inbox_to_ccb(adapter, > next_inbox); > + if (!ccb) { > + /* > + * This should never happen, unless the CCB list is > + * corrupted in memory. > + */ > + blogic_warn("Could not find CCB for dma > address 0x%x\n", adapter, next_inbox->ccb); > + } else if (comp_code != BLOGIC_CMD_NOTFOUND) { > if (ccb->status == BLOGIC_CCB_ACTIVE || > ccb->status == BLOGIC_CCB_RESET) { Hi Arnd, Driver works with this change. next_inbox is the correct pointer to pass. Thanks, Khalid