From: Marcel Ziswiler <marcel.ziswiler@toradex.com> To: Thierry Reding <treding@nvidia.com> Cc: "linux-tegra@vger.kernel.org" <linux-tegra@vger.kernel.org>, "alban.bedel@avionic-design.de" <alban.bedel@avionic-design.de>, "linux-arm-kernel@lists.infradead.org" <linux-arm-kernel@lists.infradead.org> Subject: Re: [REGRESSION] drm/tegra: hdmi: tegra_hdmi_setup_audio: division by zero in kernel Date: Mon, 11 Feb 2019 10:57:01 +0100 [thread overview] Message-ID: <0bed49114afa5cb847a1f897296f41171b812fbd.camel@toradex.com> (raw) In-Reply-To: <20190211080007.GA923@ulmo> Hi Thierry On Mon, 2019-02-11 at 09:00 +0100, Thierry Reding wrote: > What exactly was your setup like? Setup was an Apalis T30 2GB V1.1B module on an Apalis Evaluation board V1.1A with our 5.7 inch panel connected to parallel RGB as well as DVI- D aka HDMI connected to a Philips BDM3270 screen. Via kernel command line I forced regular VESA VGA as follows: video=HDMI-A-1:640x480-16@60 > I think the only way that this could > happen is if the sample_rate variable was 0, and I'm not sure how > that > could happen. I remember testing this on Beaver without ever seeing a > crash, so I don't know what I overlooked. > > Looking at the code it seems like the only way that it would happen > is > if the format structure was never initialized, and it seems like it > actually is zeroed out and if nobody ever plays audio over HDMI it > will > remain that way. But that means that HDMI would always crash, and > that > is definitely not something that I've observed. > > Can you specify what exactly your test case is and how I can > reproduce? I believe you once got such an Apalis T30 kit from us. I usually just install our latest regular BSP e.g. 2.8b5 using the Toradex Easy Installer [1] directly from the Internet then boot it up and scp the mainline device tree (renamed) and kernel binary (compiled using regular tegra_defconfig) to it e.g.: scp arch/arm/boot/zImage root@<IP>:/media/mmcblk0p1/ scp arch/arm/boot/dts/tegra30-apalis-v1.1-eval.dtb root@<IP>:/media/mmc blk0p1/tegra30-apalis-eval.dtb Note: U-Boot just expect a device tree by that name. Note2: Once it runs mainline the eMMC will be mmcblk2 rather than mmcblk0. Upon reboot I stop in U-Boot changing the following arguments: setenv stdout serial setenv emmcargs ip=off root=/dev/mmcblk2p2 ro rootfstype=ext3 rootwait setenv vidargs 'video=HDMI-A-1:640x480-16@60' saveenv reset That should get it booting mainline. Once booted I rename the default xorg.conf so it falls back to auto configuration using fbdev rather then trying to use NVIDIA's proprietary downstream L4T Tegra X driver which should then even get the LXDE up and running e.g.: root@apalis-t30:~# mv /etc/X11/xorg.conf /etc/X11/xorg.conf.orig Note3: For NVDIIA L4T R16.5 compatibility reason it runs ancient X.Org X Server 1.14.7 which does not yet feature any modesetting driver. However, the particular issue observed happens already during boot in the kernel way before any user space is involved. [1] https://developer.toradex.com/software/toradex-easy-installer#load-toradex-easy-installer > Thierry Cheers Marcel
WARNING: multiple messages have this Message-ID (diff)
From: Marcel Ziswiler <marcel.ziswiler@toradex.com> To: Thierry Reding <treding@nvidia.com> Cc: "linux-tegra@vger.kernel.org" <linux-tegra@vger.kernel.org>, "alban.bedel@avionic-design.de" <alban.bedel@avionic-design.de>, "linux-arm-kernel@lists.infradead.org" <linux-arm-kernel@lists.infradead.org> Subject: Re: [REGRESSION] drm/tegra: hdmi: tegra_hdmi_setup_audio: division by zero in kernel Date: Mon, 11 Feb 2019 10:57:01 +0100 [thread overview] Message-ID: <0bed49114afa5cb847a1f897296f41171b812fbd.camel@toradex.com> (raw) In-Reply-To: <20190211080007.GA923@ulmo> Hi Thierry On Mon, 2019-02-11 at 09:00 +0100, Thierry Reding wrote: > What exactly was your setup like? Setup was an Apalis T30 2GB V1.1B module on an Apalis Evaluation board V1.1A with our 5.7 inch panel connected to parallel RGB as well as DVI- D aka HDMI connected to a Philips BDM3270 screen. Via kernel command line I forced regular VESA VGA as follows: video=HDMI-A-1:640x480-16@60 > I think the only way that this could > happen is if the sample_rate variable was 0, and I'm not sure how > that > could happen. I remember testing this on Beaver without ever seeing a > crash, so I don't know what I overlooked. > > Looking at the code it seems like the only way that it would happen > is > if the format structure was never initialized, and it seems like it > actually is zeroed out and if nobody ever plays audio over HDMI it > will > remain that way. But that means that HDMI would always crash, and > that > is definitely not something that I've observed. > > Can you specify what exactly your test case is and how I can > reproduce? I believe you once got such an Apalis T30 kit from us. I usually just install our latest regular BSP e.g. 2.8b5 using the Toradex Easy Installer [1] directly from the Internet then boot it up and scp the mainline device tree (renamed) and kernel binary (compiled using regular tegra_defconfig) to it e.g.: scp arch/arm/boot/zImage root@<IP>:/media/mmcblk0p1/ scp arch/arm/boot/dts/tegra30-apalis-v1.1-eval.dtb root@<IP>:/media/mmc blk0p1/tegra30-apalis-eval.dtb Note: U-Boot just expect a device tree by that name. Note2: Once it runs mainline the eMMC will be mmcblk2 rather than mmcblk0. Upon reboot I stop in U-Boot changing the following arguments: setenv stdout serial setenv emmcargs ip=off root=/dev/mmcblk2p2 ro rootfstype=ext3 rootwait setenv vidargs 'video=HDMI-A-1:640x480-16@60' saveenv reset That should get it booting mainline. Once booted I rename the default xorg.conf so it falls back to auto configuration using fbdev rather then trying to use NVIDIA's proprietary downstream L4T Tegra X driver which should then even get the LXDE up and running e.g.: root@apalis-t30:~# mv /etc/X11/xorg.conf /etc/X11/xorg.conf.orig Note3: For NVDIIA L4T R16.5 compatibility reason it runs ancient X.Org X Server 1.14.7 which does not yet feature any modesetting driver. However, the particular issue observed happens already during boot in the kernel way before any user space is involved. [1] https://developer.toradex.com/software/toradex-easy-installer#load-toradex-easy-installer > Thierry Cheers Marcel _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2019-02-11 9:57 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-02-08 20:01 [REGRESSION] drm/tegra: hdmi: tegra_hdmi_setup_audio: division by zero in kernel Marcel Ziswiler 2019-02-08 20:01 ` Marcel Ziswiler 2019-02-10 16:51 ` Dmitry Osipenko 2019-02-10 16:53 ` Dmitry Osipenko 2019-02-11 8:00 ` Thierry Reding 2019-02-11 9:57 ` Marcel Ziswiler [this message] 2019-02-11 9:57 ` Marcel Ziswiler 2019-03-14 21:55 ` Dmitry Osipenko
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=0bed49114afa5cb847a1f897296f41171b812fbd.camel@toradex.com \ --to=marcel.ziswiler@toradex.com \ --cc=alban.bedel@avionic-design.de \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-tegra@vger.kernel.org \ --cc=treding@nvidia.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.