From patchwork Tue Mar 26 19:42:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13604924 Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (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 D61E013CFAC for ; Tue, 26 Mar 2024 19:42:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711482165; cv=none; b=MHlZJONyE+MFii78PaJnqpNrP9QAUz3Hts74NUwuUwSpWcOmJdell6M8E6PcmAVTL4H9eDO9FAcJ4KKdKErabIGqgmJ/qiAPbtTobAyAoYionRjXZ3IZwykcJKEuux5gZmIyAV/fVW1VJdB8OX4LDCjKoRbAOOqYnknah3dKaMI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711482165; c=relaxed/simple; bh=X5eISBc2PLqIh+p+lHXdUkFfFUleuSw5FP9QyKR+L1E=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=kKTooBOIEjnSIcHKB7LjV6gpJ6+flyVs4McygsnX2kwaAPY/o1mkcjTstCfKP3BbLC76IK7QuDaiL732uiU7NVJLU3AhfEtvlvunthQrVtuebFCy4WcfBZBhZ0Nmrms0T9ndSS3cfJxQuSAanAR/lgh7ypyjowor+TxAj5NbAic= 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=LmKiGdEJ; arc=none smtp.client-ip=209.85.218.53 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="LmKiGdEJ" Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a470d7f77eeso755546166b.3 for ; Tue, 26 Mar 2024 12:42:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711482161; x=1712086961; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=x+FLLYge6NbdKEYy+G+suSg2kjSLt/AviYxduzdPM1A=; b=LmKiGdEJmVEtvXa7cYLs0mN0HvOiQmAdt0GUsrCNcdg8T4lTF2SBV092OubzBO2Ync OZc4LPaOoRORmiLA6RDqZfZ5h5nwdN9Q1MiWwrMPLLUJI2d8dPrR4Mol92LgpG/nrLo8 qxrPRAWp0Pu0H6+WzK0zGAi7584VA+l0S0xAdOhbF3aF6kXx3U0aYY6fQCcXtuwp38ks GQygQdas+BQ3hS97Viuu71q/Lm5gBZUW5Fzb1f3Qt1eiFOZYVYSSdNrRqYvNvNQuCrtH EwT+66PgqXpf1iFy03Qntt7PkmCM8/p3D7WIXncFuOd6ylkgonnP6dZNPpy/fDPZJcSV tSkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711482161; x=1712086961; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=x+FLLYge6NbdKEYy+G+suSg2kjSLt/AviYxduzdPM1A=; b=hK4T1KdOrJiZ4iSm6zucyA7B+RrI+Ab/swExFzZwdFQ7QkBjOKzl2AMBnuYe9omGsZ smyUBzXrCoEDyjCVjx/G9dboaKx2Nh73lMQOQXD7uK6Peduz6MX4RDoQQ3GpYa+NawaW HftvWrqvtBK0YjltW9unFGX6qQjuYHzwu6aduK70rNSe5O5YwE/E7j8betl+XbqNi9mn e4XLGGvYjNZ5oIO5FOnSY3jkzmUDjbXuYIVGa8GaeVLPGFFT2ZSL0reREvv2bwKXd9je rF2mKwqY7FErAy0aiOm5Z+wS9l2fnFxYgowpcdHDQ3eRr4oiGcZ+rucFy6y1hcV+TEk9 0flg== X-Forwarded-Encrypted: i=1; AJvYcCVK+s5U+HXZs7/bFBcamTqGy4ZoPKO3CMj9PG54DvUpB2kMmzuADYpXTuMdq10H3add6Z6BCiCV0h/DIcm/PoGD0W5SrJHC3jRYGB2tLQ== X-Gm-Message-State: AOJu0YxjkPRcwl371tICBBmjN86BQCoBd2aTi6qr/IE6YB8/rBWxy+KA Vy+1XbGcUFc0U3xgY7EK8S0h6LZ/ukVQNXufeBAjy6fHZvyZSaZEh0pgOBiMc1vg0eJ+MCRhL2H 4 X-Google-Smtp-Source: AGHT+IFPxh6FOZGNOEjJDQk6RkcRUUw9MrQkp1TXDM+6rygMlPxYEmDXWljceRUjnnnXMmnAPWoAbw== X-Received: by 2002:a17:906:f10c:b0:a4d:f5d4:fb30 with SMTP id gv12-20020a170906f10c00b00a4df5d4fb30mr2212506ejb.49.1711482161482; Tue, 26 Mar 2024 12:42:41 -0700 (PDT) Received: from [192.168.92.47] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id i8-20020a17090671c800b00a46d4e26301sm4523807ejk.27.2024.03.26.12.42.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 12:42:40 -0700 (PDT) From: Konrad Dybcio Subject: [PATCH 0/4] Rework rpm-icc QoS settings Date: Tue, 26 Mar 2024 20:42:31 +0100 Message-Id: <20240326-topic-rpm_icc_qos_cleanup-v1-0-357e736792be@linaro.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIACclA2YC/x2NUQrCMBAFr1L224WaqLReRSQk261diEncWBFK7 27wcx7Mmw0qq3CFa7eB8keq5NTgeOiAFp8ejDI1BtObU2/NBd+5CKGWpxMi98rVUWSf1oJhGsb zYKyZ7QjND74yBvWJlvaQ1hjbWJRn+f6Dt/u+/wC99uCSgAAAAA== To: Bjorn Andersson , Georgi Djakov , Shawn Guo Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Stephan Gerhold , Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1711482160; l=1605; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=X5eISBc2PLqIh+p+lHXdUkFfFUleuSw5FP9QyKR+L1E=; b=lrjsL5IP/4RGTqohZFWdgHOgrFIXpU790yBKBilc+nmS4y24JDPb0nZVAeSn8T2PZIsTn4T66 r0LMENF3o8nAm5r+nkB5qflmjz+dGeV61X6zoYuCisnNAIE0Y8I7m92 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Currently, the QoS settings take up a lot of space and are scattered all over the nodes, even though the config is only applied once and it's not a direct property of the nodes themselves. This series aims to make things better in this regard and contains some fly-by fixes. More fixes and cleanups uncovered after the making of this coming soon.. Didn't cause any spontaneous explosions on 6115 and 8996. Signed-off-by: Konrad Dybcio --- Konrad Dybcio (4): interconnect: qcom: sm6115: Unspaghettify SNoC QoS port numbering interconnect: qcom: qcm2290: Fix mas_snoc_bimc QoS port assignment interconnect: qcom: icc-rpm: Make simple functions return void interconnect: qcom: icc-rpm: Remodel how QoS settings are stored drivers/interconnect/qcom/icc-rpm.c | 187 ++++++------- drivers/interconnect/qcom/icc-rpm.h | 13 +- drivers/interconnect/qcom/msm8909.c | 268 ++++++++++--------- drivers/interconnect/qcom/msm8916.c | 153 ++++++----- drivers/interconnect/qcom/msm8939.c | 157 ++++++----- drivers/interconnect/qcom/msm8996.c | 517 +++++++++++++++++------------------- drivers/interconnect/qcom/qcm2290.c | 416 +++++++++++++++++------------ drivers/interconnect/qcom/sdm660.c | 393 +++++++++++++-------------- drivers/interconnect/qcom/sm6115.c | 242 ++++++++++++----- 9 files changed, 1251 insertions(+), 1095 deletions(-) --- base-commit: 084c8e315db34b59d38d06e684b1a0dd07d30287 change-id: 20240326-topic-rpm_icc_qos_cleanup-bd8958232f39 Best regards,