<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Plain Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:"Calibri",sans-serif;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-IN" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoPlainText">Hi, <o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">I have already enabled IIO-HWMON and ASPEED_ADC drivers in linux configuration file.
<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Included changes in my platform DTS file. <o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"> iio-hwmon {<o:p></o:p></p>
<p class="MsoPlainText">+ compatible = "iio-hwmon";<o:p></o:p></p>
<p class="MsoPlainText">+ io-channels = <&adc 12>;<o:p></o:p></p>
<p class="MsoPlainText">+ };<o:p></o:p></p>
<p class="MsoPlainText">@@ -334,3 +339,8 @@<o:p></o:p></p>
<p class="MsoPlainText">+&adc<o:p></o:p></p>
<p class="MsoPlainText">+{<o:p></o:p></p>
<p class="MsoPlainText">+ status = "okay";<o:p></o:p></p>
<p class="MsoPlainText">+};<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">We are getting the below Kernel panic after this IIO-HWMON driver changes in DTS file.
<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Other platform are using this iio-hwmon driver. Please let us know if anyone faced this same issue.
<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">[ 3.761575] ==== 1. IIO_HWMON Probe === [ 3.765477] Unable to handle kernel paging request at virtual address fffffdfb [ 3.772710] pgd = f5dd9e82 [ 3.775426] [fffffdfb] *pgd=9effd861, *pte=00000000, *ppte=00000000 [ 3.781715]
Internal error: Oops: 37 [#1] ARM [ 3.786073] Modules linked in:<o:p></o:p></p>
<p class="MsoPlainText">[ 3.789148] CPU: 0 PID: 1 Comm: swapper Not tainted 4.18.8 #1 [ 3.794892] Hardware name: Generic DT based system [ 3.799706] PC is at iio_hwmon_probe+0xb4/0x3e4 [ 3.804235] LR is at (null) [ 3.807207] pc : [<804eb7a0>]
lr : [<00000000>] psr: a0000013 [ 3.813465] sp : 9e477d70 ip : 9e5b4550 fp : 9e477dbc [ 3.818681] r10: 00000000 r9 : 00000000 r8 : 80b51d1c [ 3.823900] r7 : 9e5b4410 r6 : 9e6f2290 r5 : 00000000 r4 : 9e5b4400 [ 3.830418] r3 : 00000000 r2
: fffffdfb r1 : 00000000 r0 : fffffdfb [ 3.836936] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none [ 3.844068] Control: 00c5387d Table: 9e764008 DAC: 00000051 [ 3.849811] Process swapper (pid: 1, stack limit = 0x2b33fe0f) [
3.855639] Stack: (0x9e477d70 to 0x9e478000) [ 3.860004] 7d60: 9e5b4400<o:p></o:p></p>
<p class="MsoPlainText"><span lang="DE">9ec1af90 fffffdfb 9e477d88<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="DE">[ 3.868179] 7d80: 8029ea9c 8029ae0c 9e5b4410 7e82968c 9e5b4418<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="DE">9e5b4410 00000000 80b51d1c<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="DE">[ 3.876361] 7da0: 00000000 80b51d1c 00000000 00000000 9e477ddc<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="DE">9e477dc0 804488f0 804eb6f8<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="ES">[ 3.884541] […….]</span><o:p></o:p></p>
<p class="MsoPlainText">00000000 00000000 00000000<o:p></o:p></p>
<p class="MsoPlainText">[ 4.023518] 7fe0: 00000000 00000000 00000000 00000000 00000013<o:p></o:p></p>
<p class="MsoPlainText">00000000 00000000 00000000<o:p></o:p></p>
<p class="MsoPlainText">[ 4.031740] [<804eb7a0>] (iio_hwmon_probe) from [<804488f0>]<o:p></o:p></p>
<p class="MsoPlainText"><span lang="DE">(platform_drv_probe+0x58/0xa8)<o:p></o:p></span></p>
<p class="MsoPlainText">[ 4.040118] [<804488f0>] (platform_drv_probe) from [<80446790>]<o:p></o:p></p>
<p class="MsoPlainText">(driver_probe_device+0x2f8/0x474)<o:p></o:p></p>
<p class="MsoPlainText">[ 4.048999] [<80446790>] (driver_probe_device) from [<80446a0c>]<o:p></o:p></p>
<p class="MsoPlainText">(__driver_attach+0x100/0x12c)<o:p></o:p></p>
<p class="MsoPlainText">[ 4.057620] [<80446a0c>] (__driver_attach) from [<804443a4>]<o:p></o:p></p>
<p class="MsoPlainText">(bus_for_each_dev+0x80/0xc4)<o:p></o:p></p>
<p class="MsoPlainText">[ 4.065802] [<804443a4>] (bus_for_each_dev) from [<80445f14>]<o:p></o:p></p>
<p class="MsoPlainText">(driver_attach+0x28/0x30)<o:p></o:p></p>
<p class="MsoPlainText">[ 4.073811] [<80445f14>] (driver_attach) from [<8044582c>]<o:p></o:p></p>
<p class="MsoPlainText">(bus_add_driver+0x154/0x268)<o:p></o:p></p>
<p class="MsoPlainText">[ 4.081832] [<8044582c>] (bus_add_driver) from [<804475f8>]<o:p></o:p></p>
<p class="MsoPlainText">(driver_register+0x84/0x118)<o:p></o:p></p>
<p class="MsoPlainText">[ 4.089933] [<804475f8>] (driver_register) from [<80448834>]<o:p></o:p></p>
<p class="MsoPlainText"><span lang="DE">(__platform_driver_register+0x3c/0x50)<o:p></o:p></span></p>
<p class="MsoPlainText">[ 4.099003] [<80448834>] (__platform_driver_register) from [<80a26f24>] (iio_hwmon_driver_init+0x20/0x28) [ 4.108593] [<80a26f24>] (iio_hwmon_driver_init) from [<80102e20>]<o:p></o:p></p>
<p class="MsoPlainText">(do_one_initcall+0x4c/0x18c)<o:p></o:p></p>
<p class="MsoPlainText">[ 4.117323] [<80102e20>] (do_one_initcall) from [<80a0116c>]<o:p></o:p></p>
<p class="MsoPlainText">(kernel_init_freeable+0x1a0/0x270)<o:p></o:p></p>
<p class="MsoPlainText">[ 4.126038] [<80a0116c>] (kernel_init_freeable) from [<806a7e6c>]<o:p></o:p></p>
<p class="MsoPlainText"><span lang="DE">(kernel_init+0x18/0x128)<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="DE">[ 4.134315] [<806a7e6c>] (kernel_init) from [<801010e8>]<o:p></o:p></span></p>
<p class="MsoPlainText">(ret_from_fork+0x14/0x2c)<o:p></o:p></p>
<p class="MsoPlainText">[ 4.141882] Exception stack(0x9e477fb0 to 0x9e477ff8) [ 4.146937] 7fa0: 00000000<o:p></o:p></p>
<p class="MsoPlainText">00000000 00000000 00000000<o:p></o:p></p>
<p class="MsoPlainText">[ 4.155112] 7fc0: 00000000 00000000 00000000 00000000 00000000<o:p></o:p></p>
<p class="MsoPlainText">00000000 00000000 00000000<o:p></o:p></p>
<p class="MsoPlainText">[ 4.163282] 7fe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 4.169903] Code: e0831083 e5860000 e1a01101 e0802001 (e7901001) [ 4.176192] ---[ end trace 95853ce787f427d0 ]--- [ 4.180830] Kernel panic - not syncing:
Fatal exception<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Thanks <o:p></o:p></p>
<p class="MsoPlainText">Maheswari A<o:p></o:p></p>
</div>
</body>
</html>