Helge Deller | 17 Apr 22:45 2014
Picon
Picon

[RFC,PATCH] mm,parisc: keep track of last mmap'ed address

Would the following patch be acceptable?
It adds an additional field to struct address_space which will most likely only
be used by the parisc arch.

If it's acceptable, I would like to push it through the parisc tree, if not,
I'm of course open to other ideas too.

Thanks,
Helge

PATCH:
[RFC,PATCH] mm,parisc: keep track of last mmap'ed address

Because of parisc's cache aliasing constraints we need to map shared pages at a
multiple of 4MB while most other architectures can map files at any multiple of
PAGE_SIZE. In the past this constraint was ensured by calculating a virtual
offset into this 4MB region which is based on the physical address of the
kernel mapping variable (right-shift value of filp->f_mapping by 8 bits).
Since we only have a 32bit userspace (even when running on a 64bit kernel) this
often leads to large gaps in the maps of the userspace processes and to out of
memory situations even if physical memory was still free.  Of course I did
played with other variants of shifting the f_mapping value to find better
offsets but this didn't helped either.

This patch chooses a different approach.
It adds the additional field i_mmap_lastmmap to the address_space struct to
keep track of the last mapping of a shared file. With this bookkeeping it's
possible for the parisc memory allocator to 
a) choose a new mapping offset if the file hasn't been mapped yet, and
b) take the last-used mapping if it was already mapped by another process.
(Continue reading)

Helge Deller | 17 Apr 21:07 2014
Picon
Picon

[GIT PULL] parisc updates for v3.15

Hi Linus,

please pull the latest parisc architecture fixes from: 
  git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git parisc-3.15

There are two major changes in this patchset:
The major fix is that the epoll_pwait() syscall for 32bit userspace was not
using the compat wrapper on a 64bit kernel.
Secondly we changed the value of SHMLBA from 4MB to PAGE_SIZE to reflect
that we can actually mmap to any multiple of PAGE_SIZE. The only thing
which needs care is that shared mmaps need to be mapped at the same
offset inside the 4MB cache window.

Thanks,
Helge

----------------------------------------------------------------
Christoph Lameter (1):
      parisc: Replace __get_cpu_var uses for address calculation

Helge Deller (2):
      parisc: change value of SHMLBA from 0x00400000 to PAGE_SIZE
      parisc: fix epoll_pwait syscall on compat kernel

 arch/parisc/include/asm/shmparam.h |  5 ++---
 arch/parisc/kernel/cache.c         |  3 ++-
 arch/parisc/kernel/sys_parisc.c    | 14 +++++++-------
 arch/parisc/kernel/syscall_table.S |  2 +-
 arch/parisc/lib/memcpy.c           |  2 +-
 arch/parisc/mm/fault.c             |  2 +-
(Continue reading)

isabelle | 15 Apr 21:47 2014
Picon

spende /Donation

Hallo
Wenn ich diese Nachricht zu senden wollte, ist dies nicht einfach Zufall. Dies ist, weil Ihre e-Mail vom
elektronischen Roboter gesichert meine WX.7AR BW ausgewählt wurde.
Zunächst möchte ich mich für dieses Eindringen in Ihr Leben zu entschuldigen, obwohl ich zugeben, dass
es mir sehr wichtig. Ich bin Isabelle Vasudev. Ich leide an Krebs im Hals seit nun mehr als 3 Jahre und eine
halbe und es leider, mein Arzt hat gerade informiert mich, dass ich bin voller unheilbar und, dass meine
Tage, wegen meinen etwas gezählt sind abgebaut Zustand. Ich bin eine Witwe und ich habe keine Kind, das
ich beginne zu bedauern.
In der Tat ist der Grund, warum ich Sie kontaktieren bin, möchte ich einen Teil von meinem Grundstück zu
spenden, weil ich niemand, wer die Erben konnte. Ich habe fast mein ganzes Zeug, darunter ein Unternehmen
der Export von Holz, Gummi und Stahl-Industrie in Afrika, wo ich wohne nun mehr 10 Jahren, verkauft. Ein
großer Teil der Gelder gesammelt wurde mit unterschiedlichen Verbänden humanitären Charakter
überall in der Welt, aber besonders hier in Afrika bezahlt.
Im Hinblick auf den Rest der Summe genau in Höhe von 750.000, 00euros (sieben hundert und fünfzig tausend
Euro) auf eine gesperrte Mitarbeiter-Account, meine letzte wünschen würde Sie es spenden, so dass Sie
in Ihrer Branche und vor allem den humanitären investieren können. Ich bin ganz bewusst was ich zu tun
beabsichtigen, und ich denke, trotz der Tatsache, die wir nicht wissen, werdet ihr diese Summe gut
nutzen. Ich bitte Sie, bitte dieses Erbe zu akzeptieren, ohne jedoch Fragen Sie alles, was in
zurückgeben wenn es nicht immer denken, gutes zu tun, um dich herum, was ich nicht getan habe, in meiner Existenz.
Das heißt, wird auf einer verantwortlichen Person und besonders gutem Glauben fallen zu lassen
beruhigt, ich möchte bitten, dass Sie bitte mich bei den meisten schnell kontaktieren, um weitere
Erklärung über die Gründe für meine Geste und den Verlauf der Dinge zu geben. Bitte kontaktieren Sie
mich so bald wie möglich, wenn Sie mein Angebot akzeptieren.
Gott möge mit dir sein!
Ich fordere Sie auf, mich über meine persönliche e-Mail-Adresse zu kontaktieren:
Isabelle.claude654 <at> laposte.net
Der Frieden und Barmherzigkeit Gottes möge mit dir sein.
Mrs Isabelle

--
(Continue reading)

Helge Deller | 13 Apr 22:17 2014
Picon
Picon

[RFC,PATCH] parisc: avoid saving & restoring fp regs at syscall entry

This is a work-in-progress patch to avoid unneccesary saving of floating
point regs when entering syscalls (it still generates segfaults...!).
The compiler option -mdisable-fpregs takes care that we don't use fp
regs in kernel code by accident.

Signed-off-by: Helge Deller <deller <at> gmx.de>

diff --git a/arch/parisc/kernel/entry.S b/arch/parisc/kernel/entry.S
index e8f07dd..810769b 100644
--- a/arch/parisc/kernel/entry.S
+++ b/arch/parisc/kernel/entry.S
 <at>  <at>  -785,9 +785,13  <at>  <at>  ENDPROC(ret_from_kernel_thread)
 ENTRY(_switch_to)
 	STREG	 %r2, -RP_OFFSET(%r30)

-	callee_save_float
 	callee_save

+	/* TODO: we could check TASK_FLAGS and only save the fpregs when
+	 * switching away from a userspace task. */
+	ldo	TASK_PT_FR0(%r26), %r1	/* save fpregs for task switch */
+	save_fp	%r1
+
 	load32	_switch_to_ret, %r2

 	STREG	%r2, TASK_PT_KPC(%r26)
 <at>  <at>  -795,6 +799,12  <at>  <at>  ENTRY(_switch_to)

 	STREG	%r30, TASK_PT_KSP(%r26)
 	LDREG	TASK_PT_KSP(%r25), %r30
(Continue reading)

Helge Deller | 13 Apr 00:03 2014
Picon
Picon

[PATCH] parisc: fix epoll_pwait syscall on compat kernel

Signed-off-by: Helge Deller <deller <at> gmx.de>
CC: stable <at> kernel.org

diff --git a/arch/parisc/kernel/syscall_table.S b/arch/parisc/kernel/syscall_table.S
index 80e5dd2..83ead0e 100644
--- a/arch/parisc/kernel/syscall_table.S
+++ b/arch/parisc/kernel/syscall_table.S
 <at>  <at>  -392,7 +392,7  <at>  <at> 
 	ENTRY_COMP(vmsplice)
 	ENTRY_COMP(move_pages)		/* 295 */
 	ENTRY_SAME(getcpu)
-	ENTRY_SAME(epoll_pwait)
+	ENTRY_COMP(epoll_pwait)
 	ENTRY_COMP(statfs64)
 	ENTRY_COMP(fstatfs64)
 	ENTRY_COMP(kexec_load)		/* 300 */
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Helge Deller | 9 Apr 19:49 2014
Picon
Picon

[PATCH] parisc: change value of SHMLBA from 0x00400000 to PAGE_SIZE

On parisc, SHMLBA was defined to 0x00400000 (4MB) to reflect that we need to
take care of our caches for shared mappings. But actually, we can map a file at
any multiple address of PAGE_SIZE, so let us correct that now with a value of
PAGE_SIZE for SHMLBA.  Instead we now take care of this cache colouring via the
constant SHM_COLOUR while we map shared pages.

Signed-off-by: Helge Deller <deller <at> gmx.de>
CC: Jeroen Roovers <jer <at> gentoo.org>
CC: John David Anglin <dave.anglin <at> bell.net>
CC: Carlos O'Donell <carlos <at> systemhalted.org>
Cc: stable <at> kernel.org [3.13+]

diff --git a/arch/parisc/include/asm/shmparam.h b/arch/parisc/include/asm/shmparam.h
index 628ddc2..afe1300 100644
--- a/arch/parisc/include/asm/shmparam.h
+++ b/arch/parisc/include/asm/shmparam.h
 <at>  <at>  -1,8 +1,7  <at>  <at> 
 #ifndef _ASMPARISC_SHMPARAM_H
 #define _ASMPARISC_SHMPARAM_H

-#define __ARCH_FORCE_SHMLBA 	1
-
-#define SHMLBA 0x00400000   /* attach addr needs to be 4 Mb aligned */
+#define SHMLBA	   PAGE_SIZE	/* attach addr a multiple of this */
+#define SHM_COLOUR 0x00400000	/* shared mappings colouring */

 #endif /* _ASMPARISC_SHMPARAM_H */
diff --git a/arch/parisc/kernel/cache.c b/arch/parisc/kernel/cache.c
index a6ffc77..f6448c7 100644
--- a/arch/parisc/kernel/cache.c
(Continue reading)

John Jack Dick ven den Berg | 26 Mar 11:20 2014
Picon

Re: reply

Compliments. This is in regards to my previous message concerning a deceased client with similar last name
with you, I have given you all necessary details about this and I haven't gotten any positive response from
you, so kindly get back to me today.
Thank you,
John.

--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Neil Luven | 26 Mar 12:34 2014
Picon

ATM CARD PAYMENT UNIT.

Attention,

We are hereby inform you that your inheritance payment of US$10.5M was
approved by our bank through our escrow account with the
paying bank Intercontinental Bank Via ATM CARD DELIVERY. Please kindly send me your info:

Full Name#:
Cell Phone No#
Address#
ID for delivery identification.

Awaiting your quick response to neillluvenikobo <at> yahoo.com.hk

Our Code: Union

Best Regards,
Neil Luven( neillluvenikobo <at> yahoo.com.hk )
DIRECTOR ATM CARD PAYMENT UNIT.
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Dr. Malik Wasim | 23 Mar 23:25 2014
Picon

I Need Your Assistance.

Dear Friend,

I am Dr.Malik Wasim, Manager Auditing and Accountancy Department, Bank of Africa in (B.O.A) Burkina Faso.
I got your email account while searching for a business oriented personality and you happen to be the one.

I bring forth a business proposal in the tune of $12.5 million U.S. dollars to be transferred to an offshore
account with your assistance acting as beneficiary and next-of-kin to the funds.
If you know you are capable of involving and partaking in this transaction, please send down the following
personal details to me via dr.malik_wasim <at> yahoo.com

(1)Full names:........................ .....
(2)Occupation:................ ..............
(3)Age and Sex:..........................
(4)Marital………….
Status:................
(5)Private phone number:..................
(6)Current residential address:.................

Noted; that every discussion is in the detail.
Dr.Malik Wasim.

--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Dr. Malik Wasim | 23 Mar 23:25 2014
Picon

I Need Your Assistance.

Dear Friend,

I am Dr.Malik Wasim, Manager Auditing and Accountancy Department, Bank of Africa in (B.O.A) Burkina Faso.
I got your email account while searching for a business oriented personality and you happen to be the one.

I bring forth a business proposal in the tune of $12.5 million U.S. dollars to be transferred to an offshore
account with your assistance acting as beneficiary and next-of-kin to the funds.
If you know you are capable of involving and partaking in this transaction, please send down the following
personal details to me via dr.malik_wasim <at> yahoo.com

(1)Full names:........................ .....
(2)Occupation:................ ..............
(3)Age and Sex:..........................
(4)Marital………….
Status:................
(5)Private phone number:..................
(6)Current residential address:.................

Noted; that every discussion is in the detail.
Dr.Malik Wasim.

--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Helge Deller | 23 Mar 22:02 2014
Picon
Picon

[GIT PULL] parisc updates for v3.14

Hi Linus,

please consider pulling some late patches for the parisc architecture from:

  git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git parisc-3.14

This patchset 
- reverts parts of my latest patch regarding font selection with STICON console,
- wires up the utimes() syscall for parisc, and
- removes the unused parisc tmpalias code and unnecessary arch*relax defines

Thanks,
Helge

----------------------------------------------------------------
Helge Deller (2):
      partly revert commit 8a10bc9: parisc/sti_console: prefer Linux fonts over built-in ROM fonts
      parisc: wire up sys_utimes

John David Anglin (1):
      parisc: Remove unused CONFIG_PARISC_TMPALIAS code

Will Deacon (1):
      parisc: locks: remove redundant arch_*_relax operations

 arch/parisc/include/asm/page.h        | 11 ------
 arch/parisc/include/asm/spinlock.h    |  4 ---
 arch/parisc/include/uapi/asm/unistd.h |  4 +--
 arch/parisc/kernel/cache.c            | 64 -----------------------------------
 arch/parisc/kernel/syscall_table.S    |  1 +
(Continue reading)


Gmane