Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 118952
b: refs/heads/master
c: 18776c7
h: refs/heads/master
v: v3
  • Loading branch information
Mikulas Patocka authored and Alasdair G Kergon committed Nov 13, 2008
1 parent c2d806a commit 9fdbb19
Show file tree
Hide file tree
Showing 23 changed files with 117 additions and 99 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: 58e20d8d344b0ee083febb18c2b021d2427e56ca
refs/heads/master: 18776c7316545482a02bfaa2629a2aa1afc48357
13 changes: 2 additions & 11 deletions trunk/arch/arm/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -256,17 +256,8 @@ int dmabounce_sync_for_cpu(struct device *, dma_addr_t, unsigned long,
int dmabounce_sync_for_device(struct device *, dma_addr_t, unsigned long,
size_t, enum dma_data_direction);
#else
static inline int dmabounce_sync_for_cpu(struct device *d, dma_addr_t addr,
unsigned long offset, size_t size, enum dma_data_direction dir)
{
return 1;
}

static inline int dmabounce_sync_for_device(struct device *d, dma_addr_t addr,
unsigned long offset, size_t size, enum dma_data_direction dir)
{
return 1;
}
#define dmabounce_sync_for_cpu(dev,dma,off,sz,dir) (1)
#define dmabounce_sync_for_device(dev,dma,off,sz,dir) (1)


/**
Expand Down
13 changes: 6 additions & 7 deletions trunk/arch/arm/include/asm/mach/map.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@ struct map_desc {
};

/* types 0-3 are defined in asm/io.h */
#define MT_UNCACHED 4
#define MT_CACHECLEAN 5
#define MT_MINICLEAN 6
#define MT_LOW_VECTORS 7
#define MT_HIGH_VECTORS 8
#define MT_MEMORY 9
#define MT_ROM 10
#define MT_CACHECLEAN 4
#define MT_MINICLEAN 5
#define MT_LOW_VECTORS 6
#define MT_HIGH_VECTORS 7
#define MT_MEMORY 8
#define MT_ROM 9

#ifdef CONFIG_MMU
extern void iotable_init(struct map_desc *, int);
Expand Down
22 changes: 22 additions & 0 deletions trunk/arch/arm/mach-clps711x/include/mach/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,20 @@
#include <asm/hardware/ep7212.h>
#include <asm/hardware/cs89712.h>

/* dynamic ioremap() areas */
#define FLASH_START 0x00000000
#define FLASH_SIZE 0x800000
#define FLASH_WIDTH 4

#define SRAM_START 0x60000000
#define SRAM_SIZE 0xc000
#define SRAM_WIDTH 4

#define BOOTROM_START 0x70000000
#define BOOTROM_SIZE 0x80
#define BOOTROM_WIDTH 4


/* static cdb89712_map_io() areas */
#define REGISTER_START 0x80000000
#define REGISTER_SIZE 0x4000
Expand Down Expand Up @@ -184,6 +198,14 @@
#define CEIVA_FLASH_SIZE 0x100000
#define CEIVA_FLASH_WIDTH 2

#define SRAM_START 0x60000000
#define SRAM_SIZE 0xc000
#define SRAM_WIDTH 4

#define BOOTROM_START 0x70000000
#define BOOTROM_SIZE 0x80
#define BOOTROM_WIDTH 4

/*
* SED1355 LCD controller
*/
Expand Down
6 changes: 3 additions & 3 deletions trunk/arch/arm/mach-clps7500/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,9 @@ static struct map_desc cl7500_io_desc[] __initdata = {
.length = ISA_SIZE,
.type = MT_DEVICE
}, { /* Flash */
.virtual = CLPS7500_FLASH_BASE,
.pfn = __phys_to_pfn(CLPS7500_FLASH_START),
.length = CLPS7500_FLASH_SIZE,
.virtual = FLASH_BASE,
.pfn = __phys_to_pfn(FLASH_START),
.length = FLASH_SIZE,
.type = MT_DEVICE
}, { /* LED */
.virtual = LED_BASE,
Expand Down
6 changes: 3 additions & 3 deletions trunk/arch/arm/mach-clps7500/include/mach/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
#define ISA_SIZE 0x00010000
#define ISA_BASE 0xe1000000

#define CLPS7500_FLASH_START 0x01000000 /* XXX */
#define CLPS7500_FLASH_SIZE 0x01000000
#define CLPS7500_FLASH_BASE 0xe2000000
#define FLASH_START 0x01000000 /* XXX */
#define FLASH_SIZE 0x01000000
#define FLASH_BASE 0xe2000000

#define LED_START 0x0302B000
#define LED_SIZE 0x00001000
Expand Down
6 changes: 3 additions & 3 deletions trunk/arch/arm/mach-h720x/include/mach/boards.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
#ifdef CONFIG_ARCH_H7202

/* FLASH */
#define H720X_FLASH_VIRT 0xd0000000
#define H720X_FLASH_PHYS 0x00000000
#define H720X_FLASH_SIZE 0x02000000
#define FLASH_VIRT 0xd0000000
#define FLASH_PHYS 0x00000000
#define FLASH_SIZE 0x02000000

/* onboard LAN controller */
# define ETH0_PHYS 0x08000000
Expand Down
19 changes: 18 additions & 1 deletion trunk/arch/arm/mach-integrator/include/mach/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -407,11 +407,28 @@
*/
#define uHAL_MEMORY_SIZE INTEGRATOR_SSRAM_SIZE

/*
* Application Flash
*
*/
#define FLASH_BASE INTEGRATOR_FLASH_BASE
#define FLASH_SIZE INTEGRATOR_FLASH_SIZE
#define FLASH_END (FLASH_BASE + FLASH_SIZE - 1)
#define FLASH_BLOCK_SIZE SZ_128K

/*
* Boot Flash
*
*/
#define EPROM_BASE INTEGRATOR_BOOT_ROM_HI
#define EPROM_SIZE INTEGRATOR_BOOT_ROM_SIZE
#define EPROM_END (EPROM_BASE + EPROM_SIZE - 1)

/*
* Clean base - dummy
*
*/
#define CLEAN_BASE INTEGRATOR_BOOT_ROM_HI
#define CLEAN_BASE EPROM_BASE

/*
* Timer definitions
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-realview/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ static struct clk uart_clk = {

static struct clk mmci_clk = {
.name = "MCLK",
.rate = 24000000,
.rate = 33000000,
};

int clk_register(struct clk *clk)
Expand Down
19 changes: 18 additions & 1 deletion trunk/arch/arm/mach-realview/include/mach/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,28 @@
#define REALVIEW_INTREG_OFFSET 0x8 /* Interrupt control */
#define REALVIEW_DECODE_OFFSET 0xC /* Fitted logic modules */

/*
* Application Flash
*
*/
#define FLASH_BASE REALVIEW_FLASH_BASE
#define FLASH_SIZE REALVIEW_FLASH_SIZE
#define FLASH_END (FLASH_BASE + FLASH_SIZE - 1)
#define FLASH_BLOCK_SIZE SZ_128K

/*
* Boot Flash
*
*/
#define EPROM_BASE REALVIEW_BOOT_ROM_HI
#define EPROM_SIZE REALVIEW_BOOT_ROM_SIZE
#define EPROM_END (EPROM_BASE + EPROM_SIZE - 1)

/*
* Clean base - dummy
*
*/
#define CLEAN_BASE REALVIEW_BOOT_ROM_HI
#define CLEAN_BASE EPROM_BASE

/*
* System controller bit assignment
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-versatile/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ static struct clk uart_clk = {

static struct clk mmci_clk = {
.name = "MCLK",
.rate = 24000000,
.rate = 33000000,
};

int clk_register(struct clk *clk)
Expand Down
18 changes: 17 additions & 1 deletion trunk/arch/arm/mach-versatile/include/mach/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -436,12 +436,28 @@
#define SIC_INTMASK_PCI1 (1 << SIC_INT_PCI1)
#define SIC_INTMASK_PCI2 (1 << SIC_INT_PCI2)
#define SIC_INTMASK_PCI3 (1 << SIC_INT_PCI3)
/*
* Application Flash
*
*/
#define FLASH_BASE VERSATILE_FLASH_BASE
#define FLASH_SIZE VERSATILE_FLASH_SIZE
#define FLASH_END (FLASH_BASE + FLASH_SIZE - 1)
#define FLASH_BLOCK_SIZE SZ_128K

/*
* Boot Flash
*
*/
#define EPROM_BASE VERSATILE_BOOT_ROM_HI
#define EPROM_SIZE VERSATILE_BOOT_ROM_SIZE
#define EPROM_END (EPROM_BASE + EPROM_SIZE - 1)

/*
* Clean base - dummy
*
*/
#define CLEAN_BASE VERSATILE_BOOT_ROM_HI
#define CLEAN_BASE EPROM_BASE

/*
* System controller bit assignment
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/arm/mm/cache-feroceon-l2.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,15 @@ static void feroceon_l2_inv_range(unsigned long start, unsigned long end)
/*
* Clean and invalidate partial last cache line.
*/
if (start < end && end & (CACHE_LINE_SIZE - 1)) {
if (end & (CACHE_LINE_SIZE - 1)) {
l2_clean_inv_pa(end & ~(CACHE_LINE_SIZE - 1));
end &= ~(CACHE_LINE_SIZE - 1);
}

/*
* Invalidate all full cache lines between 'start' and 'end'.
*/
while (start < end) {
while (start != end) {
unsigned long range_end = calc_range_end(start, end);
l2_inv_pa_range(start, range_end - CACHE_LINE_SIZE);
start = range_end;
Expand Down
6 changes: 0 additions & 6 deletions trunk/arch/arm/mm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,6 @@ static struct mem_type mem_types[] = {
.prot_sect = PROT_SECT_DEVICE,
.domain = DOMAIN_IO,
},
[MT_UNCACHED] = {
.prot_pte = PROT_PTE_DEVICE,
.prot_l1 = PMD_TYPE_TABLE,
.prot_sect = PMD_TYPE_SECT | PMD_SECT_XN,
.domain = DOMAIN_IO,
},
[MT_CACHECLEAN] = {
.prot_sect = PMD_TYPE_SECT | PMD_SECT_XN,
.domain = DOMAIN_KERNEL,
Expand Down
5 changes: 2 additions & 3 deletions trunk/arch/arm/plat-iop/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@
#include <asm/hardware/iop3xx.h>

/*
* Standard IO mapping for all IOP3xx based systems. Note that
* the IOP3xx OCCDR must be mapped uncached and unbuffered.
* Standard IO mapping for all IOP3xx based systems
*/
static struct map_desc iop3xx_std_desc[] __initdata = {
{ /* mem mapped registers */
.virtual = IOP3XX_PERIPHERAL_VIRT_BASE,
.pfn = __phys_to_pfn(IOP3XX_PERIPHERAL_PHYS_BASE),
.length = IOP3XX_PERIPHERAL_SIZE,
.type = MT_UNCACHED,
.type = MT_DEVICE,
}, { /* PCI IO space */
.virtual = IOP3XX_PCI_LOWER_IO_VA,
.pfn = __phys_to_pfn(IOP3XX_PCI_LOWER_IO_PA),
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/parisc/include/asm/smp.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ extern void arch_send_call_function_ipi(cpumask_t mask);

#define PROC_CHANGE_PENALTY 15 /* Schedule penalty */

extern unsigned long cpu_present_mask;

#define raw_smp_processor_id() (current_thread_info()->cpu)

#else /* CONFIG_SMP */
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/md/dm-raid1.c
Original file line number Diff line number Diff line change
Expand Up @@ -1032,6 +1032,7 @@ static void mirror_dtr(struct dm_target *ti)

del_timer_sync(&ms->timer);
flush_workqueue(ms->kmirrord_wq);
flush_scheduled_work();
dm_kcopyd_client_destroy(ms->kcopyd_client);
destroy_workqueue(ms->kmirrord_wq);
free_context(ms, ti, ms->nr_mirrors);
Expand Down
13 changes: 1 addition & 12 deletions trunk/drivers/mtd/maps/cdb89712.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,7 @@
#include <linux/mtd/map.h>
#include <linux/mtd/partitions.h>

/* dynamic ioremap() areas */
#define FLASH_START 0x00000000
#define FLASH_SIZE 0x800000
#define FLASH_WIDTH 4

#define SRAM_START 0x60000000
#define SRAM_SIZE 0xc000
#define SRAM_WIDTH 4

#define BOOTROM_START 0x70000000
#define BOOTROM_SIZE 0x80
#define BOOTROM_WIDTH 4



static struct mtd_info *flash_mtd;
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/mtd/maps/h720x-flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ static struct mtd_info *mymtd;
static struct map_info h720x_map = {
.name = "H720X",
.bankwidth = 4,
.size = H720X_FLASH_SIZE,
.phys = H720X_FLASH_PHYS,
.size = FLASH_SIZE,
.phys = FLASH_PHYS,
};

static struct mtd_partition h720x_partitions[] = {
Expand Down Expand Up @@ -70,7 +70,7 @@ int __init h720x_mtd_init(void)

char *part_type = NULL;

h720x_map.virt = ioremap(h720x_map.phys, h720x_map.size);
h720x_map.virt = ioremap(FLASH_PHYS, FLASH_SIZE);

if (!h720x_map.virt) {
printk(KERN_ERR "H720x-MTD: ioremap failed\n");
Expand Down
15 changes: 7 additions & 8 deletions trunk/drivers/pci/pci-acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ static acpi_status acpi_run_osc(acpi_handle handle,
union acpi_object in_params[4];
struct acpi_buffer output = {ACPI_ALLOCATE_BUFFER, NULL};
union acpi_object *out_obj;
u32 errors, flags = osc_args->capbuf[OSC_QUERY_TYPE];
u32 osc_dw0, flags = osc_args->capbuf[OSC_QUERY_TYPE];

/* Setting up input parameters */
input.count = 4;
Expand Down Expand Up @@ -92,16 +92,15 @@ static acpi_status acpi_run_osc(acpi_handle handle,
status = AE_TYPE;
goto out_kfree;
}
/* Need to ignore the bit0 in result code */
errors = *((u32 *)out_obj->buffer.pointer) & ~(1 << 0);
if (errors) {
if (errors & OSC_REQUEST_ERROR)
osc_dw0 = *((u32 *)out_obj->buffer.pointer);
if (osc_dw0) {
if (osc_dw0 & OSC_REQUEST_ERROR)
printk(KERN_DEBUG "_OSC request fails\n");
if (errors & OSC_INVALID_UUID_ERROR)
if (osc_dw0 & OSC_INVALID_UUID_ERROR)
printk(KERN_DEBUG "_OSC invalid UUID\n");
if (errors & OSC_INVALID_REVISION_ERROR)
if (osc_dw0 & OSC_INVALID_REVISION_ERROR)
printk(KERN_DEBUG "_OSC invalid revision\n");
if (errors & OSC_CAPABILITIES_MASK_ERROR) {
if (osc_dw0 & OSC_CAPABILITIES_MASK_ERROR) {
if (flags & OSC_QUERY_ENABLE)
goto out_success;
printk(KERN_DEBUG "_OSC FW not grant req. control\n");
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/dlm/lockspace.c
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ int dlm_release_lockspace(void *lockspace, int force)
error = release_lockspace(ls, force);
if (!error)
ls_count--;
if (!ls_count)
else if (!ls_count)
threads_stop();
mutex_unlock(&ls_lock);

Expand Down
Loading

0 comments on commit 9fdbb19

Please sign in to comment.