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
heat has quit [Ping timeout: 265 seconds]
apritzel has quit [Ping timeout: 240 seconds]
<HdkR> `arm-smmu arm-smmu.0.auto: Unhandled context fault: fsr=0x402, iova=0x2080000100, fsynr=0x20040, cbfrsynra=0x4000, cb=0`
<HdkR> Hm, LX2K is pretty unhappy with latest Ubuntu Server image
alpernebbi has quit [Ping timeout: 276 seconds]
alpernebbi has joined #armlinux
jclsn has quit [Ping timeout: 248 seconds]
jclsn has joined #armlinux
amitk_ has joined #armlinux
amitk_ has quit [Ping timeout: 250 seconds]
m5zs7k has quit [Ping timeout: 265 seconds]
m5zs7k has joined #armlinux
matthias_bgg has quit [Ping timeout: 265 seconds]
iivanov has joined #armlinux
monstr has joined #armlinux
apritzel has joined #armlinux
cbeznea has joined #armlinux
macromorgan is now known as Guest3670
Guest3670 has quit [Killed (calcium.libera.chat (Nickname regained by services))]
macromorgan has joined #armlinux
apritzel has quit [Ping timeout: 248 seconds]
frieder has joined #armlinux
sszy has joined #armlinux
<ukleinek> HdkR: there is a kernel parameter to disable smmu restrictions which might help (but of course is wrong)
bps has joined #armlinux
bps has joined #armlinux
bps has quit [Changing host]
<HdkR> ukleinek: Sadly that workaround makes the smmu faults go away but it doesn't fix the broken PCIe fabric
jn has quit [Ping timeout: 265 seconds]
jn has joined #armlinux
jn has joined #armlinux
headless has joined #armlinux
hanetzer has quit [Ping timeout: 276 seconds]
luispm has quit [Quit: Leaving]
<lag> Does anyone have a quick recipe / script they use to get an Arm/Arm64 system booting in QEMU?
hanetzer has joined #armlinux
<lag> Or at least a defconfig / *.dts that I can build / edit / boot?
<lag> TL;DR: I'm trying to debug mailbox-test and I need to boot any system that uses DT as its platform registration mechanism (since Mailbox only supports DT)
prabhakarlad has joined #armlinux
matthias_bgg has joined #armlinux
apritzel has joined #armlinux
<mrutland> lag: You can boot with defconfig & mach-virt using "-machine dumpdtb=dump.dtb" to have qemu dump the DTB it would use, then hack that, and pass it with "-dtb hacked.dtb"
<mrutland> e.g. for arm64 I could use 'qemu-system-aarch64 -m 2048 -smp 1 -nographic -no-reboot --accel tcg -machine virt,gic-version=3 -cpu cortex-a53 -net nic -net user,host=10.0.2.10 -kernel /home/mark/src/linux/arch/arm64/boot/Image -append "loglevel=9 earlycon=pl011,0x9000000 console=ttyAMA0" -machine dumpdtb=foo.dtb'
<mrutland> (with defconfig)
<lag> mrutland: Then use `dtc` to unccompile the DTB?
<mrutland> lag: yeah, the u-boot docs link has an example
<mrutland> generally, that'll be something like 'dtc -I dtb -O dts dump.dtb' to decompile
<lag> mrutland: I looked it up from my old notes - so far, so good - thanks Mark
<mrutland> lag: np; good luck!
<lag> mrutland: Ta :thumb
luispm has joined #armlinux
tomeu has quit [Read error: Connection reset by peer]
shoragan[m] has quit [Write error: Connection reset by peer]
mvaittin has quit [Read error: Connection reset by peer]
a3f has quit [Read error: Connection reset by peer]
patersonc[m] has quit [Read error: Connection reset by peer]
psydroid has quit [Write error: Connection reset by peer]
amstan has quit [Write error: Connection reset by peer]
matthiasbgg[m] has quit [Write error: Connection reset by peer]
psydroid has joined #armlinux
psydroid has quit [Read error: Connection reset by peer]
matthias_bgg has quit [Quit: Leaving]
<lag> mrutland: What do you use for a rootfs? I only see MTD partitions
<lag> Even with `-device virtio-scsi-pci,id=scsi -device scsi-hd,bus=scsi.0,drive=d0 -drive file=stretch-amd64.img,format=raw,if=none,id=d0`
<lag> I assume these are x86 devices - what's the Arm64 equiv?
psydroid has joined #armlinux
matthias_bgg has joined #armlinux
<lag> (ignore the fact that the rootfs is amd64 - I'm just feeding it *something* for the time being)
shoragan[m] has joined #armlinux
amstan has joined #armlinux
<broonie> lag: virtio should work the same everywhere.
a3f has joined #armlinux
mvaittin has joined #armlinux
matthiasbgg[m] has joined #armlinux
patersonc[m] has joined #armlinux
tomeu has joined #armlinux
<lag> VFS: Cannot open root device "sda1" or unknown-block(0,0): error -6
<lag> 1f00 131072 mtdblock0
<lag> Please append a correct "root=" boot option; here are the available partitions:
<lag> (driver?)
bps has quit [Ping timeout: 276 seconds]
<mrutland> lag: sorry, I'd usually pass 'qemu-system-aarch64 -m 2048 -smp 1 -nographic -no-reboot --accel tcg -machine virt,gic-version=3 -cpu max,pauth-impdef=true -hda rootfs/aarch64le-pacret+bti.ext4 -snapshot -net nic -net user,host=10.0.2.10 -kernel /home/mark/src/linux/arch/arm64/boot/Image -append loglevel=9 panic=-1 earlycon=pl011,0x9000000 rcutree.sysrq_rcu=1 console=ttyAMA0 root=/dev/vda rw" --- so
<mrutland> virtio
<mrutland> so '-hda <path_to_rootfx.ext4_or_whatever' and '-append "root=/dev/vda rw"'
<mrutland> that '<' shouldn't be there
Amit_T has joined #armlinux
<mrutland> I built my ext4 image with buildroot, so it's just a single file with the ext4 partition
<lag> mrutland: Okay, I'll try to hunt down something similar - thanks
* broonie uses a yocto image to similar effect (and if you're using buildroot/yocto often you can just use an initramfs and not worry about the disk).
<arnd> lag: see also the instructions at http://cdn.kernel.org/pub/linux/kernel/people/will/docs/qemu/qemu-arm64-howto.html for a more detailed example. It's very similar to mrutland's command line but contains a few more flags that are generally helpful here
<broonie> note that the virtualisation stuff needs you to turn SME off if you're going to run a guest since qemu is buggy.
<arnd> lag: another way to get started quickly with a customizable qemu instance is debian's "debvm" tool that lets you create a bootable instance in a single command
<lag> arnd: Looks similar to how Dan Thompson handles his: https://github.com/daniel-thompson/vm-o-matic/blob/main/mk/arm64.mk
<lag> broonie: "virtualisation stuff"?
<broonie> lag: In Will's instructions that Arnd linked above
<lag> broonie: Rgr
prabhakarlad has quit [Quit: Client closed]
tomeu has quit [Ping timeout: 265 seconds]
a3f has quit [Ping timeout: 265 seconds]
amstan has quit [Ping timeout: 248 seconds]
patersonc[m] has quit [Ping timeout: 246 seconds]
mvaittin has quit [Ping timeout: 260 seconds]
psydroid has quit [Ping timeout: 252 seconds]
matthiasbgg[m] has quit [Ping timeout: 265 seconds]
shoragan[m] has quit [Ping timeout: 256 seconds]
mvaittin has joined #armlinux
patersonc[m] has joined #armlinux
a3f has joined #armlinux
tomeu has joined #armlinux
amstan has joined #armlinux
prabhakarlad has joined #armlinux
bps has joined #armlinux
bps has quit [Changing host]
bps has joined #armlinux
shoragan[m] has joined #armlinux
psydroid has joined #armlinux
matthiasbgg[m] has joined #armlinux
tomeu has quit [Remote host closed the connection]
mvaittin has quit [Read error: Connection reset by peer]
amstan has quit [Remote host closed the connection]
patersonc[m] has quit [Read error: Connection reset by peer]
shoragan[m] has quit [Write error: Connection reset by peer]
psydroid has quit [Write error: Connection reset by peer]
matthiasbgg[m] has quit [Remote host closed the connection]
a3f has quit [Write error: Broken pipe]
psydroid has joined #armlinux
amstan has joined #armlinux
shoragan[m] has joined #armlinux
a3f has joined #armlinux
mvaittin has joined #armlinux
patersonc[m] has joined #armlinux
matthiasbgg[m] has joined #armlinux
tomeu has joined #armlinux
headless has quit [Quit: Konversation terminated!]
matthias_bgg has quit [Ping timeout: 264 seconds]
DynamiteDan has quit [Excess Flood]
<arnd> ardb: With CONFIG_NEON=y and CONFIG_KERNEL_MODE_NEON=n, I get "(.text+0x4): undefined reference to `vfp_entry'" on today's linux-next
DynamiteDan has joined #armlinux
matthias_bgg has joined #armlinux
<ardb> arnd: yeah my bad
<ardb> rmk pulled a fix for that yesterday
<arnd> ok, I'll just put a workaround in my tree and not worry about it then.
<arnd> ardb: I also get "arch/arm/vfp/vfpmodule.c:657:17: warning: no previous prototype for function 'vfp_entry' [-Wmissing-prototypes]"
<arnd> I have a local patch series to turn that warning on by default and fix up all the existing warnings, so at the moment, nobody else would see these
<ardb> right
<ardb> vfp_entry should be asmlinkage
<ardb> and that should imply no warning imho
<arnd> no, unfortunately not. I have not found a way to shut up the warning for asmlinkage functions, and instead tried to find an appropriate header file for each one
<ardb> is this the compiler? or sparse?
<arnd> both actually
<arnd> you get it from sparse with 'make C=1' or from the compiler with 'make W=1'
torez has joined #armlinux
cbeznea has quit [Ping timeout: 276 seconds]
matthias_bgg has quit [Ping timeout: 246 seconds]
<arnd> [florian]: I think 889390f83d4e ("arm: bcmbca: Move BCM63138 ARCH_BCM_63XX to ARCH_BCMBCA") broke the L2 cache on that platform by removing the DT match and l2c_aux_val default. Can you confirm?
matthias_bgg has joined #armlinux
elastic_dog has joined #armlinux
monstr has quit [Remote host closed the connection]
<arnd> narmstrong: same thing for mdm9615, though this one never had the l2c_aux_val set
nsaenz has joined #armlinux
nsaenz has quit [Quit: Leaving]
hanetzer has quit [Ping timeout: 250 seconds]
hanetzer has joined #armlinux
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #armlinux
jn has quit [Remote host closed the connection]
jn has joined #armlinux
jn has joined #armlinux
headless has joined #armlinux
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
bps has quit [Ping timeout: 240 seconds]
heat has joined #armlinux
heat has quit [Remote host closed the connection]
heat has joined #armlinux
luispm has quit [Quit: Leaving]
frieder has quit [Ping timeout: 252 seconds]
apritzel has quit [Ping timeout: 240 seconds]
matthias_bgg has quit [Quit: Leaving]
bjdooks has quit [Ping timeout: 246 seconds]
bjdooks has joined #armlinux
xvmt has quit [Remote host closed the connection]
torez has quit [Quit: torez]
<[florian]> arnd: I pointed that out during the internal review, but was told that this was not supposed to be necessary anymore
<[florian]> arnd: given sufficiently new bootloader and/or DT
<arnd> [florian]: I think the Cortex-A9 L2 cache is one of the things we don't fully probe just from DT, unlike e.g. the smp_ops
<[florian]> arnd: yes, you are right, let me go back to William
<arnd> ok, thanks
cbeznea has joined #armlinux
apritzel has joined #armlinux
Amit_T has quit [Quit: Leaving]
cbeznea has quit [Quit: Leaving.]
bps has joined #armlinux
bps has joined #armlinux
bps has quit [Changing host]
prabhakarlad has quit [Quit: Client closed]
prabhakarlad has joined #armlinux
headless has quit [Quit: Konversation terminated!]
iivanov has quit [Ping timeout: 240 seconds]
nsaenz has joined #armlinux
bps has quit [Remote host closed the connection]
nsaenz has quit [Client Quit]
prabhakarlad has quit [Quit: Client closed]