Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2704011lqz; Wed, 3 Apr 2024 06:25:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWiVxRSR7NLYwuwYh9+wuZ+hSsItsU7LDKPZbo9CgrzI8lNFlkJvUrtfSz1H1vjsaQp1VhXxXF8cC8HIqB6awaGi3wzLgAwDaJlSI+ixQ== X-Google-Smtp-Source: AGHT+IFoVMF4EmEOHdkyR6Tb7RooGCnnC2DP6+nkbwy8SIstGw7QOHG7hUztmq3kjLvEz6idgsRR X-Received: by 2002:a05:620a:bc5:b0:78a:725c:988e with SMTP id s5-20020a05620a0bc500b0078a725c988emr20969202qki.43.1712150718921; Wed, 03 Apr 2024 06:25:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712150718; cv=pass; d=google.com; s=arc-20160816; b=SmBucXZme0qhjrKKJ1yWJAvptCTl1JIJdkuFQEGcOD1SqridaRSJ5qEMoyLHmEumRf I7uu0E80Bin8i4F/4Mr0eUc6HG2RHE5vshAFEnDXA68xEo9XZlPXaBd1afGkKV1dUXIg KJzR1QE2G3LypXx/mX7mMQ2BHFv5KhZT491JVLuSUZ/1Bjv1DHd2Qxd6jaqYxU1/UL0A mNR7apJYPXVPL0k5YrjfOFGczxypPVlCf99wg/Cng9JHVFTHyBhQuXxLXHSmzyRL7Zfk THUNLEpnk/Hs4RtPfvBuBjOFGgcd67V4IFoDyxMsppM76lK9xaMNONmacMhf2vf2dpqV 64hQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=kiJ0rq1wYp29cnToRCHnS5bZk38GY9Yz1Z7mmaTzhfM=; fh=XUc93Bbxt9IiYUAtpoZD4WniFRnaEUSxn8M0amKeIJM=; b=ajbGz/xZcfpJ2nHYYKszxZ+/VaGVfogGgdRooopqwfAQYVKQphCQdQqU8Zi77oZrgq Z/B2gSOQvyw2FS93P+dT5Nhhrf/Y6tAt5+4Omcb/9lKirhGYTJflXqFJvOau5ahRMyJA COlsn/YrUiwWet754nDmqz+ZyTWvcHaDc2kqXF4IQqQof7s/tFRQFWodzqglix2+lyDN Q8djyM+GXGVzxBLLL1e5m1D9B3aPDwnjtjtP7h7I1vej/utJAON3fN1ezo8okKNajmCW yFEOKx+9MyDbkhM0MnfHCmXLvuGNEZF9XrNBYpHSJ74AKLVjqqIoyncg2jcCYxBW3GJT 5IBw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VujnJ8vf; 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-129819-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129819-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 f10-20020ae9ea0a000000b00789e7940afbsi13910435qkg.336.2024.04.03.06.25.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 06:25:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129819-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=VujnJ8vf; 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-129819-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129819-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 902A01C2649D for ; Wed, 3 Apr 2024 13:25:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 70218152164; Wed, 3 Apr 2024 13:20:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="VujnJ8vf" Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (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 D5D871509B4 for ; Wed, 3 Apr 2024 13:20:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712150418; cv=none; b=ostMbJsCDwzf1TsNxawHsyOP0O3cn68XFdp1U38Wa2r9x/ecjj3uZecrBa8//3YttWylRjjAYT9HRgs7w6iOJh1z1pqdRi1C7fbQPEiW6HoN+twHJNQh9WeRl/LYfCLgTWFA/dBAl+yCVy7vxyK+B4JxxF9Om7cM2uNWN5W1kYE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712150418; c=relaxed/simple; bh=j+6n+26l0q+cbh2OD40qdoIYeb8lwUxF6fcV5G1Psvs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=aEeYMnmZCkAowhfAq56DfwMhhnDZCfHmTnwT9ikM0+PMuvGLCX53lbXzNaL4hs6CbgC3ZwgdIu5JEHuG/1gdIZ5Tul+Qa4h7ku6+jNs3EZK/jdqPJN7CWco8SR6wwDhoirmVBs1TDv4Xsf09nXsJqL0x3EzrEK3S0nOLAv0CP/I= 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=VujnJ8vf; arc=none smtp.client-ip=209.85.210.169 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-pf1-f169.google.com with SMTP id d2e1a72fcca58-6e74bd85f26so5299752b3a.1 for ; Wed, 03 Apr 2024 06:20:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712150416; x=1712755216; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=kiJ0rq1wYp29cnToRCHnS5bZk38GY9Yz1Z7mmaTzhfM=; b=VujnJ8vfOhzdcih+xDCcWwoX5v5pw1f+2ZWtznP+rhELVZ4lk21fGr6buOnA8/3JT6 EJpSPzEP0GlFZ6M8d3JFIDf8ogrBhGnXl/W4B+fEbxnNGnAq70KXHWDtzvGNOHBoywcm tQYNdZUFE6L9uAN05qlNJ9oKhG7Gm85Bp0FQMkf4haIhOcCMyQXVYy/DXcox7UyWDtA3 li+Bgau0BmmWcRp9oUCydszoW5oh5AQ30SvAcLIs1lyiW2F0+kEE2CLN4Vioo4usfvfJ +TqzpqAHxBV1D7LDGo83NQe6WxJGWkNVO6fMBCw/UjaEYJnnzzYx8fNhqBoAqan0JYZC TrVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712150416; x=1712755216; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kiJ0rq1wYp29cnToRCHnS5bZk38GY9Yz1Z7mmaTzhfM=; b=lIQUBkU+UVyD+uqyueqUw1zgskOLXX53AZy6bzb3zH9jdvT1UoFgU9dNi+UEACBcJp 83qGlRBKPq6PeO4D9aPt8wSDRXeFGROTrUoA4zdlMgHqOxuJFmeXeRl1eZPxQC1GsR6O zciomydvchdS0HtpsCo/dNluA8OuqMACXPJkSOI4ENP5NESi7ajCcQe5E6cQ2fsKa5ei JCi0SLB5GAhChrrcG7HUaLZFIZG5lrdWik3we1D4OUqUZx4DHHgbdCUK8Efm6YWJdkbm n/7lxw6XFTGa8Pwj/OO2ZLcL1mXA4kvPCPIokonsY+8c0bBlkbRf6FSUQNQ/P80NfqNb uolw== X-Forwarded-Encrypted: i=1; AJvYcCXggWMsXd9FBYfG78nu3pXoglT+RqTAuVJqRLKB8pUNL1XbCaRfgy6HTUIboyMoT6l28xia4f/PreEgkkaVKX0xEHvSTtn/39wku9Am X-Gm-Message-State: AOJu0YzQl8Cmb/MJTyMJbcaVzUXdVO9G2orCw1PtyuJfW1B7I8lha1oR v7po5GSgCoxFAe5I9jJySUnk4eYJY9hccWyvvzQtmrehPGdzC7lPGAGtbsleQiwvUrEsC+H4tHQ = X-Received: by 2002:a05:6a00:2182:b0:6eb:1d6:6c8c with SMTP id h2-20020a056a00218200b006eb01d66c8cmr9760926pfi.30.1712150415952; Wed, 03 Apr 2024 06:20:15 -0700 (PDT) Received: from [127.0.1.1] ([103.28.246.48]) by smtp.gmail.com with ESMTPSA id r1-20020aa78441000000b006e69a142458sm11640518pfn.213.2024.04.03.06.20.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 06:20:15 -0700 (PDT) From: Manivannan Sadhasivam Date: Wed, 03 Apr 2024 18:50:03 +0530 Subject: [PATCH v2 1/2] 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: <20240403-ufs-icc-fix-v2-1-958412a5eb45@linaro.org> References: <20240403-ufs-icc-fix-v2-0-958412a5eb45@linaro.org> In-Reply-To: <20240403-ufs-icc-fix-v2-0-958412a5eb45@linaro.org> 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, Manivannan Sadhasivam , Amit Pundir X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=2646; i=manivannan.sadhasivam@linaro.org; h=from:subject:message-id; bh=j+6n+26l0q+cbh2OD40qdoIYeb8lwUxF6fcV5G1Psvs=; b=owEBbQGS/pANAwAKAVWfEeb+kc71AcsmYgBmDVeJCKwdJUlxk65U7o9cYZS24i3ff7Owd3w8U d0xOoojvJ+JATMEAAEKAB0WIQRnpUMqgUjL2KRYJ5dVnxHm/pHO9QUCZg1XiQAKCRBVnxHm/pHO 9SpGCACbtNlDcvhflimXP3tOYiQh/JDHWSOo/zU3VL5Wj1OxuGg7HdyL18xxJuK1CGI8O+BoiXZ +kau14L3lkLRyAtCEpTMxxQJ7IuyX2RzPAQKn5FAep0EE8gYenRDgDZpZDUiS93mtC/OgDDDTQz vh1yFHp2s8CmAGwTw8N9Di1owAjzE6Soiv0YF0fygAikyVXnP6p5xnTYIV3At0aKwPrhamiTe5o wwyr2XV+CHPJSQOUO8hZlxPDrcePO8Rbxt0QtsnpYgx2Hg1KScY0EwYB5Am8OQrJHLeZ4EOW+9c iJfr4WLtrAjVTIBvzeL7kxxj9OixWFl+vLpAr5D/uhPpMlp5 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") Tested-by: Amit Pundir 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 }, }; -- 2.25.1