Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1500121lqz; Mon, 1 Apr 2024 08:09:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVNvkkmCXDIDCMdagKQCKrDFhZwnIeYEfMngAMA3VK1kiD7sokeFrYTPoKhxzz5ZPB94BWcbndoSNRjvj0lUOLfwq0UO0yBVZ4suZlXjA== X-Google-Smtp-Source: AGHT+IGIScjO91r3BkZpxN6dzGbndQgpz/1HNG5VtQD9X+CK/KF/6NJ2WVXerg26Hlqb3SDu7ldO X-Received: by 2002:a05:620a:8326:b0:78a:25de:820a with SMTP id pa38-20020a05620a832600b0078a25de820amr9595883qkn.71.1711984166906; Mon, 01 Apr 2024 08:09:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711984166; cv=pass; d=google.com; s=arc-20160816; b=rybudvE/oNLr6AOU5hVoLdDyv2NsbLzOtA52llg/E+s9U9P4Mt55ZkUj8vaCE12r8m UXwRthxt2iS4pIPPeCsRheJNpbpUC6V9Sd25PI0NzvvSdsg6XfVvbG/8NXfExstNMd5v Sv+bxbY5BaGBWnRQws1cWS1PnyKfY/FdMSeId3dSbGzVExJ8/KFuaexugSE7VEmwaQ9Z KKl9dPjlCA0FGtsbtZuXIJCQY1l+JRihVTAVdQUDVUg8gqUXohou9CwCVPHcgVcoR+S9 NoVJ0t6B6fOisVOvZapJ0Uij3Y2OZ379Jx5bAmXFTxVWqVfFK4FKzBp6L12yTu0k14YZ jnLg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=pVYU8GbKC7yGxger5d4I7Be1o72Atk8Z4mAA6WFepzY=; fh=yYPKesJWdvOlGpfJXhvsYE9Bop1VGkjr8DyAoiRdkJg=; b=N2MTh/aoMaFL+C0+sgx96+s8XIJ/yQGBPu0XuZ4EogwjJq46Jlr5xzQ0jhgLbiQQTg MtP+SjWADr/qQOu7lXGH6mpc7jAB2KIfgbB85D7PRPEcJKMkgEp+nVuR79fQiox/vpy7 V47kMgkUWtxLz9g3TIF29G3zcWcBKKrjJQnv5Lw60tHt+/5DHpBg/bammc4ZLb3qoEtd 51YNZiT+qUtSJiuhlX7sAmZYFUey7lUD2a97fzUIbx6VnaFUVNtF/RwsQ2wai+KMBXpO w/sMLHVJQlZU2xU8Dlssb3t8q58K4zW7h47SFEg5HVyn2FEWj1CEN1QbC1PGw61KNkkt eI0g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W8oXkn7y; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-126773-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126773-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id v11-20020ae9e30b000000b0078a3a95c3dbsi9794269qkf.106.2024.04.01.08.09.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 08:09:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-126773-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W8oXkn7y; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-126773-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126773-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8316F1C20FA3 for ; Mon, 1 Apr 2024 15:09:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3AEAD446A1; Mon, 1 Apr 2024 15:09:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="W8oXkn7y" Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C81DE4501C for ; Mon, 1 Apr 2024 15:09:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711984156; cv=none; b=T/RkM0CKdztfCHkOf/oBbO7K6pTere0lmEdB819zEFEhZhc5wK3WT1Lu/P4/IfIeOQ2lVVcMS6WIATWDjuGfVjg0FpfvneqK8eAql6vmMlomHwo3da27M+I+iZSuhscX0+dRjM6dH0dvMn6+/tziZtdqbjjFVMuw15E7+6fzj1M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711984156; c=relaxed/simple; bh=Cty+UnQToC59kYZv18cUD97vngjCf03hJr63ChFyqoM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=U9dv0IEImXwOzZlLHXjU6MfLEN93GFMpY1EhFQVne+Th5esAC7xT9LdjuwGVM+mB1C0F2kvnQXaskRDvJCGu1m0PquLLIUOzNMKOC66NtmsSWmnZ4mqUo1fCcC+ywbP/8NslUzZBgpIW7KiF+ZiDUH2URSTfZ5Nh9YwiItpSoY0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=W8oXkn7y; arc=none smtp.client-ip=209.85.214.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1e0f3052145so38668785ad.2 for ; Mon, 01 Apr 2024 08:09:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711984154; x=1712588954; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=pVYU8GbKC7yGxger5d4I7Be1o72Atk8Z4mAA6WFepzY=; b=W8oXkn7yT0NPole+hobNWxtahGo2JONnmUh9n2CTchYBuD2iba5jqTb8BSG+qzCN4P lnZJJg7UcilNVI+s/ZHscCBBPwyrAyWlHWAgsMdb8ZfaGBbpnPXo8VehIpwP7NyYVH4c lbefectmX/3zPvCpNEN+kH8IPMvBJZ0q2CA8GDz4ZMc5lUgN3PWyhnTWxYHOOjacSwhi Ag8DV4HSjVp4s9jhMptI69h/7/4t2AP6QVL3RIGDIjwtigpC5f0RiQ3Yw4bOmHjKgnJE r0vPYLrr4S60ei6VeHnBam3rRDBOWYu+yyhNgKxTTFR449ZwO0skGCiGHUcm5hqvU3S2 e1bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711984154; x=1712588954; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pVYU8GbKC7yGxger5d4I7Be1o72Atk8Z4mAA6WFepzY=; b=leuXdDS7OYQqEVoxW5gR7D5J7JgINGUvr3tJ7vNNJTG0c2H/1476oTKgrde1+jOM+q uaWp0C2gIpK7fUSB4wdR63ygVooFYAwkCJcpUBhuvG78NYpaeP0xol3bd5FejNBLbpN3 0r3a+jL6qu42b/jCNbTQFZXemGUq3ytvJ2VzvOAEM8TrML89nuB10rMO5GpCOKCwK+bA pGZDdkFGTDChf51SGhy99LroC1aSiTjdhu+4xAjFKg210rkioPPpJ2Wb+u6SAuaxhvtk tDPb+Ew7HFLqD2HQX5rqkNpeqOCDzqFraoAPWKBkD/mk4qFZzPWL7SCTcBVajVcXd5AO uYtg== X-Forwarded-Encrypted: i=1; AJvYcCXLCE4BHA4WudyEj8dvH0RMdewiKfvoMTm8uSKcpQ2Ugq5NYt2F0PwVn5zArEjYYaq8H6AGHrAzEYqMuyf/tARWVduzRv7WP2weCED0 X-Gm-Message-State: AOJu0Yz/FijAtBTw6B7bONVW6ZweVyjUsgjyP6BdQNBjOSkQz1IJrofJ S9aL2TKyhyv5iArmbmUD6wpI6eNq3eY+0RkJ0IAqyOIVu6vI4WrClF0j+JqWLA== X-Received: by 2002:a17:902:684e:b0:1e0:ac2b:44ad with SMTP id f14-20020a170902684e00b001e0ac2b44admr10395300pln.35.1711984153872; Mon, 01 Apr 2024 08:09:13 -0700 (PDT) Received: from [127.0.1.1] ([103.28.246.102]) by smtp.gmail.com with ESMTPSA id jn6-20020a170903050600b001defa97c6basm9017045plb.235.2024.04.01.08.09.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 08:09:13 -0700 (PDT) From: Manivannan Sadhasivam Date: Mon, 01 Apr 2024 20:39:08 +0530 Subject: [PATCH] scsi: ufs: qcom: Add missing interconnect bandwidth values for Gear 5 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240401-ufs-icc-fix-v1-1-3bac41bdfa7a@linaro.org> X-B4-Tracking: v=1; b=H4sIABPOCmYC/x2MQQqAIBAAvyJ7bkHNCPpKdLBtrb1YKEUg/j3pO AMzBTIn4QyTKpD4kSxnbGA6BXT4uDPK1histk47bfAOGYUIg7xobE8jebOyG6AVV+Km/9u81Po BqsZFLl0AAAA= To: Bjorn Andersson , Konrad Dybcio , "James E.J. Bottomley" , "Martin K. Petersen" Cc: linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Amit Pundir , Manivannan Sadhasivam X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=2770; i=manivannan.sadhasivam@linaro.org; h=from:subject:message-id; bh=Cty+UnQToC59kYZv18cUD97vngjCf03hJr63ChFyqoM=; b=owEBbQGS/pANAwAKAVWfEeb+kc71AcsmYgBmCs4W5PnPP9s4qkoo1SJWJN/0ZpVQblpiyF1Vh BBFu4Rwm/qJATMEAAEKAB0WIQRnpUMqgUjL2KRYJ5dVnxHm/pHO9QUCZgrOFgAKCRBVnxHm/pHO 9ZrgB/42bVR2LhePhhSaPpHnN4F8xSPKlhq2wVgf4puXeFn0/pPug87DSVq7VMIok+2XnxYBFux 09VhIp1r9d7LjJWQSus7mG/8ULc/glxdMLMbqBF4OaMqxDH5aR3IXRdxKus69xiIBhDSIGdO8Kd 9PqtSG9DSZnSIBmXp0JZE0iI+9wZhnbnDj9ik2FNr934T92Z3Plaowp7ZQNGFdec5J9QKsJr5eb h/6+Ot9O/OLP0Vfvy318wKHT3IC+eGruaR6Z3WABwMnAK5eK3FadRFMr87xxomdlxE0UvVXJ5jo 0T+46URwCyIhFI8lufqLqjWmE49uWeB8kY6BN3Jcy8WPWaL9 X-Developer-Key: i=manivannan.sadhasivam@linaro.org; a=openpgp; fpr=C668AEC3C3188E4C611465E7488550E901166008 These entries are necessary to scale the interconnect bandwidth while operating in Gear 5. Cc: Amit Pundir Fixes: 03ce80a1bb86 ("scsi: ufs: qcom: Add support for scaling interconnects") Signed-off-by: Manivannan Sadhasivam --- drivers/ufs/host/ufs-qcom.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c index 8d68bd21ae73..696540ca835e 100644 --- a/drivers/ufs/host/ufs-qcom.c +++ b/drivers/ufs/host/ufs-qcom.c @@ -47,7 +47,7 @@ enum { TSTBUS_MAX, }; -#define QCOM_UFS_MAX_GEAR 4 +#define QCOM_UFS_MAX_GEAR 5 #define QCOM_UFS_MAX_LANE 2 enum { @@ -67,26 +67,32 @@ static const struct __ufs_qcom_bw_table { [MODE_PWM][UFS_PWM_G2][UFS_LANE_1] = { 1844, 1000 }, [MODE_PWM][UFS_PWM_G3][UFS_LANE_1] = { 3688, 1000 }, [MODE_PWM][UFS_PWM_G4][UFS_LANE_1] = { 7376, 1000 }, + [MODE_PWM][UFS_PWM_G5][UFS_LANE_1] = { 14752, 1000 }, [MODE_PWM][UFS_PWM_G1][UFS_LANE_2] = { 1844, 1000 }, [MODE_PWM][UFS_PWM_G2][UFS_LANE_2] = { 3688, 1000 }, [MODE_PWM][UFS_PWM_G3][UFS_LANE_2] = { 7376, 1000 }, [MODE_PWM][UFS_PWM_G4][UFS_LANE_2] = { 14752, 1000 }, + [MODE_PWM][UFS_PWM_G5][UFS_LANE_2] = { 29504, 1000 }, [MODE_HS_RA][UFS_HS_G1][UFS_LANE_1] = { 127796, 1000 }, [MODE_HS_RA][UFS_HS_G2][UFS_LANE_1] = { 255591, 1000 }, [MODE_HS_RA][UFS_HS_G3][UFS_LANE_1] = { 1492582, 102400 }, [MODE_HS_RA][UFS_HS_G4][UFS_LANE_1] = { 2915200, 204800 }, + [MODE_HS_RA][UFS_HS_G5][UFS_LANE_1] = { 5836800, 409600 }, [MODE_HS_RA][UFS_HS_G1][UFS_LANE_2] = { 255591, 1000 }, [MODE_HS_RA][UFS_HS_G2][UFS_LANE_2] = { 511181, 1000 }, [MODE_HS_RA][UFS_HS_G3][UFS_LANE_2] = { 1492582, 204800 }, [MODE_HS_RA][UFS_HS_G4][UFS_LANE_2] = { 2915200, 409600 }, + [MODE_HS_RA][UFS_HS_G5][UFS_LANE_2] = { 5836800, 819200 }, [MODE_HS_RB][UFS_HS_G1][UFS_LANE_1] = { 149422, 1000 }, [MODE_HS_RB][UFS_HS_G2][UFS_LANE_1] = { 298189, 1000 }, [MODE_HS_RB][UFS_HS_G3][UFS_LANE_1] = { 1492582, 102400 }, [MODE_HS_RB][UFS_HS_G4][UFS_LANE_1] = { 2915200, 204800 }, + [MODE_HS_RB][UFS_HS_G5][UFS_LANE_1] = { 5836800, 409600 }, [MODE_HS_RB][UFS_HS_G1][UFS_LANE_2] = { 298189, 1000 }, [MODE_HS_RB][UFS_HS_G2][UFS_LANE_2] = { 596378, 1000 }, [MODE_HS_RB][UFS_HS_G3][UFS_LANE_2] = { 1492582, 204800 }, [MODE_HS_RB][UFS_HS_G4][UFS_LANE_2] = { 2915200, 409600 }, + [MODE_HS_RB][UFS_HS_G5][UFS_LANE_2] = { 5836800, 819200 }, [MODE_MAX][0][0] = { 7643136, 307200 }, }; --- base-commit: 4cece764965020c22cff7665b18a012006359095 change-id: 20240401-ufs-icc-fix-123c7ca1be45 Best regards, -- Manivannan Sadhasivam