Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1359441ybg; Fri, 18 Oct 2019 16:41:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqy8C9W1XmPoglfArzVQmjPAEtMl5NWL+GlRWmbFIc6zwCELDMgLrAAneQawV8kD+9BVfPr+ X-Received: by 2002:a17:906:7094:: with SMTP id b20mr11436186ejk.134.1571442085969; Fri, 18 Oct 2019 16:41:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571442085; cv=none; d=google.com; s=arc-20160816; b=TMLCyBveg6MVQV1oBgWfAtUUO5t9gYZ/NniurVDJMLRcEeoIHpNGBDuRH7Y3yFV1ZH s+q98ooQ9oJZo7DiHAazPt6coiKtGMmt9sn2L4wqdgA/raRDzSg7xpQUJmxezJstrBdc JKQTBZbg4QOyLa7iPZA+egYdJCMpE31MDHjfeD96xZnA4A3j4qJK0gy83cSd+vkSwrL+ VATUWHMfsjwwGvhsnZHQ3tIWrMrE5G2PnsyzQLygpulnF31mMUlTY39zfM4k4d/4V17u b5BzHz/1OIpb1ScK0dHi9wkw6xVjvi7ebVJeeLGPnzG+HseMEsyAIt+7J73QoxmtQjVQ 0NJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:cc:from:date:content-transfer-encoding:mime-version :subject:to; bh=gbRDBH+R31BzItUtFPNvF4+hRlpON2Uia4vjXP2L6G8=; b=uWjX/3tVQN6LOVH4cWkwvnOWK11X4toJelaE45Z5RXPAf/xxQvPRsG9kcJlE/e4sTg uKrx3f76v91/vUlBzPpUITS+Xwi6fnIqBSP67/KMd77pkkzIbdoJsoLX6lChRekPslGx WW8h6+ojhZ5XzyAE4Oc+MU2bEhsdVDSqtDhh+rbIpMsnafDfiL0mbqudwFnpVwYF7vL3 dGNISVpLADOJ4P0ljLLP8Af8FHgJ8koXW2bQb0KNIuIkbdQ208Db3V+0GG2KdJn0Jd9o F9b18Skc4+7INyw0/k3Vqx20bd37/yQO1wnl7f08f2vvbbg6c1DTZ/Jta/Ca7hlGs6i1 olBQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qn24si4637764ejb.200.2019.10.18.16.41.02; Fri, 18 Oct 2019 16:41:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390893AbfJRHVA (ORCPT + 99 others); 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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...