Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932528AbbDVNzs (ORCPT ); Wed, 22 Apr 2015 09:55:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36855 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756198AbbDVNzo (ORCPT ); Wed, 22 Apr 2015 09:55:44 -0400 Message-ID: <1429710878.45956.94.camel@redhat.com> Subject: Re: [PATCH v4 2/2] IB/qib: use arch_phys_wc_add() From: Doug Ledford To: "Luis R. Rodriguez" Cc: infinipath@intel.com, roland@kernel.org, sean.hefty@intel.com, hal.rosenstock@gmail.com, linux-rdma@vger.kernel.org, luto@amacapital.net, mst@redhat.com, linux-kernel@vger.kernel.org, cocci@systeme.lip6.fr, "Luis R. Rodriguez" , Toshi Kani , Rickard Strandqvist , Mike Marciniszyn , Roland Dreier , Dennis Dalessandro , Suresh Siddha , Ingo Molnar , Thomas Gleixner , Juergen Gross , Daniel Vetter , Dave Airlie , Bjorn Helgaas , Antonino Daplas , Jean-Christophe Plagniol-Villard , Tomi Valkeinen , Dave Hansen , Arnd Bergmann , Stefan Bader , konrad.wilk@oracle.com, ville.syrjala@linux.intel.com, david.vrabel@citrix.com, jbeulich@suse.com, Roger Pau =?ISO-8859-1?Q?Monn=E9?= , linux-fbdev@vger.kernel.org, xen-devel@lists.xensource.com Date: Wed, 22 Apr 2015 09:54:38 -0400 In-Reply-To: <1429653035-19424-3-git-send-email-mcgrof@do-not-panic.com> References: <1429653035-19424-1-git-send-email-mcgrof@do-not-panic.com> <1429653035-19424-3-git-send-email-mcgrof@do-not-panic.com> Organization: Red Hat, Inc. Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-i1OaxEyZGKNoZjkKBi/K" Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1837 Lines: 55 --=-i1OaxEyZGKNoZjkKBi/K Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2015-04-21 at 14:50 -0700, Luis R. Rodriguez wrote: This: > + /* MTRR was used if this is non-zero */ > + if (!dd->wc_cookie) > vma->vm_page_prot =3D pgprot_writecombine(vma->vm_page_prot); And this: > + dd->wc_cookie =3D arch_phys_wc_add(pioaddr, piolen); > + if (dd->wc_cookie < 0) > + ret =3D -EINVAL; don't agree on what wc_cookie will be on error. --=20 Doug Ledford GPG KeyID: 0E572FDD --=-i1OaxEyZGKNoZjkKBi/K Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABAgAGBQJVN6geAAoJELgmozMOVy/dINYQAJVTs2h1J+xLHdOCMfjEZeW+ fnyf6xbapVV/GaP5VMoJVpZmYLCYgwjJdUTVfYtY80RaahnH8cbJfgPxiYYtQgKE A+M8S9rKNsUM1P4NpxhHm1eKQT3bPEwJm/zvIIGN9d5+9t+/tb1cFSXB5JX+3Fj9 HCuTibuq0Wz4/wyBMhCX/x1c7VB/oSImUOruXXIO1WDX2D8a/N1xWjYb9NIDC0KN hZnLFqDXSEopDVaoNXExuy4HPbXCPC6aRaWUo0kQYeXiNjchmz9Gd5FTV9J9/Oig 0mxe58sksx+3Sj+pEdFOON0kKNawGQ22eun51By+U69OAqyoXi63I3dhR6J0DtXR Fl5fLCmTvKyr1c/zwzXwBQRWSOqg4ZLc5mk1VIQXN6iax3NZhMNo7tfLJ9tcceTa CikprNiQWJuJhG5USuxW7u2M4ZIk5NnqVa5sYgb2+JTlDp/zvIz8/UdF71h0yPuD oPEzr6IeRWSrPPyPQT055+3LyzaeRokbRmKPtWi044iJ8XD7fZzACha15zPts+dX nCk4jqlkS6x4wYmj0MruZCFr/7nBZP1f/yNX2nMN+3QD1NdwQuP27IlS2zDJj/DT 94giD43UUxEgcqC/eQBpxJ7xoS2MQ5fcC6m+WchlE6CVw95kZojyxRnkYtJGgyDQ m4tBzsqPGq58MMnI9Fz6 =pViF -----END PGP SIGNATURE----- --=-i1OaxEyZGKNoZjkKBi/K-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/