Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1567990 > unrolled thread
| Started by | Maxime Ripard <maxime.ripard@free-electrons.com> |
|---|---|
| First post | 2017-01-27 10:50 +0100 |
| Last post | 2017-01-27 10:50 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH 1/2] nvmem: sunxi-sid: add support for H3 and A64's SID controller Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-01-27 10:50 +0100
| From | Maxime Ripard <maxime.ripard@free-electrons.com> |
|---|---|
| Date | 2017-01-27 10:50 +0100 |
| Subject | Re: [PATCH 1/2] nvmem: sunxi-sid: add support for H3 and A64's SID controller |
| Message-ID | <t4bkm-2qx-15@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
On Fri, Jan 27, 2017 at 05:26:59PM +0800, Icenowy Zheng wrote:
> > > +Example for sun8i-h3:
> > > + sid@01c14000 {
> > > + compatible = "allwinner,sun8i-h3-sid";
> > > + /*
> > > + * The length of SID on H3 is 0x100 bytes, add the value offset
> > > + * 0x200, so the total length should be 0x300.
> > > + */
> > > + reg = <0x01c14000 0x300>;
> >
> > No, it should be the size of the memory region used and documented for
> > that device, ie 1kB (0x400) in the H3 case, just like any other reg
> > property.
>
> So bind the SID size with compatible?
If needed, yes.
> > > - randomness = kzalloc(sizeof(u8) * (size), GFP_KERNEL);
> > > + randomness_size = max(size, SUNXI_SID_MAX_RANDOMNESS_SIZE);
> > > + randomness = kzalloc(sizeof(u8) * (randomness_size), GFP_KERNEL);
> >
> > Why is that change needed?
>
> On my H3/H2+ only 2 words after the first 4 words is not zero.
>
> I don't feel like add so many 0s to randomness.
As far as I know, filling the entropy pool with zeros does no harm, it
just doesn't do anything either.
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
Back to top | Article view | linux.kernel
csiph-web