From patchwork Wed Jul 25 22:26:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 10544873 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0AEEF1822 for ; Wed, 25 Jul 2018 22:26:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E2599285CC for ; Wed, 25 Jul 2018 22:26:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D5F0D2A9FC; Wed, 25 Jul 2018 22:26:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 73B3F285CC for ; Wed, 25 Jul 2018 22:26:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731328AbeGYXjw (ORCPT ); Wed, 25 Jul 2018 19:39:52 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:33909 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731174AbeGYXjw (ORCPT ); Wed, 25 Jul 2018 19:39:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1532557568; x=1564093568; h=from:to:cc:subject:date:message-id; bh=w4rv/nAy6H6hZmEGuaqoZNGzVfslue+cEPNrZy0TBwQ=; b=LOTEgU50WTlwL73qw067T7j56p8cBvFOyQRTe1CXafC1tS8fco3Jf1o4 XDiJiW1JPIotbLnoTb/E9PjdBvyvzK1z2J5KjcIZSXQqI3N0tx9hiIoDy SvLoRyouPn4Y8ont5bpz/IStYZNcQXNT30PpeDQ0ACLYQjiVgAUp9WDJL JVbendcLJMz+adQVRNKGl1gB1mcZy/RZc/P9BCMBhNZ/Dsr/5I6oK+3ri 21Nr4zqh5bOoNHgSPcZ3iNerPLqfNJ3VBUBwk+4AMbalTolT6+TZV5AGO 2FH2c1Ll915aLQienWHhgJTIRwscl7Kg2/N+8PVNGuwjLoXRjt6LQlDa3 g==; X-IronPort-AV: E=Sophos;i="5.51,402,1526313600"; d="scan'208";a="84987662" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 26 Jul 2018 06:26:07 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP; 25 Jul 2018 15:14:44 -0700 Received: from thinkpad-bart.sdcorp.global.sandisk.com ([10.111.67.248]) by uls-op-cesaip02.wdc.com with ESMTP; 25 Jul 2018 15:26:07 -0700 From: Bart Van Assche To: Jens Axboe Cc: linux-block@vger.kernel.org, Christoph Hellwig , Bart Van Assche Subject: [PATCH v2 0/5] blk-mq: Enable runtime power management Date: Wed, 25 Jul 2018 15:26:02 -0700 Message-Id: <20180725222607.8854-1-bart.vanassche@wdc.com> X-Mailer: git-send-email 2.18.0 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hello Jens, This patch series not only enables runtime power management for blk-mq but also simplifies power management for the legacy block layer. Please consider this patch series for kernel v4.19. Thanks, Bart. Changes compared to v1: - Moved the runtime power management code into a separate file. - Addressed Ming's feedback. Bart Van Assche (5): block: Fix a comment in a header file block: Move power management functions into new source files block: Serialize queue freezing and blk_pre_runtime_suspend() block, scsi: Rework runtime power management blk-mq: Enable support for runtime power management block/Makefile | 1 + block/blk-core.c | 237 ++++---------------------------------- block/blk-mq-debugfs.c | 1 - block/blk-mq.c | 3 + block/blk-pm.c | 235 +++++++++++++++++++++++++++++++++++++ block/elevator.c | 11 +- drivers/scsi/scsi_pm.c | 1 + drivers/scsi/sd.c | 5 +- drivers/scsi/sr.c | 1 + drivers/scsi/ufs/ufshcd.c | 10 +- include/linux/blk-pm.h | 28 +++++ include/linux/blkdev.h | 36 ++---- 12 files changed, 309 insertions(+), 260 deletions(-) create mode 100644 block/blk-pm.c create mode 100644 include/linux/blk-pm.h