Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1503736 > unrolled thread
| Started by | Neil Armstrong <narmstrong@baylibre.com> |
|---|---|
| First post | 2016-10-19 16:50 +0200 |
| Last post | 2016-10-19 17:50 +0200 |
| Articles | 7 — 3 participants |
Back to article view | Back to linux.kernel
[PATCH v5 0/5] Add support for legacy SCPI protocol Neil Armstrong <narmstrong@baylibre.com> - 2016-10-19 16:50 +0200
Re: [PATCH v5 0/5] Add support for legacy SCPI protocol Sudeep Holla <sudeep.holla@arm.com> - 2016-10-19 16:50 +0200
Re: [PATCH v5 0/5] Add support for legacy SCPI protocol Kevin Hilman <khilman@baylibre.com> - 2016-10-19 18:00 +0200
Re: [PATCH v5 0/5] Add support for legacy SCPI protocol Kevin Hilman <khilman@baylibre.com> - 2016-10-19 18:10 +0200
Re: [PATCH v5 0/5] Add support for legacy SCPI protocol Sudeep Holla <sudeep.holla@arm.com> - 2016-10-19 18:20 +0200
Re: [PATCH v5 0/5] Add support for legacy SCPI protocol Kevin Hilman <khilman@baylibre.com> - 2016-10-19 18:50 +0200
[PATCH v5 4/5] ARM64: dts: meson-gxbb: Add SRAM node Neil Armstrong <narmstrong@baylibre.com> - 2016-10-19 17:50 +0200
| From | Neil Armstrong <narmstrong@baylibre.com> |
|---|---|
| Date | 2016-10-19 16:50 +0200 |
| Subject | [PATCH v5 0/5] Add support for legacy SCPI protocol |
| Message-ID | <su02u-2rf-61@gated-at.bofh.it> |
This patchset aims to support the legacy SCPI firmware implementation that was delivered as early technology preview for the JUNO platform. Finally a stable, maintained and public implementation for the SCPI protocol has been upstreamed part of the JUNO support and it is the recommended way of implementing SCP communication on ARMv8 platforms. The Amlogic GXBB platform is using this legacy protocol, as the RK3368 & RK3399 platforms. This patchset will only add support for Amlogic GXBB SoC. This patchset add support for the legacy protocol in the arm_scpi.c file, avoiding code duplication. This patchset is rebased against scpi-updates/for-next from [2] and with already merged patches [3], [4] and [5] and ommited in this patchset. Last RFC discution thread can be found at : https://lkml.org/lkml/2016/8/9/210 Changes since v4 at : http://lkml.kernel.org/r/1475652814-30619-1-git-send-email-narmstrong@baylibre.com - Removed legacy locking scheme - Removed cmd copy back after token insert - Various cleanups Changes since v3 at : http://lkml.kernel.org/r/1473262477-18045-1-git-send-email-narmstrong@baylibre.com - Changed back author to Sudeep Holla for first patch - Merged legacy functions to scpi_send_message, tx_prepare and handle_remote_message - Added legacy locking scheme - Merged back legacy_scpi_sensor_get_value into scpi_sensor_get_value - Rebased on linux-next-20161004 with patchset [1] Changes since v2 at : http://lkml.kernel.org/r/1471952816-30877-1-git-send-email-narmstrong@baylibre.com - Added command indirection table and use it in each commands - Added bitmap for high priority commands - Cleaned up legacy tx_prepare/handle_message to align to standard functions - Dropped legacy_scpi_ops Changes since v1 at : http://lkml.kernel.org/r/1471515066-3626-1-git-send-email-narmstrong@baylibre.com - Dropped vendor_send_message and rockchip vendor mechanism patches - Merged alternate functions into main functions using is_legacy boolean - Added DT match table to set is_legacy to true - Kept alternate scpi_ops structure for legacy [1] http://lkml.kernel.org/r/1475595430-30075-1-git-send-email-narmstrong@baylibre.com [2] git.kernel.org/sudeep.holla/linux [3] scpi: Add cmd indirection table to prepare for legacy commands [4] scpi: grow MAX_DVFS_OPPS to 16 entries [5] dt-bindings: Add support for Amlogic GXBB SCPI Interface Neil Armstrong (5): scpi: Add alternative legacy structures, functions and macros scpi: Do not fail if get_capabilities is not implemented scpi: Add support for Legacy match table for Amlogic GXBB SoC ARM64: dts: meson-gxbb: Add SRAM node ARM64: dts: meson-gxbb: Add SCPI with cpufreq & sensors Nodes arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 57 ++++++++ drivers/firmware/arm_scpi.c | 206 +++++++++++++++++++++++++--- 2 files changed, 245 insertions(+), 18 deletions(-) -- 1.9.1
[toc] | [next] | [standalone]
| From | Sudeep Holla <sudeep.holla@arm.com> |
|---|---|
| Date | 2016-10-19 16:50 +0200 |
| Message-ID | <su0lP-2yX-21@gated-at.bofh.it> |
| In reply to | #1503736 |
On 19/10/16 13:51, Neil Armstrong wrote: > This patchset aims to support the legacy SCPI firmware implementation that was > delivered as early technology preview for the JUNO platform. > > Finally a stable, maintained and public implementation for the SCPI protocol > has been upstreamed part of the JUNO support and it is the recommended way > of implementing SCP communication on ARMv8 platforms. > > The Amlogic GXBB platform is using this legacy protocol, as the RK3368 & RK3399 > platforms. This patchset will only add support for Amlogic GXBB SoC. > > This patchset add support for the legacy protocol in the arm_scpi.c file, > avoiding code duplication. > > This patchset is rebased against scpi-updates/for-next from [2] and with > already merged patches [3], [4] and [5] and ommited in this patchset. > > Last RFC discution thread can be found at : https://lkml.org/lkml/2016/8/9/210 > > Changes since v4 at : http://lkml.kernel.org/r/1475652814-30619-1-git-send-email-narmstrong@baylibre.com > - Removed legacy locking scheme > - Removed cmd copy back after token insert > - Various cleanups > > Changes since v3 at : http://lkml.kernel.org/r/1473262477-18045-1-git-send-email-narmstrong@baylibre.com > - Changed back author to Sudeep Holla for first patch > - Merged legacy functions to scpi_send_message, tx_prepare and handle_remote_message > - Added legacy locking scheme > - Merged back legacy_scpi_sensor_get_value into scpi_sensor_get_value > - Rebased on linux-next-20161004 with patchset [1] > > Changes since v2 at : http://lkml.kernel.org/r/1471952816-30877-1-git-send-email-narmstrong@baylibre.com > - Added command indirection table and use it in each commands > - Added bitmap for high priority commands > - Cleaned up legacy tx_prepare/handle_message to align to standard functions > - Dropped legacy_scpi_ops > > Changes since v1 at : http://lkml.kernel.org/r/1471515066-3626-1-git-send-email-narmstrong@baylibre.com > - Dropped vendor_send_message and rockchip vendor mechanism patches > - Merged alternate functions into main functions using is_legacy boolean > - Added DT match table to set is_legacy to true > - Kept alternate scpi_ops structure for legacy > > [1] http://lkml.kernel.org/r/1475595430-30075-1-git-send-email-narmstrong@baylibre.com > [2] git.kernel.org/sudeep.holla/linux > [3] scpi: Add cmd indirection table to prepare for legacy commands > [4] scpi: grow MAX_DVFS_OPPS to 16 entries > [5] dt-bindings: Add support for Amlogic GXBB SCPI Interface > > Neil Armstrong (5): > scpi: Add alternative legacy structures, functions and macros > scpi: Do not fail if get_capabilities is not implemented > scpi: Add support for Legacy match table for Amlogic GXBB SoC > ARM64: dts: meson-gxbb: Add SRAM node > ARM64: dts: meson-gxbb: Add SCPI with cpufreq & sensors Nodes > > arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 57 ++++++++ > drivers/firmware/arm_scpi.c | 206 +++++++++++++++++++++++++--- > 2 files changed, 245 insertions(+), 18 deletions(-) > Nice to see this diff stat from a whole new file legacy_scpi.c and 1000+ delta. Thanks for working on this. I have applied the first 3 patches in this series with some subject/commit message changes to [1]. I assume the DT changes needs to go via the corresponding platform maintainer. -- Regards, Sudeep [1] git.kernel.org/sudeep.holla/linux/h/scpi-updates/for-next
[toc] | [prev] | [next] | [standalone]
| From | Kevin Hilman <khilman@baylibre.com> |
|---|---|
| Date | 2016-10-19 18:00 +0200 |
| Message-ID | <su1rz-3fC-7@gated-at.bofh.it> |
| In reply to | #1503744 |
Sudeep Holla <sudeep.holla@arm.com> writes: > On 19/10/16 13:51, Neil Armstrong wrote: >> This patchset aims to support the legacy SCPI firmware implementation that was >> delivered as early technology preview for the JUNO platform. >> >> Finally a stable, maintained and public implementation for the SCPI protocol >> has been upstreamed part of the JUNO support and it is the recommended way >> of implementing SCP communication on ARMv8 platforms. >> >> The Amlogic GXBB platform is using this legacy protocol, as the RK3368 & RK3399 >> platforms. This patchset will only add support for Amlogic GXBB SoC. >> >> This patchset add support for the legacy protocol in the arm_scpi.c file, >> avoiding code duplication. >> >> This patchset is rebased against scpi-updates/for-next from [2] and with >> already merged patches [3], [4] and [5] and ommited in this patchset. >> >> Last RFC discution thread can be found at : https://lkml.org/lkml/2016/8/9/210 >> >> Changes since v4 at : http://lkml.kernel.org/r/1475652814-30619-1-git-send-email-narmstrong@baylibre.com >> - Removed legacy locking scheme >> - Removed cmd copy back after token insert >> - Various cleanups >> >> Changes since v3 at : http://lkml.kernel.org/r/1473262477-18045-1-git-send-email-narmstrong@baylibre.com >> - Changed back author to Sudeep Holla for first patch >> - Merged legacy functions to scpi_send_message, tx_prepare and handle_remote_message >> - Added legacy locking scheme >> - Merged back legacy_scpi_sensor_get_value into scpi_sensor_get_value >> - Rebased on linux-next-20161004 with patchset [1] >> >> Changes since v2 at : http://lkml.kernel.org/r/1471952816-30877-1-git-send-email-narmstrong@baylibre.com >> - Added command indirection table and use it in each commands >> - Added bitmap for high priority commands >> - Cleaned up legacy tx_prepare/handle_message to align to standard functions >> - Dropped legacy_scpi_ops >> >> Changes since v1 at : http://lkml.kernel.org/r/1471515066-3626-1-git-send-email-narmstrong@baylibre.com >> - Dropped vendor_send_message and rockchip vendor mechanism patches >> - Merged alternate functions into main functions using is_legacy boolean >> - Added DT match table to set is_legacy to true >> - Kept alternate scpi_ops structure for legacy >> >> [1] http://lkml.kernel.org/r/1475595430-30075-1-git-send-email-narmstrong@baylibre.com >> [2] git.kernel.org/sudeep.holla/linux >> [3] scpi: Add cmd indirection table to prepare for legacy commands >> [4] scpi: grow MAX_DVFS_OPPS to 16 entries >> [5] dt-bindings: Add support for Amlogic GXBB SCPI Interface >> >> Neil Armstrong (5): >> scpi: Add alternative legacy structures, functions and macros >> scpi: Do not fail if get_capabilities is not implemented >> scpi: Add support for Legacy match table for Amlogic GXBB SoC >> ARM64: dts: meson-gxbb: Add SRAM node >> ARM64: dts: meson-gxbb: Add SCPI with cpufreq & sensors Nodes >> >> arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 57 ++++++++ >> drivers/firmware/arm_scpi.c | 206 +++++++++++++++++++++++++--- >> 2 files changed, 245 insertions(+), 18 deletions(-) >> > > Nice to see this diff stat from a whole new file legacy_scpi.c and 1000+ > delta. Thanks for working on this. I have applied the first 3 patches in > this series with some subject/commit message changes to [1]. > > I assume the DT changes needs to go via the corresponding platform > maintainer. Yes, I'll queue the DT changes through the amlogic tree (which then goes through the arm-soc tree.) Thanks, Kevin
[toc] | [prev] | [next] | [standalone]
| From | Kevin Hilman <khilman@baylibre.com> |
|---|---|
| Date | 2016-10-19 18:10 +0200 |
| Message-ID | <su1Bf-3zK-7@gated-at.bofh.it> |
| In reply to | #1503744 |
Sudeep Holla <sudeep.holla@arm.com> writes: > On 19/10/16 13:51, Neil Armstrong wrote: >> This patchset aims to support the legacy SCPI firmware implementation that was >> delivered as early technology preview for the JUNO platform. >> >> Finally a stable, maintained and public implementation for the SCPI protocol >> has been upstreamed part of the JUNO support and it is the recommended way >> of implementing SCP communication on ARMv8 platforms. >> >> The Amlogic GXBB platform is using this legacy protocol, as the RK3368 & RK3399 >> platforms. This patchset will only add support for Amlogic GXBB SoC. >> >> This patchset add support for the legacy protocol in the arm_scpi.c file, >> avoiding code duplication. >> >> This patchset is rebased against scpi-updates/for-next from [2] and with >> already merged patches [3], [4] and [5] and ommited in this patchset. >> >> Last RFC discution thread can be found at : https://lkml.org/lkml/2016/8/9/210 >> >> Changes since v4 at : http://lkml.kernel.org/r/1475652814-30619-1-git-send-email-narmstrong@baylibre.com >> - Removed legacy locking scheme >> - Removed cmd copy back after token insert >> - Various cleanups >> >> Changes since v3 at : http://lkml.kernel.org/r/1473262477-18045-1-git-send-email-narmstrong@baylibre.com >> - Changed back author to Sudeep Holla for first patch >> - Merged legacy functions to scpi_send_message, tx_prepare and handle_remote_message >> - Added legacy locking scheme >> - Merged back legacy_scpi_sensor_get_value into scpi_sensor_get_value >> - Rebased on linux-next-20161004 with patchset [1] >> >> Changes since v2 at : http://lkml.kernel.org/r/1471952816-30877-1-git-send-email-narmstrong@baylibre.com >> - Added command indirection table and use it in each commands >> - Added bitmap for high priority commands >> - Cleaned up legacy tx_prepare/handle_message to align to standard functions >> - Dropped legacy_scpi_ops >> >> Changes since v1 at : http://lkml.kernel.org/r/1471515066-3626-1-git-send-email-narmstrong@baylibre.com >> - Dropped vendor_send_message and rockchip vendor mechanism patches >> - Merged alternate functions into main functions using is_legacy boolean >> - Added DT match table to set is_legacy to true >> - Kept alternate scpi_ops structure for legacy >> >> [1] http://lkml.kernel.org/r/1475595430-30075-1-git-send-email-narmstrong@baylibre.com >> [2] git.kernel.org/sudeep.holla/linux >> [3] scpi: Add cmd indirection table to prepare for legacy commands >> [4] scpi: grow MAX_DVFS_OPPS to 16 entries >> [5] dt-bindings: Add support for Amlogic GXBB SCPI Interface >> >> Neil Armstrong (5): >> scpi: Add alternative legacy structures, functions and macros >> scpi: Do not fail if get_capabilities is not implemented >> scpi: Add support for Legacy match table for Amlogic GXBB SoC >> ARM64: dts: meson-gxbb: Add SRAM node >> ARM64: dts: meson-gxbb: Add SCPI with cpufreq & sensors Nodes >> >> arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 57 ++++++++ >> drivers/firmware/arm_scpi.c | 206 +++++++++++++++++++++++++--- >> 2 files changed, 245 insertions(+), 18 deletions(-) >> > > Nice to see this diff stat from a whole new file legacy_scpi.c and 1000+ > delta. Thanks for working on this. I have applied the first 3 patches in > this series with some subject/commit message changes to [1]. Sudeep, will this be an immutable branch? (or could you put a tag at an immutable place on this branch?) I'd like to include this in my amlogic integration branch for broader testing. Thanks, Kevin
[toc] | [prev] | [next] | [standalone]
| From | Sudeep Holla <sudeep.holla@arm.com> |
|---|---|
| Date | 2016-10-19 18:20 +0200 |
| Message-ID | <su1KW-3Hg-21@gated-at.bofh.it> |
| In reply to | #1504016 |
On 19/10/16 16:59, Kevin Hilman wrote: > Sudeep Holla <sudeep.holla@arm.com> writes: > >> On 19/10/16 13:51, Neil Armstrong wrote: >>> This patchset aims to support the legacy SCPI firmware implementation that was >>> delivered as early technology preview for the JUNO platform. >>> >>> Finally a stable, maintained and public implementation for the SCPI protocol >>> has been upstreamed part of the JUNO support and it is the recommended way >>> of implementing SCP communication on ARMv8 platforms. >>> >>> The Amlogic GXBB platform is using this legacy protocol, as the RK3368 & RK3399 >>> platforms. This patchset will only add support for Amlogic GXBB SoC. >>> >>> This patchset add support for the legacy protocol in the arm_scpi.c file, >>> avoiding code duplication. >>> >>> This patchset is rebased against scpi-updates/for-next from [2] and with >>> already merged patches [3], [4] and [5] and ommited in this patchset. >>> >>> Last RFC discution thread can be found at : https://lkml.org/lkml/2016/8/9/210 >>> >>> Changes since v4 at : http://lkml.kernel.org/r/1475652814-30619-1-git-send-email-narmstrong@baylibre.com >>> - Removed legacy locking scheme >>> - Removed cmd copy back after token insert >>> - Various cleanups >>> >>> Changes since v3 at : http://lkml.kernel.org/r/1473262477-18045-1-git-send-email-narmstrong@baylibre.com >>> - Changed back author to Sudeep Holla for first patch >>> - Merged legacy functions to scpi_send_message, tx_prepare and handle_remote_message >>> - Added legacy locking scheme >>> - Merged back legacy_scpi_sensor_get_value into scpi_sensor_get_value >>> - Rebased on linux-next-20161004 with patchset [1] >>> >>> Changes since v2 at : http://lkml.kernel.org/r/1471952816-30877-1-git-send-email-narmstrong@baylibre.com >>> - Added command indirection table and use it in each commands >>> - Added bitmap for high priority commands >>> - Cleaned up legacy tx_prepare/handle_message to align to standard functions >>> - Dropped legacy_scpi_ops >>> >>> Changes since v1 at : http://lkml.kernel.org/r/1471515066-3626-1-git-send-email-narmstrong@baylibre.com >>> - Dropped vendor_send_message and rockchip vendor mechanism patches >>> - Merged alternate functions into main functions using is_legacy boolean >>> - Added DT match table to set is_legacy to true >>> - Kept alternate scpi_ops structure for legacy >>> >>> [1] http://lkml.kernel.org/r/1475595430-30075-1-git-send-email-narmstrong@baylibre.com >>> [2] git.kernel.org/sudeep.holla/linux >>> [3] scpi: Add cmd indirection table to prepare for legacy commands >>> [4] scpi: grow MAX_DVFS_OPPS to 16 entries >>> [5] dt-bindings: Add support for Amlogic GXBB SCPI Interface >>> >>> Neil Armstrong (5): >>> scpi: Add alternative legacy structures, functions and macros >>> scpi: Do not fail if get_capabilities is not implemented >>> scpi: Add support for Legacy match table for Amlogic GXBB SoC >>> ARM64: dts: meson-gxbb: Add SRAM node >>> ARM64: dts: meson-gxbb: Add SCPI with cpufreq & sensors Nodes >>> >>> arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 57 ++++++++ >>> drivers/firmware/arm_scpi.c | 206 +++++++++++++++++++++++++--- >>> 2 files changed, 245 insertions(+), 18 deletions(-) >>> >> >> Nice to see this diff stat from a whole new file legacy_scpi.c and 1000+ >> delta. Thanks for working on this. I have applied the first 3 patches in >> this series with some subject/commit message changes to [1]. > > Sudeep, will this be an immutable branch? (or could you put a tag at an > immutable place on this branch?) I'd like to include this in my amlogic > integration branch for broader testing. > If you plan to test SCPI(which is enabled in defconfig), then you need all the patches in the branch[1]. I will tag once I get a build success from kbuild robot and I do some testing. In short, immutable tag = PR tag IMO. The only thing I can drop from the list is DT bindings patch. Let me know if you are fine using the same tag ? Or you can propose any other alternative, I am fine by that too. -- Regards, Sudeep [1] git.kernel.org/sudeep.holla/linux/h/scpi-updates/for-next
[toc] | [prev] | [next] | [standalone]
| From | Kevin Hilman <khilman@baylibre.com> |
|---|---|
| Date | 2016-10-19 18:50 +0200 |
| Message-ID | <su2dZ-3Sv-49@gated-at.bofh.it> |
| In reply to | #1504059 |
Sudeep Holla <sudeep.holla@arm.com> writes: > On 19/10/16 16:59, Kevin Hilman wrote: [...] >> >> Sudeep, will this be an immutable branch? (or could you put a tag at an >> immutable place on this branch?) I'd like to include this in my amlogic >> integration branch for broader testing. >> > > If you plan to test SCPI(which is enabled in defconfig), then you need > all the patches in the branch[1]. I will tag once I get a build success > from kbuild robot and I do some testing. In short, immutable tag = PR > tag IMO. The only thing I can drop from the list is DT bindings patch. > > Let me know if you are fine using the same tag ? Or you can propose any > other alternative, I am fine by that too. I'm currently using your scpi-updates/for-next branch, so a tag at (or near) there should be fine after you've validated it. Thanks, Kevin
[toc] | [prev] | [next] | [standalone]
| From | Neil Armstrong <narmstrong@baylibre.com> |
|---|---|
| Date | 2016-10-19 17:50 +0200 |
| Subject | [PATCH v5 4/5] ARM64: dts: meson-gxbb: Add SRAM node |
| Message-ID | <su1hV-3b7-47@gated-at.bofh.it> |
| In reply to | #1503736 |
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
---
arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi
index aad639a..28e218d 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi
@@ -94,6 +94,15 @@
status = "disabled";
};
+ sram: sram@c8000000 {
+ compatible = "amlogic,meson-gxbb-sram", "mmio-sram";
+ reg = <0x0 0xc8000000 0x0 0x14000>;
+
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges = <0 0x0 0xc8000000 0x14000>;
+ };
+
usb0: usb@c9000000 {
compatible = "amlogic,meson-gxbb-usb", "snps,dwc2";
reg = <0x0 0xc9000000 0x0 0x40000>;
--
1.9.1
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web