Skip to contentSkip to conversation

ARM: dts: sunxi: Add sid for a83t

PATCH In review [email protected] 8 participants 18 messages Dec 19, 2017 – Apr 19, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ARM: dts: sunxi: Add sid for a83t

Allwinner a83t has a 1 KB sid block with efuse for security rootkey and thermal calibration data, add node to describe it.

a83t-sid is not currently supported by nvmem/sunxi-sid, but it is supported in an external driver for FreeBSD.

---

Changes in v2:
- remove bogus "From:" line in commit text; no functional change

 Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt | 1 +
 arch/arm/boot/dts/sun8i-a83t.dtsi                               | 5 +++++
 2 files changed, 6 insertions(+)
Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt +1 -0
index d69543701..e319fe5e2 100644
@@ -4,6 +4,7 @@ Required properties:
 - compatible: Should be one of the following:
   "allwinner,sun4i-a10-sid"
   "allwinner,sun7i-a20-sid"
+  "allwinner,sun8i-a83t-sid"
   "allwinner,sun8i-h3-sid"
   "allwinner,sun50i-a64-sid"
 
arch/arm/boot/dts/sun8i-a83t.dtsi +5 -0
index de5119a2a..cced6e5fb 100644
@@ -238,6 +238,11 @@
 			#size-cells = <0>;
 		};
 
+		sid: eeprom at 1c14000 {
+			compatible = "allwinner,sun8i-a83t-sid";
+			reg = <0x1c14000 0x400>;
+		};
+
 		usb_otg: usb at 1c19000 {
 			compatible = "allwinner,sun8i-a83t-musb",
 				     "allwinner,sun8i-a33-musb";
Signature · 1 line
2.15.1
maintainer Reviewed-by on v2 1/1
#1 lore raw
Quoted 7 lines · On Tue, Dec 19, 2017 at 03:05:23PM -0600, kevans91 at ksu.edu wrote:

Allwinner a83t has a 1 KB sid block with efuse for security rootkey and thermal calibration data, add node to describe it.

a83t-sid is not currently supported by nvmem/sunxi-sid, but it is supported in an external driver for FreeBSD.

Quoted 8 lines

---

Changes in v2:
- remove bogus "From:" line in commit text; no functional change

 Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt | 1 +
 arch/arm/boot/dts/sun8i-a83t.dtsi                               | 5 +++++
 2 files changed, 6 insertions(+)
#2 lore raw
In reply to [email protected]

Hi Kyle,

Quoted 7 lines · On Tue, Dec 19, 2017 at 03:05:23PM -0600, kevans91 at ksu.edu wrote:

Allwinner a83t has a 1 KB sid block with efuse for security rootkey and thermal calibration data, add node to describe it.

a83t-sid is not currently supported by nvmem/sunxi-sid, but it is supported in an external driver for FreeBSD.

The patch looks fine in itself, but we've had a number of issues with the register layout (and access patterns) in the past, so I'd rather have something that works in Linux too if possible.

Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20171221/cf6e2c93/attachment.sig>
#3 lore raw

PATCH v2 1/1 ARM: dts: sunxi: Add sid for a83t

? 2017?12?21???? CST ??10:55:12?Maxime Ripard ???

Quoted 6 lines

Hi Kyle,

Quoted 3 lines · On Tue, Dec 19, 2017 at 03:05:23PM -0600, kevans91 at ksu.edu wrote:

Allwinner a83t has a 1 KB sid block with efuse for security rootkey and thermal calibration data, add node to describe it.

Quoted 8 lines
Quoted 4 lines

a83t-sid is not currently supported by nvmem/sunxi-sid, but it is supported in an external driver for FreeBSD.

The patch looks fine in itself, but we've had a number of issues with the register layout (and access patterns) in the past, so I'd rather have something that works in Linux too if possible.

I think for A83T it can just refer H3.

Quoted 2 lines

Maxime

author
#4 lore raw
In reply to Maxime Ripard
Quoted 6 lines · Maxime Ripard

Hi Kyle,

Quoted 3 lines · On Tue, Dec 19, 2017 at 03:05:23PM -0600, kevans91 at ksu.edu wrote:

Allwinner a83t has a 1 KB sid block with efuse for security rootkey and thermal calibration data, add node to describe it.

Quoted 8 lines
Quoted 4 lines

a83t-sid is not currently supported by nvmem/sunxi-sid, but it is supported in an external driver for FreeBSD.

The patch looks fine in itself, but we've had a number of issues with the register layout (and access patterns) in the past, so I'd rather have something that works in Linux too if possible.

Hello!

I have a patch that I think should make it work fine on Linux [1], but I'm afraid I have little to no capability to test it myself and so I did not add it as well.

I do know that the rootkey is offset 0x200 into the given space [2], as is the case with the H3, and that the readout quirk is not needed. I wasn't 100% sure that the a83t has 2Kbit worth of efuse space as the H3, but I do know that thermal data can be found at 0x34 and 0x38 in this space.

[1] https://people.freebsd.org/~kevans/sunxi-sid.diff
[2] https://svnweb.freebsd.org/base/head/sys/arm/allwinner/aw_sid.c?view=markup#l56

#5 lore raw

Hi,

Quoted 21 lines · Kyle Evans
Quoted 6 lines · Maxime Ripard

Hi Kyle,

Quoted 3 lines · On Tue, Dec 19, 2017 at 03:05:23PM -0600, kevans91 at ksu.edu wrote:

Allwinner a83t has a 1 KB sid block with efuse for security rootkey and thermal calibration data, add node to describe it.

Quoted 8 lines
Quoted 4 lines

a83t-sid is not currently supported by nvmem/sunxi-sid, but it is supported in an external driver for FreeBSD.

The patch looks fine in itself, but we've had a number of issues with the register layout (and access patterns) in the past, so I'd rather have something that works in Linux too if possible.

I have a patch that I think should make it work fine on Linux [1], but I'm afraid I have little to no capability to test it myself and so I did not add it as well.

Quoted 5 lines

I do know that the rootkey is offset 0x200 into the given space [2], as is the case with the H3, and that the readout quirk is not needed. I wasn't 100% sure that the a83t has 2Kbit worth of efuse space as the H3, but I do know that thermal data can be found at 0x34 and 0x38 in this space.

Then maybe we should leave it aside until someone takes some time on the A83t. The good news is that the binding itself looks fine, so as far as FreeBSD goes, there shouldn't be anything preventing you from using it I guess.

Chen-Yu, what do you think?

Thanks!
Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20171221/7c003c1c/attachment.sig>
author
#6 lore raw
Quoted 30 lines · Maxime Ripard

Hi,

Quoted 21 lines · Kyle Evans
Quoted 6 lines · Maxime Ripard

Hi Kyle,

Quoted 3 lines · On Tue, Dec 19, 2017 at 03:05:23PM -0600, kevans91 at ksu.edu wrote:

Allwinner a83t has a 1 KB sid block with efuse for security rootkey and thermal calibration data, add node to describe it.

Quoted 8 lines
Quoted 4 lines

a83t-sid is not currently supported by nvmem/sunxi-sid, but it is supported in an external driver for FreeBSD.

The patch looks fine in itself, but we've had a number of issues with the register layout (and access patterns) in the past, so I'd rather have something that works in Linux too if possible.

I have a patch that I think should make it work fine on Linux [1], but I'm afraid I have little to no capability to test it myself and so I did not add it as well.

Quoted 5 lines

I do know that the rootkey is offset 0x200 into the given space [2], as is the case with the H3, and that the readout quirk is not needed. I wasn't 100% sure that the a83t has 2Kbit worth of efuse space as the H3, but I do know that thermal data can be found at 0x34 and 0x38 in this space.

Quoted 4 lines

Then maybe we should leave it aside until someone takes some time on the A83t. The good news is that the binding itself looks fine, so as far as FreeBSD goes, there shouldn't be anything preventing you from using it I guess.

Yeah, we've had this exact binding in our own copy of DTS up until a recent point when we flipped the switch to pulling DT from Mainline Linux and trying to upstream changes instead of having a bunch of local modifications in our tree.

Quoted 9 lines

Chen-Yu, what do you think?

Thanks!
Maxime

--
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

#7 lore raw
In reply to Maxime Ripard
Quoted 30 lines · Maxime Ripard

Hi,

Quoted 21 lines · Kyle Evans
Quoted 6 lines · Maxime Ripard

Hi Kyle,

Quoted 3 lines · On Tue, Dec 19, 2017 at 03:05:23PM -0600…

Allwinner a83t has a 1 KB sid block with efuse for security rootkey and thermal calibration data, add node to describe it.

Quoted 8 lines
Quoted 4 lines

a83t-sid is not currently supported by nvmem/sunxi-sid, but it is supported in an external driver for FreeBSD.

The patch looks fine in itself, but we've had a number of issues with the register layout (and access patterns) in the past, so I'd rather have something that works in Linux too if possible.

I have a patch that I think should make it work fine on Linux [1], but I'm afraid I have little to no capability to test it myself and so I did not add it as well.

Quoted 5 lines

I do know that the rootkey is offset 0x200 into the given space [2], as is the case with the H3, and that the readout quirk is not needed. I wasn't 100% sure that the a83t has 2Kbit worth of efuse space as the H3, but I do know that thermal data can be found at 0x34 and 0x38 in this space.

Quoted 6 lines

Then maybe we should leave it aside until someone takes some time on the A83t. The good news is that the binding itself looks fine, so as far as FreeBSD goes, there shouldn't be anything preventing you from using it I guess.

Chen-Yu, what do you think?

Looks good to me.

ChenYu

#8 lore raw
In reply to Maxime Ripard

Hi Maxime,

Quoted 24 lines · On Thu, 21 Dec 2017 16:26:30 +0100 Maxime Ripard…

Hi,

Quoted 21 lines · Kyle Evans
Quoted 6 lines · Maxime Ripard

Hi Kyle,

Quoted 3 lines · On Tue, Dec 19, 2017 at 03:05:23PM -0600, kevans91 at ksu.edu wrote:

Allwinner a83t has a 1 KB sid block with efuse for security rootkey and thermal calibration data, add node to describe it.

Quoted 8 lines
Quoted 4 lines

a83t-sid is not currently supported by nvmem/sunxi-sid, but it is supported in an external driver for FreeBSD.

The patch looks fine in itself, but we've had a number of issues with the register layout (and access patterns) in the past, so I'd rather have something that works in Linux too if possible.

I have a patch that I think should make it work fine on Linux [1], but I'm afraid I have little to no capability to test it myself and so I did not add it as well.

Quoted 8 lines
Quoted 5 lines

I do know that the rootkey is offset 0x200 into the given space [2], as is the case with the H3, and that the readout quirk is not needed. I wasn't 100% sure that the a83t has 2Kbit worth of efuse space as the H3, but I do know that thermal data can be found at 0x34 and 0x38 in this space.

Then maybe we should leave it aside until someone takes some time on the A83t.

Take some time on the Linux driver and do not apply this patch for
now you mean ?

Cheers,

Quoted 13 lines

The good news is that the binding itself looks fine, so as far as FreeBSD goes, there shouldn't be anything preventing you from using it I guess.

Chen-Yu, what do you think?

Thanks!
Maxime

Signature · 3 lines
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
Signature · 1 line
Emmanuel Vadot <[email protected]>
#9 lore raw
Quoted 36 lines · Emmanuel Vadot

Hi Maxime,

Quoted 30 lines · On Thu, 21 Dec 2017 16:26:30 +0100 Maxime Ripard…

Hi,

Quoted 26 lines · Kyle Evans
Quoted 6 lines · Maxime Ripard

Hi Kyle,

Quoted 3 lines · On Tue, Dec 19, 2017 at 03:05:23PM -0600, kevans91 at ksu.edu wrote:

Allwinner a83t has a 1 KB sid block with efuse for security rootkey and thermal calibration data, add node to describe it.

Quoted 8 lines
Quoted 4 lines

a83t-sid is not currently supported by nvmem/sunxi-sid, but it is supported in an external driver for FreeBSD.

The patch looks fine in itself, but we've had a number of issues with the register layout (and access patterns) in the past, so I'd rather have something that works in Linux too if possible.

I have a patch that I think should make it work fine on Linux [1], but I'm afraid I have little to no capability to test it myself and so I did not add it as well.

I do know that the rootkey is offset 0x200 into the given space [2], as is the case with the H3, and that the readout quirk is not needed. I wasn't 100% sure that the a83t has 2Kbit worth of efuse space as the H3, but I do know that thermal data can be found at 0x34 and 0x38 in this space.

Quoted 5 lines
Quoted 2 lines

Then maybe we should leave it aside until someone takes some time on the A83t.

Take some time on the Linux driver and do not apply this patch for
now you mean ?

Yep.

Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20171222/f9c1e545/attachment.sig>
#10 lore raw
Quoted 40 lines · On Fri, 22 Dec 2017 09:35:08 +0100 Maxime Ripard…
Quoted 39 lines · Emmanuel Vadot

Hi Maxime,

Quoted 32 lines · On Thu, 21 Dec 2017 16:26:30 +0100 Maxime Ripard…

Hi,

Quoted 21 lines · Kyle Evans
Quoted 6 lines · Maxime Ripard

Hi Kyle,

Quoted 3 lines · On Tue, Dec 19, 2017 at 03:05:23PM -0600, kevans91 at ksu.edu wrote:

Allwinner a83t has a 1 KB sid block with efuse for security rootkey and thermal calibration data, add node to describe it.

Quoted 8 lines
Quoted 4 lines

a83t-sid is not currently supported by nvmem/sunxi-sid, but it is supported in an external driver for FreeBSD.

The patch looks fine in itself, but we've had a number of issues with the register layout (and access patterns) in the past, so I'd rather have something that works in Linux too if possible.

I have a patch that I think should make it work fine on Linux [1], but I'm afraid I have little to no capability to test it myself and so I did not add it as well.

Quoted 5 lines

I do know that the rootkey is offset 0x200 into the given space [2], as is the case with the H3, and that the readout quirk is not needed. I wasn't 100% sure that the a83t has 2Kbit worth of efuse space as the H3, but I do know that thermal data can be found at 0x34 and 0x38 in this space.

Then maybe we should leave it aside until someone takes some time on the A83t.

Quoted 6 lines
Quoted 2 lines

Take some time on the Linux driver and do not apply this patch for
now you mean ?

Yep.

Maxime

Since linux doesn't have the compatible in it's driver what would
be the harm to add the node in the DTS ? If a quirks is needed because some region is weird this would go in the driver right ? I don't see a technical problem for adding this node right now.
If Kyle confirm the lenght of the region and that no quirk is needed
will it be enough ?

Cheers,

Signature · 1 line
Emmanuel Vadot <[email protected]>
#11 lore raw
Quoted 48 lines · Emmanuel Vadot
Quoted 45 lines · On Fri, 22 Dec 2017 09:35:08 +0100 Maxime Ripard…
Quoted 36 lines · Emmanuel Vadot

Hi Maxime,

Quoted 30 lines · On Thu, 21 Dec 2017 16:26:30 +0100 Maxime Ripard…

Hi,

Quoted 26 lines · Kyle Evans
Quoted 6 lines · Maxime Ripard

Hi Kyle,

Quoted 3 lines · On Tue, Dec 19, 2017 at 03:05:23PM -0600…

Allwinner a83t has a 1 KB sid block with efuse for security rootkey and thermal calibration data, add node to describe it.

Quoted 8 lines
Quoted 4 lines

a83t-sid is not currently supported by nvmem/sunxi-sid, but it is supported in an external driver for FreeBSD.

The patch looks fine in itself, but we've had a number of issues with the register layout (and access patterns) in the past, so I'd rather have something that works in Linux too if possible.

I have a patch that I think should make it work fine on Linux [1], but I'm afraid I have little to no capability to test it myself and so I did not add it as well.

I do know that the rootkey is offset 0x200 into the given space [2], as is the case with the H3, and that the readout quirk is not needed. I wasn't 100% sure that the a83t has 2Kbit worth of efuse space as the H3, but I do know that thermal data can be found at 0x34 and 0x38 in this space.

Quoted 5 lines
Quoted 2 lines

Then maybe we should leave it aside until someone takes some time on the A83t.

Take some time on the Linux driver and do not apply this patch for
now you mean ?

Yep.

Quoted 8 lines
Quoted 1 line

Maxime

Since linux doesn't have the compatible in it's driver what would
be the harm to add the node in the DTS ? If a quirks is needed because some region is weird this would go in the driver right ? I don't see a technical problem for adding this node right now.
If Kyle confirm the lenght of the region and that no quirk is needed
will it be enough ?

I guess I wasn't very clear. I'm OK with the patch going in. The device node currently says nothing about how much efuse space there is. The memory region covers that and the control section, and the size matches what the memory map says.

The size and offset of the efuse space would be dealt with in the driver.

ChenYu

Acked-by
#12 lore raw
Quoted 58 lines · Chen-Yu Tsai
Quoted 48 lines · Emmanuel Vadot
Quoted 45 lines · On Fri, 22 Dec 2017 09:35:08 +0100 Maxime Ripard…
Quoted 36 lines · Emmanuel Vadot

Hi Maxime,

Quoted 30 lines · On Thu, 21 Dec 2017 16:26:30 +0100 Maxime Ripard…

Hi,

Quoted 26 lines · Kyle Evans
Quoted 6 lines · Maxime Ripard

Hi Kyle,

Quoted 3 lines · On Tue, Dec 19, 2017 at 03:05:23PM -0600, kevans91 at ksu.edu wrote:

Allwinner a83t has a 1 KB sid block with efuse for security rootkey and thermal calibration data, add node to describe it.

Quoted 8 lines
Quoted 4 lines

a83t-sid is not currently supported by nvmem/sunxi-sid, but it is supported in an external driver for FreeBSD.

The patch looks fine in itself, but we've had a number of issues with the register layout (and access patterns) in the past, so I'd rather have something that works in Linux too if possible.

I have a patch that I think should make it work fine on Linux [1], but I'm afraid I have little to no capability to test it myself and so I did not add it as well.

I do know that the rootkey is offset 0x200 into the given space [2], as is the case with the H3, and that the readout quirk is not needed. I wasn't 100% sure that the a83t has 2Kbit worth of efuse space as the H3, but I do know that thermal data can be found at 0x34 and 0x38 in this space.

Quoted 5 lines
Quoted 2 lines

Then maybe we should leave it aside until someone takes some time on the A83t.

Take some time on the Linux driver and do not apply this patch for
now you mean ?

Yep.

Quoted 8 lines
Quoted 1 line

Maxime

Since linux doesn't have the compatible in it's driver what would
be the harm to add the node in the DTS ? If a quirks is needed because some region is weird this would go in the driver right ? I don't see a technical problem for adding this node right now.
If Kyle confirm the lenght of the region and that no quirk is needed
will it be enough ?

Quoted 6 lines

I guess I wasn't very clear. I'm OK with the patch going in. The device node currently says nothing about how much efuse space there is. The memory region covers that and the control section, and the size matches what the memory map says.

The size and offset of the efuse space would be dealt with in the driver.

Let's merge it then.

Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180104/d04730a1/attachment.sig>
author
#13 lore raw
Quoted 64 lines · Maxime Ripard
Quoted 63 lines · Chen-Yu Tsai
Quoted 48 lines · Emmanuel Vadot
Quoted 45 lines · On Fri, 22 Dec 2017 09:35:08 +0100 Maxime Ripard…
Quoted 36 lines · Emmanuel Vadot

Hi Maxime,

Quoted 30 lines · On Thu, 21 Dec 2017 16:26:30 +0100 Maxime Ripard…

Hi,

Quoted 26 lines · Kyle Evans
Quoted 6 lines · Maxime Ripard

Hi Kyle,

Quoted 3 lines · On Tue, Dec 19, 2017 at 03:05:23PM -0600, kevans91 at ksu.edu wrote:

Allwinner a83t has a 1 KB sid block with efuse for security rootkey and thermal calibration data, add node to describe it.

Quoted 8 lines
Quoted 4 lines

a83t-sid is not currently supported by nvmem/sunxi-sid, but it is supported in an external driver for FreeBSD.

The patch looks fine in itself, but we've had a number of issues with the register layout (and access patterns) in the past, so I'd rather have something that works in Linux too if possible.

I have a patch that I think should make it work fine on Linux [1], but I'm afraid I have little to no capability to test it myself and so I did not add it as well.

I do know that the rootkey is offset 0x200 into the given space [2], as is the case with the H3, and that the readout quirk is not needed. I wasn't 100% sure that the a83t has 2Kbit worth of efuse space as the H3, but I do know that thermal data can be found at 0x34 and 0x38 in this space.

Quoted 5 lines
Quoted 2 lines

Then maybe we should leave it aside until someone takes some time on the A83t.

Take some time on the Linux driver and do not apply this patch for
now you mean ?

Yep.

Quoted 8 lines
Quoted 1 line

Maxime

Since linux doesn't have the compatible in it's driver what would
be the harm to add the node in the DTS ? If a quirks is needed because some region is weird this would go in the driver right ? I don't see a technical problem for adding this node right now.
If Kyle confirm the lenght of the region and that no quirk is needed
will it be enough ?

I guess I wasn't very clear. I'm OK with the patch going in. The device node currently says nothing about how much efuse space there is. The memory region covers that and the control section, and the size matches what the memory map says.

Quoted 7 lines
Quoted 1 line

The size and offset of the efuse space would be dealt with in the driver.

Let's merge it then.

Maxime

Hi,

What does the timeline for these things normally look like? I'm new to these parts. =)

Thanks,

Kyle Evans

#14 lore raw
Quoted 66 lines · Kyle Evans
Quoted 64 lines · Maxime Ripard
Quoted 63 lines · Chen-Yu Tsai
Quoted 48 lines · Emmanuel Vadot
Quoted 45 lines · On Fri, 22 Dec 2017 09:35:08 +0100 Maxime Ripard…
Quoted 36 lines · Emmanuel Vadot

Hi Maxime,

Quoted 30 lines · On Thu, 21 Dec 2017 16:26:30 +0100 Maxime Ripard…

Hi,

Quoted 26 lines · Kyle Evans
Quoted 6 lines · Maxime Ripard

Hi Kyle,

Quoted 3 lines · On Tue, Dec 19, 2017 at 03:05:23PM -0600, kevans91 at ksu.edu wrote:

Allwinner a83t has a 1 KB sid block with efuse for security rootkey and thermal calibration data, add node to describe it.

Quoted 8 lines
Quoted 4 lines

a83t-sid is not currently supported by nvmem/sunxi-sid, but it is supported in an external driver for FreeBSD.

The patch looks fine in itself, but we've had a number of issues with the register layout (and access patterns) in the past, so I'd rather have something that works in Linux too if possible.

I have a patch that I think should make it work fine on Linux [1], but I'm afraid I have little to no capability to test it myself and so I did not add it as well.

I do know that the rootkey is offset 0x200 into the given space [2], as is the case with the H3, and that the readout quirk is not needed. I wasn't 100% sure that the a83t has 2Kbit worth of efuse space as the H3, but I do know that thermal data can be found at 0x34 and 0x38 in this space.

Quoted 5 lines
Quoted 2 lines

Then maybe we should leave it aside until someone takes some time on the A83t.

Take some time on the Linux driver and do not apply this patch for
now you mean ?

Yep.

Quoted 8 lines
Quoted 1 line

Maxime

Since linux doesn't have the compatible in it's driver what would
be the harm to add the node in the DTS ? If a quirks is needed because some region is weird this would go in the driver right ? I don't see a technical problem for adding this node right now.
If Kyle confirm the lenght of the region and that no quirk is needed
will it be enough ?

I guess I wasn't very clear. I'm OK with the patch going in. The device node currently says nothing about how much efuse space there is. The memory region covers that and the control section, and the size matches what the memory map says.

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

The size and offset of the efuse space would be dealt with in the driver.

Let's merge it then.

What does the timeline for these things normally look like? I'm new to these parts. =)

We're one week away from the merge window, so it's a bit late for it to be merged in 4.16, but it'll be in 4.17.

Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180109/bd79f4be/attachment-0001.sig>
author
#15 lore raw
Quoted 71 lines · Maxime Ripard
Quoted 70 lines · Kyle Evans
Quoted 68 lines · Maxime Ripard
Quoted 58 lines · Chen-Yu Tsai
Quoted 48 lines · Emmanuel Vadot
Quoted 45 lines · On Fri, 22 Dec 2017 09:35:08 +0100 Maxime Ripard…
Quoted 36 lines · Emmanuel Vadot

Hi Maxime,

Quoted 30 lines · On Thu, 21 Dec 2017 16:26:30 +0100 Maxime Ripard…

Hi,

Quoted 26 lines · Kyle Evans
Quoted 6 lines · Maxime Ripard

Hi Kyle,

Quoted 3 lines · On Tue, Dec 19, 2017 at 03:05:23PM -0600, kevans91 at ksu.edu wrote:

Allwinner a83t has a 1 KB sid block with efuse for security rootkey and thermal calibration data, add node to describe it.

Quoted 8 lines
Quoted 4 lines

a83t-sid is not currently supported by nvmem/sunxi-sid, but it is supported in an external driver for FreeBSD.

The patch looks fine in itself, but we've had a number of issues with the register layout (and access patterns) in the past, so I'd rather have something that works in Linux too if possible.

I have a patch that I think should make it work fine on Linux [1], but I'm afraid I have little to no capability to test it myself and so I did not add it as well.

I do know that the rootkey is offset 0x200 into the given space [2], as is the case with the H3, and that the readout quirk is not needed. I wasn't 100% sure that the a83t has 2Kbit worth of efuse space as the H3, but I do know that thermal data can be found at 0x34 and 0x38 in this space.

Quoted 5 lines
Quoted 2 lines

Then maybe we should leave it aside until someone takes some time on the A83t.

Take some time on the Linux driver and do not apply this patch for
now you mean ?

Yep.

Quoted 8 lines
Quoted 1 line

Maxime

Since linux doesn't have the compatible in it's driver what would
be the harm to add the node in the DTS ? If a quirks is needed because some region is weird this would go in the driver right ? I don't see a technical problem for adding this node right now.
If Kyle confirm the lenght of the region and that no quirk is needed
will it be enough ?

Quoted 6 lines

I guess I wasn't very clear. I'm OK with the patch going in. The device node currently says nothing about how much efuse space there is. The memory region covers that and the control section, and the size matches what the memory map says.

The size and offset of the efuse space would be dealt with in the driver.

Let's merge it then.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

What does the timeline for these things normally look like? I'm new to these parts. =)

We're one week away from the merge window, so it's a bit late for it to be merged in 4.16, but it'll be in 4.17.

Ok, cool, that makes sense.

Thanks!

#16 lore raw
In reply to Maxime Ripard
Quoted 73 lines · Maxime Ripard
Quoted 72 lines · Kyle Evans
Quoted 69 lines · Maxime Ripard
Quoted 58 lines · Chen-Yu Tsai
Quoted 48 lines · Emmanuel Vadot
Quoted 45 lines · On Fri, 22 Dec 2017 09:35:08 +0100 Maxime Ripard…
Quoted 36 lines · Emmanuel Vadot

Hi Maxime,

Quoted 30 lines · On Thu, 21 Dec 2017 16:26:30 +0100 Maxime Ripard…

Hi,

Quoted 26 lines · Kyle Evans
Quoted 6 lines · Maxime Ripard

Hi Kyle,

Quoted 3 lines · On Tue, Dec 19, 2017 at 03:05:23PM -0600, kevans91 at ksu.edu wrote:

Allwinner a83t has a 1 KB sid block with efuse for security rootkey and thermal calibration data, add node to describe it.

Quoted 8 lines
Quoted 4 lines

a83t-sid is not currently supported by nvmem/sunxi-sid, but it is supported in an external driver for FreeBSD.

The patch looks fine in itself, but we've had a number of issues with the register layout (and access patterns) in the past, so I'd rather have something that works in Linux too if possible.

I have a patch that I think should make it work fine on Linux [1], but I'm afraid I have little to no capability to test it myself and so I did not add it as well.

I do know that the rootkey is offset 0x200 into the given space [2], as is the case with the H3, and that the readout quirk is not needed. I wasn't 100% sure that the a83t has 2Kbit worth of efuse space as the H3, but I do know that thermal data can be found at 0x34 and 0x38 in this space.

Quoted 5 lines
Quoted 2 lines

Then maybe we should leave it aside until someone takes some time on the A83t.

Take some time on the Linux driver and do not apply this patch for
now you mean ?

Yep.

Quoted 8 lines
Quoted 1 line

Maxime

Since linux doesn't have the compatible in it's driver what would
be the harm to add the node in the DTS ? If a quirks is needed because some region is weird this would go in the driver right ? I don't see a technical problem for adding this node right now.
If Kyle confirm the lenght of the region and that no quirk is needed
will it be enough ?

Quoted 6 lines

I guess I wasn't very clear. I'm OK with the patch going in. The device node currently says nothing about how much efuse space there is. The memory region covers that and the control section, and the size matches what the memory map says.

The size and offset of the efuse space would be dealt with in the driver.

Let's merge it then.

Quoted 8 lines
Quoted 2 lines

What does the timeline for these things normally look like? I'm new to these parts. =)

We're one week away from the merge window, so it's a bit late for it to be merged in 4.16, but it'll be in 4.17.

Maxime

Hi,

It's been two months and this still hasn't quite landed in sunxi/for-next. =( May I ask the status on this?

Thanks,

Kyle Evans

#17 lore raw
Quoted 75 lines · Kyle Evans
Quoted 73 lines · Maxime Ripard
Quoted 72 lines · Kyle Evans
Quoted 69 lines · Maxime Ripard
Quoted 58 lines · Chen-Yu Tsai
Quoted 48 lines · Emmanuel Vadot
Quoted 45 lines · On Fri, 22 Dec 2017 09:35:08 +0100 Maxime Ripard…
Quoted 36 lines · Emmanuel Vadot

Hi Maxime,

Quoted 30 lines · On Thu, 21 Dec 2017 16:26:30 +0100 Maxime Ripard…

Hi,

Quoted 26 lines · Kyle Evans
Quoted 6 lines · Maxime Ripard

Hi Kyle,

Quoted 3 lines · On Tue, Dec 19, 2017 at 03:05:23PM -0600, kevans91 at ksu.edu wrote:

Allwinner a83t has a 1 KB sid block with efuse for security rootkey and thermal calibration data, add node to describe it.

Quoted 8 lines
Quoted 4 lines

a83t-sid is not currently supported by nvmem/sunxi-sid, but it is supported in an external driver for FreeBSD.

The patch looks fine in itself, but we've had a number of issues with the register layout (and access patterns) in the past, so I'd rather have something that works in Linux too if possible.

I have a patch that I think should make it work fine on Linux [1], but I'm afraid I have little to no capability to test it myself and so I did not add it as well.

I do know that the rootkey is offset 0x200 into the given space [2], as is the case with the H3, and that the readout quirk is not needed. I wasn't 100% sure that the a83t has 2Kbit worth of efuse space as the H3, but I do know that thermal data can be found at 0x34 and 0x38 in this space.

Quoted 5 lines
Quoted 2 lines

Then maybe we should leave it aside until someone takes some time on the A83t.

Take some time on the Linux driver and do not apply this patch for
now you mean ?

Yep.

Quoted 8 lines
Quoted 1 line

Maxime

Since linux doesn't have the compatible in it's driver what would
be the harm to add the node in the DTS ? If a quirks is needed because some region is weird this would go in the driver right ? I don't see a technical problem for adding this node right now.
If Kyle confirm the lenght of the region and that no quirk is needed
will it be enough ?

Quoted 6 lines

I guess I wasn't very clear. I'm OK with the patch going in. The device node currently says nothing about how much efuse space there is. The memory region covers that and the control section, and the size matches what the memory map says.

The size and offset of the efuse space would be dealt with in the driver.

Let's merge it then.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

What does the timeline for these things normally look like? I'm new to these parts. =)

We're one week away from the merge window, so it's a bit late for it to be merged in 4.16, but it'll be in 4.17.

It's been two months and this still hasn't quite landed in sunxi/for-next. =( May I ask the status on this?

It seems to have fallen through the cracks, sorry :/

Can you resend it based on 4.17?

Thanks!
Maxime

Signature · 10 lines
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180419/b1663c4f/attachment-0001.sig>