login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
July
»
13
Re: [patch 5/6] ps3: BD/DVD/CD-ROM Storage Driver
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Benjamin Herrenschmidt <benh@...>
To: James Bottomley <James.Bottomley@...>
Cc: Geert Uytterhoeven <Geert.Uytterhoeven@...>, Jens Axboe <axboe@...>, <linux-scsi@...>, <linux-kernel@...>, Alessandro Rubini <rubini@...>, <linuxppc-dev@...>, Paul Mackerras <paulus@...>
Subject:
Re: [patch 5/6] ps3: BD/DVD/CD-ROM Storage Driver
Date: Friday, July 13, 2007 - 7:06 pm
On Fri, 2007-07-13 at 09:02 -0400, James Bottomley wrote:
quoted text
> On Wed, 2007-07-04 at 15:22 +0200, Geert Uytterhoeven wrote: > > + kaddr = kmap_atomic(sgpnt->page, KM_USER0); > > + if (!kaddr) > > + return -1; > > + len = sgpnt->length; > > + if ((req_len + len) > buflen) { > > + active = 0; > > + len = buflen - req_len; > > + } > > + memcpy(kaddr + sgpnt->offset, buf + req_len, > > len); > > + kunmap_atomic(kaddr, KM_USER0); > > This isn't a SCSI objection, but this sequence appears several times in > this driver. It's wrong for a non-PIPT architecture (and I believe the > PS3 is VIPT) because you copy into the kernel alias for the page, which > dirties the line in the cache of that alias (the user alias cache line > was already invalidated). However, unless you flush the kernel alias to > main memory, the user could read stale data. The way this is supposed > to be done is to do a
Nah, we have no cache aliasing on ppc, at least not that matter here and not on cell. Ben. -
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[patch 5/6] ps3: BD/DVD/CD-ROM Storage Driver
, Geert Uytterhoeven
, (Wed Jul 4, 9:22 am)
Re: [patch 5/6] ps3: BD/DVD/CD-ROM Storage Driver
, James Bottomley
, (Fri Jul 13, 9:02 am)
Re: [patch 5/6] ps3: BD/DVD/CD-ROM Storage Driver
, Benjamin Herrenschmidt
, (Fri Jul 13, 7:06 pm)
Re: [patch 5/6] ps3: BD/DVD/CD-ROM Storage Driver
, Jens Axboe
, (Fri Jul 13, 9:05 am)
Re: [patch 5/6] ps3: BD/DVD/CD-ROM Storage Driver
, Geert Uytterhoeven
, (Fri Jul 13, 9:25 am)
Re: [patch 5/6] ps3: BD/DVD/CD-ROM Storage Driver
, Jens Axboe
, (Fri Jul 13, 10:51 am)
Re: [patch 5/6] ps3: BD/DVD/CD-ROM Storage Driver
, James Bottomley
, (Fri Jul 13, 9:34 am)
Re: [patch 5/6] ps3: BD/DVD/CD-ROM Storage Driver
, Geert Uytterhoeven
, (Fri Jul 13, 9:45 am)
Re: [patch 5/6] ps3: BD/DVD/CD-ROM Storage Driver
, James Bottomley
, (Fri Jul 13, 10:02 am)
Re: [patch 5/6] ps3: BD/DVD/CD-ROM Storage Driver
, Arnd Bergmann
, (Fri Jul 13, 10:19 am)
Re: [patch 5/6] ps3: BD/DVD/CD-ROM Storage Driver
, Benjamin Herrenschmidt
, (Fri Jul 13, 7:12 pm)
Re: [patch 5/6] ps3: BD/DVD/CD-ROM Storage Driver
, Segher Boessenkool
, (Mon Jul 16, 8:08 am)
Re: [patch 5/6] ps3: BD/DVD/CD-ROM Storage Driver
, Geert Uytterhoeven
, (Fri Jul 13, 11:10 am)
Re: [patch 5/6] ps3: BD/DVD/CD-ROM Storage Driver
, Jens Axboe
, (Fri Jul 13, 12:35 pm)
Re: [patch 5/6] ps3: BD/DVD/CD-ROM Storage Driver
, James Bottomley
, (Fri Jul 13, 11:28 am)
Re: [patch 5/6] ps3: BD/DVD/CD-ROM Storage Driver
, Geert Uytterhoeven
, (Fri Jul 13, 4:13 pm)
Re: [patch 5/6] ps3: BD/DVD/CD-ROM Storage Driver
, Geert Uytterhoeven
, (Mon Jul 16, 7:43 am)
Re: [patch 5/6] ps3: BD/DVD/CD-ROM Storage Driver
, Jens Axboe
, (Mon Jul 16, 8:16 am)
Re: [patch 5/6] ps3: BD/DVD/CD-ROM Storage Driver
, James Bottomley
, (Mon Jul 16, 9:47 am)
Re: [patch 5/6] ps3: BD/DVD/CD-ROM Storage Driver
, Benjamin Herrenschmidt
, (Mon Jul 16, 5:49 pm)
Re: [patch 5/6] ps3: BD/DVD/CD-ROM Storage Driver
, James Bottomley
, (Mon Jul 16, 6:03 pm)
Re: [patch 5/6] ps3: BD/DVD/CD-ROM Storage Driver
, Benjamin Herrenschmidt
, (Mon Jul 16, 6:12 pm)
Re: [patch 5/6] ps3: BD/DVD/CD-ROM Storage Driver
, Benjamin Herrenschmidt
, (Mon Jul 16, 5:40 pm)
Re: [patch 5/6] ps3: BD/DVD/CD-ROM Storage Driver
, Jens Axboe
, (Mon Jul 16, 10:38 am)
Re: [patch 5/6] ps3: BD/DVD/CD-ROM Storage Driver
, Geert Uytterhoeven
, (Mon Jul 16, 10:59 am)
Re: [patch 5/6] ps3: BD/DVD/CD-ROM Storage Driver
, Geert Uytterhoeven
, (Mon Jul 16, 8:59 am)
Re: [patch 5/6] ps3: BD/DVD/CD-ROM Storage Driver
, Geert Uytterhoeven
, (Mon Jul 16, 9:24 am)
Re: [patch 5/6] ps3: BD/DVD/CD-ROM Storage Driver
, Benjamin Herrenschmidt
, (Mon Jul 16, 5:38 pm)
Re: [patch 5/6] ps3: BD/DVD/CD-ROM Storage Driver
, Jens Axboe
, (Mon Jul 16, 9:33 am)
Re: [patch 5/6] ps3: BD/DVD/CD-ROM Storage Driver
, Jens Axboe
, (Mon Jul 16, 9:04 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Pavel Emelianov
[RFC][PATCH 4/7] RSS accounting hooks over the code
Avi Kivity
[PATCH 03/54] KVM: MMU: Rename variables of type 'struct kvm_mmu_page *'
Alan
Re: [RFC] Heads up on sys_fallocate()
debian developer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
git
:
openbsd-misc
:
linux-netdev
:
David Miller
Re: 2.6.25-rc8: FTP transfer errors
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Neil Horman
Re: [RFC] net: release dst entry in dev_queue_xmit()
Colocation donated by:
Who's online
There are currently
3 users
and
911 guests
online.
Online users
Emily5551
Jeremy
rejupal
Syndicate