public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] soc: qcom: llcc: Enable LLCC_WRCACHE at boot on X1
@ 2024-12-12 16:32 Konrad Dybcio
  2024-12-13  8:42 ` Johan Hovold
  0 siblings, 1 reply; 4+ messages in thread
From: Konrad Dybcio @ 2024-12-12 16:32 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Sibi Sankar, Bryan O'Donoghue,
	Rajendra Nayak
  Cc: Marijn Suijten, linux-arm-msm, linux-kernel, Johan Hovold,
	Konrad Dybcio, stable

From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Do so in accordance with the internal recommendations.

Fixes: b3cf69a43502 ("soc: qcom: llcc: Add configuration data for X1E80100")
Cc: stable@vger.kernel.org
Reviewed-by: Rajendra Nayak <quic_rjendra@quicinc.com>
Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
---
Changes in v2:
- Cc stable
- Add more context lines
- Pick up r-b
- Link to v1: https://lore.kernel.org/r/20241207-topic-llcc_x1e_wrcache-v1-1-232e6aff49e4@oss.qualcomm.com
---
 drivers/soc/qcom/llcc-qcom.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/soc/qcom/llcc-qcom.c b/drivers/soc/qcom/llcc-qcom.c
index 32c3bc887cefb87c296e3ba67a730c87fa2fa346..1560db00a01248197e5c2936e785a5ea77f74ad8 100644
--- a/drivers/soc/qcom/llcc-qcom.c
+++ b/drivers/soc/qcom/llcc-qcom.c
@@ -2997,20 +2997,21 @@ static const struct llcc_slice_config x1e80100_data[] = {
 		.bonus_ways = 0xfff,
 		.cache_mode = 0,
 	}, {
 		.usecase_id = LLCC_WRCACHE,
 		.slice_id = 31,
 		.max_cap = 1024,
 		.priority = 1,
 		.fixed_size = true,
 		.bonus_ways = 0xfff,
 		.cache_mode = 0,
+		.activate_on_init = true,
 	}, {
 		.usecase_id = LLCC_CAMEXP0,
 		.slice_id = 4,
 		.max_cap = 256,
 		.priority = 4,
 		.fixed_size = true,
 		.bonus_ways = 0x3,
 		.cache_mode = 0,
 	}, {
 		.usecase_id = LLCC_CAMEXP1,

---
base-commit: 3e42dc9229c5950e84b1ed705f94ed75ed208228
change-id: 20241207-topic-llcc_x1e_wrcache-647070e2d130

Best regards,
-- 
Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>


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

* Re: [PATCH v2] soc: qcom: llcc: Enable LLCC_WRCACHE at boot on X1
  2024-12-12 16:32 [PATCH v2] soc: qcom: llcc: Enable LLCC_WRCACHE at boot on X1 Konrad Dybcio
@ 2024-12-13  8:42 ` Johan Hovold
  2024-12-13 12:24   ` Konrad Dybcio
  0 siblings, 1 reply; 4+ messages in thread
From: Johan Hovold @ 2024-12-13  8:42 UTC (permalink / raw)
  To: Konrad Dybcio
  Cc: Bjorn Andersson, Sibi Sankar, Bryan O'Donoghue,
	Rajendra Nayak, Marijn Suijten, linux-arm-msm, linux-kernel,
	Konrad Dybcio, stable

On Thu, Dec 12, 2024 at 05:32:24PM +0100, Konrad Dybcio wrote:
> From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
> 
> Do so in accordance with the internal recommendations.

Your commit message is still incomplete as it does not really say
anything about what this patch does, why this is needed or what the
implications are if not merging this patch.

How would one determine that this patch is a valid candidate for
backporting, for example.

> Fixes: b3cf69a43502 ("soc: qcom: llcc: Add configuration data for X1E80100")
> Cc: stable@vger.kernel.org
> Reviewed-by: Rajendra Nayak <quic_rjendra@quicinc.com>
> Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
> ---
> Changes in v2:
> - Cc stable
> - Add more context lines
> - Pick up r-b
> - Link to v1: https://lore.kernel.org/r/20241207-topic-llcc_x1e_wrcache-v1-1-232e6aff49e4@oss.qualcomm.com
> ---
>  drivers/soc/qcom/llcc-qcom.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/soc/qcom/llcc-qcom.c b/drivers/soc/qcom/llcc-qcom.c
> index 32c3bc887cefb87c296e3ba67a730c87fa2fa346..1560db00a01248197e5c2936e785a5ea77f74ad8 100644
> --- a/drivers/soc/qcom/llcc-qcom.c
> +++ b/drivers/soc/qcom/llcc-qcom.c
> @@ -2997,20 +2997,21 @@ static const struct llcc_slice_config x1e80100_data[] = {
>  		.bonus_ways = 0xfff,
>  		.cache_mode = 0,
>  	}, {
>  		.usecase_id = LLCC_WRCACHE,
>  		.slice_id = 31,
>  		.max_cap = 1024,
>  		.priority = 1,
>  		.fixed_size = true,
>  		.bonus_ways = 0xfff,
>  		.cache_mode = 0,
> +		.activate_on_init = true,

If this is so obviously correct, why isn't this flag set for
LLCC_WRCACHE for all the SoCs?

Johan

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

* Re: [PATCH v2] soc: qcom: llcc: Enable LLCC_WRCACHE at boot on X1
  2024-12-13  8:42 ` Johan Hovold
@ 2024-12-13 12:24   ` Konrad Dybcio
  2024-12-13 14:10     ` Johan Hovold
  0 siblings, 1 reply; 4+ messages in thread
From: Konrad Dybcio @ 2024-12-13 12:24 UTC (permalink / raw)
  To: Johan Hovold, Konrad Dybcio
  Cc: Bjorn Andersson, Sibi Sankar, Bryan O'Donoghue,
	Rajendra Nayak, Marijn Suijten, linux-arm-msm, linux-kernel,
	Konrad Dybcio, stable

On 13.12.2024 9:42 AM, Johan Hovold wrote:
> On Thu, Dec 12, 2024 at 05:32:24PM +0100, Konrad Dybcio wrote:
>> From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
>>
>> Do so in accordance with the internal recommendations.
> 
> Your commit message is still incomplete as it does not really say
> anything about what this patch does, why this is needed or what the
> implications are if not merging this patch.

I'm not sure I can say much more here..

> How would one determine that this patch is a valid candidate for
> backporting, for example.

"suboptimal hw presets"

> 
>> Fixes: b3cf69a43502 ("soc: qcom: llcc: Add configuration data for X1E80100")
>> Cc: stable@vger.kernel.org
>> Reviewed-by: Rajendra Nayak <quic_rjendra@quicinc.com>
>> Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
>> ---
>> Changes in v2:
>> - Cc stable
>> - Add more context lines
>> - Pick up r-b
>> - Link to v1: https://lore.kernel.org/r/20241207-topic-llcc_x1e_wrcache-v1-1-232e6aff49e4@oss.qualcomm.com
>> ---
>>  drivers/soc/qcom/llcc-qcom.c | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/soc/qcom/llcc-qcom.c b/drivers/soc/qcom/llcc-qcom.c
>> index 32c3bc887cefb87c296e3ba67a730c87fa2fa346..1560db00a01248197e5c2936e785a5ea77f74ad8 100644
>> --- a/drivers/soc/qcom/llcc-qcom.c
>> +++ b/drivers/soc/qcom/llcc-qcom.c
>> @@ -2997,20 +2997,21 @@ static const struct llcc_slice_config x1e80100_data[] = {
>>  		.bonus_ways = 0xfff,
>>  		.cache_mode = 0,
>>  	}, {
>>  		.usecase_id = LLCC_WRCACHE,
>>  		.slice_id = 31,
>>  		.max_cap = 1024,
>>  		.priority = 1,
>>  		.fixed_size = true,
>>  		.bonus_ways = 0xfff,
>>  		.cache_mode = 0,
>> +		.activate_on_init = true,
> 
> If this is so obviously correct, why isn't this flag set for
> LLCC_WRCACHE for all the SoCs?

The other SoCs where it's disabled (8180 and 8150) have it in line
with the recommendations.

Konrad

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

* Re: [PATCH v2] soc: qcom: llcc: Enable LLCC_WRCACHE at boot on X1
  2024-12-13 12:24   ` Konrad Dybcio
@ 2024-12-13 14:10     ` Johan Hovold
  0 siblings, 0 replies; 4+ messages in thread
From: Johan Hovold @ 2024-12-13 14:10 UTC (permalink / raw)
  To: Konrad Dybcio
  Cc: Konrad Dybcio, Bjorn Andersson, Sibi Sankar, Bryan O'Donoghue,
	Rajendra Nayak, Marijn Suijten, linux-arm-msm, linux-kernel,
	stable

On Fri, Dec 13, 2024 at 01:24:24PM +0100, Konrad Dybcio wrote:
> On 13.12.2024 9:42 AM, Johan Hovold wrote:
> > On Thu, Dec 12, 2024 at 05:32:24PM +0100, Konrad Dybcio wrote:
> >> From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
> >>
> >> Do so in accordance with the internal recommendations.
> > 
> > Your commit message is still incomplete as it does not really say
> > anything about what this patch does, why this is needed or what the
> > implications are if not merging this patch.
> 
> I'm not sure I can say much more here..

If you don't know what this slice is used for or what impact enabling it
has then saying so in the commit message is also useful information.

But you should be able to provide some background for reviewers, stable
maintainers, other devs, posterity, ...

> > How would one determine that this patch is a valid candidate for
> > backporting, for example.
> 
> "suboptimal hw presets"

I'm sure the patch is correct, but spell something out in the commit
message.

Johan

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

end of thread, other threads:[~2024-12-13 14:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-12 16:32 [PATCH v2] soc: qcom: llcc: Enable LLCC_WRCACHE at boot on X1 Konrad Dybcio
2024-12-13  8:42 ` Johan Hovold
2024-12-13 12:24   ` Konrad Dybcio
2024-12-13 14:10     ` Johan Hovold

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