Browse Source

feat(rcar3): change CAM setting to improve bus latency of R-Car Gen3

In the high system load situation, bus latency increase was observed
and it made impact to other feature (e.g. audio dropouts). This is
because some modules push as much as possible traffic into the DBSC4
CAM for execution, and make increasing bus latency. Re-defining swap
priorities reduce this situation. This advice has been confirmed by
hardware developer.

Signed-off-by: Dien Pham <dien.pham.ry@renesas.com>
Change-Id: Ifebafa883d5a997de6894198327a6025b64e4ee5
pull/2000/merge
Dien Pham 1 year ago
committed by Marex
parent
commit
e366f8cf33
  1. 4
      drivers/renesas/rcar/qos/D3/qos_init_d3.c
  2. 4
      drivers/renesas/rcar/qos/E3/qos_init_e3_v10.c
  3. 4
      drivers/renesas/rcar/qos/H3/qos_init_h3_v11.c
  4. 4
      drivers/renesas/rcar/qos/H3/qos_init_h3_v20.c
  5. 4
      drivers/renesas/rcar/qos/H3/qos_init_h3_v30.c
  6. 4
      drivers/renesas/rcar/qos/H3/qos_init_h3n_v30.c
  7. 4
      drivers/renesas/rcar/qos/M3/qos_init_m3_v10.c
  8. 4
      drivers/renesas/rcar/qos/M3/qos_init_m3_v11.c
  9. 4
      drivers/renesas/rcar/qos/M3/qos_init_m3_v30.c
  10. 4
      drivers/renesas/rcar/qos/M3N/qos_init_m3n_v10.c
  11. 4
      drivers/renesas/rcar/qos/V3M/qos_init_v3m.c

4
drivers/renesas/rcar/qos/D3/qos_init_d3.c

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2015-2019, Renesas Electronics Corporation. All rights reserved. * Copyright (c) 2015-2024, Renesas Electronics Corporation. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
@ -18,7 +18,7 @@
struct rcar_gen3_dbsc_qos_settings d3_qos[] = { struct rcar_gen3_dbsc_qos_settings d3_qos[] = {
/* BUFCAM settings */ /* BUFCAM settings */
{ DBSC_DBCAM0CNF1, 0x00043218 }, { DBSC_DBCAM0CNF1, 0x00048218U },
{ DBSC_DBCAM0CNF2, 0x000000F4 }, { DBSC_DBCAM0CNF2, 0x000000F4 },
{ DBSC_DBSCHCNT0, 0x000F0037 }, { DBSC_DBSCHCNT0, 0x000F0037 },
{ DBSC_DBSCHSZ0, 0x00000001 }, { DBSC_DBSCHSZ0, 0x00000001 },

4
drivers/renesas/rcar/qos/E3/qos_init_e3_v10.c

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2018-2019, Renesas Electronics Corporation. All rights reserved. * Copyright (c) 2018-2024, Renesas Electronics Corporation. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
@ -28,7 +28,7 @@
struct rcar_gen3_dbsc_qos_settings e3_qos[] = { struct rcar_gen3_dbsc_qos_settings e3_qos[] = {
/* BUFCAM settings */ /* BUFCAM settings */
{ DBSC_DBCAM0CNF1, 0x00043218 }, { DBSC_DBCAM0CNF1, 0x00048218U },
{ DBSC_DBCAM0CNF2, 0x000000F4 }, { DBSC_DBCAM0CNF2, 0x000000F4 },
{ DBSC_DBSCHCNT0, 0x000F0037 }, { DBSC_DBSCHCNT0, 0x000F0037 },
{ DBSC_DBSCHSZ0, 0x00000001 }, { DBSC_DBSCHSZ0, 0x00000001 },

4
drivers/renesas/rcar/qos/H3/qos_init_h3_v11.c

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2015-2019, Renesas Electronics Corporation. All rights reserved. * Copyright (c) 2015-2024, Renesas Electronics Corporation. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
@ -21,7 +21,7 @@
struct rcar_gen3_dbsc_qos_settings h3_v11_qos[] = { struct rcar_gen3_dbsc_qos_settings h3_v11_qos[] = {
/* BUFCAM settings */ /* BUFCAM settings */
/* DBSC_DBCAM0CNF0 not set */ /* DBSC_DBCAM0CNF0 not set */
{ DBSC_DBCAM0CNF1, 0x00044218 }, { DBSC_DBCAM0CNF1, 0x00048218U },
{ DBSC_DBCAM0CNF2, 0x000000F4 }, { DBSC_DBCAM0CNF2, 0x000000F4 },
/* DBSC_DBCAM0CNF3 not set */ /* DBSC_DBCAM0CNF3 not set */
{ DBSC_DBSCHCNT0, 0x080F0037 }, { DBSC_DBSCHCNT0, 0x080F0037 },

4
drivers/renesas/rcar/qos/H3/qos_init_h3_v20.c

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2015-2019, Renesas Electronics Corporation. All rights reserved. * Copyright (c) 2015-2024, Renesas Electronics Corporation. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
@ -63,7 +63,7 @@
struct rcar_gen3_dbsc_qos_settings h3_v20_qos[] = { struct rcar_gen3_dbsc_qos_settings h3_v20_qos[] = {
/* BUFCAM settings */ /* BUFCAM settings */
{ DBSC_DBCAM0CNF1, 0x00043218U }, { DBSC_DBCAM0CNF1, 0x00048218U },
{ DBSC_DBCAM0CNF2, 0x000000F4U }, { DBSC_DBCAM0CNF2, 0x000000F4U },
{ DBSC_DBCAM0CNF3, 0x00000000U }, { DBSC_DBCAM0CNF3, 0x00000000U },
{ DBSC_DBSCHCNT0, 0x000F0037U }, { DBSC_DBSCHCNT0, 0x000F0037U },

4
drivers/renesas/rcar/qos/H3/qos_init_h3_v30.c

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2018-2019, Renesas Electronics Corporation. All rights reserved. * Copyright (c) 2018-2024, Renesas Electronics Corporation. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
@ -62,7 +62,7 @@
struct rcar_gen3_dbsc_qos_settings h3_v30_qos[] = { struct rcar_gen3_dbsc_qos_settings h3_v30_qos[] = {
/* BUFCAM settings */ /* BUFCAM settings */
{ DBSC_DBCAM0CNF1, 0x00043218U }, { DBSC_DBCAM0CNF1, 0x00048218U },
{ DBSC_DBCAM0CNF2, 0x000000F4U }, { DBSC_DBCAM0CNF2, 0x000000F4U },
{ DBSC_DBCAM0CNF3, 0x00000000U }, { DBSC_DBCAM0CNF3, 0x00000000U },
{ DBSC_DBSCHCNT0, 0x000F0037U }, { DBSC_DBSCHCNT0, 0x000F0037U },

4
drivers/renesas/rcar/qos/H3/qos_init_h3n_v30.c

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2018-2019, Renesas Electronics Corporation. All rights reserved. * Copyright (c) 2018-2024, Renesas Electronics Corporation. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
@ -62,7 +62,7 @@
struct rcar_gen3_dbsc_qos_settings h3n_v30_qos[] = { struct rcar_gen3_dbsc_qos_settings h3n_v30_qos[] = {
/* BUFCAM settings */ /* BUFCAM settings */
{ DBSC_DBCAM0CNF1, 0x00043218U }, { DBSC_DBCAM0CNF1, 0x00048218U },
{ DBSC_DBCAM0CNF2, 0x000000F4U }, { DBSC_DBCAM0CNF2, 0x000000F4U },
{ DBSC_DBCAM0CNF3, 0x00000000U }, { DBSC_DBCAM0CNF3, 0x00000000U },
{ DBSC_DBSCHCNT0, 0x000F0037U }, { DBSC_DBSCHCNT0, 0x000F0037U },

4
drivers/renesas/rcar/qos/M3/qos_init_m3_v10.c

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2015-2019, Renesas Electronics Corporation. All rights reserved. * Copyright (c) 2015-2024, Renesas Electronics Corporation. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
@ -19,7 +19,7 @@
struct rcar_gen3_dbsc_qos_settings m3_v10_qos[] = { struct rcar_gen3_dbsc_qos_settings m3_v10_qos[] = {
/* BUFCAM settings */ /* BUFCAM settings */
/* DBSC_DBCAM0CNF0 not set */ /* DBSC_DBCAM0CNF0 not set */
{ DBSC_DBCAM0CNF1, 0x00043218 }, { DBSC_DBCAM0CNF1, 0x00048218U },
{ DBSC_DBCAM0CNF2, 0x000000F4 }, { DBSC_DBCAM0CNF2, 0x000000F4 },
{ DBSC_DBCAM0CNF3, 0x00000000 }, { DBSC_DBCAM0CNF3, 0x00000000 },
{ DBSC_DBSCHCNT0, 0x080F0037 }, { DBSC_DBSCHCNT0, 0x080F0037 },

4
drivers/renesas/rcar/qos/M3/qos_init_m3_v11.c

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2017-2019, Renesas Electronics Corporation. All rights reserved. * Copyright (c) 2017-2024, Renesas Electronics Corporation. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
@ -62,7 +62,7 @@
struct rcar_gen3_dbsc_qos_settings m3_v11_qos[] = { struct rcar_gen3_dbsc_qos_settings m3_v11_qos[] = {
/* BUFCAM settings */ /* BUFCAM settings */
{ DBSC_DBCAM0CNF1, 0x00043218 }, { DBSC_DBCAM0CNF1, 0x00048218U },
{ DBSC_DBCAM0CNF2, 0x000000F4 }, { DBSC_DBCAM0CNF2, 0x000000F4 },
{ DBSC_DBCAM0CNF3, 0x00000000 }, { DBSC_DBCAM0CNF3, 0x00000000 },
{ DBSC_DBSCHCNT0, 0x000F0037 }, { DBSC_DBSCHCNT0, 0x000F0037 },

4
drivers/renesas/rcar/qos/M3/qos_init_m3_v30.c

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2019, Renesas Electronics Corporation. All rights reserved. * Copyright (c) 2019-2024, Renesas Electronics Corporation. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
@ -62,7 +62,7 @@
struct rcar_gen3_dbsc_qos_settings m3_v30_qos[] = { struct rcar_gen3_dbsc_qos_settings m3_v30_qos[] = {
/* BUFCAM settings */ /* BUFCAM settings */
{ DBSC_DBCAM0CNF1, 0x00043218 }, { DBSC_DBCAM0CNF1, 0x00048218U },
{ DBSC_DBCAM0CNF2, 0x000000F4 }, { DBSC_DBCAM0CNF2, 0x000000F4 },
{ DBSC_DBCAM0CNF3, 0x00000000 }, { DBSC_DBCAM0CNF3, 0x00000000 },
{ DBSC_DBSCHCNT0, 0x000F0037 }, { DBSC_DBSCHCNT0, 0x000F0037 },

4
drivers/renesas/rcar/qos/M3N/qos_init_m3n_v10.c

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2017-2019, Renesas Electronics Corporation. All rights reserved. * Copyright (c) 2017-2024, Renesas Electronics Corporation. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
@ -60,7 +60,7 @@
struct rcar_gen3_dbsc_qos_settings m3n_v10_qos[] = { struct rcar_gen3_dbsc_qos_settings m3n_v10_qos[] = {
/* BUFCAM settings */ /* BUFCAM settings */
{ DBSC_DBCAM0CNF1, 0x00043218 }, { DBSC_DBCAM0CNF1, 0x00048218U },
{ DBSC_DBCAM0CNF2, 0x000000F4 }, { DBSC_DBCAM0CNF2, 0x000000F4 },
{ DBSC_DBSCHCNT0, 0x000F0037 }, { DBSC_DBSCHCNT0, 0x000F0037 },
{ DBSC_DBSCHSZ0, 0x00000001 }, { DBSC_DBSCHSZ0, 0x00000001 },

4
drivers/renesas/rcar/qos/V3M/qos_init_v3m.c

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2015-2019, Renesas Electronics Corporation * Copyright (c) 2015-2024, Renesas Electronics Corporation
* All rights reserved. * All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
@ -19,7 +19,7 @@
struct rcar_gen3_dbsc_qos_settings v3m_qos[] = { struct rcar_gen3_dbsc_qos_settings v3m_qos[] = {
/* BUFCAM settings */ /* BUFCAM settings */
{ DBSC_DBCAM0CNF1, 0x00044218 }, { DBSC_DBCAM0CNF1, 0x00048218U },
{ DBSC_DBCAM0CNF2, 0x000000F4 }, { DBSC_DBCAM0CNF2, 0x000000F4 },
{ DBSC_DBSCHCNT0, 0x080F003F }, { DBSC_DBSCHCNT0, 0x080F003F },
{ DBSC_DBSCHCNT1, 0x00001010 }, { DBSC_DBSCHCNT1, 0x00001010 },

Loading…
Cancel
Save