Linux PARISC architecture development
 help / color / mirror / Atom feed
From: Ben Hutchings <ben@decadent.org.uk>
To: Helge Deller <deller@gmx.de>, linux-parisc@vger.kernel.org
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>,
	John David Anglin <dave.anglin@bell.net>,
	stable@vger.kernel.org
Subject: Re: [PATCH 3/9] parisc: Fix asm/mman.h regarding MAP_HUGETLB and MADV_XX flags
Date: Sun, 22 Nov 2015 02:21:18 +0000	[thread overview]
Message-ID: <1448158878.17638.20.camel@decadent.org.uk> (raw)
In-Reply-To: <5650EEBD.6000400@gmx.de>

[-- Attachment #1: Type: text/plain, Size: 1777 bytes --]

On Sat, 2015-11-21 at 23:22 +0100, Helge Deller wrote:
> Hi Ben,
> 
> On 21.11.2015 21:57, Ben Hutchings wrote:
> > On Fri, 2015-11-20 at 22:38 +0100, Helge Deller wrote:
> > > On parisc we have up to now never supported Huge Pages, even glibc did
> > > not defined MAP_HUGETLB for parisc. Since the Huge Page support is being
> > > added now, clean up existing definitions for MAP_HUGETLB and friends.
> > > 
> > > Drop lots of MADV_xxK_PAGES flags, which were never used and were
> > > designed for a patch which was never integrated into the Linux
> > > kernel. Instead move other MADV_ flags to make them more compatible to
> > > other linux architectures.
> > 
> > Changing the unimplemented values seems fine, but how can it be OK to
> > renumber MAP_GROWSUP, MADV_DONTDUMP and MADV_DODUMP?
> 
> MAP_GROWSUP is new.
> MAP_STACK changed, but doesn't seeem to be used inside the kernel anyway.

It may not be implemented in the kernel, but it is certainly used by
userland:
https://sources.debian.net/src/glibc/2.19-20/nptl/allocatestack.c/#L513

So you can't assign any new semantics to that bit, and you might as
well keep MAP_STACK as the same value.

> MAP_HUGETLB is new.
> 
> MADV_DONTDUMP and MADV_DODUMP changed, but I tend to think that they are
> not widely used (if at all on parisc), and even in glibc they are only
> accessible if applications included .
> So, having the same value for both as all other architectures gives long-term
> probably more benefits than keeping the current values.
[...]

This does not trump the fact that existing applications may break and
that is something we generally try very hard to avoid.

Ben.

-- 
Ben Hutchings
If you seem to know what you are doing, you'll be given more to do.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 811 bytes --]

  reply	other threads:[~2015-11-22  2:21 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-20 21:38 [PATCH 0/9] Add Huge Page support for parisc Helge Deller
2015-11-20 21:38 ` [PATCH 1/9] parisc: Fix wrong comment regarding first pmd entry flags Helge Deller
2015-11-20 21:38 ` [PATCH 2/9] parisc: Drop definition of start_thread_som for HP-UX SOM binaries Helge Deller
2015-11-20 21:38 ` [PATCH 3/9] parisc: Fix asm/mman.h regarding MAP_HUGETLB and MADV_XX flags Helge Deller
2015-11-21 20:57   ` Ben Hutchings
2015-11-21 22:22     ` Helge Deller
2015-11-22  2:21       ` Ben Hutchings [this message]
2015-11-22 11:10         ` Helge Deller
2015-11-20 21:38 ` [PATCH 4/9] parisc: Add defines for Huge page support Helge Deller
2015-11-20 21:38 ` [PATCH 5/9] parisc: Initialize the fault vector earlier in the boot process Helge Deller
2015-11-20 21:38 ` [PATCH 6/9] parisc: Increase initial kernel mapping to 32MB on 64bit kernel Helge Deller
2015-11-20 21:38 ` [PATCH 7/9] parisc: Use long branch to do_syscall_trace_exit Helge Deller
2015-11-20 21:38 ` [PATCH 8/9] parisc: Add Huge Page and HUGETLBFS support Helge Deller
2015-11-20 21:38 ` [PATCH 9/9] parisc: Map kernel text and data on huge pages Helge Deller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1448158878.17638.20.camel@decadent.org.uk \
    --to=ben@decadent.org.uk \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=dave.anglin@bell.net \
    --cc=deller@gmx.de \
    --cc=linux-parisc@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox