From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pali =?utf-8?q?Roh=C3=A1r?= Subject: v3.19: Nokia N900 (qemu) - omap_aes error Date: Sat, 31 Jan 2015 16:29:36 +0100 Message-ID: <201501311629.36431@pali> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2578306.ZUHDOlNRnp"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Return-path: Sender: linux-kernel-owner@vger.kernel.org To: linux-omap@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Pavel Machek , Sebastian Reichel , Aaro Koskinen , Ivaylo Dimitrov , Tony Lindgren , Felipe Balbi , Nishanth Menon List-Id: linux-omap@vger.kernel.org --nextPart2578306.ZUHDOlNRnp Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello, when I enable problematic omap_aes.ko driver (also in DT) for=20 Nokia N900 machine in qemu (it emulates OMAP GP device, not HS) I=20 get this error message in dmesg at modprobe time: [ 37.660339] ------------[ cut here ]------------ [ 37.663940] WARNING: CPU: 0 PID: 173 at arch/arm/mach- omap2/omap_hwmod.c:2182 _idle+0x28/0x64() [ 37.668762] omap_hwmod: aes: idle state can only be entered=20 from enabled state [ 37.672271] Modules linked in: omap_aes(+) [ 37.675933] CPU: 0 PID: 173 Comm: modprobe Not tainted 3.19.0- rc5+ #299 [ 37.679534] Hardware name: Nokia RX-51 board [ 37.683227] [] (unwind_backtrace) from []=20 (show_stack+0x10/0x14) [ 37.686920] [] (show_stack) from []=20 (warn_slowpath_common+0x84/0xac) [ 37.690765] [] (warn_slowpath_common) from=20 [] (warn_slowpath_fmt+0x2c/0x3c) [ 37.694366] [] (warn_slowpath_fmt) from []=20 (_idle+0x28/0x64) [ 37.698791] [] (_idle) from []=20 (omap_hwmod_idle+0x30/0x78) [ 37.702636] [] (omap_hwmod_idle) from []=20 (omap_device_idle+0x48/0x6c) [ 37.707153] [] (omap_device_idle) from []=20 (_od_runtime_suspend+0x1c/0x24) [ 37.710723] [] (_od_runtime_suspend) from=20 [] (__rpm_callback+0x8c/0xdc) [ 37.714385] [] (__rpm_callback) from []=20 (rpm_callback+0x70/0x88) [ 37.717987] [] (rpm_callback) from []=20 (rpm_suspend+0x2e8/0x5a4) [ 37.721710] [] (rpm_suspend) from []=20 (__pm_runtime_idle+0x58/0x9c) [ 37.725402] [] (__pm_runtime_idle) from []=20 (omap_aes_probe+0x15c/0x448 [omap_aes]) [ 37.733489] [] (omap_aes_probe [omap_aes]) from=20 [] (platform_drv_probe+0x48/0x90) [ 37.740936] [] (platform_drv_probe) from=20 [] (really_probe+0xac/0x1e0) [ 37.745025] [] (really_probe) from []=20 (driver_probe_device+0x30/0x48) [ 37.749847] [] (driver_probe_device) from=20 [] (__driver_attach+0x60/0x84) [ 37.753601] [] (__driver_attach) from []=20 (bus_for_each_dev+0x50/0x84) [ 37.758422] [] (bus_for_each_dev) from []=20 (bus_add_driver+0xac/0x1bc) [ 37.762207] [] (bus_add_driver) from []=20 (driver_register+0x9c/0xe0) [ 37.765899] [] (driver_register) from []=20 (do_one_initcall+0x100/0x1b0) [ 37.769653] [] (do_one_initcall) from []=20 (do_init_module+0x34/0x158) [ 37.773590] [] (do_init_module) from []=20 (SyS_init_module+0x54/0x64) [ 37.777252] [] (SyS_init_module) from []=20 (ret_fast_syscall+0x0/0x30) [ 37.780975] ---[ end trace 86c3e025b92e700d ]--- [ 37.784667] omap-aes 480c5000.aes: OMAP AES hw accel rev: 0.0 [ 37.789794] of_dma_request_slave_channel: dma-names property=20 of node '/ocp/aes@480c5000' missing or empty [ 37.797668] omap-aes 480c5000.aes: Unable to request in DMA=20 channel [ 37.801391] omap_aes_dma_init: error: -12 Error is not fatal, kernel does not crash and qemu emulation=20 working fine. But error is there. I'm sure that qemu does not support omap aes hw emulation and so=20 I except error message about missing hw part (or something else).=20 But not above unwind_backtrace error message. Any idea why it happens? It is probably not related to AES but to=20 DMA. It is for OMAP GP device (but emulated), so can TI comment=20 this problem (as this is not HS under NDA)? =2D-=20 Pali Roh=C3=A1r pali.rohar@gmail.com --nextPart2578306.ZUHDOlNRnp Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEABECAAYFAlTM9OAACgkQi/DJPQPkQ1Km0ACffjQuV7jUR2L46SneK7FtzNq4 mQsAnihhppDq/FH1NhqVg9ZQBFBTJtxJ =K4Pj -----END PGP SIGNATURE----- --nextPart2578306.ZUHDOlNRnp--