Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp161954pxb; Wed, 24 Feb 2021 22:06:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJz8VkKVQp4mEKjHhgq4CwwQLq5TrtHWGUVUaBnYhTDvsVi3U+qXzEFaO76JymwFRMDNNARX X-Received: by 2002:a17:906:26c9:: with SMTP id u9mr1212219ejc.166.1614233161787; Wed, 24 Feb 2021 22:06:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614233161; cv=none; d=google.com; s=arc-20160816; b=u+xZGFCBl818uuqhx6zJ0ClRd+YEhI1fCIuDmOFazAzE1XuUVBBttx3sCyqXpWUY/U 0UaLL7H+PklTMWdGPHLS1yktNNTUoLwKgLkTK4l7qujouUwHGog72z6Giq4gjPEjZwat jdGLPvJi8/GDYQXmB+KL0F/AqE0HQIS8VBqOiq1P3Bz/s3S7nwaDStcgbYsl+rWaeNxS wqzW7R9DydFUcHBugADmwl479/4qBeqp4QmRfXpK2JYLELP8MpE7kORb19CsOQSjVifR oJDYPem2yu72dJ30CV5y+O2RDR8jpxuj7HI+1lbHg/hM2of0LzJfmSNeRwxRrpaFtPr9 zSKQ== 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 :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=uZ11+BPLVV8ATu0tm3/CjB+leXcBozizkpwVKg+qz3o=; b=tHVc3i1RiXss5oRxFEP5jBk0q8XC5taUV6JTp3gY3nT+FZ8HLCGa7EFqgMNIqn3xe1 LcUpm/bTp89fkA4LVWmzfKkv5tyOjSJd8HyK+YLKHwx583HYopiwKcSYMLe8iwhxCeKG rVwi6Cqro4csWvzZF+fnWFGrOfxxDetyZChyliawdnzxILgsIKp0twvBu3b0iQcGkxEF 0U/TlCfdxP7R55aWvGVKJBzaMiZEADFR7DuqeN/3JhFZnXlZsov8kSFpHOSkcs4HIylk w37vIC+1YDae2wsDcQNLQzNklt2KHikg26MNJQ9/U7A/IR8ih/o0e887wjlCtEBOhG8+ yifg== 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 v19si2568474edx.484.2021.02.24.22.05.32; Wed, 24 Feb 2021 22:06:01 -0800 (PST) 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 S236833AbhBYCiN (ORCPT + 99 others); Wed, 24 Feb 2021 21:38:13 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:12646 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234044AbhBYCiL (ORCPT ); Wed, 24 Feb 2021 21:38:11 -0500 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4DmH2v6nBLz16CR4; Thu, 25 Feb 2021 10:35:51 +0800 (CST) Received: from [127.0.0.1] (10.40.192.162) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.498.0; Thu, 25 Feb 2021 10:37:26 +0800 Subject: Re: [Linuxarm] Re: [PATCH for-next 00/32] spin lock usage optimization for SCSI drivers To: Geert Uytterhoeven References: <1612697823-8073-1-git-send-email-tanxiaofei@huawei.com> CC: "James E.J. Bottomley" , "Martin K. Petersen" , scsi , "Linux Kernel Mailing List" , From: Xiaofei Tan Message-ID: <58053d07-ca58-2b78-36ff-40ecf162ed49@huawei.com> Date: Thu, 25 Feb 2021 10:37:26 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.40.192.162] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Geert, On 2021/2/24 17:41, Geert Uytterhoeven wrote: > Hi Xiaofei, > > On Sun, Feb 7, 2021 at 12:46 PM Xiaofei Tan wrote: >> Replace spin_lock_irqsave with spin_lock in hard IRQ of SCSI drivers. >> There are no function changes, but may speed up if interrupt happen >> too often. > > I'll bite: how much does this speed up interrupt processing? > What's the typical cost of saving/disabling, and restoring interrupt > state? It could only take a few CPU cycles. So there is little benefit for speeding up interrupt processing.You could take them as cleanup. Is removing this cost worth the risk of introducing subtle > regressions on platforms you cannot test yourself? > Currently, only found M68K platform support that high-priority interrupt preempts low-priority. No other platform has such services. Therefore, these changes do not affect non-M68K platforms. For M68K platform, no one report such interrupt preemption case in these SCSI drivers. > BTW, how many of these legacy SCSI controllers do you have access to? > Actually, no. > Thanks for your answers! > > Gr{oetje,eeting}s, > > Geert >