From: Andreas Werner <andreas.werner@men.de>
To: Tejun Heo <tj@kernel.org>
Cc: Andreas Werner <andreas.werner@men.de>,
<linux-kernel@vger.kernel.org>, <linux-ide@vger.kernel.org>,
Hannes Reinecke <hare@suse.com>,
"Martin K. Petersen" <martin.petersen@oracle.com>
Subject: Re: libata-core: devslp fails on ATP mSATA
Date: Thu, 3 Dec 2015 10:33:55 +0100 [thread overview]
Message-ID: <20151203093355.GF10207@awelinux> (raw)
In-Reply-To: <20151202164753.GA19878@mtj.duckdns.org>
On Wed, Dec 02, 2015 at 11:47:53AM -0500, Tejun Heo wrote:
> Hello, Andreas.
>
> On Wed, Dec 02, 2015 at 10:33:10AM +0100, Andreas Werner wrote:
> > Blacklisting the controller would be a solution yes, but I just
> > wanna wait the answer from the FAE to be sure we really have a
> > problem.
> >
> > What kind of identifier can I use for blacklisting? The driver name
> > from the host driver? (fsl-sata) I did not find any register
> > in the sata controller to read out an ID.
>
> Whatever matches the affected controllers. If all sata_fsl
> controllers are affected, the driver init code can set the flag
> unconditionally.
>
> Thanks.
>
> --
> tejun
Ok, setting the flag in the controller driver would be good.
(still wating for the FAE for more info).
As I can see the horkage field is only defind in "struct ata_dev"
would it be time to add a horkage field to "struct ata_host"?
All the other "flag" fields in the structs are used and/or reserved
and it seems to be no good place for such flags.
What I am thinking about is.
1. Add new flag e.g. ATA_HORKAGE_NOLOG_PAGE_RD
2. Add horkage field to ata_host struct
2. Set this flag in ata_host struct in the sata_fsl driver (init)
3. Copy the controller horkage flags over to struct ata_device in
the ata_dev_configure function in libata
At the end all flags set by the controller are applied to
the ata device horkage flags, and can be used for blacklisting
in libata.
May be there are better solution, or i am missing something.
What do you think about it?
Regards
Andy
next prev parent reply other threads:[~2015-12-03 9:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20151201092234.GB29791@awelinux>
2015-12-01 16:17 ` libata-core: devslp fails on ATP mSATA Tejun Heo
2015-12-01 19:04 ` Tejun Heo
2015-12-02 9:33 ` Andreas Werner
2015-12-02 16:47 ` Tejun Heo
2015-12-03 9:33 ` Andreas Werner [this message]
2015-12-03 15:15 ` Tejun Heo
2015-12-03 16:05 ` Andreas Werner
2015-12-01 18:51 Andreas Werner
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=20151203093355.GF10207@awelinux \
--to=andreas.werner@men.de \
--cc=hare@suse.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.petersen@oracle.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