* Re: linux-next: Tree for July 2 (crypto/hifn_795x) [not found] <20120702172334.2618cae84cc57b4ec5a63ed7@canb.auug.org.au> @ 2012-07-02 16:27 ` Randy Dunlap 2012-07-06 20:32 ` Geert Uytterhoeven 2012-07-09 17:54 ` Jussi Kivilinna 0 siblings, 2 replies; 5+ messages in thread From: Randy Dunlap @ 2012-07-02 16:27 UTC (permalink / raw) To: Stephen Rothwell; +Cc: linux-next, LKML, linux-crypto On 07/02/2012 12:23 AM, Stephen Rothwell wrote: > Hi all, > > Changes since 20120629: > on i386: ERROR: "__divdi3" [drivers/crypto/hifn_795x.ko] undefined! -- ~Randy ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: linux-next: Tree for July 2 (crypto/hifn_795x) 2012-07-02 16:27 ` linux-next: Tree for July 2 (crypto/hifn_795x) Randy Dunlap @ 2012-07-06 20:32 ` Geert Uytterhoeven 2012-07-09 17:54 ` Jussi Kivilinna 1 sibling, 0 replies; 5+ messages in thread From: Geert Uytterhoeven @ 2012-07-06 20:32 UTC (permalink / raw) To: Randy Dunlap; +Cc: Stephen Rothwell, linux-next, LKML, linux-crypto On Mon, Jul 2, 2012 at 6:27 PM, Randy Dunlap <rdunlap@xenotime.net> wrote: > On 07/02/2012 12:23 AM, Stephen Rothwell wrote: >> Changes since 20120629: > > on i386: > > ERROR: "__divdi3" [drivers/crypto/hifn_795x.ko] undefined! Also on ppc6xx_defconfig http://kisskb.ellerman.id.au/kisskb/buildresult/6650268/ It doesn't happen in mainline, but there were no changes in drivers/crypto/hifn_795x.c. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: linux-next: Tree for July 2 (crypto/hifn_795x) 2012-07-02 16:27 ` linux-next: Tree for July 2 (crypto/hifn_795x) Randy Dunlap 2012-07-06 20:32 ` Geert Uytterhoeven @ 2012-07-09 17:54 ` Jussi Kivilinna 2012-07-09 21:40 ` Randy Dunlap 1 sibling, 1 reply; 5+ messages in thread From: Jussi Kivilinna @ 2012-07-09 17:54 UTC (permalink / raw) To: Randy Dunlap Cc: Stephen Rothwell, linux-next, LKML, linux-crypto, Andrew Morton [-- Attachment #1: Type: text/plain, Size: 520 bytes --] Quoting Randy Dunlap <rdunlap@xenotime.net>: > On 07/02/2012 12:23 AM, Stephen Rothwell wrote: > >> Hi all, >> >> Changes since 20120629: >> > > > on i386: > > > ERROR: "__divdi3" [drivers/crypto/hifn_795x.ko] undefined! > This is caused by commit feb7b7ab928afa97a79a9c424e4e0691f49d63be. hifn_795x has "DIV_ROUND_UP(NSEC_PER_SEC, dev->pk_clk_freq)", which should be changed to DIV_ROUND_UP_ULL now that NSEC_PER_SEC is 64bit on 32bit archs. Patch to fix hifn_795x is attached (only compile tested). -Jussi [-- Attachment #2: 01-crypto-hifn_795x-fix-64bit-division-and-undefined-__divdi3.patch --] [-- Type: text/x-patch, Size: 1105 bytes --] crypto: hifn_795x - fix 64bit division and undefined __divdi3 on 32bit archs From: Jussi Kivilinna <jussi.kivilinna@mbnet.fi> Commit feb7b7ab928afa97a79a9c424e4e0691f49d63be changed NSEC_PER_SEC to 64-bit constant, which causes "DIV_ROUND_UP(NSEC_PER_SEC, dev->pk_clk_freq)" to generate __divdi3 call on 32-bit archs. Fix this by changing DIV_ROUND_UP to DIV_ROUND_UP_ULL. Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi> --- drivers/crypto/hifn_795x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/hifn_795x.c b/drivers/crypto/hifn_795x.c index c9c4bef..df14358 100644 --- a/drivers/crypto/hifn_795x.c +++ b/drivers/crypto/hifn_795x.c @@ -821,8 +821,8 @@ static int hifn_register_rng(struct hifn_device *dev) /* * We must wait at least 256 Pk_clk cycles between two reads of the rng. */ - dev->rng_wait_time = DIV_ROUND_UP(NSEC_PER_SEC, dev->pk_clk_freq) * - 256; + dev->rng_wait_time = DIV_ROUND_UP_ULL(NSEC_PER_SEC, + dev->pk_clk_freq) * 256; dev->rng.name = dev->name; dev->rng.data_present = hifn_rng_data_present, ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: linux-next: Tree for July 2 (crypto/hifn_795x) 2012-07-09 17:54 ` Jussi Kivilinna @ 2012-07-09 21:40 ` Randy Dunlap 2012-07-30 7:49 ` Herbert Xu 0 siblings, 1 reply; 5+ messages in thread From: Randy Dunlap @ 2012-07-09 21:40 UTC (permalink / raw) To: Jussi Kivilinna Cc: Stephen Rothwell, linux-next, LKML, linux-crypto, Andrew Morton On 07/09/2012 10:54 AM, Jussi Kivilinna wrote: > Quoting Randy Dunlap <rdunlap@xenotime.net>: > >> On 07/02/2012 12:23 AM, Stephen Rothwell wrote: >> >>> Hi all, >>> >>> Changes since 20120629: >>> >> >> >> on i386: >> >> >> ERROR: "__divdi3" [drivers/crypto/hifn_795x.ko] undefined! >> > > This is caused by commit feb7b7ab928afa97a79a9c424e4e0691f49d63be. hifn_795x has "DIV_ROUND_UP(NSEC_PER_SEC, dev->pk_clk_freq)", which should be changed to DIV_ROUND_UP_ULL now that NSEC_PER_SEC is 64bit on 32bit archs. Patch to fix hifn_795x is attached (only compile tested). Acked-by: Randy Dunlap <rdunlap@xenotime.net> Thanks. -- ~Randy ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: linux-next: Tree for July 2 (crypto/hifn_795x) 2012-07-09 21:40 ` Randy Dunlap @ 2012-07-30 7:49 ` Herbert Xu 0 siblings, 0 replies; 5+ messages in thread From: Herbert Xu @ 2012-07-30 7:49 UTC (permalink / raw) To: Randy Dunlap Cc: Jussi Kivilinna, Stephen Rothwell, linux-next, LKML, linux-crypto, Andrew Morton On Mon, Jul 09, 2012 at 09:40:22PM +0000, Randy Dunlap wrote: > On 07/09/2012 10:54 AM, Jussi Kivilinna wrote: > > > Quoting Randy Dunlap <rdunlap@xenotime.net>: > > > >> On 07/02/2012 12:23 AM, Stephen Rothwell wrote: > >> > >>> Hi all, > >>> > >>> Changes since 20120629: > >>> > >> > >> > >> on i386: > >> > >> > >> ERROR: "__divdi3" [drivers/crypto/hifn_795x.ko] undefined! > >> > > > > This is caused by commit feb7b7ab928afa97a79a9c424e4e0691f49d63be. hifn_795x has "DIV_ROUND_UP(NSEC_PER_SEC, dev->pk_clk_freq)", which should be changed to DIV_ROUND_UP_ULL now that NSEC_PER_SEC is 64bit on 32bit archs. Patch to fix hifn_795x is attached (only compile tested). > > > > Acked-by: Randy Dunlap <rdunlap@xenotime.net> Patch applied. Thanks! -- Email: Herbert Xu <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-07-30 7:49 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20120702172334.2618cae84cc57b4ec5a63ed7@canb.auug.org.au>
2012-07-02 16:27 ` linux-next: Tree for July 2 (crypto/hifn_795x) Randy Dunlap
2012-07-06 20:32 ` Geert Uytterhoeven
2012-07-09 17:54 ` Jussi Kivilinna
2012-07-09 21:40 ` Randy Dunlap
2012-07-30 7:49 ` Herbert Xu
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox