Hello everyone,
The following patchset implements a "hardware memory driver". The
main purpose of hwmem is:
* To allocate buffers suitable for use with hardware. Currently
this means contiguous buffers.
* To synchronize the caches for the allocated buffers. This is
achieved by keeping track of when the CPU uses a buffer and when
other hardware uses the buffer, when we switch from CPU to other
hardware or vice versa the caches are synchronized.
* To handle sharing of allocated buffers between processes i.e.
import, export.
Hwmem is available both through a user space API and through a
kernel API.
Here at ST-Ericsson we use hwmem for graphics buffers. Graphics
buffers need to be contiguous due to our hardware, are passed
between processes (usually application and window manager)and are
part of usecases where performance is top priority so we can't
afford to synchronize the caches unecessarily.
Additions in v2:
* Bugfixes
* Added the possibility to map hwmem buffers in the kernel through
hwmem_kmap/kunmap
* Moved mach specific stuff to mach.
Best regards
Johan Mossberg
Consultant at ST-Ericsson
Johan Mossberg (3):
hwmem: Add hwmem (part 1)
hwmem: Add hwmem (part 2)
hwmem: Add hwmem to ux500
arch/arm/mach-ux500/Makefile | 2 +-
arch/arm/mach-ux500/board-mop500.c | 1 +
arch/arm/mach-ux500/dcache.c | 266 +++++++++
arch/arm/mach-ux500/devices.c | 31 ++
arch/arm/mach-ux500/include/mach/dcache.h | 26 +
arch/arm/mach-ux500/include/mach/devices.h | 1 +
drivers/misc/Kconfig | 1 +
drivers/misc/Makefile | 1 +
drivers/misc/hwmem/Kconfig | 7 +
drivers/misc/hwmem/Makefile | 3 +
drivers/misc/hwmem/cache_handler.c | 510 ++++++++++++++++++
drivers/misc/hwmem/cache_handler.h | 61 +++
drivers/misc/hwmem/hwmem-ioctl.c | 455 ++++++++++++++++
drivers/misc/hwmem/hwmem-main.c | 799 ++++++++++++++++++++++++++++
include/linux/hwmem.h | 536 +++++++++++++++++++
15 files changed, 2699 insertions(+), 1 deletions(-)
create mode 100644 arch/arm/mach-ux500/dcache.c
create mode 100644 arch/arm/mach-ux500/include/mach/dcache.h
create mode 100644 drivers/misc/hwmem/Kconfig
create mode 100644 drivers/misc/hwmem/Makefile
create mode 100644 drivers/misc/hwmem/cache_handler.c
create mode 100644 drivers/misc/hwmem/cache_handler.h
create mode 100644 drivers/misc/hwmem/hwmem-ioctl.c
create mode 100644 drivers/misc/hwmem/hwmem-main.c
create mode 100644 include/linux/hwmem.h
--
1.7.4.1
I'm recently trying to install alpha-3 image using l-m-c on an AMD64
machine which is behind the company firewall. Though I have apt proxy
set on host machine, l-m-c installing system (chroot env?) does not
know it. Can we improve the l-m-c a little bit to copy apt proxy
setting if any on host machine into installing system? So that the
machine behind proxy can survive with l-m-c too.
PS.
Actually, I have my machine home which can directly access natty
repository, but it's very slow (see below), probably because there
is no natty mirror in China yet.
Fetched 15.0 MB in 10min 22s (24.1 kB/s)
When I use vpn to connect company network, speed of accessing ubuntu
repository can reach ~200 kB/s. Considering that I'm testing l-m-c
back and forth, I really need a faster apt speed within l-m-c.
--
Regards,
Shawn
Enclosed you'll find a link to the agenda, notes and actions from the
Linaro Developer Platforms Weekly Status meeting held on March 9th
in #linaro-meeting on irc.freenode.net at 16:00 UTC.
https://wiki.linaro.org/Platform/Foundations/2011-03-09
Actions from the meeting where as follows:
* wookey_ to send a patch to debian-policy to allow multiarch -dev packages
* jcrigby and hrw to figure out how to boot efikasb from an external
u-boot so hrw can test the latest tree
* jcrigby to check with dmart about progress on porting kprobes to thumb-2
* ppearse to investigate how libtool does ldopen for GObject
Introspection work
Regards,
Tom (tgall_foo)
Developer Platforms Team
"We want great men who, when fortune frowns will not be discouraged."
- Colonel Henry Knox
w) tom.gall att linaro.org
w) tom_gall att vnet.ibm.com
h) tom_gall att mac.com
Hi,
The Infrastructure team weekly report for 2011-03-10 is now available
and can be found at:
https://wiki.linaro.org/Platform/Infrastructure/Status/2011-03-10
The report is also reproduced in full below.
Regards,
Jamie.
--
Linaro Release Manager | Platform Project Manager
--
* Period: (20110303-20110309)
* PM: JamieBennett <jamie.bennett(a)linaro.org>
* Past reports : https://wiki.linaro.org/Platform/Infrastructure/Status
* Burndown information :
http://status.linaro.org/linaro-infrastructure.html
* Stakeholder process:
https://wiki.linaro.org/Platform/Infrastructure/CurrentProjects
== Key Points for wider discussion ==
* A 'feature-complete' version of the Android build system front-end to
Jenkins is available at {{{https://android-build.linaro.org/mockup/}}}.
Builds can be done by members of the ~linaro-android-builders Launchpad
team and the actual Jenkins instance can be found at
{{{http://android-build.linaro.org/jenkins}}}. Please take a look and
give comments.
* svammel mass bug filing tool for build failures is progressing. Some
more improvements planned but initial reviews are favorable. Code
reviews are welcome.
== Team Highlights ==
* ec2 investigations continue to find the best solution for the
continuous integration service. An ebs instance either small or large
for the master and include slaves as when needed for builds seems the
most effective.
* Mattias and Deepti now have Panda boards although Deepti's is shared
at the moment.
* Initial patch tracking metrics have been given to management.
* Tracking bugs as work items on non-Ubuntu projects was enabled in the
status.linaro.org code.
* Initial work on a planet instance for Linaro has been undertaken. The
results can be found at
[[http://ec2-50-17-53-200.compute-1.amazonaws.com/]]
== Upcoming Deliverables ==
* linaro-image-tools will be getting a release soon (likely before the
monthly release date to ease the process of getting it in to Ubuntu)
* Final patch metrics for the next member report in two weeks.
== Risks / Issues ==
* '''VERY HIGH IMPACT''': Mattias unable to work productively due to IT
restrictions in ST-E (5 weeks): some progress. Has process now to
request changes, but little response to his requests in more than 4
weeks. Mattias is working from home or over 3G in the meantime.
* '''HIGH IMPACT''': PatchTracking requires deploying Patchwork (4
weeks): Discussion with IS, and it is not expected to take them long to
do once they get to it. They have indicated that they may be able to
start at the end of this week, or in the week after.
* '''HIGH IMPACT''': Gerrit instance needed for Android (4 weeks):
Co-ordination with IS has started. Waiting to hear from them if we can
get it this month, and what we need to do to help with that.
* '''HIGH IMPACT''': Deepti believes she has not been granted travel to
Linaro@UDS (2 weeks): She will attend remotely where possible.
* '''HIGH IMPACT''': A large portion of James' time is taken by project
management at the moment (several weeks): investigations are in progress
on how to move most of this work onto a PM.
* '''MEDIUM IMPACT''': Deepti lacking hardware to work with her Panda
board: Deepti has received the Panda board, but doesn't have a
USB->serial cable for it, so is still unable to use it for much. Working
on tasks that don't require it, but unable to participate in image
testing. (many weeks).
* '''MEDIUM IMPACT''': OurOwnOffspring lacking hardware (many weeks):
x86 for master is ready and waiting, XMs for slaves delivered to IS.
Awaiting setup from IS.
* '''MEDIUM IMPACT''': Want a Jenkins/Hudson instance for Continuous
Integration purposes (many weeks): Discussions with IS, and they will
provide one, but timeframe is unclear at this point. Will host ourselves
until IS can provide. Work on getting an ec2 instance for this has
started, and we should have it running in ec2 by next week.
* '''MEDIUM IMPACT''': Deepti and Avik are sharing one Panda board
meaning some hardware specific work is being blocked (1 week).
== Miscellaneous ==
* Guilherme at PyCon 10-15 March
* James away 21st March
* Deepti on vacation 11th March
Hi,
The Android team weekly report for 2011-03-10 is now available and can
be found at:
https://wiki.linaro.org/Platform/Android/Status/2011-03-10
The report is also reproduced in full below.
Regards,
Jamie.
--
Linaro Release Manager | Platform Project Manager
--
* Period: (20110303-20110309)
* PM: JamieBennett <jamie.bennett(a)linaro.org>
* Past reports : https://wiki.linaro.org/Platform/Android/Status
== Key Points for wider discussion ==
* Framebuffer patches still need more discussion
* Team is discovering and discussing Blueprints to work on this and
next cycle. More input from other teams is encouraged.
== Team Highlights ==
* Improvements to linaro-media-create (not merged yet) and basic
validation of the Android images.
* Working on delivering the first binary Linaro toolchain for Android.
This will then be validated using existing validation tools and a
report sent next week.
* More work defining the Android LEB to clearly understand what needs
to be delivered in our images.
* Framebuffer and Power Management work continues with the former due
to land next week.
* Two Panda boards are destined for the team although there is a
problem with one on them (see below).
== Upcoming Deliverables ==
* None.
== Risks / Issues ==
* '''HIGH IMPACT''': Kenjie Watanabe states that his company committed
him to work in Linaro but he currently has no time for this. Noritsuna
will discuss the problem with the president of his company next week (3
weeks). We have now been informed that they will get clearance to work
on the Project in April.
* '''HIGH IMPACT''': Currently the Linaro Android efforts are based on
2.6.37 but with Linaro moving to 2.6.38 and the upstream Android 2.6.38
kernel being available some rebasing efforts will be needed. John
Stultz, Patrik Ryd and others need to discuss how this can be done in
the smoothest way (3 weeks). Some amount of effort will be needed but
that effort is unclear at this point. Will lower level after initial
investigations if necessary. Tree still needs to be produced for any
assessment can be made.
* '''MEDIUM IMPACT''': Contribution agreements with Google for AOSP
development still waiting to be approved for Alexander Sack and Patrik
Ryd (1 week).
* '''MEDIUM IMPACT''': Patriks Panda board is lost in the postal
system atm. Sent by Mounir from IBM, Patrik is chasing tracking numbers
(1 week).
* '''MEDIUM IMPACT''': Patrik lost some time last week due to an
internal project at ST-E. Need to monitor to ensure Patrik stays focused
on Linaro.
* '''LOW IMPACT''': jstultz lost some days last week due to sickness.
He is focussing on kconfig work for Linaro atm.
== Miscellaneous ==
* Wiki pages of note this week:
* https://wiki.linaro.org/Platform/Android/CurrentProjects
Hi,
You can get all the information at
https://wiki.linaro.org/Platform/Infrastructure/Meetings/2011-03-08
Thanks,
James
== Agenda ==
* Actions from last meeting
* Team Status
* AOB
== Past Action items ==
* james_w to co-ordinate deployment of salgado's patchwork tree in his absence
* james_w to email salgado about patch metrics
* james_w to get deepti a machine to host jenkins
* mabac to request reviews for some svammel changes, and review some code from other team members
* salgado to send deployment docs to the patchwork RT ticket when ready
* james_w to request status reports on Monday
== Action Items ==
* james_w to co-ordinate deployment of salgado's patchwork tree in his absence
* mabac to request reviews for some svammel changes, and review some code from other team members
* salgado to send deployment docs to the patchwork RT ticket when ready
* james_w to reassign CI spec and ask for workitems
* mwhudson to add some people to https://launchpad.net/~linaro-android-builders
* mwhudson to talk to plars about lava
Hi,
The weekly Linaro Release Meeting will be held at 17:00 UTC tomorrow.
The agenda for the meeting can be found at:
https://wiki.linaro.org/Releases/WeeklyReleaseMeeting/2011-03-10
and previous action items were:
* Mounir to investigate the status of the Panda display problem
* Mounir to ask the kernel team to triage bugs at
https://bugs.launchpad.net/linux-linaro
If you have points to raise or bugs that need to be discussed please add
them to the wiki page above. This meeting is for everyone to discuss
issues that may affect the ability to showcase Linaro's efforts in the
released images so please add anything to the agenda that you feel falls
into this category.
The agenda will change a little this week, we will have image reports
for our target releases done by:
* Ubuntu Desktop and others - Tom Gall
* Linaro Android - Patrik Ryd (Jamie Bennett this week)
The full agenda is:
* Announcements - Jamie Bennett with time for others to announce
* Action Item Review - Jamie Bennett chasing
* Image Status - Tom Gall and Patrik Ryd
* Bugs - Jamie Bennett chair, others discuss
* Team release-related reports (any team-focused release topics)
* Any Other Business (AOB)
Regards,
Jamie.
--
Linaro Release Manager | Platform Project Manager
Hi,
The notes and actions for this weeks Android Platform Team meeting along
with team activity reports are now available at:
https://wiki.linaro.org/Platform/Android/Meetings/2011-03-09
= Actions Recorded =
* jserv-- to produce a Blueprint at
http://launchpad.net/linaro-android to capture pandroid fbdev
investigations
* patrikryd to confirm
https://android-build.linaro.org/job/android-u8500href/ tarballs
work and fix if necessary
* jserv-- and jeremychang to split up Validation Blueprints
* jserv-- and jeremychang to split up Linaro toolchain Blueprint
* jserv-- and jeremychang to split up Linaro Evaluation Builds for
Android Blueprint into board specific Blueprints
* jeremychang to check with jstultz on the status of
android_omap4_defconfig
Regards,
Jamie.
--
Linaro Release Manager | Platform Project Manager