Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp357822pxb; Thu, 19 Aug 2021 00:53:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUy3NLcUZZVZc8FtXBT36+gPCjr1qwD+pnTdRFQN6IgcS3qyiKaAID3Lj3cCnNMl0lRT9S X-Received: by 2002:a05:6e02:20c3:: with SMTP id 3mr4115696ilq.139.1629359618142; Thu, 19 Aug 2021 00:53:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629359618; cv=none; d=google.com; s=arc-20160816; b=T8RttyZ7LKFDGguPsUo/J5T0OL85mK5HzQkUr1mobtfAiiwpJX1rtJ2TCxM9DuqR2m dWUwQp59ySKhgNCdK8gb03w6G1vxXwiteX/OcXxXoZFpJgyT/s3J4hlhEtb6Wo4REXpo RdRHTIK/gZydVIIPKZTv6MYaitVJFXWRB+A2bXg6+txEkdq1Namlr7IgNGZTRby4GMSr tLrs3WOmbQdUL9uXdDLm2a18F3YNbPPwhxw7qI9AnbsX1VNyKS86CagLGcr+jDgwDpHC nAZf+vlYWfoWf8QmU6WgKbLwwSjiS8f6M9YQ+f3z46ZueOI+7ips0GSaQE/PsmlWCfCK TxIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-signature; bh=zIA9A/zxCVMHASlEh9mYGogdumKuTccj78EbfSVp160=; b=hUF2wDduGyPpcsH1YlLIUxiBD8lKJbcJOkHmikhywC165KrF83Zjf/CJioYXk7HZsz enSCL/1ej5+wiGVLG6jLTIzqYC10CgE9doqomoukE/ei79tI1Qo5MDDs0FbugGhlrphK 9GaS4N8JXawGSCeANFxgr+I5aNE5SazXaQObZ7VIWmxRlIuTJjUGIwD9WnN2AUTFY0g7 oUrZ+IIZU/ThBZGky0ySlD0v3CQQeIJ1JXtEM54AESHiouQHw4eFq6F08/rukaYZ41Mu EM1r1qtVVOo/Nu1T42tkkdU96JPc8HQSTDawZVNrnn4JFUnJ4jI6M+mvBdUto1sF+Wp0 2A9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=HIdPU4Fq; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b="IFT+/4lW"; 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=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k2si2581048ilu.143.2021.08.19.00.53.20; Thu, 19 Aug 2021 00:53:38 -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; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=HIdPU4Fq; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b="IFT+/4lW"; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236826AbhHSHvb (ORCPT + 99 others); Thu, 19 Aug 2021 03:51:31 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:36932 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229927AbhHSHv3 (ORCPT ); Thu, 19 Aug 2021 03:51:29 -0400 Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (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 6EE14200A8; Thu, 19 Aug 2021 07:50:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1629359452; 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=zIA9A/zxCVMHASlEh9mYGogdumKuTccj78EbfSVp160=; b=HIdPU4FqwzI7bTu26eBgTc0hLAMRR81pIbXdPKBoniCP5NTE+u1yONCqo+PKygYm9PDQRM +aFdIn1IqvH1ZcqA/39RAmMurfVtX/wBjyNrFtCchf0kgpzOgrfmPbpVqGVwLkfgxQ0xe9 01arOehRtOUDWZKrvXx1X7uNHZLChIs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1629359452; 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=zIA9A/zxCVMHASlEh9mYGogdumKuTccj78EbfSVp160=; b=IFT+/4lW0oM8Ch4LVuY8QhuzUdiZA8mwsZUoyl7MayIbNE8apMjIPav64zxK1RpcTXwL5U +896sEjGGblNifBQ== Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (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 imap1.suse-dmz.suse.de (Postfix) with ESMTPS id 3ED2413756; Thu, 19 Aug 2021 07:50:52 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id ixKGDlwNHmEGDgAAGKfGzw (envelope-from ); Thu, 19 Aug 2021 07:50:52 +0000 Subject: Re: [PATCH 0/3] Remove scsi_cmnd.tag To: John Garry , Bart Van Assche , "Martin K. Petersen" Cc: satishkh@cisco.com, sebaddel@cisco.com, kartilak@cisco.com, jejb@linux.ibm.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, hch@lst.de References: <1628862553-179450-1-git-send-email-john.garry@huawei.com> <176ce4f2-42c9-bba6-c8f9-70a08faa21b8@huawei.com> <038ec0c6-92c9-0f2a-7d81-afb91b8343af@suse.de> From: Hannes Reinecke Message-ID: <6090371d-9688-11ae-8219-ba9929a96526@suse.de> Date: Thu, 19 Aug 2021 09:50:21 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/19/21 9:27 AM, John Garry wrote: > On 19/08/2021 08:15, Hannes Reinecke wrote: >> Hey Bart, >> >> Thanks for this! >> Really helpful. >> >> Just a tiny wee snag: >> >> On 8/19/21 4:41 AM, Bart Van Assche wrote: >>> On 8/18/21 11:08 AM, John Garry wrote: >>>> Or maybe you or Bart have a better idea? >>> >>> This is how I test compilation of SCSI drivers on a SUSE system (only >>> the cross-compilation prefix is distro specific): >>> >>>      # Acorn RiscPC >>>      make ARCH=arm xconfig >>>      # Select the RiscPC architecture (ARCH_RPC) >>>      make -j9 ARCH=arm CROSS_COMPILE=arm-suse-linux-gnueabi- >> >> >> Acorn RiscPC is ARMv3, which sadly isn't supported anymore with gcc9. >> So for compilation I had to modify Kconfig to select ARMv4: >> > > Yeah, that is what I was tackling this very moment. > >> diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig >> index 8355c3895894..22ec9e275335 100644 >> --- a/arch/arm/mm/Kconfig >> +++ b/arch/arm/mm/Kconfig >> @@ -278,7 +278,7 @@ config CPU_ARM1026 >>   # SA110 >>   config CPU_SA110 >>          bool >> -       select CPU_32v3 if ARCH_RPC >> +       select CPU_32v4 if ARCH_RPC > > Does that build fully for xconfig or any others which you tried? > Yep, xconfig and full build works. Well. Would've worked if you hadn't messed up tag handling for acornscsi :-) Besides: tag handling in acornscsi (and fas216, for that matter) seems to be completely broken. Consider this beauty: #ifdef CONFIG_SCSI_ACORNSCSI_TAGGED_QUEUE /* * tagged queueing - allocate a new tag to this command */ if (SCpnt->device->simple_tags) { SCpnt->device->current_tag += 1; if (SCpnt->device->current_tag == 0) SCpnt->device->current_tag = 1; SCpnt->tag = SCpnt->device->current_tag; } else #endif which is broken on _soo many_ counts. Not only does it try to allocate its own tags, the code also assumes that a tag value of '0' indicates that tagged queueing is not active: static void acornscsi_abortcmd(AS_Host *host, unsigned char tag) { host->scsi.phase = PHASE_ABORTED; sbic_arm_write(host, SBIC_CMND, CMND_ASSERTATN); msgqueue_flush(&host->scsi.msgs); #ifdef CONFIG_SCSI_ACORNSCSI_TAGGED_QUEUE if (tag) msgqueue_addmsg(&host->scsi.msgs, 2, ABORT_TAG, tag); else #endif msgqueue_addmsg(&host->scsi.msgs, 1, ABORT); } And, of course, there's the usual confusion about when to check for sdev->tagged_supported and sdev->simple_tags. Drop me a note if I can give a hand. Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer