Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40752
b: refs/heads/master
c: e9a4385
h: refs/heads/master
v: v3
  • Loading branch information
Haavard Skinnemoen committed Nov 6, 2006
1 parent 7c49d4f commit 34225de
Show file tree
Hide file tree
Showing 28 changed files with 99 additions and 202 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bee42f626e2fee83cb7b51be9dc658c4f4046e77
refs/heads/master: e9a43850e6a99e335c8120579749389b376bc204
9 changes: 0 additions & 9 deletions trunk/arch/avr32/boards/atstk1000/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,6 @@ struct tag *bootloader_tags __initdata;

struct lcdc_platform_data __initdata atstk1000_fb0_data;

asmlinkage void __init board_early_init(void)
{
extern void sdram_init(void);

#ifdef CONFIG_LOADER_STANDALONE
sdram_init();
#endif
}

void __init board_setup_fbmem(unsigned long fbmem_start,
unsigned long fbmem_size)
{
Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/avr32/kernel/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ kernel_entry:
mov r7, 0
#endif

/* Set up the PIO, SDRAM controller, early printk, etc. */
rcall board_early_init

/* Start the show */
lddpc pc, kernel_start_addr

Expand Down
3 changes: 3 additions & 0 deletions trunk/arch/s390/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@ config WARN_STACK_SIZE
This allows you to specify the maximum frame size a function may
have without the compiler complaining about it.

config ARCH_POPULATES_NODE_MAP
def_bool y

source "mm/Kconfig"

comment "I/O subsystem configuration"
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/s390/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ CONFIG_PACK_STACK=y
CONFIG_CHECK_STACK=y
CONFIG_STACK_GUARD=256
# CONFIG_WARN_STACK is not set
CONFIG_ARCH_POPULATES_NODE_MAP=y
CONFIG_SELECT_MEMORY_MODEL=y
CONFIG_FLATMEM_MANUAL=y
# CONFIG_DISCONTIGMEM_MANUAL is not set
Expand Down
55 changes: 13 additions & 42 deletions trunk/arch/s390/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ struct {
#define CHUNK_READ_WRITE 0
#define CHUNK_READ_ONLY 1
volatile int __cpu_logical_map[NR_CPUS]; /* logical cpu to cpu address */
unsigned long __initdata zholes_size[MAX_NR_ZONES];
static unsigned long __initdata memory_end;

/*
Expand Down Expand Up @@ -358,21 +357,6 @@ void machine_power_off(void)
*/
void (*pm_power_off)(void) = machine_power_off;

static void __init
add_memory_hole(unsigned long start, unsigned long end)
{
unsigned long dma_pfn = MAX_DMA_ADDRESS >> PAGE_SHIFT;

if (end <= dma_pfn)
zholes_size[ZONE_DMA] += end - start + 1;
else if (start > dma_pfn)
zholes_size[ZONE_NORMAL] += end - start + 1;
else {
zholes_size[ZONE_DMA] += dma_pfn - start + 1;
zholes_size[ZONE_NORMAL] += end - dma_pfn;
}
}

static int __init early_parse_mem(char *p)
{
memory_end = memparse(p, &p);
Expand Down Expand Up @@ -450,7 +434,7 @@ setup_lowcore(void)
lc->extended_save_area_addr = (__u32)
__alloc_bootmem(PAGE_SIZE, PAGE_SIZE, 0);
/* enable extended save area */
__ctl_set_bit(14, 29);
ctl_set_bit(14, 29);
}
#endif
set_prefix((u32)(unsigned long) lc);
Expand Down Expand Up @@ -494,7 +478,6 @@ setup_memory(void)
{
unsigned long bootmap_size;
unsigned long start_pfn, end_pfn, init_pfn;
unsigned long last_rw_end;
int i;

/*
Expand Down Expand Up @@ -550,39 +533,27 @@ setup_memory(void)
/*
* Register RAM areas with the bootmem allocator.
*/
last_rw_end = start_pfn;

for (i = 0; i < MEMORY_CHUNKS && memory_chunk[i].size > 0; i++) {
unsigned long start_chunk, end_chunk;
unsigned long start_chunk, end_chunk, pfn;

if (memory_chunk[i].type != CHUNK_READ_WRITE)
continue;
start_chunk = (memory_chunk[i].addr + PAGE_SIZE - 1);
start_chunk >>= PAGE_SHIFT;
end_chunk = (memory_chunk[i].addr + memory_chunk[i].size);
end_chunk >>= PAGE_SHIFT;
if (start_chunk < start_pfn)
start_chunk = start_pfn;
if (end_chunk > end_pfn)
end_chunk = end_pfn;
if (start_chunk < end_chunk) {
/* Initialize storage key for RAM pages */
for (init_pfn = start_chunk ; init_pfn < end_chunk;
init_pfn++)
page_set_storage_key(init_pfn << PAGE_SHIFT,
PAGE_DEFAULT_KEY);
free_bootmem(start_chunk << PAGE_SHIFT,
(end_chunk - start_chunk) << PAGE_SHIFT);
if (last_rw_end < start_chunk)
add_memory_hole(last_rw_end, start_chunk - 1);
last_rw_end = end_chunk;
}
start_chunk = PFN_DOWN(memory_chunk[i].addr);
end_chunk = start_chunk + PFN_DOWN(memory_chunk[i].size) - 1;
end_chunk = min(end_chunk, end_pfn);
if (start_chunk >= end_chunk)
continue;
add_active_range(0, start_chunk, end_chunk);
pfn = max(start_chunk, start_pfn);
for (; pfn <= end_chunk; pfn++)
page_set_storage_key(PFN_PHYS(pfn), PAGE_DEFAULT_KEY);
}

psw_set_key(PAGE_DEFAULT_KEY);

if (last_rw_end < end_pfn - 1)
add_memory_hole(last_rw_end, end_pfn - 1);
free_bootmem_with_active_regions(0, max_pfn);
reserve_bootmem(0, PFN_PHYS(start_pfn));

/*
* Reserve the bootmem bitmap itself as well. We do this in two
Expand Down
32 changes: 10 additions & 22 deletions trunk/arch/s390/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ void show_mem(void)
printk("%d pages swap cached\n",cached);
}

extern unsigned long __initdata zholes_size[];
/*
* paging_init() sets up the page tables
*/
Expand All @@ -101,16 +100,15 @@ void __init paging_init(void)
unsigned long pgdir_k = (__pa(swapper_pg_dir) & PAGE_MASK) | _KERNSEG_TABLE;
static const int ssm_mask = 0x04000000L;
unsigned long ro_start_pfn, ro_end_pfn;
unsigned long zones_size[MAX_NR_ZONES];
unsigned long max_zone_pfns[MAX_NR_ZONES];

ro_start_pfn = PFN_DOWN((unsigned long)&__start_rodata);
ro_end_pfn = PFN_UP((unsigned long)&__end_rodata);

memset(zones_size, 0, sizeof(zones_size));
zones_size[ZONE_DMA] = max_low_pfn;
free_area_init_node(0, &contig_page_data, zones_size,
__pa(PAGE_OFFSET) >> PAGE_SHIFT,
zholes_size);
memset(max_zone_pfns, 0, sizeof(max_zone_pfns));
max_zone_pfns[ZONE_DMA] = max_low_pfn;
max_zone_pfns[ZONE_NORMAL] = max_low_pfn;
free_area_init_nodes(max_zone_pfns);

/* unmap whole virtual address space */

Expand Down Expand Up @@ -170,26 +168,16 @@ void __init paging_init(void)
unsigned long pgdir_k = (__pa(swapper_pg_dir) & PAGE_MASK) |
_KERN_REGION_TABLE;
static const int ssm_mask = 0x04000000L;
unsigned long zones_size[MAX_NR_ZONES];
unsigned long dma_pfn, high_pfn;
unsigned long ro_start_pfn, ro_end_pfn;
unsigned long max_zone_pfns[MAX_NR_ZONES];

memset(zones_size, 0, sizeof(zones_size));
dma_pfn = MAX_DMA_ADDRESS >> PAGE_SHIFT;
high_pfn = max_low_pfn;
ro_start_pfn = PFN_DOWN((unsigned long)&__start_rodata);
ro_end_pfn = PFN_UP((unsigned long)&__end_rodata);

if (dma_pfn > high_pfn)
zones_size[ZONE_DMA] = high_pfn;
else {
zones_size[ZONE_DMA] = dma_pfn;
zones_size[ZONE_NORMAL] = high_pfn - dma_pfn;
}

/* Initialize mem_map[]. */
free_area_init_node(0, &contig_page_data, zones_size,
__pa(PAGE_OFFSET) >> PAGE_SHIFT, zholes_size);
memset(max_zone_pfns, 0, sizeof(max_zone_pfns));
max_zone_pfns[ZONE_DMA] = PFN_DOWN(MAX_DMA_ADDRESS);
max_zone_pfns[ZONE_NORMAL] = max_low_pfn;
free_area_init_nodes(max_zone_pfns);

/*
* map whole physical memory to virtual memory (identity mapping)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/isdn/gigaset/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ static struct bc_state *gigaset_initbcs(struct bc_state *bcs,
} else if ((bcs->skb = dev_alloc_skb(SBUFSIZE + HW_HDR_LEN)) != NULL)
skb_reserve(bcs->skb, HW_HDR_LEN);
else {
warn("could not allocate skb\n");
gig_dbg(DEBUG_INIT, "could not allocate skb\n");
bcs->inputstate |= INS_skip_frame;
}

Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/misc/lkdtm.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ void jp_ll_rw_block(int rw, int nr, struct buffer_head *bhs[])

struct scan_control;

unsigned long jp_shrink_inactive_list(unsigned long max_scan,
struct zone *zone, struct scan_control *sc)
unsigned long jp_shrink_page_list(struct list_head *page_list,
struct scan_control *sc)
{
lkdtm_handler();
jprobe_return();
Expand Down Expand Up @@ -297,8 +297,8 @@ int lkdtm_module_init(void)
lkdtm.entry = (kprobe_opcode_t*) jp_ll_rw_block;
break;
case MEM_SWAPOUT:
lkdtm.kp.symbol_name = "shrink_inactive_list";
lkdtm.entry = (kprobe_opcode_t*) jp_shrink_inactive_list;
lkdtm.kp.symbol_name = "shrink_page_list";
lkdtm.entry = (kprobe_opcode_t*) jp_shrink_page_list;
break;
case TIMERADD:
lkdtm.kp.symbol_name = "hrtimer_start";
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ config SGI_IOC3_ETH_HW_TX_CSUM

config MIPS_SIM_NET
tristate "MIPS simulator Network device (EXPERIMENTAL)"
depends on MIPS_SIM && EXPERIMENTAL
depends on NETDEVICES && MIPS_SIM && EXPERIMENTAL
help
The MIPSNET device is a simple Ethernet network device which is
emulated by the MIPS Simulator.
Expand Down Expand Up @@ -2467,7 +2467,7 @@ config ISERIES_VETH

config RIONET
tristate "RapidIO Ethernet over messaging driver support"
depends on RAPIDIO
depends on NETDEVICES && RAPIDIO

config RIONET_TX_SIZE
int "Number of outbound queue entries"
Expand Down
5 changes: 4 additions & 1 deletion trunk/drivers/net/ehea/ehea.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include <asm/io.h>

#define DRV_NAME "ehea"
#define DRV_VERSION "EHEA_0043"
#define DRV_VERSION "EHEA_0034"

#define EHEA_MSG_DEFAULT (NETIF_MSG_LINK | NETIF_MSG_TIMER \
| NETIF_MSG_RX_ERR | NETIF_MSG_TX_ERR)
Expand Down Expand Up @@ -105,6 +105,9 @@
#define EHEA_BCMC_VLANID_ALL 0x01
#define EHEA_BCMC_VLANID_SINGLE 0x00

/* Use this define to kmallocate pHYP control blocks */
#define H_CB_ALIGNMENT 4096

#define EHEA_CACHE_LINE 128

/* Memory Regions */
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/ehea/ehea_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ static void ehea_get_ethtool_stats(struct net_device *dev,
data[i++] = port->port_res[0].swqe_refill_th;
data[i++] = port->resets;

cb6 = kzalloc(PAGE_SIZE, GFP_KERNEL);
cb6 = kzalloc(H_CB_ALIGNMENT, GFP_KERNEL);
if (!cb6) {
ehea_error("no mem for cb6");
return;
Expand Down
26 changes: 13 additions & 13 deletions trunk/drivers/net/ehea/ehea_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ static struct net_device_stats *ehea_get_stats(struct net_device *dev)

memset(stats, 0, sizeof(*stats));

cb2 = kzalloc(PAGE_SIZE, GFP_KERNEL);
cb2 = kzalloc(H_CB_ALIGNMENT, GFP_KERNEL);
if (!cb2) {
ehea_error("no mem for cb2");
goto out;
Expand Down Expand Up @@ -586,8 +586,8 @@ int ehea_sense_port_attr(struct ehea_port *port)
u64 hret;
struct hcp_ehea_port_cb0 *cb0;

cb0 = kzalloc(PAGE_SIZE, GFP_ATOMIC); /* May be called via */
if (!cb0) { /* ehea_neq_tasklet() */
cb0 = kzalloc(H_CB_ALIGNMENT, GFP_ATOMIC); /* May be called via */
if (!cb0) { /* ehea_neq_tasklet() */
ehea_error("no mem for cb0");
ret = -ENOMEM;
goto out;
Expand Down Expand Up @@ -670,7 +670,7 @@ int ehea_set_portspeed(struct ehea_port *port, u32 port_speed)
u64 hret;
int ret = 0;

cb4 = kzalloc(PAGE_SIZE, GFP_KERNEL);
cb4 = kzalloc(H_CB_ALIGNMENT, GFP_KERNEL);
if (!cb4) {
ehea_error("no mem for cb4");
ret = -ENOMEM;
Expand Down Expand Up @@ -985,7 +985,7 @@ static int ehea_configure_port(struct ehea_port *port)
struct hcp_ehea_port_cb0 *cb0;

ret = -ENOMEM;
cb0 = kzalloc(PAGE_SIZE, GFP_KERNEL);
cb0 = kzalloc(H_CB_ALIGNMENT, GFP_KERNEL);
if (!cb0)
goto out;

Expand Down Expand Up @@ -1443,7 +1443,7 @@ static int ehea_set_mac_addr(struct net_device *dev, void *sa)
goto out;
}

cb0 = kzalloc(PAGE_SIZE, GFP_KERNEL);
cb0 = kzalloc(H_CB_ALIGNMENT, GFP_KERNEL);
if (!cb0) {
ehea_error("no mem for cb0");
ret = -ENOMEM;
Expand Down Expand Up @@ -1501,7 +1501,7 @@ static void ehea_promiscuous(struct net_device *dev, int enable)
if ((enable && port->promisc) || (!enable && !port->promisc))
return;

cb7 = kzalloc(PAGE_SIZE, GFP_ATOMIC);
cb7 = kzalloc(H_CB_ALIGNMENT, GFP_ATOMIC);
if (!cb7) {
ehea_error("no mem for cb7");
goto out;
Expand Down Expand Up @@ -1870,7 +1870,7 @@ static void ehea_vlan_rx_register(struct net_device *dev,

port->vgrp = grp;

cb1 = kzalloc(PAGE_SIZE, GFP_KERNEL);
cb1 = kzalloc(H_CB_ALIGNMENT, GFP_KERNEL);
if (!cb1) {
ehea_error("no mem for cb1");
goto out;
Expand Down Expand Up @@ -1899,7 +1899,7 @@ static void ehea_vlan_rx_add_vid(struct net_device *dev, unsigned short vid)
int index;
u64 hret;

cb1 = kzalloc(PAGE_SIZE, GFP_KERNEL);
cb1 = kzalloc(H_CB_ALIGNMENT, GFP_KERNEL);
if (!cb1) {
ehea_error("no mem for cb1");
goto out;
Expand Down Expand Up @@ -1935,7 +1935,7 @@ static void ehea_vlan_rx_kill_vid(struct net_device *dev, unsigned short vid)
if (port->vgrp)
port->vgrp->vlan_devices[vid] = NULL;

cb1 = kzalloc(PAGE_SIZE, GFP_KERNEL);
cb1 = kzalloc(H_CB_ALIGNMENT, GFP_KERNEL);
if (!cb1) {
ehea_error("no mem for cb1");
goto out;
Expand Down Expand Up @@ -1968,7 +1968,7 @@ int ehea_activate_qp(struct ehea_adapter *adapter, struct ehea_qp *qp)
u64 dummy64 = 0;
struct hcp_modify_qp_cb0* cb0;

cb0 = kzalloc(PAGE_SIZE, GFP_KERNEL);
cb0 = kzalloc(H_CB_ALIGNMENT, GFP_KERNEL);
if (!cb0) {
ret = -ENOMEM;
goto out;
Expand Down Expand Up @@ -2269,7 +2269,7 @@ int ehea_sense_adapter_attr(struct ehea_adapter *adapter)
u64 hret;
int ret;

cb = kzalloc(PAGE_SIZE, GFP_KERNEL);
cb = kzalloc(H_CB_ALIGNMENT, GFP_KERNEL);
if (!cb) {
ret = -ENOMEM;
goto out;
Expand Down Expand Up @@ -2340,7 +2340,7 @@ static int ehea_setup_single_port(struct ehea_port *port,
goto out;

/* Enable Jumbo frames */
cb4 = kzalloc(PAGE_SIZE, GFP_KERNEL);
cb4 = kzalloc(H_CB_ALIGNMENT, GFP_KERNEL);
if (!cb4) {
ehea_error("no mem for cb4");
} else {
Expand Down
Loading

0 comments on commit 34225de

Please sign in to comment.