Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux 4.9 config: disable vmapped stack until drivers are fixed #1076

Merged
merged 1 commit into from Dec 21, 2016

Conversation

mglae
Copy link
Contributor

@mglae mglae commented Dec 19, 2016

Using the new linux 4.9 vmapped stack feature crashes all drivers still using DMA buffers on stack. In case of the USB 'TechnoTrend TT-connect S2-4600' the error is

transfer buffer not dma capable

dmesg: http://sprunge.us/BMNN

Background information can be found on LWN.net and Phoronix.

With this PR the driver loads fine and at least the remote is working. Full test is not possible as I currently have no access to a dish.

@CvH: if still motivated you may give the TBS drivers a last chance :-)

@CvH
Copy link
Member

CvH commented Dec 19, 2016

@mglae the tbs drivers has other problems ;) (for a kind of fix see #1073)
Tx that you report this, 2 devices were reported that stacktraces - both with this message (T230 for example). I build and test image (usual place) to see if this fixes it for them too.

Gianatech T230 for example

vb-usb: found a 'Mygica T230 DVB-T/T2/C' in warm state.
TL871X: module init start
TL871X: rtl8812au v4.3.20_16317.20160108
TL871X: build time: Dec 15 2016 13:32:05
-----------[ cut here ]------------
ARNING: CPU: 1 PID: 280 at drivers/usb/core/hcd.c:1584 usb_hcd_map_urb_for_dma+0x370/0x550
ransfer buffer not dma capable
odules linked in: 8812au(O+) dvb_usb_cxusb(O+) dib0070(O) dvb_usb(O) rc_core(O) dvb_core(O) cfg80211 media(O) snd_usb_audio snd_hwdep snd_usbmidi_lib snd_rawmidi
PU: 1 PID: 280 Comm: systemd-udevd Tainted: G           O    4.9.0 #1
ardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./To be filled by O.E.M., BIOS 080016  03/16/2011
0000000000000000 ffffffff81388194 ffffc90000dc7900 0000000000000000
ffffffff8104a7b4 ffff88005d587780 ffffc90000dc7950 0000000000000000
0000000002400000 0000000000000000 0000000000000002 ffffffff8104a81a
Call Trace:
[<ffffffff81388194>] ? dump_stack+0x5c/0x78
[<ffffffff8104a7b4>] ? __warn+0xb4/0xd0
[<ffffffff8104a81a>] ? warn_slowpath_fmt+0x4a/0x50
[<ffffffff8109a466>] ? lock_timer_base+0x76/0x90
[<ffffffff818e8dc0>] ? usb_hcd_map_urb_for_dma+0x370/0x550
[<ffffffff818e9e59>] ? usb_hcd_submit_urb+0x2e9/0x940

@CvH
Copy link
Member

CvH commented Dec 21, 2016

reported working for various DVB cards, should go in (if nobody has objections) before 010 ;)

@chewitt chewitt merged commit 93a3df3 into LibreELEC:master Dec 21, 2016
@mglae mglae deleted the linux-4.9_disable_vmapped_stack branch December 27, 2016 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants