ChanServ changed the topic of #armlinux to: ARM kernel talk [Upstream kernel, find your vendor forums for questions about their kernels] | https://libera.irclog.whitequark.org/armlinux
apritzel_ has quit [Ping timeout: 264 seconds]
amitk has joined #armlinux
<vireshk> arnd, geertu Here is the current I2C solution we have, in case you want to have a look. https://github.com/rust-vmm/vhost-device/tree/main/i2c
<vireshk> geertu, In our case, we are handling this aggregation within the I2C backend itself (which runs on the host). The backend takes as an input, which devices (on which I2C busses) are allocated to which VM (or socket which is used for communication with the frontend). And then the backend just allows those particular devices for specific VMs.
<vireshk> For GPIO, we are relying on the GPIO aggregator at the moment, as it makes the management in the backend very simple.
tchebb_ has quit [Quit: ZNC - http://znc.in]
tchebb has joined #armlinux
tchebb has quit [Client Quit]
tchebb has joined #armlinux
rvalue has quit [Remote host closed the connection]
rvalue has joined #armlinux
rvalue has quit [Remote host closed the connection]
rvalue has joined #armlinux
tchebb has quit [Quit: ZNC - http://znc.in]
tchebb has joined #armlinux
<Xogium> well.. starting to think ATF+optee = headaches due to so much convoluted process
<Xogium> I really can't get this thinkg to boot. Not even getting to u-boot
luispm has joined #armlinux
<geertu> vireshk: Thanks, handling this in the backend was what I had done for GPIO originally, too. But the virt guys didn't like that, and suggested creating an aggregator instead.
monstr has joined #armlinux
<geertu> Mainly because it would reduce the attack surface.
<vireshk> geertu, right
zkrx has quit [Ping timeout: 240 seconds]
frieder has joined #armlinux
guillaume_g has joined #armlinux
tre has joined #armlinux
zkrx has joined #armlinux
djrscally has joined #armlinux
matthias_bgg has joined #armlinux
Pali has joined #armlinux
apritzel_ has joined #armlinux
Pali has quit [Ping timeout: 272 seconds]
headless has joined #armlinux
apritzel_ has quit [Ping timeout: 240 seconds]
Pali has joined #armlinux
sszy has joined #armlinux
<javierm> geertu, vireshk: I wonder how this could be generalized, we have proper abstractions to patition resources like memory (VM), CPU (processes) and storage (FS) but don't have something for peripherals/devices
<javierm> it seems there is a need to have kind of virtualized devices on top of the real devices, so that these virtual devices could be assigned to different containers
<javierm> *containers or VMs (if the kernel managed the partition, the VMM could even pass-through the virtual device)
iivanov has joined #armlinux
<maz> javierm: mediated devices are a fairly close match to what you describe.
nsaenz has joined #armlinux
alexels has joined #armlinux
iivanov has quit [Quit: Leaving...]
Pali has quit [Ping timeout: 272 seconds]
<geertu> maz: That's for DMA devices?
<maz> geertu: no necessarily. there is an example in the tree for a basic UART. the doc is pretty heavy on DMA and IOMMU because that's the hard part, but there is no strict requirement for it.
milkylainen has joined #armlinux
milkylainen has quit [Quit: Ping timeout (120 seconds)]
rvalue has quit [Ping timeout: 246 seconds]
rvalue has joined #armlinux
milkylainen has joined #armlinux
alpernebbi has quit [Ping timeout: 248 seconds]
alpernebbi has joined #armlinux
Grimler has quit [Quit: leaving]
milkylainen has quit [Quit: Ping timeout (120 seconds)]
apritzel has joined #armlinux
cleger has joined #armlinux
Grimler has joined #armlinux
milkylainen has joined #armlinux
milkylainen has quit [Quit: Ping timeout (120 seconds)]
milkylainen has joined #armlinux
milkylainen has quit [Quit: Ping timeout (120 seconds)]
headless has quit [Quit: Konversation terminated!]
headless has joined #armlinux
iivanov has joined #armlinux
headless has quit [Ping timeout: 264 seconds]
headless_ has joined #armlinux
headless_ is now known as headless
prabhakarlad has quit [Quit: Client closed]
torez has joined #armlinux
alexels has quit [Ping timeout: 240 seconds]
headless has quit [Quit: Konversation terminated!]
alexels has joined #armlinux
hushmoney has quit [Quit: leaving]
rvalue has quit [Ping timeout: 248 seconds]
rvalue has joined #armlinux
dliviu has quit [Quit: Going away]
dliviu has joined #armlinux
prabhakarlad has joined #armlinux
alexels has quit [Quit: WeeChat 3.5]
robmur01 has quit [Remote host closed the connection]
robmur01 has joined #armlinux
robmur01 has quit [Quit: ZNC 1.7.5+deb4 - https://znc.in]
robmur01 has joined #armlinux
tre has quit [Remote host closed the connection]
c1728p9 has joined #armlinux
Pali has joined #armlinux
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
apritzel has quit [Ping timeout: 246 seconds]
headless has joined #armlinux
monstr has quit [Remote host closed the connection]
cleger has quit [Remote host closed the connection]
Lucanis0 has joined #armlinux
Lucanis0 has quit [Changing host]
Lucanis0 has joined #armlinux
Lucanis has quit [Ping timeout: 244 seconds]
<drewfustini> maz: thanks, mediated devices looks quite interesting
matthias_bgg has quit [Ping timeout: 264 seconds]
<drewfustini> vireshk: thanks for the link to vhost-device-i2c
<maz> drewfustini: np
torez has quit [Quit: torez]
<steev> wasn't this error a thing around 5.17 and vmware/parallels had to do a fix? https://usercontent.irccloud-cdn.com/file/g9XPRorq/Screen%20Shot%202022-06-23%20at%201.07.04%20PM.png
<j`ey> looks similar yes
<steev> thought so, i'll poke vmware again
<j`ey> it was reading ID_AA64ISAR2_EL1 that caused that
<j`ey> steev: I assumed it was fixed since noone was complaining anymore
prabhakarlad has quit [Quit: Client closed]
c1728p91 has joined #armlinux
<steev> j`ey: i had assumed so too, but now that I'm thinking about it, in Kali we were reverting those patches in the previous kernels
tchebb has quit [Ping timeout: 246 seconds]
<ardb> steev: it would be quite helpful to know which instruction lives at __cpuinfo_store_cpu+0x84 in your kernel
<steev> ardb: is there a way for me to get that?
tchebb has joined #armlinux
<j`ey> scripts/faddr2line
<steev> this is one of the original m1 airs
<j`ey> scripts/faddr2line vmlinux __cpuinfo_store_cpu+0x84
<steev> give me a moment to boot the older kernel
c1728p9 has quit [Ping timeout: 246 seconds]
luispm has quit [Ping timeout: 246 seconds]
<steev> and to clone the kernel, apparently that script isn't part of the headers install for debian packages
<ardb> steev: all you really need is the vmlinux file from the kernel build and objdump
<steev> ardb: if i were smart, likely - that said, running faddr2line vmlinuz __cpuinfo_store_cpu+0x84 returns no match
<steev> it's arm64 so the vmlinuz and the vmlinux file should be identical, no?
<ardb> no vmlinuz is the compressed binary
<ardb> you will need the ELF file from the kernel build
<steev> oh right, we bzip not gzip
<ardb> no the ELF file not the unzipped binary image
<steev> okay, downloading the dbg package and hopefully its in there
luispm has joined #armlinux
<steev> ~/linux/scripts/faddr2line vmlinux-5.18.0-kali2-arm64 __cpuinfo_store_cpu+0x84
<steev> __cpuinfo_store_cpu+0x84/0x260:
<steev> ?? ??:0
apritzel_ has joined #armlinux
iivanov has quit [Quit: Leaving...]
apritzel_ has quit [Ping timeout: 268 seconds]
frieder has quit [Remote host closed the connection]
nsaenz has quit [Remote host closed the connection]
headless has quit [Ping timeout: 240 seconds]
headless has joined #armlinux
headless has quit [Ping timeout: 256 seconds]
apritzel_ has joined #armlinux
<ardb> strange
<ardb> if you run objdump -d on it (or ${CROSS_COMPILE}objdump if needed)
<ardb> and search for that symbol name?
<steev> are we miscompiling it somehow?
<steev> oh, i see, hold up
<j`ey> ffff800008022324: d5380640 mrs x0, id_aa64isar2_el1
<steev> okay so it's the same issue
c1728p91 has quit [Quit: Leaving]
djrscally has quit [Ping timeout: 248 seconds]
Pali has quit [Ping timeout: 256 seconds]