Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7410768pxb; Thu, 18 Feb 2021 09:21:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJzaGIXFedIzwoH6G6DycV8pRiZ/RFk39e9uC+9eIWZT+GorXlH0UWMrxnHcDr0o7hqPJxGO X-Received: by 2002:a17:906:5905:: with SMTP id h5mr3371211ejq.531.1613668875483; Thu, 18 Feb 2021 09:21:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613668875; cv=none; d=google.com; s=arc-20160816; b=ezFy2pUCwFe7cUNPO2gpXz9S6PHeV+1VKqQdfeFVknLmV6bsFRhyRkBz/rtPzmNtlX uLSHiZkzAw2uIK5pc+n9X/FfqV++Z0WkBcbc1qajJOKG51hbVAmwa9ParwsTpIlfMLlZ NBQREy7AxfMPYD1mjPS9WK8Qz6bEu3ypbHaztVYabm3Hurkzs4RoFXCTBZk6n3ed8ou3 rz6zaYzr07PykHhGFYCjyvtrbIoXbYkZYX/wBXZS2z82wpSViDelkPpIfTkf+SJOcANl jeY9keX1YGaSLe880dS2Ef1AldC1h7Ju+I66bBSE2YwZeVWOJkd02FBqkxjloNgiKKVL ej9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=ktyrTtzXRwccREqgiUT+7P2Of2FKdKsec4L463eWa0s=; b=dvExFbemjR7LNrjbZS/R3WjiUahWRFsoL1on43VyO4W1rpC1M8IMa02KWbWdrg26PP ncqOON2B7v8V0Dq0KkXPndAC4o+mJl1bmUBWZdS9nb0BH87ggl/0prluug/QYo1S4wG1 mt+ZOk8tg4iXchJobHbMPGlAOLOnDQLYB8ZvxtX8cbL1dNZPJACFbeQa3Nt57teUP6Vb xPQcaNUegBV5q8xjpJC4MpTfShWYd86AXpcEz5rdnqaQj/aJ4gEok0zTd1lCij617HFg 9RZEMIzZ2c+A8yMCDq2yjx2J5PC1v3uMOgjwCxZpvJOmrWfaU8N5wlZ7CHpg6WrNQ/K8 2sCQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jg13si5070706ejc.661.2021.02.18.09.20.37; Thu, 18 Feb 2021 09:21:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234083AbhBRRSN (ORCPT + 99 others); Thu, 18 Feb 2021 12:18:13 -0500 Received: from foss.arm.com ([217.140.110.172]:51814 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231486AbhBROhp (ORCPT ); Thu, 18 Feb 2021 09:37:45 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6652DED1; Thu, 18 Feb 2021 06:36:50 -0800 (PST) Received: from C02TD0UTHF1T.local (unknown [10.57.48.237]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 823063F73B; Thu, 18 Feb 2021 06:36:47 -0800 (PST) Date: Thu, 18 Feb 2021 14:36:44 +0000 From: Mark Rutland To: Hector Martin Cc: linux-arm-kernel@lists.infradead.org, Marc Zyngier , Rob Herring , Arnd Bergmann , Olof Johansson , Krzysztof Kozlowski , Mark Kettenis , Tony Lindgren , Mohamed Mediouni , Stan Skowronek , Alexander Graf , Will Deacon , Linus Walleij , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 00/25] Apple M1 SoC platform bring-up Message-ID: <20210218143644.GC89209@C02TD0UTHF1T.local> References: <20210215121713.57687-1-marcan@marcan.st> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210215121713.57687-1-marcan@marcan.st> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 15, 2021 at 09:16:48PM +0900, Hector Martin wrote: > This series brings up initial support for the Apple M1 SoC, used in the > 2020 Mac Mini, MacBook Pro, and MacBook Air models. > > The following features are supported in this initial port: > > - UART (samsung-style) with earlycon support > - Interrupts, including affinity and IPIs (Apple Interrupt Controller) > - SMP (through standard spin-table support) > - simplefb-based framebuffer > - Devicetree for the Mac Mini (should work for the others too at this > stage) IIUC, the CPUs in these parts have some IMP-DEF instructions that can be used at EL0 which might have some IMP-DEF state. Our general expectation is that FW should configure such things to trap, but I don't know whether the M1 FW does that, and I fear that this will end up being a problem for us -- even if that doesn't affect EL1/EL2, IMP-DEF state is an interesting covert channel between EL0 tasks, and not generally safe to use thanks to context-switch and idle, so I'd like to make sure we can catch usage and make it SIGILL. Do you happen to know whether all of that is configured to trap, and if not, is it possible to adjust the bootloader to ensure it is? Thanks, Mark.