cell patches for 2.6.23
Subsystems (3)
cover cell patches for 2.6.23
Hi Paul,
These are some patches I'd like to get merged for 2.6.23. They have all been reviewed on either powerpc-dev or cbe-oss-dev and I hope that all comments have been addressed.
My patch queue also has one patch from Christian Krafft that I think needs some more work and I'll send that when it's ready.
The remaining pending patches I have are all spufs related, so I'll work with Jeremy to get them merged.
If no further complaints come in regarding these five patches, please pull from
git://git.kernel.org/pub/scm/linux/kernel/git/arnd/cell-2.6 for-2.6.23
Arnd <><
PATCH 1/5 Enable SPU switch notification to detect currently active SPU tasks.
From: Maynard Johnson <[email protected]>
This patch adds to the capability of spu_switch_event_register so that the caller is also notified of currently active SPU tasks. It also exports spu_switch_event_register and spu_switch_event_unregister.
arch/powerpc/platforms/cell/spufs/sched.c +28 -2
@@ -119,21 +119,47 @@ static void spu_remove_from_active_list(static BLOCKING_NOTIFIER_HEAD (spu_switch_notifier); -static void spu_switch_notify (struct spu *spu,struct spu_context *ctx) +void spu_switch_notify (struct spu *spu,struct spu_context *ctx) {blocking_notifier_call_chain (&spu_switch_notifier, ctx ? ctx->object_id :0 , spu); } +static void notify_spus_active (void ) +{ +int node; +/* Wake up the active spu_contexts. When the awakened processes +* see their "notify_active" flag is set, they will call +* spu_switch_notify(); +*/ +for (node =0 ; node <MAX_NUMNODES ; node++) { +struct spu *spu; +mutex_lock (&spu_prio->active_mutex[node]); +list_for_each_entry (spu, &spu_prio->active_list[node], list) { +struct spu_context *ctx = spu->ctx; +set_bit (SPU_SCHED_NOTIFY_ACTIVE , &ctx->sched_flags); +mb (); +wake_up_all (&ctx->stop_wq); + } +mutex_unlock (&spu_prio->active_mutex[node]); + } +} +int spu_switch_event_register (struct notifier_block * n) { -return blocking_notifier_chain_register (&spu_switch_notifier, n); +int ret; + ret =blocking_notifier_chain_register (&spu_switch_notifier, n); +if (!ret) +notify_spus_active (); +return ret; } +EXPORT_SYMBOL_GPL (spu_switch_event_register);int spu_switch_event_unregister (struct notifier_block * n) {return blocking_notifier_chain_unregister (&spu_switch_notifier, n); } +EXPORT_SYMBOL_GPL (spu_switch_event_unregister);/** * spu_bind_context - bind spu context to physical spu
arch/powerpc/platforms/cell/spufs/spufs.h +2 -0
@@ -42,6 +42,7 @@ struct spu_gang;/* ctx->sched_flags */ enum {SPU_SCHED_EXITING =0 , +SPU_SCHED_NOTIFY_ACTIVE , };struct spu_context {
@@ -202,6 +203,7 @@ void spu_acquire_saved(struct spu_contexint spu_activate (struct spu_context *ctx,unsigned long flags);void spu_deactivate (struct spu_context *ctx);void spu_yield (struct spu_context *ctx); +void spu_switch_notify (struct spu *spu,struct spu_context *ctx);void spu_start_tick (struct spu_context *ctx);void spu_stop_tick (struct spu_context *ctx);void spu_sched_tick (struct work_struct *work);
arch/powerpc/platforms/cell/spufs/run.c +14 -2
@@ -24,9 +24,11 @@ static inline int spu_stopped(struct spuu64 pte_fault; *stat = ctx->ops->status_read (ctx); -if (ctx->state !=SPU_STATE_RUNNABLE ) -return 1 ; + spu = ctx->spu; +if (ctx->state !=SPU_STATE_RUNNABLE || +test_bit (SPU_SCHED_NOTIFY_ACTIVE , &ctx->sched_flags)) +return 1 ; pte_fault = spu->dsisr & (MFC_DSISR_PTE_NOT_FOUND |MFC_DSISR_ACCESS_DENIED );return (!(*stat &0x1 ) || pte_fault || spu->class_0_pending) ?1 :0 ;
@@ -294,6 +296,7 @@ long spufs_run_spu(struct file *file, st u32 *npc, u32 *event) {int ret; +struct spu * spu;u32 status;if (mutex_lock_interruptible (&ctx->run_mutex))
@@ -314,8 +317,17 @@ long spufs_run_spu(struct file *file, st do { ret = spufs_wait(ctx->stop_wq, spu_stopped(ctx, &status)); + spu = ctx->spu; if (unlikely(ret)) break; + if (unlikely(test_bit(SPU_SCHED_NOTIFY_ACTIVE, + &ctx->sched_flags))) { + clear_bit(SPU_SCHED_NOTIFY_ACTIVE, &ctx->sched_flags); + if (!(status & SPU_STATUS_STOPPED_BY_STOP)) { + spu_switch_notify(spu, ctx); + continue; + } + } if ((status & SPU_STATUS_STOPPED_BY_STOP) && (status >> SPU_STOP_STATUS_SHIFT == 0x2104)) { ret = spu_process_callback(ctx);
--
PATCH 2/5 Add support to OProfile for profiling Cell/B.E. SPUs
In reply to Arnd BergmannFrom: Maynard Johnson <[email protected]>
This patch updates the existing arch/powerpc/oprofile/op_model_cell.c to add in the SPU profiling capabilities. In addition, a 'cell' subdirectory was added to arch/powerpc/oprofile to hold Cell-specific SPU profiling code.
arch/powerpc/configs/cell_defconfig +2 -1
@@ -1492,7 +1492,8 @@ CONFIG_HAS_IOPORT=y # Instrumentation Support # CONFIG_PROFILING=y -CONFIG_OPROFILE=y +CONFIG_OPROFILE=m +CONFIG_OPROFILE_CELL=y # CONFIG_KPROBES is not set #
arch/powerpc/oprofile/cell/pr_util.h new file +90 -0
90 lines not on this page · raw message
arch/powerpc/oprofile/cell/spu_profiler.c new file +220 -0
220 lines not on this page · raw message
arch/powerpc/oprofile/cell/spu_task_sync.c new file +464 -0
464 lines not on this page · raw message
arch/powerpc/oprofile/cell/vma_map.c new file +279 -0
279 lines not on this page · raw message
arch/powerpc/oprofile/common.c +42 -9
100 lines not on this page · raw message
arch/powerpc/oprofile/Kconfig +7 -0
@@ -15,3 +15,10 @@ config OPROFILE If unsure, say N. +config OPROFILE_CELL + bool "OProfile for Cell Broadband Engine" + depends on (SPU_FS = y && OPROFILE = m) || (SPU_FS = y && OPROFILE = y) || (SPU_FS = m && OPROFILE = m) + default y + help + Profiling of Cell BE SPUs requires special support enabled + by this option.
arch/powerpc/oprofile/Makefile +3 -1
@@ -11,7 +11,9 @@ DRIVER_OBJS := $(addprefix ../../../driv timer_int.o ) oprofile-y := $(DRIVER_OBJS) common.o backtrace.o -oprofile-$(CONFIG_PPC_CELL_NATIVE) += op_model_cell.o +oprofile-$(CONFIG_OPROFILE_CELL) += op_model_cell.o \ + cell/spu_profiler.o cell/vma_map.o \ + cell/spu_task_sync.o oprofile-$(CONFIG_PPC64) += op_model_rs64.o op_model_power4.o op_model_pa6t.o oprofile-$(CONFIG_FSL_BOOKE) += op_model_fsl_booke.o oprofile-$(CONFIG_6xx) += op_model_7450.o
arch/powerpc/oprofile/op_model_cell.c +523 -80
887 lines not on this page · raw message
arch/powerpc/platforms/cell/spufs/sched.c +3 -1
@@ -149,6 +149,7 @@ static void spu_bind_context(struct spu ctx->spu = spu; ctx->ops = &spu_hw_ops; spu->pid = current->pid; + spu->tgid = current->tgid;spu_associate_mm (spu, ctx->owner); spu->ibox_callback = spufs_ibox_callback; spu->wbox_callback = spufs_wbox_callback;
@@ -188,6 +189,7 @@ static void spu_unbind_context(struct sp spu->dma_callback =NULL ;spu_associate_mm (spu,NULL ); spu->pid =0 ; + spu->tgid =0 ; ctx->ops = &spu_backing_ops; ctx->spu =NULL ; spu->flags =0 ;
@@ -421,7 +423,7 @@ void spu_deactivate(struct spu_context * }/** -* spu_yield - yield a physical spu if others are waiting +* spu_yield - yield a physical spu if others are waiting * @ctx: spu context to yield * * Check if there is a higher priority context waiting and if yes
drivers/oprofile/buffer_sync.c +2 -1
@@ -26,8 +26,9 @@#include <linux/profile.h> #include <linux/module.h> #include <linux/fs.h> +#include <linux/oprofile.h> #include <linux/sched.h> - +#include "oprofile_stats.h" #include "event_buffer.h" #include "cpu_buffer.h"
drivers/oprofile/event_buffer.h +1 -19
@@ -19,28 +19,10 @@ void free_event_buffer(void);/* wake up the process sleeping on the event file */ void wake_up_buffer_waiter (void ); - -/* Each escaped entry is prefixed by ESCAPE_CODE -* then one of the following codes, then the -* relevant data. -*/ -#define ESCAPE_CODE ~0UL -#define CTX_SWITCH_CODE 1 -#define CPU_SWITCH_CODE 2 -#define COOKIE_SWITCH_CODE 3 -#define KERNEL_ENTER_SWITCH_CODE 4 -#define KERNEL_EXIT_SWITCH_CODE 5 -#define MODULE_LOADED_CODE 6 -#define CTX_TGID_CODE 7 -#define TRACE_BEGIN_CODE 8 -#define TRACE_END_CODE 9 - +#define INVALID_COOKIE ~0UL#define NO_COOKIE 0UL -/* add data to the event buffer */ -void add_event_entry (unsigned long data); -extern const struct file_operations event_buffer_fops;/* mutex between sync_cpu_buffers() and the
drivers/oprofile/oprof.c +26 -0
@@ -53,9 +53,23 @@ int oprofile_setup(void)* us missing task deaths and eventually oopsing * when trying to process the event buffer. */ +if (oprofile_ops.sync_start) { +int sync_ret = oprofile_ops.sync_start (); +switch (sync_ret) { +case 0 : goto post_sync; +break ; +case 1 : goto do_generic; +break ; +case -1 : goto out3; +break ; +default : goto out3; + } + } +do_generic:if ((err =sync_start ())) goto out3; +post_sync: is_setup =1 ;mutex_unlock (&start_mutex);return 0 ;
@@ -118,7 +132,19 @@ out:void oprofile_shutdown (void ) {mutex_lock (&start_mutex); +if (oprofile_ops.sync_stop) { +int sync_ret = oprofile_ops.sync_stop (); +switch (sync_ret) { +case 0 : goto post_sync; +break ; +case 1 : goto do_generic; +break ; +default : goto post_sync; + } + } +do_generic:sync_stop (); +post_sync:if (oprofile_ops.shutdown) oprofile_ops.shutdown (); is_setup =0 ;
include/asm-powerpc/oprofile_impl.h +6 -4
@@ -39,14 +39,16 @@ struct op_system_config {/* Per-arch configuration */ struct op_powerpc_model { -void (*reg_setup) (struct op_counter_config *, +int (*reg_setup) (struct op_counter_config *,struct op_system_config *,int num_counters); -void (*cpu_setup) (struct op_counter_config *); -void (*start) (struct op_counter_config *); -void (*global_start) (struct op_counter_config *); +int (*cpu_setup) (struct op_counter_config *); +int (*start) (struct op_counter_config *); +int (*global_start) (struct op_counter_config *);void (*stop) (void );void (*global_stop) (void ); +int (*sync_start)(void ); +int (*sync_stop)(void );void (*handle_interrupt) (struct pt_regs *,struct op_counter_config *);int num_counters;
include/asm-powerpc/spu.h +15 -0
@@ -129,6 +129,7 @@ struct spu {struct spu_runqueue *rq;unsigned long long timestamp;pid_t pid; +pid_t tgid;int class_0_pending;spinlock_t register_lock;
@@ -172,6 +173,20 @@ extern void spu_associate_mm(struct spustruct mm_struct ;extern void spu_flush_all_slbs (struct mm_struct *mm); +/* This interface allows a profiler (e.g., OProfile) to store a ref +* to spu context information that it creates. This caching technique +* avoids the need to recreate this information after a save/restore operation. +* +* Assumes the caller has already incremented the ref count to +* profile_info; then spu_context_destroy must call kref_put +* on prof_info_kref. +*/ +void spu_set_profile_private_kref (struct spu_context * ctx, +struct kref * prof_info_kref, +void (* prof_info_release) (struct kref * kref)); + +void *spu_get_profile_private_kref (struct spu_context * ctx); +/* system callbacks from the SPU */ struct spu_syscall_block {u64 nr_ret;
include/linux/oprofile.h +35 -0
@@ -17,6 +17,26 @@#include <linux/spinlock.h> #include <asm/atomic.h> +/* Each escaped entry is prefixed by ESCAPE_CODE +* then one of the following codes, then the +* relevant data. +* These #defines live in this file so that arch-specific +* buffer sync'ing code can access them. +*/ +#define ESCAPE_CODE ~0UL +#define CTX_SWITCH_CODE 1 +#define CPU_SWITCH_CODE 2 +#define COOKIE_SWITCH_CODE 3 +#define KERNEL_ENTER_SWITCH_CODE 4 +#define KERNEL_EXIT_SWITCH_CODE 5 +#define MODULE_LOADED_CODE 6 +#define CTX_TGID_CODE 7 +#define TRACE_BEGIN_CODE 8 +#define TRACE_END_CODE 9 +#define XEN_ENTER_SWITCH_CODE 10 +#define SPU_PROFILING_CODE 11 +#define SPU_CTX_SWITCH_CODE 12 +struct super_block ;struct dentry ;struct file_operations ;
@@ -35,6 +55,14 @@ struct oprofile_operations {int (*start)(void );/* Stop delivering interrupts. */ void (*stop)(void ); +/* Arch-specific buffer sync functions. +* Return value = 0: Success +* Return value = -1: Failure +* Return value = 1: Run generic sync function +*/ +int (*sync_start)(void ); +int (*sync_stop)(void ); +/* Initiate a stack backtrace. Optional. */ void (*backtrace)(struct pt_regs *const regs,unsigned int depth);/* CPU identification string. */
@@ -56,6 +84,13 @@ int oprofile_arch_init(struct oprofile_ovoid oprofile_arch_exit (void );/** +* Add data to the event buffer. +* The data passed is free-form, but typically consists of +* file offsets, dcookies, context information, and ESCAPE codes. +*/ +void add_event_entry (unsigned long data); + +/** * Add a sample. This may be called from any context. Pass * smp_processor_id() as cpu. */
arch/powerpc/kernel/time.c +1 -0
@@ -122,6 +122,7 @@ extern struct timezone sys_tz;static long timezone_offset;unsigned long ppc_proc_freq; +EXPORT_SYMBOL (ppc_proc_freq);unsigned long ppc_tb_freq; static u64 tb_last_jiffy __cacheline_aligned_in_smp;
arch/powerpc/platforms/cell/spufs/spufs.h +3 -1
@@ -80,9 +80,11 @@ struct spu_context {struct list_head gang_list;struct spu_gang *gang; +struct kref *prof_priv_kref; +void (* prof_priv_release) (struct kref *kref);/* scheduler fields */ -struct list_head rq; +struct list_head rq;struct delayed_work sched_work;unsigned long sched_flags;unsigned long rt_priority;
arch/powerpc/platforms/cell/spufs/context.c +20 -0
@@ -22,6 +22,7 @@#include <linux/fs.h> #include <linux/mm.h> +#include <linux/module.h> #include <linux/slab.h> #include <asm/spu.h> #include <asm/spu_csa.h>
@@ -75,6 +76,8 @@ void destroy_spu_context(struct kref *krspu_fini_csa (&ctx->csa);if (ctx->gang)spu_gang_remove_ctx (ctx->gang, ctx); +if (ctx->prof_priv_kref) +kref_put (ctx->prof_priv_kref, ctx->prof_priv_release);BUG_ON (!list_empty (&ctx->rq));kfree (ctx); }
@@ -162,3 +165,20 @@ void spu_acquire_saved(struct spu_contexif (ctx->state !=SPU_STATE_SAVED )spu_deactivate (ctx); } + +void spu_set_profile_private_kref (struct spu_context * ctx, +struct kref * prof_info_kref, +void (* prof_info_release) (struct kref * kref)) +{ + ctx->prof_priv_kref = prof_info_kref; + ctx->prof_priv_release = prof_info_release; +} +EXPORT_SYMBOL_GPL (spu_set_profile_private_kref); + +void *spu_get_profile_private_kref (struct spu_context * ctx) +{ +return ctx->prof_priv_kref; +} +EXPORT_SYMBOL_GPL (spu_get_profile_private_kref); + +
include/linux/dcookies.h +1 -0
@@ -12,6 +12,7 @@#ifdef CONFIG_PROFILING +#include <linux/dcache.h> #include <linux/types.h> struct dcookie_user ;
include/linux/elf-em.h +2 -1
@@ -20,7 +20,8 @@#define EM_PARISC 15/* HPPA */ #define EM_SPARC32PLUS 18/* Sun's "v8plus" */ #define EM_PPC 20/* PowerPC */ -#define EM_PPC64 21/* PowerPC64 */ +#define EM_PPC64 21/* PowerPC64 */ +#define EM_SPU 23/* Cell BE SPU */ #define EM_SH 42/* SuperH */ #define EM_SPARCV9 43/* SPARC v9 64-bit */ #define EM_IA_64 50/* HP/Intel IA-64 */
arch/powerpc/oprofile/op_model_rs64.c +7 -3
@@ -88,7 +88,7 @@ static unsigned long reset_value[OP_MAX_static int num_counters; -static void rs64_reg_setup (struct op_counter_config *ctr, +static int rs64_reg_setup (struct op_counter_config *ctr,struct op_system_config *sys,int num_ctrs) {
@@ -100,9 +100,10 @@ static void rs64_reg_setup(struct op_cou reset_value[i] =0x80000000UL - ctr[i].count;/* XXX setup user and kernel profiling */ +return 0 ; } -static void rs64_cpu_setup (struct op_counter_config *ctr) +static int rs64_cpu_setup (struct op_counter_config *ctr) {unsigned int mmcr0;
@@ -125,9 +126,11 @@ static void rs64_cpu_setup(struct op_cou mfspr(SPRN_MMCR0));dbg ("setup on cpu %d, mmcr1 %lx\n" ,smp_processor_id (),mfspr (SPRN_MMCR1 )); + +return 0 ; } -static void rs64_start (struct op_counter_config *ctr) +static int rs64_start (struct op_counter_config *ctr) {int i;unsigned int mmcr0;
@@ -155,6 +158,7 @@ static void rs64_start(struct op_countermtspr (SPRN_MMCR0 , mmcr0);dbg ("start on cpu %d, mmcr0 %x\n" ,smp_processor_id (), mmcr0); +return 0 ; }static void rs64_stop (void )
arch/powerpc/oprofile/op_model_power4.c +8 -3
@@ -30,7 +30,7 @@ static u32 mmcr0_val;static u64 mmcr1_val;static u64 mmcra_val; -static void power4_reg_setup (struct op_counter_config *ctr, +static int power4_reg_setup (struct op_counter_config *ctr,struct op_system_config *sys,int num_ctrs) {
@@ -58,6 +58,8 @@ static void power4_reg_setup(struct op_c mmcr0_val &= ~MMCR0_PROBLEM_DISABLE ; else mmcr0_val |= MMCR0_PROBLEM_DISABLE; + +return 0 ; }extern void ppc64_enable_pmcs (void );
@@ -82,7 +84,7 @@ static inline int mmcra_must_set_sample(return 0 ; } -static void power4_cpu_setup (struct op_counter_config *ctr) +static int power4_cpu_setup (struct op_counter_config *ctr) {unsigned int mmcr0 = mmcr0_val;unsigned long mmcra = mmcra_val;
@@ -109,9 +111,11 @@ static void power4_cpu_setup(struct op_c mfspr(SPRN_MMCR1));dbg ("setup on cpu %d, mmcra %lx\n" ,smp_processor_id (),mfspr (SPRN_MMCRA )); + +return 0 ; } -static void power4_start (struct op_counter_config *ctr) +static int power4_start (struct op_counter_config *ctr) {int i;unsigned int mmcr0;
@@ -146,6 +150,7 @@ static void power4_start(struct op_count oprofile_running =1 ;dbg ("start on cpu %d, mmcr0 %x\n" ,smp_processor_id (), mmcr0); +return 0 ; }static void power4_stop (void )
--
Re: [Cbe-oss-dev] [patch 2/5] Add support to OProfile for profiling Cell/B.E. SPUs
Quoted 69 lines
arch/powerpc/oprofile/cell/spu_profiler.c new file +69
-0+static enum hrtimer_restart profile_spus (struct hrtimer * timer) +{ +ktime_t kt; +int cpu, node, k, num_samples, spu_num; + +if (!spu_prof_running) + goto stop; + +for_each_online_cpu (cpu) { +if (cbe_get_hw_thread_id (cpu)) +continue ; + + node =cbe_cpu_to_node (cpu); + +/* There should only be on kernel thread at a time processing +* the samples. In the very unlikely case that the processing +* is taking a very long time and multiple kernel threads are +* started to process the samples. Make sure only one kernel +* thread is working on the samples array at a time. The +* sample array must be loaded and then processed for a given +* cpu. The sample array is not per cpu. +*/ +spin_lock_irqsave (&sample_array_lock, + sample_array_lock_flags); + num_samples =cell_spu_pc_collection (cpu); + +if (num_samples ==0 ) { +spin_unlock_irqrestore (&sample_array_lock, + sample_array_lock_flags); +continue ; + } + +for (k =0 ; k <SPUS_PER_NODE ; k++) { + spu_num = k + (node *SPUS_PER_NODE ); +spu_sync_buffer (spu_num, + samples + (k *TRACE_ARRAY_SIZE ), + num_samples); + } + +spin_unlock_irqrestore (&sample_array_lock, + sample_array_lock_flags); + + } +smp_wmb (); + + kt =ktime_set (0 , profiling_interval); +if (!spu_prof_running) + goto stop; +hrtimer_forward (timer, timer->base->get_time (), kt); +return HRTIMER_RESTART ; + + stop: +printk (KERN_INFO "SPU_PROF: spu-prof timer ending\n" ); +return HRTIMER_NORESTART ; +} + +static struct hrtimer timer; +/* +* Entry point for SPU profiling. +* NOTE: SPU profiling is done system-wide, not per-CPU. +* +* cycles_reset is the count value specified by the user when +* setting up OProfile to count SPU_CYCLES. +*/ +void start_spu_profiling (unsigned int cycles_reset) { + +ktime_t kt; + + pr_debug("timer resolution: %lu\n",
arch/powerpc/oprofile/cell/spu_profiler.c line 209
Quoted 10 lines
arch/powerpc/oprofile/cell/spu_profiler.c new file +10
-0+ TICK_NSEC); + kt =ktime_set (0 , profiling_interval); +hrtimer_init (&timer,CLOCK_MONOTONIC ,HRTIMER_MODE_REL ); + timer.expires = kt; + timer.function = profile_spus; + +/* Allocate arrays for collecting SPU PC samples */ + samples = (u32 *)kzalloc (SPUS_PER_NODE * +TRACE_ARRAY_SIZE *sizeof (u32),GFP_KERNEL ); +
- Unnecessary cast for kzalloc().
- Allocation failure is ignored here. But there is no error handling in timer fuction (profile_spus), too.
Quoted 4 lines
arch/powerpc/oprofile/cell/spu_profiler.c new file +4
-0+ spu_prof_running =1 ; +hrtimer_start (&timer, kt,HRTIMER_MODE_REL ); +} +
Re: [Cbe-oss-dev] [patch 2/5] Add support to OProfile for profiling Cell/B.E. SPUs
Quoted 4 lines · On Wednesday 20 June 2007, [email protected] wrote:
Quoted 4 lines
+
+=A0=A0=A0=A0=A0/* Allocate arrays for collecting SPU PC samples */ +=A0=A0=A0=A0=A0samples =3D (u32 *) kzalloc(SPUS_PER_NODE * +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0 =A0TRACE_ARRAY_SIZE * sizeof(u32), GFP_KERNEL);
Quoted 6 lines
Quoted 1 line
+
=20
=A0- Unnecessary cast forkzalloc().
=20
=A0- Allocation failure is ignored here. But there is no error handling =A0 =A0in timer fuction (profile_spus), too.
Right. Bob, can you make a patch to remove the case and make sure that we never access the sample array when the allocation has failed?
Arnd <><
PATCH 3/5 cell: updated driver for DDR2 memory on AXON
In reply to Arnd BergmannFrom: Maxim Shchetynin <[email protected]>
The Axon bridge chip used on new Cell/B.E. based blade servers comes with a DDR2 memory controller that can be used to attach cheap memory modules, as opposed to the high-speed XDR memory that is used by the CPU itself.
Since the memory controller does not participate in the cache coherency protocol, we can not use the memory direcly for Linux applications, but by providing a block device it can be used for swap space, temporary file storage and through the use of the direct_access block device operation for mapping into user addresses, when it is mounted with an appropriate file system
arch/powerpc/platforms/Kconfig +10 -0
@@ -250,4 +250,14 @@ config CPM2 you wish to build a kernel for a machine with a CPM2 coprocessor on it (826x, 827x, 8560). +config AXON_RAM + tristate "Axon DDR2 memory device driver" + depends on PPC_IBM_CELL_BLADE + default m + help + It registers one block device per Axon's DDR2 memory bank found + on a system. Block devices are called axonram?, their major and + minor numbers are available in /proc/devices, /proc/partitions or + in /sys/block/axonram?/dev. + endmenu
arch/powerpc/sysdev/Makefile +1 -0
@@ -18,6 +18,7 @@ obj-$(CONFIG_TSI108_BRIDGE) += tsi108_pc obj-$(CONFIG_QUICC_ENGINE) += qe_lib/ mv64x60-$(CONFIG_PCI) += mv64x60_pci.o obj-$(CONFIG_MV64X60) += $(mv64x60-y) mv64x60_pic.o mv64x60_dev.o +obj-$(CONFIG_AXON_RAM) += axonram.o # contains only the suspend handler for time obj-$(CONFIG_PM) += timer.o
arch/powerpc/sysdev/axonram.c new file +394 -0
394 lines not on this page · raw message
--
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [Cbe-oss-dev] [patch 3/5] cell: updated driver for DDR2 memory on AXON
Quoted 8 lines · Akinobu Mita
arch/powerpc/sysdev/axonram.c line 219
Quoted 5 lines
arch/powerpc/sysdev/axonram.c new file +5
-0+if (of_address_to_resource (device->node,0 , &resource) !=0 ) { +dev_err (&device->dev,"Cannot access device tree\n" ); + rc = -EFAULT ; + goto failed; + }
of_address_to_resource()returns error code on failure:
Quoted 7 lines
rc = of_address_to_resource(device->node, 0, &resource); if (rc) { dev_err(&device->dev, "Cannot access device tree\n"); goto failed; }is better.
Right.
Quoted 10 lines
Quoted 10 lines
arch/powerpc/sysdev/axonram.c new file +10
-0+ bank->ph_addr = resource.start; + bank->io_addr = (unsigned long )ioremap_flags ( + bank->ph_addr, bank->size, _PAGE_NO_CACHE); +if (bank->io_addr ==0 ) { +dev_err (&device->dev,"ioremap() failed\n" ); + rc = -EFAULT ; + goto failed; + } + + bank->disk =alloc_disk (AXON_RAM_MINORS_PER_DISK );
Quoted 8 lines
arch/powerpc/sysdev/axonram.c line 247
Quoted 5 lines
arch/powerpc/sysdev/axonram.c new file +5
-0+if (bank->disk ==NULL ) { +dev_err (&device->dev,"Cannot register disk\n" ); + rc = -EFAULT ; + goto failed; + }
-ENOMEMis better than-EFAULT. Becausealloc_disk()failure happens only when it runs out of memory.
yes. EFAULT should only be used when an access to user memory has failed, so it's wrong practically everywhere in here, your other comments are obviously correct as well.
Arnd <><
PATCH 4/5 cell: saving spus information for kexec crash
In reply to Arnd BergmannFrom: Andre Detsch <[email protected]>
This patch adds support for investigating spus information after a kernel crash event, through kdump vmcore file. Implementation is based on xmon code, but the new functionality was kept independent from xmon.
arch/powerpc/kernel/crash.c +67 -0
@@ -219,6 +219,70 @@ void crash_kexec_secondary(struct pt_reg cpus_in_sr =CPU_MASK_NONE ; }#endif +#ifdef CONFIG_SPU_BASE + +#include <asm/spu.h> +#include <asm/spu_priv1.h> + +struct crash_spu_info { +struct spu *spu; +u32 saved_spu_runcntl_RW; +u32 saved_spu_status_R; +u32 saved_spu_npc_RW; +u64 saved_mfc_sr1_RW; +u64 saved_mfc_dar; +u64 saved_mfc_dsisr; +}; + +#define CRASH_NUM_SPUS 16/* Enough for current hardware */ +static struct crash_spu_info crash_spu_info[CRASH_NUM_SPUS ]; + +static void crash_kexec_stop_spus (void ) +{ +struct spu *spu; +int i; +u64 tmp; + +for (i =0 ; i <CRASH_NUM_SPUS ; i++) { +if (!crash_spu_info[i].spu) +continue ; + + spu = crash_spu_info[i].spu; + + crash_spu_info[i].saved_spu_runcntl_RW = +in_be32 (&spu->problem->spu_runcntl_RW); + crash_spu_info[i].saved_spu_status_R = +in_be32 (&spu->problem->spu_status_R); + crash_spu_info[i].saved_spu_npc_RW = +in_be32 (&spu->problem->spu_npc_RW); + + crash_spu_info[i].saved_mfc_dar =spu_mfc_dar_get (spu); + crash_spu_info[i].saved_mfc_dsisr =spu_mfc_dsisr_get (spu); + tmp =spu_mfc_sr1_get (spu); + crash_spu_info[i].saved_mfc_sr1_RW = tmp; + + tmp &= ~MFC_STATE1_MASTER_RUN_CONTROL_MASK ; +spu_mfc_sr1_set (spu, tmp); + +__delay (200 ); + } +} + +void crash_register_spus (struct list_head *list) +{ +struct spu *spu; + +list_for_each_entry (spu, list, full_list) { +if (spu->number >=CRASH_NUM_SPUS ) { +WARN_ON (1 ); +continue ; + } + + crash_spu_info[spu->number].spu = spu; + } +} + +#endif /* CONFIG_SPU_BASE */ void default_machine_crash_shutdown (struct pt_regs *regs) {
@@ -254,6 +318,9 @@ void default_machine_crash_shutdown(strucrash_save_cpu (regs, crashing_cpu);crash_kexec_prepare_cpus (crashing_cpu);cpu_set (crashing_cpu, cpus_in_crash); +#ifdef CONFIG_SPU_BASE +crash_kexec_stop_spus (); +#endif if (ppc_md.kexec_cpu_down) ppc_md.kexec_cpu_down (1 ,0 ); }
include/asm-powerpc/spu.h +4 -0
@@ -166,6 +166,10 @@ int spu_irq_class_0_bottom(struct spu *sint spu_irq_class_1_bottom (struct spu *spu);void spu_irq_setaffinity (struct spu *spu,int cpu); +#ifdef CONFIG_KEXEC +void crash_register_spus (struct list_head *list); +#endif +extern void spu_invalidate_slbs (struct spu *spu);extern void spu_associate_mm (struct spu *spu,struct mm_struct *mm);
arch/powerpc/platforms/cell/spu_base.c +3 -0
@@ -610,6 +610,9 @@ static int __init init_spu_base(void) }xmon_register_spus (&spu_full_list); +#ifdef CONFIG_KEXEC +crash_register_spus (&spu_full_list); +#endif return 0 ;
--
Re: [Cbe-oss-dev] [patch 4/5] cell: saving spus information for kexec crash
Quoted 10 lines · Arnd Bergmann
plain text document attachment (cell-spus-info-kexec-crash-1.diff)
From: Andre Detsch <[email protected]>
This patch adds support for investigating spus information after a kernel crash event, through kdump vmcore file. Implementation is based on xmon code, but the new functionality was kept independent from xmon.Signed-off-by Lucio Jose Herculano Correia <[email protected]>Signed-off-by Andre Detsch <[email protected]>Signed-off-by Arnd Bergmann <[email protected]>
I'd like to have this patch share the emergency stopping logic with the xmon code, I'll try and get a patch done in the next few days.
cheers
Quoted 121 lines
Index:
linux-2.6/arch/powerpc/kernel/crash.c
===================================================================arch/powerpc/kernel/crash.c +67
-0@@ -219,6 +219,70 @@ void crash_kexec_secondary(struct pt_reg cpus_in_sr =CPU_MASK_NONE ; }#endif +#ifdef CONFIG_SPU_BASE + +#include <asm/spu.h> +#include <asm/spu_priv1.h> + +struct crash_spu_info { +struct spu *spu; +u32 saved_spu_runcntl_RW; +u32 saved_spu_status_R; +u32 saved_spu_npc_RW; +u64 saved_mfc_sr1_RW; +u64 saved_mfc_dar; +u64 saved_mfc_dsisr; +}; + +#define CRASH_NUM_SPUS 16/* Enough for current hardware */ +static struct crash_spu_info crash_spu_info[CRASH_NUM_SPUS ]; + +static void crash_kexec_stop_spus (void ) +{ +struct spu *spu; +int i; +u64 tmp; + +for (i =0 ; i <CRASH_NUM_SPUS ; i++) { +if (!crash_spu_info[i].spu) +continue ; + + spu = crash_spu_info[i].spu; + + crash_spu_info[i].saved_spu_runcntl_RW = +in_be32 (&spu->problem->spu_runcntl_RW); + crash_spu_info[i].saved_spu_status_R = +in_be32 (&spu->problem->spu_status_R); + crash_spu_info[i].saved_spu_npc_RW = +in_be32 (&spu->problem->spu_npc_RW); + + crash_spu_info[i].saved_mfc_dar =spu_mfc_dar_get (spu); + crash_spu_info[i].saved_mfc_dsisr =spu_mfc_dsisr_get (spu); + tmp =spu_mfc_sr1_get (spu); + crash_spu_info[i].saved_mfc_sr1_RW = tmp; + + tmp &= ~MFC_STATE1_MASTER_RUN_CONTROL_MASK ; +spu_mfc_sr1_set (spu, tmp); + +__delay (200 ); + } +} + +void crash_register_spus (struct list_head *list) +{ +struct spu *spu; + +list_for_each_entry (spu, list, full_list) { +if (spu->number >=CRASH_NUM_SPUS ) { +WARN_ON (1 ); +continue ; + } + + crash_spu_info[spu->number].spu = spu; + } +} + +#endif /* CONFIG_SPU_BASE */ void default_machine_crash_shutdown (struct pt_regs *regs) {@@ -254,6 +318,9 @@ void default_machine_crash_shutdown(strucrash_save_cpu (regs, crashing_cpu);crash_kexec_prepare_cpus (crashing_cpu);cpu_set (crashing_cpu, cpus_in_crash); +#ifdef CONFIG_SPU_BASE +crash_kexec_stop_spus (); +#endif if (ppc_md.kexec_cpu_down) ppc_md.kexec_cpu_down (1 ,0 ); }Index:
linux-2.6/include/asm-powerpc/spu.h
===================================================================include/asm-powerpc/spu.h +4
-0@@ -166,6 +166,10 @@ int spu_irq_class_0_bottom(struct spu *sint spu_irq_class_1_bottom (struct spu *spu);void spu_irq_setaffinity (struct spu *spu,int cpu); +#ifdef CONFIG_KEXEC +void crash_register_spus (struct list_head *list); +#endif +extern void spu_invalidate_slbs (struct spu *spu);extern void spu_associate_mm (struct spu *spu,struct mm_struct *mm);Index:
linux-2.6/arch/powerpc/platforms/cell/spu_base.c
===================================================================arch/powerpc/platforms/cell/spu_base.c +3
-1@@ -610,6 +610,9 @@ static int __init init_spu_base(void) }xmon_register_spus (&spu_full_list); +#ifdef CONFIG_KEXEC +crash_register_spus (&spu_full_list); +#endif return 0 ; --_______________________________________________
cbe-oss-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/cbe-oss-dev
Signature · 8 lines
Michael Ellerman OzLabs, IBM Australia Development Lab wwweb: http://michael.ellerman.id.au phone: +61 2 6212 1183 (tie line 70 21183) We do not inherit the earth from our ancestors, we borrow it from our children. - S.M.A.R.T Person
Re: [Cbe-oss-dev] [patch 4/5] cell: saving spus information for kexec crash
Quoted 8 lines · Michael Ellerman
Quoted 7 lines · Arnd Bergmann
plain text document attachment (cell-spus-info-kexec-crash-1.diff)
From: Andre Detsch <[email protected]>
This patch adds support for investigating spus information after a kernel crash event, through kdump vmcore file. Implementation is based on xmon code, but the new functionality was kept independent from xmon.
Quoted 8 lines
Quoted 3 lines
Signed-off-by Lucio Jose Herculano Correia <[email protected]>Signed-off-by Andre Detsch <[email protected]>Signed-off-by Arnd Bergmann <[email protected]>I'd like to have this patch share the emergency stopping logic with the xmon code, I'll try and get a patch done in the next few days.
Hi Michael,
What aspect of the patch do you think would benefit from sharing logic with xmon? The structures (struct crash_spu + crash_register_spus function) or the stop spus logic itself (crash_kexec_stop_spus)? Or both?
My first approach was actually to use the same structure and code as xmon (as you might remember from an private email I've sent before posting the patch). However, talking with Luke, we decided to keep xmon and crash data independent from each other, since he was interested on eventually allowing xmon to be run before the second kernel gets loaded.
So, having a separate structure for crash info would allow us to save
the exact state when the crash occurred, no matter of what the user did while running xmon.
Best regards,
--
Andre Detsch
PATCH 5/5 Update cell_defconfig
In reply to Arnd BergmannFrom: Arnd Bergmann <[email protected]>
---
arch/powerpc/configs/cell_defconfig +149 -176
@@ -1,9 +1,23 @@ # # Automatically generated make config: don't edit -# Linux kernel version: 2.6.21-rc6 -# Mon Apr 23 20:46:48 2007 +# Linux kernel version: 2.6.22-rc4 +# Sat Jun 16 20:45:34 2007 # CONFIG_PPC64=y + +# +# Processor support +# +# CONFIG_POWER4_ONLY is not set +CONFIG_POWER3=y +CONFIG_POWER4=y +CONFIG_PPC_FPU=y +CONFIG_ALTIVEC=y +CONFIG_PPC_STD_MMU=y +CONFIG_PPC_MM_SLICES=y +CONFIG_VIRT_CPU_ACCOUNTING=y +CONFIG_SMP=y +CONFIG_NR_CPUS=4 CONFIG_64BIT=y CONFIG_PPC_MERGE=y CONFIG_MMU=y
@@ -27,23 +41,10 @@ CONFIG_PPC_UDBG_16550=y CONFIG_AUDIT_ARCH=y CONFIG_GENERIC_BUG=y # CONFIG_DEFAULT_UIMAGE is not set - -# -# Processor support -# -# CONFIG_POWER4_ONLY is not set -CONFIG_POWER3=y -CONFIG_POWER4=y -CONFIG_PPC_FPU=y # CONFIG_PPC_DCR_NATIVE is not set CONFIG_PPC_DCR_MMIO=y CONFIG_PPC_DCR=y CONFIG_PPC_OF_PLATFORM_PCI=y -CONFIG_ALTIVEC=y -CONFIG_PPC_STD_MMU=y -CONFIG_VIRT_CPU_ACCOUNTING=y -CONFIG_SMP=y -CONFIG_NR_CPUS=4 CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" #
@@ -69,6 +70,7 @@ CONFIG_SYSVIPC_SYSCTL=y # CONFIG_AUDIT is not set CONFIG_IKCONFIG=y CONFIG_IKCONFIG_PROC=y +CONFIG_LOG_BUF_SHIFT=15 CONFIG_CPUSETS=y CONFIG_SYSFS_DEPRECATED=y # CONFIG_RELAY is not set
@@ -87,14 +89,19 @@ CONFIG_BUG=y CONFIG_ELF_CORE=y CONFIG_BASE_FULL=y CONFIG_FUTEX=y +CONFIG_ANON_INODES=y CONFIG_EPOLL=y +CONFIG_SIGNALFD=y +CONFIG_TIMERFD=y +CONFIG_EVENTFD=y CONFIG_SHMEM=y -CONFIG_SLAB=y CONFIG_VM_EVENT_COUNTERS=y +CONFIG_SLAB=y +# CONFIG_SLUB is not set +# CONFIG_SLOB is not set CONFIG_RT_MUTEXES=y # CONFIG_TINY_SHMEM is not set CONFIG_BASE_SMALL=0 -# CONFIG_SLOB is not set # # Loadable module support
@@ -131,7 +138,6 @@ CONFIG_DEFAULT_IOSCHED="anticipatory" # CONFIG_PPC_MULTIPLATFORM=y # CONFIG_EMBEDDED6xx is not set -# CONFIG_APUS is not set # CONFIG_PPC_PSERIES is not set # CONFIG_PPC_ISERIES is not set # CONFIG_PPC_MPC52xx is not set
@@ -151,7 +157,11 @@ CONFIG_PS3_HTAB_SIZE=20 CONFIG_PS3_USE_LPAR_ADDR=y CONFIG_PS3_VUART=y CONFIG_PS3_PS3AV=y -CONFIG_PS3_SYS_MANAGER=y +CONFIG_PS3_SYS_MANAGER=m +CONFIG_PS3_STORAGE=y +CONFIG_PS3_DISK=y +CONFIG_PS3_ROM=m +CONFIG_PS3_FLASH=m CONFIG_PPC_CELL=y CONFIG_PPC_CELL_NATIVE=y CONFIG_PPC_IBM_CELL_BLADE=y
@@ -163,9 +173,17 @@ CONFIG_SPU_FS=m CONFIG_SPU_BASE=y CONFIG_CBE_RAS=y CONFIG_CBE_THERM=m +CONFIG_CBE_CPUFREQ=m +# CONFIG_PQ2ADS is not set CONFIG_PPC_NATIVE=y CONFIG_UDBG_RTAS_CONSOLE=y CONFIG_PPC_UDBG_BEAT=y +CONFIG_PPC_SYSTEMSIM=y +# CONFIG_SYSTEMSIM_IDLE is not set +# CONFIG_SYSTEMSIM_BOOT is not set +CONFIG_MPIC=y +# CONFIG_MPIC_WEIRD is not set +# CONFIG_PPC_I8259 is not set # CONFIG_U3_DART is not set CONFIG_PPC_RTAS=y # CONFIG_RTAS_ERROR_LOGGING is not set
@@ -177,9 +195,24 @@ CONFIG_MMIO_NVRAM=y # CONFIG_PPC_970_NAP is not set CONFIG_PPC_INDIRECT_IO=y CONFIG_GENERIC_IOMAP=y -# CONFIG_CPU_FREQ_PMAC64 is not set -# CONFIG_WANT_EARLY_SERIAL is not set -CONFIG_MPIC=y +CONFIG_CPU_FREQ=y +CONFIG_CPU_FREQ_TABLE=m +CONFIG_CPU_FREQ_DEBUG=y +CONFIG_CPU_FREQ_STAT=m +CONFIG_CPU_FREQ_STAT_DETAILS=y +CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y +# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set +CONFIG_CPU_FREQ_GOV_PERFORMANCE=y +CONFIG_CPU_FREQ_GOV_POWERSAVE=m +CONFIG_CPU_FREQ_GOV_USERSPACE=m +CONFIG_CPU_FREQ_GOV_ONDEMAND=m +CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m + +# +# CPU Frequency drivers +# +# CONFIG_CPM2 is not set +CONFIG_AXON_RAM=m # # Kernel options
@@ -224,12 +257,14 @@ CONFIG_RESOURCES_64BIT=y CONFIG_ZONE_DMA_FLAG=1 CONFIG_ARCH_MEMORY_PROBE=y CONFIG_NODES_SPAN_OTHER_NODES=y +CONFIG_PPC_HAS_HASH_64K=y CONFIG_PPC_64K_PAGES=y CONFIG_SCHED_SMT=y CONFIG_PROC_DEVICETREE=y # CONFIG_CMDLINE_BOOL is not set # CONFIG_PM is not set CONFIG_SECCOMP=y +# CONFIG_WANT_DEVICE_TREE is not set CONFIG_ISA_DMA_API=y #
@@ -237,22 +272,18 @@ CONFIG_ISA_DMA_API=y # CONFIG_ZONE_DMA=y CONFIG_GENERIC_ISA_DMA=y -# CONFIG_MPIC_WEIRD is not set -# CONFIG_PPC_I8259 is not set # CONFIG_PPC_INDIRECT_PCI is not set CONFIG_PCI=y CONFIG_PCI_DOMAINS=y CONFIG_PCIEPORTBUS=y +CONFIG_ARCH_SUPPORTS_MSI=y +CONFIG_PCI_MSI=y # CONFIG_PCI_DEBUG is not set # # PCCARD (PCMCIA/CardBus) support # # CONFIG_PCCARD is not set - -# -# PCI Hotplug Support -# # CONFIG_HOTPLUG_PCI is not set CONFIG_KERNEL_START=0xc000000000000000
@@ -264,7 +295,6 @@ CONFIG_NET=y # # Networking options # -# CONFIG_NETDEBUG is not set CONFIG_PACKET=y # CONFIG_PACKET_MMAP is not set CONFIG_UNIX=y
@@ -300,14 +330,11 @@ CONFIG_INET_TCP_DIAG=y CONFIG_TCP_CONG_CUBIC=y CONFIG_DEFAULT_TCP_CONG="cubic" # CONFIG_TCP_MD5SIG is not set - -# -# IP: Virtual Server Configuration -# # CONFIG_IP_VS is not set CONFIG_IPV6=y # CONFIG_IPV6_PRIVACY is not set # CONFIG_IPV6_ROUTER_PREF is not set +# CONFIG_IPV6_OPTIMISTIC_DAD is not set CONFIG_INET6_AH=m CONFIG_INET6_ESP=m CONFIG_INET6_IPCOMP=m
@@ -332,6 +359,7 @@ CONFIG_NETFILTER_NETLINK=m CONFIG_NETFILTER_NETLINK_QUEUE=m CONFIG_NETFILTER_NETLINK_LOG=m # CONFIG_NF_CONNTRACK_ENABLED is not set +# CONFIG_NF_CONNTRACK is not set CONFIG_NETFILTER_XTABLES=m CONFIG_NETFILTER_XT_TARGET_CLASSIFY=m CONFIG_NETFILTER_XT_TARGET_DSCP=m
@@ -389,20 +417,8 @@ CONFIG_IP_NF_ARP_MANGLE=m # # CONFIG_IP6_NF_QUEUE is not set # CONFIG_IP6_NF_IPTABLES is not set - -# -# DCCP Configuration (EXPERIMENTAL) -# # CONFIG_IP_DCCP is not set - -# -# SCTP Configuration (EXPERIMENTAL) -# # CONFIG_IP_SCTP is not set - -# -# TIPC Configuration (EXPERIMENTAL) -# # CONFIG_TIPC is not set # CONFIG_ATM is not set # CONFIG_BRIDGE is not set
@@ -420,6 +436,7 @@ CONFIG_IP_NF_ARP_MANGLE=m # QoS and/or fair queueing # # CONFIG_NET_SCHED is not set +CONFIG_NET_SCH_FIFO=y CONFIG_NET_CLS_ROUTE=y #
@@ -429,7 +446,18 @@ CONFIG_NET_CLS_ROUTE=y # CONFIG_HAMRADIO is not set # CONFIG_IRDA is not set # CONFIG_BT is not set +# CONFIG_AF_RXRPC is not set + +# +# Wireless +# +CONFIG_CFG80211=m +CONFIG_WIRELESS_EXT=y +CONFIG_MAC80211=m +# CONFIG_MAC80211_DEBUGFS is not set +# CONFIG_MAC80211_DEBUG is not set # CONFIG_IEEE80211 is not set +# CONFIG_RFKILL is not set # # Device Drivers
@@ -449,10 +477,6 @@ CONFIG_FW_LOADER=y # Connector - unified userspace <-> kernelspace linker # # CONFIG_CONNECTOR is not set - -# -# Memory Technology Devices (MTD) -# # CONFIG_MTD is not set #
@@ -483,18 +507,18 @@ CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM_COUNT=16 CONFIG_BLK_DEV_RAM_SIZE=131072 CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024 +CONFIG_BLK_DEV_SYSTEMSIM=m # CONFIG_CDROM_PKTCDVD is not set # CONFIG_ATA_OVER_ETH is not set # # Misc devices # +# CONFIG_PHANTOM is not set # CONFIG_SGI_IOC4 is not set # CONFIG_TIFM_CORE is not set - -# -# ATA/ATAPI/MFM/RLL support -# +# CONFIG_BLINK is not set +# CONFIG_EEPROM_93CX6 is not set CONFIG_IDE=y CONFIG_BLK_DEV_IDE=y
@@ -509,6 +533,7 @@ CONFIG_IDEDISK_MULTI_MODE=y # CONFIG_BLK_DEV_IDEFLOPPY is not set # CONFIG_BLK_DEV_IDESCSI is not set # CONFIG_IDE_TASK_IOCTL is not set +# CONFIG_IDE_PROC_FS is not set # # IDE chipset support/bugfixes
@@ -516,6 +541,7 @@ CONFIG_IDEDISK_MULTI_MODE=y CONFIG_IDE_GENERIC=y CONFIG_BLK_DEV_IDEPCI=y CONFIG_IDEPCI_SHARE_IRQ=y +CONFIG_IDEPCI_PCIBUS_ORDER=y # CONFIG_BLK_DEV_OFFBOARD is not set CONFIG_BLK_DEV_GENERIC=y # CONFIG_BLK_DEV_OPTI621 is not set
@@ -580,6 +606,7 @@ CONFIG_CHR_DEV_SG=y # CONFIG_SCSI_CONSTANTS is not set # CONFIG_SCSI_LOGGING is not set # CONFIG_SCSI_SCAN_ASYNC is not set +CONFIG_SCSI_WAIT_SCAN=m # # SCSI Transports
@@ -626,10 +653,6 @@ CONFIG_SCSI_SAS_ATTRS=y # CONFIG_SCSI_DC390T is not set # CONFIG_SCSI_DEBUG is not set # CONFIG_SCSI_SRP is not set - -# -# Serial ATA (prod) and Parallel ATA (experimental) drivers -# CONFIG_ATA=y # CONFIG_ATA_NONSTANDARD is not set # CONFIG_SATA_AHCI is not set
@@ -652,6 +675,7 @@ CONFIG_SATA_PROMISE=y # CONFIG_PATA_AMD is not set # CONFIG_PATA_ARTOP is not set # CONFIG_PATA_ATIIXP is not set +# CONFIG_PATA_CMD640_PCI is not set # CONFIG_PATA_CMD64X is not set # CONFIG_PATA_CS5520 is not set # CONFIG_PATA_CS5530 is not set
@@ -705,6 +729,7 @@ CONFIG_DM_MIRROR=m CONFIG_DM_ZERO=m CONFIG_DM_MULTIPATH=m # CONFIG_DM_MULTIPATH_EMC is not set +# CONFIG_DM_DELAY is not set # # Fusion MPT device support
@@ -719,58 +744,32 @@ CONFIG_FUSION_MAX_SGE=128 # # IEEE 1394 (FireWire) support # +# CONFIG_FIREWIRE is not set # CONFIG_IEEE1394 is not set # # I2O device support # # CONFIG_I2O is not set - -# -# Macintosh device drivers -# -# CONFIG_MAC_EMUMOUSEBTN is not set -# CONFIG_WINDFARM is not set - -# -# Network device support -# +# CONFIG_MACINTOSH_DRIVERS is not set CONFIG_NETDEVICES=y # CONFIG_DUMMY is not set CONFIG_BONDING=m # CONFIG_EQUALIZER is not set CONFIG_TUN=y - -# -# ARCnet devices -# # CONFIG_ARCNET is not set - -# -# PHY device support -# # CONFIG_PHYLIB is not set - -# -# Ethernet (10 or 100Mbit) -# CONFIG_NET_ETHERNET=y CONFIG_MII=y # CONFIG_HAPPYMEAL is not set # CONFIG_SUNGEM is not set # CONFIG_CASSINI is not set # CONFIG_NET_VENDOR_3COM is not set - -# -# Tulip family network device support -# # CONFIG_NET_TULIP is not set # CONFIG_HP100 is not set +CONFIG_SYSTEMSIM_NET=m # CONFIG_NET_PCI is not set - -# -# Ethernet (1000 Mbit) -# +CONFIG_NETDEV_1000=y # CONFIG_ACENIC is not set # CONFIG_DL2K is not set CONFIG_E1000=m
@@ -784,36 +783,43 @@ CONFIG_E1000_NAPI=y CONFIG_SKGE=m CONFIG_SKY2=m # CONFIG_SK98LIN is not set +# CONFIG_VIA_VELOCITY is not set CONFIG_TIGON3=y # CONFIG_BNX2 is not set CONFIG_SPIDER_NET=y +CONFIG_GELIC_NET=m +CONFIG_GELIC_WIRELESS=y # CONFIG_QLA3XXX is not set # CONFIG_ATL1 is not set - -# -# Ethernet (10000 Mbit) -# -# CONFIG_CHELSIO_T1 is not set -# CONFIG_CHELSIO_T3 is not set -# CONFIG_IXGB is not set -# CONFIG_S2IO is not set -# CONFIG_MYRI10GE is not set -# CONFIG_NETXEN_NIC is not set -# CONFIG_PASEMI_MAC is not set - -# -# Token Ring devices -# +# CONFIG_NETDEV_10000 is not set +CONFIG_MLX4_CORE=m # CONFIG_TR is not set # -# Wireless LAN (non-hamradio) +# Wireless LAN # -# CONFIG_NET_RADIO is not set +# CONFIG_WLAN_PRE80211 is not set +CONFIG_WLAN_80211=y +# CONFIG_IPW2100 is not set +# CONFIG_IPW2200 is not set +# CONFIG_LIBERTAS is not set +# CONFIG_AIRO is not set +# CONFIG_HERMES is not set +# CONFIG_ATMEL is not set +# CONFIG_PRISM54 is not set +# CONFIG_USB_ZD1201 is not set +# CONFIG_RTL8187 is not set +# CONFIG_HOSTAP is not set # -# Wan interfaces +# USB Network Adapters # +# CONFIG_USB_CATC is not set +# CONFIG_USB_KAWETH is not set +# CONFIG_USB_PEGASUS is not set +# CONFIG_USB_RTL8150 is not set +# CONFIG_USB_USBNET_MII is not set +# CONFIG_USB_USBNET is not set # CONFIG_WAN is not set # CONFIG_FDDI is not set # CONFIG_HIPPI is not set
@@ -840,6 +846,7 @@ CONFIG_SPIDER_NET=y # CONFIG_INPUT=y # CONFIG_INPUT_FF_MEMLESS is not set +# CONFIG_INPUT_POLLDEV is not set # # Userland interfaces
@@ -859,6 +866,7 @@ CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 # CONFIG_INPUT_KEYBOARD is not set # CONFIG_INPUT_MOUSE is not set # CONFIG_INPUT_JOYSTICK is not set +# CONFIG_INPUT_TABLET is not set # CONFIG_INPUT_TOUCHSCREEN is not set # CONFIG_INPUT_MISC is not set
@@ -921,6 +929,8 @@ CONFIG_SERIAL_OF_PLATFORM=y CONFIG_UNIX98_PTYS=y # CONFIG_LEGACY_PTYS is not set CONFIG_HVC_DRIVER=y +# CONFIG_HVC_FSS is not set +# CONFIG_PPC_EARLY_DEBUG_FSS is not set CONFIG_HVC_RTAS=y CONFIG_HVC_BEAT=y
@@ -933,10 +943,6 @@ CONFIG_IPMI_DEVICE_INTERFACE=m CONFIG_IPMI_SI=m CONFIG_IPMI_WATCHDOG=m CONFIG_IPMI_POWEROFF=m - -# -# Watchdog Cards -# CONFIG_WATCHDOG=y # CONFIG_WATCHDOG_NOWAYOUT is not set
@@ -959,7 +965,6 @@ CONFIG_WATCHDOG=y # CONFIG_HW_RANDOM is not set CONFIG_GEN_RTC=y # CONFIG_GEN_RTC_X is not set -# CONFIG_DTLK is not set # CONFIG_R3964 is not set # CONFIG_APPLICOM is not set # CONFIG_AGP is not set
@@ -971,11 +976,9 @@ CONFIG_GEN_RTC=y # TPM devices # # CONFIG_TCG_TPM is not set - -# -# I2C support -# +CONFIG_DEVPORT=y CONFIG_I2C=y +CONFIG_I2C_BOARDINFO=y # CONFIG_I2C_CHARDEV is not set #
@@ -999,17 +1002,17 @@ CONFIG_I2C_ALGOBIT=y # CONFIG_I2C_NFORCE2 is not set # CONFIG_I2C_OCORES is not set # CONFIG_I2C_PARPORT_LIGHT is not set -# CONFIG_I2C_PASEMI is not set # CONFIG_I2C_PROSAVAGE is not set # CONFIG_I2C_SAVAGE4 is not set +# CONFIG_I2C_SIMTEC is not set # CONFIG_I2C_SIS5595 is not set # CONFIG_I2C_SIS630 is not set # CONFIG_I2C_SIS96X is not set # CONFIG_I2C_STUB is not set +# CONFIG_I2C_TINY_USB is not set # CONFIG_I2C_VIA is not set # CONFIG_I2C_VIAPRO is not set # CONFIG_I2C_VOODOO3 is not set -# CONFIG_I2C_PCA_ISA is not set # # Miscellaneous I2C Chip support
@@ -1036,12 +1039,7 @@ CONFIG_I2C_ALGOBIT=y # Dallas's 1-wire bus # # CONFIG_W1 is not set - -# -# Hardware Monitoring support -# # CONFIG_HWMON is not set -# CONFIG_HWMON_VID is not set # # Multifunction device drivers
@@ -1052,17 +1050,19 @@ CONFIG_I2C_ALGOBIT=y # Multimedia devices # # CONFIG_VIDEO_DEV is not set +# CONFIG_DVB_CORE is not set +# CONFIG_DAB is not set # -# Digital Video Broadcasting Devices +# Graphics support # -# CONFIG_DVB is not set -# CONFIG_USB_DABUSB is not set +# CONFIG_BACKLIGHT_LCD_SUPPORT is not set # -# Graphics support +# Display device support # -# CONFIG_BACKLIGHT_LCD_SUPPORT is not set +# CONFIG_DISPLAY_SUPPORT is not set +# CONFIG_VGASTATE is not set # CONFIG_FB is not set # CONFIG_FB_IBM_GXT4500 is not set
@@ -1084,6 +1084,17 @@ CONFIG_HID=m # CONFIG_HID_DEBUG is not set # +# USB Input Devices +# +# CONFIG_USB_HID is not set + +# +# USB HID Boot Protocol drivers +# +# CONFIG_USB_KBD is not set +# CONFIG_USB_MOUSE is not set + +# # USB support # CONFIG_USB_ARCH_HAS_HCD=y
@@ -1096,6 +1107,7 @@ CONFIG_USB=m # Miscellaneous USB options # CONFIG_USB_DEVICEFS=y +# CONFIG_USB_DEVICE_CLASS is not set # CONFIG_USB_DYNAMIC_MINORS is not set # CONFIG_USB_OTG is not set
@@ -1147,44 +1159,10 @@ CONFIG_USB_STORAGE=m # CONFIG_USB_LIBUSUAL is not set # -# USB Input Devices -# -# CONFIG_USB_HID is not set - -# -# USB HID Boot Protocol drivers -# -# CONFIG_USB_KBD is not set -# CONFIG_USB_MOUSE is not set -# CONFIG_USB_AIPTEK is not set -# CONFIG_USB_WACOM is not set -# CONFIG_USB_ACECAD is not set -# CONFIG_USB_KBTAB is not set -# CONFIG_USB_POWERMATE is not set -# CONFIG_USB_TOUCHSCREEN is not set -# CONFIG_USB_YEALINK is not set -# CONFIG_USB_XPAD is not set -# CONFIG_USB_ATI_REMOTE is not set -# CONFIG_USB_ATI_REMOTE2 is not set -# CONFIG_USB_KEYSPAN_REMOTE is not set -# CONFIG_USB_APPLETOUCH is not set -# CONFIG_USB_GTCO is not set - -# # USB Imaging devices # # CONFIG_USB_MDC800 is not set # CONFIG_USB_MICROTEK is not set - -# -# USB Network Adapters -# -# CONFIG_USB_CATC is not set -# CONFIG_USB_KAWETH is not set -# CONFIG_USB_PEGASUS is not set -# CONFIG_USB_RTL8150 is not set -# CONFIG_USB_USBNET_MII is not set -# CONFIG_USB_USBNET is not set CONFIG_USB_MON=y #
@@ -1228,10 +1206,6 @@ CONFIG_USB_MON=y # USB Gadget Support # # CONFIG_USB_GADGET is not set - -# -# MMC/SD Card support -# # CONFIG_MMC is not set #
@@ -1253,10 +1227,13 @@ CONFIG_USB_MON=y CONFIG_INFINIBAND=m CONFIG_INFINIBAND_USER_MAD=m CONFIG_INFINIBAND_USER_ACCESS=m +CONFIG_INFINIBAND_USER_MEM=y CONFIG_INFINIBAND_ADDR_TRANS=y CONFIG_INFINIBAND_MTHCA=m CONFIG_INFINIBAND_MTHCA_DEBUG=y +# CONFIG_INFINIBAND_IPATH is not set # CONFIG_INFINIBAND_AMSO1100 is not set +CONFIG_MLX4_INFINIBAND=m CONFIG_INFINIBAND_IPOIB=m # CONFIG_INFINIBAND_IPOIB_CM is not set CONFIG_INFINIBAND_IPOIB_DEBUG=y
@@ -1287,14 +1264,6 @@ CONFIG_INFINIBAND_IPOIB_DEBUG_DATA=y # # -# Auxiliary Display support -# - -# -# Virtualization -# - -# # File systems # CONFIG_EXT2_FS=y
@@ -1389,6 +1358,7 @@ CONFIG_LOCKD_V4=y CONFIG_NFS_ACL_SUPPORT=y CONFIG_NFS_COMMON=y CONFIG_SUNRPC=y +# CONFIG_SUNRPC_BIND34 is not set # CONFIG_RPCSEC_GSS_KRB5 is not set # CONFIG_RPCSEC_GSS_SPKM3 is not set # CONFIG_SMB_FS is not set
@@ -1418,6 +1388,7 @@ CONFIG_MSDOS_PARTITION=y # CONFIG_SUN_PARTITION is not set # CONFIG_KARMA_PARTITION is not set CONFIG_EFI_PARTITION=y +# CONFIG_SYSV68_PARTITION is not set # # Native Language Support
@@ -1468,7 +1439,6 @@ CONFIG_NLS_ISO8859_15=m # # CONFIG_DLM is not set # CONFIG_UCC_SLOW is not set -# CONFIG_UCC_FAST is not set # # Library routines
@@ -1476,6 +1446,7 @@ CONFIG_NLS_ISO8859_15=m CONFIG_BITREVERSE=y # CONFIG_CRC_CCITT is not set # CONFIG_CRC16 is not set +# CONFIG_CRC_ITU_T is not set CONFIG_CRC32=y # CONFIG_LIBCRC32C is not set CONFIG_ZLIB_INFLATE=m
@@ -1487,6 +1458,7 @@ CONFIG_TEXTSEARCH_FSM=m CONFIG_PLIST=y CONFIG_HAS_IOMEM=y CONFIG_HAS_IOPORT=y +CONFIG_HAS_DMA=y # # Instrumentation Support
@@ -1507,7 +1479,6 @@ CONFIG_DEBUG_FS=y # CONFIG_HEADERS_CHECK is not set CONFIG_DEBUG_KERNEL=y # CONFIG_DEBUG_SHIRQ is not set -CONFIG_LOG_BUF_SHIFT=15 # CONFIG_DETECT_SOFTLOCKUP is not set # CONFIG_SCHEDSTATS is not set # CONFIG_TIMER_STATS is not set
@@ -1548,6 +1519,7 @@ CONFIG_IRQSTACKS=y # CONFIG_CRYPTO=y CONFIG_CRYPTO_ALGAPI=y +CONFIG_CRYPTO_ABLKCIPHER=m CONFIG_CRYPTO_BLKCIPHER=m CONFIG_CRYPTO_HASH=y CONFIG_CRYPTO_MANAGER=y
@@ -1566,16 +1538,17 @@ CONFIG_CRYPTO_ECB=m CONFIG_CRYPTO_CBC=m CONFIG_CRYPTO_PCBC=m # CONFIG_CRYPTO_LRW is not set +CONFIG_CRYPTO_CRYPTD=m CONFIG_CRYPTO_DES=m # CONFIG_CRYPTO_FCRYPT is not set # CONFIG_CRYPTO_BLOWFISH is not set # CONFIG_CRYPTO_TWOFISH is not set # CONFIG_CRYPTO_SERPENT is not set -# CONFIG_CRYPTO_AES is not set +CONFIG_CRYPTO_AES=m # CONFIG_CRYPTO_CAST5 is not set # CONFIG_CRYPTO_CAST6 is not set # CONFIG_CRYPTO_TEA is not set -# CONFIG_CRYPTO_ARC4 is not set +CONFIG_CRYPTO_ARC4=m # CONFIG_CRYPTO_KHAZAD is not set # CONFIG_CRYPTO_ANUBIS is not set CONFIG_CRYPTO_DEFLATE=m
--
Quoted 6 lines · Arnd Bergmann
From:
Arnd Bergmann <[email protected]>
To:
[email protected]
CC:
[email protected], [email protected]
It's getting late here, that should have been linuxppc-dev instead of powerpc-dev, obviously. I hope at least the patches are ok, when I can't handle the mail system any more...
Arnd <><