Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp348623ybi; Thu, 1 Aug 2019 20:21:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqzHmG6CbGI1OhxfWxN7zcI8BC+JbChI5gt4HhgEdhPXvHsKxKmXfzcvp4YK6qdsL8ehwy7D X-Received: by 2002:a65:5043:: with SMTP id k3mr65568814pgo.406.1564716084538; Thu, 01 Aug 2019 20:21:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1564716084; cv=pass; d=google.com; s=arc-20160816; b=DEaFcvjFYopSK7S0gX0zzoV64dvHWceo5KbZ7KLMNVKyV+caTE1pcnjerFqw5qW/zX 9VDdrHgLVbfLTzwLPjv9sBCxhxWHMl6pbEWd1VMetKSRymS2trb8SU0K2xQddddGfxyT RvXGR7QxA9eW8fiFIaoaCVIGqFFapG+nfLKT0lLcJReJQ6PQ8y01JouFUrdqSq+XuJE3 voxn+Ha5qVNSalcZqVoYB9Cr/lqi9EERr95WJHVdV4K8u9CqYAIUruCQ6ubu+k+sunIL MFpHbAl4aDei7Y+fkyjUwmvybSho2LWKhPW+J9FT5Brr3jP4YibU8zmlIFe/JHytvOSB k1xg== 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-language:accept-language:reply-to:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=+c8eba/7+zK9KeiLM1wja1jJCEoM9hBau2vZcoh/bng=; b=mwieHm9kwCCjqMMv00v4My17I1Qata+gTgr829XtkV3q04q1OdwootsNSB/QqpqZNn FA1MDIjpEFcKT8Gub83SpIBdfGzqB8qnukpeMTIuAemS4ySPAjpmJ2URP1IUUAmTAGSM ovCMtuEA7D8rGajowPZl1prhdW86J82IhL2rBQI/6+PasopXMtvT2Uv3/imbCVEafe6C 5g6dsz3YTEveMY7t9H53VDW8l/S5SgxGg/e/T/IF7AW9NeKSm6fPsGZhpodhL3vGhvMp AIcamnoi2tou9Vlr7uXfoV7jhdg9Hb69jPMxg6hjwqi1otIV7e5t5mKxTTwY2cbnU7IP +BBQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=BlFIny+X; 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 n13si34521382plp.354.2019.08.01.20.20.54; Thu, 01 Aug 2019 20:21:24 -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; dkim=pass header.i=@nxp.com header.s=selector2 header.b=BlFIny+X; 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 S1731003AbfHAUQz (ORCPT + 99 others); Thu, 1 Aug 2019 16:16:55 -0400 Received: from mail-eopbgr60061.outbound.protection.outlook.com ([40.107.6.61]:62694 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725846AbfHAUQz (ORCPT ); Thu, 1 Aug 2019 16:16:55 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PFNUq0uMt8re0+5oGbRsonbNmCaUQAkZkdW++20Q3goVm2bQ0dgy5TT0pCNwCGMAUykwaVj6R1Mc3yx17UW4WfdcV7dOnDt0OYVIn1Pfq39wAnpdcl2+z2V5zgkXnqOH5cZzSegqGrCFMsZuUKmTBTzWgemlEBXhmBALQQZHIrD5zkCdD6EVEl6V2c98Ti7zVa8iTtdnuZcRQYTJaQ8Lf3lWNGlDRuGQjqUMxnEGud6Gyb26J++v52HOaLBQsT/QMjW5M+OyLk0EBzjmot3ZIstKmzTcEmkM5xDD1ttLpBPWvch072u4vKwmtarn23utw9U2h1yqVXkJplB3tFeAAQ== 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=+c8eba/7+zK9KeiLM1wja1jJCEoM9hBau2vZcoh/bng=; b=TGSBf40xYfvXXQcH743eyT05Clpzbb4caYAP1Ic+YlvW3KrjIxavk2o5BK7XcvgNqRivkATqsq5GWTe6J0nwMAJfrcctd/m7OsSlgPLOYIJSBGYIowHOrsEg1WStQHcxVCTMssxkv0RFS4AsrJpcLnrVsGAy9jU+10aVGZIwyrIiIoS0DMmypIe6g7YkMpJqY1MZLevXSkqSN8Zr6pm8o/JOzPKo2ZAmOy1z2w/AfHcajrQFGGS9j2XbAjTorY4tjU9vXxF+vcKzXq0cB/lNN/CFfJRgL5eg2HCrVhP05clLnTQcvbT2N2ffoLaFUBJLKvcV5/fkBY4esJ3+7Gxf5g== 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=+c8eba/7+zK9KeiLM1wja1jJCEoM9hBau2vZcoh/bng=; b=BlFIny+XXagZiQ0j8l8EIZil7/1VzVmAfpTwmRMHPbSSP3OEee/xWtWK8n/hqAUmarFntQUxm+gLZK+a0KrdO49IjLHTK7O5u4csEzFNufV6HRogkN6nMtMjSljGsXxntBsWy1HqgwitPCKdYVFs86evX4zHBssPtgfxRHFt5Ww= Received: from VE1PR04MB6463.eurprd04.prod.outlook.com (20.179.233.20) by VE1PR04MB6656.eurprd04.prod.outlook.com (20.179.235.95) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2115.10; Thu, 1 Aug 2019 20:16:51 +0000 Received: from VE1PR04MB6463.eurprd04.prod.outlook.com ([fe80::8fc:e04c:fbb6:4f1f]) by VE1PR04MB6463.eurprd04.prod.outlook.com ([fe80::8fc:e04c:fbb6:4f1f%7]) with mapi id 15.20.2115.005; Thu, 1 Aug 2019 20:16:51 +0000 From: Roy Pledge To: "linuxppc-dev@lists.ozlabs.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Leo Li CC: Madalin-cristian Bucur , Laurentiu Tudor , Roy Pledge Subject: [PATCH v3 0/7] soc/fsl/qbman: Enable Kexec for DPAA1 devices Thread-Topic: [PATCH v3 0/7] soc/fsl/qbman: Enable Kexec for DPAA1 devices Thread-Index: AQHVSKYODnCIih9n4EOgU6xobSGIUg== Date: Thu, 1 Aug 2019 20:16:51 +0000 Message-ID: <1564690599-29713-1-git-send-email-roy.pledge@nxp.com> Reply-To: Roy Pledge Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: SN4PR0501CA0130.namprd05.prod.outlook.com (2603:10b6:803:42::47) To VE1PR04MB6463.eurprd04.prod.outlook.com (2603:10a6:803:11d::20) authentication-results: spf=none (sender IP is ) smtp.mailfrom=roy.pledge@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [72.142.119.78] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 91705b0e-ca8f-4591-d3c3-08d716bd3060 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:VE1PR04MB6656; x-ms-traffictypediagnostic: VE1PR04MB6656: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 01165471DB x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(39860400002)(346002)(136003)(376002)(396003)(366004)(199004)(189003)(386003)(6506007)(305945005)(7736002)(71200400001)(71190400001)(68736007)(14454004)(36756003)(54906003)(316002)(110136005)(6116002)(3846002)(486006)(186003)(66066001)(6436002)(256004)(26005)(2201001)(6636002)(3450700001)(44832011)(6486002)(102836004)(2906002)(14444005)(476003)(2616005)(50226002)(64756008)(66446008)(66476007)(25786009)(81166006)(66946007)(52116002)(5660300002)(478600001)(66556008)(8676002)(86362001)(81156014)(8936002)(99286004)(6512007)(4326008)(2501003)(53936002)(43066004);DIR:OUT;SFP:1101;SCL:1;SRVR:VE1PR04MB6656;H:VE1PR04MB6463.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: C3h1bfOQuots1/tWB5YHjdBTOOMGutwnW45AsaNYyPXg+L9W5NAGlNchD6HJbPtSQnhKf5UyiBsONjuUsS3xSljHBYc2yPNdT+na5TR21ET89dDkqHjzBxp+Wjs2d4VEMS2+OVuK9mnS5D9W8vHXbHJrLapjavl0qUXOb10v3U1lTVb0u5rgG8rlB9Xwxnb3mX0HsfeUDemz9pPKoGeIBNSqFNf1z0mfgCsgQUVIjyFsXFmgvGwcofeOIchERMnXdXygdBxqfKDyLaYuaHuMRGndnCjE2jxcVn0i8/YsL52I3nLx3cE0o01/dfzjnDyJIrS7wsgvJeADazLRKXeHu2pZF/5c2SVGejDwJ5p5IfQ6y3PcAz467r1aXtkjWnCRDmvSXXGXTlBBNwiw5s02jDmnt2F0oiV2uQdWKllbFMo= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 91705b0e-ca8f-4591-d3c3-08d716bd3060 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Aug 2019 20:16:51.4615 (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: roy.pledge@nxp.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6656 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Most DPAA1 devices do not support a soft reset which is an issue if Kexec starts a new kernel. This patch series allows Kexec to function by detecting that the QBMan device was previously initialized. The patches fix some issues with device cleanup as well as ensuring that the location of the QBMan private memories has not changed after the execution of the Kexec. Changes since v1: - Removed a bug fix and sent it separately to ease backporting Changes since v2: - Expliciitly flush FQD memory from cache on PPC before unmapping Roy Pledge (7): soc/fsl/qbman: Rework QBMan private memory setup soc/fsl/qbman: Cleanup buffer pools if BMan was initialized prior to bootup soc/fsl/qbman: Cleanup QMan queues if device was already initialized soc/fsl/qbman: Fix drain_mr_fqni() soc/fsl/qbman: Disable interrupts during portal recovery soc/fsl/qbman: Fixup qman_shutdown_fq() soc/fsl/qbman: Update device tree with reserved memory drivers/soc/fsl/qbman/bman.c | 17 ++++---- drivers/soc/fsl/qbman/bman_ccsr.c | 36 +++++++++++++++- drivers/soc/fsl/qbman/bman_portal.c | 18 +++++++- drivers/soc/fsl/qbman/bman_priv.h | 5 +++ drivers/soc/fsl/qbman/dpaa_sys.c | 63 ++++++++++++++++------------ drivers/soc/fsl/qbman/qman.c | 83 +++++++++++++++++++++++++++++----= ---- drivers/soc/fsl/qbman/qman_ccsr.c | 68 +++++++++++++++++++++++++++--- drivers/soc/fsl/qbman/qman_portal.c | 18 +++++++- drivers/soc/fsl/qbman/qman_priv.h | 8 ++++ 9 files changed, 255 insertions(+), 61 deletions(-) -- 2.7.4