Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3596455iog; Tue, 21 Jun 2022 01:55:22 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u8Bo5ppHgbyMA488YBIaLcDIRMVzs7uDa/xM7K6ofWuQYs2PmuGtNnDITSdXRaHVcw41yX X-Received: by 2002:a17:906:af71:b0:70b:cc0b:1f14 with SMTP id os17-20020a170906af7100b0070bcc0b1f14mr24881619ejb.669.1655801722100; Tue, 21 Jun 2022 01:55:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655801722; cv=none; d=google.com; s=arc-20160816; b=UEVD84ol8sVHjwlEfy+zNdwMsXWEaUUc509OBXb0L8uc2Ks/oKp177TPL5eWbUPEkZ 53GykUyEmlOqvJMElaFbpIGzxSgk2EDCxGf5W5iAMeZA78mRfa3Rh00OPV4zxxGSQWYC 1fX0RXYu+jQ2SgaZZTlsUJcagcUDl2vAlqRIWjOJ6toika6XTvF0QwP96Pjt4lL7gopq DLKdf43Z7SDCGy8N6s2QGfrKCqbbKkTFKDVV7Ybu+EZf0nRlHCGWVICflYeyve9V0dB+ 6x5THF2nl2TrzWKSDOMOSn/WxRCLn07MnXDVJE8HCi70kiAWUfp1yDomKvj9GVyfsoll hgSA== 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:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature:dkim-signature; bh=RrjsV6j2GxgikRLfvlQrNeSRen6nfTOp6oxrH6LHqfA=; b=0VbvsNHH1MniGNSr1wkUmOe8DImN+yCnyxjMPuujdapWTmxryqGBH12TtDUxR3Zrhc 0hVEQaRSRs8tCBpKqWtf9hEbuOKOf/lpvk8BZ5s8lxtrY/r2xX9bN75CcrkaXwSQWl7p gVZnDW+9arkGeovZ/I8VmWOU1EZrt3Wmfqd76R9ovEdTpcQpAFZIZ3myf6AQJMK5Upoo TyWQpaBJabwjliK0XI5wjLocmBUuXS8sikkJ4/c7yAczrfISqcJLOi+raQgkqlV2unQ/ b0+MEMBEtkU4uPG1MBYdGnCkgrKtJriWRXXtb9/mDuJ7Utr+W5ZOfJiesXDM7VNzlDCY Fr5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="K0/rxxRx"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y20-20020a056402359400b0042bd9d36e02si18803761edc.584.2022.06.21.01.54.56; Tue, 21 Jun 2022 01:55:22 -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=@suse.de header.s=susede2_rsa header.b="K0/rxxRx"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347085AbiFUInL (ORCPT + 99 others); Tue, 21 Jun 2022 04:43:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347709AbiFUInI (ORCPT ); Tue, 21 Jun 2022 04:43:08 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E799248C6; Tue, 21 Jun 2022 01:43:06 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 3BCAA1F8DE; Tue, 21 Jun 2022 08:43:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1655800985; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RrjsV6j2GxgikRLfvlQrNeSRen6nfTOp6oxrH6LHqfA=; b=K0/rxxRxD+aiJWdzNoDa+0SoXPF1IC6BQYG8KRz+uLlaLWZurLtKhY6UYOEfPLCmqSRC/w Y1D5KwymXhBqhBR9crYjVykXd3bn4B3i3+h43/ukFTQ8zjpwPQ13XzqCAo01A3ELViJzf6 uSLq81TeqOgtKl81+nNvuE01bTKb9wU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1655800985; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RrjsV6j2GxgikRLfvlQrNeSRen6nfTOp6oxrH6LHqfA=; b=4sGC2ZpcdwRXnQXA0/sC53dBVT8LwJN6GZh0t4vK8khlBh7SaMpQztL5XFMRTpAKtvDoDF +22dtf7sd6JD1TDA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id DB47813A88; Tue, 21 Jun 2022 08:43:04 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id A00dM5iEsWLADgAAMHmgww (envelope-from ); Tue, 21 Jun 2022 08:43:04 +0000 Message-ID: <361336a6-f3be-c7d9-7bdb-20c30c9a72df@suse.de> Date: Tue, 21 Jun 2022 10:43:04 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Content-Language: en-US To: Arnd Bergmann , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Arnd Bergmann , Jakub Kicinski , Christoph Hellwig , Marek Szyprowski , Robin Murphy , iommu@lists.linux-foundation.org, Khalid Aziz , "Maciej W . Rozycki" , Matt Wang , Miquel van Smoorenburg , Mark Salyzyn , linuxppc-dev@lists.ozlabs.org, linux-arch@vger.kernel.org, linux-alpha@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-parisc@vger.kernel.org, Denis Efremov References: <20220617125750.728590-1-arnd@kernel.org> <20220617125750.728590-2-arnd@kernel.org> From: Hannes Reinecke Subject: Re: [PATCH v2 1/3] scsi: dpt_i2o: drop stale VIRT_TO_BUS dependency In-Reply-To: <20220617125750.728590-2-arnd@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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/17/22 14:57, Arnd Bergmann wrote: > From: Arnd Bergmann > > The dpt_i2o driver was fixed to stop using virt_to_bus() in 2008, but > it still has a stale reference in an error handling code path that could > never work. > > Fix it up to build without VIRT_TO_BUS and remove the Kconfig dependency. > > The alternative to this would be to just remove the driver, as it is > clearly obsolete. The i2o driver layer was removed in 2015 with commit > 4a72a7af462d ("staging: remove i2o subsystem"), but the even older > dpt_i2o scsi driver stayed around. > > The last non-cleanup patches I could find were from Miquel van Smoorenburg > and Mark Salyzyn back in 2008, they might know if there is any chance > of the hardware still being used anywhere. > > Fixes: 67af2b060e02 ("[SCSI] dpt_i2o: move from virt_to_bus/bus_to_virt to dma_alloc_coherent") > Cc: Miquel van Smoorenburg > Cc: Mark Salyzyn > Signed-off-by: Arnd Bergmann > --- > drivers/scsi/Kconfig | 2 +- > drivers/scsi/dpt_i2o.c | 4 ++-- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/scsi/Kconfig b/drivers/scsi/Kconfig > index a9fe5152addd..cf75588a2587 100644 > --- a/drivers/scsi/Kconfig > +++ b/drivers/scsi/Kconfig > @@ -460,7 +460,7 @@ config SCSI_MVUMI > > config SCSI_DPT_I2O > tristate "Adaptec I2O RAID support " > - depends on SCSI && PCI && VIRT_TO_BUS > + depends on SCSI && PCI > help > This driver supports all of Adaptec's I2O based RAID controllers as > well as the DPT SmartRaid V cards. This is an Adaptec maintained > diff --git a/drivers/scsi/dpt_i2o.c b/drivers/scsi/dpt_i2o.c > index 2e9155ba7408..55dfe7011912 100644 > --- a/drivers/scsi/dpt_i2o.c > +++ b/drivers/scsi/dpt_i2o.c > @@ -52,11 +52,11 @@ MODULE_DESCRIPTION("Adaptec I2O RAID Driver"); > > #include > #include > +#include > #include > #include > > #include /* for boot_cpu_data */ > -#include /* for virt_to_bus, etc. */ > > #include > #include > @@ -2112,7 +2112,7 @@ static irqreturn_t adpt_isr(int irq, void *dev_id) > } else { > /* Ick, we should *never* be here */ > printk(KERN_ERR "dpti: reply frame not from pool\n"); > - reply = (u8 *)bus_to_virt(m); > + goto out; > } > > if (readl(reply) & MSG_FAIL) { Reviewed-by: Hannes Reinecke Personally I wouldn't mind to see this driver gone, as it's being built upon the (long-defunct) I2O specification. We already deleted the i2o subsystem years ago, so maybe it's time to consign this driver to history, too. Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), GF: Felix Imendörffer