Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp675303pxa; Wed, 19 Aug 2020 11:41:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx38CNKlHKNhIrfFKEwmWVGh/3Q3bgEQLeQFqRCp2JpdKU23lG1LU8NOiqeVeVWM61VAjew X-Received: by 2002:a17:906:c187:: with SMTP id g7mr5822412ejz.108.1597862512185; Wed, 19 Aug 2020 11:41:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597862512; cv=none; d=google.com; s=arc-20160816; b=q+BXPuogTsaOVy9erEGDNJr4L8pfIOySiZnofeSvr89rwRJe6ECidgvGYeq8CiQLD4 aKkR3/J/Qqx6mq1Z9mjx6TomGobIj0mfLWlCrURSYpZYwA2D5rCZ4CLzG/uDyNw41kO+ QSf3XW6mT0NUqDm+486tBJwyEobwcmgAv7GsX5Jd0DfccTAyW0iHyhCON/cRVw9HEf/D bvyQcExA3I+Ty6NFLslaqi7+AtHyhHZS2P4h3vQrcp1mXkdwrlNKU0TJaSdoYK7r5lJD JASJCGCV9c6zV6EFdg8N7pzn18KTVM1nW4W8UUqXugje0qSlhrzqeaOAy78HXJOLXq8p VnRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=S1EUhordtUMjel9FzBtn8TtSvL9SVNZ9uwAnsm6qFvw=; b=gUsH5Q6WkHk27O7lgHE8H4dhVXJ7n0K89KOfGa7ypW3DMveow81/QOwodvRc1jrMS6 wxtgsefsDhBsfWo7KX3dM0R+KEgGA+Q0jaddSEEtb7I6yIsbrqDI/izSx5WErzThKOvb iDhHBUDSatvU8uX4WcXmIRtJkW4NJbyEu9Hf3TZlffL0fgn2EI9Nx+XDWvEvEIwEI1Ie 5mXjaiUqQ5QyoDD7Gw5U0XYWAGR5DWM+E331ub3C36UC04RKICRGD10FEAH3jPQ2MOO0 uDHB3cIrDk9qpCcoX0REBm/FFpY3EyK7d4yH3rpmIwCduDCXKAlWEJRTWSbAg9HGiX0y zsnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=e+mMmkTZ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ju13si15029080ejb.552.2020.08.19.11.41.27; Wed, 19 Aug 2020 11:41:52 -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=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=e+mMmkTZ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726697AbgHSSk1 (ORCPT + 99 others); Wed, 19 Aug 2020 14:40:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726211AbgHSSkZ (ORCPT ); Wed, 19 Aug 2020 14:40:25 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0875C061383 for ; Wed, 19 Aug 2020 11:40:25 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id mt12so1502499pjb.4 for ; Wed, 19 Aug 2020 11:40:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=S1EUhordtUMjel9FzBtn8TtSvL9SVNZ9uwAnsm6qFvw=; b=e+mMmkTZHdUnOzUeVKsZZ9CczIEu12TU8Kve2CC8dc6MqNmTEWTaZ348q66vWBSfQF GIklVGsrgvsTEi1Qo4eoBoX6yS36bEKuwLEDTe9RkBCSPbDnBBXP6W0qOW5001XEK0Qt BkCV9STVWZ3StfyFgDVToDTKDhXjLPEHSiqjoDG8SYkTzLcjxMH4/00xiBfEgzz2mUTW +JK9+Bh7w2UX6zSUKJnkIqT8hbNPAph1a/yxm3dqaYY30/wyoRpifLbnVPoVYkVOUGQD v7S+6t27MltFWBp/vody+r29b/EGImRaMm5d0kwzHa/ke2SzSzF7lV3zpxK7bhO/2nf2 6Emw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=S1EUhordtUMjel9FzBtn8TtSvL9SVNZ9uwAnsm6qFvw=; b=T86e2peUho7AjTqesw0xYfjt2ig7THvuu1YTHBKbQVEEh+8Olfsv7KunzJYmtk2G/R UGUms0XjIZZg/oHk2U5vFDuDeWxAULW+VpI/O7oidVy36eDoJCBXnx01X63o4sz7MTS7 43SpjUPrJsw09ePHTibQwWTSPcJlbcnoP1t6x6mNomRY/+Rytfqr6vTg8G7H7FCLkZUo H+Fw7DlvOt5yMNugIBomz2o51LnmWQkUE4OZe2ssg/6s3xqRcw0VOPQlijLvRG5z7/GF UWL3pInirfUoE2omirjsHroJXv8MXcRPmUoosdNIHBIUWUstWpquO+mRwyu477UGBRs6 iTGw== X-Gm-Message-State: AOAM531BEfp8YEET8GmoOU6AR5nhX8GHBHvRxHd4o8dVavX6NmHvp53z ahH+NRXErJx8g3O7p6QtSJSQng== X-Received: by 2002:a17:90a:ab96:: with SMTP id n22mr5132823pjq.52.1597862424863; Wed, 19 Aug 2020 11:40:24 -0700 (PDT) Received: from [192.168.1.182] ([66.219.217.173]) by smtp.gmail.com with ESMTPSA id y79sm28201877pfb.65.2020.08.19.11.40.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 19 Aug 2020 11:40:23 -0700 (PDT) Subject: Re: [PATCH v3] ata: use generic power management To: Vaibhav Gupta Cc: Bjorn Helgaas , Bjorn Helgaas , Bjorn Helgaas , Vaibhav Gupta , Bartlomiej Zolnierkiewicz , Kai-Heng Feng , Christoph Hellwig , "Gustavo A . R . Silva" , Hans de Goede , Mauro Carvalho Chehab , Prabhakar Kushwaha , Alex Shi , =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , Thomas Gleixner , Jiri Slaby , Sascha Hauer , Paul Gortmaker , Jia-Ju Bai , Javier Martinez Canillas , Zhang Rui , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, Shuah Khan References: <20200817092245.10478-1-vaibhavgupta40@gmail.com> <20200817092511.GA10566@gmail.com> <11190a0b-1009-caf8-9cbe-6cf296b614bf@kernel.dk> <20200818130329.GA39194@gmail.com> From: Jens Axboe Message-ID: Date: Wed, 19 Aug 2020 12:40:20 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200818130329.GA39194@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/18/20 6:03 AM, Vaibhav Gupta wrote: > On Mon, Aug 17, 2020 at 07:06:03AM -0700, Jens Axboe wrote: >> On 8/17/20 2:25 AM, Vaibhav Gupta wrote: >>> Hello, >>> >>> I am working to upgrade power management framework support for PCI drivers, as >>> my project under the Linux Kernel Mentorship Program. >>> >>> The ultimate goal is to completely remove the legacy framework. And for this we >>> need to remove ".suspend" and ".resume" pointers from "struct pci_driver". >>> >>> The patch is doing the change for the same. The actual suspend() and >>> resume() callbacks are defined in drivers/ata/libata-core.c and are exported. >>> Which are then used by other files. >>> >>> Thus removing those pointers, included 54 files in this patch. Although, the >>> actual changes are done in few files only. The changes should work fine as I >>> have done similar changes for other drivers too which made their way into the >>> kernel. Still, tests on few ata devices are necessary. >> >> Didn't we agree to split this up into separate patches?? >> >>> I tried but unfortunately, I couldn't find or arrange devices to test upon. I >>> have added the authors of the previous commit(s) for respective drivers as >>> recipients. It would be very helpful if someone can test it on a device. >> >> Does qemu support any of the affected drivers? >> > Hello Jens, > Yes we discussed about splitting it and I will surely do it. I just thought that > still it has not got tested and in that case keeping check on patch-series with > 55+ patches may become somewhat messy. Moreover, to test any driver one will > have to apply the patch for libata-core and then that of the driver. > So, I sent this v3 in order to get some help for the testing purpose. Once it > goes successful, I can split it and send it for the submission. > > I am not sure about qemu, I haven't checked for it. Qemu will be appropriate > for testing power management for .suspend() and .resume() callbacks? Well, that's your homework then, it seems pretty ideal for testing that kind of thing and way easier than getting your hands on hardware. It won't have support for everything, but so far you are at 0 things tested, so any piix and ahci testing would be a win as far as I'm concerned. -- Jens Axboe