Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2399932ybx; Fri, 8 Nov 2019 03:51:59 -0800 (PST) X-Google-Smtp-Source: APXvYqw4SNN4N1LMh0OtyWoBvlsThd5xnKD6fAgaw4V9dFRr7BmAvKvQlc0VxALNDfJ5xbJu3KdX X-Received: by 2002:a50:ac3c:: with SMTP id v57mr9438118edc.300.1573213919519; Fri, 08 Nov 2019 03:51:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1573213919; cv=pass; d=google.com; s=arc-20160816; b=Vtf/fFRHAFfnys2Wba3krmsjYPzmnDb+nSKpAicOAKufVSLn8bGPS0Zp1UOfekTZH0 1KEoG9Dg5HPUOvDiImjYyQ7+4GbX8WywHXUcFDjstqrtiUSG8JwoCZ3S364zzKRz/Diu 0lsAtjL5IGvv4fi9igD9fs0zmTpp4zD2YKehCfOb+yzohQybccgk2fL7PsSwW29V+zPm 0cLiOO0AivoZN/DT8tmvJ7nvKUX2T8CKNFKE6qi1RyLFF934AVQiIIhXLJvpORLRnnko xODIWmVzY5NSR/zmDd+7WGmrxkk7/33LcF73oUA73BlIAlEeZGRLDE8s1jmGD6rLcS05 MOFA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=AL85FRq6GUEqIb1S3M+p28VVKiAEQXD2TKbjWZ/rrpU=; b=lXNLhE/u1V35SXglWqpQlKi5Za769fRRvpuxEnDU2E3F71mKGqR3jyMDOGTuGZQdkO rZvg3bm/V9zZYtUx6LnbvnesX6y7b3sZ0S8goqU+ETWJ81nSRboSNmHr8mDnsohwASHc jPgqcqIghg1tHhn8Oj8lJWxen22XnZFm8ZbLpbimZgzpz+hmkgFDRj/9bhxA/+e1YNnO cNE8flbVS+uPC8dDm59rZsJZ3fmaCF2RTiA+R1ZOTbGz8HXOv9HLCToKOF5L6lMqBbJa RcSiHFE1aUhkHtBZQ8LYeCHr6qY9vEGFuOzbpeWuIL/JzWFxwPPnSeqZqGWkJqqQ07x4 E1QQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=OIN1MnEa; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d34si4022890eda.268.2019.11.08.03.51.35; Fri, 08 Nov 2019 03:51:59 -0800 (PST) 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; dkim=pass header.i=@nxp.com header.s=selector2 header.b=OIN1MnEa; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391088AbfKHLuK (ORCPT + 99 others); Fri, 8 Nov 2019 06:50:10 -0500 Received: from mail-eopbgr00080.outbound.protection.outlook.com ([40.107.0.80]:57742 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388183AbfKHLuI (ORCPT ); Fri, 8 Nov 2019 06:50:08 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CmXtum3KL9TtYMBGPjMXQ8vki1/K6GKQyfHttHzFp9jT2SZLU2EhQjieM+8pbiy9DkI8Ps4iwihUAut0TAKQ5nmxPsLnBHBXahmTYZ7nrgMetBcmwL+4rj5xBS51nYlvAr3eLla76VQ7vwBarw8mf4eDjYPlXtcJiYcV9xAX6tmE13FzK55ZJjTfOWi2qnEthpKbrQq6GMKdtubSyZeUqEWZrTtZLnZ5fZbjhDEMZ13l097Qce8a8Vt3cpq20Kf/g1rb3OC4xfbXMAdrNyoao4Gte99w+K6uPZokO+PzBXtpbejc8ElATaAdhpdV8wydMsn3ZcAFcQk/uY1lmdxP7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AL85FRq6GUEqIb1S3M+p28VVKiAEQXD2TKbjWZ/rrpU=; b=DRmuZ8Cxk+ymtvAEcYWky0crGWj7d5UO3J982WyBpJwf8U9DpMk7qON+6qQMU/zbDVRmmq62SdZ+1bg+OFeWqGaKtwP4Hzt+TfF9pEQhoAzNH/OqEOlUGUoSfYVF1L6JSCdv4jHluQnwS6HcVjUcooDeS8z0gmhfpeWxI3vY7ng+vxDJF2AC99pcYXMdkvw1yacTsME25n6T7qYiPjXx0l2FagYn3RoZnHb2sEGlIBMWFaid1Ah3U4H3UGsfpZ5pK3h9f+8Z0DqiqQrofaft91qCmGZd+L7yTqB5MkbJHSQHXVAHF5e2qyk/H/HdeCqj5jeXbK3PiaQrZRAJFmALzg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AL85FRq6GUEqIb1S3M+p28VVKiAEQXD2TKbjWZ/rrpU=; b=OIN1MnEa/03XoYLOVhMXk9g6J9pZaU/GiIyEgIMgp+U6ER/nRWxpABUGMssc2n0GZwHL0gcE0ZRDGW9YWmerfF3QSFm/y/AH0VZVbZDBN94NOaauT6EeWFSW6ETPSzYCwhR0OfFneP3ngljQGHZiOAovMBZzlQ/NOXhK5vb0X4g= Received: from AM0PR04MB5779.eurprd04.prod.outlook.com (20.178.202.151) by AM0PR04MB4241.eurprd04.prod.outlook.com (52.134.95.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2430.22; Fri, 8 Nov 2019 11:50:04 +0000 Received: from AM0PR04MB5779.eurprd04.prod.outlook.com ([fe80::fd44:1b14:587c:9fde]) by AM0PR04MB5779.eurprd04.prod.outlook.com ([fe80::fd44:1b14:587c:9fde%7]) with mapi id 15.20.2430.023; Fri, 8 Nov 2019 11:50:04 +0000 From: Abel Vesa To: Martin Kepplinger CC: Leonard Crestez , Lorenzo Pieralisi , Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Thomas Gleixner , Marc Zyngier , Lucas Stach , Jacky Bai , "devicetree@vger.kernel.org" , Carlo Caione , dl-linux-imx , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [RFC 0/2] Add workaround for core wake-up on IPI for i.MX8MQ Thread-Topic: [RFC 0/2] Add workaround for core wake-up on IPI for i.MX8MQ Thread-Index: AQHVH4Y/3naZJOmQTkOgrNdQmlNuA6eCDj6AgAAIBAA= Date: Fri, 8 Nov 2019 11:50:03 +0000 Message-ID: <20191108115002.cqzvpxydzwos64vp@fsr-ub1664-175> References: <20190610121346.15779-1-abel.vesa@nxp.com> <7d3a868a-768c-3cb1-c6d8-bf5fcd1ddd1c@posteo.de> <20191030080727.7pcvhd4466dproy4@fsr-ub1664-175> <523f92bd-7e89-b48a-afd0-0a9a8bca8344@posteo.de> <20191104103525.qjkxh2zhhgaaectk@fsr-ub1664-175> <433f3f03-f780-c327-f1e8-fbf046a8374c@posteo.de> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM0PR0102CA0048.eurprd01.prod.exchangelabs.com (2603:10a6:208::25) To AM0PR04MB5779.eurprd04.prod.outlook.com (2603:10a6:208:131::23) x-originating-ip: [89.37.124.34] authentication-results: spf=none (sender IP is ) smtp.mailfrom=abel.vesa@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 233d9d2a-fc1d-4147-444d-08d76441cb07 x-ms-traffictypediagnostic: AM0PR04MB4241:|AM0PR04MB4241: x-ms-exchange-purlcount: 4 x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 0215D7173F x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(7916004)(366004)(39860400002)(346002)(376002)(396003)(136003)(189003)(199004)(44832011)(6512007)(14454004)(966005)(33716001)(4326008)(7416002)(5660300002)(1076003)(6916009)(99286004)(6486002)(66476007)(229853002)(256004)(71200400001)(71190400001)(66946007)(66556008)(64756008)(66446008)(476003)(316002)(6506007)(102836004)(486006)(3846002)(53546011)(6116002)(11346002)(186003)(446003)(66066001)(386003)(2906002)(86362001)(6436002)(7736002)(81156014)(81166006)(8676002)(305945005)(8936002)(76176011)(9686003)(26005)(54906003)(52116002)(6246003)(478600001)(45080400002)(6306002)(25786009);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB4241;H:AM0PR04MB5779.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: YR6sLKvCr30/CW7DNPmTD6zABJHd3AIfojk0c2u/aqyVRBI3qHZDy+iP1JB1jJ+AgcmujVz3uGgYsGAMPb2fHJSeiiWd95IXzCKGnlInVjShGJNIAeLQT1WH+b8bZOSwsTgv/ZSzRknxPyhhtvFmawsVIxTI2BEc/GPMwpY3Lz9aZg8A35vj7tqt7Zm0Ve9aUH0br0dZd9k34wasHAQBdBBXTMctiR3oYjyJiSoMWPNBCopc/MwR4QA79EIBAhXoians6tXWoqWXelTQ2Zcx/NhEWnYQCIZhrNOch+UK2030svczBkEI7jg4qiwXjja7BM4q8tRKsnoBd5MM4gEdPtnXdDNKgWrMoLlyM5IE8yiPCqj6M3dLHwaefQfA2/3KUP8/DIL77LjH0g94EXstWOQuQm9vX/lz1XWwZ7SrEklcr71+jx7QuS/qDGRm7S+P4isIb/lxYmj4GblKGr8YjlcCt4h8wyKoMuYkksfVKY8= Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 233d9d2a-fc1d-4147-444d-08d76441cb07 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Nov 2019 11:50:04.0336 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: HMu6batiaO0ACAfzt3sKe4gyVKis40ODSw0tNEjJARWHDgRPNLdU5rNUjdJ18YAakLZ7iVpGogXqP1VyGq5eWg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4241 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19-11-08 12:21:21, Martin Kepplinger wrote: > Hi Leonard, hi Abel, >=20 > Thanks for having a look! To sum up this problem and not to get confused: >=20 > We have the workaround that changes irq-imx-gpcv2 from this very email > thread, to be used with mainline ATF. when applying Abel's recent diff, > Linux 5.4 boots but I still don't have a cpuidle driver. >=20 > When I enable CONFIG_ARM_PSCI_CPUIDLE, the kernel hangs during boot > (after probing mmc, but that doesn't tell much) >=20 > What do I miss? >=20 OK, please fetch the branches called "imx8mq-err11171" from both following = github repos and give it a try: https://github.com/abelvesa/linux.git and https://github.com/abelvesa/arm-trusted-firmware.git I just tested it. Works with defconfig. >=20 > Then (in parallel) we have NXP's ATF: > https://eur01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fsourc= e.codeaurora.org%2Fexternal%2Fimx%2Fimx-atf%2Flog%2F%3Fh%3Dimx_4.19.35_1.0.= 0&data=3D02%7C01%7Cabel.vesa%40nxp.com%7C0a5a09f616c84932e06d08d7643dcc= af%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637088088896134121&sdat= a=3Dtq0aUGawG%2FhRRXZB9jdIi2xSNGHINhbWM1ZpDKPFrqU%3D&reserved=3D0 > that I test in parallel (and will actually want to have cpuidle right > now too). The workaround in Linux in that case looks like so: > https://eur01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fsourc= e.codeaurora.org%2Fexternal%2Fimx%2Flinux-imx%2Fcommit%2F%3Fh%3Dimx_4.19.35= _1.0.0%26id%3D26a59057f88997dfe48ab7f81898ddd6b6d3903e&data=3D02%7C01%7= Cabel.vesa%40nxp.com%7C0a5a09f616c84932e06d08d7643dccaf%7C686ea1d3bc2b4c6fa= 92cd99c5c301635%7C0%7C0%7C637088088896134121&sdata=3DGqmtzpS8fB4bxmOXxT= NQZrWNCV18lNu7XpX5dmcAEaY%3D&reserved=3D0 > which changes irq-gic-v3 only. >=20 Forget about the NXP arm-trusted-firmware for now. It will never work with = mainline + the workaround patches. > Since 5.4, also no cpu-sleep state anymore. What would need to change in > that "NXP" case, for 5.4 to have cpuidle again? >=20 > When I enable ARM_PSCI_CPUIDLE here, right now Linux hangs during boot > (during probing sdhci but again that seems random). >=20 > I'm still happy for hints :) >=20 > Thanks, >=20 > martin >=20