2019-01-30.log

+ B[] (~Thunderbi@125-239-59-195-fibre.sparkbb.co.nz)04:27
- jacky (QUIT: Quit: ZNC 1.7.1 - https://znc.in) (~ichoquo0A@unaffiliated/webjadmin)08:20
+ ichoquo0Aigh9ie (~ichoquo0A@unaffiliated/webjadmin)08:39
+ newby (578c1fb7@gateway/web/freenode/ip.87.140.31.183)14:15
newbyHi everyone, just got my laptop for which thanks :) I am wondering if anyone has got X running not as root?14:16
* newby -> jsnewby14:27
mntmnjsnewby: yes kind of. but it needs suid bit on Xorg14:43
mntmnand, welcome!14:44
mntmnjsnewby, chmod +s /usr/local/bin/Xorg14:47
jsnewbylovely, thanks14:57
Jookiathe default debian uses a wrapper that's more secure than the suid bit14:57
- B[] (QUIT: Ping timeout: 272 seconds) (~Thunderbi@125-239-59-195-fibre.sparkbb.co.nz)15:45
- Jookia (QUIT: Remote host closed the connection) (~Jookia@gateway/tor-sasl/jookia)16:03
+ Jookia (~Jookia@gateway/tor-sasl/jookia)16:03
- bkeys (QUIT: Ping timeout: 272 seconds) (~Thunderbi@c-76-17-206-162.hsd1.mn.comcast.net)16:31
mntmnJookia, but that works only with a display manager or systemd or?17:56
mntmnhmmmm something recently broke my ath9k pcie card on imx617:56
mntmn> [    2.857215] ath9k 0000:01:00.0: PCI memory region reserve error17:56
mntmn> [    1.153129] pci 0000:01:00.0: BAR 0: no space for [mem size 0x00020000 64bit]17:57
mntmni wonder how that can be... there should be 14 MB of pci address space (and it used to work)17:57
mntmnah i'm realizing only now that one of the USB controllers of imx6qp is connected to PCIe internally18:02
- jsnewby (QUIT: Ping timeout: 256 seconds) (578c1fb7@gateway/web/freenode/ip.87.140.31.183)18:03
mntmnwhat the hell, riscv chips by nxp? https://open-isa.org/18:39
mntmnRV32M1, seems to be ARM/RISCV hybrid18:42
+ erlehmann (~erlehmann@95.91.214.125)20:24
swivelis Xorg not using the modesetting driver on reform?20:47
Jookiamntmn: i think that's just default, idk20:48
mntmnswivel, it is, why?20:52
mntmnswivel, KMS needs root to work20:53
swivelmntmn: no it doesn't20:57
swivelnot generally20:57
swivelmntmn: are you saying KMS on reform requires root for some unique reason?20:59
swivelmy project rototiller has a drm backend and I run it regularly as a normal user from the console on i915, it just requires read/write access to the device (/dev/dri/card0) which on debian is just a matter of adding my user to the video group21:01
swivelmy Xorg also runs as a regular user21:02
- erlehmann (QUIT: Quit: Leaving) (~erlehmann@95.91.214.125)21:15
mntmnswivel, i looked into this before, i’ll dig out the reason for you21:18
swivelok, one of the core reasons we have kms is to stop running X as root so I'm rather surprised21:21
mntmnswivel, drmSetMaster21:24
swiveldoesn't require root when uncontended21:25
mntmnhttps://bugs.freedesktop.org/show_bug.cgi?id=9007921:26
mntmnuncontended?21:26
swivelthat bug is talking about multiple drm programs running at once which both want to be master21:27
swiveldrm special cases the lone drm master to not require root21:27
swivelsince the expected use of drm is console->X or console->wayland then you just live under those multiplexers, the usual case should not require root.21:28
swivelbut Xorg is even nice enough to drop the master when you switch to a virtual console while Xorg is still running21:29
swivelso you can run drm programs from the console without even exiting X, but you must be careful to exit them before switching back to Xorg (or if they drop master cooperatively, it should be ok)21:30
mntmnhmm i wonder why it didn’t work then. i’ll look into it after i’ve unbroken pcie _again_21:30
mntmnit’s a nightmare21:30
swivelyeah i don't mean to make this a priority, it just sounds wrong :)21:30
mntmnyeah, good point21:31
swivelanother kernel pcie breakage?21:31
mntmnsomething broke a part of BAR allocation mechanism21:31
mntmnso it complains about not having space for the device which is laughable, it’s like 128kB21:31
swivelnxp should have you guys on payroll21:31
mntmn(and it worked before)21:31
mntmnyeah for testing ;)21:32
andrej235*makes a note22:20
mntmnPCIe card BAR cannot allocate because of type_mask mismatch22:57
swivelBTW I just remembered something about root-less drm without systemd - the special case in the kernel is that the *first* attempt to get drm master succeeds without root23:08
mntmnok... maybe the console already does something there on imx, don’t know23:14
swivelthat first-open problem might have been i915-specific, I'm trying to find the email exchange I had with the kernel devs about that.  I was experimenting with running drm clients from an interactive initrd, so no systemd-logind etc.  Shit would work the first run, but stopped working after every subequent run - not even concurrent, sequential runs23:31
swivelthey were kind of like *shrug* it's not a use case we care much about23:32
mntmnyeah23:32
swivelas long as plymouth works for them they don't care23:32
mntmnuhh i found a weird thing23:32
mntmnfor some reason this quirk is applied here https://patchwork.kernel.org/patch/10666445/23:33
mntmnbut imx6qp doesn’t have a usb3 controller, the quirk matches on the imx6qp pcie controller23:33
mntmnand converts it wrongly into a usb controller device23:34
swivelnice23:34
mntmnjust reverted that... lets see if that was the issue23:35
mntmnomg indeed23:35
mntmnwhat the actual hell23:35
mntmnhow can stuff like this go unnoticed for 6 weeks23:36
swivellack of use23:37
Jookiamntmn: that fixes pcie?23:38
mntmnJookia yes23:38
Jookiai'll pass it on to someone that has an issue with pcie on another chipset for the same amount of time you have23:39
mntmncommit comes from synopsys. maker of the pcie controller23:39
mntmnthis is the one to revert https://github.com/torvalds/linux/commit/03e6742584af8866ba014874669d0440bed3a62323:43
swivelmntmn: it's odd that a usb-controller-less imx6qp would match on PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3*23:56
mntmnswivel, maybe they reused the device id23:57
mntmnyes23:58
mntmn0xabcd23:58
mntmnwhat a nice id. also the id of the pcie controller in imx6qp23:58
swivelsigh23:58
swivelyou feeling like the only one using imx6qp w/mainline yet?23:59

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!