Re: [PATCH] add armhf/omap

2011-06-25 Thread Ben Hutchings
On Thu, 2011-06-23 at 15:21 +0200, Sebastian Reichel wrote:
 On Thu, Jun 23, 2011 at 01:10:58PM +, Hector Oron wrote:
   There is currently a patch waiting for approval in the linux-omap
   mailinglist, which will remove this warning by using threaded
   interrupt handlers instead.
  
  Could you point me to the patch?
  I would not mind to add it to the debian-ports.org patched kernel.
 
 You can get it here:
 
 http://www.mail-archive.com/linux-omap@vger.kernel.org/msg50161.html

I've added your omap flavour definition and this patch for 2.6.39-3.

Ben.

-- 
Ben Hutchings
It is impossible to make anything foolproof because fools are so ingenious.


signature.asc
Description: This is a digitally signed message part


Re: [PATCH] add armhf/omap

2011-06-23 Thread Hector Oron
Hi,

2011/6/22 Sebastian Reichel s...@debian.org:
 On Wed, Jun 22, 2011 at 04:32:39PM +, Hector Oron wrote:

 I suspect
 [  184.049530] WARNING: at
 /home/zumbi/linux-2.6-2.6.39/debian/build/source_armhf_none/kernel/irq/handle.c:130
 handle_irq_event_percpu+0xf8/0x1f8()
 is due to missing TI firmware for Wilink (wlan+bluetooth+FM radio).

 No, you can ignore this warning. It's triggered by the twl4030-rtc
 driver. The driver enables interrupts by intention.

Right, later on I realized it was related to PMIC circuit.

 There is currently a patch waiting for approval in the linux-omap
 mailinglist, which will remove this warning by using threaded
 interrupt handlers instead.

Could you point me to the patch?
I would not mind to add it to the debian-ports.org patched kernel.

Kind regards,
-- 
 Héctor Orón  -.. . -... .. .- -.   -.. . ...- . .-.. --- .--. . .-.

free spam
-- Would you like to make a donation for Debian Conference?
   ** http://debconf11.debconf.org/payments.xhtml **
/free spam


--
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/BANLkTi=rmgs6kou+k+ufwx9un_jrun8...@mail.gmail.com



Re: [PATCH] add armhf/omap

2011-06-23 Thread Sebastian Reichel
On Thu, Jun 23, 2011 at 01:10:58PM +, Hector Oron wrote:
  There is currently a patch waiting for approval in the linux-omap
  mailinglist, which will remove this warning by using threaded
  interrupt handlers instead.
 
 Could you point me to the patch?
 I would not mind to add it to the debian-ports.org patched kernel.

You can get it here:

http://www.mail-archive.com/linux-omap@vger.kernel.org/msg50161.html

-- Sebastian


signature.asc
Description: Digital signature


Re: [PATCH] add armhf/omap

2011-06-22 Thread Hector Oron
Hello,

2011/6/11 Hector Oron hector.o...@gmail.com:

 2011/6/7 Sebastian Reichel s...@debian.org:

 I (re)moved the armhf/config changes. Here is the new version:
 http://pkg-n900.alioth.debian.org/kernel/linux-2.6-omap-v2.patch

 Patch included into patched kernel version at debian-ports.org armhf
 port, so we can test it easily.

I was able to test on pandaboard, here is dmesg output:

[0.00] Initializing cgroup subsys cpuset
[0.00] Initializing cgroup subsys cpu
[0.00] Linux version 2.6.39-2+armhf.1-omap (Debian
2.6.39-2+armhf.1) (zu...@debian.org) (gcc version 4.5.3 (Debian
4.5.3-1) ) #1 SMP Sat Jun 11 04:02:19 UTC 2011
[0.00] CPU: ARMv7 Processor [411fc092] revision 2 (ARMv7), cr=10c5387f
[0.00] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
[0.00] Machine: OMAP4 Panda board
[0.00] bootconsole [earlycon0] enabled
[0.00] Reserving 33554432 bytes SDRAM for VRAM
[0.00] Memory policy: ECC disabled, Data cache writealloc
[0.00] OMAP4430 ES2.0
[0.00] SRAM: Mapped pa 0x4030 to va 0xfe40 size: 0xe000
[0.00] On node 0 totalpages: 238080
[0.00] free_area_init_node: node 0, pgdat c04f2de0,
node_mem_map c0567000
[0.00]   Normal zone: 1536 pages used for memmap
[0.00]   Normal zone: 0 pages reserved
[0.00]   Normal zone: 180736 pages, LIFO batch:31
[0.00]   HighMem zone: 512 pages used for memmap
[0.00]   HighMem zone: 55296 pages, LIFO batch:15
[0.00] powerdomain: waited too long for powerdomain dss_pwrdm
to complete transition
[0.00] PERCPU: Embedded 7 pages/cpu @c0d6d000 s7648 r8192 d12832 u32768
[0.00] pcpu-alloc: s7648 r8192 d12832 u32768 alloc=8*4096
[0.00] pcpu-alloc: [0] 0 [0] 1
[0.00] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 236032
[0.00] Kernel command line: ro elevator=noop vram=32M
mem=456M@0x8000 mem=512M@0xA000 fixrtc quiet splash
console=ttyO2,115200n8 rootdelay earlyprintk root=/dev/mmcblk0p2
[0.00] PID hash table entries: 4096 (order: 2, 16384 bytes)
[0.00] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[0.00] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[0.00] Memory: 456MB 474MB = 930MB total
[0.00] Memory: 933284k/933284k available, 57948k reserved,
223232K highmem
[0.00] Virtual kernel memory layout:
[0.00] vector  : 0x - 0x1000   (   4 kB)
[0.00] fixmap  : 0xfff0 - 0xfffe   ( 896 kB)
[0.00] DMA : 0xffc0 - 0xffe0   (   2 MB)
[0.00] vmalloc : 0xf080 - 0xf800   ( 120 MB)
[0.00] lowmem  : 0xc000 - 0xf000   ( 768 MB)
[0.00] pkmap   : 0xbfe0 - 0xc000   (   2 MB)
[0.00] modules : 0xbf00 - 0xbfe0   (  14 MB)
[0.00]   .init : 0xc0008000 - 0xc004a000   ( 264 kB)
[0.00]   .text : 0xc004a000 - 0xc048d620   (4366 kB)
[0.00]   .data : 0xc048e000 - 0xc04f4418   ( 410 kB)
[0.00] Hierarchical RCU implementation.
[0.00]  RCU dyntick-idle grace-period acceleration is enabled.
[0.00]  RCU-based detection of stalled CPUs is disabled.
[0.00] NR_IRQS:410
[0.00] omap_hwmod: dpll_mpu_m2_ck: missing clockdomain for
dpll_mpu_m2_ck.
[0.00] OMAP clockevent source: GPTIMER1 at 32768 Hz
[0.00] sched_clock: 32 bits at 32kHz, resolution 30517ns,
wraps every 131071999ms
[0.00] Console: colour dummy device 80x30
[0.000244] Calibrating delay loop... 2007.19 BogoMIPS (lpj=7839744)
[0.070312] pid_max: default: 32768 minimum: 301
[0.070526] Security Framework initialized
[0.070556] SELinux:  Disabled at boot.
[0.070678] Mount-cache hash table entries: 512
[0.071472] Initializing cgroup subsys ns
[0.071502] ns_cgroup deprecated: consider using the
'clone_children' flag without the ns_cgroup.
[0.071533] Initializing cgroup subsys cpuacct
[0.071594] Initializing cgroup subsys memory
[0.071624] Initializing cgroup subsys devices
[0.071624] Initializing cgroup subsys freezer
[0.071655] Initializing cgroup subsys net_cls
[0.071655] Initializing cgroup subsys blkio
[0.071777] CPU: Testing write buffer coherency: ok
[0.072082] Calibrating local timer... 491.91MHz.
[0.117401] L310 cache controller enabled
[0.117431] l2x0: 16 ways, CACHE_ID 0x41c4, AUX_CTRL
0x7e47, Cache size: 1048576 B
[0.118530] CPU1: Booted secondary processor
[0.118560] CPU1: Unknown IPI message 0x1
[0.186126] Brought up 2 CPUs
[0.190307] SMP: Total of 2 processors activated (3972.37 BogoMIPS).
[0.190643] devtmpfs: initialized
[0.192535] omap_hwmod: _populate_mpu_rt_base found no _mpu_rt_va for emif_fw
[0.192565] omap_hwmod: _populate_mpu_rt_base found no _mpu_rt_va
for l3_instr
[

Re: [PATCH] add armhf/omap

2011-06-22 Thread Sebastian Reichel
On Wed, Jun 22, 2011 at 04:32:39PM +, Hector Oron wrote:
 Hello,
 
 2011/6/11 Hector Oron hector.o...@gmail.com:
 
  2011/6/7 Sebastian Reichel s...@debian.org:
 
  I (re)moved the armhf/config changes. Here is the new version:
  http://pkg-n900.alioth.debian.org/kernel/linux-2.6-omap-v2.patch
 
  Patch included into patched kernel version at debian-ports.org armhf
  port, so we can test it easily.
 
 I was able to test on pandaboard, here is dmesg output:
 
 [...]
 [  184.049499] [ cut here ]
 [  184.049530] WARNING: at
 /home/zumbi/linux-2.6-2.6.39/debian/build/source_armhf_none/kernel/irq/handle.c:130
 handle_irq_event_percpu+0xf8/0x1f8()
 [  184.049560] irq 379 handler twl_rtc_interrupt+0x0/0x90 [rtc_twl]
 enabled interrupts
 [  184.049591] Modules linked in: btsdio bluetooth arc4 ecb
 wl12xx_sdio wl12xx mac80211 smsc95xx usbnet cfg80211 mii omap_wdt
 rtc_twl rfkill leds_gpio ext4 mbcache jbd2 crc16 dm_mod ohci_hcd
 ehci_hcd
 [  184.049682] [c005604c] (unwind_backtrace+0x0/0xe4) from
 [c0087c34] (warn_slowpath_common+0x4c/0x64)
 [  184.049713] [c0087c34] (warn_slowpath_common+0x4c/0x64) from
 [c0087ccc] (warn_slowpath_fmt+0x2c/0x3c)
 [  184.049713] [c0087ccc] (warn_slowpath_fmt+0x2c/0x3c) from
 [c00ce1dc] (handle_irq_event_percpu+0xf8/0x1f8)
 [  184.049743] [c00ce1dc] (handle_irq_event_percpu+0xf8/0x1f8) from
 [c00ce31c] (handle_irq_event+0x40/0x60)
 [  184.049774] [c00ce31c] (handle_irq_event+0x40/0x60) from
 [c00d03a4] (handle_simple_irq+0x98/0xbc)
 [  184.049804] [c00d03a4] (handle_simple_irq+0x98/0xbc) from
 [c024c76c] (twl6030_irq_thread+0xe0/0x154)
 [  184.049835] [c024c76c] (twl6030_irq_thread+0xe0/0x154) from
 [c00a4ae8] (kthread+0x80/0x88)
 [  184.049835] [c00a4ae8] (kthread+0x80/0x88) from [c0050938]
 (kernel_thread_exit+0x0/0x8)
 [  184.049865] ---[ end trace 5f659a4b3123a174 ]---
 [...]
 
 I suspect
 [  184.049530] WARNING: at
 /home/zumbi/linux-2.6-2.6.39/debian/build/source_armhf_none/kernel/irq/handle.c:130
 handle_irq_event_percpu+0xf8/0x1f8()
 is due to missing TI firmware for Wilink (wlan+bluetooth+FM radio).

No, you can ignore this warning. It's triggered by the twl4030-rtc
driver. The driver enables interrupts by intention.

There is currently a patch waiting for approval in the linux-omap
mailinglist, which will remove this warning by using threaded
interrupt handlers instead.

-- Sebastian


signature.asc
Description: Digital signature


Re: [PATCH] add armhf/omap

2011-06-11 Thread Hector Oron
Hello,

2011/6/7 Sebastian Reichel s...@debian.org:

 I (re)moved the armhf/config changes. Here is the new version:
 http://pkg-n900.alioth.debian.org/kernel/linux-2.6-omap-v2.patch

Patch included into patched kernel version at debian-ports.org armhf
port, so we can test it easily.
You might want to add flash-kernel support for omap boards.

Cheers,
-- 
 Héctor Orón  -.. . -... .. .- -.   -.. . ...- . .-.. --- .--. . .-.

free spam
-- Would you like to make a donation for Debian Conference?
   ** http://debconf11.debconf.org/payments.xhtml **
/free spam


--
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/banlktinjk4hytzaybjqmeq-nus2eu2u...@mail.gmail.com



Re: [PATCH] add armhf/omap

2011-06-07 Thread Sebastian Reichel
On Sun, Jun 05, 2011 at 10:18:56PM +0200, Hector Oron wrote:
 2011/6/5 Sebastian Reichel s...@debian.org:
 
  +CONFIG_CPU_V7=y
 
  This symbol is not needed as it should be selected by ARCH symbols, i.e.
  http://lxr.linux.no/linux+v2.6.39/arch/arm/mach-omap2/Kconfig#L31
 
  If some platform being ARMv7 does not select it I would consider it a
  bug on kernel config.
 
  These were meant as better safe than sorry options. The kernel
  won't be able to boot the system if the default changes.
 
 Hence a mainline kernel bug on their build system.
 
  Sebastian, which OMAP platforms do you plan to enable?
 
  OMAP3 and OMAP4. Probably OMAP5 can also be added once there is
  linux support for it.
 
  If you mean the enabled boards: all. I only checked that all needed
  drivers are enabled for Nokia N900 and Pandaboard, though (I only
  own these devices).
 
 Yes, sorry, I meant boards. I got a Pandaboard and IGEPv2 to test with too.

I (re)moved the armhf/config changes. Here is the new version:
http://pkg-n900.alioth.debian.org/kernel/linux-2.6-omap-v2.patch

-- Sebastian


signature.asc
Description: Digital signature


Re: [PATCH] add armhf/omap

2011-06-05 Thread Hector Oron
Hello,

2011/6/5 Ben Hutchings b...@decadent.org.uk:
 On Mon, 2011-05-30 at 22:09 +0200, Sebastian Reichel wrote:

 [0] http://pkg-n900.alioth.debian.org/kernel/linux-2.6-omap.patch
 sha256 24958a765f5291c3a34edd31aeac2ec2a1756d17c2b11389b639ea19d68734be

 Could you review this, please?  Especially the changes to the common
 armhf/config.

--- debian/config/armhf/config  2011-05-30 19:21:33.0 +0200
+++ debian-omap/config/armhf/config 2011-05-25 14:01:47.0 +0200
@@ -5,6 +5,13 @@
 CONFIG_ATAGS_PROC=y
 #. Enable floating point unit
 CONFIG_VFP=y
+CONFIG_VFPv3=y

No need this symbol as CONFIG_VFPv3 default y if CPU_V7

+##
+## file: arch/arm/mm/Kconfig
+##
+CONFIG_CPU_V7=y

This symbol is not needed as it should be selected by ARCH symbols, i.e.
http://lxr.linux.no/linux+v2.6.39/arch/arm/mach-omap2/Kconfig#L31

If some platform being ARMv7 does not select it I would consider it a
bug on kernel config.

+CONFIG_ARM_THUMBEE=y

THUMBEE selects CPU_V7, but not all ARMv7 support THUMBEE (fact that I
need to check). Could you consider this symbol for the subarch
specific configuration part?

Sebastian, which OMAP platforms do you plan to enable?

Cheers,
-- 
 Héctor Orón  -.. . -... .. .- -.   -.. . ...- . .-.. --- .--. . .-.

free spam
-- Would you like to make a donation for Debian Conference?
   ** http://debconf11.debconf.org/payments.xhtml **
/free spam


--
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/BANLkTi}ucauo7svhkgklkr-6jhquo...@mail.gmail.com



Re: [PATCH] add armhf/omap

2011-06-05 Thread Sebastian Reichel
On Sun, Jun 05, 2011 at 08:23:20PM +0200, Hector Oron wrote:
 Hello,
 
 2011/6/5 Ben Hutchings b...@decadent.org.uk:
  On Mon, 2011-05-30 at 22:09 +0200, Sebastian Reichel wrote:
  [0] http://pkg-n900.alioth.debian.org/kernel/linux-2.6-omap.patch
  sha256 24958a765f5291c3a34edd31aeac2ec2a1756d17c2b11389b639ea19d68734be
 
  Could you review this, please?  Especially the changes to the common
  armhf/config.
 
 --- debian/config/armhf/config  2011-05-30 19:21:33.0 +0200
 +++ debian-omap/config/armhf/config 2011-05-25 14:01:47.0 +0200
 @@ -5,6 +5,13 @@
  CONFIG_ATAGS_PROC=y
  #. Enable floating point unit
  CONFIG_VFP=y
 +CONFIG_VFPv3=y
 
 No need this symbol as CONFIG_VFPv3 default y if CPU_V7
 
 +##
 +## file: arch/arm/mm/Kconfig
 +##
 +CONFIG_CPU_V7=y
 
 This symbol is not needed as it should be selected by ARCH symbols, i.e.
 http://lxr.linux.no/linux+v2.6.39/arch/arm/mach-omap2/Kconfig#L31
 
 If some platform being ARMv7 does not select it I would consider it a
 bug on kernel config.

These were meant as better safe than sorry options. The kernel
won't be able to boot the system if the default changes.

 +CONFIG_ARM_THUMBEE=y
 
 THUMBEE selects CPU_V7, but not all ARMv7 support THUMBEE (fact that I
 need to check). Could you consider this symbol for the subarch
 specific configuration part?

sure. I mixed up THUMB2 (which is required by armhf) and THUMBEE.

 Sebastian, which OMAP platforms do you plan to enable?

OMAP3 and OMAP4. Probably OMAP5 can also be added once there is
linux support for it.

If you mean the enabled boards: all. I only checked that all needed
drivers are enabled for Nokia N900 and Pandaboard, though (I only
own these devices).

-- Sebastian


signature.asc
Description: Digital signature


Re: [PATCH] add armhf/omap

2011-06-05 Thread Hector Oron
Hi,

2011/6/5 Sebastian Reichel s...@debian.org:

 +CONFIG_CPU_V7=y

 This symbol is not needed as it should be selected by ARCH symbols, i.e.
 http://lxr.linux.no/linux+v2.6.39/arch/arm/mach-omap2/Kconfig#L31

 If some platform being ARMv7 does not select it I would consider it a
 bug on kernel config.

 These were meant as better safe than sorry options. The kernel
 won't be able to boot the system if the default changes.

Hence a mainline kernel bug on their build system.

 Sebastian, which OMAP platforms do you plan to enable?

 OMAP3 and OMAP4. Probably OMAP5 can also be added once there is
 linux support for it.

 If you mean the enabled boards: all. I only checked that all needed
 drivers are enabled for Nokia N900 and Pandaboard, though (I only
 own these devices).

Yes, sorry, I meant boards. I got a Pandaboard and IGEPv2 to test with too.

Cheers and thanks,
-- 
 Héctor Orón  -.. . -... .. .- -.   -.. . ...- . .-.. --- .--. . .-.

free spam
-- Would you like to make a donation for Debian Conference?
   ** http://debconf11.debconf.org/payments.xhtml **
/free spam


--
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/BANLkTi=rczbx6u_qtm2opjnder8ohd_...@mail.gmail.com



Re: [PATCH] add armhf/omap

2011-06-04 Thread Ben Hutchings
On Mon, 2011-05-30 at 22:09 +0200, Sebastian Reichel wrote:
 Hi,
 
 The patch [0] adds an omap flavour under armhf.
 
 The flavour supports OMAP3 and OMAP4 based boards. I disabled OMAP2
 explicitly, because
 
  a) OMAP2 is ARMv6, which is not supported by armhf
  b) OMAP2 breaks VFP3 under OMAP3/4, which is needed by armhf
 
 
 [0] http://pkg-n900.alioth.debian.org/kernel/linux-2.6-omap.patch
 sha256 24958a765f5291c3a34edd31aeac2ec2a1756d17c2b11389b639ea19d68734be

Could you review this, please?  Especially the changes to the common
armhf/config.

Ben.

-- 
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.


signature.asc
Description: This is a digitally signed message part