2022-04-24.log

- sts-q (QUIT: Remote host closed the connection) (~sts-q@2a01:41e1:2d06:2500:a682:3650:236b:b8c)00:07
+ sts-q (~sts-q@2a01:41e1:2d06:2500:a682:3650:236b:b8c)00:07
+ ephase (~ephase@2a01:e0a:168:1211::885)00:12
- alex4nder (QUIT: Ping timeout: 240 seconds) (~alexander@wsip-184-186-224-227.sb.sd.cox.net)00:17
- mjw (QUIT: Quit: Leaving) (~mark@gnu.wildebeest.org)00:36
- ephase (QUIT: Quit: WeeChat 3.5) (~ephase@2a01:e0a:168:1211::885)00:39
- Christoph_ (QUIT: Remote host closed the connection) (~Christoph@79.231.49.219)00:51
- oomono (QUIT: Quit: Connection closed for inactivity) (uid328183@id-328183.tinside.irccloud.com)00:53
minutejosch: those values sound ok?01:38
minutejosch: 2.3v is not a big deal, it should easily recharge01:41
- sl (QUIT: Quit: Lost terminal) (~sl@beastie.sdf.org)01:42
- mtm (QUIT: Ping timeout: 256 seconds) (~mtm@c-73-27-62-116.hsd1.fl.comcast.net)02:03
- Guest1805 (QUIT: Ping timeout: 276 seconds) (~nicolas@192-99-142-46.pool.kielnet.net)03:09
+ nsc (~nicolas@50-49-142-46.pool.kielnet.net)03:10
* nsc -> Guest950803:11
+ vagrantc (~vagrant@2600:3c01:e000:21:7:77:0:20)03:21
+ mtm (~mtm@c-73-27-62-116.hsd1.fl.comcast.net)04:08
- vagrantc (QUIT: Quit: leaving) (~vagrant@2600:3c01:e000:21:7:77:0:20)04:18
- sts-q (QUIT: Ping timeout: 260 seconds) (~sts-q@2a01:41e1:2d06:2500:a682:3650:236b:b8c)04:44
+ sts-q (~sts-q@2a01:41e1:2d38:1f00:c3f5:f3e2:8cb7:d4b4)04:47
+ sl (~sl@beastie.sdf.org)05:29
joschbut how can it happen that one cell is 0.9 V less than the rest?07:56
+ alex4nder (~alexander@ip98-171-191-229.sb.sd.cox.net)08:26
- sl (QUIT: Ping timeout: 240 seconds) (~sl@beastie.sdf.org)11:14
- sts-q (QUIT: Remote host closed the connection) (~sts-q@2a01:41e1:2d38:1f00:c3f5:f3e2:8cb7:d4b4)11:36
+ sts-q (~sts-q@2a01:41e1:2d38:1f00:c3f5:f3e2:8cb7:d4b4)11:40
+ sl (~sl@beastie.sdf.org)12:05
- robin (QUIT: Remote host closed the connection) (~robin@user/terpri)12:10
+ robin (~robin@user/terpri)12:11
+ Christoph_ (~Christoph@p4fe73cb6.dip0.t-ipconnect.de)12:31
- SnowCode (PART: WeeChat 3.0) (~debian@vps-709aceac.vps.ovh.net)13:55
- mtm (QUIT: Ping timeout: 272 seconds) (~mtm@c-73-27-62-116.hsd1.fl.comcast.net)14:04
+ MajorBiscuit (~MajorBisc@c-001-011-047.client.tudelft.eduvpn.nl)14:07
- mrus (QUIT: Remote host closed the connection) (~mrus@gateway/tor-sasl/mrus)16:16
+ mrus (~mrus@gateway/tor-sasl/mrus)16:18
+ pr_ (pr@faeroes.sdf.org)16:52
+ vagrantc (~vagrant@2600:3c01:e000:21:7:77:0:20)17:43
joschthe cell that was 2.3 V yesterday is down to 1.7 V right now while the remaining ones are still at 3.2 V17:44
joschi'm on the road without my AC adapter and without a screwdriver -- there is nothing I can do then, right?17:45
joschwhat should I do different next time?17:45
joschthe battery status says that the system draws 0.000 A17:45
joschdown to 1.6 V now...17:45
sts-qjosch: 18:00
sts-qI am for sure no hardware guy. That said, how exact are the different values?18:00
sts-qMine show 4.5 for the first and 3.3 for all other cells all over today.18:00
sts-qIt looks like first, the value of the first cells differs from the others18:00
sts-qand only later the other values change?18:00
minutejosch: you can open it without a screwdriver, for example with a knife or fork18:01
minutejosch: also, you should press circle 0 after checking the status, that way you make sure both kbd and motherboard lpc are in sleep mode18:02
joschno knife or fork with me in the train i'm afraid :D cirle-0 was pressed already yesterday and again about 9 hours ago just for good measure18:07
minutejosch: also, you can charge the thing with almost any dc adapter that has the right barrel, for example i used the power supply of my dyson vacuum once18:07
minutejosch: ahh, train! well, lets hope the cell survives till you find a charger, otherwise you can replace it cheaply later18:08
vagrantcwhat could possibly go wrong waving a knife around poking at a battery pack on a moving train?18:13
josch"mister conductor, I swear lifepo batteries are not as dangerous as you think they are!" XD18:15
vagrantci have seriously wondered if i ever take a flgiht again ... how to answer the question of "are you carrying any lithium-ion batteries?" if i brought my mnt/reform18:17
vagrantcas lifepo4 are definitely a form of lithium-ion chemistry ... but so much more stable than what the kind the question is actually designed to catch ...18:18
vagrantcwhat would the mnt/reform look like to a security agent reading the luggage scanner?18:19
joschsame here -- i'll report my experience with flying with the reform in june in case something funny happens18:22
vagrantcoh fun18:23
minutei heard from 2 people carrying it through airport security iirc and it went ok18:23
minutewhen i travelled to belgium and sweden with demos i checked it into luggage18:23
minutebut those units looked more like prototypes18:24
vagrantci don't know if the clear bottom would reassure someone suspicious or be helpful ... seee, it's not a bomb at all18:24
sknebelisnt that question tied to *spare* batteries normally?18:24
sknebellots of rules in that area count installed batteries differently 18:25
vagrantcsknebel: it's never been clear to me when asked, but i think so ...18:25
sknebele.g. https://www.faa.gov/hazmat/packsafe/more_info/?hazmat=718:25
sknebelvs https://www.faa.gov/hazmat/packsafe/more_info/?hazmat=2018:27
vagrantcwow, first url works, second url gets access denied ...18:28
sknebelweird18:28
sknebelthe second is the referenced "For lithium batteries that are installed in a device (laptop, cell phone, camera, etc.), see the entry for "portable electronic devices, containing batteries"."18:29
vagrantcseem to have invoked the ire of faa.gov, can't even get to the first url that worked :)18:31
vagrantcarchive.org to the rescue18:32
minutebatteries installed in devices are fine according to IATA 18:32
minutethat's why we can fly all those reforms to texas with ups18:32
vagrantcright18:34
sknebelheh, yeah. heard from people developing ebikes that its easier and cheaper to ship a full bike with a prototype battery pack mounted to it than just the battery18:44
+ mjw (~mark@gnu.wildebeest.org)18:52
- mrus (QUIT: Ping timeout: 240 seconds) (~mrus@gateway/tor-sasl/mrus)19:08
+ mrusme (~mrus@gateway/tor-sasl/mrus)19:08
- sigrid (QUIT: Ping timeout: 240 seconds) (~ftrvxmtrx@ftrv.se)20:08
- XgF (QUIT: Ping timeout: 248 seconds) (~quassel@2001:19f0:5001:1174:5400:2ff:fef2:1fa2)20:09
+ XgF (~quassel@2001:19f0:5001:1174:5400:2ff:fef2:1fa2)20:11
+ sigrid (~ftrvxmtrx@ftrv.se)20:15
- natalie (QUIT: Ping timeout: 272 seconds) (~natalie@user/natalie)20:30
cinap_lenrek0: stuck disabled: ffffffff20:33
cinap_lenrek0: stuck enabled: 0000000020:33
cinap_lenrek32: stuck disabled: 0000000020:33
cinap_lenrek32: stuck enabled: 0000000020:33
cinap_lenrek64: stuck disabled: 0000000020:33
cinap_lenrek64: stuck enabled: 0000000020:33
cinap_lenrek96: stuck disabled: 0000000020:33
cinap_lenrek96: stuck enabled: 0000000020:33
cinap_lenrek128: stuck disabled: 0000000020:33
cinap_lenrek128: stuck enabled: 0000000020:33
cinap_lenrekso seems all the PPI's are disabled?20:33
cinap_lenrekintid's 0-3120:34
cinap_lenrekis this some trusted firmware fuckery?20:34
cinap_lenreki'm trying to get the generic arm timer interrupt to work20:35
+ natalie (~natalie@user/natalie)20:43
* mrusme -> mrus20:52
- natalie (QUIT: Ping timeout: 240 seconds) (~natalie@user/natalie)20:55
+ natalie (~natalie@user/natalie)21:01
- natalie (QUIT: Ping timeout: 272 seconds) (~natalie@user/natalie)21:09
+ al3x4nder (~alexander@wsip-184-186-225-187.sb.sd.cox.net)21:12
al3x4nderhey21:12
+ natalie (~natalie@user/natalie)21:12
- natalie (QUIT: Remote host closed the connection) (~natalie@user/natalie)21:13
cinap_lenrekmaybe the generic arm timer interrupt cannot be used at all?21:14
+ natalie (~natalie@user/natalie)21:21
- al3x4nder (QUIT: Quit: leaving) (~alexander@wsip-184-186-225-187.sb.sd.cox.net)21:40
- XgF (QUIT: Ping timeout: 240 seconds) (~quassel@2001:19f0:5001:1174:5400:2ff:fef2:1fa2)21:57
- sigrid (QUIT: Ping timeout: 248 seconds) (~ftrvxmtrx@ftrv.se)21:57
+ sigrid (~ftrvxmtrx@ftrv.se)21:59
+ XgF (~quassel@2001:19f0:5001:1174:5400:2ff:fef2:1fa2)21:59
sigridcinap_lenrek: you mean gpt?22:44
cinap_lenrekno22:45
cinap_lenreki mean the armv8 timer22:45
cinap_lenrekit is a per core timer22:46
cinap_lenrekCNTPCT_EL0, CNTP_TVAL_EL0, CNTP_CTL_EL022:48
cinap_lenrekinterrupt according to devicetree is standard 14, which maps to intid 3022:48
cinap_lenrekthat thing works just out of the box on raspberry pi22:50
sigridI see an example here: https://github.com/aohzju/gicDemo/blob/master/gicv3.c22:50
sigriddon't know how accurate that is22:50
cinap_lenreki already have a prooven gic implementation22:51
sigridyeah there is a timer example at the bottom too22:52
sigridwhich I can't parse tbh22:52
cinap_lenrekinteresting, this accesses ICC_CTLR_EL322:53
khmhow did you even find that?  searching for "GEN_TIMER_INTID"?22:54
- natalie (QUIT: Quit: quit) (~natalie@user/natalie)22:54
khmsome kind of arm-sniffing internet sorcery22:55
cinap_lenrekits in the generic timer documentation and they suggest that mapping22:55
cinap_lenrekbut i checked the devicetree dump from uboot22:55
cinap_lenrekthe truth is that we'r running on a psci system22:56
cinap_lenrekso theres a hypervisor and secure modes and what not22:56
cinap_lenrekand i might have locked down shit so its not possible to enable it from the os22:56
sigridkhm: random people on the internet trying to program gic v322:58
+ natalie (~natalie@user/natalie)22:58
cinap_lenrekthe gic spec is 788 pages ;)22:58
cinap_lenrekthey created a monster22:58
sigridyeah, it's horrendous22:58
slthe spec is not the solution to the problem, the spec IS the problem22:58
cinap_lenreki'm out of time for today22:59
cinap_lenrekat least we got to userspace22:59
cinap_lenrekspi interrupts might actually work as i got it to fire during experimentation23:00
cinap_lenrekso at least mmu stuff seems to work as expected23:00
sigridnoice23:00
cinap_lenreksigrid: thanks for the example, but i think i will not be able to access ICC_CTLR_EL323:02
sigriddid you also have to do any security group stuff in your gicv3 code?23:02
cinap_lenreki *assume* we'r in non-secure EL123:03
cinap_lenreki have to tripple check this23:04
minutenice23:07
- MajorBiscuit (QUIT: Ping timeout: 240 seconds) (~MajorBisc@c-001-011-047.client.tudelft.eduvpn.nl)23:08
cinap_lenrekyeah, manual sais only accessible in EL323:08
cinap_lenrekalso exmplains why they poll the WAKER23:09
cinap_lenreki determined all this init already has been done by uboot/tf23:09
sigriduboot must be using that timer too I guess23:09
cinap_lenrekno23:09
cinap_lenrekuboot runs without interrupts23:10
sigridhuh. how does it do the countdown then, just counting cycles?23:10
cinap_lenrekit spins23:10
sigridD:23:10
sigridmakes sense23:10
cinap_lenrekalso funny the code is wrong23:12
cinap_lenrekthey do a read/modify/write for GICR_ISENABLER023:12
cinap_lenrekbut you should be able to just write the bit23:12
cinap_lenrektheres a corresponding clear register23:12
cinap_lenrekit might not be a bad idea to just try the generic timer from nxp23:19
cinap_lenrekas ppi's are a bit special23:19
cinap_lenrekand the spi's are not locked23:19
cinap_lenrekat least that can help narrowing it down23:20
sigridI can see linux using that one23:23
cinap_lenreksigrid: thats a good sign23:23
cinap_lenrekdo we know it uses it for interrupts too?23:23
cinap_lenreklike it can be used as a timestamp counter for userspace too23:24
cinap_lenrekyou can configure the counter to be userspace readable23:24
cinap_lenrekhm23:24
cinap_lenreki wonder23:24
cinap_lenrekcan you cat some /proc file in linux?23:24
sigridyes23:24
sigridhttps://www.kernel.org/doc/Documentation/devicetree/bindings/arm/arch_timer.txt23:32
cinap_lenreksigrid: i read that to find the irq mapping and if there are quirks23:33
cinap_lenrekbut thanks23:33
sigridI'll just assume you read everything already :D23:33
cinap_lenrekits also possible its some stupid bug and i typoed somewhere in the ICC system register definitions23:33
cinap_lenrekyeah, no worry23:33
cinap_lenreki'll try another interrupt source23:34
- Christoph_ (QUIT: Remote host closed the connection) (~Christoph@p4fe73cb6.dip0.t-ipconnect.de)23:34
cinap_lenrekand go over the gic code with a clear mind another day23:34

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