Re: [PATCH v4] target/ppc: fix Hash64 MMU update of PTE bit R

2021-12-01 Thread Leandro Lupori
On 01/12/2021 04:51, Cédric Le Goater wrote: The ISO is too big for quick tests. Isn't there a minimum initrd ? can we build a builroot-like image for FreeBSD ? FreeBSD doesn't use initrd. Its bootloader loads kernel modules directly from disk (unfortunately, it doesn't work on PowerNV).

Re: [PATCH v4] target/ppc: fix Hash64 MMU update of PTE bit R

2021-11-30 Thread Cédric Le Goater
On 11/30/21 21:00, Leandro Lupori wrote: On 30/11/2021 05:44, Cédric Le Goater wrote: It would be interesting to boot directly the PowerNV machine from a FreeBSB kernel and a minimum inirtd without using the skiroot images and an iso. Are images available ? AFAIK there are no minimum initrd

Re: [PATCH v4] target/ppc: fix Hash64 MMU update of PTE bit R

2021-11-30 Thread David Gibson
On Tue, Nov 30, 2021 at 09:44:58AM +0100, Cédric le Goater wrote: > On 11/30/21 01:30, David Gibson wrote: > > On Mon, Nov 29, 2021 at 03:57:51PM -0300, Leandro Lupori wrote: > > > When updating the R bit of a PTE, the Hash64 MMU was using a wrong byte > > > offset, causing the first byte of the

Re: [PATCH v4] target/ppc: fix Hash64 MMU update of PTE bit R

2021-11-30 Thread Leandro Lupori
On 30/11/2021 05:44, Cédric Le Goater wrote: It would be interesting to boot directly the PowerNV machine from a FreeBSB kernel and a minimum inirtd without using the skiroot images and an iso. Are images available ? AFAIK there are no minimum initrd images available. The closest thing would

Re: [PATCH v4] target/ppc: fix Hash64 MMU update of PTE bit R

2021-11-30 Thread Cédric Le Goater
On 11/30/21 01:30, David Gibson wrote: On Mon, Nov 29, 2021 at 03:57:51PM -0300, Leandro Lupori wrote: When updating the R bit of a PTE, the Hash64 MMU was using a wrong byte offset, causing the first byte of the adjacent PTE to be corrupted. This caused a panic when booting FreeBSD, using the

Re: [PATCH v4] target/ppc: fix Hash64 MMU update of PTE bit R

2021-11-29 Thread David Gibson
On Mon, Nov 29, 2021 at 03:57:51PM -0300, Leandro Lupori wrote: > When updating the R bit of a PTE, the Hash64 MMU was using a wrong byte > offset, causing the first byte of the adjacent PTE to be corrupted. > This caused a panic when booting FreeBSD, using the Hash MMU. > > Fixes: a2dd4e83e76b

[PATCH v4] target/ppc: fix Hash64 MMU update of PTE bit R

2021-11-29 Thread Leandro Lupori
When updating the R bit of a PTE, the Hash64 MMU was using a wrong byte offset, causing the first byte of the adjacent PTE to be corrupted. This caused a panic when booting FreeBSD, using the Hash MMU. Fixes: a2dd4e83e76b ("ppc/hash64: Rework R and C bit updates") Signed-off-by: Leandro Lupori