Message ID | 20200708073556.19188-1-daniel.baluta@oss.nxp.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <SRS0=EHji=AT=lists.infradead.org=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 007FF13B4 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 8 Jul 2020 07:38:19 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CC11C2082F for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 8 Jul 2020 07:38:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="NCTYFk55"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="Jb7eEwXf" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CC11C2082F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=xjg0JQoi5eSOeDdWU8+0YV9sOtjbgvPU4LzNttzLPwk=; b=NCTYFk55IP0hAk6RC/IXgtuNMz R9j/glRAgLsI4jS5SYtjSh/3igpzEygAsNLt7dF5ZDjTwQPu8dVkuAmetyhGBjpInPvc/WfQUs8I6 d+YiDPr/sTOJWumqLZMGdapvwojUiQWKS1ADE0GAg5eu1sz2m7imkbVs3y9bRbpQuF+D7oDA7jY6s pED76ADEc3WkGR9bsIpp2qAQMrQZ8uzmUtEXOpr5FX4e1/e0iiNzsaQqvHN/2r0+9iFTWMfg/wyH8 TWeGiXjuEx2/H2mW9NPJC/Uad9r16PPKvkxbwrbWL11Kb9DMZFEWTo0lLTuxrtJnUR2ZKp0vP3BU5 0Ltweq4w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jt4d6-0008Nf-Pj; Wed, 08 Jul 2020 07:36:32 +0000 Received: from mail-eopbgr80045.outbound.protection.outlook.com ([40.107.8.45] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jt4d3-0008MC-Sh for linux-arm-kernel@lists.infradead.org; Wed, 08 Jul 2020 07:36:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BxU7wNCWix4amN1/fXoGuLPXtDzUuQ+KJsvKJPbl/ClNTgWKQ20RWNLhe8NS+uKIe5z7f7Fiz94vEv7HSfpCrrJOAgHAX16pKseid9aiTWp5Ufbg51CANSKy88NNq195UwrkseyP4oZHxrW+pu8YUlO6O6CjJzrkNONiEI1q0e86brn/Nbd5dfPx2aM3M9B3LZADoAdbrlxHboOguJH3R4DNpTblCUl2Okd07Q+t01CmD2VyIuAh8pK43BZ6/zRzpR648WcmoHofee0lhxh0arMLk9aeZXFpyYJg0RNAB5F1rvi1KUveqLQ9T4KrMSbDFZ7+IzA6SzuEOlgzRAntIg== 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=D/tQCY9BmXZiBaRvK6d/k6sIR9K6VNh8S6Y44ZYKJek=; b=PzEaSlNfyjRKMTQ5UA/Tjf+wi8aNKxJ4iZFiZtjJfhX/YPdn/WR/eTbJpTn7ibDukQ8B4qPwGRzBerTr5RugoC7Gsv7j3HAoN6rfk78KLdx/lUi/uhSxub4xPY8H1fLvRNxdo/Fdhp67AdZM2X4EPnvtG5/lRJzEpjMyD9IQSCk3T0dFsf2+8jzpxhrFUdH3K1SuP4zMYvAGUnNlTliQQY+Eed3YwsVL2UdGE6hi1/hYODt7P2DzaWinkPia/KOB7tRuDwXnhtZ3gpg8q90lNk/1giT3KsrheDmW9BPfKX3SAQEaQZjFgMjZqCUlQjAfokbrs9Z1VT0C+e9cQd1hwg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=D/tQCY9BmXZiBaRvK6d/k6sIR9K6VNh8S6Y44ZYKJek=; b=Jb7eEwXfYoAkL+6oGgTZau0s0ZveKvYyYV8tjAFONdm34W6iGJ72AFX0sBHtAgpNZvown6pqjN2A36UAZMz+222WoejWU68Qa9+0eaXYG0ACUx5wu1FSICwOPPFbAL7W3uCrW984KjJdTa9JzkZrRnyGJxHAyO47TtzOnuSlSmo= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=oss.nxp.com; Received: from VI1PR0401MB2287.eurprd04.prod.outlook.com (2603:10a6:800:2e::19) by VE1PR04MB6734.eurprd04.prod.outlook.com (2603:10a6:803:121::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.21; Wed, 8 Jul 2020 07:36:25 +0000 Received: from VI1PR0401MB2287.eurprd04.prod.outlook.com ([fe80::9d5c:685e:4b51:fa60]) by VI1PR0401MB2287.eurprd04.prod.outlook.com ([fe80::9d5c:685e:4b51:fa60%3]) with mapi id 15.20.3153.030; Wed, 8 Jul 2020 07:36:25 +0000 From: Daniel Baluta <daniel.baluta@oss.nxp.com> To: shawnguo@kernel.org, kernel@pengutronix.de Subject: [PATCH 0/3] Allow on demand channel request / free Date: Wed, 8 Jul 2020 10:35:53 +0300 Message-Id: <20200708073556.19188-1-daniel.baluta@oss.nxp.com> X-Mailer: git-send-email 2.17.1 X-ClientProxiedBy: AM0PR10CA0067.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:15::20) To VI1PR0401MB2287.eurprd04.prod.outlook.com (2603:10a6:800:2e::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from fsr-ub1864-103.ro-buh02.nxp.com (83.217.231.2) by AM0PR10CA0067.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:15::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.20 via Frontend Transport; Wed, 8 Jul 2020 07:36:24 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [83.217.231.2] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 9cc68e48-1c1b-4cb1-cac7-08d823119e37 X-MS-TrafficTypeDiagnostic: VE1PR04MB6734: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <VE1PR04MB6734215758F3865A9BBFC32FB8670@VE1PR04MB6734.eurprd04.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:6430; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2dRuZebSJmH8RRO0l3DgBXIj1n4b+dlp6Z9cz2oLoSR1x/e2VK2lRnPjgundYnoc13YRXnNkTFAEIUYUxQN43QQdRKnyQEhXKumRymmD6n770IVKtroqT/v1MnjmyILzo4PJzIX21wq7MTAFnk3nXEr5t4ZS9KMurhHFrD9q/mQmGd/S0kDBmLBxToQeFLV5j6JmEXhoZqiRYY7k3uAD9LldCX9F015DStjrJZ6mbH+8yKLwRrlykuvkYUwYDGNwUSsK6JIbzNu+8kK2tEF7VOWl82TdkBEYIQfpSmnVfcvMG8MORK0hcE+mooVluxEEdGBH1GFy31C8lpZ/Dp7g9w== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR0401MB2287.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(396003)(346002)(366004)(39860400002)(136003)(376002)(83380400001)(26005)(8936002)(4326008)(186003)(6512007)(16526019)(86362001)(8676002)(66476007)(66556008)(6506007)(6486002)(52116002)(478600001)(316002)(66946007)(1076003)(6666004)(4744005)(44832011)(956004)(2616005)(5660300002)(2906002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: JkQbv4D0dkacNvEtXxoNIPKlEAMkdkpv7o4yC+OFYINIXoUqmpwr8FxAn/f9Z/KACwSKkgjG6aeX9BevDo3gszDfjmSbrB7zAKd6Mn1SrA2PtX++f0uwn5MQ0UWwY6jl1srxtkuYQHq8ZK8h0qHiPqe7KUgo+mpmOkN5sB6XWoSP4Xj1dFjOLSEaO1FtDi/dhajVX5ucF8RughDfMmohAh59bF9aQbAgYBobMjemywM112nhfMipTNKENC8K08gj+ttRthuW2dMsVNXrTXb3jMBAiAOnqQkgOcwL54CuBZtHmLzoF+6TmUc8rh6eqaTNRFfY1zPwN+LLSLnCZwwriZpz3NJEdcR6auABKUjrHoz0JfObWy7jnKyXcrnLWDvUGbpFIihUjS19ASvRQjiPLEHRIDHtHrhq0QFh+otxw8ualj5gfVDbOs6ABYDketVBPvlfI6dBeBvlPPqW7RHw1XyS+j/8xoXg9rlKt0J6klU= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9cc68e48-1c1b-4cb1-cac7-08d823119e37 X-MS-Exchange-CrossTenant-AuthSource: VI1PR0401MB2287.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jul 2020 07:36:25.3255 (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: u9TUVKXUaMndanVmyKLWHnwDmBNZOWfxr0t0S55wk3nR1hmei8iFj+Q0c22dC9pD8WJGiaU7CMA0jEuepCgmFg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6734 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200708_033630_061622_3856E4F3 X-CRM114-Status: UNSURE ( 8.08 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [40.107.8.45 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.8.45 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: s.hauer@pengutronix.de, linux-kernel@vger.kernel.org, linux@rempel-privat.de, linux-imx@nxp.com, festevam@gmail.com, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org |
Series |
Allow on demand channel request / free
|
expand
|
From: Daniel Baluta <daniel.baluta@nxp.com> Requesting an mailbox channel will call mailbox's startup function. startup function calls pm_runtime_get_sync which increments device usage count and will keep the device active. Specifically, mailbox clock will be always ON when a mailbox channel is requested. For this, reason we introduce a way to request/free IMX DSP channels· on demand to save power when the channels are not used. First two patches are doing code refactoring preparing the path for 3rd patch which exports functions for on demand channel request/free Daniel Baluta (3): firmware: imx: Introduce imx_dsp_setup_channels firmware: imx: Save channel name for further use firmware: imx-dsp: Export functions to request/free channels drivers/firmware/imx/imx-dsp.c | 72 ++++++++++++++++++++++++-------- include/linux/firmware/imx/dsp.h | 10 +++++ 2 files changed, 64 insertions(+), 18 deletions(-)