mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] soc: qcom: ubwc: Add configuration for hawi and maili
@ 2026-08-12  6:28 Wangao Wang
  2026-08-12  6:29 ` [PATCH 1/2] soc: qcom: ubwc: Add configuration for Hawi Wangao Wang
  2026-08-12  6:29 ` [PATCH 2/2] soc: qcom: ubwc: Add configuration for Maili Wangao Wang
  0 siblings, 2 replies; 5+ messages in thread
From: Wangao Wang @ 2026-08-12  6:28 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio; +Cc: linux-arm-msm, linux-kernel, Wangao Wang

Add UBWC configurations for the hawi and maili platforms.

Signed-off-by: Wangao Wang <wangao.wang@oss.qualcomm.com>
---
Wangao Wang (2):
      soc: qcom: ubwc: Add configuration for Hawi
      soc: qcom: ubwc: Add configuration for Maili

 drivers/soc/qcom/ubwc_config.c | 9 +++++++++
 include/linux/soc/qcom/ubwc.h  | 3 +++
 2 files changed, 12 insertions(+)
---
base-commit: 5e6de6a2b522f659defacb1551d0465ba6ce13cf
change-id: 20260812-ubwc_for_hawi_maili-9336fc68154a

Best regards,
-- 
Wangao Wang <wangao.wang@oss.qualcomm.com>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/2] soc: qcom: ubwc: Add configuration for Hawi
  2026-08-12  6:28 [PATCH 0/2] soc: qcom: ubwc: Add configuration for hawi and maili Wangao Wang
@ 2026-08-12  6:29 ` Wangao Wang
  2026-08-17 12:46   ` Konrad Dybcio
  2026-08-12  6:29 ` [PATCH 2/2] soc: qcom: ubwc: Add configuration for Maili Wangao Wang
  1 sibling, 1 reply; 5+ messages in thread
From: Wangao Wang @ 2026-08-12  6:29 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio; +Cc: linux-arm-msm, linux-kernel, Wangao Wang

Add UBWC configuration data for the Hawi platform, which uses UBWC 7.0
and enables the required flags and highest bank bit settings.

This allows drivers to query the correct UBWC capabilities on Hawi.

Also add UBWC 7.0 support to the version tag helper so that
qcom_ubwc_version_tag() returns the correct tag for UBWC 7.0.

Signed-off-by: Wangao Wang <wangao.wang@oss.qualcomm.com>
---
 drivers/soc/qcom/ubwc_config.c | 8 ++++++++
 include/linux/soc/qcom/ubwc.h  | 3 +++
 2 files changed, 11 insertions(+)

diff --git a/drivers/soc/qcom/ubwc_config.c b/drivers/soc/qcom/ubwc_config.c
index 23901a4c51f7305d95ac65e2a651fc557863a4ac..428a3d1038c8e40e43144f2ec3a999e8c991d9d8 100644
--- a/drivers/soc/qcom/ubwc_config.c
+++ b/drivers/soc/qcom/ubwc_config.c
@@ -105,6 +105,13 @@ static const struct qcom_ubwc_cfg_data milos_data = {
 	.highest_bank_bit = 15,
 };
 
+static const struct qcom_ubwc_cfg_data ubwc_7_0_hbb16 = {
+	.ubwc_enc_version = UBWC_7_0,
+	.flags = UBWC_SWIZZLE_ENABLE_LVL2 |
+		 UBWC_SWIZZLE_ENABLE_LVL3,
+	.highest_bank_bit = 16,
+};
+
 static const struct of_device_id qcom_ubwc_configs[] __maybe_unused = {
 	{ .compatible = "qcom,apq8016", .data = &no_ubwc_data },
 	{ .compatible = "qcom,apq8026", .data = &no_ubwc_data },
@@ -112,6 +119,7 @@ static const struct of_device_id qcom_ubwc_configs[] __maybe_unused = {
 	{ .compatible = "qcom,apq8096", .data = &ubwc_1_0_hbb15 },
 	{ .compatible = "qcom,eliza", .data = &ubwc_5_0_hbb15 },
 	{ .compatible = "qcom,glymur", .data = &glymur_data},
+	{ .compatible = "qcom,hawi", .data = &ubwc_7_0_hbb16 },
 	{ .compatible = "qcom,kaanapali", .data = &ubwc_6_0_hbb16 },
 	{ .compatible = "qcom,mahua", .data = &glymur_data },
 	{ .compatible = "qcom,milos", .data = &milos_data },
diff --git a/include/linux/soc/qcom/ubwc.h b/include/linux/soc/qcom/ubwc.h
index a7372d9c25fbc5371605a10c0388b2e820ccacef..668bef7ba57169ef6889e2a0502d628103cafc9b 100644
--- a/include/linux/soc/qcom/ubwc.h
+++ b/include/linux/soc/qcom/ubwc.h
@@ -35,6 +35,7 @@ struct qcom_ubwc_cfg_data {
 #define UBWC_4_3 0x40030000
 #define UBWC_5_0 0x50000000
 #define UBWC_6_0 0x60000000
+#define UBWC_7_0 0x70000000
 
 #if IS_ENABLED(CONFIG_QCOM_UBWC_CONFIG)
 const struct qcom_ubwc_cfg_data *qcom_ubwc_config_get_data(void);
@@ -107,6 +108,8 @@ static inline u32 qcom_ubwc_swizzle(const struct qcom_ubwc_cfg_data *cfg)
 
 static inline u32 qcom_ubwc_version_tag(const struct qcom_ubwc_cfg_data *cfg)
 {
+	if (cfg->ubwc_enc_version >= UBWC_7_0)
+		return 6;
 	if (cfg->ubwc_enc_version >= UBWC_6_0)
 		return 5;
 	if (cfg->ubwc_enc_version >= UBWC_5_0)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 2/2] soc: qcom: ubwc: Add configuration for Maili
  2026-08-12  6:28 [PATCH 0/2] soc: qcom: ubwc: Add configuration for hawi and maili Wangao Wang
  2026-08-12  6:29 ` [PATCH 1/2] soc: qcom: ubwc: Add configuration for Hawi Wangao Wang
@ 2026-08-12  6:29 ` Wangao Wang
  2026-08-17 12:46   ` Konrad Dybcio
  1 sibling, 1 reply; 5+ messages in thread
From: Wangao Wang @ 2026-08-12  6:29 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio; +Cc: linux-arm-msm, linux-kernel, Wangao Wang

Describe the Universal Bandwidth Compression (UBWC) configuration
for the Maili platform. Maili reuses the hawi UBWC configuration.

Signed-off-by: Wangao Wang <wangao.wang@oss.qualcomm.com>
---
 drivers/soc/qcom/ubwc_config.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/soc/qcom/ubwc_config.c b/drivers/soc/qcom/ubwc_config.c
index 428a3d1038c8e40e43144f2ec3a999e8c991d9d8..e593386920edfa7ad5ca40796755be5cea6320a9 100644
--- a/drivers/soc/qcom/ubwc_config.c
+++ b/drivers/soc/qcom/ubwc_config.c
@@ -122,6 +122,7 @@ static const struct of_device_id qcom_ubwc_configs[] __maybe_unused = {
 	{ .compatible = "qcom,hawi", .data = &ubwc_7_0_hbb16 },
 	{ .compatible = "qcom,kaanapali", .data = &ubwc_6_0_hbb16 },
 	{ .compatible = "qcom,mahua", .data = &glymur_data },
+	{ .compatible = "qcom,maili", .data = &ubwc_7_0_hbb16, },
 	{ .compatible = "qcom,milos", .data = &milos_data },
 	{ .compatible = "qcom,msm8226", .data = &no_ubwc_data },
 	{ .compatible = "qcom,msm8916", .data = &no_ubwc_data },

-- 
2.43.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] soc: qcom: ubwc: Add configuration for Hawi
  2026-08-12  6:29 ` [PATCH 1/2] soc: qcom: ubwc: Add configuration for Hawi Wangao Wang
@ 2026-08-17 12:46   ` Konrad Dybcio
  0 siblings, 0 replies; 5+ messages in thread
From: Konrad Dybcio @ 2026-08-17 12:46 UTC (permalink / raw)
  To: Wangao Wang, Bjorn Andersson, Konrad Dybcio; +Cc: linux-arm-msm, linux-kernel

On 8/12/26 8:29 AM, Wangao Wang wrote:
> Add UBWC configuration data for the Hawi platform, which uses UBWC 7.0
> and enables the required flags and highest bank bit settings.
> 
> This allows drivers to query the correct UBWC capabilities on Hawi.
> 
> Also add UBWC 7.0 support to the version tag helper so that
> qcom_ubwc_version_tag() returns the correct tag for UBWC 7.0.
> 
> Signed-off-by: Wangao Wang <wangao.wang@oss.qualcomm.com>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] soc: qcom: ubwc: Add configuration for Maili
  2026-08-12  6:29 ` [PATCH 2/2] soc: qcom: ubwc: Add configuration for Maili Wangao Wang
@ 2026-08-17 12:46   ` Konrad Dybcio
  0 siblings, 0 replies; 5+ messages in thread
From: Konrad Dybcio @ 2026-08-17 12:46 UTC (permalink / raw)
  To: Wangao Wang, Bjorn Andersson, Konrad Dybcio; +Cc: linux-arm-msm, linux-kernel

On 8/12/26 8:29 AM, Wangao Wang wrote:
> Describe the Universal Bandwidth Compression (UBWC) configuration
> for the Maili platform. Maili reuses the hawi UBWC configuration.
> 
> Signed-off-by: Wangao Wang <wangao.wang@oss.qualcomm.com>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-08-17 12:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-12  6:28 [PATCH 0/2] soc: qcom: ubwc: Add configuration for hawi and maili Wangao Wang
2026-08-12  6:29 ` [PATCH 1/2] soc: qcom: ubwc: Add configuration for Hawi Wangao Wang
2026-08-17 12:46   ` Konrad Dybcio
2026-08-12  6:29 ` [PATCH 2/2] soc: qcom: ubwc: Add configuration for Maili Wangao Wang
2026-08-17 12:46   ` Konrad Dybcio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®