clk: tegra210: Add SLCG override gate clocks
PATCH 1/1 clk: tegra210: Add SLCG override gate clocks
From: Bill Huang <[email protected]>
Add some SLCG (Second Level Clock Gating) override clocks to control gating and un-gating their logics.
--- drivers/clk/tegra/clk-id.h | 16 ++++++ drivers/clk/tegra/clk-tegra210.c | 91 ++++++++++++++++++++++++++++++++ include/dt-bindings/clock/tegra210-car.h | 32 +++++------ 3 files changed, 123 insertions(+), 16 deletions(-)
drivers/clk/tegra/clk-id.h +16 -0
@@ -306,6 +306,22 @@ enum clk_id { tegra_clk_xusb_ss_div2, tegra_clk_xusb_ssp_src, tegra_clk_sclk_mux, + tegra_clk_disp1_slcg_ovr, + tegra_clk_disp2_slcg_ovr, + tegra_clk_vi_slcg_ovr, + tegra_clk_ispa_slcg_ovr, + tegra_clk_ispb_slcg_ovr, + tegra_clk_nvdec_slcg_ovr, + tegra_clk_msenc_slcg_ovr, + tegra_clk_nvjpg_slcg_ovr, + tegra_clk_vic03_slcg_ovr, + tegra_clk_xusb_dev_slcg_ovr, + tegra_clk_xusb_host_slcg_ovr, + tegra_clk_d_audio_slcg_ovr, + tegra_clk_ape_slcg_ovr, + tegra_clk_sata_slcg_ovr, + tegra_clk_sata_slcg_ovr_ipfs, + tegra_clk_sata_slcg_ovr_fpci, tegra_clk_max, };
drivers/clk/tegra/clk-tegra210.c +91 -0
115 lines not on this page · raw message
include/dt-bindings/clock/tegra210-car.h +16 -16
@@ -361,22 +361,22 @@/* 331 */ /* 332 */ /* 333 */ -/* 334 */ -/* 335 */ -/* 336 */ -/* 337 */ -/* 338 */ -/* 339 */ -/* 340 */ -/* 341 */ -/* 342 */ -/* 343 */ -/* 344 */ -/* 345 */ -/* 346 */ -/* 347 */ -/* 348 */ -/* 349 */ +#define TEGRA210_CLK_DISP1_SLCG_OVR 334 +#define TEGRA210_CLK_DISP2_SLCG_OVR 335 +#define TEGRA210_CLK_VI_SLCG_OVR 336 +#define TEGRA210_CLK_ISPA_SLCG_OVR 337 +#define TEGRA210_CLK_ISPB_SLCG_OVR 338 +#define TEGRA210_CLK_NVDEC_SLCG_OVR 339 +#define TEGRA210_CLK_MSENC_SLCG_OVR 340 +#define TEGRA210_CLK_NVJPG_SLCG_OVR 341 +#define TEGRA210_CLK_VIC03_SLCG_OVR 342 +#define TEGRA210_CLK_XUSB_DEV_SLCG_OVR 343 +#define TEGRA210_CLK_XUSB_HOST_SLCG_OVR 344 +#define TEGRA210_CLK_D_AUDIO_SLCG_OVR 345 +#define TEGRA210_CLK_APE_SLCG_OVR 346 +#define TEGRA210_CLK_SATA_SLCG_OVR 347 +#define TEGRA210_CLK_SATA_SLCG_OVR_IPFS 348 +#define TEGRA210_CLK_SATA_SLCG_OVR_FPCI 349#define TEGRA210_CLK_AUDIO0_MUX 350#define TEGRA210_CLK_AUDIO1_MUX 351
Signature · 1 line
1.9.1
Quoted 5 lines · Rhyland Klein
From: Bill Huang <[email protected]>
Add some SLCG (Second Level Clock Gating) override clocks to control gating and un-gating their logics.
Quoted 7 lines
Signed-off-by Bill Huang <[email protected]>Signed-off-by Rhyland Klein <[email protected]>--- drivers/clk/tegra/clk-id.h | 16 ++++++ drivers/clk/tegra/clk-tegra210.c | 91 ++++++++++++++++++++++++++++++++ include/dt-bindings/clock/tegra210-car.h | 32 +++++------ 3 files changed, 123 insertions(+), 16 deletions(-)
There's no rationale given here about why we need this. What will these second level clock gates be used for? Why do we need these (seemingly) duplicate clock entries.
Thierry
Quoted 16 lines · Thierry Reding
* PGP Signed by an unknown key
Quoted 5 lines · Rhyland Klein
From: Bill Huang <[email protected]>
Add some SLCG (Second Level Clock Gating) override clocks to control gating and un-gating their logics.
Quoted 7 lines
Signed-off-by Bill Huang <[email protected]>Signed-off-by Rhyland Klein <[email protected]>--- drivers/clk/tegra/clk-id.h | 16 ++++++ drivers/clk/tegra/clk-tegra210.c | 91 ++++++++++++++++++++++++++++++++ include/dt-bindings/clock/tegra210-car.h | 32 +++++------ 3 files changed, 123 insertions(+), 16 deletions(-)
Quoted 4 lines
There's no rationale given here about why we need this. What will these second level clock gates be used for? Why do we need these (seemingly) duplicate clock entries.
These are going to be used in the to-be posted patchset around powergating. As of now they are unused, which is why I hadn't added them previously. I just wanted to try to get this dependency in before the powergate series was posted.
-rhyland
Signature · 1 line
nvpublic
Quoted 22 lines · Rhyland Klein
Quoted 16 lines · Thierry Reding
* PGP Signed by an unknown key
Quoted 5 lines · Rhyland Klein
From: Bill Huang <[email protected]>
Add some SLCG (Second Level Clock Gating) override clocks to control gating and un-gating their logics.
Quoted 7 lines
Signed-off-by Bill Huang <[email protected]>Signed-off-by Rhyland Klein <[email protected]>--- drivers/clk/tegra/clk-id.h | 16 ++++++ drivers/clk/tegra/clk-tegra210.c | 91 ++++++++++++++++++++++++++++++++ include/dt-bindings/clock/tegra210-car.h | 32 +++++------ 3 files changed, 123 insertions(+), 16 deletions(-)Quoted 4 lines
There's no rationale given here about why we need this. What will these second level clock gates be used for? Why do we need these (seemingly) duplicate clock entries.
Quoted 4 lines
These are going to be used in the to-be posted patchset around powergating. As of now they are unused, which is why I hadn't added them previously. I just wanted to try to get this dependency in before the powergate series was posted.
Yes we are using these on the Pixel C (aka. Smaug) and I suggested to Rhyland that we upstream them. Eventually we will use them but only after the core GenPD changes for Tegra are merged. From my perspective I was thinking it is better to reduce the changes between the chromeos 3.18 kernel and mainline. However, if you wish to wait until we need them I guess we can. Otherwise ...
Cheers
Jon
Quoted 36 lines · Jon Hunter
Quoted 22 lines · Rhyland Klein
Quoted 16 lines · Thierry Reding
* PGP Signed by an unknown key
Quoted 5 lines · Rhyland Klein
From: Bill Huang <[email protected]>
Add some SLCG (Second Level Clock Gating) override clocks to control gating and un-gating their logics.
Quoted 7 lines
Signed-off-by Bill Huang <[email protected]>Signed-off-by Rhyland Klein <[email protected]>--- drivers/clk/tegra/clk-id.h | 16 ++++++ drivers/clk/tegra/clk-tegra210.c | 91 ++++++++++++++++++++++++++++++++ include/dt-bindings/clock/tegra210-car.h | 32 +++++------ 3 files changed, 123 insertions(+), 16 deletions(-)Quoted 4 lines
There's no rationale given here about why we need this. What will these second level clock gates be used for? Why do we need these (seemingly) duplicate clock entries.
Quoted 4 lines
These are going to be used in the to-be posted patchset around powergating. As of now they are unused, which is why I hadn't added them previously. I just wanted to try to get this dependency in before the powergate series was posted.
Yes we are using these on the Pixel C (aka. Smaug) and I suggested to Rhyland that we upstream them. Eventually we will use them but only after the core GenPD changes for Tegra are merged. From my perspective I was thinking it is better to reduce the changes between the chromeos 3.18 kernel and mainline. However, if you wish to wait until we need them I guess we can. Otherwise ...
Quoted 5 lines
Acked-by Jon Hunter <[email protected]>Cheers
Jon
Thierry do you think we should hold off on this until Jon's patches are ready or merge this sooner?
-rhyland
Signature · 1 line
nvpublic
Quoted 37 lines · Rhyland Klein
Quoted 36 lines · Jon Hunter
Quoted 22 lines · Rhyland Klein
Quoted 16 lines · Thierry Reding
* PGP Signed by an unknown key
Quoted 5 lines · Rhyland Klein
From: Bill Huang <[email protected]>
Add some SLCG (Second Level Clock Gating) override clocks to control gating and un-gating their logics.
Quoted 7 lines
Signed-off-by Bill Huang <[email protected]>Signed-off-by Rhyland Klein <[email protected]>--- drivers/clk/tegra/clk-id.h | 16 ++++++ drivers/clk/tegra/clk-tegra210.c | 91 ++++++++++++++++++++++++++++++++ include/dt-bindings/clock/tegra210-car.h | 32 +++++------ 3 files changed, 123 insertions(+), 16 deletions(-)Quoted 4 lines
There's no rationale given here about why we need this. What will these second level clock gates be used for? Why do we need these (seemingly) duplicate clock entries.
Quoted 4 lines
These are going to be used in the to-be posted patchset around powergating. As of now they are unused, which is why I hadn't added them previously. I just wanted to try to get this dependency in before the powergate series was posted.
Yes we are using these on the Pixel C (aka. Smaug) and I suggested to Rhyland that we upstream them. Eventually we will use them but only after the core GenPD changes for Tegra are merged. From my perspective I was thinking it is better to reduce the changes between the chromeos 3.18 kernel and mainline. However, if you wish to wait until we need them I guess we can. Otherwise ...
Quoted 8 lines
Quoted 5 lines
Acked-by Jon Hunter <[email protected]>Cheers
JonThierry do you think we should hold off on this until Jon's patches are ready or merge this sooner?
Jon, I think it would make sense for you to pick this up into your tree along with the rest of the patches that make use of them. Even if they end up being applied to different trees I'd like to see all of the work as a whole first.
Thierry
Jon Hunter
maintainerQuoted 46 lines · Thierry Reding
* PGP Signed by an unknown key
Quoted 43 lines · Rhyland Klein
Quoted 41 lines · Jon Hunter
Quoted 22 lines · Rhyland Klein
Quoted 16 lines · Thierry Reding
Quoted 1 line
Old Signed by an unknown key
Quoted 5 lines · Rhyland Klein
From: Bill Huang <[email protected]>
Add some SLCG (Second Level Clock Gating) override clocks to control gating and un-gating their logics.
Quoted 7 lines
Signed-off-by Bill Huang <[email protected]>Signed-off-by Rhyland Klein <[email protected]>--- drivers/clk/tegra/clk-id.h | 16 ++++++ drivers/clk/tegra/clk-tegra210.c | 91 ++++++++++++++++++++++++++++++++ include/dt-bindings/clock/tegra210-car.h | 32 +++++------ 3 files changed, 123 insertions(+), 16 deletions(-)Quoted 4 lines
There's no rationale given here about why we need this. What will these second level clock gates be used for? Why do we need these (seemingly) duplicate clock entries.
Quoted 4 lines
These are going to be used in the to-be posted patchset around powergating. As of now they are unused, which is why I hadn't added them previously. I just wanted to try to get this dependency in before the powergate series was posted.
Yes we are using these on the Pixel C (aka. Smaug) and I suggested to Rhyland that we upstream them. Eventually we will use them but only after the core GenPD changes for Tegra are merged. From my perspective I was thinking it is better to reduce the changes between the chromeos 3.18 kernel and mainline. However, if you wish to wait until we need them I guess we can. Otherwise ...
Acked-by Jon Hunter <[email protected]>Cheers
Jon
Quoted 7 lines
Quoted 2 lines
Thierry do you think we should hold off on this until Jon's patches are ready or merge this sooner?
Jon, I think it would make sense for you to pick this up into your tree along with the rest of the patches that make use of them. Even if they end up being applied to different trees I'd like to see all of the work as a whole first.
Ok. That is fine with me.
Cheers
Jon
Quoted 51 lines · Jon Hunter
Quoted 49 lines · Thierry Reding
* PGP Signed by an unknown key
Quoted 45 lines · Rhyland Klein
Quoted 36 lines · Jon Hunter
Quoted 22 lines · Rhyland Klein
Quoted 16 lines · Thierry Reding
Quoted 1 line
Old Signed by an unknown key
Quoted 5 lines · Rhyland Klein
From: Bill Huang <[email protected]>
Add some SLCG (Second Level Clock Gating) override clocks to control gating and un-gating their logics.
Quoted 7 lines
Signed-off-by Bill Huang <[email protected]>Signed-off-by Rhyland Klein <[email protected]>--- drivers/clk/tegra/clk-id.h | 16 ++++++ drivers/clk/tegra/clk-tegra210.c | 91 ++++++++++++++++++++++++++++++++ include/dt-bindings/clock/tegra210-car.h | 32 +++++------ 3 files changed, 123 insertions(+), 16 deletions(-)Quoted 4 lines
There's no rationale given here about why we need this. What will these second level clock gates be used for? Why do we need these (seemingly) duplicate clock entries.
Quoted 4 lines
These are going to be used in the to-be posted patchset around powergating. As of now they are unused, which is why I hadn't added them previously. I just wanted to try to get this dependency in before the powergate series was posted.
Yes we are using these on the Pixel C (aka. Smaug) and I suggested to Rhyland that we upstream them. Eventually we will use them but only after the core GenPD changes for Tegra are merged. From my perspective I was thinking it is better to reduce the changes between the chromeos 3.18 kernel and mainline. However, if you wish to wait until we need them I guess we can. Otherwise ...
Quoted 5 lines
Acked-by Jon Hunter <[email protected]>Cheers
JonThierry do you think we should hold off on this until Jon's patches are ready or merge this sooner?
Quoted 6 lines
Quoted 4 lines
Jon, I think it would make sense for you to pick this up into your tree along with the rest of the patches that make use of them. Even if they end up being applied to different trees I'd like to see all of the work as a whole first.
Ok. That is fine with me.
I've had a brief discussion about this with Peter and it seems like these are only used to make sure that IP blocks don't hang during reset. If that's so I'm inclined to request this code to be hidden within the clock & reset driver to contain the knowledge to that driver where the workaround can be applied without having to make every driver (or at least the powergate driver) aware of this need.
Thierry