linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
To: cocci@systeme.lip6.fr
Subject: Re: [PATCH v4 2/2] IB/qib: use arch_phys_wc_add()
Date: Tue, 21 Apr 2015 22:17:18 +0000	[thread overview]
Message-ID: <20150421221718.GA10836@obsidianresearch.com> (raw)
In-Reply-To: <1429653035-19424-3-git-send-email-mcgrof@do-not-panic.com>

On Tue, Apr 21, 2015 at 02:50:35PM -0700, Luis R. Rodriguez wrote:
> -	if (qib_wc_pat) {
> -		resource_size_t vl15off;
> -		/*
> -		 * We do not set WC on the VL15 buffers to avoid
> -		 * a rare problem with unaligned writes from
> -		 * interrupt-flushed store buffers, so we need
> -		 * to map those separately here.  We can't solve
> -		 * this for the rarely used mtrr case.
> -		 */
> -		ret = init_chip_wc_pat(dd, 0);
> -		if (ret)
> -			goto bail;
> +	/*
> +	 * We do not set WC on the VL15 buffers to avoid
> +	 * a rare problem with unaligned writes from
> +	 * interrupt-flushed store buffers, so we need
> +	 * to map those separately here.  We can't solve
> +	 * this for the rarely used mtrr case.
> +	 */

This is a small change in behavior, but it doesn't seem important..

Mike, what do you think about adding:

 if (dd->wc_cookie)
    dev_err(.., "Using this device without CPU PAT support is known to be broken");

or similar..

Jason

  reply	other threads:[~2015-04-21 22:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1429653035-19424-1-git-send-email-mcgrof@do-not-panic.com>
2015-04-21 21:50 ` [PATCH v4 1/2] IB/qib: add acounting for MTRR Luis R. Rodriguez
     [not found]   ` <1429653035-19424-2-git-send-email-mcgrof-3uybbJdB1yH774rrrx3eTA@public.gmane.org>
2015-04-22 13:44     ` Doug Ledford
2015-04-22 15:28       ` Luis R. Rodriguez
2015-04-21 21:50 ` [PATCH v4 2/2] IB/qib: use arch_phys_wc_add() Luis R. Rodriguez
2015-04-21 22:17   ` Jason Gunthorpe [this message]
2015-04-22 13:54   ` Doug Ledford
     [not found]     ` <1429710878.45956.94.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-04-22 15:33       ` Luis R. Rodriguez
     [not found]         ` <20150422153348.GD5622-B4tOwbsTzaBolqkO4TVVkw@public.gmane.org>
2015-04-22 16:57           ` Doug Ledford
2015-04-22 17:37             ` Luis R. Rodriguez
2015-04-22 17:48               ` Doug Ledford
     [not found]                 ` <1429724907.45956.165.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-04-22 18:32                   ` Luis R. Rodriguez

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=20150421221718.GA10836@obsidianresearch.com \
    --to=jgunthorpe@obsidianresearch.com \
    --cc=cocci@systeme.lip6.fr \
    /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).