Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 87008
b: refs/heads/master
c: c31f2f3
h: refs/heads/master
v: v3
  • Loading branch information
Adrian Bunk authored and Paul Mundt committed Mar 6, 2008
1 parent 4c7fbf2 commit de4ae09
Show file tree
Hide file tree
Showing 116 changed files with 1,044 additions and 1,133 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: 46fbdf8935544dcde440bd807b50e52ed2ca7f3b
refs/heads/master: c31f2f3d066d49147ce297c7207cc2d49dd20382
6 changes: 0 additions & 6 deletions trunk/Documentation/scsi/ChangeLog.arcmsr
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,4 @@
** 8.replace pci_alloc_consistent()/pci_free_consistent() with kmalloc()/kfree() in arcmsr_iop_message_xfer()
** 9. fix the release of dma memory for type B in arcmsr_free_ccb_pool()
** 10.fix the arcmsr_polling_hbb_ccbdone()
** 1.20.00.15 02/27/2008 Erich Chen & Nick Cheng
** 1.arcmsr_iop_message_xfer() is called from atomic context under the
** queuecommand scsi_host_template handler. James Bottomley pointed out
** that the current GFP_KERNEL|GFP_DMA flags are wrong: firstly we are in
** atomic context, secondly this memory is not used for DMA.
** Also removed some unneeded casts. Thanks to Daniel Drake <dsd@gentoo.org>
**************************************************************************
12 changes: 6 additions & 6 deletions trunk/arch/blackfin/kernel/fixed_code.S
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ ENDPROC (_atomic_ior32)

.align 16
/*
* Atomic and, 32 bit.
* Atomic ior, 32 bit.
* Inputs: P0: memory address to use
* R0: value to and
* R0: value to ior
* Outputs: R0: new contents of the memory address.
* R1: previous contents of the memory address.
*/
Expand All @@ -112,13 +112,13 @@ ENTRY(_atomic_and32)
R0 = R1 & R0;
[P0] = R0;
rts;
ENDPROC (_atomic_and32)
ENDPROC (_atomic_ior32)

.align 16
/*
* Atomic xor, 32 bit.
* Atomic ior, 32 bit.
* Inputs: P0: memory address to use
* R0: value to xor
* R0: value to ior
* Outputs: R0: new contents of the memory address.
* R1: previous contents of the memory address.
*/
Expand All @@ -127,7 +127,7 @@ ENTRY(_atomic_xor32)
R0 = R1 ^ R0;
[P0] = R0;
rts;
ENDPROC (_atomic_xor32)
ENDPROC (_atomic_ior32)

.align 16
/*
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/blackfin/mach-bf548/boards/ezkit.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ static struct platform_device bf5xx_nand_device = {
};
#endif

#if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE)
#if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN)
static struct platform_device bf54x_sdh_device = {
.name = "bfin-sdh",
.id = 0,
Expand Down Expand Up @@ -636,7 +636,7 @@ static struct platform_device *ezkit_devices[] __initdata = {
&bf5xx_nand_device,
#endif

#if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE)
#if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN)
&bf54x_sdh_device,
#endif

Expand Down
5 changes: 1 addition & 4 deletions trunk/arch/blackfin/mach-common/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -1369,7 +1369,7 @@ ENTRY(_sys_call_table)
.long _sys_epoll_pwait
.long _sys_utimensat
.long _sys_signalfd
.long _sys_timerfd_create
.long _sys_ni_syscall
.long _sys_eventfd /* 350 */
.long _sys_pread64
.long _sys_pwrite64
Expand All @@ -1378,9 +1378,6 @@ ENTRY(_sys_call_table)
.long _sys_get_robust_list /* 355 */
.long _sys_fallocate
.long _sys_semtimedop
.long _sys_timerfd_settime
.long _sys_timerfd_gettime

.rept NR_syscalls-(.-_sys_call_table)/4
.long _sys_ni_syscall
.endr
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/ia64/hp/common/hwsw_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ hwsw_init (void)
#ifdef CONFIG_IA64_GENERIC
/* Better to have normal DMA than panic */
printk(KERN_WARNING "%s: Failed to initialize software I/O TLB,"
" reverting to hpzx1 platform vector\n", __func__);
" reverting to hpzx1 platform vector\n", __FUNCTION__);
machvec_init("hpzx1");
#else
panic("Unable to initialize software I/O TLB services");
Expand Down
36 changes: 19 additions & 17 deletions trunk/arch/ia64/hp/common/sba_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ sba_search_bitmap(struct ioc *ioc, unsigned long bits_wanted, int use_hint)
base_mask = RESMAP_MASK(bits_wanted);
mask = base_mask << bitshiftcnt;

DBG_RES("%s() o %ld %p", __func__, o, res_ptr);
DBG_RES("%s() o %ld %p", __FUNCTION__, o, res_ptr);
for(; res_ptr < res_end ; res_ptr++)
{
DBG_RES(" %p %lx %lx\n", res_ptr, mask, *res_ptr);
Expand Down Expand Up @@ -679,7 +679,7 @@ sba_alloc_range(struct ioc *ioc, size_t size)
#endif

DBG_RES("%s(%x) %d -> %lx hint %x/%x\n",
__func__, size, pages_needed, pide,
__FUNCTION__, size, pages_needed, pide,
(uint) ((unsigned long) ioc->res_hint - (unsigned long) ioc->res_map),
ioc->res_bitshift );

Expand Down Expand Up @@ -722,8 +722,8 @@ sba_free_range(struct ioc *ioc, dma_addr_t iova, size_t size)
m = RESMAP_MASK(bits_not_wanted) << (pide & (BITS_PER_LONG - 1));
bits_not_wanted = 0;

DBG_RES("%s( ,%x,%x) %x/%lx %x %p %lx\n", __func__, (uint) iova, size,
bits_not_wanted, m, pide, res_ptr, *res_ptr);
DBG_RES("%s( ,%x,%x) %x/%lx %x %p %lx\n", __FUNCTION__, (uint) iova, size,
bits_not_wanted, m, pide, res_ptr, *res_ptr);

ASSERT(m != 0);
ASSERT(bits_not_wanted);
Expand Down Expand Up @@ -940,7 +940,8 @@ sba_map_single(struct device *dev, void *addr, size_t size, int dir)

iovp = (dma_addr_t) pide << iovp_shift;

DBG_RUN("%s() 0x%p -> 0x%lx\n", __func__, addr, (long) iovp | offset);
DBG_RUN("%s() 0x%p -> 0x%lx\n",
__FUNCTION__, addr, (long) iovp | offset);

pdir_start = &(ioc->pdir_base[pide]);

Expand Down Expand Up @@ -1028,7 +1029,8 @@ void sba_unmap_single(struct device *dev, dma_addr_t iova, size_t size, int dir)
#endif
offset = iova & ~iovp_mask;

DBG_RUN("%s() iovp 0x%lx/%x\n", __func__, (long) iova, size);
DBG_RUN("%s() iovp 0x%lx/%x\n",
__FUNCTION__, (long) iova, size);

iova ^= offset; /* clear offset bits */
size += offset;
Expand Down Expand Up @@ -1402,7 +1404,7 @@ int sba_map_sg(struct device *dev, struct scatterlist *sglist, int nents, int di
struct scatterlist *sg;
#endif

DBG_RUN_SG("%s() START %d entries\n", __func__, nents);
DBG_RUN_SG("%s() START %d entries\n", __FUNCTION__, nents);
ioc = GET_IOC(dev);
ASSERT(ioc);

Expand Down Expand Up @@ -1466,7 +1468,7 @@ int sba_map_sg(struct device *dev, struct scatterlist *sglist, int nents, int di
#endif

ASSERT(coalesced == filled);
DBG_RUN_SG("%s() DONE %d mappings\n", __func__, filled);
DBG_RUN_SG("%s() DONE %d mappings\n", __FUNCTION__, filled);

return filled;
}
Expand All @@ -1489,7 +1491,7 @@ void sba_unmap_sg (struct device *dev, struct scatterlist *sglist, int nents, in
#endif

DBG_RUN_SG("%s() START %d entries, %p,%x\n",
__func__, nents, sba_sg_address(sglist), sglist->length);
__FUNCTION__, nents, sba_sg_address(sglist), sglist->length);

#ifdef ASSERT_PDIR_SANITY
ioc = GET_IOC(dev);
Expand All @@ -1507,7 +1509,7 @@ void sba_unmap_sg (struct device *dev, struct scatterlist *sglist, int nents, in
nents--;
}

DBG_RUN_SG("%s() DONE (nents %d)\n", __func__, nents);
DBG_RUN_SG("%s() DONE (nents %d)\n", __FUNCTION__, nents);

#ifdef ASSERT_PDIR_SANITY
spin_lock_irqsave(&ioc->res_lock, flags);
Expand Down Expand Up @@ -1544,7 +1546,7 @@ ioc_iova_init(struct ioc *ioc)
ioc->iov_size = ~ioc->imask + 1;

DBG_INIT("%s() hpa %p IOV base 0x%lx mask 0x%lx (%dMB)\n",
__func__, ioc->ioc_hpa, ioc->ibase, ioc->imask,
__FUNCTION__, ioc->ioc_hpa, ioc->ibase, ioc->imask,
ioc->iov_size >> 20);

switch (iovp_size) {
Expand All @@ -1567,7 +1569,7 @@ ioc_iova_init(struct ioc *ioc)

memset(ioc->pdir_base, 0, ioc->pdir_size);

DBG_INIT("%s() IOV page size %ldK pdir %p size %x\n", __func__,
DBG_INIT("%s() IOV page size %ldK pdir %p size %x\n", __FUNCTION__,
iovp_size >> 10, ioc->pdir_base, ioc->pdir_size);

ASSERT(ALIGN((unsigned long) ioc->pdir_base, 4*1024) == (unsigned long) ioc->pdir_base);
Expand Down Expand Up @@ -1610,7 +1612,7 @@ ioc_iova_init(struct ioc *ioc)

prefetch_spill_page = virt_to_phys(addr);

DBG_INIT("%s() prefetch spill addr: 0x%lx\n", __func__, prefetch_spill_page);
DBG_INIT("%s() prefetch spill addr: 0x%lx\n", __FUNCTION__, prefetch_spill_page);
}
/*
** Set all the PDIR entries valid w/ the spill page as the target
Expand Down Expand Up @@ -1639,7 +1641,7 @@ ioc_resource_init(struct ioc *ioc)
/* resource map size dictated by pdir_size */
ioc->res_size = ioc->pdir_size / PDIR_ENTRY_SIZE; /* entries */
ioc->res_size >>= 3; /* convert bit count to byte count */
DBG_INIT("%s() res_size 0x%x\n", __func__, ioc->res_size);
DBG_INIT("%s() res_size 0x%x\n", __FUNCTION__, ioc->res_size);

ioc->res_map = (char *) __get_free_pages(GFP_KERNEL,
get_order(ioc->res_size));
Expand All @@ -1662,7 +1664,7 @@ ioc_resource_init(struct ioc *ioc)
| prefetch_spill_page);
#endif

DBG_INIT("%s() res_map %x %p\n", __func__,
DBG_INIT("%s() res_map %x %p\n", __FUNCTION__,
ioc->res_size, (void *) ioc->res_map);
}

Expand Down Expand Up @@ -1765,7 +1767,7 @@ ioc_init(u64 hpa, void *handle)
iovp_size = (1 << iovp_shift);
iovp_mask = ~(iovp_size - 1);

DBG_INIT("%s: PAGE_SIZE %ldK, iovp_size %ldK\n", __func__,
DBG_INIT("%s: PAGE_SIZE %ldK, iovp_size %ldK\n", __FUNCTION__,
PAGE_SIZE >> 10, iovp_size >> 10);

if (!ioc->name) {
Expand Down Expand Up @@ -2135,7 +2137,7 @@ sba_page_override(char *str)
break;
default:
printk("%s: unknown/unsupported iommu page size %ld\n",
__func__, page_size);
__FUNCTION__, page_size);
}

return 1;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/ia64/hp/sim/simeth.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ simeth_probe1(void)
}

if ((rc = assign_irq_vector(AUTO_ASSIGN)) < 0)
panic("%s: out of interrupt vectors!\n", __func__);
panic("%s: out of interrupt vectors!\n", __FUNCTION__);
dev->irq = rc;

/*
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/ia64/hp/sim/simserial.c
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,7 @@ simrs_init (void)
if (!state->irq) {
if ((rc = assign_irq_vector(AUTO_ASSIGN)) < 0)
panic("%s: out of interrupt vectors!\n",
__func__);
__FUNCTION__);
state->irq = rc;
ia64_ssc_connect_irq(KEYBOARD_INTR, state->irq);
}
Expand Down
7 changes: 6 additions & 1 deletion trunk/arch/ia64/ia32/sys_ia32.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,13 @@
#include <linux/shm.h>
#include <linux/slab.h>
#include <linux/uio.h>
#include <linux/socket.h>
#include <linux/nfs_fs.h>
#include <linux/quota.h>
#include <linux/sunrpc/svc.h>
#include <linux/nfsd/nfsd.h>
#include <linux/nfsd/cache.h>
#include <linux/nfsd/xdr.h>
#include <linux/nfsd/syscall.h>
#include <linux/poll.h>
#include <linux/eventpoll.h>
#include <linux/personality.h>
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/ia64/kernel/crash.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ kdump_init_notifier(struct notifier_block *self, unsigned long val, void *data)
if (val == DIE_INIT_MONARCH_LEAVE)
ia64_mca_printk(KERN_NOTICE
"%s: kdump not configured\n",
__func__);
__FUNCTION__);
return NOTIFY_DONE;
}

Expand Down
32 changes: 7 additions & 25 deletions trunk/arch/ia64/kernel/efi.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,8 @@ efi_get_pal_addr (void)
* a dedicated ITR for the PAL code.
*/
if ((vaddr & mask) == (KERNEL_START & mask)) {
printk(KERN_INFO "%s: no need to install ITR for PAL code\n",
__func__);
printk(KERN_INFO "%s: no need to install ITR for "
"PAL code\n", __FUNCTION__);
continue;
}

Expand All @@ -399,7 +399,7 @@ efi_get_pal_addr (void)
return __va(md->phys_addr);
}
printk(KERN_WARNING "%s: no PAL-code memory-descriptor found\n",
__func__);
__FUNCTION__);
return NULL;
}

Expand Down Expand Up @@ -543,30 +543,12 @@ efi_init (void)
for (i = 0, p = efi_map_start; p < efi_map_end;
++i, p += efi_desc_size)
{
const char *unit;
unsigned long size;

md = p;
size = md->num_pages << EFI_PAGE_SHIFT;

if ((size >> 40) > 0) {
size >>= 40;
unit = "TB";
} else if ((size >> 30) > 0) {
size >>= 30;
unit = "GB";
} else if ((size >> 20) > 0) {
size >>= 20;
unit = "MB";
} else {
size >>= 10;
unit = "KB";
}

printk("mem%02d: type=%2u, attr=0x%016lx, "
"range=[0x%016lx-0x%016lx) (%4lu%s)\n",
printk("mem%02u: type=%u, attr=0x%lx, "
"range=[0x%016lx-0x%016lx) (%luMB)\n",
i, md->type, md->attribute, md->phys_addr,
md->phys_addr + efi_md_size(md), size, unit);
md->phys_addr + efi_md_size(md),
md->num_pages >> (20 - EFI_PAGE_SHIFT));
}
}
#endif
Expand Down
Loading

0 comments on commit de4ae09

Please sign in to comment.