lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20090810092731.7a44c24e@jbarnes-g45>
Date:	Mon, 10 Aug 2009 09:27:31 -0700
From:	Jesse Barnes <jesse.barnes@...el.com>
To:	Yinghai Lu <yinghai@...nel.org>
Cc:	Jesse Barnes <jbarnes@...tuousgeek.org>,
	Ingo Molnar <mingo@...e.hu>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"linux-pci@...r.kernel.org" <linux-pci@...r.kernel.org>
Subject: Re: [PATCH] pci: print out pref if mmio is prefetchable

On Fri, 07 Aug 2009 03:53:34 -0700
Yinghai Lu <yinghai@...nel.org> wrote:

> 
> already print it out for pci bridge, also print it out for pci device
> 
> Signed-off-by: Yinghai Lu <yinghai@...nel.org>
> 
> ---
>  drivers/pci/probe.c |    9 +++++++--
>  1 file changed, 7 insertions(+), 2 deletions(-)
> 
> Index: linux-2.6/drivers/pci/probe.c
> ===================================================================
> --- linux-2.6.orig/drivers/pci/probe.c
> +++ linux-2.6/drivers/pci/probe.c
> @@ -235,7 +235,10 @@ int __pci_read_base(struct pci_dev *dev,
>  			res->start = l64;
>  			res->end = l64 + sz64;
>  			dev_printk(KERN_DEBUG, &dev->dev,
> -				"reg %x 64bit mmio: %pR\n", pos,
> res);
> +				"reg %x %s: %pR\n", pos,
> +				 (res->flags & IORESOURCE_PREFETCH) ?
> +					"64bit mmio pref" : "64bit
> mmio",
> +				 res);
>  		}
>  
>  		res->flags |= IORESOURCE_MEM_64;
> @@ -249,7 +252,9 @@ int __pci_read_base(struct pci_dev *dev,
>  		res->end = l + sz;
>  
>  		dev_printk(KERN_DEBUG, &dev->dev, "reg %x %s:
> %pR\n", pos,
> -			(res->flags & IORESOURCE_IO) ? "io port" :
> "32bit mmio",
> +			(res->flags & IORESOURCE_IO) ? "io port" :
> +			 ((res->flags & IORESOURCE_PREFETCH) ?
> +				 "32bit mmio pref" : "32bit mmio"),
>  			res);
>  	}
>  
> 

Applied to linux-next, thanks.

-- 
Jesse Barnes, Intel Open Source Technology Center
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ