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: <1300806622.3522.41.camel@thor.local>
Date:	Tue, 22 Mar 2011 16:10:22 +0100
From:	Michel Dänzer <michel@...nzer.net>
To:	Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>
Cc:	dri-devel@...ts.freedesktop.org, thomas@...pmail.org,
	airlied@...ux.ie, linux-kernel@...r.kernel.org, konrad@...nok.org
Subject: Re: [RFC PATCH v2] Utilize the PCI API in the TTM framework.

On Die, 2011-03-22 at 10:54 -0400, Konrad Rzeszutek Wilk wrote: 
> On Tue, Mar 22, 2011 at 02:13:19PM +0100, Michel Dänzer wrote:
> > On Mon, 2011-03-21 at 19:18 -0400, Konrad Rzeszutek Wilk wrote: 
> > > On Mon, Mar 21, 2011 at 02:11:07PM +0100, Michel Dänzer wrote:
> > > > On Fre, 2011-01-07 at 12:11 -0500, Konrad Rzeszutek Wilk wrote: 
> > > > > 
> > > > > 1) The 'NULL' when doing dma_alloc_coherent is unsightly. I was toying
> > > > > with modifying the TTM API to pass in 'struct device' or 'struct pci_device'
> > > > > but figured it would make first sense to get your guys input before heading that route.
> > > > 
> > > > It's worse than unsightly: It breaks TTM on PPC. See
> > > > arch/powerpc/include/asm/dma-mapping.h: get_dma_ops() returns NULL if
> > > > NULL is passed in for the device, and most of its callers BUG in that
> > > > case. The exception being dma_supported(), so a possible solution might
> > > > be to use that for checking if dma_alloc_coherent can be used.
> > > > 
> > > > Dave, please prevent this change from entering mainline before there's a
> > > > solution for this.
> > > 
> > > We do have a fix for it: 
> > > 
> > > git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen.git devel/ttm.pci-api.v5
> > > 
> > > Can you tell me if that works for you?
> > 
> > Yeah,
> > http://git.kernel.org/?p=linux/kernel/git/konrad/xen.git;a=commitdiff;h=02bbfbab7dd6a107ea2f5d6e882631cd31c72eda and http://git.kernel.org/?p=linux/kernel/git/konrad/xen.git;a=commitdiff;h=733301920082553b52ce4453493fe6abf6aa7d1a fix the problem.
> 
> Wheew. Good! What kind of hardware do you have that triggered this?
> When I implemented this patchset I hadn't thought about PPC b/c..well
> I didn't have the hardware nor did I think there were any ATI/Nvidia
> cards that worked with it. Can you give me an idea of type of hardware
> this is and where I could purchase it?

It's an Apple PowerBook with a Mobility Radeon 9700, to buy one new
you'd have to go back in time a couple of years first. ;) You should be
able to use more recent GPUs in a second-hand Apple G5 or YDL
PowerStation, which also have reasonably fast CPUs.


-- 
Earthling Michel Dänzer           |                http://www.vmware.com
Libre software enthusiast         |          Debian, X and DRI developer
--
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