From 8cc90600ea083de57ebb97795e3053c72b199e7a Mon Sep 17 00:00:00 2001 From: Nitin A Kamble Date: Tue, 29 Jan 2013 21:39:51 -0800 Subject: fri2.conf: fix boot time kernel errors The following was seen when booting the fri2: BUG: Bad page state in process loop0 pfn:3803 page:f6991700 count:0 mapcount:0 mapping: (null) index:0x0 page flags: 0x80400000(uncached) Modules linked in: emgd drm_kms_helper ip_tables x_tables arc4 minix cdc_acm iwlwifi led_class mac80211 cfg80211 firmware_class Pid: 448, comm: loop0 Not tainted 3.4.26-yocto-standard #1 Call Trace: [] bad_page+0x8f/0xe0 [] get_page_from_freelist+0x435/0x4e0 [] __alloc_pages_nodemask+0x135/0x690 [] __do_page_cache_readahead+0xe4/0x210 [] ? get_parent_ip+0xb/0x40 [] ? get_parent_ip+0xb/0x40 [] ra_submit+0x27/0x30 [] ondemand_readahead+0x137/0x230 [] ? __wait_on_bit_lock+0x61/0xa0 [] page_cache_async_readahead+0x7e/0xa0 [] __generic_file_splice_read+0x360/0x5a0 [] ? page_cache_pipe_buf_release+0x20/0x20 [] ? enqueue_task_fair+0x1ac/0x620 [] ? check_preempt_wakeup+0x144/0x220 [] ? check_preempt_curr+0x72/0x90 [] ? ttwu_stat+0x2d/0x100 [] ? get_parent_ip+0xb/0x40 [] ? get_parent_ip+0xb/0x40 [] ? sub_preempt_count+0x43/0xb0 [] ? __kunmap_atomic+0x3e/0x90 [] ? loop_make_request+0xf0/0xf0 [] ? lo_splice_actor+0x89/0xc0 [] ? security_file_permission+0x94/0xb0 [] generic_file_splice_read+0x6c/0xe0 [] ? __generic_file_splice_read+0x5a0/0x5a0 [] vfs_splice_to+0x61/0x80 [] splice_direct_to_actor+0xaa/0x1d0 [] ? loop_thread+0x510/0x510 [] loop_thread+0x2a3/0x510 [] ? do_lo_send_write+0xe0/0xe0 [] kthread+0x73/0x80 [] ? kthread_freezable_should_stop+0x50/0x50 [] kernel_thread_helper+0x6/0x10 The fri2 has 1Gb of ram, hence the kernel sets 128Mb for the allocation of vmalloc memory. The EMGD driver needs at least 256Mb of vmalloc memory to work correctly, according to the EMGD documentation This change passes the vmalloc allocation size to the kernel via the vmalloc=256MB boot parameter. Adjusting the kernel's vmalloc allocation size fixes the kernel errors. This fixes bug: [Yocto #3810] Signed-off-by: Nitin A Kamble Acked-by: Darren Hart Signed-off-by: Tom Zanussi --- meta-fri2/conf/machine/fri2.conf | 3 +++ 1 file changed, 3 insertions(+) (limited to 'meta-fri2') diff --git a/meta-fri2/conf/machine/fri2.conf b/meta-fri2/conf/machine/fri2.conf index 40f2cdca..a1b13fab 100644 --- a/meta-fri2/conf/machine/fri2.conf +++ b/meta-fri2/conf/machine/fri2.conf @@ -38,3 +38,6 @@ APPEND += "console=ttyPCH1,115200 console=tty0" # EFI boot will ignore this and use the EFI framebuffer at 800x600 APPEND += "video=vesafb vga=0x318" + +# EMGD kernel driver needs at least 256MB of vmalloc space +APPEND += "vmalloc=256MB" -- cgit v1.2.3-54-g00ecf