Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp2550pxy; Tue, 20 Apr 2021 11:05:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxysgy6LeiaiJGQmlPgSo/miSZct2CUshJl6k3GOOHmr66mO5JmvxlThvNF8/TQnS0BirFQ X-Received: by 2002:a65:5808:: with SMTP id g8mr2281267pgr.137.1618941901358; Tue, 20 Apr 2021 11:05:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618941901; cv=none; d=google.com; s=arc-20160816; b=ctk2/SPJFfhf7w0GYMfPN2XhBXMPvJQSPc4kIbDYb48HTOwEljyP/Ecv+s6O5EUypw kB5182rxA8OB5vVQxJsAf54i8nQ2yy1yajWE4lflfxuiyaAlnB5s1YMAe+biXvZerjYA mzfTw/egpzx6ZxSnn4uBUPf4Ys7nEF+/lNQYcBjkgo0DrARjy79XYQREfBZTL8agXe37 VXq7QNazcN7pLAEnYjFR8eNvvajgy08AC6L0YhYcVHY3AN0GbOUMCMfIbQQqO7GyzsO4 sk7BbxABJT4QzOy9Hgr7vlFe2xZU/+82BDB43JnvMQp2fKvf92WnaZdGuqkiTmttpgWa kNeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=M8NuYKfqV+6AO0L80MhjArSPmt5LRVOWnIf4M+8Dmgc=; b=TvBGRRFzRpSd0m7JRZh/v027pJixh7BptO3wlFLXgFZBF5ij+lXtV4QtTSwnM6pzRj nbjmggMj+W/MmgKpRffwPE86yj4joWjBN8GGUKXe/x8CUedKcl8DgtZjKppjMjqwkgJf v7RUcZRKYEGoSVsW4SX+OIz04TFNdph/jUmupzu7QkZEjtfwPJCOtFa/JHiHdxJECruR 4LjW4lL7AVREKTyfwzHzGLPwlrF4hjQGTiz7+lAKDrUusBwuLeormoGHUrcOViekw+KX 2ClKDtt3B5X/M25G1dob0/+Sl40YxIyKthUHs8wE5NRy6KJaqvBOHSHJQvrddvCLGVEZ 7kXA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f16si3145148plr.282.2021.04.20.11.04.48; Tue, 20 Apr 2021 11:05:01 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233617AbhDTSDK (ORCPT + 99 others); Tue, 20 Apr 2021 14:03:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233629AbhDTSC5 (ORCPT ); Tue, 20 Apr 2021 14:02:57 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::4]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6983AC06138E; Tue, 20 Apr 2021 11:02:25 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id C6FCC92009C; Tue, 20 Apr 2021 20:02:24 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id BFB4692009B; Tue, 20 Apr 2021 20:02:24 +0200 (CEST) Date: Tue, 20 Apr 2021 20:02:24 +0200 (CEST) From: "Maciej W. Rozycki" To: Khalid Aziz cc: Ondrej Zary , "James E.J. Bottomley" , "Martin K. Petersen" , Christoph Hellwig , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/5] Bring the BusLogic host bus adapter driver up to Y2021 In-Reply-To: Message-ID: References: <202104182221.21533.linux@zary.sk> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 19 Apr 2021, Khalid Aziz wrote: > > Khalid: I have skimmed over these documents and I infer 24-bit addressing > > can be verified with any MultiMaster adapter, including ones that do have > > 32-bit addressing implemented, by using the legacy Initialize Mailbox HBA > > command. That could be used to stop Christoph's recent changes for older > > adapter support removal and replace them with proper fixes for whatever > > has become broken. Is that something you'd be willing as the driver's > > maintainer to look into, or shall I? > > Do you mean use OpCode 01 (INITIALIZE MAILBOX) to set a 24-bit address > for mailbox in place of OpCode 81? Verifying the change would be a > challenge. Do you have an old adapter to test it with? If you do, go > ahead and make the changes. I will be happy to review. I have only a > BT-757 adapter. Yes, but upon inspection it looks like our driver doesn't use that opcode and relies solely on 32-bit Mode Initialize Mailbox (0x81) even with ISA devices. That makes sense as documentation indicates the firmware has been designed to be unified so that the same binary microcontroller code runs across all BusLogic MultiMaster devices. Anyway given the unified API it should be straightforward to simulate an older adapter with a newer one, except for host bus protocol differences. So verifying the workaround for broken BT-445S adapters continues to work once modernised is not going to be a problem as it can be unconditionally activated in a debug environment. That would verify correct DMA bounce buffer operation under the new scheme. Verifying actual ISA operations (third-party DMA, etc.) cannot be made this way, but as I understand the issue there is merely with passing data structures around and that may not require too much attention beyond getting things syntactically correct, which I gather someone forgot to do with a change made a while ago. So that should be doable as well. NB as noted before I only have a BT-958 readily wired for operation. I don't expect I have any other BusLogic hardware, but I may yet have to double-check a stash of hardware I have accumulated over the years. But that is overseas, so I won't be able to get at it before we're at least somewhat closer to normality. If all else fails I could possibly buy one. I have respun the series now as promised. Does your BT-757 adapter avoid the issue with trailing allocation somehow? Maciej