Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1579071ybh; Tue, 14 Jul 2020 01:21:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaV2MblanqWkniDJ1PNejUdUcjTXohRWc4SR1fzUQqK1Dv2iCcWLei6Vs0GIZAe16sFXYr X-Received: by 2002:a17:906:7387:: with SMTP id f7mr3268517ejl.131.1594714915530; Tue, 14 Jul 2020 01:21:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594714915; cv=none; d=google.com; s=arc-20160816; b=Z0HwvpAt/v0cUgq9jSMuzMVVNxBHJXs0uASRmZiTgs8H+A1lFEqO8Hpw1D7mM1xrYH ymIjk7Rgg4RuPZ1cwuW5TzdpnqG+Docy2kvjJAFE4OY31b8br+WSlHUFRrtX16IvlRa/ hwx5EFDmUMpz8pkWFYpm8n870XOPEBKQ3cj9+AWwXp44e9xy18bgMZg/w4STf3WS8Izn CXMHVlZpSepqly8XOrYa14e+h8Is1mZ0FQJUw5xtYmbcUaf9z+gjJO+JEoAp/mBNGqQV hgDFwbWu5xIao17PInVy3SY1XdHupQUb2ZcPnoUn2kfJg9dp3OGdUeL/EVRPKKZohaET CXiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:cc:to:subject:dkim-signature :dkim-filter; bh=3W48R5JZdOlotY4kDUq6GDCqsDBg3zDBeQZwRffH5cQ=; b=Mvu68Y5YzhEFvt1tky8ZMst1vvaHE51fB/wjxz1lFy3KOXit1gcit6+XxbV67C+9NP USHIqg7S3wjA5Kbtm/IC4aXJ02Va+5sQ6GGl0jpy1R6T8aWq4zLv0NnmHpKtvBkwFIxS FcGymR6YTqd0WvtD8XsgHBFT9gmR9tKpmnEKETZsn8VPMg00cwCL1Vhtj4O6Bt+kbYwt psa6E0VTbVDmep0SLhk8DkjCLJQ3T4c+abAPOcfGf1p7xnSoV6wsBeOLWrHsWGuaXpMa HtoB0BkYYRZLwCwOXNO196lG1YPJIGZISB1ySC5sdLqF2LhUVhr0N+AGuu7ociuQTnBt PT6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=hRaITEAB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h28si11194223edj.267.2020.07.14.01.21.32; Tue, 14 Jul 2020 01:21:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=hRaITEAB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725952AbgGNITL (ORCPT + 99 others); Tue, 14 Jul 2020 04:19:11 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:56916 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725793AbgGNITK (ORCPT ); Tue, 14 Jul 2020 04:19:10 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200714081907euoutp017f5f7628846aa179090d2e19f13b5743~hkJ0koa--3155031550euoutp01F for ; Tue, 14 Jul 2020 08:19:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200714081907euoutp017f5f7628846aa179090d2e19f13b5743~hkJ0koa--3155031550euoutp01F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1594714747; bh=3W48R5JZdOlotY4kDUq6GDCqsDBg3zDBeQZwRffH5cQ=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=hRaITEABU3SBPZEGubCdXFsCDoUyWDD7rOB02/zLfRreB8ulARj898kR7N2NpM323 A/10w0hCCieJgnIcQlR/VMZj7YUKvoT18f+6MheJsmIdX40Odqy42AvwQkKMHtsVxU NDTn9lADp4CDjKbIJWus38iTd1uKTHzKfluajA/E= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200714081907eucas1p282d94245ef1c7790fa31b2383110eb27~hkJ0WjwWm2453224532eucas1p2T; Tue, 14 Jul 2020 08:19:07 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id D2.29.06318.B7A6D0F5; Tue, 14 Jul 2020 09:19:07 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200714081906eucas1p2da1533c2e4e8983bb42b20199dc1f977~hkJz17urA2902729027eucas1p2I; Tue, 14 Jul 2020 08:19:06 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200714081906eusmtrp1546fb7b152d27cdb0d5186fda9460044~hkJz1S4Oo2221422214eusmtrp10; Tue, 14 Jul 2020 08:19:06 +0000 (GMT) X-AuditID: cbfec7f5-38bff700000018ae-4c-5f0d6a7b0c0a Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 31.A4.06017.A7A6D0F5; Tue, 14 Jul 2020 09:19:06 +0100 (BST) Received: from [106.120.51.71] (unknown [106.120.51.71]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200714081906eusmtip2f23c200b846080fe8f5e3023cef37df5~hkJzT_jxK0594905949eusmtip2X; Tue, 14 Jul 2020 08:19:06 +0000 (GMT) Subject: Re: [PATCH v3 0/3] drivers: ide: use generic power management To: Vaibhav Gupta Cc: Vaibhav Gupta , Bjorn Helgaas , Bjorn Helgaas , bjorn@helgaas.com, "David S. Miller" , linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, skhan@linuxfoundation.org, linux-ide@vger.kernel.org From: Bartlomiej Zolnierkiewicz Message-ID: <834eb293-bd4f-626c-4558-fbf71a5999f0@samsung.com> Date: Tue, 14 Jul 2020 10:19:06 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20200714075247.GA4859@gmail.com> Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA02SbUhTYRTHeXbv7q7LK4/T2Kkka9A7aWXIpUIqQuaX3ijSyGzlbZabxa6z rC+lsekQ1CyspWUyX0krMVtWFlOUnJlSiG5qokKmDiWN3pbmdpX89nvO+f+f/zlwaELWIl5O n0tK5nRJKo2CkpJ1zb/aN189z8RtGRtbylrSEtjrnzsRW/DhBsmOtlVRbLN1UMSahkZI9mN9 AcW+zi8Vs9beTBFreTUh3i1V1lb0iJQvzH0SZVGNXlln6yKVNZWZlPJN4SOJ8s/PPKScqll5 kD4u3RXPac6lcLrQiFPShJHqenRxaPXl8ZxJ8hrqXmZCPjTg7WCdzBeZkJSW4XIEPSUPkfCY RtBidFAelQxPIRjrWL/g6CvsnXeUIchyOQhB5EJw+1eqhwNwJLRVu0kPB+LNYGgwUh4Dgd+I wP20C3kaFN4BucZKLzM4Atx3Z71pJF4Dt2ayvbwUR8O3gUaxoPGHd3eHvZ/64BBwPP3i1RBY Do7hByKBg+G5q4DwhAHul4CpJE8sjL0PqiyDlMABMNpSKxE4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kwut09nScEG9KYmVValF+fFFpTmrx IUZToOcmMkuJJucDE0leSbyhqaG5haWhubG5sZmFkjhvh8DBGCGB9MSS1OzU1ILUIpg+Jg5O qQbGvYt4i63iCxtUzJfocCrzuVyS+2C8duNVvzP2Wr+nPVumuVtG8O0F3g3Wn7Z2v1/4maO1 2aA4RGJ+FiffhEU2Nysc23dlNbU8mhpo/YBlr1tkE/Mel+ioq99eGFbWHj29ne/W28U/Mk0v FApuOLfqXIOxXPyaM8+7tpXHlOzpkTe4FqpYW5GmxFKckWioxVxUnAgA/LvsgewCAAA= X-CMS-MailID: 20200714081906eucas1p2da1533c2e4e8983bb42b20199dc1f977 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200714073256eucas1p13ebe9585c29b766e48506400ba91a8ed X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200714073256eucas1p13ebe9585c29b766e48506400ba91a8ed References: <20200713173613.2095-1-vaibhavgupta40@gmail.com> <3b26bfff-7a42-7bbe-2050-51fe1ce96d4e@samsung.com> <20200714075247.GA4859@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/14/20 9:52 AM, Vaibhav Gupta wrote: > On Tue, Jul 14, 2020 at 09:32:56AM +0200, Bartlomiej Zolnierkiewicz wrote: >> >> Hi, >> >> On 7/13/20 7:36 PM, Vaibhav Gupta wrote: >>> Linux Kernel Mentee: Remove Legacy Power Management. >>> >>> The purpose of this patch series is to remove legacy power management callbacks >>> from ide drivers. >>> >>> The suspend() and resume() callbacks operations are still invoking >>> pci_save/restore_state(), pci_set_power_state(), pci_enable/disable_state(), >>> etc. and handling the power management themselves, which is not recommended. >>> >>> The conversion requires the removal of the those function calls and change the >>> callback definition accordingly and make use of dev_pm_ops structure. >> >> IDE subsystem (drivers/ide/) is deprecated and has been superseded by libata >> subsystem (drivers/ata/). >> >> libata drivers have the same issue so please concentrate on fixing them >> first. Later (if desirable) changes can be back-ported to drivers/ide/. >> > Hello, (drivers/ide) and (drivers/ata) are the two major families, I am working > on, for generic PM upgradation. I was bit unaware about priority, and also in > the last, both ide and ata drivers have to be upgraded. Well, drivers/ide/ is scheduled for removal in 2021 (it even prints the warning during initialization of every host driver).. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics >>> All patches are compile-tested only. >> >> This patchset needs (at least) some basic testing. It should be easier with >> libata subsystem as it also support SATA controllers and devices. > To upgrade PM in (drivers/ide) I have made .suspend() and .resume() static. Then > bind them in "struct dev_pm_ops" variable (ide_pci_pm_ops) and expose it using > EXPORT_SYMBOL_GPL(). This has affected 30 drivers. I was hoping if ide changes > can be tested/verified, specially [PATCH 1/3]. As then, I will be sure about > similar change in ata, as it also requires similar alteration. > > Thanks > Vaibhav Gupta > >> >> Best regards, >> -- >> Bartlomiej Zolnierkiewicz >> Samsung R&D Institute Poland >> Samsung Electronics >> >>> v3: >>> - Modpost error for undefined reference by Kbuild in v1. >>> - Another approach to disable PM in drivers/ide/triflex.c suggested by >>> Bjorn Helgaas in v2. >>> >>> Test tools: >>> - Compiler: gcc (GCC) 10.1.0 >>> - allmodconfig build: make -j$(nproc) W=1 all >>> >>> Vaibhav Gupta (3): >>> ide: use generic power management >>> ide: sc1200: use generic power management >>> ide: delkin_cb: use generic power management >>> >>> drivers/ide/aec62xx.c | 3 +-- >>> drivers/ide/alim15x3.c | 3 +-- >>> drivers/ide/amd74xx.c | 3 +-- >>> drivers/ide/atiixp.c | 3 +-- >>> drivers/ide/cmd64x.c | 3 +-- >>> drivers/ide/cs5520.c | 3 +-- >>> drivers/ide/cs5530.c | 3 +-- >>> drivers/ide/cs5535.c | 3 +-- >>> drivers/ide/cs5536.c | 3 +-- >>> drivers/ide/cy82c693.c | 3 +-- >>> drivers/ide/delkin_cb.c | 32 +++++--------------------- >>> drivers/ide/hpt366.c | 3 +-- >>> drivers/ide/ide-pci-generic.c | 3 +-- >>> drivers/ide/it8172.c | 3 +-- >>> drivers/ide/it8213.c | 3 +-- >>> drivers/ide/it821x.c | 3 +-- >>> drivers/ide/jmicron.c | 3 +-- >>> drivers/ide/ns87415.c | 3 +-- >>> drivers/ide/opti621.c | 3 +-- >>> drivers/ide/pdc202xx_new.c | 3 +-- >>> drivers/ide/pdc202xx_old.c | 3 +-- >>> drivers/ide/piix.c | 3 +-- >>> drivers/ide/sc1200.c | 43 ++++++++++++----------------------- >>> drivers/ide/serverworks.c | 3 +-- >>> drivers/ide/setup-pci.c | 29 +++++------------------ >>> drivers/ide/siimage.c | 3 +-- >>> drivers/ide/sis5513.c | 3 +-- >>> drivers/ide/sl82c105.c | 3 +-- >>> drivers/ide/slc90e66.c | 3 +-- >>> drivers/ide/triflex.c | 24 +++++++------------ >>> drivers/ide/via82cxxx.c | 3 +-- >>> include/linux/ide.h | 8 +------ >>> 32 files changed, 62 insertions(+), 155 deletions(-) >>> >> > >