From: Aaron Lu <aaron.lu@intel.com>
To: Chuansheng Liu <chuansheng.liu@intel.com>,
Tejun Heo <tj@kernel.org>,
"Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org,
mister.freeman@laposte.net, rui.zhang@intel.com,
Linux PCI <linux-pci@vger.kernel.org>
Subject: Re: [PATCH V2] ata: Disabling the async PM for JMicron chips
Date: Sun, 28 Sep 2014 13:54:31 +0800 [thread overview]
Message-ID: <5427A297.7050605@intel.com> (raw)
In-Reply-To: <1411543338-2257-1-git-send-email-chuansheng.liu@intel.com>
On 09/24/2014 03:22 PM, Chuansheng Liu wrote:
> Like the commit e6b7e41cdd8c ("ata: Disabling the async PM for JMicron chip 363/361"),
> Barto found the similar issue for JMicron chip 368, that 363/368 has no
> parent-children relationship, but they have the power dependency.
>
> So here we can exclude the JMicron chips out of pm_async method directly,
> to avoid further similar issues.
>
> Details in:
> https://bugzilla.kernel.org/show_bug.cgi?id=84861
I think we can disable the async PM for JMicron chips in PCI subsystem:
pci_pm_init, check if it is JMicron chip and then enable_async
accordingly. The problem doesn't have much to do with ATA, so move them
to PCI may be more appropriate.
Thanks,
Aaron
>
> Reported-and-tested-by: Barto <mister.freeman@laposte.net>
> Signed-off-by: Chuansheng Liu <chuansheng.liu@intel.com>
> ---
> drivers/ata/ahci.c | 11 +++++------
> drivers/ata/pata_jmicron.c | 11 +++++------
> 2 files changed, 10 insertions(+), 12 deletions(-)
>
> diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
> index a0cc0ed..85aa6ec 100644
> --- a/drivers/ata/ahci.c
> +++ b/drivers/ata/ahci.c
> @@ -1340,15 +1340,14 @@ static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
> ahci_pci_bar = AHCI_PCI_BAR_ENMOTUS;
>
> /*
> - * The JMicron chip 361/363 contains one SATA controller and one
> + * The JMicron chip 361/363/368 contains one SATA controller and one
> * PATA controller,for powering on these both controllers, we must
> * follow the sequence one by one, otherwise one of them can not be
> - * powered on successfully, so here we disable the async suspend
> - * method for these chips.
> + * powered on successfully.
> + * Here we can exclude the Jmicron family directly out of pm_async
> + * method to follow the power-on sequence.
> */
> - if (pdev->vendor == PCI_VENDOR_ID_JMICRON &&
> - (pdev->device == PCI_DEVICE_ID_JMICRON_JMB363 ||
> - pdev->device == PCI_DEVICE_ID_JMICRON_JMB361))
> + if (pdev->vendor == PCI_VENDOR_ID_JMICRON)
> device_disable_async_suspend(&pdev->dev);
>
> /* acquire resources */
> diff --git a/drivers/ata/pata_jmicron.c b/drivers/ata/pata_jmicron.c
> index 47e418b..1d685b6 100644
> --- a/drivers/ata/pata_jmicron.c
> +++ b/drivers/ata/pata_jmicron.c
> @@ -144,15 +144,14 @@ static int jmicron_init_one (struct pci_dev *pdev, const struct pci_device_id *i
> const struct ata_port_info *ppi[] = { &info, NULL };
>
> /*
> - * The JMicron chip 361/363 contains one SATA controller and one
> + * The JMicron chip 361/363/368 contains one SATA controller and one
> * PATA controller,for powering on these both controllers, we must
> * follow the sequence one by one, otherwise one of them can not be
> - * powered on successfully, so here we disable the async suspend
> - * method for these chips.
> + * powered on successfully.
> + * Here we can exclude the Jmicron family directly out of pm_async
> + * method to follow the power-on sequence.
> */
> - if (pdev->vendor == PCI_VENDOR_ID_JMICRON &&
> - (pdev->device == PCI_DEVICE_ID_JMICRON_JMB363 ||
> - pdev->device == PCI_DEVICE_ID_JMICRON_JMB361))
> + if (pdev->vendor == PCI_VENDOR_ID_JMICRON)
> device_disable_async_suspend(&pdev->dev);
>
> return ata_pci_bmdma_init_one(pdev, ppi, &jmicron_sht, NULL, 0);
>
parent reply other threads:[~2014-09-28 5:54 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <1411543338-2257-1-git-send-email-chuansheng.liu@intel.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5427A297.7050605@intel.com \
--to=aaron.lu@intel.com \
--cc=chuansheng.liu@intel.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=mister.freeman@laposte.net \
--cc=rjw@rjwysocki.net \
--cc=rui.zhang@intel.com \
--cc=tj@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).