Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1343280ybi; Wed, 3 Jul 2019 14:00:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqz9V1oZPph3WNQdDZB5RqE3phfWiKP7+2iqb7sau2t2T1CmglbM6h98aM102z53AuQXpnnK X-Received: by 2002:a65:5248:: with SMTP id q8mr30249813pgp.259.1562187606031; Wed, 03 Jul 2019 14:00:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562187606; cv=none; d=google.com; s=arc-20160816; b=eJBXnCjMitqVZ/jr5P4ybRgy0iZU0SV1RZUGDAd6apHqt5nmVHW60oxOaOcgD8h5e1 46rcbQO/b87b92mOKItnQS/r8fzWEVmTC2P8HSJRZENJDbKvHKYzL8iDuy2ujylRsHCX KDqMtedeQsiNTHMBd8xVtzyAUMyIK6BJG6S95uBVCgS0onEjNA3hASMGEyAieIpL3k0u HnwQxiGIc4/bRSN2xxQ1mS0dm79YXaj6hg2PT1fLkKm/AqDB2OWdNpqTyEaYxNGextrA xB9oO1rYP6e9WR4T/L2bD/THo4NzjBn5m/8klvqbUrm2hnQfEbv2f0+pBeUaR3ZqsbPB iNrQ== ARC-Message-Signature: i=1; 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=+LGnDyzf1Nf9qX67cl5Ry+Kwov3oatuWiMcH3vAM3o4=; b=VceV9q3YNP31Yjv+22ZoQfvKlz7qzStP9pX+Q2BaS4AwwQbE1h4WO6/QA29gBVph/a dQ2mUYB0aP4iaOg25s9REzkUPLpD+oGAqrepuyX+Q6ajUp4YEMlCAOwJDF5hUBsRkhwg ry93dS9tQ72JdFVxN4NQsj+qIEJ2iOqrbxHkuXp/Zg9oIyYLktPlcVEaTBUxv0y7Liod TOlP1BscfSNmwpIlprFgyTBr9JU5AC/fyqO0XbVrz+oX+qYeUkuhoFQnD4v/SxUurBY/ NCV9g9N8SLojqmdt8gGwEq75N2gmEZyNbiyH3Ac+Gvm/FuoHblrJtn96n7EdtuzkGdvz cyJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=eygtER5t; 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 m6si2800040pjl.60.2019.07.03.13.59.50; Wed, 03 Jul 2019 14:00:06 -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=eygtER5t; 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 S1727100AbfGCU72 (ORCPT + 99 others); Wed, 3 Jul 2019 16:59:28 -0400 Received: from mail-eopbgr20069.outbound.protection.outlook.com ([40.107.2.69]:25882 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726550AbfGCU71 (ORCPT ); Wed, 3 Jul 2019 16:59:27 -0400 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=+LGnDyzf1Nf9qX67cl5Ry+Kwov3oatuWiMcH3vAM3o4=; b=eygtER5twLXpHb6oBDMihNF9QsBDIUO+9jaLnfkQCZLbtc1WXhcTqnGbZLyOccmCNZeY50l/mYSEJF5OUJXY2+egSilTQ2WrCt+LquDyd5h4V/8yUqH9ykw0d5AReNNDK1ba3CuSVePFarfdfC65CS41GQh0bPAbi2vdmdgkQIo= Received: from VE1PR04MB6463.eurprd04.prod.outlook.com (20.179.233.20) by VE1PR04MB6464.eurprd04.prod.outlook.com (20.179.233.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2032.20; Wed, 3 Jul 2019 20:59:24 +0000 Received: from VE1PR04MB6463.eurprd04.prod.outlook.com ([fe80::a5ca:7c9c:6b18:eb0a]) by VE1PR04MB6463.eurprd04.prod.outlook.com ([fe80::a5ca:7c9c:6b18:eb0a%6]) with mapi id 15.20.2032.019; Wed, 3 Jul 2019 20:59:24 +0000 From: Roy Pledge To: "linuxppc-dev@lists.ozlabs.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Leo Li CC: Roy Pledge Subject: [PATCH v2 0/7] soc/fsl/qbman: Enable Kexec for DPAA1 devices Thread-Topic: [PATCH v2 0/7] soc/fsl/qbman: Enable Kexec for DPAA1 devices Thread-Index: AQHVMeIxggwE/pgZKkC1gIn9RzIwTA== Date: Wed, 3 Jul 2019 20:59:24 +0000 Message-ID: <1562187548-32261-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: SN6PR15CA0005.namprd15.prod.outlook.com (2603:10b6:805:16::18) 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: 0b7775e0-3fb2-454b-2541-08d6fff95404 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:VE1PR04MB6464; x-ms-traffictypediagnostic: VE1PR04MB6464: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-forefront-prvs: 00872B689F x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(396003)(376002)(39860400002)(346002)(366004)(136003)(189003)(199004)(14454004)(2501003)(81156014)(81166006)(4326008)(478600001)(305945005)(8676002)(14444005)(2906002)(7736002)(50226002)(476003)(486006)(2616005)(25786009)(3450700001)(86362001)(2201001)(68736007)(44832011)(36756003)(66946007)(26005)(66476007)(66556008)(64756008)(73956011)(71200400001)(71190400001)(66066001)(53936002)(6116002)(52116002)(386003)(6506007)(66446008)(8936002)(256004)(102836004)(186003)(99286004)(6486002)(5660300002)(110136005)(316002)(3846002)(6436002)(43066004)(6512007)(6636002);DIR:OUT;SFP:1101;SCL:1;SRVR:VE1PR04MB6464;H:VE1PR04MB6463.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-message-info: kEgrJ/76lvuSbcdISeEYNOGofK4u6rhLdtPFgo8ujbzETNSWb5+E8qa5rpY7rsSiIn+XrRpaSzGiAeGUbqm9KH6jRiLJJB6AYe2Cfe040dD22Au+brdMfBhTXTpm7oJWyVnYmqUaN+Jhr1b/vCH5fk7TxwHrxWRTJPLAVNnL0XtnGe0xWLAlICaYF1k8ct6Xxg03WYPKjX2BV6u5EO9bJBh/PjcWwe63WLppquDHROGpVNn/rQ3HSbP0dqFTEvaj38bG5qoRu152CfM14EMIuL1n0LMLz7Ekf4ei87ksXEyh4hCWV4brO7/9eVnQEVK6qFUfbIGblgyJ0lUrC6SVwAz7GE+x8gaXqQEsbZQBb5NpxNFXvXg3P7N/ZWjH13aAKVpmvQobXjSkbv4RYAp98qZOdDdNy8Q+7OKsDxb2ev4= 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: 0b7775e0-3fb2-454b-2541-08d6fff95404 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jul 2019 20:59:24.4689 (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: VE1PR04MB6464 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 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 | 59 +++++++++++++++++++++++--- drivers/soc/fsl/qbman/qman_portal.c | 18 +++++++- drivers/soc/fsl/qbman/qman_priv.h | 8 ++++ 9 files changed, 246 insertions(+), 61 deletions(-) -- 2.7.4