All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philip Balister <philip@balister.org>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [STABLE][PATCH] linux-omap 2.6.29: disable alignment trapping completely for omap3board
Date: Wed, 01 Apr 2009 10:34:00 -0400	[thread overview]
Message-ID: <49D37B58.9090909@balister.org> (raw)
In-Reply-To: <1238532016-3172-1-git-send-email-k.kooi@student.utwente.nl>

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

Acked-by: Philip Balister (philip@balister.org)

Koen Kooi wrote:
> From: Koen Kooi <koen@openembedded.org>
> 
> 
> Signed-off-by: Koen Kooi <koen@openembedded.org>
> ---
>  .../linux/linux-omap-2.6.29/beagleboard/defconfig  |    2 +-
>  .../linux-omap-2.6.29/fix-unaligned-access.diff    |   41 ++++++++++++++++++++
>  .../linux-omap-2.6.29/make-alignment-visible.diff  |   26 ++++++++++++
>  .../linux-omap-2.6.29/omap3-pandora/defconfig      |    2 +-
>  recipes/linux/linux-omap-2.6.29/omap3evm/defconfig |    2 +-
>  recipes/linux/linux-omap-2.6.29/omapzoom/defconfig |    2 +-
>  recipes/linux/linux-omap_2.6.29.bb                 |    4 +-
>  7 files changed, 74 insertions(+), 5 deletions(-)
>  create mode 100644 recipes/linux/linux-omap-2.6.29/fix-unaligned-access.diff
>  create mode 100644 recipes/linux/linux-omap-2.6.29/make-alignment-visible.diff
> 
> diff --git a/recipes/linux/linux-omap-2.6.29/beagleboard/defconfig b/recipes/linux/linux-omap-2.6.29/beagleboard/defconfig
> index f6c503c..2292ae2 100644
> --- a/recipes/linux/linux-omap-2.6.29/beagleboard/defconfig
> +++ b/recipes/linux/linux-omap-2.6.29/beagleboard/defconfig
> @@ -288,7 +288,7 @@ CONFIG_ZONE_DMA_FLAG=0
>  CONFIG_VIRT_TO_BUS=y
>  CONFIG_UNEVICTABLE_LRU=y
>  CONFIG_LEDS=y
> -CONFIG_ALIGNMENT_TRAP=y
> +CONFIG_ALIGNMENT_TRAP=n
>  
>  #
>  # Boot options
> diff --git a/recipes/linux/linux-omap-2.6.29/fix-unaligned-access.diff b/recipes/linux/linux-omap-2.6.29/fix-unaligned-access.diff
> new file mode 100644
> index 0000000..c82090f
> --- /dev/null
> +++ b/recipes/linux/linux-omap-2.6.29/fix-unaligned-access.diff
> @@ -0,0 +1,41 @@
> +From: Mans Rullgard <mans@mansr.com>
> +Date: Sat, 28 Mar 2009 12:54:25 +0000 (+0000)
> +Subject: NSM: Fix unaligned accesses in nsm_init_private()
> +X-Git-Url: http://git.mansr.com/?p=linux-omap;a=commitdiff_plain;h=8f2bd6fdde1ebfef57f65b6cf29b29008c23d297
> +
> +NSM: Fix unaligned accesses in nsm_init_private()
> +
> +This fixes unaligned accesses in nsm_init_private() when
> +creating nlm_reboot keys.
> +
> +Signed-off-by: Mans Rullgard <mans@mansr.com>
> +---
> +
> +diff --git a/fs/lockd/mon.c b/fs/lockd/mon.c
> +index 5e2c4d5..6d5d4a4 100644
> +--- a/fs/lockd/mon.c
> ++++ b/fs/lockd/mon.c
> +@@ -16,6 +16,8 @@
> + #include <linux/sunrpc/svc.h>
> + #include <linux/lockd/lockd.h>
> + 
> ++#include <asm/unaligned.h>
> ++
> + #define NLMDBG_FACILITY		NLMDBG_MONITOR
> + #define NSM_PROGRAM		100024
> + #define NSM_VERSION		1
> +@@ -274,10 +276,12 @@ static void nsm_init_private(struct nsm_handle *nsm)
> + {
> + 	u64 *p = (u64 *)&nsm->sm_priv.data;
> + 	struct timespec ts;
> ++	s64 ns;
> + 
> + 	ktime_get_ts(&ts);
> +-	*p++ = timespec_to_ns(&ts);
> +-	*p = (unsigned long)nsm;
> ++	ns = timespec_to_ns(&ts);
> ++	put_unaligned(ns, p);
> ++	put_unaligned((unsigned long)nsm, p + 1);
> + }
> + 
> + static struct nsm_handle *nsm_create_handle(const struct sockaddr *sap,
> diff --git a/recipes/linux/linux-omap-2.6.29/make-alignment-visible.diff b/recipes/linux/linux-omap-2.6.29/make-alignment-visible.diff
> new file mode 100644
> index 0000000..9b3958f
> --- /dev/null
> +++ b/recipes/linux/linux-omap-2.6.29/make-alignment-visible.diff
> @@ -0,0 +1,26 @@
> +From: Mans Rullgard <mans@mansr.com>
> +Date: Mon, 13 Oct 2008 19:32:16 +0000 (+0100)
> +Subject: ARM: Add prompt for CONFIG_ALIGNMENT_TRAP
> +X-Git-Url: http://git.mansr.com/?p=linux-omap;a=commitdiff_plain;h=60d60f0ca47fcf4fbb649e45aa64f5a0a4c2f2c8
> +
> +ARM: Add prompt for CONFIG_ALIGNMENT_TRAP
> +
> +This adds a prompt text for CONFIG_ALIGNMENT_TRAP, thus making it
> +visible in make *config.
> +
> +Signed-off-by: Mans Rullgard <mans@mansr.com>
> +---
> +
> +diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> +index 61314f6..18d3119 100644
> +--- a/arch/arm/Kconfig
> ++++ b/arch/arm/Kconfig
> +@@ -971,7 +971,7 @@ config LEDS_CPU
> + 	  will overrule the CPU usage LED.
> + 
> + config ALIGNMENT_TRAP
> +-	bool
> ++	bool "Enable alignment trap"
> + 	depends on CPU_CP15_MMU
> + 	default y if !ARCH_EBSA110
> + 	help
> diff --git a/recipes/linux/linux-omap-2.6.29/omap3-pandora/defconfig b/recipes/linux/linux-omap-2.6.29/omap3-pandora/defconfig
> index 5db83f0..8ac420c 100644
> --- a/recipes/linux/linux-omap-2.6.29/omap3-pandora/defconfig
> +++ b/recipes/linux/linux-omap-2.6.29/omap3-pandora/defconfig
> @@ -298,7 +298,7 @@ CONFIG_ZONE_DMA_FLAG=0
>  CONFIG_VIRT_TO_BUS=y
>  CONFIG_UNEVICTABLE_LRU=y
>  CONFIG_LEDS=y
> -CONFIG_ALIGNMENT_TRAP=y
> +CONFIG_ALIGNMENT_TRAP=n
>  
>  #
>  # Boot options
> diff --git a/recipes/linux/linux-omap-2.6.29/omap3evm/defconfig b/recipes/linux/linux-omap-2.6.29/omap3evm/defconfig
> index da5a8c4..da72671 100644
> --- a/recipes/linux/linux-omap-2.6.29/omap3evm/defconfig
> +++ b/recipes/linux/linux-omap-2.6.29/omap3evm/defconfig
> @@ -298,7 +298,7 @@ CONFIG_ZONE_DMA_FLAG=0
>  CONFIG_VIRT_TO_BUS=y
>  CONFIG_UNEVICTABLE_LRU=y
>  CONFIG_LEDS=y
> -CONFIG_ALIGNMENT_TRAP=y
> +CONFIG_ALIGNMENT_TRAP=n
>  
>  #
>  # Boot options
> diff --git a/recipes/linux/linux-omap-2.6.29/omapzoom/defconfig b/recipes/linux/linux-omap-2.6.29/omapzoom/defconfig
> index d2d2ee5..aa11eb0 100644
> --- a/recipes/linux/linux-omap-2.6.29/omapzoom/defconfig
> +++ b/recipes/linux/linux-omap-2.6.29/omapzoom/defconfig
> @@ -291,7 +291,7 @@ CONFIG_ZONE_DMA_FLAG=0
>  CONFIG_VIRT_TO_BUS=y
>  CONFIG_UNEVICTABLE_LRU=y
>  # CONFIG_LEDS is not set
> -CONFIG_ALIGNMENT_TRAP=y
> +CONFIG_ALIGNMENT_TRAP=n
>  
>  #
>  # Boot options
> diff --git a/recipes/linux/linux-omap_2.6.29.bb b/recipes/linux/linux-omap_2.6.29.bb
> index f5c20ba..a74bd62 100644
> --- a/recipes/linux/linux-omap_2.6.29.bb
> +++ b/recipes/linux/linux-omap_2.6.29.bb
> @@ -10,7 +10,7 @@ DEFAULT_PREFERENCE = "-1"
>  
>  SRCREV = "90e758af52ba803cba233fabee81176d99589f09"
>  
> -PR = "r2+gitr${SRCREV}"
> +PR = "r3+gitr${SRCREV}"
>  
>  SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git;protocol=git \
>  	   file://defconfig"
> @@ -22,6 +22,8 @@ SRC_URI_append = " \
>             file://fix-install.patch;patch=1 \
>             file://DSS2.diff;patch=1 \
>             file://0001-board-ldp-add-regulator-info-to-get-the-microSD-slo.patch;patch=1 \
> +           file://fix-unaligned-access.diff;patch=1 \
> +           file://make-alignment-visible.diff;patch=1 \
>  "
>  
>  

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3303 bytes --]

      parent reply	other threads:[~2009-04-01 14:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-31 20:40 [STABLE][PATCH] linux-omap 2.6.29: disable alignment trapping completely for omap3board Koen Kooi
2009-04-01  5:53 ` Frans Meulenbroeks
2009-04-01 14:34 ` Philip Balister [this message]

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=49D37B58.9090909@balister.org \
    --to=philip@balister.org \
    --cc=openembedded-devel@lists.openembedded.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.