From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 943EDCA9EA0 for ; Fri, 18 Oct 2019 07:21:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6AEE420820 for ; Fri, 18 Oct 2019 07:21:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1571383260; bh=wzsKD4UyUPUFZRgd7yjd6Cb2YQ0QA7QCUBb3Omjgi6E=; h=To:Subject:Date:From:Cc:In-Reply-To:References:List-ID:From; b=upVmME8qC5+TwSL216+k3DLUn0PtoTBb370c42uUU3/9TDA4fLnjauzLqMDNfFMb7 Z5a5rsMD8g2xR3m9wVft522pX9YIGkldFkh8WxAT71TClhvuLlbj2FlXo9Bh8aRPKz VMeZDufT0mtR+XyVdhdCib3mYmxbqltqFwT2chrc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727832AbfJRHVA (ORCPT ); Fri, 18 Oct 2019 03:21:00 -0400 Received: from inca-roads.misterjones.org ([213.251.177.50]:38292 "EHLO inca-roads.misterjones.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389963AbfJRHU7 (ORCPT ); Fri, 18 Oct 2019 03:20:59 -0400 Received: from www-data by cheepnis.misterjones.org with local (Exim 4.80) (envelope-from ) id 1iLMZE-0002Pk-F0; Fri, 18 Oct 2019 09:20:56 +0200 To: Stephen Boyd Subject: Re: Relax CPU features sanity checking on heterogeneous architectures X-PHP-Originating-Script: 0:main.inc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 18 Oct 2019 08:20:56 +0100 From: Marc Zyngier Cc: Sai Prakash Ranjan , Mark Rutland , , , , linux-arm-kernel , , , , , , , , , In-Reply-To: <5da8c868.1c69fb81.ae709.97ff@mx.google.com> References: <20191011105010.GA29364@lakrids.cambridge.arm.com> <7910f428bd96834c15fb56262f3c10f8@codeaurora.org> <20191011143442.515659f4@why> <5da8c868.1c69fb81.ae709.97ff@mx.google.com> Message-ID: X-Sender: maz@kernel.org User-Agent: Roundcube Webmail/0.7.2 X-SA-Exim-Connect-IP: X-SA-Exim-Rcpt-To: swboyd@chromium.org, saiprakash.ranjan@codeaurora.org, mark.rutland@arm.com, rnayak@codeaurora.org, suzuki.poulose@arm.com, catalin.marinas@arm.com, linux-arm-kernel-bounces@lists.infradead.org, linux-kernel@vger.kernel.org, jeremy.linton@arm.com, bjorn.andersson@linaro.org, linux-arm-msm@vger.kernel.org, andrew.murray@arm.com, will@kernel.org, dave.martin@arm.com, linux-arm-kernel@lists.infradead.org, marc.w.gonzalez@free.fr X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on cheepnis.misterjones.org); SAEximRunCond expanded to false Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On 2019-10-17 21:00, Stephen Boyd wrote: > Quoting Sai Prakash Ranjan (2019-10-11 06:40:13) >> On 2019-10-11 19:04, Marc Zyngier wrote: >> > On Fri, 11 Oct 2019 18:47:39 +0530 >> > Sai Prakash Ranjan wrote: >> > >> >> Hi Mark, >> >> >> >> Thanks a lot for the detailed explanations, I did have a look at >> all >> >> the variations before posting this. >> >> >> >> On 2019-10-11 16:20, Mark Rutland wrote: >> >> > Hi, >> >> > >> >> > On Fri, Oct 11, 2019 at 11:19:00AM +0530, Sai Prakash Ranjan >> wrote: >> >> >> On latest QCOM SoCs like SM8150 and SC7180 with big.LITTLE >> arch, below >> >> >> warnings are observed during bootup of big cpu cores. >> >> > >> >> > For reference, which CPUs are in those SoCs? >> >> > >> >> >> >> SM8150 is based on Cortex-A55(little cores) and Cortex-A76(big >> cores). >> >> I'm afraid I cannot give details about SC7180 yet. >> >> >> >> >> SM8150: >> >> >> >> [ 0.271177] CPU features: SANITY CHECK: Unexpected >> variation in >> >> >> SYS_ID_AA64PFR0_EL1. Boot CPU: 0x00000011112222, CPU4: >> >> 0x00000011111112 >> >> > >> >> > The differing fields are EL3, EL2, and EL1: the boot CPU >> supports >> >> > AArch64 and AArch32 at those exception levels, while the >> secondary only >> >> > supports AArch64. >> >> > >> >> > Do we handle this variation in KVM? >> >> >> >> We do not support KVM. >> > >> > Mainline does. You don't get to pick and choose what is supported >> or >> > not. >> > >> >> Ok thats good. >> > > I want KVM on sc7180. How do I get it? Is something going to not > work? If this SoC is anythinig like SM8150, 32bit guests will be hit and miss, depending on the CPU your guest runs on, or is migrated to. We need to either drop capabilities from the 32bit-capable CPU, or prevent the non-32bit capable CPU from booting if a 32bit guest has been started. You just have to hope that the kernel is entered at EL2, and that QC's "value add" has been moved somewhere else... M. -- Jazz is not dead. It just smells funny...