Update to 3.1-rc1
Remove and refresh patches as necessary. Disable aufs; after fixing textual conflicts it turns out to be broken by a VFS change. svn path=/dists/trunk/linux-2.6/; revision=17897
This commit is contained in:
parent
028a3e5509
commit
53fd520e23
|
@ -1,4 +1,6 @@
|
|||
linux-2.6 (3.0.0-2) UNRELEASED; urgency=low
|
||||
linux-2.6 (3.1.0~rc1-1~experimental.1) UNRELEASED; urgency=low
|
||||
|
||||
* New upstream release candidate
|
||||
|
||||
[ Aurelien Jarno ]
|
||||
* Add configuration files for s390x architecture.
|
||||
|
@ -10,10 +12,7 @@ linux-2.6 (3.0.0-2) UNRELEASED; urgency=low
|
|||
(Closes: #636854):
|
||||
- Various drivers replaced as for x86 in 2.6.32-10
|
||||
- pata_macio replaces ide_pmac
|
||||
|
||||
[ maximilian attems ]
|
||||
* Add stable 3.0.1 including:
|
||||
- [SCSI] fix crash in scsi_dispatch_cmd()
|
||||
* aufs: Disable until it is updated for Linux 3.1
|
||||
|
||||
[ Jonathan Nieder ]
|
||||
* perf: do not look at ./config for configuration (Closes: #632923)
|
||||
|
|
|
@ -1,67 +0,0 @@
|
|||
From 7a21b2b3d8af62110b0a564f63a64360af34ac10 Mon Sep 17 00:00:00 2001
|
||||
From: Takashi Iwai <tiwai@suse.de>
|
||||
Date: Tue, 28 Jun 2011 14:17:17 +0200
|
||||
Subject: [PATCH] ALSA: hda - Enable auto-parser as default for Conexant codecs
|
||||
|
||||
Let's use auto-parser as default now.
|
||||
|
||||
Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
||||
---
|
||||
sound/pci/hda/patch_conexant.c | 16 ++++------------
|
||||
1 files changed, 4 insertions(+), 12 deletions(-)
|
||||
|
||||
diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c
|
||||
index 6e90b6b..4ca880b 100644
|
||||
--- a/sound/pci/hda/patch_conexant.c
|
||||
+++ b/sound/pci/hda/patch_conexant.c
|
||||
@@ -1124,10 +1124,8 @@ static int patch_cxt5045(struct hda_codec *codec)
|
||||
board_config = snd_hda_check_board_config(codec, CXT5045_MODELS,
|
||||
cxt5045_models,
|
||||
cxt5045_cfg_tbl);
|
||||
-#if 0 /* use the old method just for safety */
|
||||
if (board_config < 0)
|
||||
- board_config = CXT5045_AUTO;
|
||||
-#endif
|
||||
+ board_config = CXT5045_AUTO; /* model=auto as default */
|
||||
if (board_config == CXT5045_AUTO)
|
||||
return patch_conexant_auto(codec);
|
||||
|
||||
@@ -1565,10 +1563,8 @@ static int patch_cxt5047(struct hda_codec *codec)
|
||||
board_config = snd_hda_check_board_config(codec, CXT5047_MODELS,
|
||||
cxt5047_models,
|
||||
cxt5047_cfg_tbl);
|
||||
-#if 0 /* not enabled as default, as BIOS often broken for this codec */
|
||||
if (board_config < 0)
|
||||
- board_config = CXT5047_AUTO;
|
||||
-#endif
|
||||
+ board_config = CXT5047_AUTO; /* model=auto as default */
|
||||
if (board_config == CXT5047_AUTO)
|
||||
return patch_conexant_auto(codec);
|
||||
|
||||
@@ -1994,10 +1990,8 @@ static int patch_cxt5051(struct hda_codec *codec)
|
||||
board_config = snd_hda_check_board_config(codec, CXT5051_MODELS,
|
||||
cxt5051_models,
|
||||
cxt5051_cfg_tbl);
|
||||
-#if 0 /* use the old method just for safety */
|
||||
if (board_config < 0)
|
||||
- board_config = CXT5051_AUTO;
|
||||
-#endif
|
||||
+ board_config = CXT5051_AUTO; /* model=auto as default */
|
||||
if (board_config == CXT5051_AUTO)
|
||||
return patch_conexant_auto(codec);
|
||||
|
||||
@@ -3115,10 +3109,8 @@ static int patch_cxt5066(struct hda_codec *codec)
|
||||
|
||||
board_config = snd_hda_check_board_config(codec, CXT5066_MODELS,
|
||||
cxt5066_models, cxt5066_cfg_tbl);
|
||||
-#if 0 /* use the old method just for safety */
|
||||
if (board_config < 0)
|
||||
- board_config = CXT5066_AUTO;
|
||||
-#endif
|
||||
+ board_config = CXT5066_AUTO; /* model=auto as default */
|
||||
if (board_config == CXT5066_AUTO)
|
||||
return patch_conexant_auto(codec);
|
||||
|
||||
--
|
||||
1.7.2.5
|
||||
|
|
@ -1,55 +0,0 @@
|
|||
From a810364a0424c297242c6c66071a42f7675a5568 Mon Sep 17 00:00:00 2001
|
||||
From: Takashi Iwai <tiwai@suse.de>
|
||||
Date: Tue, 7 Jun 2011 12:23:23 +0200
|
||||
Subject: [PATCH] ALSA: hda - Handle -1 as invalid position, too
|
||||
|
||||
When reading from the position-buffer results in -1, handle as it's
|
||||
invalid and falls back to LPIB mode as well as 0.
|
||||
|
||||
Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
||||
---
|
||||
sound/pci/hda/hda_intel.c | 21 +++++++++++----------
|
||||
1 files changed, 11 insertions(+), 10 deletions(-)
|
||||
|
||||
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
|
||||
index 966f401..45cd02f 100644
|
||||
--- a/sound/pci/hda/hda_intel.c
|
||||
+++ b/sound/pci/hda/hda_intel.c
|
||||
@@ -1930,6 +1930,17 @@ static unsigned int azx_get_position(struct azx *chip,
|
||||
default:
|
||||
/* use the position buffer */
|
||||
pos = le32_to_cpu(*azx_dev->posbuf);
|
||||
+ if (chip->position_fix[stream] == POS_FIX_AUTO) {
|
||||
+ if (!pos || pos == (u32)-1) {
|
||||
+ printk(KERN_WARNING
|
||||
+ "hda-intel: Invalid position buffer, "
|
||||
+ "using LPIB read method instead.\n");
|
||||
+ chip->position_fix[stream] = POS_FIX_LPIB;
|
||||
+ pos = azx_sd_readl(azx_dev, SD_LPIB);
|
||||
+ } else
|
||||
+ chip->position_fix[stream] = POS_FIX_POSBUF;
|
||||
+ }
|
||||
+ break;
|
||||
}
|
||||
|
||||
if (pos >= azx_dev->bufsize)
|
||||
@@ -1967,16 +1978,6 @@ static int azx_position_ok(struct azx *chip, struct azx_dev *azx_dev)
|
||||
|
||||
stream = azx_dev->substream->stream;
|
||||
pos = azx_get_position(chip, azx_dev);
|
||||
- if (chip->position_fix[stream] == POS_FIX_AUTO) {
|
||||
- if (!pos) {
|
||||
- printk(KERN_WARNING
|
||||
- "hda-intel: Invalid position buffer, "
|
||||
- "using LPIB read method instead.\n");
|
||||
- chip->position_fix[stream] = POS_FIX_LPIB;
|
||||
- pos = azx_get_position(chip, azx_dev);
|
||||
- } else
|
||||
- chip->position_fix[stream] = POS_FIX_POSBUF;
|
||||
- }
|
||||
|
||||
if (WARN_ONCE(!azx_dev->period_bytes,
|
||||
"hda-intel: zero azx_dev->period_bytes"))
|
||||
--
|
||||
1.7.2.5
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
From b4a655e81d4d1d12abc92d29dfb7550e66a08799 Mon Sep 17 00:00:00 2001
|
||||
From: Takashi Iwai <tiwai@suse.de>
|
||||
Date: Tue, 7 Jun 2011 12:26:56 +0200
|
||||
Subject: [PATCH] ALSA: hda - Judge playback stream from stream id in azx_via_get_position()
|
||||
|
||||
Instead of checking the azx_dev index with a fixed number (4), check
|
||||
the stream direction of the assigned substream.
|
||||
|
||||
Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
||||
---
|
||||
sound/pci/hda/hda_intel.c | 2 +-
|
||||
1 files changed, 1 insertions(+), 1 deletions(-)
|
||||
|
||||
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
|
||||
index 45cd02f..5f2d05a 100644
|
||||
--- a/sound/pci/hda/hda_intel.c
|
||||
+++ b/sound/pci/hda/hda_intel.c
|
||||
@@ -1866,7 +1866,7 @@ static unsigned int azx_via_get_position(struct azx *chip,
|
||||
unsigned int fifo_size;
|
||||
|
||||
link_pos = azx_sd_readl(azx_dev, SD_LPIB);
|
||||
- if (azx_dev->index >= 4) {
|
||||
+ if (azx_dev->substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
|
||||
/* Playback, no problem using link position */
|
||||
return link_pos;
|
||||
}
|
||||
--
|
||||
1.7.2.5
|
||||
|
|
@ -1,53 +0,0 @@
|
|||
From 0198af5884040ec6ded1558f5f3d4e696898a19f Mon Sep 17 00:00:00 2001
|
||||
From: Andy Lutomirski <luto@MIT.EDU>
|
||||
Date: Tue, 24 May 2011 15:16:43 -0400
|
||||
Subject: [PATCH] Add KEY_MICMUTE and enable it on Lenovo X220
|
||||
|
||||
I suspect that this works on T410.
|
||||
|
||||
Signed-off-by: Andy Lutomirski <luto@mit.edu>
|
||||
Signed-off-by: Matthew Garrett <mjg@redhat.com>
|
||||
---
|
||||
drivers/platform/x86/thinkpad_acpi.c | 11 ++++++++++-
|
||||
include/linux/input.h | 2 ++
|
||||
2 files changed, 12 insertions(+), 1 deletions(-)
|
||||
|
||||
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
|
||||
index 26c5b11..7bd829f 100644
|
||||
--- a/drivers/platform/x86/thinkpad_acpi.c
|
||||
+++ b/drivers/platform/x86/thinkpad_acpi.c
|
||||
@@ -3186,8 +3186,17 @@ static int __init hotkey_init(struct ibm_init_struct *iibm)
|
||||
KEY_VENDOR, /* 0x17: Thinkpad/AccessIBM/Lenovo */
|
||||
|
||||
/* (assignments unknown, please report if found) */
|
||||
+ KEY_UNKNOWN, KEY_UNKNOWN,
|
||||
+
|
||||
+ /*
|
||||
+ * The mic mute button only sends 0x1a. It does not
|
||||
+ * automatically mute the mic or change the mute light.
|
||||
+ */
|
||||
+ KEY_MICMUTE, /* 0x1a: Mic mute (since ?400 or so) */
|
||||
+
|
||||
+ /* (assignments unknown, please report if found) */
|
||||
KEY_UNKNOWN, KEY_UNKNOWN, KEY_UNKNOWN, KEY_UNKNOWN,
|
||||
- KEY_UNKNOWN, KEY_UNKNOWN, KEY_UNKNOWN, KEY_UNKNOWN,
|
||||
+ KEY_UNKNOWN,
|
||||
},
|
||||
};
|
||||
|
||||
diff --git a/include/linux/input.h b/include/linux/input.h
|
||||
index 771d6d8..f26d3b7 100644
|
||||
--- a/include/linux/input.h
|
||||
+++ b/include/linux/input.h
|
||||
@@ -438,6 +438,8 @@ struct input_keymap_entry {
|
||||
#define KEY_WIMAX 246
|
||||
#define KEY_RFKILL 247 /* Key that controls all radios */
|
||||
|
||||
+#define KEY_MICMUTE 248 /* Mute / unmute the microphone */
|
||||
+
|
||||
/* Code 255 is reserved for special needs of AT keyboard driver */
|
||||
|
||||
#define BTN_MISC 0x100
|
||||
--
|
||||
1.7.2.5
|
||||
|
|
@ -23,7 +23,7 @@ Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|||
---
|
||||
--- a/drivers/md/dm-table.c
|
||||
+++ b/drivers/md/dm-table.c
|
||||
@@ -511,14 +511,15 @@ int dm_set_device_limits(struct dm_target *ti, struct dm_dev *dev,
|
||||
@@ -536,13 +536,15 @@ int dm_set_device_limits(struct dm_target *ti, struct dm_dev *dev,
|
||||
(unsigned long long) start << SECTOR_SHIFT);
|
||||
|
||||
/*
|
||||
|
@ -34,14 +34,14 @@ Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|||
+ * violating it, so limit max_phys_segments to 1 lying within
|
||||
+ * a single page.
|
||||
*/
|
||||
+ if (q->merge_bvec_fn && !ti->type->merge) {
|
||||
- if (dm_queue_merge_is_compulsory(q) && !ti->type->merge)
|
||||
- blk_limits_max_hw_sectors(limits,
|
||||
- (unsigned int) (PAGE_SIZE >> 9));
|
||||
+ if (dm_queue_merge_is_compulsory(q) && !ti->type->merge) {
|
||||
+ limits->max_segments = 1;
|
||||
+ limits->seg_boundary_mask = PAGE_CACHE_SIZE - 1;
|
||||
+ }
|
||||
|
||||
- if (q->merge_bvec_fn && !ti->type->merge)
|
||||
- blk_limits_max_hw_sectors(limits,
|
||||
- (unsigned int) (PAGE_SIZE >> 9));
|
||||
+
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(dm_set_device_limits);
|
||||
|
|
|
@ -1,524 +0,0 @@
|
|||
From 10b2495b79eb8c2b6ec92b3ce1e5577f892f7821 Mon Sep 17 00:00:00 2001
|
||||
From: Michael Schmitz <schmitzmic@googlemail.com>
|
||||
Date: Mon, 1 Nov 2010 19:54:00 +0100
|
||||
Subject: [PATCH] m68k/atari: Reserve some ST-RAM early on for device buffer use
|
||||
|
||||
Based on an original patch from Michael Schmitz:
|
||||
|
||||
Because mem_init() is now called before device init, devices that rely on
|
||||
ST-RAM may find all ST-RAM already allocated to other users by the time
|
||||
device init happens. In particular, a large initrd RAM disk may use up
|
||||
enough of ST-RAM to cause atari_stram_alloc() to resort to
|
||||
__get_dma_pages() allocation.
|
||||
|
||||
In the current state of Atari memory management, all of RAM is marked
|
||||
DMA capable, so __get_dma_pages() may well return RAM that is not in actual
|
||||
fact DMA capable. Using this for frame buffer or SCSI DMA buffer causes
|
||||
subtle failure.
|
||||
|
||||
The ST-RAM allocator has been changed to allocate memory from a pool of
|
||||
reserved ST-RAM of configurable size, set aside on ST-RAM init (i.e.
|
||||
before mem_init()). As long as this pool is not exhausted, allocation of
|
||||
real ST-RAM can be guaranteed.
|
||||
|
||||
Other changes:
|
||||
- Replace the custom allocator in the ST-RAM pool by the existing allocator
|
||||
in the resource subsystem,
|
||||
- Remove mem_init_done and its hook, as memory init is now done before
|
||||
device init,
|
||||
- Remove /proc/stram, as ST-RAM usage now shows up under /proc/iomem, e.g.
|
||||
|
||||
005f2000-006f1fff : ST-RAM Pool
|
||||
005f2000-0063dfff : atafb
|
||||
0063e000-00641fff : ataflop
|
||||
00642000-00642fff : SCSI
|
||||
|
||||
Signed-off-by: Michael Schmitz <schmitz@debian.org>
|
||||
[Andreas Schwab <schwab@linux-m68k.org>: Use memparse()]
|
||||
[Geert: Use the resource subsystem instead of a custom allocator]
|
||||
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
|
||||
---
|
||||
arch/m68k/Kconfig.mmu | 6 -
|
||||
arch/m68k/atari/stram.c | 354 +++++++----------------------------
|
||||
arch/m68k/include/asm/atari_stram.h | 3 +-
|
||||
arch/m68k/mm/init_mm.c | 5 -
|
||||
4 files changed, 70 insertions(+), 298 deletions(-)
|
||||
|
||||
diff --git a/arch/m68k/Kconfig.mmu b/arch/m68k/Kconfig.mmu
|
||||
index 16539b1..13e20bb 100644
|
||||
--- a/arch/m68k/Kconfig.mmu
|
||||
+++ b/arch/m68k/Kconfig.mmu
|
||||
@@ -372,12 +372,6 @@ config AMIGA_PCMCIA
|
||||
Include support in the kernel for pcmcia on Amiga 1200 and Amiga
|
||||
600. If you intend to use pcmcia cards say Y; otherwise say N.
|
||||
|
||||
-config STRAM_PROC
|
||||
- bool "ST-RAM statistics in /proc"
|
||||
- depends on ATARI
|
||||
- help
|
||||
- Say Y here to report ST-RAM usage statistics in /proc/stram.
|
||||
-
|
||||
config HEARTBEAT
|
||||
bool "Use power LED as a heartbeat" if AMIGA || APOLLO || ATARI || MAC ||Q40
|
||||
default y if !AMIGA && !APOLLO && !ATARI && !MAC && !Q40 && HP300
|
||||
diff --git a/arch/m68k/atari/stram.c b/arch/m68k/atari/stram.c
|
||||
index 6ec3b7f..0810c8d 100644
|
||||
--- a/arch/m68k/atari/stram.c
|
||||
+++ b/arch/m68k/atari/stram.c
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
- * arch/m68k/atari/stram.c: Functions for ST-RAM allocations
|
||||
+ * Functions for ST-RAM allocations
|
||||
*
|
||||
* Copyright 1994-97 Roman Hodek <Roman.Hodek@informatik.uni-erlangen.de>
|
||||
*
|
||||
@@ -30,91 +30,35 @@
|
||||
#include <asm/atari_stram.h>
|
||||
#include <asm/io.h>
|
||||
|
||||
-#undef DEBUG
|
||||
-
|
||||
-#ifdef DEBUG
|
||||
-#define DPRINTK(fmt,args...) printk( fmt, ##args )
|
||||
-#else
|
||||
-#define DPRINTK(fmt,args...)
|
||||
-#endif
|
||||
-
|
||||
-#if defined(CONFIG_PROC_FS) && defined(CONFIG_STRAM_PROC)
|
||||
-/* abbrev for the && above... */
|
||||
-#define DO_PROC
|
||||
-#include <linux/proc_fs.h>
|
||||
-#include <linux/seq_file.h>
|
||||
-#endif
|
||||
|
||||
/*
|
||||
- * ++roman:
|
||||
- *
|
||||
- * New version of ST-Ram buffer allocation. Instead of using the
|
||||
- * 1 MB - 4 KB that remain when the ST-Ram chunk starts at $1000
|
||||
- * (1 MB granularity!), such buffers are reserved like this:
|
||||
- *
|
||||
- * - If the kernel resides in ST-Ram anyway, we can take the buffer
|
||||
- * from behind the current kernel data space the normal way
|
||||
- * (incrementing start_mem).
|
||||
- *
|
||||
- * - If the kernel is in TT-Ram, stram_init() initializes start and
|
||||
- * end of the available region. Buffers are allocated from there
|
||||
- * and mem_init() later marks the such used pages as reserved.
|
||||
- * Since each TT-Ram chunk is at least 4 MB in size, I hope there
|
||||
- * won't be an overrun of the ST-Ram region by normal kernel data
|
||||
- * space.
|
||||
- *
|
||||
- * For that, ST-Ram may only be allocated while kernel initialization
|
||||
- * is going on, or exactly: before mem_init() is called. There is also
|
||||
- * no provision now for freeing ST-Ram buffers. It seems that isn't
|
||||
- * really needed.
|
||||
- *
|
||||
+ * The ST-RAM allocator allocates memory from a pool of reserved ST-RAM of
|
||||
+ * configurable size, set aside on ST-RAM init.
|
||||
+ * As long as this pool is not exhausted, allocation of real ST-RAM can be
|
||||
+ * guaranteed.
|
||||
*/
|
||||
|
||||
-/* Start and end (virtual) of ST-RAM */
|
||||
-static void *stram_start, *stram_end;
|
||||
-
|
||||
-/* set after memory_init() executed and allocations via start_mem aren't
|
||||
- * possible anymore */
|
||||
-static int mem_init_done;
|
||||
-
|
||||
/* set if kernel is in ST-RAM */
|
||||
static int kernel_in_stram;
|
||||
|
||||
-typedef struct stram_block {
|
||||
- struct stram_block *next;
|
||||
- void *start;
|
||||
- unsigned long size;
|
||||
- unsigned flags;
|
||||
- const char *owner;
|
||||
-} BLOCK;
|
||||
-
|
||||
-/* values for flags field */
|
||||
-#define BLOCK_FREE 0x01 /* free structure in the BLOCKs pool */
|
||||
-#define BLOCK_KMALLOCED 0x02 /* structure allocated by kmalloc() */
|
||||
-#define BLOCK_GFP 0x08 /* block allocated with __get_dma_pages() */
|
||||
+static struct resource stram_pool = {
|
||||
+ .name = "ST-RAM Pool"
|
||||
+};
|
||||
|
||||
-/* list of allocated blocks */
|
||||
-static BLOCK *alloc_list;
|
||||
+static unsigned long pool_size = 1024*1024;
|
||||
|
||||
-/* We can't always use kmalloc() to allocate BLOCK structures, since
|
||||
- * stram_alloc() can be called rather early. So we need some pool of
|
||||
- * statically allocated structures. 20 of them is more than enough, so in most
|
||||
- * cases we never should need to call kmalloc(). */
|
||||
-#define N_STATIC_BLOCKS 20
|
||||
-static BLOCK static_blocks[N_STATIC_BLOCKS];
|
||||
|
||||
-/***************************** Prototypes *****************************/
|
||||
+static int __init atari_stram_setup(char *arg)
|
||||
+{
|
||||
+ if (!MACH_IS_ATARI)
|
||||
+ return 0;
|
||||
|
||||
-static BLOCK *add_region( void *addr, unsigned long size );
|
||||
-static BLOCK *find_region( void *addr );
|
||||
-static int remove_region( BLOCK *block );
|
||||
+ pool_size = memparse(arg, NULL);
|
||||
+ return 0;
|
||||
+}
|
||||
|
||||
-/************************* End of Prototypes **************************/
|
||||
+early_param("stram_pool", atari_stram_setup);
|
||||
|
||||
-
|
||||
-/* ------------------------------------------------------------------------ */
|
||||
-/* Public Interface */
|
||||
-/* ------------------------------------------------------------------------ */
|
||||
|
||||
/*
|
||||
* This init function is called very early by atari/config.c
|
||||
@@ -123,25 +67,23 @@ static int remove_region( BLOCK *block );
|
||||
void __init atari_stram_init(void)
|
||||
{
|
||||
int i;
|
||||
+ void *stram_start;
|
||||
|
||||
- /* initialize static blocks */
|
||||
- for( i = 0; i < N_STATIC_BLOCKS; ++i )
|
||||
- static_blocks[i].flags = BLOCK_FREE;
|
||||
-
|
||||
- /* determine whether kernel code resides in ST-RAM (then ST-RAM is the
|
||||
- * first memory block at virtual 0x0) */
|
||||
+ /*
|
||||
+ * determine whether kernel code resides in ST-RAM
|
||||
+ * (then ST-RAM is the first memory block at virtual 0x0)
|
||||
+ */
|
||||
stram_start = phys_to_virt(0);
|
||||
kernel_in_stram = (stram_start == 0);
|
||||
|
||||
- for( i = 0; i < m68k_num_memory; ++i ) {
|
||||
+ for (i = 0; i < m68k_num_memory; ++i) {
|
||||
if (m68k_memory[i].addr == 0) {
|
||||
- /* skip first 2kB or page (supervisor-only!) */
|
||||
- stram_end = stram_start + m68k_memory[i].size;
|
||||
return;
|
||||
}
|
||||
}
|
||||
+
|
||||
/* Should never come here! (There is always ST-Ram!) */
|
||||
- panic( "atari_stram_init: no ST-RAM found!" );
|
||||
+ panic("atari_stram_init: no ST-RAM found!");
|
||||
}
|
||||
|
||||
|
||||
@@ -151,226 +93,68 @@ void __init atari_stram_init(void)
|
||||
*/
|
||||
void __init atari_stram_reserve_pages(void *start_mem)
|
||||
{
|
||||
- /* always reserve first page of ST-RAM, the first 2 kB are
|
||||
- * supervisor-only! */
|
||||
+ /*
|
||||
+ * always reserve first page of ST-RAM, the first 2 KiB are
|
||||
+ * supervisor-only!
|
||||
+ */
|
||||
if (!kernel_in_stram)
|
||||
reserve_bootmem(0, PAGE_SIZE, BOOTMEM_DEFAULT);
|
||||
|
||||
-}
|
||||
+ stram_pool.start = (resource_size_t)alloc_bootmem_low_pages(pool_size);
|
||||
+ stram_pool.end = stram_pool.start + pool_size - 1;
|
||||
+ request_resource(&iomem_resource, &stram_pool);
|
||||
|
||||
-void atari_stram_mem_init_hook (void)
|
||||
-{
|
||||
- mem_init_done = 1;
|
||||
+ pr_debug("atari_stram pool: size = %lu bytes, resource = %pR\n",
|
||||
+ pool_size, &stram_pool);
|
||||
}
|
||||
|
||||
|
||||
-/*
|
||||
- * This is main public interface: somehow allocate a ST-RAM block
|
||||
- *
|
||||
- * - If we're before mem_init(), we have to make a static allocation. The
|
||||
- * region is taken in the kernel data area (if the kernel is in ST-RAM) or
|
||||
- * from the start of ST-RAM (if the kernel is in TT-RAM) and added to the
|
||||
- * rsvd_stram_* region. The ST-RAM is somewhere in the middle of kernel
|
||||
- * address space in the latter case.
|
||||
- *
|
||||
- * - If mem_init() already has been called, try with __get_dma_pages().
|
||||
- * This has the disadvantage that it's very hard to get more than 1 page,
|
||||
- * and it is likely to fail :-(
|
||||
- *
|
||||
- */
|
||||
-void *atari_stram_alloc(long size, const char *owner)
|
||||
+void *atari_stram_alloc(unsigned long size, const char *owner)
|
||||
{
|
||||
- void *addr = NULL;
|
||||
- BLOCK *block;
|
||||
- int flags;
|
||||
-
|
||||
- DPRINTK("atari_stram_alloc(size=%08lx,owner=%s)\n", size, owner);
|
||||
-
|
||||
- if (!mem_init_done)
|
||||
- return alloc_bootmem_low(size);
|
||||
- else {
|
||||
- /* After mem_init(): can only resort to __get_dma_pages() */
|
||||
- addr = (void *)__get_dma_pages(GFP_KERNEL, get_order(size));
|
||||
- flags = BLOCK_GFP;
|
||||
- DPRINTK( "atari_stram_alloc: after mem_init, "
|
||||
- "get_pages=%p\n", addr );
|
||||
+ struct resource *res;
|
||||
+ int error;
|
||||
+
|
||||
+ pr_debug("atari_stram_alloc: allocate %lu bytes\n", size);
|
||||
+
|
||||
+ /* round up */
|
||||
+ size = PAGE_ALIGN(size);
|
||||
+
|
||||
+ res = kzalloc(sizeof(struct resource), GFP_KERNEL);
|
||||
+ if (!res)
|
||||
+ return NULL;
|
||||
+
|
||||
+ res->name = owner;
|
||||
+ error = allocate_resource(&stram_pool, res, size, 0, UINT_MAX,
|
||||
+ PAGE_SIZE, NULL, NULL);
|
||||
+ if (error < 0) {
|
||||
+ pr_err("atari_stram_alloc: allocate_resource() failed %d!\n",
|
||||
+ error);
|
||||
+ kfree(res);
|
||||
+ return NULL;
|
||||
}
|
||||
|
||||
- if (addr) {
|
||||
- if (!(block = add_region( addr, size ))) {
|
||||
- /* out of memory for BLOCK structure :-( */
|
||||
- DPRINTK( "atari_stram_alloc: out of mem for BLOCK -- "
|
||||
- "freeing again\n" );
|
||||
- free_pages((unsigned long)addr, get_order(size));
|
||||
- return( NULL );
|
||||
- }
|
||||
- block->owner = owner;
|
||||
- block->flags |= flags;
|
||||
- }
|
||||
- return( addr );
|
||||
+ pr_debug("atari_stram_alloc: returning %pR\n", res);
|
||||
+ return (void *)res->start;
|
||||
}
|
||||
EXPORT_SYMBOL(atari_stram_alloc);
|
||||
|
||||
-void atari_stram_free( void *addr )
|
||||
|
||||
+void atari_stram_free(void *addr)
|
||||
{
|
||||
- BLOCK *block;
|
||||
-
|
||||
- DPRINTK( "atari_stram_free(addr=%p)\n", addr );
|
||||
+ unsigned long start = (unsigned long)addr;
|
||||
+ struct resource *res;
|
||||
+ unsigned long size;
|
||||
|
||||
- if (!(block = find_region( addr ))) {
|
||||
- printk( KERN_ERR "Attempt to free non-allocated ST-RAM block at %p "
|
||||
- "from %p\n", addr, __builtin_return_address(0) );
|
||||
+ res = lookup_resource(&stram_pool, start);
|
||||
+ if (!res) {
|
||||
+ pr_err("atari_stram_free: trying to free nonexistent region "
|
||||
+ "at %p\n", addr);
|
||||
return;
|
||||
}
|
||||
- DPRINTK( "atari_stram_free: found block (%p): size=%08lx, owner=%s, "
|
||||
- "flags=%02x\n", block, block->size, block->owner, block->flags );
|
||||
-
|
||||
- if (!(block->flags & BLOCK_GFP))
|
||||
- goto fail;
|
||||
|
||||
- DPRINTK("atari_stram_free: is kmalloced, order_size=%d\n",
|
||||
- get_order(block->size));
|
||||
- free_pages((unsigned long)addr, get_order(block->size));
|
||||
- remove_region( block );
|
||||
- return;
|
||||
-
|
||||
- fail:
|
||||
- printk( KERN_ERR "atari_stram_free: cannot free block at %p "
|
||||
- "(called from %p)\n", addr, __builtin_return_address(0) );
|
||||
+ size = resource_size(res);
|
||||
+ pr_debug("atari_stram_free: free %lu bytes at %p\n", size, addr);
|
||||
+ release_resource(res);
|
||||
+ kfree(res);
|
||||
}
|
||||
EXPORT_SYMBOL(atari_stram_free);
|
||||
-
|
||||
-
|
||||
-/* ------------------------------------------------------------------------ */
|
||||
-/* Region Management */
|
||||
-/* ------------------------------------------------------------------------ */
|
||||
-
|
||||
-
|
||||
-/* insert a region into the alloced list (sorted) */
|
||||
-static BLOCK *add_region( void *addr, unsigned long size )
|
||||
-{
|
||||
- BLOCK **p, *n = NULL;
|
||||
- int i;
|
||||
-
|
||||
- for( i = 0; i < N_STATIC_BLOCKS; ++i ) {
|
||||
- if (static_blocks[i].flags & BLOCK_FREE) {
|
||||
- n = &static_blocks[i];
|
||||
- n->flags = 0;
|
||||
- break;
|
||||
- }
|
||||
- }
|
||||
- if (!n && mem_init_done) {
|
||||
- /* if statics block pool exhausted and we can call kmalloc() already
|
||||
- * (after mem_init()), try that */
|
||||
- n = kmalloc( sizeof(BLOCK), GFP_KERNEL );
|
||||
- if (n)
|
||||
- n->flags = BLOCK_KMALLOCED;
|
||||
- }
|
||||
- if (!n) {
|
||||
- printk( KERN_ERR "Out of memory for ST-RAM descriptor blocks\n" );
|
||||
- return( NULL );
|
||||
- }
|
||||
- n->start = addr;
|
||||
- n->size = size;
|
||||
-
|
||||
- for( p = &alloc_list; *p; p = &((*p)->next) )
|
||||
- if ((*p)->start > addr) break;
|
||||
- n->next = *p;
|
||||
- *p = n;
|
||||
-
|
||||
- return( n );
|
||||
-}
|
||||
-
|
||||
-
|
||||
-/* find a region (by start addr) in the alloced list */
|
||||
-static BLOCK *find_region( void *addr )
|
||||
-{
|
||||
- BLOCK *p;
|
||||
-
|
||||
- for( p = alloc_list; p; p = p->next ) {
|
||||
- if (p->start == addr)
|
||||
- return( p );
|
||||
- if (p->start > addr)
|
||||
- break;
|
||||
- }
|
||||
- return( NULL );
|
||||
-}
|
||||
-
|
||||
-
|
||||
-/* remove a block from the alloced list */
|
||||
-static int remove_region( BLOCK *block )
|
||||
-{
|
||||
- BLOCK **p;
|
||||
-
|
||||
- for( p = &alloc_list; *p; p = &((*p)->next) )
|
||||
- if (*p == block) break;
|
||||
- if (!*p)
|
||||
- return( 0 );
|
||||
-
|
||||
- *p = block->next;
|
||||
- if (block->flags & BLOCK_KMALLOCED)
|
||||
- kfree( block );
|
||||
- else
|
||||
- block->flags |= BLOCK_FREE;
|
||||
- return( 1 );
|
||||
-}
|
||||
-
|
||||
-
|
||||
-
|
||||
-/* ------------------------------------------------------------------------ */
|
||||
-/* /proc statistics file stuff */
|
||||
-/* ------------------------------------------------------------------------ */
|
||||
-
|
||||
-#ifdef DO_PROC
|
||||
-
|
||||
-#define PRINT_PROC(fmt,args...) seq_printf( m, fmt, ##args )
|
||||
-
|
||||
-static int stram_proc_show(struct seq_file *m, void *v)
|
||||
-{
|
||||
- BLOCK *p;
|
||||
-
|
||||
- PRINT_PROC("Total ST-RAM: %8u kB\n",
|
||||
- (stram_end - stram_start) >> 10);
|
||||
- PRINT_PROC( "Allocated regions:\n" );
|
||||
- for( p = alloc_list; p; p = p->next ) {
|
||||
- PRINT_PROC("0x%08lx-0x%08lx: %s (",
|
||||
- virt_to_phys(p->start),
|
||||
- virt_to_phys(p->start+p->size-1),
|
||||
- p->owner);
|
||||
- if (p->flags & BLOCK_GFP)
|
||||
- PRINT_PROC( "page-alloced)\n" );
|
||||
- else
|
||||
- PRINT_PROC( "??)\n" );
|
||||
- }
|
||||
-
|
||||
- return 0;
|
||||
-}
|
||||
-
|
||||
-static int stram_proc_open(struct inode *inode, struct file *file)
|
||||
-{
|
||||
- return single_open(file, stram_proc_show, NULL);
|
||||
-}
|
||||
-
|
||||
-static const struct file_operations stram_proc_fops = {
|
||||
- .open = stram_proc_open,
|
||||
- .read = seq_read,
|
||||
- .llseek = seq_lseek,
|
||||
- .release = single_release,
|
||||
-};
|
||||
-
|
||||
-static int __init proc_stram_init(void)
|
||||
-{
|
||||
- proc_create("stram", 0, NULL, &stram_proc_fops);
|
||||
- return 0;
|
||||
-}
|
||||
-module_init(proc_stram_init);
|
||||
-#endif
|
||||
-
|
||||
-
|
||||
-/*
|
||||
- * Local variables:
|
||||
- * c-indent-level: 4
|
||||
- * tab-width: 4
|
||||
- * End:
|
||||
- */
|
||||
diff --git a/arch/m68k/include/asm/atari_stram.h b/arch/m68k/include/asm/atari_stram.h
|
||||
index 7546d13..62e2759 100644
|
||||
--- a/arch/m68k/include/asm/atari_stram.h
|
||||
+++ b/arch/m68k/include/asm/atari_stram.h
|
||||
@@ -6,12 +6,11 @@
|
||||
*/
|
||||
|
||||
/* public interface */
|
||||
-void *atari_stram_alloc(long size, const char *owner);
|
||||
+void *atari_stram_alloc(unsigned long size, const char *owner);
|
||||
void atari_stram_free(void *);
|
||||
|
||||
/* functions called internally by other parts of the kernel */
|
||||
void atari_stram_init(void);
|
||||
void atari_stram_reserve_pages(void *start_mem);
|
||||
-void atari_stram_mem_init_hook (void);
|
||||
|
||||
#endif /*_M68K_ATARI_STRAM_H */
|
||||
diff --git a/arch/m68k/mm/init_mm.c b/arch/m68k/mm/init_mm.c
|
||||
index 9113c2f..bbe5254 100644
|
||||
--- a/arch/m68k/mm/init_mm.c
|
||||
+++ b/arch/m68k/mm/init_mm.c
|
||||
@@ -83,11 +83,6 @@ void __init mem_init(void)
|
||||
int initpages = 0;
|
||||
int i;
|
||||
|
||||
-#ifdef CONFIG_ATARI
|
||||
- if (MACH_IS_ATARI)
|
||||
- atari_stram_mem_init_hook();
|
||||
-#endif
|
||||
-
|
||||
/* this will put all memory onto the freelists */
|
||||
totalram_pages = num_physpages = 0;
|
||||
for_each_online_pgdat(pgdat) {
|
||||
--
|
||||
1.7.2.5
|
||||
|
|
@ -1,62 +0,0 @@
|
|||
From 1789c38726c2805563e9049dbc5d5253251761a7 Mon Sep 17 00:00:00 2001
|
||||
From: Geert Uytterhoeven <geert@linux-m68k.org>
|
||||
Date: Sat, 7 May 2011 20:53:16 +0200
|
||||
Subject: [PATCH] resources: Add lookup_resource()
|
||||
|
||||
Add a function to find an existing resource by a resource start address.
|
||||
This allows to implement simple allocators (with a malloc/free-alike API)
|
||||
on top of the resource system.
|
||||
|
||||
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
|
||||
---
|
||||
include/linux/ioport.h | 1 +
|
||||
kernel/resource.c | 21 +++++++++++++++++++++
|
||||
2 files changed, 22 insertions(+), 0 deletions(-)
|
||||
|
||||
diff --git a/include/linux/ioport.h b/include/linux/ioport.h
|
||||
index e9bb22c..63eb429 100644
|
||||
--- a/include/linux/ioport.h
|
||||
+++ b/include/linux/ioport.h
|
||||
@@ -132,6 +132,7 @@ extern int allocate_resource(struct resource *root, struct resource *new,
|
||||
resource_size_t,
|
||||
resource_size_t),
|
||||
void *alignf_data);
|
||||
+struct resource *lookup_resource(struct resource *root, resource_size_t start);
|
||||
int adjust_resource(struct resource *res, resource_size_t start,
|
||||
resource_size_t size);
|
||||
resource_size_t resource_alignment(struct resource *res);
|
||||
diff --git a/kernel/resource.c b/kernel/resource.c
|
||||
index 798e2fa..8d0b479 100644
|
||||
--- a/kernel/resource.c
|
||||
+++ b/kernel/resource.c
|
||||
@@ -473,6 +473,27 @@ int allocate_resource(struct resource *root, struct resource *new,
|
||||
|
||||
EXPORT_SYMBOL(allocate_resource);
|
||||
|
||||
+/**
|
||||
+ * lookup_resource - find an existing resource by a resource start address
|
||||
+ * @root: root resource descriptor
|
||||
+ * @start: resource start address
|
||||
+ *
|
||||
+ * Returns a pointer to the resource if found, NULL otherwise
|
||||
+ */
|
||||
+struct resource *lookup_resource(struct resource *root, resource_size_t start)
|
||||
+{
|
||||
+ struct resource *res;
|
||||
+
|
||||
+ read_lock(&resource_lock);
|
||||
+ for (res = root->child; res; res = res->sibling) {
|
||||
+ if (res->start == start)
|
||||
+ break;
|
||||
+ }
|
||||
+ read_unlock(&resource_lock);
|
||||
+
|
||||
+ return res;
|
||||
+}
|
||||
+
|
||||
/*
|
||||
* Insert a resource into the resource tree. If successful, return NULL,
|
||||
* otherwise return the conflicting resource (compare to __request_resource())
|
||||
--
|
||||
1.7.2.5
|
||||
|
File diff suppressed because it is too large
Load Diff
|
@ -1,39 +1,15 @@
|
|||
diff --git a/arch/powerpc/platforms/pseries/lpar.c b/arch/powerpc/platforms/pseries/lpar.c
|
||||
index 9235c46..8a20452 100644
|
||||
--- a/arch/powerpc/platforms/pseries/lpar.c
|
||||
+++ b/arch/powerpc/platforms/pseries/lpar.c
|
||||
@@ -204,6 +204,7 @@ void __init find_udbg_vterm(void)
|
||||
struct device_node *stdout_node;
|
||||
const u32 *termno;
|
||||
const char *name;
|
||||
+ int add_console;
|
||||
|
||||
/* find the boot console from /chosen/stdout */
|
||||
if (!of_chosen)
|
||||
@@ -219,6 +220,8 @@ void __init find_udbg_vterm(void)
|
||||
printk(KERN_WARNING "stdout node missing 'name' property!\n");
|
||||
diff --git a/drivers/tty/hvc/hvc_vio.c b/drivers/tty/hvc/hvc_vio.c
|
||||
index 130aace..028349a 100644
|
||||
--- a/drivers/tty/hvc/hvc_vio.c
|
||||
+++ b/drivers/tty/hvc/hvc_vio.c
|
||||
@@ -446,7 +446,9 @@ void __init hvc_vio_init_early(void)
|
||||
if (hvterm_priv0.proto == HV_PROTOCOL_HVSI)
|
||||
goto out;
|
||||
}
|
||||
+ /* The user has requested a console so this is already set up. */
|
||||
+ add_console = !strstr(cmd_line, "console=");
|
||||
|
||||
/* Check if it's a virtual terminal */
|
||||
if (strncmp(name, "vty", 3) != 0)
|
||||
@@ -232,13 +235,15 @@ void __init find_udbg_vterm(void)
|
||||
udbg_putc = udbg_putcLP;
|
||||
udbg_getc = udbg_getcLP;
|
||||
udbg_getc_poll = udbg_getc_pollLP;
|
||||
- add_preferred_console("hvc", termno[0] & 0xff, NULL);
|
||||
+ if (add_console)
|
||||
+ add_preferred_console("hvc", termno[0] & 0xff, NULL);
|
||||
} else if (of_device_is_compatible(stdout_node, "hvterm-protocol")) {
|
||||
vtermno = termno[0];
|
||||
udbg_putc = udbg_hvsi_putc;
|
||||
udbg_getc = udbg_hvsi_getc;
|
||||
udbg_getc_poll = udbg_hvsi_getc_poll;
|
||||
- add_preferred_console("hvsi", termno[0] & 0xff, NULL);
|
||||
+ if (add_console)
|
||||
+ add_preferred_console("hvsi", termno[0] & 0xff, NULL);
|
||||
}
|
||||
#endif
|
||||
- add_preferred_console("hvc", 0, NULL);
|
||||
+ /* Check whether the user has requested a different console. */
|
||||
+ if (!strstr(cmd_line, "console="))
|
||||
+ add_preferred_console("hvc", 0, NULL);
|
||||
hvc_instantiate(0, 0, ops);
|
||||
out:
|
||||
of_node_put(stdout_node);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
From 05bf283675db983cab59159db8fb82b9a2858c7f Mon Sep 17 00:00:00 2001
|
||||
From 9ea05ef9d1e272f17808838510f886d3138845b8 Mon Sep 17 00:00:00 2001
|
||||
From: Ben Hutchings <ben@decadent.org.uk>
|
||||
Date: Tue, 14 Sep 2010 04:33:34 +0100
|
||||
Subject: [PATCH] Kbuild: kconfig: Verbose version of --listnewconfig
|
||||
|
@ -12,17 +12,17 @@ maximilian attems <max@stro.at>. Simplified by Michal Marek
|
|||
|
||||
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
||||
---
|
||||
scripts/kconfig/conf.c | 45 +++++++++++++++++++++++++++++++++---------
|
||||
scripts/kconfig/confdata.c | 5 ++-
|
||||
scripts/kconfig/expr.h | 2 +
|
||||
scripts/kconfig/conf.c | 42 ++++++++++++++++++++++++++++++++----------
|
||||
scripts/kconfig/confdata.c | 9 +++++++++
|
||||
scripts/kconfig/expr.h | 2 ++
|
||||
scripts/kconfig/lkc_proto.h | 1 +
|
||||
4 files changed, 41 insertions(+), 12 deletions(-)
|
||||
4 files changed, 44 insertions(+), 10 deletions(-)
|
||||
|
||||
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c
|
||||
index 5459a38..f4752b4 100644
|
||||
index f208f90..ffaa787 100644
|
||||
--- a/scripts/kconfig/conf.c
|
||||
+++ b/scripts/kconfig/conf.c
|
||||
@@ -363,7 +363,6 @@ static void conf(struct menu *menu)
|
||||
@@ -364,7 +364,6 @@ static void conf(struct menu *menu)
|
||||
switch (prop->type) {
|
||||
case P_MENU:
|
||||
if ((input_mode == silentoldconfig ||
|
||||
|
@ -30,7 +30,7 @@ index 5459a38..f4752b4 100644
|
|||
input_mode == oldnoconfig) &&
|
||||
rootEntry != menu) {
|
||||
check_conf(menu);
|
||||
@@ -423,11 +422,7 @@ static void check_conf(struct menu *menu)
|
||||
@@ -425,11 +424,7 @@ static void check_conf(struct menu *menu)
|
||||
if (sym && !sym_has_value(sym)) {
|
||||
if (sym_is_changable(sym) ||
|
||||
(sym_is_choice(sym) && sym_get_tristate_value(sym) == yes)) {
|
||||
|
@ -43,7 +43,7 @@ index 5459a38..f4752b4 100644
|
|||
if (!conf_cnt++)
|
||||
printf(_("*\n* Restart config...\n*\n"));
|
||||
rootEntry = menu_get_parent_menu(menu);
|
||||
@@ -440,6 +435,33 @@ static void check_conf(struct menu *menu)
|
||||
@@ -442,6 +437,30 @@ static void check_conf(struct menu *menu)
|
||||
check_conf(child);
|
||||
}
|
||||
|
||||
|
@ -64,10 +64,7 @@ index 5459a38..f4752b4 100644
|
|||
+ sym = menu->sym;
|
||||
+ if (sym && (sym->flags & SYMBOL_NEW) &&
|
||||
+ sym_is_changable(sym) && sym->name && !sym_is_choice_value(sym)) {
|
||||
+ if (verbose)
|
||||
+ conf_write_symbol(sym, stdout, true);
|
||||
+ else
|
||||
+ printf("CONFIG_%s\n", sym->name);
|
||||
+ conf_write_new_symbol(stdout, sym, verbose);
|
||||
+ }
|
||||
+
|
||||
+ for (child = menu->list; child; child = child->next)
|
||||
|
@ -77,15 +74,15 @@ index 5459a38..f4752b4 100644
|
|||
static struct option long_opts[] = {
|
||||
{"oldaskconfig", no_argument, NULL, oldaskconfig},
|
||||
{"oldconfig", no_argument, NULL, oldconfig},
|
||||
@@ -460,6 +482,7 @@ int main(int ac, char **av)
|
||||
{
|
||||
@@ -482,6 +501,7 @@ int main(int ac, char **av)
|
||||
const char *progname = av[0];
|
||||
int opt;
|
||||
const char *name;
|
||||
const char *name, *defconfig_file = NULL /* gcc uninit */;
|
||||
+ const char *value;
|
||||
struct stat tmpstat;
|
||||
|
||||
setlocale(LC_ALL, "");
|
||||
@@ -604,16 +627,18 @@ int main(int ac, char **av)
|
||||
@@ -634,16 +654,18 @@ int main(int ac, char **av)
|
||||
input_mode = silentoldconfig;
|
||||
/* fall through */
|
||||
case oldconfig:
|
||||
|
@ -109,19 +106,25 @@ index 5459a38..f4752b4 100644
|
|||
}
|
||||
|
||||
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c
|
||||
index c06f150..fbbacac 100644
|
||||
index 59b667c..d2be252 100644
|
||||
--- a/scripts/kconfig/confdata.c
|
||||
+++ b/scripts/kconfig/confdata.c
|
||||
@@ -440,7 +440,7 @@ static void conf_write_string(bool headerfile, const char *name,
|
||||
fputs("\"\n", out);
|
||||
@@ -695,6 +695,14 @@ next_menu:
|
||||
return 0;
|
||||
}
|
||||
|
||||
-static void conf_write_symbol(struct symbol *sym, FILE *out, bool write_no)
|
||||
+void conf_write_symbol(struct symbol *sym, FILE *out, bool write_no)
|
||||
+void conf_write_new_symbol(FILE *fp, struct symbol *sym, bool verbose)
|
||||
+{
|
||||
+ if (verbose)
|
||||
+ conf_write_symbol(fp, sym, &kconfig_printer_cb, NULL);
|
||||
+ else
|
||||
+ fprintf(fp, "%s%s\n", CONFIG_, sym->name);
|
||||
+}
|
||||
+
|
||||
int conf_write(const char *name)
|
||||
{
|
||||
const char *str;
|
||||
|
||||
@@ -1009,6 +1009,7 @@ void conf_set_all_new_symbols(enum conf_def_mode mode)
|
||||
FILE *out;
|
||||
@@ -1079,6 +1087,7 @@ void conf_set_all_new_symbols(enum conf_def_mode mode)
|
||||
for_all_symbols(i, sym) {
|
||||
if (sym_has_value(sym))
|
||||
continue;
|
||||
|
@ -130,10 +133,10 @@ index c06f150..fbbacac 100644
|
|||
case S_BOOLEAN:
|
||||
case S_TRISTATE:
|
||||
diff --git a/scripts/kconfig/expr.h b/scripts/kconfig/expr.h
|
||||
index 184eb6a..b267933 100644
|
||||
index 80fce57..0db77f3 100644
|
||||
--- a/scripts/kconfig/expr.h
|
||||
+++ b/scripts/kconfig/expr.h
|
||||
@@ -108,6 +108,8 @@ struct symbol {
|
||||
@@ -104,6 +104,8 @@ struct symbol {
|
||||
#define SYMBOL_DEF3 0x40000 /* symbol.def[S_DEF_3] is valid */
|
||||
#define SYMBOL_DEF4 0x80000 /* symbol.def[S_DEF_4] is valid */
|
||||
|
||||
|
@ -143,17 +146,17 @@ index 184eb6a..b267933 100644
|
|||
#define SYMBOL_HASHSIZE 9973
|
||||
|
||||
diff --git a/scripts/kconfig/lkc_proto.h b/scripts/kconfig/lkc_proto.h
|
||||
index 17342fe..6da571b 100644
|
||||
index 47fe9c3..dd0024a 100644
|
||||
--- a/scripts/kconfig/lkc_proto.h
|
||||
+++ b/scripts/kconfig/lkc_proto.h
|
||||
@@ -7,6 +7,7 @@ P(conf_read_simple,int,(const char *name, int));
|
||||
P(conf_write_defconfig,int,(const char *name));
|
||||
P(conf_write,int,(const char *name));
|
||||
P(conf_write_autoconf,int,(void));
|
||||
+P(conf_write_symbol, void,(struct symbol*, FILE*, bool));
|
||||
+P(conf_write_new_symbol, void,(FILE*, struct symbol*, bool));
|
||||
P(conf_get_changed,bool,(void));
|
||||
P(conf_set_changed_callback, void,(void (*fn)(void)));
|
||||
P(conf_set_message_callback, void,(void (*fn)(const char *fmt, va_list ap)));
|
||||
--
|
||||
1.7.2.3
|
||||
1.7.5.4
|
||||
|
||||
|
|
|
@ -1,162 +0,0 @@
|
|||
diff --git a/drivers/block/xen-blkback/blkback.c b/drivers/block/xen-blkback/blkback.c
|
||||
index 5cf2993..ed62008 100644
|
||||
--- a/drivers/block/xen-blkback/blkback.c
|
||||
+++ b/drivers/block/xen-blkback/blkback.c
|
||||
@@ -824,3 +824,4 @@ static int __init xen_blkif_init(void)
|
||||
module_init(xen_blkif_init);
|
||||
|
||||
MODULE_LICENSE("Dual BSD/GPL");
|
||||
+MODULE_ALIAS("xen-backend:vbd");
|
||||
diff --git a/drivers/net/xen-netback/netback.c b/drivers/net/xen-netback/netback.c
|
||||
index 0e4851b..fd00f25 100644
|
||||
--- a/drivers/net/xen-netback/netback.c
|
||||
+++ b/drivers/net/xen-netback/netback.c
|
||||
@@ -1743,3 +1743,4 @@ failed_init:
|
||||
module_init(netback_init);
|
||||
|
||||
MODULE_LICENSE("Dual BSD/GPL");
|
||||
+MODULE_ALIAS("xen-backend:vif");
|
||||
diff --git a/drivers/xen/xenbus/xenbus_probe.c b/drivers/xen/xenbus/xenbus_probe.c
|
||||
index 7397695..bd2f90c 100644
|
||||
--- a/drivers/xen/xenbus/xenbus_probe.c
|
||||
+++ b/drivers/xen/xenbus/xenbus_probe.c
|
||||
@@ -378,26 +378,32 @@ static void xenbus_dev_release(struct device *dev)
|
||||
kfree(to_xenbus_device(dev));
|
||||
}
|
||||
|
||||
-static ssize_t xendev_show_nodename(struct device *dev,
|
||||
- struct device_attribute *attr, char *buf)
|
||||
+static ssize_t nodename_show(struct device *dev,
|
||||
+ struct device_attribute *attr, char *buf)
|
||||
{
|
||||
return sprintf(buf, "%s\n", to_xenbus_device(dev)->nodename);
|
||||
}
|
||||
-static DEVICE_ATTR(nodename, S_IRUSR | S_IRGRP | S_IROTH, xendev_show_nodename, NULL);
|
||||
|
||||
-static ssize_t xendev_show_devtype(struct device *dev,
|
||||
- struct device_attribute *attr, char *buf)
|
||||
+static ssize_t devtype_show(struct device *dev,
|
||||
+ struct device_attribute *attr, char *buf)
|
||||
{
|
||||
return sprintf(buf, "%s\n", to_xenbus_device(dev)->devicetype);
|
||||
}
|
||||
-static DEVICE_ATTR(devtype, S_IRUSR | S_IRGRP | S_IROTH, xendev_show_devtype, NULL);
|
||||
|
||||
-static ssize_t xendev_show_modalias(struct device *dev,
|
||||
- struct device_attribute *attr, char *buf)
|
||||
+static ssize_t modalias_show(struct device *dev,
|
||||
+ struct device_attribute *attr, char *buf)
|
||||
{
|
||||
- return sprintf(buf, "xen:%s\n", to_xenbus_device(dev)->devicetype);
|
||||
+ return sprintf(buf, "%s:%s\n", dev->bus->name,
|
||||
+ to_xenbus_device(dev)->devicetype);
|
||||
}
|
||||
-static DEVICE_ATTR(modalias, S_IRUSR | S_IRGRP | S_IROTH, xendev_show_modalias, NULL);
|
||||
+
|
||||
+struct device_attribute xenbus_dev_attrs[] = {
|
||||
+ __ATTR_RO(nodename),
|
||||
+ __ATTR_RO(devtype),
|
||||
+ __ATTR_RO(modalias),
|
||||
+ __ATTR_NULL
|
||||
+};
|
||||
+EXPORT_SYMBOL_GPL(xenbus_dev_attrs);
|
||||
|
||||
int xenbus_probe_node(struct xen_bus_type *bus,
|
||||
const char *type,
|
||||
@@ -449,25 +455,7 @@ int xenbus_probe_node(struct xen_bus_type *bus,
|
||||
if (err)
|
||||
goto fail;
|
||||
|
||||
- err = device_create_file(&xendev->dev, &dev_attr_nodename);
|
||||
- if (err)
|
||||
- goto fail_unregister;
|
||||
-
|
||||
- err = device_create_file(&xendev->dev, &dev_attr_devtype);
|
||||
- if (err)
|
||||
- goto fail_remove_nodename;
|
||||
-
|
||||
- err = device_create_file(&xendev->dev, &dev_attr_modalias);
|
||||
- if (err)
|
||||
- goto fail_remove_devtype;
|
||||
-
|
||||
return 0;
|
||||
-fail_remove_devtype:
|
||||
- device_remove_file(&xendev->dev, &dev_attr_devtype);
|
||||
-fail_remove_nodename:
|
||||
- device_remove_file(&xendev->dev, &dev_attr_nodename);
|
||||
-fail_unregister:
|
||||
- device_unregister(&xendev->dev);
|
||||
fail:
|
||||
kfree(xendev);
|
||||
return err;
|
||||
diff --git a/drivers/xen/xenbus/xenbus_probe.h b/drivers/xen/xenbus/xenbus_probe.h
|
||||
index 888b990..b814935 100644
|
||||
--- a/drivers/xen/xenbus/xenbus_probe.h
|
||||
+++ b/drivers/xen/xenbus/xenbus_probe.h
|
||||
@@ -48,6 +48,8 @@ struct xen_bus_type
|
||||
struct bus_type bus;
|
||||
};
|
||||
|
||||
+extern struct device_attribute xenbus_dev_attrs[];
|
||||
+
|
||||
extern int xenbus_match(struct device *_dev, struct device_driver *_drv);
|
||||
extern int xenbus_dev_probe(struct device *_dev);
|
||||
extern int xenbus_dev_remove(struct device *_dev);
|
||||
diff --git a/drivers/xen/xenbus/xenbus_probe_backend.c b/drivers/xen/xenbus/xenbus_probe_backend.c
|
||||
index 6cf467b..60adf91 100644
|
||||
--- a/drivers/xen/xenbus/xenbus_probe_backend.c
|
||||
+++ b/drivers/xen/xenbus/xenbus_probe_backend.c
|
||||
@@ -107,6 +107,9 @@ static int xenbus_uevent_backend(struct device *dev,
|
||||
if (xdev == NULL)
|
||||
return -ENODEV;
|
||||
|
||||
+ if (add_uevent_var(env, "MODALIAS=xen-backend:%s", xdev->devicetype))
|
||||
+ return -ENOMEM;
|
||||
+
|
||||
/* stuff we want to pass to /sbin/hotplug */
|
||||
if (add_uevent_var(env, "XENBUS_TYPE=%s", xdev->devicetype))
|
||||
return -ENOMEM;
|
||||
@@ -183,10 +186,6 @@ static void frontend_changed(struct xenbus_watch *watch,
|
||||
xenbus_otherend_changed(watch, vec, len, 0);
|
||||
}
|
||||
|
||||
-static struct device_attribute xenbus_backend_dev_attrs[] = {
|
||||
- __ATTR_NULL
|
||||
-};
|
||||
-
|
||||
static struct xen_bus_type xenbus_backend = {
|
||||
.root = "backend",
|
||||
.levels = 3, /* backend/type/<frontend>/<id> */
|
||||
@@ -200,7 +199,7 @@ static struct xen_bus_type xenbus_backend = {
|
||||
.probe = xenbus_dev_probe,
|
||||
.remove = xenbus_dev_remove,
|
||||
.shutdown = xenbus_dev_shutdown,
|
||||
- .dev_attrs = xenbus_backend_dev_attrs,
|
||||
+ .dev_attrs = xenbus_dev_attrs,
|
||||
},
|
||||
};
|
||||
|
||||
diff --git a/drivers/xen/xenbus/xenbus_probe_frontend.c b/drivers/xen/xenbus/xenbus_probe_frontend.c
|
||||
index b6a2690..ed2ba47 100644
|
||||
--- a/drivers/xen/xenbus/xenbus_probe_frontend.c
|
||||
+++ b/drivers/xen/xenbus/xenbus_probe_frontend.c
|
||||
@@ -81,10 +81,6 @@ static void backend_changed(struct xenbus_watch *watch,
|
||||
xenbus_otherend_changed(watch, vec, len, 1);
|
||||
}
|
||||
|
||||
-static struct device_attribute xenbus_frontend_dev_attrs[] = {
|
||||
- __ATTR_NULL
|
||||
-};
|
||||
-
|
||||
static const struct dev_pm_ops xenbus_pm_ops = {
|
||||
.suspend = xenbus_dev_suspend,
|
||||
.resume = xenbus_dev_resume,
|
||||
@@ -106,7 +102,7 @@ static struct xen_bus_type xenbus_frontend = {
|
||||
.probe = xenbus_dev_probe,
|
||||
.remove = xenbus_dev_remove,
|
||||
.shutdown = xenbus_dev_shutdown,
|
||||
- .dev_attrs = xenbus_frontend_dev_attrs,
|
||||
+ .dev_attrs = xenbus_dev_attrs,
|
||||
|
||||
.pm = &xenbus_pm_ops,
|
||||
},
|
|
@ -1,3 +0,0 @@
|
|||
- features/all/rt2x00-Add-device-ID-for-RT539F-device.patch
|
||||
+ bugfix/all/stable/3.0.1.patch
|
||||
+ bugfix/all/perf-do-not-look-at-.-config-for-configuration.patch
|
|
@ -8,12 +8,12 @@
|
|||
|
||||
# Patches and source files from aufs2 repository, imported with
|
||||
# debian/patches/features/all/aufs2/gen-patch.
|
||||
+ features/all/aufs2/aufs2-base.patch
|
||||
+ features/all/aufs2/aufs2-standalone.patch
|
||||
+ features/all/aufs2/aufs2-kbuild.patch
|
||||
+ features/all/aufs2/aufs2-add.patch
|
||||
#+ features/all/aufs2/aufs2-base.patch
|
||||
#+ features/all/aufs2/aufs2-standalone.patch
|
||||
#+ features/all/aufs2/aufs2-kbuild.patch
|
||||
#+ features/all/aufs2/aufs2-add.patch
|
||||
# mark as staging/crap
|
||||
+ features/all/aufs2/mark-as-staging.patch
|
||||
#+ features/all/aufs2/mark-as-staging.patch
|
||||
|
||||
+ bugfix/ia64/hardcode-arch-script-output.patch
|
||||
+ bugfix/mips/disable-advansys.patch
|
||||
|
@ -40,11 +40,4 @@
|
|||
+ features/all/cgroups-Allow-memory-cgroup-support-to-be-included-b.patch
|
||||
+ debian/cgroups-Document-the-Debian-memory-resource-controll.patch
|
||||
+ bugfix/ia64/nouveau-ACPI-support-is-dependent-on-X86.patch
|
||||
+ features/all/rt2x00-Add-device-ID-for-RT539F-device.patch
|
||||
+ bugfix/all/Add-KEY_MICMUTE-and-enable-it-on-Lenovo-X220.patch
|
||||
+ bugfix/all/resources-Add-lookup_resource.patch
|
||||
+ bugfix/all/m68k-atari-Reserve-some-ST-RAM-early-on-for-device-b.patch
|
||||
+ bugfix/all/ALSA-hda-Handle-1-as-invalid-position-too.patch
|
||||
+ bugfix/all/ALSA-hda-Judge-playback-stream-from-stream-id-in-azx.patch
|
||||
+ bugfix/all/ALSA-hda-Enable-auto-parser-as-default-for-Conexant-.patch
|
||||
+ features/all/xen/backend-autoload.patch
|
||||
+ bugfix/all/perf-do-not-look-at-.-config-for-configuration.patch
|
||||
|
|
Loading…
Reference in New Issue