<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi Mathias,</p>
<p><br>
</p>
<p>Looks like it's this commit that introduced the issue</p>
<p><br>
</p>
<p><a href="https://git.openwrt.org/openwrt.git?p=openwrt.git;a=commitdiff;h=f9eb558f08c577d216d39c25d0572facc18a3ac1" class="OWAAutoLink" id="LPlnk308627">https://git.openwrt.org/openwrt.git?p=openwrt.git;a=commitdiff;h=f9eb558f08c577d216d39c25d0572facc18a3ac1</a><br>
</p>
<p><br>
</p>
<p></p>
<div class="diff rem" style="font-family: monospace; font-size: small; white-space: pre; color: rgb(204, 0, 0);">
-KERNEL_PATCHVER:=<span class="marked" style="background-color: rgb(255, 170, 170);">3.18</span></div>
<div class="diff add" style="font-family: monospace; font-size: small; white-space: pre; color: rgb(0, 136, 0);">
+KERNEL_PATCHVER:=<span class="marked" style="background-color: rgb(170, 255, 170);">4.1</span></div>
<br>
<p></p>
<p>must be something in version 4.1 kernel. I guess it doesn't help very  much.</p>
<p><br>
</p>
<p>I tried to downgrade the latest commit back to a version 3.18 kernel by reversing the above change but wasn't able to compile. I had this error</p>
<p><br>
</p>
<p></p>
<div>make -f ./scripts/Makefile.build obj=/home/build/openwrt/build_dir/target-mips_34kc+dsp_musl-1.1.14/linux-lantiq_xrx200/ltq-atm-vr9</div>
<div>  mips-openwrt-linux-musl-gcc -Wp,-MD,/home/build/openwrt/build_dir/target-mips_34kc+dsp_musl-1.1.14/linux-lantiq_xrx200/ltq-atm-vr9/.ltq_atm.o.d  -nostdinc -isystem /home/build/openwrt/staging_dir/toolchain-mips_34kc+dsp_gcc-5.3.0_musl-1.1.14/lib/gcc/mips-openwrt-linux-musl/5.3.0/include
 -I./arch/mips/include -Iarch/mips/include/generated  -Iinclude -I./arch/mips/include/uapi -Iarch/mips/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -DVMLINUX_LOAD_ADDRESS=0xffffffff88002000
 -DDATAOFFSET=0 -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mno-check-zero-division -mabi=32 -G 0 -mno-abicalls -fno-pic -pipe -mno-branch-likely -msoft-float
 -DGAS_HAS_SET_HARDFLOAT -Wa,-msoft-float -ffreestanding -march=r4600 -Wa,--trap -I./arch/mips/include/asm/mach-ip22 -I./arch/mips/include/asm/mach-generic -fno-delete-null-pointer-checks -O2 -fno-reorder-blocks -fno-tree-ch -fno-caller-saves --param=allow-store-data-races=0
 -Wframe-larger-than=1024 -fstack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -fno-var-tracking-assignments -g -femit-struct-debug-baseonly -fno-var-tracking -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack
 -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -DCC_HAVE_ASM_GOTO  -DMODULE -mno-long-calls -DCONFIG_VR9 -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(ltq_atm)"  -D"KBUILD_MODNAME=KBUILD_STR(ltq_atm_vr9)" -c -o /home/build/openwrt/build_dir/target-mips_34kc+dsp_musl-1.1.14/linux-lantiq_xrx200/ltq-atm-vr9/ltq_atm.o
 /home/build/openwrt/build_dir/target-mips_34kc+dsp_musl-1.1.14/linux-lantiq_xrx200/ltq-atm-vr9/ltq_atm.c</div>
<div>/home/build/openwrt/build_dir/target-mips_34kc+dsp_musl-1.1.14/linux-lantiq_xrx200/ltq-atm-vr9/ltq_atm.c:46:24: fatal error: lantiq_soc.h: No such file or directory</div>
<div>compilation terminated.</div>
<div>make[5]: *** [/home/build/openwrt/build_dir/target-mips_34kc+dsp_musl-1.1.14/linux-lantiq_xrx200/ltq-atm-vr9/ltq_atm.o] Error 1</div>
<div>make[4]: *** [_module_/home/build/openwrt/build_dir/target-mips_34kc+dsp_musl-1.1.14/linux-lantiq_xrx200/ltq-atm-vr9] Error 2</div>
<div>make[4]: Leaving directory `/home/build/openwrt/build_dir/target-mips_34kc+dsp_musl-1.1.14/linux-lantiq_xrx200/linux-3.18.29'</div>
<div>make[3]: *** [/home/build/openwrt/build_dir/target-mips_34kc+dsp_musl-1.1.14/linux-lantiq_xrx200/ltq-atm-vr9/.built] Error 2</div>
<div>make[3]: Leaving directory `/home/build/openwrt/package/kernel/lantiq/ltq-atm'</div>
<div>make[2]: *** [package/kernel/lantiq/ltq-atm/compile] Error 2</div>
<div>make[2]: Leaving directory `/home/build/openwrt'</div>
<div>make[1]: *** [/home/build/openwrt/staging_dir/target-mips_34kc+dsp_musl-1.1.14/stamp/.package_compile] Error 2</div>
<div>make[1]: Leaving directory `/home/build/openwrt'</div>
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
<div>Daniel</div>
<br>
<p></p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Mathias Kresin <dev@kresin.me><br>
<b>Sent:</b> 10 August 2016 22:39<br>
<b>To:</b> Daniel Niasoff<br>
<b>Cc:</b> openwrt-devel@lists.openwrt.org; lede-dev@lists.infradead.org; (leon@darkk.net.ru)<br>
<b>Subject:</b> Re: [OpenWrt-Devel] latency on PPPoA ADSL Annex A on using Lantiq</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Am 10.08.2016 um 22:41 schrieb Daniel Niasoff:<br>
> Hi Mathias,<br>
><br>
>  ADSL works fine on chaos calmer and I cannot reproduce the issue, so it looks like it's a recently introduced issue.<br>
><br>
> Thanks for the idea, it should make it easier to pinpoint<br>
><br>
> Any idea's where the issue might be?<br>
<br>
Nope, no idea yet. Might be a kernel update or something completely <br>
unexpected. Without knowing the commit that introduced the regression <br>
it's more or less crystal ball reading.<br>
<br>
Using 'git bisect' it should be easy to identify the faulty commit. It <br>
has to be somewhere between the last commit before chaos calmer was <br>
branched (git hash 6c9b1a278e484a9c7c5ff36f91da90f725776d00) and HEAD.<br>
<br>
git bisect tells me that you have to build and test circa 12 images to <br>
find the faulty commit:<br>
<br>
git clone "<a href="https://github.com/openwrt/openwrt.git" id="LPlnk72168">https://github.com/openwrt/openwrt.git</a>"
<div id="LPBorder_GT_14714911402600.7323700735196834" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_14714911402550.5656933382959282" cellspacing="0" style="width: 90%; position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200); background-color: rgb(255, 255, 255);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="ImageCell_14714911402560.6740305366360355" colspan="1" style="width: 250px; position: relative; display: table-cell; padding-right: 20px;">
<div id="LPImageContainer_14714911402560.7136603046790717" style="height: 250px; position: relative; margin: auto; display: table; width: 250px; background-color: rgb(255, 255, 255);">
<a id="LPImageAnchor_14714911402570.3115854590070948" href="https://github.com/openwrt/openwrt.git" target="_blank" style="display: table-cell; text-align: center;"><img aria-label="Preview image with link selected. Double-tap to open the link." id="LPThumbnailImageID_14714911402570.06162269745775428" width="250" height="250" style="display: inline-block; max-width: 250px; max-height: 250px; height: 250px; width: 250px; border-width: 0px; vertical-align: bottom;" src="https://avatars0.githubusercontent.com/u/2528830?v=3&s=400"></a></div>
</td>
<td id="TextCell_14714911402580.1601812349097531" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div id="LPRemovePreviewContainer_14714911402580.793899738775526"></div>
<div id="LPTitle_14714911402580.31911792524324256" style="top: 0px; color: rgb(0, 120, 215); font-weight: normal; font-size: 21px; font-family: wf_segoe-ui_light, "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_14714911402580.7842613171682935" href="https://github.com/openwrt/openwrt.git" target="_blank" style="text-decoration: none;">openwrt/openwrt</a></div>
<div id="LPMetadata_14714911402590.009871581033500387" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
github.com</div>
<div id="LPDescription_14714911402590.16638518267544167" style="display: block; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
openwrt - Linux distribution for embedded devices</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
git checkout master<br>
git bisect start HEAD 6c9b1a278e484a9c7c5ff36f91da90f725776d00<br>
Bisecting: 1688 revisions left to test after this (roughly 11 steps)<br>
<br>
It might be a good idea to verify that <br>
6c9b1a278e484a9c7c5ff36f91da90f725776d00 is not affected by the bug <br>
before starting the bisect.<br>
<br>
Mathias<br>
</div>
</span></font></div>
</div>
</body>
</html>