Re: crash in ppc4xx-rng on canyonland

2016-04-20 Thread Herbert Xu
On Mon, Apr 18, 2016 at 01:42:49PM +0200, Christian Lamparter wrote: > > what else I fixed in v1->v2: > - added a check to test trng device's status state with >of_device_is_available. > - if the hwrng device registration failed, the flag which >enables the trng was left enabled (note: t

Re: crash in ppc4xx-rng on canyonland

2016-04-18 Thread Christian Lamparter via Linuxppc-dev
On Monday, April 18, 2016 05:59:39 PM Herbert Xu wrote: > Christian Lamparter wrote: > > > > I tried to move ppc4xx-rng into crypto4xx (see attachment - patch #1). > > The driver works as is. But I can't come up with a way to attach the > > crypto4xx driver to the ppc4xx-rng OF node cleanly. Basi

Re: crash in ppc4xx-rng on canyonland

2016-04-18 Thread Herbert Xu
Christian Lamparter wrote: > > I tried to move ppc4xx-rng into crypto4xx (see attachment - patch #1). > The driver works as is. But I can't come up with a way to attach the > crypto4xx driver to the ppc4xx-rng OF node cleanly. Basically, > I'm looking for a way to have one driver (with one contex

Re: crash in ppc4xx-rng on canyonland

2016-04-08 Thread Christian Lamparter via Linuxppc-dev
On Tuesday, April 05, 2016 08:11:19 PM Herbert Xu wrote: > Christian Lamparter wrote: > > > > The crash is caused by a bad read in ppc4xx_rng_enable [0]. From what I > > can tell, the driver is mapping the crypto control registers. The > > problem is that they are claimed by the main crypto driver

Re: crash in ppc4xx-rng on canyonland

2016-04-05 Thread Herbert Xu
Christian Lamparter wrote: > > The crash is caused by a bad read in ppc4xx_rng_enable [0]. From what I > can tell, the driver is mapping the crypto control registers. The > problem is that they are claimed by the main crypto driver: crypto4xx [1]. > > I'm not sure what to do in this case. In my o

crash in ppc4xx-rng on canyonland

2016-03-25 Thread Christian Lamparter via Linuxppc-dev
I'm currently trying to port a Western Digital MyBook Live to a 4.4.6 kernel. The device has a APM82181 and the board is called Apollo-3G, which is a derivative of the "amcc,canyonland". Almost everything is working, except when I try to enable the ppc4xx-rng in the dts. Then the machine dies with