Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp850342rwd; Wed, 31 May 2023 06:21:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ42IJk/xBjQK6RQtsm8HI1FWxDDgsElwRQQF0G1hgvDtW7WRS/DjCMAlIKUvUZXAl8K5D8p X-Received: by 2002:a05:6a20:7f9f:b0:111:1bd6:2731 with SMTP id d31-20020a056a207f9f00b001111bd62731mr6175115pzj.7.1685539292564; Wed, 31 May 2023 06:21:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685539292; cv=none; d=google.com; s=arc-20160816; b=kb0LOqp4pIRr0PTNvaNRJD6QTFHeEZM9HPn8f4B0sgcjCMCMuLKYvzLcr0a7vf387U 5H/fKuLxvDGdg43KLsf6tFNGt8ox2ei7tQ0b0IEgTaI245BF/Q2kPTGvwffuh6JkVH8n 7wpsj74IBKS/KCSku8cf/zUD7ubSY2JK1vSUTWso9gbMzsaiXcJhr5q3AdqhCmJEe2VT dTXNKwFfwbCR+LoTROlvBl3syU0dOx6rl+PewoqbWJPADol7TrqO6GhHCVbcaJgnjbgB 06jaTXZEECLc9GdzrA6BODKmTg5JVtMnlzbR/bSkGcmoW9HqMzl5vj0UjqvGE3/IymsR HwQQ== 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:user-agent:mime-version :date:message-id; bh=xqGnCPChL19fXfFgwza4KZGrYtNeSBi3Wbd7oMZ8AFA=; b=xcP3mZOR3ygoyYsv+Ry6wEU4j+klXGAutirS6AvW/JwmiIwkzv0tL496DoOt3EfwA6 T//I6apkld41BPKYTMN+FGzDUELI6YFPCq0h3eoJVDq+M1AqNkG0gGjFs07gmVeDLrFx JIL87xCcMNvawYDMsNP083lxnvtj6OTn8gpFBXhrWDw7wFR1NuplXIb/QpmAsxfvXkl6 vZiy8FPAMCDzCLNkTeDtkbAzxW40fCtNxaTzr60ZZwvzTL/GJfMS++ME8MKP9phottKI q3mhN10XOaxMNW2A/YM3aDzaOJnJcXiu/8cn8COoyO10YGmbg7fV5IDl/fxcjPlquonR 581A== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i9-20020a633c49000000b0052c766051d3si1013860pgn.199.2023.05.31.06.21.17; Wed, 31 May 2023 06:21:32 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236019AbjEaMuG (ORCPT + 99 others); Wed, 31 May 2023 08:50:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235985AbjEaMtY (ORCPT ); Wed, 31 May 2023 08:49:24 -0400 Received: from mail-io1-f47.google.com (mail-io1-f47.google.com [209.85.166.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D89910C6; Wed, 31 May 2023 05:48:53 -0700 (PDT) Received: by mail-io1-f47.google.com with SMTP id ca18e2360f4ac-77496b0b345so150008439f.3; Wed, 31 May 2023 05:48:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685537309; x=1688129309; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xqGnCPChL19fXfFgwza4KZGrYtNeSBi3Wbd7oMZ8AFA=; b=JxzsD3gmjS9QfK89JENp4pLAKtR3Cl9RqvjfLqmvJHDUUhFJhOiCm6Z/DmxRSYdXUo vtwSdFuAqoH74xfd+ZHLcnWrSl6qqNiIvrkQHT1vTXVYI5mx+lcLmJT59JZXJ70c+Rdp oa5nrvvzOmIA1+g3IN9WBro2W4O3yBNJSOyXAxRaKE20hSRfHzgZ/smzMzGs56eOD98q 2TKbQ8pvNWZ+z/204CDzDRW3m5hWt5QyCu6eQWJE3aT/PqopGs0nVPL8oZKhKbcG0Slp m4jBX0vlNZ5UJj5dKWfIhelcCEkUCJLXf/V+Qaq6dVdcCxZTtdNGo7XG1Uhgo3oL44fF 9hoA== X-Gm-Message-State: AC+VfDyGZgxpefHh+NahFUxmzi14Pnqc53LeC646yzkbRvZDLynnNUtg 0NedC6dhUJhSmHm6T9Otf+U= X-Received: by 2002:a6b:d914:0:b0:769:a826:2818 with SMTP id r20-20020a6bd914000000b00769a8262818mr4531978ioc.16.1685537308401; Wed, 31 May 2023 05:48:28 -0700 (PDT) Received: from [192.168.51.14] ([98.51.102.78]) by smtp.gmail.com with ESMTPSA id c12-20020aa7880c000000b00646ebc77b1fsm3295119pfo.75.2023.05.31.05.48.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 31 May 2023 05:48:28 -0700 (PDT) Message-ID: Date: Wed, 31 May 2023 05:48:27 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v2 1/3] scsi: ufs: core: Introduce mcq ops to config cqid Content-Language: en-US To: Stanley Chu Cc: Po-Wen Kao , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Alim Akhtar , Avri Altman , "James E.J. Bottomley" , "Martin K. Petersen" , Matthias Brugger , AngeloGioacchino Del Regno , wsd_upstream@mediatek.com, peter.wang@mediatek.com, stanley.chu@mediatek.com, alice.chao@mediatek.com, naomi.chu@mediatek.com, chun-hung.wu@mediatek.com, cc.chou@mediatek.com, eddie.huang@mediatek.com References: <20230530023227.16653-1-powen.kao@mediatek.com> <20230530023227.16653-2-powen.kao@mediatek.com> <1c182151-6e8c-5068-b38c-f8e842e6e13b@acm.org> From: Bart Van Assche In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 5/30/23 18:54, Stanley Chu wrote: > In addition, some benchmark data shows that the performance can be > improved by using fewer CQs to aggregate the interrupt handling of > completion requests. What has been measured? IOPS only or both IOPS and latency? How big is the difference? A few percent or more? For which number of SQs and which number of CQs has performance data been measured? Would the following work instead of introducing a new vop? - Introduce a new capability flag, e.g. UFSHCD_CAP_SINGLE_CQ. - Set that flag from inside ufs_mtk_init(). - Modify the UFS core driver such that the number of completion queues depends on the UFSHCD_CAP_SINGLE_CQ flag. > Therefore, we would like to introduce a vop to allow the host to > configure it accordingly. We do not accept new vops upstream without a user. Where is the implementation of the new .config_cqid() callback? Thanks, Bart.