Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp375254rdb; Thu, 2 Nov 2023 06:24:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHCDjetLVFnc24N1K1lDP89GsVgq/Mp7j1KbcoeHWGIjYgy61v/VtsRqdjBWEklGxhUyuvW X-Received: by 2002:a17:90a:31c5:b0:27d:549b:3e65 with SMTP id j5-20020a17090a31c500b0027d549b3e65mr15555648pjf.49.1698931456581; Thu, 02 Nov 2023 06:24:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698931456; cv=none; d=google.com; s=arc-20160816; b=Rx4POpDbIDiK1kQtmKS3NRMNZM29IN7WKs2z5MBFVULCHJKLlM8kYIFH5HZzEkgEHp GA6ZqlJdZp3XeHcjRjnppot20MtQfMVilXs+9VdZLfB7ABToVIDlGgaTF8nu1fKjQdx8 G8rCuHrI6c47CO2n5T5Do0Wt8hG3Di5G5gxkxYpxo17Sygzv93qSiYVSXqHf2EUfwmA0 MH3wVBMGmQ04aFMdpUucxm/pz9tulAQgKqwSNtOceQw3soGw29ZF8IcertYZ+kaFWcwY 4Al0wUft2yNSDBTCtgG8kpOlXpIlR/2SJHBWDnqcoCLxYgW/7sTb2oDMxVKkgFQbtbUU xHCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=PVyozoiaeEmN1Mqspc/fEt9AeFWqakfpxz9o248h/pM=; fh=qJXH1fZHMuG6hXd4zZZjpQ0zEencYMQ+XxSZgPdDsp4=; b=e4OdT4LqkKdqzblnxEaHlImFKiiE2GbOW1NQ6OJ83Fpn1UxPoMM4O5r2QHIrNSu0/3 9zTbKbHRzBavVOs1pafVUcraJ8loT8o5+hLD1a3YBQ1cnHyx/dZhaqZg/u4HWMVDJtB8 f6sed6dFZVOXqxXRJxZP+cvOOcqqub0CWuvSxRFtiPT9X3JCQRevSzjeQEOpJNcWWpgz gmPII3WR8QRBj8wXYR4JHq7x40G0Dh5aOA0/LWpiEfElQjEUPZSW0dO4iZGasWKyqH2+ mKsEgTAZuzdHZJG3vifExkM2oVws2WKlCfi77qTkmnKY21edI+yToY+2WzlfgZoeWfhu 5bKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=UML5Cull; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id qe8-20020a17090b4f8800b0027d8d426dfcsi2885970pjb.103.2023.11.02.06.24.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 06:24:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=UML5Cull; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 66C988072803; Thu, 2 Nov 2023 06:24:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376428AbjKBNYL (ORCPT + 99 others); Thu, 2 Nov 2023 09:24:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229571AbjKBNYK (ORCPT ); Thu, 2 Nov 2023 09:24:10 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FFC5D7; Thu, 2 Nov 2023 06:24:07 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2c50906f941so13041831fa.2; Thu, 02 Nov 2023 06:24:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698931446; x=1699536246; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=PVyozoiaeEmN1Mqspc/fEt9AeFWqakfpxz9o248h/pM=; b=UML5CullAlYhiUYRshJaR+HWM22zcYguZHjyQSQhjxF2gm4NqXVRddxeP2O8sm1RQR PoXCNQFM+NNW1npnXU1QwDJjySWY8sobkEll8rf5UJ1jndDJgHZlScBQAK6dFpV4BDlP tpdhmIqL1DcxB+nQ/W1+DrJdcs6Ea3QuTh4m2zLY+8UImcQ6kIdjX8QIM4UugL1kDcbL BhfumCVp7YDl12gvGdh9DHAcQaYnHd5cFUBXiTsHwJbhggK8P98lxG5x/NRwRR1dpLGk VlQuqhOHfDrn5N/qOwDURyiYtXBZSHe6bf4aeUfrNiULy6rPIMphAcW0sCqPmds38BLJ zzUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698931446; x=1699536246; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PVyozoiaeEmN1Mqspc/fEt9AeFWqakfpxz9o248h/pM=; b=sy4ybIQFacRJmCwlGApPw0NueXPHeTtEGmkGubo1cesUubXvdynKY5jNqJrzhym+vv i2Q703d987rXU65LHlu5K0M7pL0cRq7xwvXuT9PVk7BWG4vF/Jj7ShTKkw4zwL7cTBvl +K9VjEVpCiJAWFK15s2xY7Uas73PJjyOeulsva1WP9g4Lu8uKJKCFNztt+sJsssCn682 bNHpHP7IYYjIIFu46BHTcT4Z20ZxN2etS42jfjFBlufDtXFp1jIZ0OQ3VpYIDSNkRUcM 84OelOW/an3GzE2DG18gXdECqc2wSAqn8ootHizllktF+FDIqhZxbLlLIHP/x8yriRPI plew== X-Gm-Message-State: AOJu0Yxxe7AAn2/JxkuP1x0Xbf46y2B25NbqdQiJplDVQIiJ8b8Datvg BnwG/zmek2G1jlVxlaQWrTHVKVFKLWc/LUAcyQ== X-Received: by 2002:a2e:bc29:0:b0:2c5:b583:f167 with SMTP id b41-20020a2ebc29000000b002c5b583f167mr17564967ljf.34.1698931445262; Thu, 02 Nov 2023 06:24:05 -0700 (PDT) MIME-Version: 1.0 References: <20231102052426.12006-1-naomi.chu@mediatek.com> <20231102052426.12006-2-naomi.chu@mediatek.com> In-Reply-To: <20231102052426.12006-2-naomi.chu@mediatek.com> From: Stanley Chu Date: Thu, 2 Nov 2023 22:23:53 +0900 Message-ID: Subject: Re: [PATCH v3 1/1] ufs: core: Expand MCQ queue slot to DeviceQueueDepth + 1 To: naomi.chu@mediatek.com Cc: 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 , Bart Van Assche , "James E.J. Bottomley" , "Martin K. Petersen" , Matthias Brugger , AngeloGioacchino Del Regno , Manivannan Sadhasivam , Asutosh Das , Can Guo , wsd_upstream@mediatek.com, peter.wang@mediatek.com, casper.li@mediatek.com, powen.kao@mediatek.com, alice.chao@mediatek.com, chun-hung.wu@mediatek.com, cc.chou@mediatek.com, eddie.huang@mediatek.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 02 Nov 2023 06:24:15 -0700 (PDT) On Thu, Nov 2, 2023 at 2:26=E2=80=AFPM wrote: > > From: Naomi Chu > > The UFSHCI 4.0 specification mandates that there should always be at > least one empty slot in each queue for distinguishing between full and > empty states. Enlarge the `hwq->max_entries` to `DeviceQueueDepth +1` > to allow UFSHCI 4.0 controllers to fully utilize MCQ queue slots. > > Fixes: 4682abfae2eb ("scsi: ufs: core: mcq: Allocate memory for MCQ mode"= ) > Signed-off-by: Naomi Chu > --- > drivers/ufs/core/ufs-mcq.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Stanley Chu