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
mraynal has quit [Remote host closed the connection]
mraynal has joined #armlinux
torez has quit [Quit: torez]
apritzel_ has quit [Ping timeout: 256 seconds]
Misotauros has quit [Ping timeout: 246 seconds]
alpernebbi has quit [Ping timeout: 244 seconds]
alpernebbi has joined #armlinux
Misotauros has joined #armlinux
amitk has joined #armlinux
Xogium_ has joined #armlinux
sakman__ has joined #armlinux
shawnguo9 has joined #armlinux
Misotauros has quit [Ping timeout: 246 seconds]
ajb-linaro has quit [Ping timeout: 246 seconds]
Misotaur- has joined #armlinux
hanetzer has quit [Ping timeout: 246 seconds]
Xogium has quit [Ping timeout: 246 seconds]
Xogium_ is now known as Xogium
sakman_ has quit [Ping timeout: 246 seconds]
darkapex has quit [Ping timeout: 246 seconds]
shawnguo has quit [Ping timeout: 246 seconds]
vkoul has quit [Ping timeout: 246 seconds]
vireshk has quit [Ping timeout: 246 seconds]
suzukikp has quit [Ping timeout: 246 seconds]
shawnguo9 is now known as shawnguo
darkapex has joined #armlinux
hanetzer has joined #armlinux
ajb-linaro has joined #armlinux
vireshk has joined #armlinux
vkoul has joined #armlinux
suzukikp has joined #armlinux
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #armlinux
tre has joined #armlinux
frieder has joined #armlinux
monstr has joined #armlinux
luispm has quit [Ping timeout: 240 seconds]
djrscally has joined #armlinux
guillaume_g has joined #armlinux
mag has quit [Ping timeout: 248 seconds]
iivanov has joined #armlinux
apritzel_ has joined #armlinux
apritzel_ has quit [Ping timeout: 248 seconds]
matthias_bgg has joined #armlinux
headless has joined #armlinux
nsaenz has joined #armlinux
alexels has joined #armlinux
mag has joined #armlinux
mwalle has joined #armlinux
Xogium has quit [Quit: Leaving.]
Xogium has joined #armlinux
luispm has joined #armlinux
apritzel has joined #armlinux
sszy has joined #armlinux
headless has quit [Ping timeout: 248 seconds]
headless_ has joined #armlinux
headless_ is now known as headless
Pustnicul has joined #armlinux
Amit_T has joined #armlinux
Pustnicul has quit [Quit: Leaving]
headless has quit [Quit: Konversation terminated!]
haritzondo has joined #armlinux
haritzondo has quit [Changing host]
haritzondo is now known as haritz
matthias_bgg has quit [Ping timeout: 256 seconds]
XV8 has joined #armlinux
matthias_bgg has joined #armlinux
milkylainen has quit [Quit: Ping timeout (120 seconds)]
headless has joined #armlinux
tlwoerner has quit [Quit: Leaving]
tlwoerner has joined #armlinux
tre has quit [Remote host closed the connection]
torez has joined #armlinux
matthias_bgg has quit [Ping timeout: 256 seconds]
headless has quit [Quit: Konversation terminated!]
apritzel has quit [Ping timeout: 256 seconds]
XV8 has quit [Quit: Textual IRC Client: www.textualapp.com]
prabhakarlad has quit [Quit: Client closed]
amitk_ has joined #armlinux
matthias_bgg has joined #armlinux
<drewfustini> geertu: have you ever thought about something like GPIO aggregator for other classes of embedded peripherals? I'm thinking about the context of application running in a container on an embedded system (like an ARM SoC) where peripheral access needs to be controlled. I suppose overall, udev works for this, but I think it may not be granular enough for some types of devices.
amitk has quit [Ping timeout: 268 seconds]
<drewfustini> the background is this started with a client saying they wanted " virtio + lxc" but I'm not sure that is actually what they... their goal is to provide a more isolation between applications in an automotive SoC. GPIO aggregator seems to work great for GPIO... but I'm thinking about how isolation between applications could work for applications that are using other types of peripherals.
<javierm> drewfustini: I think GPIO aggregator only works with the deprecated sysfs interface ?
<javierm> drewfustini: but in general I think the solution for this is to bind mount the chardevs for the container to access it
<drewfustini> I believe it creates a new gpiochip with just lines specified
<drewfustini> javierm: thanks for the link to libkrun. That does look promising.
<javierm> drewfustini: you are welcome. Feel free to ping Sergio if you want more details, he is always eager to help :)
<drewfustini> I've been trying to understand if the request for "virtio + lxc" makes sense and I think it could in the context of libkrun
torez has quit [Quit: torez]
<javierm> drewfustini: yeah, the security boundaries and level of isolation are different for containers and VMs so I think that makes sense
<geertu> javierm: it works with whatever userspace GPIO you have enabled in your kernel, i.e. both sysfs and chardev
<javierm> and being able to package / ship something as an OCI container but running it was a very lightweight VM makes sense
<javierm> geertu: ah, I see. Cool
<geertu> drewfustini: You mean like restricting access to a single i2c device on the bus?
sakman__ has quit [Remote host closed the connection]
<geertu> spi already has different spidev devices for each device, while i2c has a single chardev allowing you to access all devices on the bus.
<drewfustini> Yeah, I think that could be part of it.
<javierm> drewfustini: I see there's a drivers/gpio/gpio-virtio.c driver
<drewfustini> Yeah, SPI should be handled by udev okay. i2c seems more complicated. Also CAN bus too.
<geertu> drewfustini: Would https://github.com/oasis-tcs/virtio-spec/blob/master/virtio-i2c.tex help? (I didn't read it)
<drewfustini> Yeah, I think that is where this vendors request from virtio + lxc comes from. There are already virtio device types specified for all the hardware peripherals that they care about
<drewfustini> However, they did not feel that kvm+qemu for each application made sense
<javierm> drewfustini: kvm+qemu could mean many things though, for example there's a microvm machine type: https://qemu.readthedocs.io/en/latest/system/i386/microvm.html
<javierm> which in theory shouldn't have the same perf penalty that running lets say a full virtual machine with all peripherals virtualized
<drewfustini> I think that led to the idea of melding the more "light weight" isolation of linux containers (namespace, cgroups, capabilities) with peripheral abstraction that virtio devices provide. I've been trying to think how this would work though as I couldn't find anyone using virtio devices without a hypervisor. Though @javierm pointed me to libkrun yesterday which looks promising https://github.com/containers/libkrun
<hanetzer> libkrun?
<javierm> drewfustini: the goal of that project (and qemu microvm machine type that also sergio started) is to find a middle ground between the trade-offs of containers vs VMs
<drewfustini> javierm: yeah, I've also been trying to help this vendor to quantify why they don't want kvm+qemu.
<javierm> drewfustini: his point is that there isn't really a dichotomy as most people think
<drewfustini> hanetzer: this is libkrun https://github.com/containers/libkrun
<hanetzer> dasting.
<drewfustini> javierm: thanks for the microvm link.
<drewfustini> that is an interesting point that there is more of a middle ground than I was conceptualizing between VM and container
<drewfustini> I found this yesterday too... it was interesting to see it is possible to have the advantages for virtio devices without a hypervisor. Though this was a bit different - how to let a core not running Linux, better interface with Linux - "Hypervisor-less Virtio for Real-time and Safety" - Maarten Koning, Wind River https://www.youtube.com/watch?v=YnQcpndlTHE
<javierm> drewfustini: interesting
prabhakarlad has joined #armlinux
sakman__ has joined #armlinux
<ajb-linaro> drewfustini: you know we have a vhost-user gpio backend for exactly this use case?
<drewfustini> ajb-linaro: thank you... I had not really looked to closely at these topics until this week. Is this related? https://github.com/rust-vmm/vhost-device/pull/76
sakman__ is now known as sakman
<drewfustini> > In the current implementation QEMU is the front-end, and the back-end is the external process consuming the virtio queues
<drewfustini> so no need for a hypervisor it seems?
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<maz> there is *never* a need for a hypervisor... ;-)
<ajb-linaro> drewfustini: yeah exactly that
<ajb-linaro> drewfustini: so in the vhost-user case you can either just be the backend for emulation (no hypervisor) or run KVM and it works pretty much the same (except the kernel delivers eventfd/irqfd direct to the backend)
c1728p9 has joined #armlinux
<drewfustini> thank you, that is very helpful
<Xogium> so... this isn't strictly kernel related but I've got no clue where else to ask... I'm trying to migrate away from pure ATF and use ATF+optee on stm32mp1. I built it and it all went well until... this. I have no idea what its complaining about, I don't exactly understand the optee seeing I started on that about 3 hours ago
<Xogium> I/TC: Pager is enabled. Hashes: 2080 bytes
<Xogium> E/TC:0 0 init_runtime:464 Hash failed for page 0 at 0x29600000: res 0xffff000f
<Xogium> E/TC:0 0 Panic
<Xogium> anyone has any clue what this means ?
<Xogium> is it talking about pages as in pages in memory ?
<Xogium> fwiw I'm doing this because st gave up on maintaining ATF security framework and optee all at once
<Xogium> I'd ask the st community forum for help, but seeing as its not very usable with a screen reader... I try my luck on irc :D
haritz has quit [Remote host closed the connection]
<geertu> drewfustini: Probably we just need a way to create an i2c chardev that allows access to a specific set of one or more devices on the bus? I.e. the actual userspace API on the chardev would stay the same.
<geertu> In theory, you could even combine devices from multiple buses (real aggregation!), but then you need to remap addresses in case of conflicts, which has its own set of problems (i.e. when you need to write an i2c address to a specific register of an i2c device)
monstr has quit [Remote host closed the connection]
matthias_bgg has quit [Quit: Leaving]
guillaume_g has quit [Quit: Konversation terminated!]
headless has joined #armlinux
<drewfustini> geertu: I think that is a very interesting idea. I could see this being useful.
rvalue has quit [Ping timeout: 264 seconds]
rvalue has joined #armlinux
luispm has quit [Quit: Leaving]
apritzel has joined #armlinux
alexels has quit [Quit: WeeChat 3.5]
<arnd> geertu: I have a vague memory that the same thing came up when vireshk worked on the virtio-i2c backend
amitk_ has quit [Ping timeout: 268 seconds]
nsaenz has quit [Read error: Connection reset by peer]
apritzel has quit [Ping timeout: 268 seconds]
jeeeun has quit [Quit: The Lounge - https://thelounge.chat]
jeeeun has joined #armlinux
nsaenz has joined #armlinux
frieder has quit [Remote host closed the connection]
nsaenz has quit [Remote host closed the connection]
Nact has joined #armlinux
Nact has quit [Client Quit]
Amit_T has quit [Quit: Leaving]
Amit_T has joined #armlinux
Amit_T has quit [Client Quit]
Pali has joined #armlinux
iivanov has quit [Quit: Leaving...]
nsaenz has joined #armlinux
torez has joined #armlinux
headless has quit [Quit: Konversation terminated!]
russ has quit [Remote host closed the connection]
russ has joined #armlinux
nsaenz has quit [Quit: Leaving]
c1728p9 has quit [Quit: Leaving]
Pali has quit [Ping timeout: 248 seconds]
dliviu has quit [Ping timeout: 255 seconds]
dliviu has joined #armlinux
apritzel_ has joined #armlinux
torez has quit [Quit: torez]
djrscally has quit [Ping timeout: 264 seconds]