[PATCH] arm64/kvm: Fix zapping stage2 page table wrongly

2020-08-21 Thread Gavin Shan
Depending on the kernel configuration, PUD_SIZE could be equal to PMD_SIZE. For example, both of them are 512MB with the following kernel configuration. In this case, both PUD and PMD are folded to PGD. CONFIG_ARM64_64K_PAGES y CONFIG_ARM64_VA_BITS 42 CONFIG_PGTABLE_LEVELS2

Re: [PATCH v4 0/3] Cortex-A77 erratum 1508412 workaround

2020-08-21 Thread Catalin Marinas
On Mon, 3 Aug 2020 13:31:24 -0600, Rob Herring wrote: > This series implements the work-around for Cortex-A77 erratum 1508412. > KVM guests which don't implement the workaround can still deadlock the > system. This is also the case with the existing Cortex-A57 erratum 832075, > so we add a warning

Re: [PATCH v4 3/3] arm64: Add workaround for Arm Cortex-A77 erratum 1508412

2020-08-21 Thread Catalin Marinas
On Fri, Aug 21, 2020 at 06:02:39PM +0100, Marc Zyngier wrote: > On 2020-08-21 15:05, Catalin Marinas wrote: > > On Fri, Aug 21, 2020 at 01:45:40PM +0100, Marc Zyngier wrote: > > > On 2020-08-21 13:26, Catalin Marinas wrote: > > > > On Fri, Aug 21, 2020 at 01:12:10PM +0100, Will Deacon wrote: > > >

Re: [PATCH stable v4.9 v2] arm64: entry: Place an SB sequence following an ERET instruction

2020-08-21 Thread Florian Fainelli
On 8/21/20 9:03 AM, Will Deacon wrote: > On Fri, Aug 07, 2020 at 03:14:29PM +0200, Greg KH wrote: >> On Thu, Aug 06, 2020 at 01:00:54PM -0700, Florian Fainelli wrote: >>> >>> >>> On 7/20/2020 11:26 AM, Florian Fainelli wrote: On 7/20/20 6:04 AM, Greg KH wrote: > On Thu, Jul 09, 2020 at

Re: [PATCH v4 3/3] arm64: Add workaround for Arm Cortex-A77 erratum 1508412

2020-08-21 Thread Marc Zyngier
On 2020-08-21 15:05, Catalin Marinas wrote: On Fri, Aug 21, 2020 at 01:45:40PM +0100, Marc Zyngier wrote: On 2020-08-21 13:26, Catalin Marinas wrote: > On Fri, Aug 21, 2020 at 01:12:10PM +0100, Will Deacon wrote: > > On Fri, Aug 21, 2020 at 01:07:00PM +0100, Catalin Marinas wrote: > > > On Mon,

Re: [PATCH stable v4.9 v2] arm64: entry: Place an SB sequence following an ERET instruction

2020-08-21 Thread Will Deacon
On Fri, Aug 07, 2020 at 03:14:29PM +0200, Greg KH wrote: > On Thu, Aug 06, 2020 at 01:00:54PM -0700, Florian Fainelli wrote: > > > > > > On 7/20/2020 11:26 AM, Florian Fainelli wrote: > > > On 7/20/20 6:04 AM, Greg KH wrote: > > >> On Thu, Jul 09, 2020 at 12:50:23PM -0700, Florian Fainelli

Re: [PATCH v4 3/3] arm64: Add workaround for Arm Cortex-A77 erratum 1508412

2020-08-21 Thread Catalin Marinas
On Fri, Aug 21, 2020 at 01:45:40PM +0100, Marc Zyngier wrote: > On 2020-08-21 13:26, Catalin Marinas wrote: > > On Fri, Aug 21, 2020 at 01:12:10PM +0100, Will Deacon wrote: > > > On Fri, Aug 21, 2020 at 01:07:00PM +0100, Catalin Marinas wrote: > > > > On Mon, Aug 03, 2020 at 01:31:27PM -0600, Rob

Re: [PATCH v2 0/6] KVM: arm64: pvtime: Fixes and a new cap

2020-08-21 Thread Marc Zyngier
On 2020-08-19 13:50, Andrew Jones wrote: On Tue, Aug 04, 2020 at 07:05:58PM +0200, Andrew Jones wrote: v2: - ARM_SMCCC_HV_PV_TIME_FEATURES now also returns SMCCC_RET_NOT_SUPPORTED when steal time is not supported - Added READ_ONCE() for the run_delay read - Reworked

Re: [PATCH v4 3/3] arm64: Add workaround for Arm Cortex-A77 erratum 1508412

2020-08-21 Thread Marc Zyngier
On 2020-08-21 13:26, Catalin Marinas wrote: On Fri, Aug 21, 2020 at 01:12:10PM +0100, Will Deacon wrote: On Fri, Aug 21, 2020 at 01:07:00PM +0100, Catalin Marinas wrote: > On Mon, Aug 03, 2020 at 01:31:27PM -0600, Rob Herring wrote: > > @@ -979,6 +980,14 @@ > >

Re: [PATCH v4 3/3] arm64: Add workaround for Arm Cortex-A77 erratum 1508412

2020-08-21 Thread Catalin Marinas
On Fri, Aug 21, 2020 at 01:12:10PM +0100, Will Deacon wrote: > On Fri, Aug 21, 2020 at 01:07:00PM +0100, Catalin Marinas wrote: > > On Mon, Aug 03, 2020 at 01:31:27PM -0600, Rob Herring wrote: > > > @@ -979,6 +980,14 @@ > > > write_sysreg(__scs_new, sysreg);\ > >

Re: [PATCH v4 3/3] arm64: Add workaround for Arm Cortex-A77 erratum 1508412

2020-08-21 Thread Will Deacon
On Fri, Aug 21, 2020 at 01:07:00PM +0100, Catalin Marinas wrote: > On Mon, Aug 03, 2020 at 01:31:27PM -0600, Rob Herring wrote: > > @@ -979,6 +980,14 @@ > > write_sysreg(__scs_new, sysreg);\ > > } while (0) > > > > +#define read_sysreg_par() ({

Re: [PATCH v4 3/3] arm64: Add workaround for Arm Cortex-A77 erratum 1508412

2020-08-21 Thread Catalin Marinas
On Mon, Aug 03, 2020 at 01:31:27PM -0600, Rob Herring wrote: > @@ -979,6 +980,14 @@ > write_sysreg(__scs_new, sysreg);\ > } while (0) > > +#define read_sysreg_par() ({ \ > + u64 par;

Re: [PATCH v4 0/3] Cortex-A77 erratum 1508412 workaround

2020-08-21 Thread Will Deacon
On Mon, Aug 03, 2020 at 01:31:24PM -0600, Rob Herring wrote: > This series implements the work-around for Cortex-A77 erratum 1508412. > KVM guests which don't implement the workaround can still deadlock the > system. This is also the case with the existing Cortex-A57 erratum 832075, > so we add a