Merge branch 'upstream'
This commit is contained in:
@@ -16,5 +16,7 @@ empeg
|
|||||||
- Empeg documentation
|
- Empeg documentation
|
||||||
mem_alignment
|
mem_alignment
|
||||||
- alignment abort handler documentation
|
- alignment abort handler documentation
|
||||||
|
memory.txt
|
||||||
|
- description of the virtual memory layout
|
||||||
nwfpe
|
nwfpe
|
||||||
- NWFPE floating point emulator documentation
|
- NWFPE floating point emulator documentation
|
||||||
|
@@ -57,19 +57,19 @@ oldalloc This disables the Orlov block allocator and enables the
|
|||||||
we'd like to get some feedback if it's the contrary for
|
we'd like to get some feedback if it's the contrary for
|
||||||
you.
|
you.
|
||||||
|
|
||||||
user_xattr (*) Enables POSIX Extended Attributes. It's enabled by
|
user_xattr Enables Extended User Attributes. Additionally, you need
|
||||||
default, however you need to confifure its support
|
to have extended attribute support enabled in the kernel
|
||||||
(CONFIG_EXT3_FS_XATTR). This is neccesary if you want
|
configuration (CONFIG_EXT3_FS_XATTR). See the attr(5)
|
||||||
to use POSIX Acces Control Lists support. You can visit
|
manual page and http://acl.bestbits.at to learn more
|
||||||
http://acl.bestbits.at to know more about POSIX Extended
|
about extended attributes.
|
||||||
attributes.
|
|
||||||
|
|
||||||
nouser_xattr Disables POSIX Extended Attributes.
|
nouser_xattr Disables Extended User Attributes.
|
||||||
|
|
||||||
acl (*) Enables POSIX Access Control Lists support. This is
|
acl Enables POSIX Access Control Lists support. Additionally,
|
||||||
enabled by default, however you need to configure
|
you need to have ACL support enabled in the kernel
|
||||||
its support (CONFIG_EXT3_FS_POSIX_ACL). If you want
|
configuration (CONFIG_EXT3_FS_POSIX_ACL). See the acl(5)
|
||||||
to know more about ACLs visit http://acl.bestbits.at
|
manual page and http://acl.bestbits.at for more
|
||||||
|
information.
|
||||||
|
|
||||||
noacl This option disables POSIX Access Control List support.
|
noacl This option disables POSIX Access Control List support.
|
||||||
|
|
||||||
|
2
Makefile
2
Makefile
@@ -408,7 +408,7 @@ outputmakefile:
|
|||||||
# of make so .config is not included in this case either (for *config).
|
# of make so .config is not included in this case either (for *config).
|
||||||
|
|
||||||
no-dot-config-targets := clean mrproper distclean \
|
no-dot-config-targets := clean mrproper distclean \
|
||||||
cscope TAGS tags help %docs check% kernelrelease
|
cscope TAGS tags help %docs check%
|
||||||
|
|
||||||
config-targets := 0
|
config-targets := 0
|
||||||
mixed-targets := 0
|
mixed-targets := 0
|
||||||
|
@@ -242,6 +242,15 @@ get_branch_address(struct task_struct *child, unsigned long pc, unsigned long in
|
|||||||
*/
|
*/
|
||||||
long aluop1, aluop2, ccbit;
|
long aluop1, aluop2, ccbit;
|
||||||
|
|
||||||
|
if ((insn & 0x0fffffd0) == 0x012fff10) {
|
||||||
|
/*
|
||||||
|
* bx or blx
|
||||||
|
*/
|
||||||
|
alt = get_user_reg(child, insn & 15);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if ((insn & 0xf000) != 0xf000)
|
if ((insn & 0xf000) != 0xf000)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@@ -191,7 +191,7 @@ static int __kprobes kprobe_handler(struct pt_regs *regs)
|
|||||||
*/
|
*/
|
||||||
save_previous_kprobe(kcb);
|
save_previous_kprobe(kcb);
|
||||||
set_current_kprobe(p, regs, kcb);
|
set_current_kprobe(p, regs, kcb);
|
||||||
p->nmissed++;
|
kprobes_inc_nmissed_count(p);
|
||||||
prepare_singlestep(p, regs);
|
prepare_singlestep(p, regs);
|
||||||
kcb->kprobe_status = KPROBE_REENTER;
|
kcb->kprobe_status = KPROBE_REENTER;
|
||||||
return 1;
|
return 1;
|
||||||
|
@@ -1338,8 +1338,7 @@ int __cpu_disable(void)
|
|||||||
if (cpu == 0)
|
if (cpu == 0)
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
|
||||||
/* We enable the timer again on the exit path of the death loop */
|
clear_local_APIC();
|
||||||
disable_APIC_timer();
|
|
||||||
/* Allow any queued timer interrupts to get serviced */
|
/* Allow any queued timer interrupts to get serviced */
|
||||||
local_irq_enable();
|
local_irq_enable();
|
||||||
mdelay(1);
|
mdelay(1);
|
||||||
|
@@ -650,13 +650,6 @@ fastcall void do_nmi(struct pt_regs * regs, long error_code)
|
|||||||
|
|
||||||
cpu = smp_processor_id();
|
cpu = smp_processor_id();
|
||||||
|
|
||||||
#ifdef CONFIG_HOTPLUG_CPU
|
|
||||||
if (!cpu_online(cpu)) {
|
|
||||||
nmi_exit();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
++nmi_count(cpu);
|
++nmi_count(cpu);
|
||||||
|
|
||||||
if (!rcu_dereference(nmi_callback)(regs, cpu))
|
if (!rcu_dereference(nmi_callback)(regs, cpu))
|
||||||
|
@@ -223,9 +223,15 @@ void __iomem *ioremap_nocache (unsigned long phys_addr, unsigned long size)
|
|||||||
}
|
}
|
||||||
EXPORT_SYMBOL(ioremap_nocache);
|
EXPORT_SYMBOL(ioremap_nocache);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* iounmap - Free a IO remapping
|
||||||
|
* @addr: virtual address from ioremap_*
|
||||||
|
*
|
||||||
|
* Caller must ensure there is only one unmapping for the same pointer.
|
||||||
|
*/
|
||||||
void iounmap(volatile void __iomem *addr)
|
void iounmap(volatile void __iomem *addr)
|
||||||
{
|
{
|
||||||
struct vm_struct *p;
|
struct vm_struct *p, *o;
|
||||||
|
|
||||||
if ((void __force *)addr <= high_memory)
|
if ((void __force *)addr <= high_memory)
|
||||||
return;
|
return;
|
||||||
@@ -239,22 +245,37 @@ void iounmap(volatile void __iomem *addr)
|
|||||||
addr < phys_to_virt(ISA_END_ADDRESS))
|
addr < phys_to_virt(ISA_END_ADDRESS))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
write_lock(&vmlist_lock);
|
addr = (volatile void *)(PAGE_MASK & (unsigned long __force)addr);
|
||||||
p = __remove_vm_area((void *)(PAGE_MASK & (unsigned long __force)addr));
|
|
||||||
|
/* Use the vm area unlocked, assuming the caller
|
||||||
|
ensures there isn't another iounmap for the same address
|
||||||
|
in parallel. Reuse of the virtual address is prevented by
|
||||||
|
leaving it in the global lists until we're done with it.
|
||||||
|
cpa takes care of the direct mappings. */
|
||||||
|
read_lock(&vmlist_lock);
|
||||||
|
for (p = vmlist; p; p = p->next) {
|
||||||
|
if (p->addr == addr)
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
read_unlock(&vmlist_lock);
|
||||||
|
|
||||||
if (!p) {
|
if (!p) {
|
||||||
printk(KERN_WARNING "iounmap: bad address %p\n", addr);
|
printk("iounmap: bad address %p\n", addr);
|
||||||
dump_stack();
|
dump_stack();
|
||||||
goto out_unlock;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Reset the direct mapping. Can block */
|
||||||
if ((p->flags >> 20) && p->phys_addr < virt_to_phys(high_memory) - 1) {
|
if ((p->flags >> 20) && p->phys_addr < virt_to_phys(high_memory) - 1) {
|
||||||
change_page_attr(virt_to_page(__va(p->phys_addr)),
|
change_page_attr(virt_to_page(__va(p->phys_addr)),
|
||||||
p->size >> PAGE_SHIFT,
|
p->size >> PAGE_SHIFT,
|
||||||
PAGE_KERNEL);
|
PAGE_KERNEL);
|
||||||
global_flush_tlb();
|
global_flush_tlb();
|
||||||
}
|
}
|
||||||
out_unlock:
|
|
||||||
write_unlock(&vmlist_lock);
|
/* Finally remove it */
|
||||||
|
o = remove_vm_area((void *)addr);
|
||||||
|
BUG_ON(p != o || o == NULL);
|
||||||
kfree(p);
|
kfree(p);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(iounmap);
|
EXPORT_SYMBOL(iounmap);
|
||||||
|
@@ -13,7 +13,7 @@
|
|||||||
#define PCI_CONF1_ADDRESS(bus, devfn, reg) \
|
#define PCI_CONF1_ADDRESS(bus, devfn, reg) \
|
||||||
(0x80000000 | (bus << 16) | (devfn << 8) | (reg & ~3))
|
(0x80000000 | (bus << 16) | (devfn << 8) | (reg & ~3))
|
||||||
|
|
||||||
static int pci_conf1_read(unsigned int seg, unsigned int bus,
|
int pci_conf1_read(unsigned int seg, unsigned int bus,
|
||||||
unsigned int devfn, int reg, int len, u32 *value)
|
unsigned int devfn, int reg, int len, u32 *value)
|
||||||
{
|
{
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
@@ -42,7 +42,7 @@ static int pci_conf1_read(unsigned int seg, unsigned int bus,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int pci_conf1_write(unsigned int seg, unsigned int bus,
|
int pci_conf1_write(unsigned int seg, unsigned int bus,
|
||||||
unsigned int devfn, int reg, int len, u32 value)
|
unsigned int devfn, int reg, int len, u32 value)
|
||||||
{
|
{
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
@@ -19,21 +19,25 @@
|
|||||||
/* The base address of the last MMCONFIG device accessed */
|
/* The base address of the last MMCONFIG device accessed */
|
||||||
static u32 mmcfg_last_accessed_device;
|
static u32 mmcfg_last_accessed_device;
|
||||||
|
|
||||||
|
static DECLARE_BITMAP(fallback_slots, 32);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Functions for accessing PCI configuration space with MMCONFIG accesses
|
* Functions for accessing PCI configuration space with MMCONFIG accesses
|
||||||
*/
|
*/
|
||||||
static u32 get_base_addr(unsigned int seg, int bus)
|
static u32 get_base_addr(unsigned int seg, int bus, unsigned devfn)
|
||||||
{
|
{
|
||||||
int cfg_num = -1;
|
int cfg_num = -1;
|
||||||
struct acpi_table_mcfg_config *cfg;
|
struct acpi_table_mcfg_config *cfg;
|
||||||
|
|
||||||
|
if (seg == 0 && bus == 0 &&
|
||||||
|
test_bit(PCI_SLOT(devfn), fallback_slots))
|
||||||
|
return 0;
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
++cfg_num;
|
++cfg_num;
|
||||||
if (cfg_num >= pci_mmcfg_config_num) {
|
if (cfg_num >= pci_mmcfg_config_num) {
|
||||||
/* something bad is going on, no cfg table is found. */
|
/* Not found - fallback to type 1 */
|
||||||
/* so we fall back to the old way we used to do this */
|
return 0;
|
||||||
/* and just rely on the first entry to be correct. */
|
|
||||||
return pci_mmcfg_config[0].base_address;
|
|
||||||
}
|
}
|
||||||
cfg = &pci_mmcfg_config[cfg_num];
|
cfg = &pci_mmcfg_config[cfg_num];
|
||||||
if (cfg->pci_segment_group_number != seg)
|
if (cfg->pci_segment_group_number != seg)
|
||||||
@@ -44,9 +48,9 @@ static u32 get_base_addr(unsigned int seg, int bus)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void pci_exp_set_dev_base(unsigned int seg, int bus, int devfn)
|
static inline void pci_exp_set_dev_base(unsigned int base, int bus, int devfn)
|
||||||
{
|
{
|
||||||
u32 dev_base = get_base_addr(seg, bus) | (bus << 20) | (devfn << 12);
|
u32 dev_base = base | (bus << 20) | (devfn << 12);
|
||||||
if (dev_base != mmcfg_last_accessed_device) {
|
if (dev_base != mmcfg_last_accessed_device) {
|
||||||
mmcfg_last_accessed_device = dev_base;
|
mmcfg_last_accessed_device = dev_base;
|
||||||
set_fixmap_nocache(FIX_PCIE_MCFG, dev_base);
|
set_fixmap_nocache(FIX_PCIE_MCFG, dev_base);
|
||||||
@@ -57,13 +61,18 @@ static int pci_mmcfg_read(unsigned int seg, unsigned int bus,
|
|||||||
unsigned int devfn, int reg, int len, u32 *value)
|
unsigned int devfn, int reg, int len, u32 *value)
|
||||||
{
|
{
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
u32 base;
|
||||||
|
|
||||||
if (!value || (bus > 255) || (devfn > 255) || (reg > 4095))
|
if (!value || (bus > 255) || (devfn > 255) || (reg > 4095))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
base = get_base_addr(seg, bus, devfn);
|
||||||
|
if (!base)
|
||||||
|
return pci_conf1_read(seg,bus,devfn,reg,len,value);
|
||||||
|
|
||||||
spin_lock_irqsave(&pci_config_lock, flags);
|
spin_lock_irqsave(&pci_config_lock, flags);
|
||||||
|
|
||||||
pci_exp_set_dev_base(seg, bus, devfn);
|
pci_exp_set_dev_base(base, bus, devfn);
|
||||||
|
|
||||||
switch (len) {
|
switch (len) {
|
||||||
case 1:
|
case 1:
|
||||||
@@ -86,13 +95,18 @@ static int pci_mmcfg_write(unsigned int seg, unsigned int bus,
|
|||||||
unsigned int devfn, int reg, int len, u32 value)
|
unsigned int devfn, int reg, int len, u32 value)
|
||||||
{
|
{
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
u32 base;
|
||||||
|
|
||||||
if ((bus > 255) || (devfn > 255) || (reg > 4095))
|
if ((bus > 255) || (devfn > 255) || (reg > 4095))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
base = get_base_addr(seg, bus, devfn);
|
||||||
|
if (!base)
|
||||||
|
return pci_conf1_write(seg,bus,devfn,reg,len,value);
|
||||||
|
|
||||||
spin_lock_irqsave(&pci_config_lock, flags);
|
spin_lock_irqsave(&pci_config_lock, flags);
|
||||||
|
|
||||||
pci_exp_set_dev_base(seg, bus, devfn);
|
pci_exp_set_dev_base(base, bus, devfn);
|
||||||
|
|
||||||
switch (len) {
|
switch (len) {
|
||||||
case 1:
|
case 1:
|
||||||
@@ -116,6 +130,37 @@ static struct pci_raw_ops pci_mmcfg = {
|
|||||||
.write = pci_mmcfg_write,
|
.write = pci_mmcfg_write,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* K8 systems have some devices (typically in the builtin northbridge)
|
||||||
|
that are only accessible using type1
|
||||||
|
Normally this can be expressed in the MCFG by not listing them
|
||||||
|
and assigning suitable _SEGs, but this isn't implemented in some BIOS.
|
||||||
|
Instead try to discover all devices on bus 0 that are unreachable using MM
|
||||||
|
and fallback for them.
|
||||||
|
We only do this for bus 0/seg 0 */
|
||||||
|
static __init void unreachable_devices(void)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
unsigned long flags;
|
||||||
|
|
||||||
|
for (i = 0; i < 32; i++) {
|
||||||
|
u32 val1;
|
||||||
|
u32 addr;
|
||||||
|
|
||||||
|
pci_conf1_read(0, 0, PCI_DEVFN(i, 0), 0, 4, &val1);
|
||||||
|
if (val1 == 0xffffffff)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
/* Locking probably not needed, but safer */
|
||||||
|
spin_lock_irqsave(&pci_config_lock, flags);
|
||||||
|
addr = get_base_addr(0, 0, PCI_DEVFN(i, 0));
|
||||||
|
if (addr != 0)
|
||||||
|
pci_exp_set_dev_base(addr, 0, PCI_DEVFN(i, 0));
|
||||||
|
if (addr == 0 || readl((u32 *)addr) != val1)
|
||||||
|
set_bit(i, fallback_slots);
|
||||||
|
spin_unlock_irqrestore(&pci_config_lock, flags);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static int __init pci_mmcfg_init(void)
|
static int __init pci_mmcfg_init(void)
|
||||||
{
|
{
|
||||||
if ((pci_probe & PCI_PROBE_MMCONF) == 0)
|
if ((pci_probe & PCI_PROBE_MMCONF) == 0)
|
||||||
@@ -131,6 +176,8 @@ static int __init pci_mmcfg_init(void)
|
|||||||
raw_pci_ops = &pci_mmcfg;
|
raw_pci_ops = &pci_mmcfg;
|
||||||
pci_probe = (pci_probe & ~PCI_PROBE_MASK) | PCI_PROBE_MMCONF;
|
pci_probe = (pci_probe & ~PCI_PROBE_MASK) | PCI_PROBE_MMCONF;
|
||||||
|
|
||||||
|
unreachable_devices();
|
||||||
|
|
||||||
out:
|
out:
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -74,3 +74,10 @@ extern spinlock_t pci_config_lock;
|
|||||||
|
|
||||||
extern int (*pcibios_enable_irq)(struct pci_dev *dev);
|
extern int (*pcibios_enable_irq)(struct pci_dev *dev);
|
||||||
extern void (*pcibios_disable_irq)(struct pci_dev *dev);
|
extern void (*pcibios_disable_irq)(struct pci_dev *dev);
|
||||||
|
|
||||||
|
extern int pci_conf1_write(unsigned int seg, unsigned int bus,
|
||||||
|
unsigned int devfn, int reg, int len, u32 value);
|
||||||
|
extern int pci_conf1_read(unsigned int seg, unsigned int bus,
|
||||||
|
unsigned int devfn, int reg, int len, u32 *value);
|
||||||
|
|
||||||
|
|
||||||
|
@@ -58,7 +58,7 @@ config IA64_UNCACHED_ALLOCATOR
|
|||||||
bool
|
bool
|
||||||
select GENERIC_ALLOCATOR
|
select GENERIC_ALLOCATOR
|
||||||
|
|
||||||
config ZONE_DMA_IS_DMA32
|
config DMA_IS_DMA32
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Automatically generated make config: don't edit
|
# Automatically generated make config: don't edit
|
||||||
# Linux kernel version: 2.6.13-rc6
|
# Linux kernel version: 2.6.15-rc4
|
||||||
# Tue Aug 16 14:40:41 2005
|
# Fri Dec 2 10:33:48 2005
|
||||||
#
|
#
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -16,6 +16,7 @@ CONFIG_INIT_ENV_ARG_LIMIT=32
|
|||||||
# General setup
|
# General setup
|
||||||
#
|
#
|
||||||
CONFIG_LOCALVERSION=""
|
CONFIG_LOCALVERSION=""
|
||||||
|
# CONFIG_LOCALVERSION_AUTO is not set
|
||||||
CONFIG_SWAP=y
|
CONFIG_SWAP=y
|
||||||
CONFIG_SYSVIPC=y
|
CONFIG_SYSVIPC=y
|
||||||
CONFIG_POSIX_MQUEUE=y
|
CONFIG_POSIX_MQUEUE=y
|
||||||
@@ -26,6 +27,7 @@ CONFIG_HOTPLUG=y
|
|||||||
CONFIG_KOBJECT_UEVENT=y
|
CONFIG_KOBJECT_UEVENT=y
|
||||||
# CONFIG_IKCONFIG is not set
|
# CONFIG_IKCONFIG is not set
|
||||||
CONFIG_CPUSETS=y
|
CONFIG_CPUSETS=y
|
||||||
|
CONFIG_INITRAMFS_SOURCE=""
|
||||||
# CONFIG_EMBEDDED is not set
|
# CONFIG_EMBEDDED is not set
|
||||||
CONFIG_KALLSYMS=y
|
CONFIG_KALLSYMS=y
|
||||||
CONFIG_KALLSYMS_ALL=y
|
CONFIG_KALLSYMS_ALL=y
|
||||||
@@ -55,12 +57,30 @@ CONFIG_OBSOLETE_MODPARM=y
|
|||||||
CONFIG_KMOD=y
|
CONFIG_KMOD=y
|
||||||
CONFIG_STOP_MACHINE=y
|
CONFIG_STOP_MACHINE=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Block layer
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# IO Schedulers
|
||||||
|
#
|
||||||
|
CONFIG_IOSCHED_NOOP=y
|
||||||
|
CONFIG_IOSCHED_AS=y
|
||||||
|
CONFIG_IOSCHED_DEADLINE=y
|
||||||
|
CONFIG_IOSCHED_CFQ=y
|
||||||
|
CONFIG_DEFAULT_AS=y
|
||||||
|
# CONFIG_DEFAULT_DEADLINE is not set
|
||||||
|
# CONFIG_DEFAULT_CFQ is not set
|
||||||
|
# CONFIG_DEFAULT_NOOP is not set
|
||||||
|
CONFIG_DEFAULT_IOSCHED="anticipatory"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Processor type and features
|
# Processor type and features
|
||||||
#
|
#
|
||||||
CONFIG_IA64=y
|
CONFIG_IA64=y
|
||||||
CONFIG_64BIT=y
|
CONFIG_64BIT=y
|
||||||
CONFIG_MMU=y
|
CONFIG_MMU=y
|
||||||
|
CONFIG_SWIOTLB=y
|
||||||
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
|
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
|
||||||
CONFIG_GENERIC_CALIBRATE_DELAY=y
|
CONFIG_GENERIC_CALIBRATE_DELAY=y
|
||||||
CONFIG_TIME_INTERPOLATION=y
|
CONFIG_TIME_INTERPOLATION=y
|
||||||
@@ -68,6 +88,7 @@ CONFIG_EFI=y
|
|||||||
CONFIG_GENERIC_IOMAP=y
|
CONFIG_GENERIC_IOMAP=y
|
||||||
CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y
|
CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y
|
||||||
CONFIG_IA64_UNCACHED_ALLOCATOR=y
|
CONFIG_IA64_UNCACHED_ALLOCATOR=y
|
||||||
|
CONFIG_ZONE_DMA_IS_DMA32=y
|
||||||
# CONFIG_IA64_GENERIC is not set
|
# CONFIG_IA64_GENERIC is not set
|
||||||
# CONFIG_IA64_DIG is not set
|
# CONFIG_IA64_DIG is not set
|
||||||
# CONFIG_IA64_HP_ZX1 is not set
|
# CONFIG_IA64_HP_ZX1 is not set
|
||||||
@@ -87,14 +108,10 @@ CONFIG_HZ_250=y
|
|||||||
# CONFIG_HZ_1000 is not set
|
# CONFIG_HZ_1000 is not set
|
||||||
CONFIG_HZ=250
|
CONFIG_HZ=250
|
||||||
CONFIG_IA64_L1_CACHE_SHIFT=7
|
CONFIG_IA64_L1_CACHE_SHIFT=7
|
||||||
CONFIG_NUMA=y
|
|
||||||
CONFIG_VIRTUAL_MEM_MAP=y
|
|
||||||
CONFIG_HOLES_IN_ZONE=y
|
|
||||||
CONFIG_ARCH_DISCONTIGMEM_ENABLE=y
|
|
||||||
# CONFIG_IA64_CYCLONE is not set
|
# CONFIG_IA64_CYCLONE is not set
|
||||||
CONFIG_IOSAPIC=y
|
CONFIG_IOSAPIC=y
|
||||||
CONFIG_IA64_SGI_SN_XP=m
|
CONFIG_IA64_SGI_SN_XP=m
|
||||||
CONFIG_FORCE_MAX_ZONEORDER=18
|
CONFIG_FORCE_MAX_ZONEORDER=17
|
||||||
CONFIG_SMP=y
|
CONFIG_SMP=y
|
||||||
CONFIG_NR_CPUS=512
|
CONFIG_NR_CPUS=512
|
||||||
# CONFIG_HOTPLUG_CPU is not set
|
# CONFIG_HOTPLUG_CPU is not set
|
||||||
@@ -107,7 +124,17 @@ CONFIG_DISCONTIGMEM_MANUAL=y
|
|||||||
CONFIG_DISCONTIGMEM=y
|
CONFIG_DISCONTIGMEM=y
|
||||||
CONFIG_FLAT_NODE_MEM_MAP=y
|
CONFIG_FLAT_NODE_MEM_MAP=y
|
||||||
CONFIG_NEED_MULTIPLE_NODES=y
|
CONFIG_NEED_MULTIPLE_NODES=y
|
||||||
CONFIG_HAVE_DEC_LOCK=y
|
# CONFIG_SPARSEMEM_STATIC is not set
|
||||||
|
CONFIG_SPLIT_PTLOCK_CPUS=4
|
||||||
|
CONFIG_ARCH_SELECT_MEMORY_MODEL=y
|
||||||
|
CONFIG_ARCH_DISCONTIGMEM_ENABLE=y
|
||||||
|
CONFIG_ARCH_FLATMEM_ENABLE=y
|
||||||
|
CONFIG_ARCH_SPARSEMEM_ENABLE=y
|
||||||
|
CONFIG_ARCH_DISCONTIGMEM_DEFAULT=y
|
||||||
|
CONFIG_NUMA=y
|
||||||
|
CONFIG_VIRTUAL_MEM_MAP=y
|
||||||
|
CONFIG_HOLES_IN_ZONE=y
|
||||||
|
CONFIG_HAVE_ARCH_EARLY_PFN_TO_NID=y
|
||||||
CONFIG_IA32_SUPPORT=y
|
CONFIG_IA32_SUPPORT=y
|
||||||
CONFIG_COMPAT=y
|
CONFIG_COMPAT=y
|
||||||
CONFIG_IA64_MCA_RECOVERY=y
|
CONFIG_IA64_MCA_RECOVERY=y
|
||||||
@@ -126,20 +153,28 @@ CONFIG_BINFMT_ELF=y
|
|||||||
# Power management and ACPI
|
# Power management and ACPI
|
||||||
#
|
#
|
||||||
CONFIG_PM=y
|
CONFIG_PM=y
|
||||||
CONFIG_ACPI=y
|
# CONFIG_PM_LEGACY is not set
|
||||||
|
# CONFIG_PM_DEBUG is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# ACPI (Advanced Configuration and Power Interface) Support
|
# ACPI (Advanced Configuration and Power Interface) Support
|
||||||
#
|
#
|
||||||
|
CONFIG_ACPI=y
|
||||||
# CONFIG_ACPI_BUTTON is not set
|
# CONFIG_ACPI_BUTTON is not set
|
||||||
# CONFIG_ACPI_FAN is not set
|
# CONFIG_ACPI_FAN is not set
|
||||||
# CONFIG_ACPI_PROCESSOR is not set
|
# CONFIG_ACPI_PROCESSOR is not set
|
||||||
CONFIG_ACPI_NUMA=y
|
CONFIG_ACPI_NUMA=y
|
||||||
|
CONFIG_ACPI_BLACKLIST_YEAR=0
|
||||||
# CONFIG_ACPI_DEBUG is not set
|
# CONFIG_ACPI_DEBUG is not set
|
||||||
CONFIG_ACPI_POWER=y
|
CONFIG_ACPI_POWER=y
|
||||||
CONFIG_ACPI_SYSTEM=y
|
CONFIG_ACPI_SYSTEM=y
|
||||||
# CONFIG_ACPI_CONTAINER is not set
|
# CONFIG_ACPI_CONTAINER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# CPU Frequency scaling
|
||||||
|
#
|
||||||
|
# CONFIG_CPU_FREQ is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Bus options (PCI, PCMCIA)
|
# Bus options (PCI, PCMCIA)
|
||||||
#
|
#
|
||||||
@@ -147,7 +182,6 @@ CONFIG_PCI=y
|
|||||||
CONFIG_PCI_DOMAINS=y
|
CONFIG_PCI_DOMAINS=y
|
||||||
# CONFIG_PCI_MSI is not set
|
# CONFIG_PCI_MSI is not set
|
||||||
CONFIG_PCI_LEGACY_PROC=y
|
CONFIG_PCI_LEGACY_PROC=y
|
||||||
CONFIG_PCI_NAMES=y
|
|
||||||
# CONFIG_PCI_DEBUG is not set
|
# CONFIG_PCI_DEBUG is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -191,8 +225,8 @@ CONFIG_SYN_COOKIES=y
|
|||||||
# CONFIG_INET_ESP is not set
|
# CONFIG_INET_ESP is not set
|
||||||
# CONFIG_INET_IPCOMP is not set
|
# CONFIG_INET_IPCOMP is not set
|
||||||
# CONFIG_INET_TUNNEL is not set
|
# CONFIG_INET_TUNNEL is not set
|
||||||
CONFIG_IP_TCPDIAG=y
|
CONFIG_INET_DIAG=m
|
||||||
# CONFIG_IP_TCPDIAG_IPV6 is not set
|
CONFIG_INET_TCP_DIAG=m
|
||||||
# CONFIG_TCP_CONG_ADVANCED is not set
|
# CONFIG_TCP_CONG_ADVANCED is not set
|
||||||
CONFIG_TCP_CONG_BIC=y
|
CONFIG_TCP_CONG_BIC=y
|
||||||
CONFIG_IPV6=m
|
CONFIG_IPV6=m
|
||||||
@@ -204,6 +238,11 @@ CONFIG_IPV6=m
|
|||||||
# CONFIG_IPV6_TUNNEL is not set
|
# CONFIG_IPV6_TUNNEL is not set
|
||||||
# CONFIG_NETFILTER is not set
|
# CONFIG_NETFILTER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# DCCP Configuration (EXPERIMENTAL)
|
||||||
|
#
|
||||||
|
# CONFIG_IP_DCCP is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# SCTP Configuration (EXPERIMENTAL)
|
# SCTP Configuration (EXPERIMENTAL)
|
||||||
#
|
#
|
||||||
@@ -220,8 +259,11 @@ CONFIG_IPV6=m
|
|||||||
# CONFIG_NET_DIVERT is not set
|
# CONFIG_NET_DIVERT is not set
|
||||||
# CONFIG_ECONET is not set
|
# CONFIG_ECONET is not set
|
||||||
# CONFIG_WAN_ROUTER is not set
|
# CONFIG_WAN_ROUTER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# QoS and/or fair queueing
|
||||||
|
#
|
||||||
# CONFIG_NET_SCHED is not set
|
# CONFIG_NET_SCHED is not set
|
||||||
# CONFIG_NET_CLS_ROUTE is not set
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Network testing
|
# Network testing
|
||||||
@@ -230,6 +272,7 @@ CONFIG_IPV6=m
|
|||||||
# CONFIG_HAMRADIO is not set
|
# CONFIG_HAMRADIO is not set
|
||||||
# CONFIG_IRDA is not set
|
# CONFIG_IRDA is not set
|
||||||
# CONFIG_BT is not set
|
# CONFIG_BT is not set
|
||||||
|
# CONFIG_IEEE80211 is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Device Drivers
|
# Device Drivers
|
||||||
@@ -243,6 +286,11 @@ CONFIG_PREVENT_FIRMWARE_BUILD=y
|
|||||||
CONFIG_FW_LOADER=y
|
CONFIG_FW_LOADER=y
|
||||||
# CONFIG_DEBUG_DRIVER is not set
|
# CONFIG_DEBUG_DRIVER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Connector - unified userspace <-> kernelspace linker
|
||||||
|
#
|
||||||
|
# CONFIG_CONNECTOR is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Memory Technology Devices (MTD)
|
# Memory Technology Devices (MTD)
|
||||||
#
|
#
|
||||||
@@ -275,16 +323,7 @@ CONFIG_BLK_DEV_RAM=y
|
|||||||
CONFIG_BLK_DEV_RAM_COUNT=16
|
CONFIG_BLK_DEV_RAM_COUNT=16
|
||||||
CONFIG_BLK_DEV_RAM_SIZE=4096
|
CONFIG_BLK_DEV_RAM_SIZE=4096
|
||||||
CONFIG_BLK_DEV_INITRD=y
|
CONFIG_BLK_DEV_INITRD=y
|
||||||
CONFIG_INITRAMFS_SOURCE=""
|
|
||||||
# CONFIG_CDROM_PKTCDVD is not set
|
# CONFIG_CDROM_PKTCDVD is not set
|
||||||
|
|
||||||
#
|
|
||||||
# IO Schedulers
|
|
||||||
#
|
|
||||||
CONFIG_IOSCHED_NOOP=y
|
|
||||||
CONFIG_IOSCHED_AS=y
|
|
||||||
CONFIG_IOSCHED_DEADLINE=y
|
|
||||||
CONFIG_IOSCHED_CFQ=y
|
|
||||||
CONFIG_ATA_OVER_ETH=m
|
CONFIG_ATA_OVER_ETH=m
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -349,6 +388,7 @@ CONFIG_IDEDMA_AUTO=y
|
|||||||
#
|
#
|
||||||
# SCSI device support
|
# SCSI device support
|
||||||
#
|
#
|
||||||
|
# CONFIG_RAID_ATTRS is not set
|
||||||
CONFIG_SCSI=y
|
CONFIG_SCSI=y
|
||||||
CONFIG_SCSI_PROC_FS=y
|
CONFIG_SCSI_PROC_FS=y
|
||||||
|
|
||||||
@@ -375,11 +415,13 @@ CONFIG_SCSI_CONSTANTS=y
|
|||||||
#
|
#
|
||||||
CONFIG_SCSI_SPI_ATTRS=y
|
CONFIG_SCSI_SPI_ATTRS=y
|
||||||
CONFIG_SCSI_FC_ATTRS=y
|
CONFIG_SCSI_FC_ATTRS=y
|
||||||
# CONFIG_SCSI_ISCSI_ATTRS is not set
|
CONFIG_SCSI_ISCSI_ATTRS=m
|
||||||
|
CONFIG_SCSI_SAS_ATTRS=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# SCSI low-level drivers
|
# SCSI low-level drivers
|
||||||
#
|
#
|
||||||
|
CONFIG_ISCSI_TCP=m
|
||||||
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
|
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
|
||||||
# CONFIG_SCSI_3W_9XXX is not set
|
# CONFIG_SCSI_3W_9XXX is not set
|
||||||
# CONFIG_SCSI_ACARD is not set
|
# CONFIG_SCSI_ACARD is not set
|
||||||
@@ -389,15 +431,19 @@ CONFIG_SCSI_FC_ATTRS=y
|
|||||||
# CONFIG_SCSI_AIC79XX is not set
|
# CONFIG_SCSI_AIC79XX is not set
|
||||||
# CONFIG_MEGARAID_NEWGEN is not set
|
# CONFIG_MEGARAID_NEWGEN is not set
|
||||||
# CONFIG_MEGARAID_LEGACY is not set
|
# CONFIG_MEGARAID_LEGACY is not set
|
||||||
|
# CONFIG_MEGARAID_SAS is not set
|
||||||
CONFIG_SCSI_SATA=y
|
CONFIG_SCSI_SATA=y
|
||||||
# CONFIG_SCSI_SATA_AHCI is not set
|
# CONFIG_SCSI_SATA_AHCI is not set
|
||||||
# CONFIG_SCSI_SATA_SVW is not set
|
# CONFIG_SCSI_SATA_SVW is not set
|
||||||
# CONFIG_SCSI_ATA_PIIX is not set
|
# CONFIG_SCSI_ATA_PIIX is not set
|
||||||
|
# CONFIG_SCSI_SATA_MV is not set
|
||||||
# CONFIG_SCSI_SATA_NV is not set
|
# CONFIG_SCSI_SATA_NV is not set
|
||||||
# CONFIG_SCSI_SATA_PROMISE is not set
|
# CONFIG_SCSI_PDC_ADMA is not set
|
||||||
# CONFIG_SCSI_SATA_QSTOR is not set
|
# CONFIG_SCSI_SATA_QSTOR is not set
|
||||||
|
# CONFIG_SCSI_SATA_PROMISE is not set
|
||||||
# CONFIG_SCSI_SATA_SX4 is not set
|
# CONFIG_SCSI_SATA_SX4 is not set
|
||||||
# CONFIG_SCSI_SATA_SIL is not set
|
# CONFIG_SCSI_SATA_SIL is not set
|
||||||
|
# CONFIG_SCSI_SATA_SIL24 is not set
|
||||||
# CONFIG_SCSI_SATA_SIS is not set
|
# CONFIG_SCSI_SATA_SIS is not set
|
||||||
# CONFIG_SCSI_SATA_ULI is not set
|
# CONFIG_SCSI_SATA_ULI is not set
|
||||||
# CONFIG_SCSI_SATA_VIA is not set
|
# CONFIG_SCSI_SATA_VIA is not set
|
||||||
@@ -411,7 +457,6 @@ CONFIG_SCSI_SATA_VITESSE=y
|
|||||||
# CONFIG_SCSI_IPR is not set
|
# CONFIG_SCSI_IPR is not set
|
||||||
# CONFIG_SCSI_QLOGIC_FC is not set
|
# CONFIG_SCSI_QLOGIC_FC is not set
|
||||||
CONFIG_SCSI_QLOGIC_1280=y
|
CONFIG_SCSI_QLOGIC_1280=y
|
||||||
# CONFIG_SCSI_QLOGIC_1280_1040 is not set
|
|
||||||
CONFIG_SCSI_QLA2XXX=y
|
CONFIG_SCSI_QLA2XXX=y
|
||||||
# CONFIG_SCSI_QLA21XX is not set
|
# CONFIG_SCSI_QLA21XX is not set
|
||||||
CONFIG_SCSI_QLA22XX=y
|
CONFIG_SCSI_QLA22XX=y
|
||||||
@@ -451,6 +496,7 @@ CONFIG_DM_MULTIPATH_EMC=m
|
|||||||
CONFIG_FUSION=y
|
CONFIG_FUSION=y
|
||||||
CONFIG_FUSION_SPI=y
|
CONFIG_FUSION_SPI=y
|
||||||
CONFIG_FUSION_FC=y
|
CONFIG_FUSION_FC=y
|
||||||
|
CONFIG_FUSION_SAS=y
|
||||||
CONFIG_FUSION_MAX_SGE=128
|
CONFIG_FUSION_MAX_SGE=128
|
||||||
CONFIG_FUSION_CTL=m
|
CONFIG_FUSION_CTL=m
|
||||||
|
|
||||||
@@ -478,6 +524,10 @@ CONFIG_NETDEVICES=y
|
|||||||
#
|
#
|
||||||
# CONFIG_ARCNET is not set
|
# CONFIG_ARCNET is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# PHY device support
|
||||||
|
#
|
||||||
|
|
||||||
#
|
#
|
||||||
# Ethernet (10 or 100Mbit)
|
# Ethernet (10 or 100Mbit)
|
||||||
#
|
#
|
||||||
@@ -493,6 +543,7 @@ CONFIG_NETDEVICES=y
|
|||||||
# CONFIG_HAMACHI is not set
|
# CONFIG_HAMACHI is not set
|
||||||
# CONFIG_YELLOWFIN is not set
|
# CONFIG_YELLOWFIN is not set
|
||||||
# CONFIG_R8169 is not set
|
# CONFIG_R8169 is not set
|
||||||
|
# CONFIG_SIS190 is not set
|
||||||
# CONFIG_SKGE is not set
|
# CONFIG_SKGE is not set
|
||||||
# CONFIG_SK98LIN is not set
|
# CONFIG_SK98LIN is not set
|
||||||
CONFIG_TIGON3=y
|
CONFIG_TIGON3=y
|
||||||
@@ -501,10 +552,10 @@ CONFIG_TIGON3=y
|
|||||||
#
|
#
|
||||||
# Ethernet (10000 Mbit)
|
# Ethernet (10000 Mbit)
|
||||||
#
|
#
|
||||||
|
CONFIG_CHELSIO_T1=m
|
||||||
# CONFIG_IXGB is not set
|
# CONFIG_IXGB is not set
|
||||||
CONFIG_S2IO=m
|
CONFIG_S2IO=m
|
||||||
# CONFIG_S2IO_NAPI is not set
|
# CONFIG_S2IO_NAPI is not set
|
||||||
# CONFIG_2BUFF_MODE is not set
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Token Ring devices
|
# Token Ring devices
|
||||||
@@ -583,6 +634,7 @@ CONFIG_HW_CONSOLE=y
|
|||||||
CONFIG_SERIAL_NONSTANDARD=y
|
CONFIG_SERIAL_NONSTANDARD=y
|
||||||
# CONFIG_ROCKETPORT is not set
|
# CONFIG_ROCKETPORT is not set
|
||||||
# CONFIG_CYCLADES is not set
|
# CONFIG_CYCLADES is not set
|
||||||
|
# CONFIG_DIGIEPCA is not set
|
||||||
# CONFIG_MOXA_SMARTIO is not set
|
# CONFIG_MOXA_SMARTIO is not set
|
||||||
# CONFIG_ISI is not set
|
# CONFIG_ISI is not set
|
||||||
# CONFIG_SYNCLINKMP is not set
|
# CONFIG_SYNCLINKMP is not set
|
||||||
@@ -629,7 +681,8 @@ CONFIG_EFI_RTC=y
|
|||||||
#
|
#
|
||||||
# Ftape, the floppy tape device driver
|
# Ftape, the floppy tape device driver
|
||||||
#
|
#
|
||||||
# CONFIG_AGP is not set
|
CONFIG_AGP=y
|
||||||
|
CONFIG_AGP_SGI_TIOCA=y
|
||||||
# CONFIG_DRM is not set
|
# CONFIG_DRM is not set
|
||||||
CONFIG_RAW_DRIVER=m
|
CONFIG_RAW_DRIVER=m
|
||||||
# CONFIG_HPET is not set
|
# CONFIG_HPET is not set
|
||||||
@@ -641,12 +694,12 @@ CONFIG_MMTIMER=y
|
|||||||
# TPM devices
|
# TPM devices
|
||||||
#
|
#
|
||||||
# CONFIG_TCG_TPM is not set
|
# CONFIG_TCG_TPM is not set
|
||||||
|
# CONFIG_TELCLOCK is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# I2C support
|
# I2C support
|
||||||
#
|
#
|
||||||
# CONFIG_I2C is not set
|
# CONFIG_I2C is not set
|
||||||
# CONFIG_I2C_SENSOR is not set
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Dallas's 1-wire bus
|
# Dallas's 1-wire bus
|
||||||
@@ -657,11 +710,16 @@ CONFIG_MMTIMER=y
|
|||||||
# Hardware Monitoring support
|
# Hardware Monitoring support
|
||||||
#
|
#
|
||||||
# CONFIG_HWMON is not set
|
# CONFIG_HWMON is not set
|
||||||
|
# CONFIG_HWMON_VID is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Misc devices
|
# Misc devices
|
||||||
#
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Multimedia Capabilities Port drivers
|
||||||
|
#
|
||||||
|
|
||||||
#
|
#
|
||||||
# Multimedia devices
|
# Multimedia devices
|
||||||
#
|
#
|
||||||
@@ -721,12 +779,15 @@ CONFIG_USB_UHCI_HCD=m
|
|||||||
#
|
#
|
||||||
# USB Device Class drivers
|
# USB Device Class drivers
|
||||||
#
|
#
|
||||||
# CONFIG_USB_BLUETOOTH_TTY is not set
|
|
||||||
# CONFIG_USB_ACM is not set
|
# CONFIG_USB_ACM is not set
|
||||||
# CONFIG_USB_PRINTER is not set
|
# CONFIG_USB_PRINTER is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' may also be needed; see USB_STORAGE Help for more information
|
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# may also be needed; see USB_STORAGE Help for more information
|
||||||
#
|
#
|
||||||
# CONFIG_USB_STORAGE is not set
|
# CONFIG_USB_STORAGE is not set
|
||||||
|
|
||||||
@@ -751,9 +812,11 @@ CONFIG_USB_HIDINPUT=y
|
|||||||
# CONFIG_USB_MTOUCH is not set
|
# CONFIG_USB_MTOUCH is not set
|
||||||
# CONFIG_USB_ITMTOUCH is not set
|
# CONFIG_USB_ITMTOUCH is not set
|
||||||
# CONFIG_USB_EGALAX is not set
|
# CONFIG_USB_EGALAX is not set
|
||||||
|
# CONFIG_USB_YEALINK is not set
|
||||||
# CONFIG_USB_XPAD is not set
|
# CONFIG_USB_XPAD is not set
|
||||||
# CONFIG_USB_ATI_REMOTE is not set
|
# CONFIG_USB_ATI_REMOTE is not set
|
||||||
# CONFIG_USB_KEYSPAN_REMOTE is not set
|
# CONFIG_USB_KEYSPAN_REMOTE is not set
|
||||||
|
# CONFIG_USB_APPLETOUCH is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# USB Imaging devices
|
# USB Imaging devices
|
||||||
@@ -824,11 +887,13 @@ CONFIG_USB_MON=y
|
|||||||
# InfiniBand support
|
# InfiniBand support
|
||||||
#
|
#
|
||||||
CONFIG_INFINIBAND=m
|
CONFIG_INFINIBAND=m
|
||||||
CONFIG_INFINIBAND_USER_VERBS=m
|
# CONFIG_INFINIBAND_USER_MAD is not set
|
||||||
|
CONFIG_INFINIBAND_USER_ACCESS=m
|
||||||
CONFIG_INFINIBAND_MTHCA=m
|
CONFIG_INFINIBAND_MTHCA=m
|
||||||
# CONFIG_INFINIBAND_MTHCA_DEBUG is not set
|
# CONFIG_INFINIBAND_MTHCA_DEBUG is not set
|
||||||
CONFIG_INFINIBAND_IPOIB=m
|
CONFIG_INFINIBAND_IPOIB=m
|
||||||
# CONFIG_INFINIBAND_IPOIB_DEBUG is not set
|
# CONFIG_INFINIBAND_IPOIB_DEBUG is not set
|
||||||
|
CONFIG_INFINIBAND_SRP=m
|
||||||
|
|
||||||
#
|
#
|
||||||
# SN Devices
|
# SN Devices
|
||||||
@@ -858,16 +923,12 @@ CONFIG_REISERFS_FS_POSIX_ACL=y
|
|||||||
CONFIG_REISERFS_FS_SECURITY=y
|
CONFIG_REISERFS_FS_SECURITY=y
|
||||||
# CONFIG_JFS_FS is not set
|
# CONFIG_JFS_FS is not set
|
||||||
CONFIG_FS_POSIX_ACL=y
|
CONFIG_FS_POSIX_ACL=y
|
||||||
|
|
||||||
#
|
|
||||||
# XFS support
|
|
||||||
#
|
|
||||||
CONFIG_XFS_FS=y
|
CONFIG_XFS_FS=y
|
||||||
CONFIG_XFS_EXPORT=y
|
CONFIG_XFS_EXPORT=y
|
||||||
CONFIG_XFS_RT=y
|
|
||||||
CONFIG_XFS_QUOTA=y
|
CONFIG_XFS_QUOTA=y
|
||||||
# CONFIG_XFS_SECURITY is not set
|
# CONFIG_XFS_SECURITY is not set
|
||||||
CONFIG_XFS_POSIX_ACL=y
|
CONFIG_XFS_POSIX_ACL=y
|
||||||
|
CONFIG_XFS_RT=y
|
||||||
# CONFIG_MINIX_FS is not set
|
# CONFIG_MINIX_FS is not set
|
||||||
# CONFIG_ROMFS_FS is not set
|
# CONFIG_ROMFS_FS is not set
|
||||||
CONFIG_INOTIFY=y
|
CONFIG_INOTIFY=y
|
||||||
@@ -878,6 +939,7 @@ CONFIG_QUOTACTL=y
|
|||||||
CONFIG_DNOTIFY=y
|
CONFIG_DNOTIFY=y
|
||||||
CONFIG_AUTOFS_FS=m
|
CONFIG_AUTOFS_FS=m
|
||||||
CONFIG_AUTOFS4_FS=m
|
CONFIG_AUTOFS4_FS=m
|
||||||
|
CONFIG_FUSE_FS=m
|
||||||
|
|
||||||
#
|
#
|
||||||
# CD-ROM/DVD Filesystems
|
# CD-ROM/DVD Filesystems
|
||||||
@@ -904,13 +966,11 @@ CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
|
|||||||
CONFIG_PROC_FS=y
|
CONFIG_PROC_FS=y
|
||||||
CONFIG_PROC_KCORE=y
|
CONFIG_PROC_KCORE=y
|
||||||
CONFIG_SYSFS=y
|
CONFIG_SYSFS=y
|
||||||
# CONFIG_DEVPTS_FS_XATTR is not set
|
|
||||||
CONFIG_TMPFS=y
|
CONFIG_TMPFS=y
|
||||||
CONFIG_TMPFS_XATTR=y
|
|
||||||
CONFIG_TMPFS_SECURITY=y
|
|
||||||
CONFIG_HUGETLBFS=y
|
CONFIG_HUGETLBFS=y
|
||||||
CONFIG_HUGETLB_PAGE=y
|
CONFIG_HUGETLB_PAGE=y
|
||||||
CONFIG_RAMFS=y
|
CONFIG_RAMFS=y
|
||||||
|
CONFIG_RELAYFS_FS=m
|
||||||
|
|
||||||
#
|
#
|
||||||
# Miscellaneous filesystems
|
# Miscellaneous filesystems
|
||||||
@@ -959,6 +1019,7 @@ CONFIG_CIFS=m
|
|||||||
# CONFIG_NCP_FS is not set
|
# CONFIG_NCP_FS is not set
|
||||||
# CONFIG_CODA_FS is not set
|
# CONFIG_CODA_FS is not set
|
||||||
# CONFIG_AFS_FS is not set
|
# CONFIG_AFS_FS is not set
|
||||||
|
# CONFIG_9P_FS is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Partition Types
|
# Partition Types
|
||||||
@@ -1028,18 +1089,21 @@ CONFIG_NLS_UTF8=y
|
|||||||
# Library routines
|
# Library routines
|
||||||
#
|
#
|
||||||
# CONFIG_CRC_CCITT is not set
|
# CONFIG_CRC_CCITT is not set
|
||||||
|
CONFIG_CRC16=m
|
||||||
CONFIG_CRC32=y
|
CONFIG_CRC32=y
|
||||||
# CONFIG_LIBCRC32C is not set
|
CONFIG_LIBCRC32C=m
|
||||||
CONFIG_ZLIB_INFLATE=m
|
CONFIG_ZLIB_INFLATE=m
|
||||||
CONFIG_ZLIB_DEFLATE=m
|
CONFIG_ZLIB_DEFLATE=m
|
||||||
CONFIG_GENERIC_ALLOCATOR=y
|
CONFIG_GENERIC_ALLOCATOR=y
|
||||||
CONFIG_GENERIC_HARDIRQS=y
|
CONFIG_GENERIC_HARDIRQS=y
|
||||||
CONFIG_GENERIC_IRQ_PROBE=y
|
CONFIG_GENERIC_IRQ_PROBE=y
|
||||||
|
CONFIG_GENERIC_PENDING_IRQ=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# Profiling support
|
# Instrumentation Support
|
||||||
#
|
#
|
||||||
# CONFIG_PROFILING is not set
|
# CONFIG_PROFILING is not set
|
||||||
|
# CONFIG_KPROBES is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Kernel hacking
|
# Kernel hacking
|
||||||
@@ -1048,6 +1112,7 @@ CONFIG_GENERIC_IRQ_PROBE=y
|
|||||||
CONFIG_DEBUG_KERNEL=y
|
CONFIG_DEBUG_KERNEL=y
|
||||||
CONFIG_MAGIC_SYSRQ=y
|
CONFIG_MAGIC_SYSRQ=y
|
||||||
CONFIG_LOG_BUF_SHIFT=20
|
CONFIG_LOG_BUF_SHIFT=20
|
||||||
|
CONFIG_DETECT_SOFTLOCKUP=y
|
||||||
# CONFIG_SCHEDSTATS is not set
|
# CONFIG_SCHEDSTATS is not set
|
||||||
# CONFIG_DEBUG_SLAB is not set
|
# CONFIG_DEBUG_SLAB is not set
|
||||||
CONFIG_DEBUG_PREEMPT=y
|
CONFIG_DEBUG_PREEMPT=y
|
||||||
@@ -1056,7 +1121,8 @@ CONFIG_DEBUG_PREEMPT=y
|
|||||||
# CONFIG_DEBUG_KOBJECT is not set
|
# CONFIG_DEBUG_KOBJECT is not set
|
||||||
CONFIG_DEBUG_INFO=y
|
CONFIG_DEBUG_INFO=y
|
||||||
# CONFIG_DEBUG_FS is not set
|
# CONFIG_DEBUG_FS is not set
|
||||||
# CONFIG_KPROBES is not set
|
# CONFIG_DEBUG_VM is not set
|
||||||
|
# CONFIG_RCU_TORTURE_TEST is not set
|
||||||
CONFIG_IA64_GRANULE_16MB=y
|
CONFIG_IA64_GRANULE_16MB=y
|
||||||
# CONFIG_IA64_GRANULE_64MB is not set
|
# CONFIG_IA64_GRANULE_64MB is not set
|
||||||
# CONFIG_IA64_PRINT_HAZARDS is not set
|
# CONFIG_IA64_PRINT_HAZARDS is not set
|
||||||
@@ -1097,7 +1163,7 @@ CONFIG_CRYPTO_DES=m
|
|||||||
# CONFIG_CRYPTO_ANUBIS is not set
|
# CONFIG_CRYPTO_ANUBIS is not set
|
||||||
CONFIG_CRYPTO_DEFLATE=m
|
CONFIG_CRYPTO_DEFLATE=m
|
||||||
# CONFIG_CRYPTO_MICHAEL_MIC is not set
|
# CONFIG_CRYPTO_MICHAEL_MIC is not set
|
||||||
# CONFIG_CRYPTO_CRC32C is not set
|
CONFIG_CRYPTO_CRC32C=m
|
||||||
# CONFIG_CRYPTO_TEST is not set
|
# CONFIG_CRYPTO_TEST is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Automatically generated make config: don't edit
|
# Automatically generated make config: don't edit
|
||||||
# Linux kernel version: 2.6.14-rc1
|
# Linux kernel version: 2.6.15-rc4
|
||||||
# Wed Sep 14 15:17:57 2005
|
# Fri Dec 2 16:06:32 2005
|
||||||
#
|
#
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -58,18 +58,37 @@ CONFIG_MODULE_SRCVERSION_ALL=y
|
|||||||
CONFIG_KMOD=y
|
CONFIG_KMOD=y
|
||||||
CONFIG_STOP_MACHINE=y
|
CONFIG_STOP_MACHINE=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Block layer
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# IO Schedulers
|
||||||
|
#
|
||||||
|
CONFIG_IOSCHED_NOOP=y
|
||||||
|
CONFIG_IOSCHED_AS=y
|
||||||
|
CONFIG_IOSCHED_DEADLINE=y
|
||||||
|
CONFIG_IOSCHED_CFQ=y
|
||||||
|
CONFIG_DEFAULT_AS=y
|
||||||
|
# CONFIG_DEFAULT_DEADLINE is not set
|
||||||
|
# CONFIG_DEFAULT_CFQ is not set
|
||||||
|
# CONFIG_DEFAULT_NOOP is not set
|
||||||
|
CONFIG_DEFAULT_IOSCHED="anticipatory"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Processor type and features
|
# Processor type and features
|
||||||
#
|
#
|
||||||
CONFIG_IA64=y
|
CONFIG_IA64=y
|
||||||
CONFIG_64BIT=y
|
CONFIG_64BIT=y
|
||||||
CONFIG_MMU=y
|
CONFIG_MMU=y
|
||||||
|
CONFIG_SWIOTLB=y
|
||||||
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
|
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
|
||||||
CONFIG_GENERIC_CALIBRATE_DELAY=y
|
CONFIG_GENERIC_CALIBRATE_DELAY=y
|
||||||
CONFIG_TIME_INTERPOLATION=y
|
CONFIG_TIME_INTERPOLATION=y
|
||||||
CONFIG_EFI=y
|
CONFIG_EFI=y
|
||||||
CONFIG_GENERIC_IOMAP=y
|
CONFIG_GENERIC_IOMAP=y
|
||||||
CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y
|
CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y
|
||||||
|
CONFIG_ZONE_DMA_IS_DMA32=y
|
||||||
# CONFIG_IA64_GENERIC is not set
|
# CONFIG_IA64_GENERIC is not set
|
||||||
CONFIG_IA64_DIG=y
|
CONFIG_IA64_DIG=y
|
||||||
# CONFIG_IA64_HP_ZX1 is not set
|
# CONFIG_IA64_HP_ZX1 is not set
|
||||||
@@ -82,18 +101,16 @@ CONFIG_MCKINLEY=y
|
|||||||
# CONFIG_IA64_PAGE_SIZE_8KB is not set
|
# CONFIG_IA64_PAGE_SIZE_8KB is not set
|
||||||
CONFIG_IA64_PAGE_SIZE_16KB=y
|
CONFIG_IA64_PAGE_SIZE_16KB=y
|
||||||
# CONFIG_IA64_PAGE_SIZE_64KB is not set
|
# CONFIG_IA64_PAGE_SIZE_64KB is not set
|
||||||
|
CONFIG_PGTABLE_3=y
|
||||||
|
# CONFIG_PGTABLE_4 is not set
|
||||||
# CONFIG_HZ_100 is not set
|
# CONFIG_HZ_100 is not set
|
||||||
CONFIG_HZ_250=y
|
CONFIG_HZ_250=y
|
||||||
# CONFIG_HZ_1000 is not set
|
# CONFIG_HZ_1000 is not set
|
||||||
CONFIG_HZ=250
|
CONFIG_HZ=250
|
||||||
CONFIG_IA64_L1_CACHE_SHIFT=7
|
CONFIG_IA64_L1_CACHE_SHIFT=7
|
||||||
# CONFIG_NUMA is not set
|
|
||||||
CONFIG_VIRTUAL_MEM_MAP=y
|
|
||||||
CONFIG_HOLES_IN_ZONE=y
|
|
||||||
CONFIG_IA64_CYCLONE=y
|
CONFIG_IA64_CYCLONE=y
|
||||||
CONFIG_IOSAPIC=y
|
CONFIG_IOSAPIC=y
|
||||||
# CONFIG_IA64_SGI_SN_XP is not set
|
CONFIG_FORCE_MAX_ZONEORDER=17
|
||||||
CONFIG_FORCE_MAX_ZONEORDER=18
|
|
||||||
CONFIG_SMP=y
|
CONFIG_SMP=y
|
||||||
CONFIG_NR_CPUS=4
|
CONFIG_NR_CPUS=4
|
||||||
CONFIG_HOTPLUG_CPU=y
|
CONFIG_HOTPLUG_CPU=y
|
||||||
@@ -106,7 +123,13 @@ CONFIG_FLATMEM_MANUAL=y
|
|||||||
CONFIG_FLATMEM=y
|
CONFIG_FLATMEM=y
|
||||||
CONFIG_FLAT_NODE_MEM_MAP=y
|
CONFIG_FLAT_NODE_MEM_MAP=y
|
||||||
# CONFIG_SPARSEMEM_STATIC is not set
|
# CONFIG_SPARSEMEM_STATIC is not set
|
||||||
CONFIG_HAVE_DEC_LOCK=y
|
CONFIG_SPLIT_PTLOCK_CPUS=4
|
||||||
|
CONFIG_ARCH_SELECT_MEMORY_MODEL=y
|
||||||
|
CONFIG_ARCH_DISCONTIGMEM_ENABLE=y
|
||||||
|
CONFIG_ARCH_FLATMEM_ENABLE=y
|
||||||
|
CONFIG_ARCH_SPARSEMEM_ENABLE=y
|
||||||
|
CONFIG_VIRTUAL_MEM_MAP=y
|
||||||
|
CONFIG_HOLES_IN_ZONE=y
|
||||||
CONFIG_IA32_SUPPORT=y
|
CONFIG_IA32_SUPPORT=y
|
||||||
CONFIG_COMPAT=y
|
CONFIG_COMPAT=y
|
||||||
CONFIG_IA64_MCA_RECOVERY=y
|
CONFIG_IA64_MCA_RECOVERY=y
|
||||||
@@ -118,7 +141,6 @@ CONFIG_IA64_PALINFO=y
|
|||||||
#
|
#
|
||||||
CONFIG_EFI_VARS=y
|
CONFIG_EFI_VARS=y
|
||||||
CONFIG_EFI_PCDP=y
|
CONFIG_EFI_PCDP=y
|
||||||
# CONFIG_DELL_RBU is not set
|
|
||||||
CONFIG_BINFMT_ELF=y
|
CONFIG_BINFMT_ELF=y
|
||||||
CONFIG_BINFMT_MISC=m
|
CONFIG_BINFMT_MISC=m
|
||||||
|
|
||||||
@@ -126,6 +148,7 @@ CONFIG_BINFMT_MISC=m
|
|||||||
# Power management and ACPI
|
# Power management and ACPI
|
||||||
#
|
#
|
||||||
CONFIG_PM=y
|
CONFIG_PM=y
|
||||||
|
CONFIG_PM_LEGACY=y
|
||||||
# CONFIG_PM_DEBUG is not set
|
# CONFIG_PM_DEBUG is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -226,14 +249,16 @@ CONFIG_TCP_CONG_BIC=y
|
|||||||
# CONFIG_NET_DIVERT is not set
|
# CONFIG_NET_DIVERT is not set
|
||||||
# CONFIG_ECONET is not set
|
# CONFIG_ECONET is not set
|
||||||
# CONFIG_WAN_ROUTER is not set
|
# CONFIG_WAN_ROUTER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# QoS and/or fair queueing
|
||||||
|
#
|
||||||
# CONFIG_NET_SCHED is not set
|
# CONFIG_NET_SCHED is not set
|
||||||
# CONFIG_NET_CLS_ROUTE is not set
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Network testing
|
# Network testing
|
||||||
#
|
#
|
||||||
# CONFIG_NET_PKTGEN is not set
|
# CONFIG_NET_PKTGEN is not set
|
||||||
# CONFIG_NETFILTER_NETLINK is not set
|
|
||||||
# CONFIG_HAMRADIO is not set
|
# CONFIG_HAMRADIO is not set
|
||||||
# CONFIG_IRDA is not set
|
# CONFIG_IRDA is not set
|
||||||
# CONFIG_BT is not set
|
# CONFIG_BT is not set
|
||||||
@@ -295,14 +320,6 @@ CONFIG_BLK_DEV_RAM_COUNT=16
|
|||||||
CONFIG_BLK_DEV_RAM_SIZE=4096
|
CONFIG_BLK_DEV_RAM_SIZE=4096
|
||||||
CONFIG_BLK_DEV_INITRD=y
|
CONFIG_BLK_DEV_INITRD=y
|
||||||
# CONFIG_CDROM_PKTCDVD is not set
|
# CONFIG_CDROM_PKTCDVD is not set
|
||||||
|
|
||||||
#
|
|
||||||
# IO Schedulers
|
|
||||||
#
|
|
||||||
CONFIG_IOSCHED_NOOP=y
|
|
||||||
CONFIG_IOSCHED_AS=y
|
|
||||||
CONFIG_IOSCHED_DEADLINE=y
|
|
||||||
CONFIG_IOSCHED_CFQ=y
|
|
||||||
# CONFIG_ATA_OVER_ETH is not set
|
# CONFIG_ATA_OVER_ETH is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -400,6 +417,7 @@ CONFIG_SCSI_FC_ATTRS=y
|
|||||||
#
|
#
|
||||||
# SCSI low-level drivers
|
# SCSI low-level drivers
|
||||||
#
|
#
|
||||||
|
# CONFIG_ISCSI_TCP is not set
|
||||||
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
|
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
|
||||||
# CONFIG_SCSI_3W_9XXX is not set
|
# CONFIG_SCSI_3W_9XXX is not set
|
||||||
# CONFIG_SCSI_ACARD is not set
|
# CONFIG_SCSI_ACARD is not set
|
||||||
@@ -409,6 +427,7 @@ CONFIG_SCSI_FC_ATTRS=y
|
|||||||
# CONFIG_SCSI_AIC79XX is not set
|
# CONFIG_SCSI_AIC79XX is not set
|
||||||
# CONFIG_MEGARAID_NEWGEN is not set
|
# CONFIG_MEGARAID_NEWGEN is not set
|
||||||
# CONFIG_MEGARAID_LEGACY is not set
|
# CONFIG_MEGARAID_LEGACY is not set
|
||||||
|
# CONFIG_MEGARAID_SAS is not set
|
||||||
# CONFIG_SCSI_SATA is not set
|
# CONFIG_SCSI_SATA is not set
|
||||||
# CONFIG_SCSI_DMX3191D is not set
|
# CONFIG_SCSI_DMX3191D is not set
|
||||||
# CONFIG_SCSI_FUTURE_DOMAIN is not set
|
# CONFIG_SCSI_FUTURE_DOMAIN is not set
|
||||||
@@ -424,7 +443,6 @@ CONFIG_SCSI_SYM53C8XX_MAX_TAGS=64
|
|||||||
CONFIG_SCSI_QLOGIC_FC=y
|
CONFIG_SCSI_QLOGIC_FC=y
|
||||||
# CONFIG_SCSI_QLOGIC_FC_FIRMWARE is not set
|
# CONFIG_SCSI_QLOGIC_FC_FIRMWARE is not set
|
||||||
CONFIG_SCSI_QLOGIC_1280=y
|
CONFIG_SCSI_QLOGIC_1280=y
|
||||||
# CONFIG_SCSI_QLOGIC_1280_1040 is not set
|
|
||||||
CONFIG_SCSI_QLA2XXX=y
|
CONFIG_SCSI_QLA2XXX=y
|
||||||
CONFIG_SCSI_QLA21XX=m
|
CONFIG_SCSI_QLA21XX=m
|
||||||
CONFIG_SCSI_QLA22XX=m
|
CONFIG_SCSI_QLA22XX=m
|
||||||
@@ -463,6 +481,7 @@ CONFIG_DM_ZERO=m
|
|||||||
CONFIG_FUSION=y
|
CONFIG_FUSION=y
|
||||||
CONFIG_FUSION_SPI=y
|
CONFIG_FUSION_SPI=y
|
||||||
CONFIG_FUSION_FC=y
|
CONFIG_FUSION_FC=y
|
||||||
|
# CONFIG_FUSION_SAS is not set
|
||||||
CONFIG_FUSION_MAX_SGE=128
|
CONFIG_FUSION_MAX_SGE=128
|
||||||
CONFIG_FUSION_CTL=y
|
CONFIG_FUSION_CTL=y
|
||||||
|
|
||||||
@@ -503,6 +522,7 @@ CONFIG_NET_ETHERNET=y
|
|||||||
CONFIG_MII=m
|
CONFIG_MII=m
|
||||||
# CONFIG_HAPPYMEAL is not set
|
# CONFIG_HAPPYMEAL is not set
|
||||||
# CONFIG_SUNGEM is not set
|
# CONFIG_SUNGEM is not set
|
||||||
|
# CONFIG_CASSINI is not set
|
||||||
# CONFIG_NET_VENDOR_3COM is not set
|
# CONFIG_NET_VENDOR_3COM is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -727,6 +747,7 @@ CONFIG_MAX_RAW_DEVS=256
|
|||||||
# TPM devices
|
# TPM devices
|
||||||
#
|
#
|
||||||
# CONFIG_TCG_TPM is not set
|
# CONFIG_TCG_TPM is not set
|
||||||
|
# CONFIG_TELCLOCK is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# I2C support
|
# I2C support
|
||||||
@@ -812,12 +833,15 @@ CONFIG_USB_UHCI_HCD=y
|
|||||||
#
|
#
|
||||||
# USB Device Class drivers
|
# USB Device Class drivers
|
||||||
#
|
#
|
||||||
# CONFIG_USB_BLUETOOTH_TTY is not set
|
|
||||||
# CONFIG_USB_ACM is not set
|
# CONFIG_USB_ACM is not set
|
||||||
# CONFIG_USB_PRINTER is not set
|
# CONFIG_USB_PRINTER is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' may also be needed; see USB_STORAGE Help for more information
|
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# may also be needed; see USB_STORAGE Help for more information
|
||||||
#
|
#
|
||||||
CONFIG_USB_STORAGE=m
|
CONFIG_USB_STORAGE=m
|
||||||
# CONFIG_USB_STORAGE_DEBUG is not set
|
# CONFIG_USB_STORAGE_DEBUG is not set
|
||||||
@@ -1123,9 +1147,10 @@ CONFIG_GENERIC_IRQ_PROBE=y
|
|||||||
CONFIG_GENERIC_PENDING_IRQ=y
|
CONFIG_GENERIC_PENDING_IRQ=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# Profiling support
|
# Instrumentation Support
|
||||||
#
|
#
|
||||||
# CONFIG_PROFILING is not set
|
# CONFIG_PROFILING is not set
|
||||||
|
# CONFIG_KPROBES is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Kernel hacking
|
# Kernel hacking
|
||||||
@@ -1142,7 +1167,8 @@ CONFIG_DETECT_SOFTLOCKUP=y
|
|||||||
# CONFIG_DEBUG_KOBJECT is not set
|
# CONFIG_DEBUG_KOBJECT is not set
|
||||||
# CONFIG_DEBUG_INFO is not set
|
# CONFIG_DEBUG_INFO is not set
|
||||||
# CONFIG_DEBUG_FS is not set
|
# CONFIG_DEBUG_FS is not set
|
||||||
# CONFIG_KPROBES is not set
|
# CONFIG_DEBUG_VM is not set
|
||||||
|
# CONFIG_RCU_TORTURE_TEST is not set
|
||||||
CONFIG_IA64_GRANULE_16MB=y
|
CONFIG_IA64_GRANULE_16MB=y
|
||||||
# CONFIG_IA64_GRANULE_64MB is not set
|
# CONFIG_IA64_GRANULE_64MB is not set
|
||||||
# CONFIG_IA64_PRINT_HAZARDS is not set
|
# CONFIG_IA64_PRINT_HAZARDS is not set
|
||||||
|
@@ -261,8 +261,6 @@ elf32_set_personality (void)
|
|||||||
{
|
{
|
||||||
set_personality(PER_LINUX32);
|
set_personality(PER_LINUX32);
|
||||||
current->thread.map_base = IA32_PAGE_OFFSET/3;
|
current->thread.map_base = IA32_PAGE_OFFSET/3;
|
||||||
current->thread.task_size = IA32_PAGE_OFFSET; /* use what Linux/x86 uses... */
|
|
||||||
set_fs(USER_DS); /* set addr limit for new TASK_SIZE */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned long
|
static unsigned long
|
||||||
|
@@ -305,7 +305,6 @@ struct old_linux32_dirent {
|
|||||||
#define ELF_DATA ELFDATA2LSB
|
#define ELF_DATA ELFDATA2LSB
|
||||||
#define ELF_ARCH EM_386
|
#define ELF_ARCH EM_386
|
||||||
|
|
||||||
#define IA32_PAGE_OFFSET 0xc0000000
|
|
||||||
#define IA32_STACK_TOP IA32_PAGE_OFFSET
|
#define IA32_STACK_TOP IA32_PAGE_OFFSET
|
||||||
#define IA32_GATE_OFFSET IA32_PAGE_OFFSET
|
#define IA32_GATE_OFFSET IA32_PAGE_OFFSET
|
||||||
#define IA32_GATE_END IA32_PAGE_OFFSET + PAGE_SIZE
|
#define IA32_GATE_END IA32_PAGE_OFFSET + PAGE_SIZE
|
||||||
|
@@ -630,7 +630,7 @@ static int __kprobes pre_kprobes_handler(struct die_args *args)
|
|||||||
*/
|
*/
|
||||||
save_previous_kprobe(kcb);
|
save_previous_kprobe(kcb);
|
||||||
set_current_kprobe(p, kcb);
|
set_current_kprobe(p, kcb);
|
||||||
p->nmissed++;
|
kprobes_inc_nmissed_count(p);
|
||||||
prepare_ss(p, regs);
|
prepare_ss(p, regs);
|
||||||
kcb->kprobe_status = KPROBE_REENTER;
|
kcb->kprobe_status = KPROBE_REENTER;
|
||||||
return 1;
|
return 1;
|
||||||
|
@@ -721,8 +721,11 @@ flush_thread (void)
|
|||||||
/* drop floating-point and debug-register state if it exists: */
|
/* drop floating-point and debug-register state if it exists: */
|
||||||
current->thread.flags &= ~(IA64_THREAD_FPH_VALID | IA64_THREAD_DBG_VALID);
|
current->thread.flags &= ~(IA64_THREAD_FPH_VALID | IA64_THREAD_DBG_VALID);
|
||||||
ia64_drop_fpu(current);
|
ia64_drop_fpu(current);
|
||||||
if (IS_IA32_PROCESS(ia64_task_regs(current)))
|
if (IS_IA32_PROCESS(ia64_task_regs(current))) {
|
||||||
ia32_drop_partial_page_list(current);
|
ia32_drop_partial_page_list(current);
|
||||||
|
current->thread.task_size = IA32_PAGE_OFFSET;
|
||||||
|
set_fs(USER_DS);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -293,7 +293,7 @@ retry:
|
|||||||
if (file->f_flags & O_NONBLOCK)
|
if (file->f_flags & O_NONBLOCK)
|
||||||
return -EAGAIN;
|
return -EAGAIN;
|
||||||
if (down_interruptible(&data->sem))
|
if (down_interruptible(&data->sem))
|
||||||
return -ERESTARTSYS;
|
return -EINTR;
|
||||||
}
|
}
|
||||||
|
|
||||||
n = data->cpu_check;
|
n = data->cpu_check;
|
||||||
|
@@ -50,8 +50,10 @@ static nodemask_t memory_less_mask __initdata;
|
|||||||
* To prevent cache aliasing effects, align per-node structures so that they
|
* To prevent cache aliasing effects, align per-node structures so that they
|
||||||
* start at addresses that are strided by node number.
|
* start at addresses that are strided by node number.
|
||||||
*/
|
*/
|
||||||
|
#define MAX_NODE_ALIGN_OFFSET (32 * 1024 * 1024)
|
||||||
#define NODEDATA_ALIGN(addr, node) \
|
#define NODEDATA_ALIGN(addr, node) \
|
||||||
((((addr) + 1024*1024-1) & ~(1024*1024-1)) + (node)*PERCPU_PAGE_SIZE)
|
((((addr) + 1024*1024-1) & ~(1024*1024-1)) + \
|
||||||
|
(((node)*PERCPU_PAGE_SIZE) & (MAX_NODE_ALIGN_OFFSET - 1)))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* build_node_maps - callback to setup bootmem structs for each node
|
* build_node_maps - callback to setup bootmem structs for each node
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
* License. See the file "COPYING" in the main directory of this archive
|
* License. See the file "COPYING" in the main directory of this archive
|
||||||
* for more details.
|
* for more details.
|
||||||
*
|
*
|
||||||
* Copyright (C) 1992 - 1997, 2000-2004 Silicon Graphics, Inc. All rights reserved.
|
* Copyright (C) 1992 - 1997, 2000-2005 Silicon Graphics, Inc. All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/bootmem.h>
|
#include <linux/bootmem.h>
|
||||||
@@ -146,6 +146,24 @@ sal_get_pcidev_info(u64 segment, u64 bus_number, u64 devfn, u64 pci_dev,
|
|||||||
return ret_stuff.v0;
|
return ret_stuff.v0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* sn_pcidev_info_get() - Retrieve the pcidev_info struct for the specified
|
||||||
|
* device.
|
||||||
|
*/
|
||||||
|
inline struct pcidev_info *
|
||||||
|
sn_pcidev_info_get(struct pci_dev *dev)
|
||||||
|
{
|
||||||
|
struct pcidev_info *pcidev;
|
||||||
|
|
||||||
|
list_for_each_entry(pcidev,
|
||||||
|
&(SN_PCI_CONTROLLER(dev)->pcidev_info), pdi_list) {
|
||||||
|
if (pcidev->pdi_linux_pcidev == dev) {
|
||||||
|
return pcidev;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* sn_fixup_ionodes() - This routine initializes the HUB data strcuture for
|
* sn_fixup_ionodes() - This routine initializes the HUB data strcuture for
|
||||||
* each node in the system.
|
* each node in the system.
|
||||||
@@ -229,6 +247,50 @@ static void sn_fixup_ionodes(void)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* sn_pci_window_fixup() - Create a pci_window for each device resource.
|
||||||
|
* Until ACPI support is added, we need this code
|
||||||
|
* to setup pci_windows for use by
|
||||||
|
* pcibios_bus_to_resource(),
|
||||||
|
* pcibios_resource_to_bus(), etc.
|
||||||
|
*/
|
||||||
|
static void
|
||||||
|
sn_pci_window_fixup(struct pci_dev *dev, unsigned int count,
|
||||||
|
int64_t * pci_addrs)
|
||||||
|
{
|
||||||
|
struct pci_controller *controller = PCI_CONTROLLER(dev->bus);
|
||||||
|
unsigned int i;
|
||||||
|
unsigned int idx;
|
||||||
|
unsigned int new_count;
|
||||||
|
struct pci_window *new_window;
|
||||||
|
|
||||||
|
if (count == 0)
|
||||||
|
return;
|
||||||
|
idx = controller->windows;
|
||||||
|
new_count = controller->windows + count;
|
||||||
|
new_window = kcalloc(new_count, sizeof(struct pci_window), GFP_KERNEL);
|
||||||
|
if (new_window == NULL)
|
||||||
|
BUG();
|
||||||
|
if (controller->window) {
|
||||||
|
memcpy(new_window, controller->window,
|
||||||
|
sizeof(struct pci_window) * controller->windows);
|
||||||
|
kfree(controller->window);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Setup a pci_window for each device resource. */
|
||||||
|
for (i = 0; i <= PCI_ROM_RESOURCE; i++) {
|
||||||
|
if (pci_addrs[i] == -1)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
new_window[idx].offset = dev->resource[i].start - pci_addrs[i];
|
||||||
|
new_window[idx].resource = dev->resource[i];
|
||||||
|
idx++;
|
||||||
|
}
|
||||||
|
|
||||||
|
controller->windows = new_count;
|
||||||
|
controller->window = new_window;
|
||||||
|
}
|
||||||
|
|
||||||
void sn_pci_unfixup_slot(struct pci_dev *dev)
|
void sn_pci_unfixup_slot(struct pci_dev *dev)
|
||||||
{
|
{
|
||||||
struct pci_dev *host_pci_dev = SN_PCIDEV_INFO(dev)->host_pci_dev;
|
struct pci_dev *host_pci_dev = SN_PCIDEV_INFO(dev)->host_pci_dev;
|
||||||
@@ -246,21 +308,23 @@ void sn_pci_unfixup_slot(struct pci_dev *dev)
|
|||||||
*/
|
*/
|
||||||
void sn_pci_fixup_slot(struct pci_dev *dev)
|
void sn_pci_fixup_slot(struct pci_dev *dev)
|
||||||
{
|
{
|
||||||
|
unsigned int count = 0;
|
||||||
int idx;
|
int idx;
|
||||||
int segment = pci_domain_nr(dev->bus);
|
int segment = pci_domain_nr(dev->bus);
|
||||||
int status = 0;
|
int status = 0;
|
||||||
struct pcibus_bussoft *bs;
|
struct pcibus_bussoft *bs;
|
||||||
struct pci_bus *host_pci_bus;
|
struct pci_bus *host_pci_bus;
|
||||||
struct pci_dev *host_pci_dev;
|
struct pci_dev *host_pci_dev;
|
||||||
|
struct pcidev_info *pcidev_info;
|
||||||
|
int64_t pci_addrs[PCI_ROM_RESOURCE + 1];
|
||||||
struct sn_irq_info *sn_irq_info;
|
struct sn_irq_info *sn_irq_info;
|
||||||
unsigned long size;
|
unsigned long size;
|
||||||
unsigned int bus_no, devfn;
|
unsigned int bus_no, devfn;
|
||||||
|
|
||||||
pci_dev_get(dev); /* for the sysdata pointer */
|
pci_dev_get(dev); /* for the sysdata pointer */
|
||||||
dev->sysdata = kmalloc(sizeof(struct pcidev_info), GFP_KERNEL);
|
pcidev_info = kzalloc(sizeof(struct pcidev_info), GFP_KERNEL);
|
||||||
if (SN_PCIDEV_INFO(dev) <= 0)
|
if (pcidev_info <= 0)
|
||||||
BUG(); /* Cannot afford to run out of memory */
|
BUG(); /* Cannot afford to run out of memory */
|
||||||
memset(SN_PCIDEV_INFO(dev), 0, sizeof(struct pcidev_info));
|
|
||||||
|
|
||||||
sn_irq_info = kmalloc(sizeof(struct sn_irq_info), GFP_KERNEL);
|
sn_irq_info = kmalloc(sizeof(struct sn_irq_info), GFP_KERNEL);
|
||||||
if (sn_irq_info <= 0)
|
if (sn_irq_info <= 0)
|
||||||
@@ -270,22 +334,34 @@ void sn_pci_fixup_slot(struct pci_dev *dev)
|
|||||||
/* Call to retrieve pci device information needed by kernel. */
|
/* Call to retrieve pci device information needed by kernel. */
|
||||||
status = sal_get_pcidev_info((u64) segment, (u64) dev->bus->number,
|
status = sal_get_pcidev_info((u64) segment, (u64) dev->bus->number,
|
||||||
dev->devfn,
|
dev->devfn,
|
||||||
(u64) __pa(SN_PCIDEV_INFO(dev)),
|
(u64) __pa(pcidev_info),
|
||||||
(u64) __pa(sn_irq_info));
|
(u64) __pa(sn_irq_info));
|
||||||
if (status)
|
if (status)
|
||||||
BUG(); /* Cannot get platform pci device information */
|
BUG(); /* Cannot get platform pci device information */
|
||||||
|
|
||||||
|
/* Add pcidev_info to list in sn_pci_controller struct */
|
||||||
|
list_add_tail(&pcidev_info->pdi_list,
|
||||||
|
&(SN_PCI_CONTROLLER(dev->bus)->pcidev_info));
|
||||||
|
|
||||||
/* Copy over PIO Mapped Addresses */
|
/* Copy over PIO Mapped Addresses */
|
||||||
for (idx = 0; idx <= PCI_ROM_RESOURCE; idx++) {
|
for (idx = 0; idx <= PCI_ROM_RESOURCE; idx++) {
|
||||||
unsigned long start, end, addr;
|
unsigned long start, end, addr;
|
||||||
|
|
||||||
if (!SN_PCIDEV_INFO(dev)->pdi_pio_mapped_addr[idx])
|
if (!pcidev_info->pdi_pio_mapped_addr[idx]) {
|
||||||
|
pci_addrs[idx] = -1;
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
start = dev->resource[idx].start;
|
start = dev->resource[idx].start;
|
||||||
end = dev->resource[idx].end;
|
end = dev->resource[idx].end;
|
||||||
size = end - start;
|
size = end - start;
|
||||||
addr = SN_PCIDEV_INFO(dev)->pdi_pio_mapped_addr[idx];
|
if (size == 0) {
|
||||||
|
pci_addrs[idx] = -1;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
pci_addrs[idx] = start;
|
||||||
|
count++;
|
||||||
|
addr = pcidev_info->pdi_pio_mapped_addr[idx];
|
||||||
addr = ((addr << 4) >> 4) | __IA64_UNCACHED_OFFSET;
|
addr = ((addr << 4) >> 4) | __IA64_UNCACHED_OFFSET;
|
||||||
dev->resource[idx].start = addr;
|
dev->resource[idx].start = addr;
|
||||||
dev->resource[idx].end = addr + size;
|
dev->resource[idx].end = addr + size;
|
||||||
@@ -294,23 +370,27 @@ void sn_pci_fixup_slot(struct pci_dev *dev)
|
|||||||
else
|
else
|
||||||
dev->resource[idx].parent = &iomem_resource;
|
dev->resource[idx].parent = &iomem_resource;
|
||||||
}
|
}
|
||||||
|
/* Create a pci_window in the pci_controller struct for
|
||||||
|
* each device resource.
|
||||||
|
*/
|
||||||
|
if (count > 0)
|
||||||
|
sn_pci_window_fixup(dev, count, pci_addrs);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Using the PROMs values for the PCI host bus, get the Linux
|
* Using the PROMs values for the PCI host bus, get the Linux
|
||||||
* PCI host_pci_dev struct and set up host bus linkages
|
* PCI host_pci_dev struct and set up host bus linkages
|
||||||
*/
|
*/
|
||||||
|
|
||||||
bus_no = (SN_PCIDEV_INFO(dev)->pdi_slot_host_handle >> 32) & 0xff;
|
bus_no = (pcidev_info->pdi_slot_host_handle >> 32) & 0xff;
|
||||||
devfn = SN_PCIDEV_INFO(dev)->pdi_slot_host_handle & 0xffffffff;
|
devfn = pcidev_info->pdi_slot_host_handle & 0xffffffff;
|
||||||
host_pci_bus = pci_find_bus(segment, bus_no);
|
host_pci_bus = pci_find_bus(segment, bus_no);
|
||||||
host_pci_dev = pci_get_slot(host_pci_bus, devfn);
|
host_pci_dev = pci_get_slot(host_pci_bus, devfn);
|
||||||
|
|
||||||
SN_PCIDEV_INFO(dev)->host_pci_dev = host_pci_dev;
|
pcidev_info->host_pci_dev = host_pci_dev;
|
||||||
SN_PCIDEV_INFO(dev)->pdi_host_pcidev_info =
|
pcidev_info->pdi_linux_pcidev = dev;
|
||||||
SN_PCIDEV_INFO(host_pci_dev);
|
pcidev_info->pdi_host_pcidev_info = SN_PCIDEV_INFO(host_pci_dev);
|
||||||
SN_PCIDEV_INFO(dev)->pdi_linux_pcidev = dev;
|
|
||||||
bs = SN_PCIBUS_BUSSOFT(dev->bus);
|
bs = SN_PCIBUS_BUSSOFT(dev->bus);
|
||||||
SN_PCIDEV_INFO(dev)->pdi_pcibus_info = bs;
|
pcidev_info->pdi_pcibus_info = bs;
|
||||||
|
|
||||||
if (bs && bs->bs_asic_type < PCIIO_ASIC_MAX_TYPES) {
|
if (bs && bs->bs_asic_type < PCIIO_ASIC_MAX_TYPES) {
|
||||||
SN_PCIDEV_BUSPROVIDER(dev) = sn_pci_provider[bs->bs_asic_type];
|
SN_PCIDEV_BUSPROVIDER(dev) = sn_pci_provider[bs->bs_asic_type];
|
||||||
@@ -320,11 +400,11 @@ void sn_pci_fixup_slot(struct pci_dev *dev)
|
|||||||
|
|
||||||
/* Only set up IRQ stuff if this device has a host bus context */
|
/* Only set up IRQ stuff if this device has a host bus context */
|
||||||
if (bs && sn_irq_info->irq_irq) {
|
if (bs && sn_irq_info->irq_irq) {
|
||||||
SN_PCIDEV_INFO(dev)->pdi_sn_irq_info = sn_irq_info;
|
pcidev_info->pdi_sn_irq_info = sn_irq_info;
|
||||||
dev->irq = SN_PCIDEV_INFO(dev)->pdi_sn_irq_info->irq_irq;
|
dev->irq = pcidev_info->pdi_sn_irq_info->irq_irq;
|
||||||
sn_irq_fixup(dev, sn_irq_info);
|
sn_irq_fixup(dev, sn_irq_info);
|
||||||
} else {
|
} else {
|
||||||
SN_PCIDEV_INFO(dev)->pdi_sn_irq_info = NULL;
|
pcidev_info->pdi_sn_irq_info = NULL;
|
||||||
kfree(sn_irq_info);
|
kfree(sn_irq_info);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -338,6 +418,7 @@ void sn_pci_controller_fixup(int segment, int busnum, struct pci_bus *bus)
|
|||||||
int status = 0;
|
int status = 0;
|
||||||
int nasid, cnode;
|
int nasid, cnode;
|
||||||
struct pci_controller *controller;
|
struct pci_controller *controller;
|
||||||
|
struct sn_pci_controller *sn_controller;
|
||||||
struct pcibus_bussoft *prom_bussoft_ptr;
|
struct pcibus_bussoft *prom_bussoft_ptr;
|
||||||
struct hubdev_info *hubdev_info;
|
struct hubdev_info *hubdev_info;
|
||||||
void *provider_soft = NULL;
|
void *provider_soft = NULL;
|
||||||
@@ -349,10 +430,15 @@ void sn_pci_controller_fixup(int segment, int busnum, struct pci_bus *bus)
|
|||||||
return; /*bus # does not exist */
|
return; /*bus # does not exist */
|
||||||
prom_bussoft_ptr = __va(prom_bussoft_ptr);
|
prom_bussoft_ptr = __va(prom_bussoft_ptr);
|
||||||
|
|
||||||
controller = kzalloc(sizeof(struct pci_controller), GFP_KERNEL);
|
/* Allocate a sn_pci_controller, which has a pci_controller struct
|
||||||
controller->segment = segment;
|
* as the first member.
|
||||||
if (!controller)
|
*/
|
||||||
|
sn_controller = kzalloc(sizeof(struct sn_pci_controller), GFP_KERNEL);
|
||||||
|
if (!sn_controller)
|
||||||
BUG();
|
BUG();
|
||||||
|
INIT_LIST_HEAD(&sn_controller->pcidev_info);
|
||||||
|
controller = &sn_controller->pci_controller;
|
||||||
|
controller->segment = segment;
|
||||||
|
|
||||||
if (bus == NULL) {
|
if (bus == NULL) {
|
||||||
bus = pci_scan_bus(busnum, &pci_root_ops, controller);
|
bus = pci_scan_bus(busnum, &pci_root_ops, controller);
|
||||||
@@ -389,6 +475,29 @@ void sn_pci_controller_fixup(int segment, int busnum, struct pci_bus *bus)
|
|||||||
goto error_return;
|
goto error_return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Setup pci_windows for legacy IO and MEM space.
|
||||||
|
* (Temporary until ACPI support is in place.)
|
||||||
|
*/
|
||||||
|
controller->window = kcalloc(2, sizeof(struct pci_window), GFP_KERNEL);
|
||||||
|
if (controller->window == NULL)
|
||||||
|
BUG();
|
||||||
|
controller->window[0].offset = prom_bussoft_ptr->bs_legacy_io;
|
||||||
|
controller->window[0].resource.name = "legacy_io";
|
||||||
|
controller->window[0].resource.flags = IORESOURCE_IO;
|
||||||
|
controller->window[0].resource.start = prom_bussoft_ptr->bs_legacy_io;
|
||||||
|
controller->window[0].resource.end =
|
||||||
|
controller->window[0].resource.start + 0xffff;
|
||||||
|
controller->window[0].resource.parent = &ioport_resource;
|
||||||
|
controller->window[1].offset = prom_bussoft_ptr->bs_legacy_mem;
|
||||||
|
controller->window[1].resource.name = "legacy_mem";
|
||||||
|
controller->window[1].resource.flags = IORESOURCE_MEM;
|
||||||
|
controller->window[1].resource.start = prom_bussoft_ptr->bs_legacy_mem;
|
||||||
|
controller->window[1].resource.end =
|
||||||
|
controller->window[1].resource.start + (1024 * 1024) - 1;
|
||||||
|
controller->window[1].resource.parent = &iomem_resource;
|
||||||
|
controller->windows = 2;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Generic bus fixup goes here. Don't reference prom_bussoft_ptr
|
* Generic bus fixup goes here. Don't reference prom_bussoft_ptr
|
||||||
* after this point.
|
* after this point.
|
||||||
@@ -421,7 +530,7 @@ void sn_pci_controller_fixup(int segment, int busnum, struct pci_bus *bus)
|
|||||||
|
|
||||||
error_return:
|
error_return:
|
||||||
|
|
||||||
kfree(controller);
|
kfree(sn_controller);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -434,7 +543,7 @@ void sn_bus_store_sysdata(struct pci_dev *dev)
|
|||||||
dev_dbg(dev, "%s: out of memory!\n", __FUNCTION__);
|
dev_dbg(dev, "%s: out of memory!\n", __FUNCTION__);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
element->sysdata = dev->sysdata;
|
element->sysdata = SN_PCIDEV_INFO(dev);
|
||||||
list_add(&element->entry, &sn_sysdata_list);
|
list_add(&element->entry, &sn_sysdata_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -39,9 +39,13 @@ sn2_ptc_deadlock_recovery_core:
|
|||||||
mov r8=r0
|
mov r8=r0
|
||||||
|
|
||||||
1:
|
1:
|
||||||
|
cmp.ne p8,p9=r0,ptc1 // Test for shub type (ptc1 non-null on shub1)
|
||||||
|
// p8 = 1 if shub1, p9 = 1 if shub2
|
||||||
|
|
||||||
add scr2=ALIAS_OFFSET,piowc // Address of WRITE_STATUS alias register
|
add scr2=ALIAS_OFFSET,piowc // Address of WRITE_STATUS alias register
|
||||||
;;
|
mov scr1=7;; // Clear DEADLOCK, WRITE_ERROR, MULTI_WRITE_ERROR
|
||||||
ld8.acq scr1=[scr2];;
|
(p8) st8.rel [scr2]=scr1;;
|
||||||
|
(p9) ld8.acq scr1=[scr2];;
|
||||||
|
|
||||||
5: ld8.acq scr1=[piowc];; // Wait for PIOs to complete.
|
5: ld8.acq scr1=[piowc];; // Wait for PIOs to complete.
|
||||||
hint @pause
|
hint @pause
|
||||||
|
@@ -67,8 +67,8 @@ unsigned long setup_zero_pages(void)
|
|||||||
|
|
||||||
page = virt_to_page(empty_zero_page);
|
page = virt_to_page(empty_zero_page);
|
||||||
while (page < virt_to_page(empty_zero_page + (PAGE_SIZE << order))) {
|
while (page < virt_to_page(empty_zero_page + (PAGE_SIZE << order))) {
|
||||||
set_bit(PG_reserved, &page->flags);
|
SetPageReserved(page);
|
||||||
reset_page_mapcount(page);
|
set_page_count(page, 1);
|
||||||
page++;
|
page++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -227,7 +227,7 @@ config SMP
|
|||||||
If you don't know what to do here, say N.
|
If you don't know what to do here, say N.
|
||||||
|
|
||||||
config NR_CPUS
|
config NR_CPUS
|
||||||
int "Maximum number of CPUs (2-32)"
|
int "Maximum number of CPUs (2-128)"
|
||||||
range 2 128
|
range 2 128
|
||||||
depends on SMP
|
depends on SMP
|
||||||
default "32" if PPC64
|
default "32" if PPC64
|
||||||
|
@@ -177,7 +177,7 @@ static inline int kprobe_handler(struct pt_regs *regs)
|
|||||||
save_previous_kprobe(kcb);
|
save_previous_kprobe(kcb);
|
||||||
set_current_kprobe(p, regs, kcb);
|
set_current_kprobe(p, regs, kcb);
|
||||||
kcb->kprobe_saved_msr = regs->msr;
|
kcb->kprobe_saved_msr = regs->msr;
|
||||||
p->nmissed++;
|
kprobes_inc_nmissed_count(p);
|
||||||
prepare_singlestep(p, regs);
|
prepare_singlestep(p, regs);
|
||||||
kcb->kprobe_status = KPROBE_REENTER;
|
kcb->kprobe_status = KPROBE_REENTER;
|
||||||
return 1;
|
return 1;
|
||||||
|
@@ -102,7 +102,15 @@ int boot_cpuid_phys = 0;
|
|||||||
dev_t boot_dev;
|
dev_t boot_dev;
|
||||||
u64 ppc64_pft_size;
|
u64 ppc64_pft_size;
|
||||||
|
|
||||||
struct ppc64_caches ppc64_caches;
|
/* Pick defaults since we might want to patch instructions
|
||||||
|
* before we've read this from the device tree.
|
||||||
|
*/
|
||||||
|
struct ppc64_caches ppc64_caches = {
|
||||||
|
.dline_size = 0x80,
|
||||||
|
.log_dline_size = 7,
|
||||||
|
.iline_size = 0x80,
|
||||||
|
.log_iline_size = 7
|
||||||
|
};
|
||||||
EXPORT_SYMBOL_GPL(ppc64_caches);
|
EXPORT_SYMBOL_GPL(ppc64_caches);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -601,7 +601,7 @@ int hash_page(unsigned long ea, unsigned long access, unsigned long trap)
|
|||||||
/* Handle hugepage regions */
|
/* Handle hugepage regions */
|
||||||
if (unlikely(in_hugepage_area(mm->context, ea))) {
|
if (unlikely(in_hugepage_area(mm->context, ea))) {
|
||||||
DBG_LOW(" -> huge page !\n");
|
DBG_LOW(" -> huge page !\n");
|
||||||
return hash_huge_page(mm, access, ea, vsid, local);
|
return hash_huge_page(mm, access, ea, vsid, local, trap);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Get PTE and page size from page tables */
|
/* Get PTE and page size from page tables */
|
||||||
|
@@ -148,43 +148,63 @@ int is_aligned_hugepage_range(unsigned long addr, unsigned long len)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct slb_flush_info {
|
||||||
|
struct mm_struct *mm;
|
||||||
|
u16 newareas;
|
||||||
|
};
|
||||||
|
|
||||||
static void flush_low_segments(void *parm)
|
static void flush_low_segments(void *parm)
|
||||||
{
|
{
|
||||||
u16 areas = (unsigned long) parm;
|
struct slb_flush_info *fi = parm;
|
||||||
unsigned long i;
|
unsigned long i;
|
||||||
|
|
||||||
|
BUILD_BUG_ON((sizeof(fi->newareas)*8) != NUM_LOW_AREAS);
|
||||||
|
|
||||||
|
if (current->active_mm != fi->mm)
|
||||||
|
return;
|
||||||
|
|
||||||
|
/* Only need to do anything if this CPU is working in the same
|
||||||
|
* mm as the one which has changed */
|
||||||
|
|
||||||
|
/* update the paca copy of the context struct */
|
||||||
|
get_paca()->context = current->active_mm->context;
|
||||||
|
|
||||||
asm volatile("isync" : : : "memory");
|
asm volatile("isync" : : : "memory");
|
||||||
|
|
||||||
BUILD_BUG_ON((sizeof(areas)*8) != NUM_LOW_AREAS);
|
|
||||||
|
|
||||||
for (i = 0; i < NUM_LOW_AREAS; i++) {
|
for (i = 0; i < NUM_LOW_AREAS; i++) {
|
||||||
if (! (areas & (1U << i)))
|
if (! (fi->newareas & (1U << i)))
|
||||||
continue;
|
continue;
|
||||||
asm volatile("slbie %0"
|
asm volatile("slbie %0"
|
||||||
: : "r" ((i << SID_SHIFT) | SLBIE_C));
|
: : "r" ((i << SID_SHIFT) | SLBIE_C));
|
||||||
}
|
}
|
||||||
|
|
||||||
asm volatile("isync" : : : "memory");
|
asm volatile("isync" : : : "memory");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void flush_high_segments(void *parm)
|
static void flush_high_segments(void *parm)
|
||||||
{
|
{
|
||||||
u16 areas = (unsigned long) parm;
|
struct slb_flush_info *fi = parm;
|
||||||
unsigned long i, j;
|
unsigned long i, j;
|
||||||
|
|
||||||
|
|
||||||
|
BUILD_BUG_ON((sizeof(fi->newareas)*8) != NUM_HIGH_AREAS);
|
||||||
|
|
||||||
|
if (current->active_mm != fi->mm)
|
||||||
|
return;
|
||||||
|
|
||||||
|
/* Only need to do anything if this CPU is working in the same
|
||||||
|
* mm as the one which has changed */
|
||||||
|
|
||||||
|
/* update the paca copy of the context struct */
|
||||||
|
get_paca()->context = current->active_mm->context;
|
||||||
|
|
||||||
asm volatile("isync" : : : "memory");
|
asm volatile("isync" : : : "memory");
|
||||||
|
|
||||||
BUILD_BUG_ON((sizeof(areas)*8) != NUM_HIGH_AREAS);
|
|
||||||
|
|
||||||
for (i = 0; i < NUM_HIGH_AREAS; i++) {
|
for (i = 0; i < NUM_HIGH_AREAS; i++) {
|
||||||
if (! (areas & (1U << i)))
|
if (! (fi->newareas & (1U << i)))
|
||||||
continue;
|
continue;
|
||||||
for (j = 0; j < (1UL << (HTLB_AREA_SHIFT-SID_SHIFT)); j++)
|
for (j = 0; j < (1UL << (HTLB_AREA_SHIFT-SID_SHIFT)); j++)
|
||||||
asm volatile("slbie %0"
|
asm volatile("slbie %0"
|
||||||
:: "r" (((i << HTLB_AREA_SHIFT)
|
:: "r" (((i << HTLB_AREA_SHIFT)
|
||||||
+ (j << SID_SHIFT)) | SLBIE_C));
|
+ (j << SID_SHIFT)) | SLBIE_C));
|
||||||
}
|
}
|
||||||
|
|
||||||
asm volatile("isync" : : : "memory");
|
asm volatile("isync" : : : "memory");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -229,6 +249,7 @@ static int prepare_high_area_for_htlb(struct mm_struct *mm, unsigned long area)
|
|||||||
static int open_low_hpage_areas(struct mm_struct *mm, u16 newareas)
|
static int open_low_hpage_areas(struct mm_struct *mm, u16 newareas)
|
||||||
{
|
{
|
||||||
unsigned long i;
|
unsigned long i;
|
||||||
|
struct slb_flush_info fi;
|
||||||
|
|
||||||
BUILD_BUG_ON((sizeof(newareas)*8) != NUM_LOW_AREAS);
|
BUILD_BUG_ON((sizeof(newareas)*8) != NUM_LOW_AREAS);
|
||||||
BUILD_BUG_ON((sizeof(mm->context.low_htlb_areas)*8) != NUM_LOW_AREAS);
|
BUILD_BUG_ON((sizeof(mm->context.low_htlb_areas)*8) != NUM_LOW_AREAS);
|
||||||
@@ -244,19 +265,20 @@ static int open_low_hpage_areas(struct mm_struct *mm, u16 newareas)
|
|||||||
|
|
||||||
mm->context.low_htlb_areas |= newareas;
|
mm->context.low_htlb_areas |= newareas;
|
||||||
|
|
||||||
/* update the paca copy of the context struct */
|
|
||||||
get_paca()->context = mm->context;
|
|
||||||
|
|
||||||
/* the context change must make it to memory before the flush,
|
/* the context change must make it to memory before the flush,
|
||||||
* so that further SLB misses do the right thing. */
|
* so that further SLB misses do the right thing. */
|
||||||
mb();
|
mb();
|
||||||
on_each_cpu(flush_low_segments, (void *)(unsigned long)newareas, 0, 1);
|
|
||||||
|
fi.mm = mm;
|
||||||
|
fi.newareas = newareas;
|
||||||
|
on_each_cpu(flush_low_segments, &fi, 0, 1);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int open_high_hpage_areas(struct mm_struct *mm, u16 newareas)
|
static int open_high_hpage_areas(struct mm_struct *mm, u16 newareas)
|
||||||
{
|
{
|
||||||
|
struct slb_flush_info fi;
|
||||||
unsigned long i;
|
unsigned long i;
|
||||||
|
|
||||||
BUILD_BUG_ON((sizeof(newareas)*8) != NUM_HIGH_AREAS);
|
BUILD_BUG_ON((sizeof(newareas)*8) != NUM_HIGH_AREAS);
|
||||||
@@ -280,7 +302,10 @@ static int open_high_hpage_areas(struct mm_struct *mm, u16 newareas)
|
|||||||
/* the context change must make it to memory before the flush,
|
/* the context change must make it to memory before the flush,
|
||||||
* so that further SLB misses do the right thing. */
|
* so that further SLB misses do the right thing. */
|
||||||
mb();
|
mb();
|
||||||
on_each_cpu(flush_high_segments, (void *)(unsigned long)newareas, 0, 1);
|
|
||||||
|
fi.mm = mm;
|
||||||
|
fi.newareas = newareas;
|
||||||
|
on_each_cpu(flush_high_segments, &fi, 0, 1);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -639,8 +664,36 @@ unsigned long hugetlb_get_unmapped_area(struct file *file, unsigned long addr,
|
|||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Called by asm hashtable.S for doing lazy icache flush
|
||||||
|
*/
|
||||||
|
static unsigned int hash_huge_page_do_lazy_icache(unsigned long rflags,
|
||||||
|
pte_t pte, int trap)
|
||||||
|
{
|
||||||
|
struct page *page;
|
||||||
|
int i;
|
||||||
|
|
||||||
|
if (!pfn_valid(pte_pfn(pte)))
|
||||||
|
return rflags;
|
||||||
|
|
||||||
|
page = pte_page(pte);
|
||||||
|
|
||||||
|
/* page is dirty */
|
||||||
|
if (!test_bit(PG_arch_1, &page->flags) && !PageReserved(page)) {
|
||||||
|
if (trap == 0x400) {
|
||||||
|
for (i = 0; i < (HPAGE_SIZE / PAGE_SIZE); i++)
|
||||||
|
__flush_dcache_icache(page_address(page+i));
|
||||||
|
set_bit(PG_arch_1, &page->flags);
|
||||||
|
} else {
|
||||||
|
rflags |= HPTE_R_N;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return rflags;
|
||||||
|
}
|
||||||
|
|
||||||
int hash_huge_page(struct mm_struct *mm, unsigned long access,
|
int hash_huge_page(struct mm_struct *mm, unsigned long access,
|
||||||
unsigned long ea, unsigned long vsid, int local)
|
unsigned long ea, unsigned long vsid, int local,
|
||||||
|
unsigned long trap)
|
||||||
{
|
{
|
||||||
pte_t *ptep;
|
pte_t *ptep;
|
||||||
unsigned long old_pte, new_pte;
|
unsigned long old_pte, new_pte;
|
||||||
@@ -691,6 +744,11 @@ int hash_huge_page(struct mm_struct *mm, unsigned long access,
|
|||||||
rflags = 0x2 | (!(new_pte & _PAGE_RW));
|
rflags = 0x2 | (!(new_pte & _PAGE_RW));
|
||||||
/* _PAGE_EXEC -> HW_NO_EXEC since it's inverted */
|
/* _PAGE_EXEC -> HW_NO_EXEC since it's inverted */
|
||||||
rflags |= ((new_pte & _PAGE_EXEC) ? 0 : HPTE_R_N);
|
rflags |= ((new_pte & _PAGE_EXEC) ? 0 : HPTE_R_N);
|
||||||
|
if (!cpu_has_feature(CPU_FTR_COHERENT_ICACHE))
|
||||||
|
/* No CPU has hugepages but lacks no execute, so we
|
||||||
|
* don't need to worry about that case */
|
||||||
|
rflags = hash_huge_page_do_lazy_icache(rflags, __pte(old_pte),
|
||||||
|
trap);
|
||||||
|
|
||||||
/* Check if pte already has an hpte (case 2) */
|
/* Check if pte already has an hpte (case 2) */
|
||||||
if (unlikely(old_pte & _PAGE_HASHPTE)) {
|
if (unlikely(old_pte & _PAGE_HASHPTE)) {
|
||||||
@@ -703,7 +761,8 @@ int hash_huge_page(struct mm_struct *mm, unsigned long access,
|
|||||||
slot = (hash & htab_hash_mask) * HPTES_PER_GROUP;
|
slot = (hash & htab_hash_mask) * HPTES_PER_GROUP;
|
||||||
slot += (old_pte & _PAGE_F_GIX) >> 12;
|
slot += (old_pte & _PAGE_F_GIX) >> 12;
|
||||||
|
|
||||||
if (ppc_md.hpte_updatepp(slot, rflags, va, 1, local) == -1)
|
if (ppc_md.hpte_updatepp(slot, rflags, va, mmu_huge_psize,
|
||||||
|
local) == -1)
|
||||||
old_pte &= ~_PAGE_HPTEFLAGS;
|
old_pte &= ~_PAGE_HPTEFLAGS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -125,7 +125,7 @@ void __init get_region(unsigned int nid, unsigned long *start_pfn,
|
|||||||
|
|
||||||
/* We didnt find a matching region, return start/end as 0 */
|
/* We didnt find a matching region, return start/end as 0 */
|
||||||
if (*start_pfn == -1UL)
|
if (*start_pfn == -1UL)
|
||||||
start_pfn = 0;
|
*start_pfn = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void map_cpu_to_node(int cpu, int node)
|
static inline void map_cpu_to_node(int cpu, int node)
|
||||||
|
@@ -288,11 +288,6 @@ void stab_initialize(unsigned long stab)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_PPC_ISERIES */
|
#endif /* CONFIG_PPC_ISERIES */
|
||||||
#ifdef CONFIG_PPC_PSERIES
|
|
||||||
if (platform_is_lpar()) {
|
|
||||||
plpar_hcall_norets(H_SET_ASR, stabreal);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
mtspr(SPRN_ASR, stabreal);
|
mtspr(SPRN_ASR, stabreal);
|
||||||
}
|
}
|
||||||
|
@@ -1650,12 +1650,20 @@ void pmac_tweak_clock_spreading(int enable)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
if (macio->type == macio_intrepid) {
|
if (macio->type == macio_intrepid) {
|
||||||
|
struct device_node *clock =
|
||||||
|
of_find_node_by_path("/uni-n@f8000000/hw-clock");
|
||||||
|
if (clock && get_property(clock, "platform-do-clockspreading",
|
||||||
|
NULL)) {
|
||||||
|
printk(KERN_INFO "%sabling clock spreading on Intrepid"
|
||||||
|
" ASIC\n", enable ? "En" : "Dis");
|
||||||
if (enable)
|
if (enable)
|
||||||
UN_OUT(UNI_N_CLOCK_SPREADING, 2);
|
UN_OUT(UNI_N_CLOCK_SPREADING, 2);
|
||||||
else
|
else
|
||||||
UN_OUT(UNI_N_CLOCK_SPREADING, 0);
|
UN_OUT(UNI_N_CLOCK_SPREADING, 0);
|
||||||
mdelay(40);
|
mdelay(40);
|
||||||
}
|
}
|
||||||
|
of_node_put(clock);
|
||||||
|
}
|
||||||
|
|
||||||
while (machine_is_compatible("PowerBook5,2") ||
|
while (machine_is_compatible("PowerBook5,2") ||
|
||||||
machine_is_compatible("PowerBook5,3") ||
|
machine_is_compatible("PowerBook5,3") ||
|
||||||
@@ -1724,6 +1732,9 @@ void pmac_tweak_clock_spreading(int enable)
|
|||||||
pmac_low_i2c_close(ui2c);
|
pmac_low_i2c_close(ui2c);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
printk(KERN_INFO "%sabling clock spreading on i2c clock chip\n",
|
||||||
|
enable ? "En" : "Dis");
|
||||||
|
|
||||||
pmac_low_i2c_setmode(ui2c, pmac_low_i2c_mode_stdsub);
|
pmac_low_i2c_setmode(ui2c, pmac_low_i2c_mode_stdsub);
|
||||||
rc = pmac_low_i2c_xfer(ui2c, 0xd2 | pmac_low_i2c_write, 0x80, buffer, 9);
|
rc = pmac_low_i2c_xfer(ui2c, 0xd2 | pmac_low_i2c_write, 0x80, buffer, 9);
|
||||||
DBG("write result: %d,", rc);
|
DBG("write result: %d,", rc);
|
||||||
|
@@ -109,6 +109,9 @@ static void tce_build_pSeriesLP(struct iommu_table *tbl, long tcenum,
|
|||||||
u64 rc;
|
u64 rc;
|
||||||
union tce_entry tce;
|
union tce_entry tce;
|
||||||
|
|
||||||
|
tcenum <<= TCE_PAGE_FACTOR;
|
||||||
|
npages <<= TCE_PAGE_FACTOR;
|
||||||
|
|
||||||
tce.te_word = 0;
|
tce.te_word = 0;
|
||||||
tce.te_rpn = (virt_to_abs(uaddr)) >> TCE_SHIFT;
|
tce.te_rpn = (virt_to_abs(uaddr)) >> TCE_SHIFT;
|
||||||
tce.te_rdwr = 1;
|
tce.te_rdwr = 1;
|
||||||
@@ -143,10 +146,7 @@ static void tce_buildmulti_pSeriesLP(struct iommu_table *tbl, long tcenum,
|
|||||||
union tce_entry tce, *tcep;
|
union tce_entry tce, *tcep;
|
||||||
long l, limit;
|
long l, limit;
|
||||||
|
|
||||||
tcenum <<= TCE_PAGE_FACTOR;
|
if (TCE_PAGE_FACTOR == 0 && npages == 1)
|
||||||
npages <<= TCE_PAGE_FACTOR;
|
|
||||||
|
|
||||||
if (npages == 1)
|
|
||||||
return tce_build_pSeriesLP(tbl, tcenum, npages, uaddr,
|
return tce_build_pSeriesLP(tbl, tcenum, npages, uaddr,
|
||||||
direction);
|
direction);
|
||||||
|
|
||||||
@@ -164,6 +164,9 @@ static void tce_buildmulti_pSeriesLP(struct iommu_table *tbl, long tcenum,
|
|||||||
__get_cpu_var(tce_page) = tcep;
|
__get_cpu_var(tce_page) = tcep;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tcenum <<= TCE_PAGE_FACTOR;
|
||||||
|
npages <<= TCE_PAGE_FACTOR;
|
||||||
|
|
||||||
tce.te_word = 0;
|
tce.te_word = 0;
|
||||||
tce.te_rpn = (virt_to_abs(uaddr)) >> TCE_SHIFT;
|
tce.te_rpn = (virt_to_abs(uaddr)) >> TCE_SHIFT;
|
||||||
tce.te_rdwr = 1;
|
tce.te_rdwr = 1;
|
||||||
|
@@ -298,18 +298,6 @@ long pSeries_lpar_hpte_insert(unsigned long hpte_group,
|
|||||||
if (!(vflags & HPTE_V_BOLTED))
|
if (!(vflags & HPTE_V_BOLTED))
|
||||||
DBG_LOW(" hpte_v=%016lx, hpte_r=%016lx\n", hpte_v, hpte_r);
|
DBG_LOW(" hpte_v=%016lx, hpte_r=%016lx\n", hpte_v, hpte_r);
|
||||||
|
|
||||||
#if 1
|
|
||||||
{
|
|
||||||
int i;
|
|
||||||
for (i=0;i<8;i++) {
|
|
||||||
unsigned long w0, w1;
|
|
||||||
plpar_pte_read(0, hpte_group, &w0, &w1);
|
|
||||||
BUG_ON (HPTE_V_COMPARE(hpte_v, w0)
|
|
||||||
&& (w0 & HPTE_V_VALID));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Now fill in the actual HPTE */
|
/* Now fill in the actual HPTE */
|
||||||
/* Set CEC cookie to 0 */
|
/* Set CEC cookie to 0 */
|
||||||
/* Zero page = 0 */
|
/* Zero page = 0 */
|
||||||
|
@@ -767,14 +767,14 @@ config CPM2
|
|||||||
on it (826x, 827x, 8560).
|
on it (826x, 827x, 8560).
|
||||||
|
|
||||||
config PPC_CHRP
|
config PPC_CHRP
|
||||||
bool " Common Hardware Reference Platform (CHRP) based machines"
|
bool
|
||||||
depends on PPC_MULTIPLATFORM
|
depends on PPC_MULTIPLATFORM
|
||||||
select PPC_I8259
|
select PPC_I8259
|
||||||
select PPC_INDIRECT_PCI
|
select PPC_INDIRECT_PCI
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config PPC_PMAC
|
config PPC_PMAC
|
||||||
bool " Apple PowerMac based machines"
|
bool
|
||||||
depends on PPC_MULTIPLATFORM
|
depends on PPC_MULTIPLATFORM
|
||||||
select PPC_INDIRECT_PCI
|
select PPC_INDIRECT_PCI
|
||||||
default y
|
default y
|
||||||
@@ -785,7 +785,7 @@ config PPC_PMAC64
|
|||||||
default y
|
default y
|
||||||
|
|
||||||
config PPC_PREP
|
config PPC_PREP
|
||||||
bool " PowerPC Reference Platform (PReP) based machines"
|
bool
|
||||||
depends on PPC_MULTIPLATFORM
|
depends on PPC_MULTIPLATFORM
|
||||||
select PPC_I8259
|
select PPC_I8259
|
||||||
select PPC_INDIRECT_PCI
|
select PPC_INDIRECT_PCI
|
||||||
|
@@ -301,6 +301,10 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
|
|||||||
|
|
||||||
/* Probe platform for CPUs: always linear. */
|
/* Probe platform for CPUs: always linear. */
|
||||||
num_cpus = smp_ops->probe();
|
num_cpus = smp_ops->probe();
|
||||||
|
|
||||||
|
if (num_cpus < 2)
|
||||||
|
smp_tb_synchronized = 1;
|
||||||
|
|
||||||
for (i = 0; i < num_cpus; ++i)
|
for (i = 0; i < num_cpus; ++i)
|
||||||
cpu_set(i, cpu_possible_map);
|
cpu_set(i, cpu_possible_map);
|
||||||
|
|
||||||
|
@@ -1606,12 +1606,20 @@ void pmac_tweak_clock_spreading(int enable)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
if (macio->type == macio_intrepid) {
|
if (macio->type == macio_intrepid) {
|
||||||
|
struct device_node *clock =
|
||||||
|
of_find_node_by_path("/uni-n@f8000000/hw-clock");
|
||||||
|
if (clock && get_property(clock, "platform-do-clockspreading",
|
||||||
|
NULL)) {
|
||||||
|
printk(KERN_INFO "%sabling clock spreading on Intrepid"
|
||||||
|
" ASIC\n", enable ? "En" : "Dis");
|
||||||
if (enable)
|
if (enable)
|
||||||
UN_OUT(UNI_N_CLOCK_SPREADING, 2);
|
UN_OUT(UNI_N_CLOCK_SPREADING, 2);
|
||||||
else
|
else
|
||||||
UN_OUT(UNI_N_CLOCK_SPREADING, 0);
|
UN_OUT(UNI_N_CLOCK_SPREADING, 0);
|
||||||
mdelay(40);
|
mdelay(40);
|
||||||
}
|
}
|
||||||
|
of_node_put(clock);
|
||||||
|
}
|
||||||
|
|
||||||
while (machine_is_compatible("PowerBook5,2") ||
|
while (machine_is_compatible("PowerBook5,2") ||
|
||||||
machine_is_compatible("PowerBook5,3") ||
|
machine_is_compatible("PowerBook5,3") ||
|
||||||
@@ -1680,6 +1688,8 @@ void pmac_tweak_clock_spreading(int enable)
|
|||||||
pmac_low_i2c_close(ui2c);
|
pmac_low_i2c_close(ui2c);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
printk(KERN_INFO "%sabling clock spreading on i2c clock chip\n",
|
||||||
|
enable ? "En" : "Dis");
|
||||||
pmac_low_i2c_setmode(ui2c, pmac_low_i2c_mode_stdsub);
|
pmac_low_i2c_setmode(ui2c, pmac_low_i2c_mode_stdsub);
|
||||||
rc = pmac_low_i2c_xfer(ui2c, 0xd2 | pmac_low_i2c_write, 0x80, buffer, 9);
|
rc = pmac_low_i2c_xfer(ui2c, 0xd2 | pmac_low_i2c_write, 0x80, buffer, 9);
|
||||||
DBG("write result: %d,", rc);
|
DBG("write result: %d,", rc);
|
||||||
|
@@ -34,7 +34,7 @@ libs-y += arch/sparc/prom/ arch/sparc/lib/
|
|||||||
# Renaming is done to avoid confusing pattern matching rules in 2.5.45 (multy-)
|
# Renaming is done to avoid confusing pattern matching rules in 2.5.45 (multy-)
|
||||||
INIT_Y := $(patsubst %/, %/built-in.o, $(init-y))
|
INIT_Y := $(patsubst %/, %/built-in.o, $(init-y))
|
||||||
CORE_Y := $(core-y)
|
CORE_Y := $(core-y)
|
||||||
CORE_Y += kernel/ mm/ fs/ ipc/ security/ crypto/
|
CORE_Y += kernel/ mm/ fs/ ipc/ security/ crypto/ block/
|
||||||
CORE_Y := $(patsubst %/, %/built-in.o, $(CORE_Y))
|
CORE_Y := $(patsubst %/, %/built-in.o, $(CORE_Y))
|
||||||
DRIVERS_Y := $(patsubst %/, %/built-in.o, $(drivers-y))
|
DRIVERS_Y := $(patsubst %/, %/built-in.o, $(drivers-y))
|
||||||
NET_Y := $(patsubst %/, %/built-in.o, $(net-y))
|
NET_Y := $(patsubst %/, %/built-in.o, $(net-y))
|
||||||
|
@@ -66,7 +66,6 @@ int atomic_add_unless(atomic_t *v, int a, int u)
|
|||||||
return ret != u;
|
return ret != u;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void atomic_clear_mask(unsigned long mask, unsigned long *addr)
|
|
||||||
/* Atomic operations are already serializing */
|
/* Atomic operations are already serializing */
|
||||||
void atomic_set(atomic_t *v, int i)
|
void atomic_set(atomic_t *v, int i)
|
||||||
{
|
{
|
||||||
|
@@ -138,7 +138,7 @@ static int __kprobes kprobe_handler(struct pt_regs *regs)
|
|||||||
*/
|
*/
|
||||||
save_previous_kprobe(kcb);
|
save_previous_kprobe(kcb);
|
||||||
set_current_kprobe(p, regs, kcb);
|
set_current_kprobe(p, regs, kcb);
|
||||||
p->nmissed++;
|
kprobes_inc_nmissed_count(p);
|
||||||
kcb->kprobe_status = KPROBE_REENTER;
|
kcb->kprobe_status = KPROBE_REENTER;
|
||||||
prepare_singlestep(p, regs, kcb);
|
prepare_singlestep(p, regs, kcb);
|
||||||
return 1;
|
return 1;
|
||||||
|
@@ -17,6 +17,8 @@
|
|||||||
#include "uaccess-skas.h"
|
#include "uaccess-skas.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "asm/fixmap.h"
|
||||||
|
|
||||||
#define __under_task_size(addr, size) \
|
#define __under_task_size(addr, size) \
|
||||||
(((unsigned long) (addr) < TASK_SIZE) && \
|
(((unsigned long) (addr) < TASK_SIZE) && \
|
||||||
(((unsigned long) (addr) + (size)) < TASK_SIZE))
|
(((unsigned long) (addr) + (size)) < TASK_SIZE))
|
||||||
|
@@ -7,7 +7,6 @@
|
|||||||
#define __SKAS_UACCESS_H
|
#define __SKAS_UACCESS_H
|
||||||
|
|
||||||
#include "asm/errno.h"
|
#include "asm/errno.h"
|
||||||
#include "asm/fixmap.h"
|
|
||||||
|
|
||||||
/* No SKAS-specific checking. */
|
/* No SKAS-specific checking. */
|
||||||
#define access_ok_skas(type, addr, size) 0
|
#define access_ok_skas(type, addr, size) 0
|
||||||
|
@@ -217,8 +217,7 @@ elf_core_copy_task_fpregs(struct task_struct *tsk, struct pt_regs *regs, elf_fpr
|
|||||||
if (!tsk_used_math(tsk))
|
if (!tsk_used_math(tsk))
|
||||||
return 0;
|
return 0;
|
||||||
if (!regs)
|
if (!regs)
|
||||||
regs = (struct pt_regs *)tsk->thread.rsp0;
|
regs = ((struct pt_regs *)tsk->thread.rsp0) - 1;
|
||||||
--regs;
|
|
||||||
if (tsk == current)
|
if (tsk == current)
|
||||||
unlazy_fpu(tsk);
|
unlazy_fpu(tsk);
|
||||||
set_fs(KERNEL_DS);
|
set_fs(KERNEL_DS);
|
||||||
|
@@ -329,7 +329,7 @@ int __kprobes kprobe_handler(struct pt_regs *regs)
|
|||||||
*/
|
*/
|
||||||
save_previous_kprobe(kcb);
|
save_previous_kprobe(kcb);
|
||||||
set_current_kprobe(p, regs, kcb);
|
set_current_kprobe(p, regs, kcb);
|
||||||
p->nmissed++;
|
kprobes_inc_nmissed_count(p);
|
||||||
prepare_singlestep(p, regs);
|
prepare_singlestep(p, regs);
|
||||||
kcb->kprobe_status = KPROBE_REENTER;
|
kcb->kprobe_status = KPROBE_REENTER;
|
||||||
return 1;
|
return 1;
|
||||||
|
@@ -1181,7 +1181,7 @@ int __cpu_disable(void)
|
|||||||
if (cpu == 0)
|
if (cpu == 0)
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
|
||||||
disable_APIC_timer();
|
clear_local_APIC();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* HACK:
|
* HACK:
|
||||||
|
@@ -59,7 +59,7 @@ static int notsc __initdata = 0;
|
|||||||
unsigned int cpu_khz; /* TSC clocks / usec, not used here */
|
unsigned int cpu_khz; /* TSC clocks / usec, not used here */
|
||||||
static unsigned long hpet_period; /* fsecs / HPET clock */
|
static unsigned long hpet_period; /* fsecs / HPET clock */
|
||||||
unsigned long hpet_tick; /* HPET clocks / interrupt */
|
unsigned long hpet_tick; /* HPET clocks / interrupt */
|
||||||
static int hpet_use_timer;
|
static int hpet_use_timer; /* Use counter of hpet for time keeping, otherwise PIT */
|
||||||
unsigned long vxtime_hz = PIT_TICK_RATE;
|
unsigned long vxtime_hz = PIT_TICK_RATE;
|
||||||
int report_lost_ticks; /* command line option */
|
int report_lost_ticks; /* command line option */
|
||||||
unsigned long long monotonic_base;
|
unsigned long long monotonic_base;
|
||||||
@@ -908,12 +908,14 @@ void __init time_init(void)
|
|||||||
if (!hpet_init())
|
if (!hpet_init())
|
||||||
vxtime_hz = (1000000000000000L + hpet_period / 2) /
|
vxtime_hz = (1000000000000000L + hpet_period / 2) /
|
||||||
hpet_period;
|
hpet_period;
|
||||||
|
else
|
||||||
|
vxtime.hpet_address = 0;
|
||||||
|
|
||||||
if (hpet_use_timer) {
|
if (hpet_use_timer) {
|
||||||
cpu_khz = hpet_calibrate_tsc();
|
cpu_khz = hpet_calibrate_tsc();
|
||||||
timename = "HPET";
|
timename = "HPET";
|
||||||
#ifdef CONFIG_X86_PM_TIMER
|
#ifdef CONFIG_X86_PM_TIMER
|
||||||
} else if (pmtmr_ioport) {
|
} else if (pmtmr_ioport && !vxtime.hpet_address) {
|
||||||
vxtime_hz = PM_TIMER_FREQUENCY;
|
vxtime_hz = PM_TIMER_FREQUENCY;
|
||||||
timename = "PM";
|
timename = "PM";
|
||||||
pit_init();
|
pit_init();
|
||||||
|
@@ -247,9 +247,15 @@ void __iomem *ioremap_nocache (unsigned long phys_addr, unsigned long size)
|
|||||||
return __ioremap(phys_addr, size, _PAGE_PCD);
|
return __ioremap(phys_addr, size, _PAGE_PCD);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* iounmap - Free a IO remapping
|
||||||
|
* @addr: virtual address from ioremap_*
|
||||||
|
*
|
||||||
|
* Caller must ensure there is only one unmapping for the same pointer.
|
||||||
|
*/
|
||||||
void iounmap(volatile void __iomem *addr)
|
void iounmap(volatile void __iomem *addr)
|
||||||
{
|
{
|
||||||
struct vm_struct *p;
|
struct vm_struct *p, *o;
|
||||||
|
|
||||||
if (addr <= high_memory)
|
if (addr <= high_memory)
|
||||||
return;
|
return;
|
||||||
@@ -257,12 +263,31 @@ void iounmap(volatile void __iomem *addr)
|
|||||||
addr < phys_to_virt(ISA_END_ADDRESS))
|
addr < phys_to_virt(ISA_END_ADDRESS))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
write_lock(&vmlist_lock);
|
addr = (volatile void *)(PAGE_MASK & (unsigned long __force)addr);
|
||||||
p = __remove_vm_area((void *)((unsigned long)addr & PAGE_MASK));
|
/* Use the vm area unlocked, assuming the caller
|
||||||
if (!p)
|
ensures there isn't another iounmap for the same address
|
||||||
|
in parallel. Reuse of the virtual address is prevented by
|
||||||
|
leaving it in the global lists until we're done with it.
|
||||||
|
cpa takes care of the direct mappings. */
|
||||||
|
read_lock(&vmlist_lock);
|
||||||
|
for (p = vmlist; p; p = p->next) {
|
||||||
|
if (p->addr == addr)
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
read_unlock(&vmlist_lock);
|
||||||
|
|
||||||
|
if (!p) {
|
||||||
printk("iounmap: bad address %p\n", addr);
|
printk("iounmap: bad address %p\n", addr);
|
||||||
else if (p->flags >> 20)
|
dump_stack();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Reset the direct mapping. Can block */
|
||||||
|
if (p->flags >> 20)
|
||||||
ioremap_change_attr(p->phys_addr, p->size, 0);
|
ioremap_change_attr(p->phys_addr, p->size, 0);
|
||||||
write_unlock(&vmlist_lock);
|
|
||||||
|
/* Finally remove it */
|
||||||
|
o = remove_vm_area((void *)addr);
|
||||||
|
BUG_ON(p != o || o == NULL);
|
||||||
kfree(p);
|
kfree(p);
|
||||||
}
|
}
|
||||||
|
@@ -53,6 +53,8 @@ static int __init populate_memnodemap(
|
|||||||
int res = -1;
|
int res = -1;
|
||||||
unsigned long addr, end;
|
unsigned long addr, end;
|
||||||
|
|
||||||
|
if (shift >= 64)
|
||||||
|
return -1;
|
||||||
memset(memnodemap, 0xff, sizeof(memnodemap));
|
memset(memnodemap, 0xff, sizeof(memnodemap));
|
||||||
for (i = 0; i < numnodes; i++) {
|
for (i = 0; i < numnodes; i++) {
|
||||||
addr = nodes[i].start;
|
addr = nodes[i].start;
|
||||||
@@ -65,7 +67,7 @@ static int __init populate_memnodemap(
|
|||||||
if (memnodemap[addr >> shift] != 0xff)
|
if (memnodemap[addr >> shift] != 0xff)
|
||||||
return -1;
|
return -1;
|
||||||
memnodemap[addr >> shift] = i;
|
memnodemap[addr >> shift] = i;
|
||||||
addr += (1 << shift);
|
addr += (1UL << shift);
|
||||||
} while (addr < end);
|
} while (addr < end);
|
||||||
res = 1;
|
res = 1;
|
||||||
}
|
}
|
||||||
|
@@ -8,10 +8,13 @@
|
|||||||
#include <linux/pci.h>
|
#include <linux/pci.h>
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/acpi.h>
|
#include <linux/acpi.h>
|
||||||
|
#include <linux/bitmap.h>
|
||||||
#include "pci.h"
|
#include "pci.h"
|
||||||
|
|
||||||
#define MMCONFIG_APER_SIZE (256*1024*1024)
|
#define MMCONFIG_APER_SIZE (256*1024*1024)
|
||||||
|
|
||||||
|
static DECLARE_BITMAP(fallback_slots, 32);
|
||||||
|
|
||||||
/* Static virtual mapping of the MMCONFIG aperture */
|
/* Static virtual mapping of the MMCONFIG aperture */
|
||||||
struct mmcfg_virt {
|
struct mmcfg_virt {
|
||||||
struct acpi_table_mcfg_config *cfg;
|
struct acpi_table_mcfg_config *cfg;
|
||||||
@@ -19,7 +22,7 @@ struct mmcfg_virt {
|
|||||||
};
|
};
|
||||||
static struct mmcfg_virt *pci_mmcfg_virt;
|
static struct mmcfg_virt *pci_mmcfg_virt;
|
||||||
|
|
||||||
static char *get_virt(unsigned int seg, int bus)
|
static char *get_virt(unsigned int seg, unsigned bus)
|
||||||
{
|
{
|
||||||
int cfg_num = -1;
|
int cfg_num = -1;
|
||||||
struct acpi_table_mcfg_config *cfg;
|
struct acpi_table_mcfg_config *cfg;
|
||||||
@@ -27,10 +30,9 @@ static char *get_virt(unsigned int seg, int bus)
|
|||||||
while (1) {
|
while (1) {
|
||||||
++cfg_num;
|
++cfg_num;
|
||||||
if (cfg_num >= pci_mmcfg_config_num) {
|
if (cfg_num >= pci_mmcfg_config_num) {
|
||||||
/* something bad is going on, no cfg table is found. */
|
/* Not found - fall back to type 1. This happens
|
||||||
/* so we fall back to the old way we used to do this */
|
e.g. on the internal devices of a K8 northbridge. */
|
||||||
/* and just rely on the first entry to be correct. */
|
return NULL;
|
||||||
return pci_mmcfg_virt[0].virt;
|
|
||||||
}
|
}
|
||||||
cfg = pci_mmcfg_virt[cfg_num].cfg;
|
cfg = pci_mmcfg_virt[cfg_num].cfg;
|
||||||
if (cfg->pci_segment_group_number != seg)
|
if (cfg->pci_segment_group_number != seg)
|
||||||
@@ -41,20 +43,30 @@ static char *get_virt(unsigned int seg, int bus)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline char *pci_dev_base(unsigned int seg, unsigned int bus, unsigned int devfn)
|
static char *pci_dev_base(unsigned int seg, unsigned int bus, unsigned int devfn)
|
||||||
{
|
{
|
||||||
|
char *addr;
|
||||||
return get_virt(seg, bus) + ((bus << 20) | (devfn << 12));
|
if (seg == 0 && bus == 0 && test_bit(PCI_SLOT(devfn), &fallback_slots))
|
||||||
|
return NULL;
|
||||||
|
addr = get_virt(seg, bus);
|
||||||
|
if (!addr)
|
||||||
|
return NULL;
|
||||||
|
return addr + ((bus << 20) | (devfn << 12));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int pci_mmcfg_read(unsigned int seg, unsigned int bus,
|
static int pci_mmcfg_read(unsigned int seg, unsigned int bus,
|
||||||
unsigned int devfn, int reg, int len, u32 *value)
|
unsigned int devfn, int reg, int len, u32 *value)
|
||||||
{
|
{
|
||||||
char *addr = pci_dev_base(seg, bus, devfn);
|
char *addr;
|
||||||
|
|
||||||
|
/* Why do we have this when nobody checks it. How about a BUG()!? -AK */
|
||||||
if (unlikely(!value || (bus > 255) || (devfn > 255) || (reg > 4095)))
|
if (unlikely(!value || (bus > 255) || (devfn > 255) || (reg > 4095)))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
addr = pci_dev_base(seg, bus, devfn);
|
||||||
|
if (!addr)
|
||||||
|
return pci_conf1_read(seg,bus,devfn,reg,len,value);
|
||||||
|
|
||||||
switch (len) {
|
switch (len) {
|
||||||
case 1:
|
case 1:
|
||||||
*value = readb(addr + reg);
|
*value = readb(addr + reg);
|
||||||
@@ -73,11 +85,16 @@ static int pci_mmcfg_read(unsigned int seg, unsigned int bus,
|
|||||||
static int pci_mmcfg_write(unsigned int seg, unsigned int bus,
|
static int pci_mmcfg_write(unsigned int seg, unsigned int bus,
|
||||||
unsigned int devfn, int reg, int len, u32 value)
|
unsigned int devfn, int reg, int len, u32 value)
|
||||||
{
|
{
|
||||||
char *addr = pci_dev_base(seg, bus, devfn);
|
char *addr;
|
||||||
|
|
||||||
|
/* Why do we have this when nobody checks it. How about a BUG()!? -AK */
|
||||||
if (unlikely((bus > 255) || (devfn > 255) || (reg > 4095)))
|
if (unlikely((bus > 255) || (devfn > 255) || (reg > 4095)))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
addr = pci_dev_base(seg, bus, devfn);
|
||||||
|
if (!addr)
|
||||||
|
return pci_conf1_write(seg,bus,devfn,reg,len,value);
|
||||||
|
|
||||||
switch (len) {
|
switch (len) {
|
||||||
case 1:
|
case 1:
|
||||||
writeb(value, addr + reg);
|
writeb(value, addr + reg);
|
||||||
@@ -98,6 +115,30 @@ static struct pci_raw_ops pci_mmcfg = {
|
|||||||
.write = pci_mmcfg_write,
|
.write = pci_mmcfg_write,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* K8 systems have some devices (typically in the builtin northbridge)
|
||||||
|
that are only accessible using type1
|
||||||
|
Normally this can be expressed in the MCFG by not listing them
|
||||||
|
and assigning suitable _SEGs, but this isn't implemented in some BIOS.
|
||||||
|
Instead try to discover all devices on bus 0 that are unreachable using MM
|
||||||
|
and fallback for them.
|
||||||
|
We only do this for bus 0/seg 0 */
|
||||||
|
static __init void unreachable_devices(void)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
for (i = 0; i < 32; i++) {
|
||||||
|
u32 val1;
|
||||||
|
char *addr;
|
||||||
|
|
||||||
|
pci_conf1_read(0, 0, PCI_DEVFN(i,0), 0, 4, &val1);
|
||||||
|
if (val1 == 0xffffffff)
|
||||||
|
continue;
|
||||||
|
addr = pci_dev_base(0, 0, PCI_DEVFN(i, 0));
|
||||||
|
if (addr == NULL|| readl(addr) != val1) {
|
||||||
|
set_bit(i, &fallback_slots);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static int __init pci_mmcfg_init(void)
|
static int __init pci_mmcfg_init(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
@@ -128,6 +169,8 @@ static int __init pci_mmcfg_init(void)
|
|||||||
printk(KERN_INFO "PCI: Using MMCONFIG at %x\n", pci_mmcfg_config[i].base_address);
|
printk(KERN_INFO "PCI: Using MMCONFIG at %x\n", pci_mmcfg_config[i].base_address);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unreachable_devices();
|
||||||
|
|
||||||
raw_pci_ops = &pci_mmcfg;
|
raw_pci_ops = &pci_mmcfg;
|
||||||
pci_probe = (pci_probe & ~PCI_PROBE_MASK) | PCI_PROBE_MMCONF;
|
pci_probe = (pci_probe & ~PCI_PROBE_MASK) | PCI_PROBE_MMCONF;
|
||||||
|
|
||||||
|
@@ -316,7 +316,7 @@ static int acpi_pci_link_set(struct acpi_pci_link *link, int irq)
|
|||||||
if (!link || !irq)
|
if (!link || !irq)
|
||||||
return_VALUE(-EINVAL);
|
return_VALUE(-EINVAL);
|
||||||
|
|
||||||
resource = kmalloc(sizeof(*resource) + 1, GFP_KERNEL);
|
resource = kmalloc(sizeof(*resource) + 1, GFP_ATOMIC);
|
||||||
if (!resource)
|
if (!resource)
|
||||||
return_VALUE(-ENOMEM);
|
return_VALUE(-ENOMEM);
|
||||||
|
|
||||||
|
@@ -1146,7 +1146,6 @@ static int revalidate_allvol(ctlr_info_t *host)
|
|||||||
del_gendisk(disk);
|
del_gendisk(disk);
|
||||||
if (q)
|
if (q)
|
||||||
blk_cleanup_queue(q);
|
blk_cleanup_queue(q);
|
||||||
put_disk(disk);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1465,9 +1464,10 @@ static int deregister_disk(struct gendisk *disk, drive_info_struct *drv,
|
|||||||
request_queue_t *q = disk->queue;
|
request_queue_t *q = disk->queue;
|
||||||
if (disk->flags & GENHD_FL_UP)
|
if (disk->flags & GENHD_FL_UP)
|
||||||
del_gendisk(disk);
|
del_gendisk(disk);
|
||||||
if (q)
|
if (q) {
|
||||||
blk_cleanup_queue(q);
|
blk_cleanup_queue(q);
|
||||||
put_disk(disk);
|
drv->queue = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3243,7 +3243,6 @@ static void __devexit cciss_remove_one (struct pci_dev *pdev)
|
|||||||
del_gendisk(disk);
|
del_gendisk(disk);
|
||||||
if (q)
|
if (q)
|
||||||
blk_cleanup_queue(q);
|
blk_cleanup_queue(q);
|
||||||
put_disk(disk);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -943,6 +943,15 @@ config RAW_DRIVER
|
|||||||
Applications should simply open the device (eg /dev/hda1)
|
Applications should simply open the device (eg /dev/hda1)
|
||||||
with the O_DIRECT flag.
|
with the O_DIRECT flag.
|
||||||
|
|
||||||
|
config MAX_RAW_DEVS
|
||||||
|
int "Maximum number of RAW devices to support (1-8192)"
|
||||||
|
depends on RAW_DRIVER
|
||||||
|
default "256"
|
||||||
|
help
|
||||||
|
The maximum number of RAW devices that are supported.
|
||||||
|
Default is 256. Increase this number in case you need lots of
|
||||||
|
raw devices.
|
||||||
|
|
||||||
config HPET
|
config HPET
|
||||||
bool "HPET - High Precision Event Timer" if (X86 || IA64)
|
bool "HPET - High Precision Event Timer" if (X86 || IA64)
|
||||||
default n
|
default n
|
||||||
@@ -974,15 +983,6 @@ config HPET_MMAP
|
|||||||
exposed to the user. If this applies to your hardware,
|
exposed to the user. If this applies to your hardware,
|
||||||
say N here.
|
say N here.
|
||||||
|
|
||||||
config MAX_RAW_DEVS
|
|
||||||
int "Maximum number of RAW devices to support (1-8192)"
|
|
||||||
depends on RAW_DRIVER
|
|
||||||
default "256"
|
|
||||||
help
|
|
||||||
The maximum number of RAW devices that are supported.
|
|
||||||
Default is 256. Increase this number in case you need lots of
|
|
||||||
raw devices.
|
|
||||||
|
|
||||||
config HANGCHECK_TIMER
|
config HANGCHECK_TIMER
|
||||||
tristate "Hangcheck timer"
|
tristate "Hangcheck timer"
|
||||||
depends on X86 || IA64 || PPC64 || ARCH_S390
|
depends on X86 || IA64 || PPC64 || ARCH_S390
|
||||||
|
@@ -1522,7 +1522,7 @@ static int radeon_do_init_cp(drm_device_t * dev, drm_radeon_init_t * init)
|
|||||||
|
|
||||||
dev_priv->gart_size = init->gart_size;
|
dev_priv->gart_size = init->gart_size;
|
||||||
dev_priv->gart_vm_start = dev_priv->fb_location
|
dev_priv->gart_vm_start = dev_priv->fb_location
|
||||||
+ RADEON_READ(RADEON_CONFIG_APER_SIZE);
|
+ RADEON_READ(RADEON_CONFIG_APER_SIZE) * 2;
|
||||||
|
|
||||||
#if __OS_HAS_AGP
|
#if __OS_HAS_AGP
|
||||||
if (!dev_priv->is_pci)
|
if (!dev_priv->is_pci)
|
||||||
|
@@ -2986,7 +2986,7 @@ static void send_panic_events(char *str)
|
|||||||
msg.cmd = 2; /* Platform event command. */
|
msg.cmd = 2; /* Platform event command. */
|
||||||
msg.data = data;
|
msg.data = data;
|
||||||
msg.data_len = 8;
|
msg.data_len = 8;
|
||||||
data[0] = 0x21; /* Kernel generator ID, IPMI table 5-4 */
|
data[0] = 0x41; /* Kernel generator ID, IPMI table 5-4 */
|
||||||
data[1] = 0x03; /* This is for IPMI 1.0. */
|
data[1] = 0x03; /* This is for IPMI 1.0. */
|
||||||
data[2] = 0x20; /* OS Critical Stop, IPMI table 36-3 */
|
data[2] = 0x20; /* OS Critical Stop, IPMI table 36-3 */
|
||||||
data[4] = 0x6f; /* Sensor specific, IPMI table 36-1 */
|
data[4] = 0x6f; /* Sensor specific, IPMI table 36-1 */
|
||||||
|
@@ -180,10 +180,6 @@ static ssize_t mpcore_wdt_write(struct file *file, const char *data, size_t len,
|
|||||||
{
|
{
|
||||||
struct mpcore_wdt *wdt = file->private_data;
|
struct mpcore_wdt *wdt = file->private_data;
|
||||||
|
|
||||||
/* Can't seek (pwrite) on this device */
|
|
||||||
if (ppos != &file->f_pos)
|
|
||||||
return -ESPIPE;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Refresh the timer.
|
* Refresh the timer.
|
||||||
*/
|
*/
|
||||||
|
@@ -56,6 +56,7 @@ void proc_fork_connector(struct task_struct *task)
|
|||||||
msg = (struct cn_msg*)buffer;
|
msg = (struct cn_msg*)buffer;
|
||||||
ev = (struct proc_event*)msg->data;
|
ev = (struct proc_event*)msg->data;
|
||||||
get_seq(&msg->seq, &ev->cpu);
|
get_seq(&msg->seq, &ev->cpu);
|
||||||
|
getnstimestamp(&ev->timestamp);
|
||||||
ev->what = PROC_EVENT_FORK;
|
ev->what = PROC_EVENT_FORK;
|
||||||
ev->event_data.fork.parent_pid = task->real_parent->pid;
|
ev->event_data.fork.parent_pid = task->real_parent->pid;
|
||||||
ev->event_data.fork.parent_tgid = task->real_parent->tgid;
|
ev->event_data.fork.parent_tgid = task->real_parent->tgid;
|
||||||
@@ -81,6 +82,7 @@ void proc_exec_connector(struct task_struct *task)
|
|||||||
msg = (struct cn_msg*)buffer;
|
msg = (struct cn_msg*)buffer;
|
||||||
ev = (struct proc_event*)msg->data;
|
ev = (struct proc_event*)msg->data;
|
||||||
get_seq(&msg->seq, &ev->cpu);
|
get_seq(&msg->seq, &ev->cpu);
|
||||||
|
getnstimestamp(&ev->timestamp);
|
||||||
ev->what = PROC_EVENT_EXEC;
|
ev->what = PROC_EVENT_EXEC;
|
||||||
ev->event_data.exec.process_pid = task->pid;
|
ev->event_data.exec.process_pid = task->pid;
|
||||||
ev->event_data.exec.process_tgid = task->tgid;
|
ev->event_data.exec.process_tgid = task->tgid;
|
||||||
@@ -114,6 +116,7 @@ void proc_id_connector(struct task_struct *task, int which_id)
|
|||||||
} else
|
} else
|
||||||
return;
|
return;
|
||||||
get_seq(&msg->seq, &ev->cpu);
|
get_seq(&msg->seq, &ev->cpu);
|
||||||
|
getnstimestamp(&ev->timestamp);
|
||||||
|
|
||||||
memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id));
|
memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id));
|
||||||
msg->ack = 0; /* not used */
|
msg->ack = 0; /* not used */
|
||||||
@@ -133,6 +136,7 @@ void proc_exit_connector(struct task_struct *task)
|
|||||||
msg = (struct cn_msg*)buffer;
|
msg = (struct cn_msg*)buffer;
|
||||||
ev = (struct proc_event*)msg->data;
|
ev = (struct proc_event*)msg->data;
|
||||||
get_seq(&msg->seq, &ev->cpu);
|
get_seq(&msg->seq, &ev->cpu);
|
||||||
|
getnstimestamp(&ev->timestamp);
|
||||||
ev->what = PROC_EVENT_EXIT;
|
ev->what = PROC_EVENT_EXIT;
|
||||||
ev->event_data.exit.process_pid = task->pid;
|
ev->event_data.exit.process_pid = task->pid;
|
||||||
ev->event_data.exit.process_tgid = task->tgid;
|
ev->event_data.exit.process_tgid = task->tgid;
|
||||||
@@ -165,6 +169,7 @@ static void cn_proc_ack(int err, int rcvd_seq, int rcvd_ack)
|
|||||||
msg = (struct cn_msg*)buffer;
|
msg = (struct cn_msg*)buffer;
|
||||||
ev = (struct proc_event*)msg->data;
|
ev = (struct proc_event*)msg->data;
|
||||||
msg->seq = rcvd_seq;
|
msg->seq = rcvd_seq;
|
||||||
|
getnstimestamp(&ev->timestamp);
|
||||||
ev->cpu = -1;
|
ev->cpu = -1;
|
||||||
ev->what = PROC_EVENT_NONE;
|
ev->what = PROC_EVENT_NONE;
|
||||||
ev->event_data.ack.err = err;
|
ev->event_data.ack.err = err;
|
||||||
|
@@ -207,7 +207,7 @@ static struct wf_smu_sys_fans_param wf_smu_sys_all_params[] = {
|
|||||||
},
|
},
|
||||||
/* Model ID 3 */
|
/* Model ID 3 */
|
||||||
{
|
{
|
||||||
.model_id = 2,
|
.model_id = 3,
|
||||||
.itarget = 0x350000,
|
.itarget = 0x350000,
|
||||||
.gd = 0x08e00000,
|
.gd = 0x08e00000,
|
||||||
.gp = 0x00566666,
|
.gp = 0x00566666,
|
||||||
@@ -219,7 +219,7 @@ static struct wf_smu_sys_fans_param wf_smu_sys_all_params[] = {
|
|||||||
},
|
},
|
||||||
/* Model ID 5 */
|
/* Model ID 5 */
|
||||||
{
|
{
|
||||||
.model_id = 2,
|
.model_id = 5,
|
||||||
.itarget = 0x3a0000,
|
.itarget = 0x3a0000,
|
||||||
.gd = 0x15400000,
|
.gd = 0x15400000,
|
||||||
.gp = 0x00233333,
|
.gp = 0x00233333,
|
||||||
|
@@ -320,7 +320,6 @@ static int raid1_end_write_request(struct bio *bio, unsigned int bytes_done, int
|
|||||||
* this branch is our 'one mirror IO has finished' event handler:
|
* this branch is our 'one mirror IO has finished' event handler:
|
||||||
*/
|
*/
|
||||||
r1_bio->bios[mirror] = NULL;
|
r1_bio->bios[mirror] = NULL;
|
||||||
bio_put(bio);
|
|
||||||
if (!uptodate) {
|
if (!uptodate) {
|
||||||
md_error(r1_bio->mddev, conf->mirrors[mirror].rdev);
|
md_error(r1_bio->mddev, conf->mirrors[mirror].rdev);
|
||||||
/* an I/O failed, we can't clear the bitmap */
|
/* an I/O failed, we can't clear the bitmap */
|
||||||
@@ -377,7 +376,6 @@ static int raid1_end_write_request(struct bio *bio, unsigned int bytes_done, int
|
|||||||
}
|
}
|
||||||
if (test_bit(R1BIO_BehindIO, &r1_bio->state)) {
|
if (test_bit(R1BIO_BehindIO, &r1_bio->state)) {
|
||||||
/* free extra copy of the data pages */
|
/* free extra copy of the data pages */
|
||||||
/* FIXME bio has been freed!!! */
|
|
||||||
int i = bio->bi_vcnt;
|
int i = bio->bi_vcnt;
|
||||||
while (i--)
|
while (i--)
|
||||||
__free_page(bio->bi_io_vec[i].bv_page);
|
__free_page(bio->bi_io_vec[i].bv_page);
|
||||||
@@ -391,6 +389,9 @@ static int raid1_end_write_request(struct bio *bio, unsigned int bytes_done, int
|
|||||||
raid_end_bio_io(r1_bio);
|
raid_end_bio_io(r1_bio);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (r1_bio->bios[mirror]==NULL)
|
||||||
|
bio_put(bio);
|
||||||
|
|
||||||
rdev_dec_pending(conf->mirrors[mirror].rdev, conf->mddev);
|
rdev_dec_pending(conf->mirrors[mirror].rdev, conf->mddev);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -98,7 +98,7 @@ static inline void __release_stripe(raid5_conf_t *conf, struct stripe_head *sh)
|
|||||||
list_add_tail(&sh->lru, &conf->inactive_list);
|
list_add_tail(&sh->lru, &conf->inactive_list);
|
||||||
atomic_dec(&conf->active_stripes);
|
atomic_dec(&conf->active_stripes);
|
||||||
if (!conf->inactive_blocked ||
|
if (!conf->inactive_blocked ||
|
||||||
atomic_read(&conf->active_stripes) < (NR_STRIPES*3/4))
|
atomic_read(&conf->active_stripes) < (conf->max_nr_stripes*3/4))
|
||||||
wake_up(&conf->wait_for_stripe);
|
wake_up(&conf->wait_for_stripe);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -264,7 +264,8 @@ static struct stripe_head *get_active_stripe(raid5_conf_t *conf, sector_t sector
|
|||||||
conf->inactive_blocked = 1;
|
conf->inactive_blocked = 1;
|
||||||
wait_event_lock_irq(conf->wait_for_stripe,
|
wait_event_lock_irq(conf->wait_for_stripe,
|
||||||
!list_empty(&conf->inactive_list) &&
|
!list_empty(&conf->inactive_list) &&
|
||||||
(atomic_read(&conf->active_stripes) < (NR_STRIPES *3/4)
|
(atomic_read(&conf->active_stripes)
|
||||||
|
< (conf->max_nr_stripes *3/4)
|
||||||
|| !conf->inactive_blocked),
|
|| !conf->inactive_blocked),
|
||||||
conf->device_lock,
|
conf->device_lock,
|
||||||
unplug_slaves(conf->mddev);
|
unplug_slaves(conf->mddev);
|
||||||
@@ -1917,7 +1918,7 @@ static int run(mddev_t *mddev)
|
|||||||
goto abort;
|
goto abort;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
memory = conf->max_nr_stripes * (sizeof(struct stripe_head) +
|
memory = conf->max_nr_stripes * (sizeof(struct stripe_head) +
|
||||||
conf->raid_disks * ((sizeof(struct bio) + PAGE_SIZE))) / 1024;
|
conf->raid_disks * ((sizeof(struct bio) + PAGE_SIZE))) / 1024;
|
||||||
if (grow_stripes(conf, conf->max_nr_stripes)) {
|
if (grow_stripes(conf, conf->max_nr_stripes)) {
|
||||||
printk(KERN_ERR
|
printk(KERN_ERR
|
||||||
|
@@ -313,6 +313,7 @@ void ir_input_init(struct input_dev *dev, struct ir_input_state *ir,
|
|||||||
if (ir_codes)
|
if (ir_codes)
|
||||||
memcpy(ir->ir_codes, ir_codes, sizeof(ir->ir_codes));
|
memcpy(ir->ir_codes, ir_codes, sizeof(ir->ir_codes));
|
||||||
|
|
||||||
|
|
||||||
dev->keycode = ir->ir_codes;
|
dev->keycode = ir->ir_codes;
|
||||||
dev->keycodesize = sizeof(IR_KEYTAB_TYPE);
|
dev->keycodesize = sizeof(IR_KEYTAB_TYPE);
|
||||||
dev->keycodemax = IR_KEYTAB_SIZE;
|
dev->keycodemax = IR_KEYTAB_SIZE;
|
||||||
|
@@ -45,6 +45,7 @@
|
|||||||
#include <media/tveeprom.h>
|
#include <media/tveeprom.h>
|
||||||
#include <media/ir-common.h>
|
#include <media/ir-common.h>
|
||||||
|
|
||||||
|
|
||||||
#include "bt848.h"
|
#include "bt848.h"
|
||||||
#include "bttv.h"
|
#include "bttv.h"
|
||||||
#include "btcx-risc.h"
|
#include "btcx-risc.h"
|
||||||
|
@@ -616,6 +616,8 @@ static int blackbird_load_firmware(struct cx8802_dev *dev)
|
|||||||
|
|
||||||
retval = request_firmware(&firmware, BLACKBIRD_FIRM_ENC_FILENAME,
|
retval = request_firmware(&firmware, BLACKBIRD_FIRM_ENC_FILENAME,
|
||||||
&dev->pci->dev);
|
&dev->pci->dev);
|
||||||
|
|
||||||
|
|
||||||
if (retval != 0) {
|
if (retval != 0) {
|
||||||
dprintk(0, "ERROR: Hotplug firmware request failed (%s).\n",
|
dprintk(0, "ERROR: Hotplug firmware request failed (%s).\n",
|
||||||
BLACKBIRD_FIRM_ENC_FILENAME);
|
BLACKBIRD_FIRM_ENC_FILENAME);
|
||||||
|
@@ -567,6 +567,7 @@ struct cx88_board cx88_boards[] = {
|
|||||||
.radio_type = UNSET,
|
.radio_type = UNSET,
|
||||||
.tuner_addr = ADDR_UNSET,
|
.tuner_addr = ADDR_UNSET,
|
||||||
.radio_addr = ADDR_UNSET,
|
.radio_addr = ADDR_UNSET,
|
||||||
|
.tda9887_conf = TDA9887_PRESENT,
|
||||||
.input = {{
|
.input = {{
|
||||||
.type = CX88_VMUX_TELEVISION,
|
.type = CX88_VMUX_TELEVISION,
|
||||||
.vmux = 0,
|
.vmux = 0,
|
||||||
@@ -711,6 +712,7 @@ struct cx88_board cx88_boards[] = {
|
|||||||
.radio_type = UNSET,
|
.radio_type = UNSET,
|
||||||
.tuner_addr = ADDR_UNSET,
|
.tuner_addr = ADDR_UNSET,
|
||||||
.radio_addr = ADDR_UNSET,
|
.radio_addr = ADDR_UNSET,
|
||||||
|
.tda9887_conf = TDA9887_PRESENT,
|
||||||
.input = {{
|
.input = {{
|
||||||
.type = CX88_VMUX_TELEVISION,
|
.type = CX88_VMUX_TELEVISION,
|
||||||
.vmux = 0,
|
.vmux = 0,
|
||||||
|
@@ -453,7 +453,6 @@ int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci)
|
|||||||
input_dev->id.product = pci->device;
|
input_dev->id.product = pci->device;
|
||||||
}
|
}
|
||||||
input_dev->cdev.dev = &pci->dev;
|
input_dev->cdev.dev = &pci->dev;
|
||||||
|
|
||||||
/* record handles to ourself */
|
/* record handles to ourself */
|
||||||
ir->core = core;
|
ir->core = core;
|
||||||
core->ir = ir;
|
core->ir = ir;
|
||||||
@@ -586,7 +585,6 @@ void cx88_ir_irq(struct cx88_core *core)
|
|||||||
MODULE_AUTHOR("Gerd Knorr, Pavel Machek, Chris Pascoe");
|
MODULE_AUTHOR("Gerd Knorr, Pavel Machek, Chris Pascoe");
|
||||||
MODULE_DESCRIPTION("input driver for cx88 GPIO-based IR remote controls");
|
MODULE_DESCRIPTION("input driver for cx88 GPIO-based IR remote controls");
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Local variables:
|
* Local variables:
|
||||||
* c-basic-offset: 8
|
* c-basic-offset: 8
|
||||||
|
@@ -411,7 +411,6 @@ struct cx8802_dev {
|
|||||||
struct videobuf_dvb dvb;
|
struct videobuf_dvb dvb;
|
||||||
void* fe_handle;
|
void* fe_handle;
|
||||||
int (*fe_release)(void *handle);
|
int (*fe_release)(void *handle);
|
||||||
|
|
||||||
/* for switching modulation types */
|
/* for switching modulation types */
|
||||||
unsigned char ts_gen_cntrl;
|
unsigned char ts_gen_cntrl;
|
||||||
|
|
||||||
|
@@ -39,7 +39,7 @@ MODULE_PARM_DESC(core_debug,"enable debug messages [core]");
|
|||||||
#define em28xx_coredbg(fmt, arg...) do {\
|
#define em28xx_coredbg(fmt, arg...) do {\
|
||||||
if (core_debug) \
|
if (core_debug) \
|
||||||
printk(KERN_INFO "%s %s :"fmt, \
|
printk(KERN_INFO "%s %s :"fmt, \
|
||||||
dev->name, __FUNCTION__ , ##arg); } while (0)
|
dev->name, __FUNCTION__, ##arg); } while (0)
|
||||||
|
|
||||||
static unsigned int reg_debug;
|
static unsigned int reg_debug;
|
||||||
module_param(reg_debug,int,0644);
|
module_param(reg_debug,int,0644);
|
||||||
@@ -48,7 +48,7 @@ MODULE_PARM_DESC(reg_debug,"enable debug messages [URB reg]");
|
|||||||
#define em28xx_regdbg(fmt, arg...) do {\
|
#define em28xx_regdbg(fmt, arg...) do {\
|
||||||
if (reg_debug) \
|
if (reg_debug) \
|
||||||
printk(KERN_INFO "%s %s :"fmt, \
|
printk(KERN_INFO "%s %s :"fmt, \
|
||||||
dev->name, __FUNCTION__ , ##arg); } while (0)
|
dev->name, __FUNCTION__, ##arg); } while (0)
|
||||||
|
|
||||||
static unsigned int isoc_debug;
|
static unsigned int isoc_debug;
|
||||||
module_param(isoc_debug,int,0644);
|
module_param(isoc_debug,int,0644);
|
||||||
@@ -57,7 +57,7 @@ MODULE_PARM_DESC(isoc_debug,"enable debug messages [isoc transfers]");
|
|||||||
#define em28xx_isocdbg(fmt, arg...) do {\
|
#define em28xx_isocdbg(fmt, arg...) do {\
|
||||||
if (isoc_debug) \
|
if (isoc_debug) \
|
||||||
printk(KERN_INFO "%s %s :"fmt, \
|
printk(KERN_INFO "%s %s :"fmt, \
|
||||||
dev->name, __FUNCTION__ , ##arg); } while (0)
|
dev->name, __FUNCTION__, ##arg); } while (0)
|
||||||
|
|
||||||
static int alt = EM28XX_PINOUT;
|
static int alt = EM28XX_PINOUT;
|
||||||
module_param(alt, int, 0644);
|
module_param(alt, int, 0644);
|
||||||
@@ -116,47 +116,6 @@ void em28xx_print_ioctl(char *name, unsigned int cmd)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void *rvmalloc(size_t size)
|
|
||||||
{
|
|
||||||
void *mem;
|
|
||||||
unsigned long adr;
|
|
||||||
|
|
||||||
size = PAGE_ALIGN(size);
|
|
||||||
|
|
||||||
mem = vmalloc_32((unsigned long)size);
|
|
||||||
if (!mem)
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
memset(mem, 0, size);
|
|
||||||
|
|
||||||
adr = (unsigned long)mem;
|
|
||||||
while (size > 0) {
|
|
||||||
SetPageReserved(vmalloc_to_page((void *)adr));
|
|
||||||
adr += PAGE_SIZE;
|
|
||||||
size -= PAGE_SIZE;
|
|
||||||
}
|
|
||||||
|
|
||||||
return mem;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void rvfree(void *mem, size_t size)
|
|
||||||
{
|
|
||||||
unsigned long adr;
|
|
||||||
|
|
||||||
if (!mem)
|
|
||||||
return;
|
|
||||||
|
|
||||||
size = PAGE_ALIGN(size);
|
|
||||||
|
|
||||||
adr = (unsigned long)mem;
|
|
||||||
while (size > 0) {
|
|
||||||
ClearPageReserved(vmalloc_to_page((void *)adr));
|
|
||||||
adr += PAGE_SIZE;
|
|
||||||
size -= PAGE_SIZE;
|
|
||||||
}
|
|
||||||
|
|
||||||
vfree(mem);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* em28xx_request_buffers()
|
* em28xx_request_buffers()
|
||||||
@@ -173,8 +132,10 @@ u32 em28xx_request_buffers(struct em28xx *dev, u32 count)
|
|||||||
|
|
||||||
dev->num_frames = count;
|
dev->num_frames = count;
|
||||||
while (dev->num_frames > 0) {
|
while (dev->num_frames > 0) {
|
||||||
if ((buff = rvmalloc(dev->num_frames * imagesize)))
|
if ((buff = vmalloc_32(dev->num_frames * imagesize))) {
|
||||||
|
memset(buff, 0, dev->num_frames * imagesize);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
dev->num_frames--;
|
dev->num_frames--;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -217,8 +178,7 @@ void em28xx_queue_unusedframes(struct em28xx *dev)
|
|||||||
void em28xx_release_buffers(struct em28xx *dev)
|
void em28xx_release_buffers(struct em28xx *dev)
|
||||||
{
|
{
|
||||||
if (dev->num_frames) {
|
if (dev->num_frames) {
|
||||||
rvfree(dev->frame[0].bufmem,
|
vfree(dev->frame[0].bufmem);
|
||||||
dev->num_frames * PAGE_ALIGN(dev->frame[0].buf.length));
|
|
||||||
dev->num_frames = 0;
|
dev->num_frames = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -41,10 +41,10 @@ module_param(i2c_debug, int, 0644);
|
|||||||
MODULE_PARM_DESC(i2c_debug, "enable debug messages [i2c]");
|
MODULE_PARM_DESC(i2c_debug, "enable debug messages [i2c]");
|
||||||
|
|
||||||
#define dprintk1(lvl,fmt, args...) if (i2c_debug>=lvl) do {\
|
#define dprintk1(lvl,fmt, args...) if (i2c_debug>=lvl) do {\
|
||||||
printk(fmt , ##args); } while (0)
|
printk(fmt, ##args); } while (0)
|
||||||
#define dprintk2(lvl,fmt, args...) if (i2c_debug>=lvl) do{ \
|
#define dprintk2(lvl,fmt, args...) if (i2c_debug>=lvl) do{ \
|
||||||
printk(KERN_DEBUG "%s at %s: " fmt, \
|
printk(KERN_DEBUG "%s at %s: " fmt, \
|
||||||
dev->name, __FUNCTION__ , ##args); } while (0)
|
dev->name, __FUNCTION__, ##args); } while (0)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* em2800_i2c_send_max4()
|
* em2800_i2c_send_max4()
|
||||||
|
@@ -45,7 +45,7 @@
|
|||||||
#define em28xx_videodbg(fmt, arg...) do {\
|
#define em28xx_videodbg(fmt, arg...) do {\
|
||||||
if (video_debug) \
|
if (video_debug) \
|
||||||
printk(KERN_INFO "%s %s :"fmt, \
|
printk(KERN_INFO "%s %s :"fmt, \
|
||||||
dev->name, __FUNCTION__ , ##arg); } while (0)
|
dev->name, __FUNCTION__, ##arg); } while (0)
|
||||||
|
|
||||||
MODULE_AUTHOR(DRIVER_AUTHOR);
|
MODULE_AUTHOR(DRIVER_AUTHOR);
|
||||||
MODULE_DESCRIPTION(DRIVER_DESC);
|
MODULE_DESCRIPTION(DRIVER_DESC);
|
||||||
@@ -189,16 +189,6 @@ static DECLARE_RWSEM(em28xx_disconnect);
|
|||||||
|
|
||||||
/********************* v4l2 interface ******************************************/
|
/********************* v4l2 interface ******************************************/
|
||||||
|
|
||||||
static inline unsigned long kvirt_to_pa(unsigned long adr)
|
|
||||||
{
|
|
||||||
unsigned long kva, ret;
|
|
||||||
|
|
||||||
kva = (unsigned long)page_address(vmalloc_to_page((void *)adr));
|
|
||||||
kva |= adr & (PAGE_SIZE - 1);
|
|
||||||
ret = __pa(kva);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* em28xx_config()
|
* em28xx_config()
|
||||||
* inits registers with sane defaults
|
* inits registers with sane defaults
|
||||||
@@ -616,7 +606,8 @@ static struct vm_operations_struct em28xx_vm_ops = {
|
|||||||
static int em28xx_v4l2_mmap(struct file *filp, struct vm_area_struct *vma)
|
static int em28xx_v4l2_mmap(struct file *filp, struct vm_area_struct *vma)
|
||||||
{
|
{
|
||||||
unsigned long size = vma->vm_end - vma->vm_start,
|
unsigned long size = vma->vm_end - vma->vm_start,
|
||||||
start = vma->vm_start, pos, page;
|
start = vma->vm_start;
|
||||||
|
void *pos;
|
||||||
u32 i;
|
u32 i;
|
||||||
|
|
||||||
struct em28xx *dev = filp->private_data;
|
struct em28xx *dev = filp->private_data;
|
||||||
@@ -657,12 +648,10 @@ static int em28xx_v4l2_mmap(struct file *filp, struct vm_area_struct *vma)
|
|||||||
vma->vm_flags |= VM_IO;
|
vma->vm_flags |= VM_IO;
|
||||||
vma->vm_flags |= VM_RESERVED; /* avoid to swap out this VMA */
|
vma->vm_flags |= VM_RESERVED; /* avoid to swap out this VMA */
|
||||||
|
|
||||||
pos = (unsigned long)dev->frame[i].bufmem;
|
pos = dev->frame[i].bufmem;
|
||||||
while (size > 0) { /* size is page-aligned */
|
while (size > 0) { /* size is page-aligned */
|
||||||
page = vmalloc_to_pfn((void *)pos);
|
if (vm_insert_page(vma, start, vmalloc_to_page(pos))) {
|
||||||
if (remap_pfn_range(vma, start, page, PAGE_SIZE,
|
em28xx_videodbg("mmap: vm_insert_page failed\n");
|
||||||
vma->vm_page_prot)) {
|
|
||||||
em28xx_videodbg("mmap: rename page map failed\n");
|
|
||||||
up(&dev->fileop_lock);
|
up(&dev->fileop_lock);
|
||||||
return -EAGAIN;
|
return -EAGAIN;
|
||||||
}
|
}
|
||||||
|
@@ -392,18 +392,18 @@ extern const unsigned int em28xx_bcount;
|
|||||||
/* printk macros */
|
/* printk macros */
|
||||||
|
|
||||||
#define em28xx_err(fmt, arg...) do {\
|
#define em28xx_err(fmt, arg...) do {\
|
||||||
printk(KERN_ERR fmt , ##arg); } while (0)
|
printk(KERN_ERR fmt, ##arg); } while (0)
|
||||||
|
|
||||||
#define em28xx_errdev(fmt, arg...) do {\
|
#define em28xx_errdev(fmt, arg...) do {\
|
||||||
printk(KERN_ERR "%s: "fmt,\
|
printk(KERN_ERR "%s: "fmt,\
|
||||||
dev->name , ##arg); } while (0)
|
dev->name, ##arg); } while (0)
|
||||||
|
|
||||||
#define em28xx_info(fmt, arg...) do {\
|
#define em28xx_info(fmt, arg...) do {\
|
||||||
printk(KERN_INFO "%s: "fmt,\
|
printk(KERN_INFO "%s: "fmt,\
|
||||||
dev->name , ##arg); } while (0)
|
dev->name, ##arg); } while (0)
|
||||||
#define em28xx_warn(fmt, arg...) do {\
|
#define em28xx_warn(fmt, arg...) do {\
|
||||||
printk(KERN_WARNING "%s: "fmt,\
|
printk(KERN_WARNING "%s: "fmt,\
|
||||||
dev->name , ##arg); } while (0)
|
dev->name, ##arg); } while (0)
|
||||||
|
|
||||||
inline static int em28xx_audio_source(struct em28xx *dev, int input)
|
inline static int em28xx_audio_source(struct em28xx *dev, int input)
|
||||||
{
|
{
|
||||||
|
@@ -297,7 +297,6 @@ struct IR {
|
|||||||
struct timer_list timer;
|
struct timer_list timer;
|
||||||
|
|
||||||
/* RC5 gpio */
|
/* RC5 gpio */
|
||||||
|
|
||||||
u32 rc5_gpio;
|
u32 rc5_gpio;
|
||||||
struct timer_list timer_end; /* timer_end for code completion */
|
struct timer_list timer_end; /* timer_end for code completion */
|
||||||
struct timer_list timer_keyup; /* timer_end for key release */
|
struct timer_list timer_keyup; /* timer_end for key release */
|
||||||
@@ -726,6 +725,7 @@ static int ir_remove(struct device *dev)
|
|||||||
del_timer(&ir->timer);
|
del_timer(&ir->timer);
|
||||||
flush_scheduled_work();
|
flush_scheduled_work();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ir->rc5_gpio) {
|
if (ir->rc5_gpio) {
|
||||||
u32 gpio;
|
u32 gpio;
|
||||||
|
|
||||||
|
@@ -40,6 +40,7 @@
|
|||||||
#include <linux/i2c.h>
|
#include <linux/i2c.h>
|
||||||
#include <linux/workqueue.h>
|
#include <linux/workqueue.h>
|
||||||
#include <asm/semaphore.h>
|
#include <asm/semaphore.h>
|
||||||
|
|
||||||
#include <media/ir-common.h>
|
#include <media/ir-common.h>
|
||||||
#include <media/ir-kbd-i2c.h>
|
#include <media/ir-kbd-i2c.h>
|
||||||
|
|
||||||
@@ -278,7 +279,7 @@ static int ir_probe(struct i2c_adapter *adap);
|
|||||||
|
|
||||||
static struct i2c_driver driver = {
|
static struct i2c_driver driver = {
|
||||||
.name = "ir remote kbd driver",
|
.name = "ir remote kbd driver",
|
||||||
.id = I2C_DRIVERID_I2C_IR,
|
.id = I2C_DRIVERID_INFRARED,
|
||||||
.flags = I2C_DF_NOTIFY,
|
.flags = I2C_DF_NOTIFY,
|
||||||
.attach_adapter = ir_probe,
|
.attach_adapter = ir_probe,
|
||||||
.detach_client = ir_detach,
|
.detach_client = ir_detach,
|
||||||
@@ -299,7 +300,7 @@ static int ir_attach(struct i2c_adapter *adap, int addr,
|
|||||||
struct IR_i2c *ir;
|
struct IR_i2c *ir;
|
||||||
struct input_dev *input_dev;
|
struct input_dev *input_dev;
|
||||||
|
|
||||||
ir = kzalloc(sizeof(struct IR_i2c), GFP_KERNEL);
|
ir = kzalloc(sizeof(struct IR_i2c),GFP_KERNEL);
|
||||||
input_dev = input_allocate_device();
|
input_dev = input_allocate_device();
|
||||||
if (!ir || !input_dev) {
|
if (!ir || !input_dev) {
|
||||||
kfree(ir);
|
kfree(ir);
|
||||||
|
@@ -882,6 +882,7 @@ static void watch_stereo(struct i2c_client *client)
|
|||||||
msp->watch_stereo = 0;
|
msp->watch_stereo = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int msp3400c_thread(void *data)
|
static int msp3400c_thread(void *data)
|
||||||
{
|
{
|
||||||
struct i2c_client *client = data;
|
struct i2c_client *client = data;
|
||||||
@@ -889,6 +890,7 @@ static int msp3400c_thread(void *data)
|
|||||||
struct CARRIER_DETECT *cd;
|
struct CARRIER_DETECT *cd;
|
||||||
int count, max1,max2,val1,val2, val,this;
|
int count, max1,max2,val1,val2, val,this;
|
||||||
|
|
||||||
|
|
||||||
msp3400_info("msp3400 daemon started\n");
|
msp3400_info("msp3400 daemon started\n");
|
||||||
for (;;) {
|
for (;;) {
|
||||||
msp3400_dbg_mediumvol("msp3400 thread: sleep\n");
|
msp3400_dbg_mediumvol("msp3400 thread: sleep\n");
|
||||||
@@ -1162,6 +1164,7 @@ static int msp3410d_thread(void *data)
|
|||||||
int mode,val,i,std;
|
int mode,val,i,std;
|
||||||
|
|
||||||
msp3400_info("msp3410 daemon started\n");
|
msp3400_info("msp3410 daemon started\n");
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
msp3400_dbg_mediumvol("msp3410 thread: sleep\n");
|
msp3400_dbg_mediumvol("msp3410 thread: sleep\n");
|
||||||
msp34xx_sleep(msp,-1);
|
msp34xx_sleep(msp,-1);
|
||||||
@@ -1384,6 +1387,7 @@ static int msp34xxg_thread(void *data)
|
|||||||
int val, std, i;
|
int val, std, i;
|
||||||
|
|
||||||
msp3400_info("msp34xxg daemon started\n");
|
msp3400_info("msp34xxg daemon started\n");
|
||||||
|
|
||||||
msp->source = 1; /* default */
|
msp->source = 1; /* default */
|
||||||
for (;;) {
|
for (;;) {
|
||||||
msp3400_dbg_mediumvol("msp34xxg thread: sleep\n");
|
msp3400_dbg_mediumvol("msp34xxg thread: sleep\n");
|
||||||
|
@@ -422,7 +422,6 @@ static int saa6588_attach(struct i2c_adapter *adap, int addr, int kind)
|
|||||||
s->timer.function = saa6588_timer;
|
s->timer.function = saa6588_timer;
|
||||||
s->timer.data = (unsigned long)s;
|
s->timer.data = (unsigned long)s;
|
||||||
schedule_work(&s->work);
|
schedule_work(&s->work);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -59,7 +59,7 @@ MODULE_PARM_DESC(debug, " Set the default Debug level. Default: 0 (Off) - (0-1)
|
|||||||
#define dprintk(num, format, args...) \
|
#define dprintk(num, format, args...) \
|
||||||
do { \
|
do { \
|
||||||
if (debug >= num) \
|
if (debug >= num) \
|
||||||
printk(format , ##args); \
|
printk(format, ##args); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
/* ----------------------------------------------------------------------- */
|
/* ----------------------------------------------------------------------- */
|
||||||
|
@@ -524,6 +524,7 @@ static int saa6752hs_attach(struct i2c_adapter *adap, int addr, int kind)
|
|||||||
|
|
||||||
i2c_set_clientdata(&h->client, h);
|
i2c_set_clientdata(&h->client, h);
|
||||||
i2c_attach_client(&h->client);
|
i2c_attach_client(&h->client);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -51,6 +51,7 @@ MODULE_PARM_DESC(debug,"enable debug messages [alsa]");
|
|||||||
#define MIXER_ADDR_LINE2 2
|
#define MIXER_ADDR_LINE2 2
|
||||||
#define MIXER_ADDR_LAST 2
|
#define MIXER_ADDR_LAST 2
|
||||||
|
|
||||||
|
|
||||||
static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */
|
static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */
|
||||||
static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */
|
static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */
|
||||||
static int enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 0};
|
static int enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 0};
|
||||||
@@ -59,11 +60,14 @@ module_param_array(index, int, NULL, 0444);
|
|||||||
MODULE_PARM_DESC(index, "Index value for SAA7134 capture interface(s).");
|
MODULE_PARM_DESC(index, "Index value for SAA7134 capture interface(s).");
|
||||||
|
|
||||||
#define dprintk(fmt, arg...) if (debug) \
|
#define dprintk(fmt, arg...) if (debug) \
|
||||||
printk(KERN_DEBUG "%s/alsa: " fmt, dev->name , ## arg)
|
printk(KERN_DEBUG "%s/alsa: " fmt, dev->name, ## arg)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Main chip structure
|
* Main chip structure
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct snd_card_saa7134 {
|
typedef struct snd_card_saa7134 {
|
||||||
snd_card_t *card;
|
snd_card_t *card;
|
||||||
spinlock_t mixer_lock;
|
spinlock_t mixer_lock;
|
||||||
@@ -1004,6 +1008,7 @@ static int saa7134_alsa_init(void)
|
|||||||
printk(KERN_INFO "saa7134 ALSA: no saa7134 cards found\n");
|
printk(KERN_INFO "saa7134 ALSA: no saa7134 cards found\n");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -1027,3 +1032,6 @@ module_init(saa7134_alsa_init);
|
|||||||
module_exit(saa7134_alsa_exit);
|
module_exit(saa7134_alsa_exit);
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
MODULE_AUTHOR("Ricardo Cerqueira");
|
MODULE_AUTHOR("Ricardo Cerqueira");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -976,7 +976,7 @@ struct saa7134_board saa7134_boards[] = {
|
|||||||
.radio_type = UNSET,
|
.radio_type = UNSET,
|
||||||
.tuner_addr = ADDR_UNSET,
|
.tuner_addr = ADDR_UNSET,
|
||||||
.radio_addr = ADDR_UNSET,
|
.radio_addr = ADDR_UNSET,
|
||||||
.tda9887_conf = TDA9887_PRESENT | TDA9887_INTERCARRIER,
|
.tda9887_conf = TDA9887_PRESENT | TDA9887_INTERCARRIER | TDA9887_PORT2_ACTIVE,
|
||||||
.inputs = {{
|
.inputs = {{
|
||||||
.name = name_tv,
|
.name = name_tv,
|
||||||
.vmux = 3,
|
.vmux = 3,
|
||||||
|
@@ -71,6 +71,7 @@ static unsigned int radio_nr[] = {[0 ... (SAA7134_MAXBOARDS - 1)] = UNSET };
|
|||||||
static unsigned int tuner[] = {[0 ... (SAA7134_MAXBOARDS - 1)] = UNSET };
|
static unsigned int tuner[] = {[0 ... (SAA7134_MAXBOARDS - 1)] = UNSET };
|
||||||
static unsigned int card[] = {[0 ... (SAA7134_MAXBOARDS - 1)] = UNSET };
|
static unsigned int card[] = {[0 ... (SAA7134_MAXBOARDS - 1)] = UNSET };
|
||||||
|
|
||||||
|
|
||||||
module_param_array(video_nr, int, NULL, 0444);
|
module_param_array(video_nr, int, NULL, 0444);
|
||||||
module_param_array(vbi_nr, int, NULL, 0444);
|
module_param_array(vbi_nr, int, NULL, 0444);
|
||||||
module_param_array(radio_nr, int, NULL, 0444);
|
module_param_array(radio_nr, int, NULL, 0444);
|
||||||
|
@@ -36,6 +36,7 @@ MODULE_AUTHOR("Gerd Knorr <kraxel@bytesex.org> [SuSE Labs]");
|
|||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
|
||||||
static unsigned int empress_nr[] = {[0 ... (SAA7134_MAXBOARDS - 1)] = UNSET };
|
static unsigned int empress_nr[] = {[0 ... (SAA7134_MAXBOARDS - 1)] = UNSET };
|
||||||
|
|
||||||
module_param_array(empress_nr, int, NULL, 0444);
|
module_param_array(empress_nr, int, NULL, 0444);
|
||||||
MODULE_PARM_DESC(empress_nr,"ts device number");
|
MODULE_PARM_DESC(empress_nr,"ts device number");
|
||||||
|
|
||||||
|
@@ -994,6 +994,7 @@ static void saa7134_oss_exit(void)
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
oss_device_exit(dev);
|
oss_device_exit(dev);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
printk(KERN_INFO "saa7134 OSS driver for DMA sound unloaded\n");
|
printk(KERN_INFO "saa7134 OSS driver for DMA sound unloaded\n");
|
||||||
|
@@ -12,6 +12,7 @@
|
|||||||
#include <media/audiochip.h>
|
#include <media/audiochip.h>
|
||||||
#include <media/tuner.h>
|
#include <media/tuner.h>
|
||||||
|
|
||||||
|
|
||||||
/* Chips:
|
/* Chips:
|
||||||
TDA9885 (PAL, NTSC)
|
TDA9885 (PAL, NTSC)
|
||||||
TDA9886 (PAL, SECAM, NTSC)
|
TDA9886 (PAL, SECAM, NTSC)
|
||||||
|
@@ -216,7 +216,7 @@ static int chip_read(struct CHIPSTATE *chip)
|
|||||||
chip->c.name);
|
chip->c.name);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
tvaudio_dbg("%s: chip_read: 0x%x\n",chip->c.name,buffer);
|
tvaudio_dbg("%s: chip_read: 0x%x\n",chip->c.name, buffer);
|
||||||
return buffer;
|
return buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -235,7 +235,7 @@ static int chip_read2(struct CHIPSTATE *chip, int subaddr)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
tvaudio_dbg("%s: chip_read2: reg%d=0x%x\n",
|
tvaudio_dbg("%s: chip_read2: reg%d=0x%x\n",
|
||||||
chip->c.name,subaddr,read[0]);
|
chip->c.name, subaddr,read[0]);
|
||||||
return read[0];
|
return read[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -248,7 +248,7 @@ static int chip_cmd(struct CHIPSTATE *chip, char *name, audiocmd *cmd)
|
|||||||
|
|
||||||
/* update our shadow register set; print bytes if (debug > 0) */
|
/* update our shadow register set; print bytes if (debug > 0) */
|
||||||
tvaudio_dbg("%s: chip_cmd(%s): reg=%d, data:",
|
tvaudio_dbg("%s: chip_cmd(%s): reg=%d, data:",
|
||||||
chip->c.name,name,cmd->bytes[0]);
|
chip->c.name, name,cmd->bytes[0]);
|
||||||
for (i = 1; i < cmd->count; i++) {
|
for (i = 1; i < cmd->count; i++) {
|
||||||
if (debug)
|
if (debug)
|
||||||
printk(" 0x%x",cmd->bytes[i]);
|
printk(" 0x%x",cmd->bytes[i]);
|
||||||
@@ -1514,7 +1514,7 @@ static int chip_attach(struct i2c_adapter *adap, int addr, int kind)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* fill required data structures */
|
/* fill required data structures */
|
||||||
strcpy(chip->c.name,desc->name);
|
strcpy(chip->c.name, desc->name);
|
||||||
chip->type = desc-chiplist;
|
chip->type = desc-chiplist;
|
||||||
chip->shadow.count = desc->registers+1;
|
chip->shadow.count = desc->registers+1;
|
||||||
chip->prevmode = -1;
|
chip->prevmode = -1;
|
||||||
@@ -1604,7 +1604,7 @@ static int chip_command(struct i2c_client *client,
|
|||||||
struct CHIPSTATE *chip = i2c_get_clientdata(client);
|
struct CHIPSTATE *chip = i2c_get_clientdata(client);
|
||||||
struct CHIPDESC *desc = chiplist + chip->type;
|
struct CHIPDESC *desc = chiplist + chip->type;
|
||||||
|
|
||||||
tvaudio_dbg("%s: chip_command 0x%x\n",chip->c.name,cmd);
|
tvaudio_dbg("%s: chip_command 0x%x\n", chip->c.name, cmd);
|
||||||
|
|
||||||
switch (cmd) {
|
switch (cmd) {
|
||||||
case AUDC_SET_INPUT:
|
case AUDC_SET_INPUT:
|
||||||
|
@@ -754,6 +754,7 @@ tveeprom_detect_client(struct i2c_adapter *adapter,
|
|||||||
client->flags = I2C_CLIENT_ALLOW_USE;
|
client->flags = I2C_CLIENT_ALLOW_USE;
|
||||||
snprintf(client->name, sizeof(client->name), "tveeprom");
|
snprintf(client->name, sizeof(client->name), "tveeprom");
|
||||||
i2c_attach_client(client);
|
i2c_attach_client(client);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -31,7 +31,7 @@ MODULE_PARM_DESC(debug, "Debug level (0-1)");
|
|||||||
#define dprintk(num, format, args...) \
|
#define dprintk(num, format, args...) \
|
||||||
do { \
|
do { \
|
||||||
if (debug >= num) \
|
if (debug >= num) \
|
||||||
printk(format , ##args); \
|
printk(format, ##args); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
/* supported controls */
|
/* supported controls */
|
||||||
@@ -770,7 +770,6 @@ static int tvp5150_detect_client(struct i2c_adapter *adapter,
|
|||||||
|
|
||||||
if (debug > 1)
|
if (debug > 1)
|
||||||
dump_reg(client);
|
dump_reg(client);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -13,6 +13,7 @@
|
|||||||
* (at your option) any later version.
|
* (at your option) any later version.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/device.h>
|
#include <linux/device.h>
|
||||||
@@ -247,3 +248,4 @@ EXPORT_SYMBOL(videobuf_dvb_unregister);
|
|||||||
* compile-command: "make DVB=1"
|
* compile-command: "make DVB=1"
|
||||||
* End:
|
* End:
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@@ -59,16 +59,18 @@ static int adcsync;
|
|||||||
|
|
||||||
static inline void ucb1x00_ts_evt_add(struct ucb1x00_ts *ts, u16 pressure, u16 x, u16 y)
|
static inline void ucb1x00_ts_evt_add(struct ucb1x00_ts *ts, u16 pressure, u16 x, u16 y)
|
||||||
{
|
{
|
||||||
input_report_abs(ts->idev, ABS_X, x);
|
struct input_dev *idev = ts->idev;
|
||||||
input_report_abs(ts->idev, ABS_Y, y);
|
input_report_abs(idev, ABS_X, x);
|
||||||
input_report_abs(ts->idev, ABS_PRESSURE, pressure);
|
input_report_abs(idev, ABS_Y, y);
|
||||||
input_sync(ts->idev);
|
input_report_abs(idev, ABS_PRESSURE, pressure);
|
||||||
|
input_sync(idev);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void ucb1x00_ts_event_release(struct ucb1x00_ts *ts)
|
static inline void ucb1x00_ts_event_release(struct ucb1x00_ts *ts)
|
||||||
{
|
{
|
||||||
input_report_abs(ts->idev, ABS_PRESSURE, 0);
|
struct input_dev *idev = ts->idev;
|
||||||
input_sync(ts->idev);
|
input_report_abs(idev, ABS_PRESSURE, 0);
|
||||||
|
input_sync(idev);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -297,7 +299,7 @@ static void ucb1x00_ts_irq(int idx, void *id)
|
|||||||
|
|
||||||
static int ucb1x00_ts_open(struct input_dev *idev)
|
static int ucb1x00_ts_open(struct input_dev *idev)
|
||||||
{
|
{
|
||||||
struct ucb1x00_ts *ts = (struct ucb1x00_ts *)idev;
|
struct ucb1x00_ts *ts = idev->private;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
BUG_ON(ts->rtask);
|
BUG_ON(ts->rtask);
|
||||||
@@ -334,7 +336,7 @@ static int ucb1x00_ts_open(struct input_dev *idev)
|
|||||||
*/
|
*/
|
||||||
static void ucb1x00_ts_close(struct input_dev *idev)
|
static void ucb1x00_ts_close(struct input_dev *idev)
|
||||||
{
|
{
|
||||||
struct ucb1x00_ts *ts = (struct ucb1x00_ts *)idev;
|
struct ucb1x00_ts *ts = idev->private;
|
||||||
|
|
||||||
if (ts->rtask)
|
if (ts->rtask)
|
||||||
kthread_stop(ts->rtask);
|
kthread_stop(ts->rtask);
|
||||||
@@ -386,6 +388,7 @@ static int ucb1x00_ts_add(struct ucb1x00_dev *dev)
|
|||||||
ts->ucb = dev->ucb;
|
ts->ucb = dev->ucb;
|
||||||
ts->adcsync = adcsync ? UCB_SYNC : UCB_NOSYNC;
|
ts->adcsync = adcsync ? UCB_SYNC : UCB_NOSYNC;
|
||||||
|
|
||||||
|
ts->idev->private = ts;
|
||||||
ts->idev->name = "Touchscreen panel";
|
ts->idev->name = "Touchscreen panel";
|
||||||
ts->idev->id.product = ts->ucb->id;
|
ts->idev->id.product = ts->ucb->id;
|
||||||
ts->idev->open = ucb1x00_ts_open;
|
ts->idev->open = ucb1x00_ts_open;
|
||||||
|
@@ -932,8 +932,9 @@ static void mmc_read_scrs(struct mmc_host *host)
|
|||||||
|
|
||||||
sg_init_one(&sg, (u8*)card->raw_scr, 8);
|
sg_init_one(&sg, (u8*)card->raw_scr, 8);
|
||||||
|
|
||||||
err = mmc_wait_for_req(host, &mrq);
|
mmc_wait_for_req(host, &mrq);
|
||||||
if (err != MMC_ERR_NONE) {
|
|
||||||
|
if (cmd.error != MMC_ERR_NONE || data.error != MMC_ERR_NONE) {
|
||||||
mmc_card_set_dead(card);
|
mmc_card_set_dead(card);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@@ -113,7 +113,7 @@ static int bi_write_complete(struct bio *bio, unsigned int bytes_done, int error
|
|||||||
ClearPageUptodate(page);
|
ClearPageUptodate(page);
|
||||||
SetPageError(page);
|
SetPageError(page);
|
||||||
}
|
}
|
||||||
ClearPageDirty(page);
|
clear_page_dirty(page);
|
||||||
unlock_page(page);
|
unlock_page(page);
|
||||||
page_cache_release(page);
|
page_cache_release(page);
|
||||||
} while (bvec >= bio->bi_io_vec);
|
} while (bvec >= bio->bi_io_vec);
|
||||||
@@ -289,7 +289,7 @@ static int write_pages(struct blkmtd_dev *dev, const u_char *buf, loff_t to,
|
|||||||
BUG();
|
BUG();
|
||||||
}
|
}
|
||||||
memcpy(page_address(page)+offset, buf, start_len);
|
memcpy(page_address(page)+offset, buf, start_len);
|
||||||
SetPageDirty(page);
|
set_page_dirty(page);
|
||||||
SetPageUptodate(page);
|
SetPageUptodate(page);
|
||||||
buf += start_len;
|
buf += start_len;
|
||||||
thislen = start_len;
|
thislen = start_len;
|
||||||
@@ -336,7 +336,7 @@ static int write_pages(struct blkmtd_dev *dev, const u_char *buf, loff_t to,
|
|||||||
}
|
}
|
||||||
pagenr++;
|
pagenr++;
|
||||||
pagecnt--;
|
pagecnt--;
|
||||||
SetPageDirty(page);
|
set_page_dirty(page);
|
||||||
SetPageUptodate(page);
|
SetPageUptodate(page);
|
||||||
pagesc--;
|
pagesc--;
|
||||||
thislen += PAGE_SIZE;
|
thislen += PAGE_SIZE;
|
||||||
@@ -357,7 +357,7 @@ static int write_pages(struct blkmtd_dev *dev, const u_char *buf, loff_t to,
|
|||||||
BUG();
|
BUG();
|
||||||
}
|
}
|
||||||
memcpy(page_address(page), buf, end_len);
|
memcpy(page_address(page), buf, end_len);
|
||||||
SetPageDirty(page);
|
set_page_dirty(page);
|
||||||
SetPageUptodate(page);
|
SetPageUptodate(page);
|
||||||
DEBUG(3, "blkmtd: write: writing out partial end\n");
|
DEBUG(3, "blkmtd: write: writing out partial end\n");
|
||||||
thislen += end_len;
|
thislen += end_len;
|
||||||
|
@@ -1251,12 +1251,7 @@ pcnet32_probe1(unsigned long ioaddr, int shared, struct pci_dev *pdev)
|
|||||||
|
|
||||||
if (memcmp(promaddr, dev->dev_addr, 6)
|
if (memcmp(promaddr, dev->dev_addr, 6)
|
||||||
|| !is_valid_ether_addr(dev->dev_addr)) {
|
|| !is_valid_ether_addr(dev->dev_addr)) {
|
||||||
#ifndef __powerpc__
|
|
||||||
if (is_valid_ether_addr(promaddr)) {
|
if (is_valid_ether_addr(promaddr)) {
|
||||||
#else
|
|
||||||
if (!is_valid_ether_addr(dev->dev_addr)
|
|
||||||
&& is_valid_ether_addr(promaddr)) {
|
|
||||||
#endif
|
|
||||||
if (pcnet32_debug & NETIF_MSG_PROBE) {
|
if (pcnet32_debug & NETIF_MSG_PROBE) {
|
||||||
printk(" warning: CSR address invalid,\n");
|
printk(" warning: CSR address invalid,\n");
|
||||||
printk(KERN_INFO " using instead PROM address of");
|
printk(KERN_INFO " using instead PROM address of");
|
||||||
|
@@ -818,7 +818,7 @@ uintptr_t VNextDescr; /* the virtual bus address of the next descriptor */
|
|||||||
/* set the pointers right */
|
/* set the pointers right */
|
||||||
pDescr->VNextRxd = VNextDescr & 0xffffffffULL;
|
pDescr->VNextRxd = VNextDescr & 0xffffffffULL;
|
||||||
pDescr->pNextRxd = pNextDescr;
|
pDescr->pNextRxd = pNextDescr;
|
||||||
pDescr->TcpSumStarts = 0;
|
if (!IsTx) pDescr->TcpSumStarts = ETH_HLEN << 16 | ETH_HLEN;
|
||||||
|
|
||||||
/* advance one step */
|
/* advance one step */
|
||||||
pPrevDescr = pDescr;
|
pPrevDescr = pDescr;
|
||||||
@@ -2169,7 +2169,7 @@ rx_start:
|
|||||||
} /* frame > SK_COPY_TRESHOLD */
|
} /* frame > SK_COPY_TRESHOLD */
|
||||||
|
|
||||||
#ifdef USE_SK_RX_CHECKSUM
|
#ifdef USE_SK_RX_CHECKSUM
|
||||||
pMsg->csum = pRxd->TcpSums;
|
pMsg->csum = pRxd->TcpSums & 0xffff;
|
||||||
pMsg->ip_summed = CHECKSUM_HW;
|
pMsg->ip_summed = CHECKSUM_HW;
|
||||||
#else
|
#else
|
||||||
pMsg->ip_summed = CHECKSUM_NONE;
|
pMsg->ip_summed = CHECKSUM_NONE;
|
||||||
|
@@ -2280,11 +2280,13 @@ static int skge_xmit_frame(struct sk_buff *skb, struct net_device *dev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (unlikely(skge->tx_avail < skb_shinfo(skb)->nr_frags +1)) {
|
if (unlikely(skge->tx_avail < skb_shinfo(skb)->nr_frags +1)) {
|
||||||
|
if (!netif_stopped(dev)) {
|
||||||
netif_stop_queue(dev);
|
netif_stop_queue(dev);
|
||||||
spin_unlock_irqrestore(&skge->tx_lock, flags);
|
|
||||||
|
|
||||||
printk(KERN_WARNING PFX "%s: ring full when queue awake!\n",
|
printk(KERN_WARNING PFX "%s: ring full when queue awake!\n",
|
||||||
dev->name);
|
dev->name);
|
||||||
|
}
|
||||||
|
spin_unlock_irqrestore(&skge->tx_lock, flags);
|
||||||
return NETDEV_TX_BUSY;
|
return NETDEV_TX_BUSY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -68,8 +68,8 @@
|
|||||||
|
|
||||||
#define DRV_MODULE_NAME "tg3"
|
#define DRV_MODULE_NAME "tg3"
|
||||||
#define PFX DRV_MODULE_NAME ": "
|
#define PFX DRV_MODULE_NAME ": "
|
||||||
#define DRV_MODULE_VERSION "3.43"
|
#define DRV_MODULE_VERSION "3.44"
|
||||||
#define DRV_MODULE_RELDATE "Oct 24, 2005"
|
#define DRV_MODULE_RELDATE "Dec 6, 2005"
|
||||||
|
|
||||||
#define TG3_DEF_MAC_MODE 0
|
#define TG3_DEF_MAC_MODE 0
|
||||||
#define TG3_DEF_RX_MODE 0
|
#define TG3_DEF_RX_MODE 0
|
||||||
@@ -3565,12 +3565,15 @@ static int tg3_start_xmit(struct sk_buff *skb, struct net_device *dev)
|
|||||||
if (!spin_trylock(&tp->tx_lock))
|
if (!spin_trylock(&tp->tx_lock))
|
||||||
return NETDEV_TX_LOCKED;
|
return NETDEV_TX_LOCKED;
|
||||||
|
|
||||||
/* This is a hard error, log it. */
|
|
||||||
if (unlikely(TX_BUFFS_AVAIL(tp) <= (skb_shinfo(skb)->nr_frags + 1))) {
|
if (unlikely(TX_BUFFS_AVAIL(tp) <= (skb_shinfo(skb)->nr_frags + 1))) {
|
||||||
|
if (!netif_queue_stopped(dev)) {
|
||||||
netif_stop_queue(dev);
|
netif_stop_queue(dev);
|
||||||
|
|
||||||
|
/* This is a hard error, log it. */
|
||||||
|
printk(KERN_ERR PFX "%s: BUG! Tx Ring full when "
|
||||||
|
"queue awake!\n", dev->name);
|
||||||
|
}
|
||||||
spin_unlock(&tp->tx_lock);
|
spin_unlock(&tp->tx_lock);
|
||||||
printk(KERN_ERR PFX "%s: BUG! Tx Ring full when queue awake!\n",
|
|
||||||
dev->name);
|
|
||||||
return NETDEV_TX_BUSY;
|
return NETDEV_TX_BUSY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -243,7 +243,7 @@ static const struct ata_port_operations ahci_ops = {
|
|||||||
.port_stop = ahci_port_stop,
|
.port_stop = ahci_port_stop,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct ata_port_info ahci_port_info[] = {
|
static const struct ata_port_info ahci_port_info[] = {
|
||||||
/* board_ahci */
|
/* board_ahci */
|
||||||
{
|
{
|
||||||
.sht = &ahci_sht,
|
.sht = &ahci_sht,
|
||||||
@@ -643,7 +643,8 @@ static void ahci_eng_timeout(struct ata_port *ap)
|
|||||||
* not being called from the SCSI EH.
|
* not being called from the SCSI EH.
|
||||||
*/
|
*/
|
||||||
qc->scsidone = scsi_finish_command;
|
qc->scsidone = scsi_finish_command;
|
||||||
ata_qc_complete(qc, AC_ERR_OTHER);
|
qc->err_mask |= AC_ERR_OTHER;
|
||||||
|
ata_qc_complete(qc);
|
||||||
}
|
}
|
||||||
|
|
||||||
spin_unlock_irqrestore(&host_set->lock, flags);
|
spin_unlock_irqrestore(&host_set->lock, flags);
|
||||||
@@ -664,7 +665,8 @@ static inline int ahci_host_intr(struct ata_port *ap, struct ata_queued_cmd *qc)
|
|||||||
ci = readl(port_mmio + PORT_CMD_ISSUE);
|
ci = readl(port_mmio + PORT_CMD_ISSUE);
|
||||||
if (likely((ci & 0x1) == 0)) {
|
if (likely((ci & 0x1) == 0)) {
|
||||||
if (qc) {
|
if (qc) {
|
||||||
ata_qc_complete(qc, 0);
|
assert(qc->err_mask == 0);
|
||||||
|
ata_qc_complete(qc);
|
||||||
qc = NULL;
|
qc = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -681,8 +683,10 @@ static inline int ahci_host_intr(struct ata_port *ap, struct ata_queued_cmd *qc)
|
|||||||
/* command processing has stopped due to error; restart */
|
/* command processing has stopped due to error; restart */
|
||||||
ahci_restart_port(ap, status);
|
ahci_restart_port(ap, status);
|
||||||
|
|
||||||
if (qc)
|
if (qc) {
|
||||||
ata_qc_complete(qc, err_mask);
|
qc->err_mask |= AC_ERR_OTHER;
|
||||||
|
ata_qc_complete(qc);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
@@ -37,6 +37,49 @@
|
|||||||
*
|
*
|
||||||
* Hardware documentation available at http://developer.intel.com/
|
* Hardware documentation available at http://developer.intel.com/
|
||||||
*
|
*
|
||||||
|
* Documentation
|
||||||
|
* Publically available from Intel web site. Errata documentation
|
||||||
|
* is also publically available. As an aide to anyone hacking on this
|
||||||
|
* driver the list of errata that are relevant is below.going back to
|
||||||
|
* PIIX4. Older device documentation is now a bit tricky to find.
|
||||||
|
*
|
||||||
|
* The chipsets all follow very much the same design. The orginal Triton
|
||||||
|
* series chipsets do _not_ support independant device timings, but this
|
||||||
|
* is fixed in Triton II. With the odd mobile exception the chips then
|
||||||
|
* change little except in gaining more modes until SATA arrives. This
|
||||||
|
* driver supports only the chips with independant timing (that is those
|
||||||
|
* with SITRE and the 0x44 timing register). See pata_oldpiix and pata_mpiix
|
||||||
|
* for the early chip drivers.
|
||||||
|
*
|
||||||
|
* Errata of note:
|
||||||
|
*
|
||||||
|
* Unfixable
|
||||||
|
* PIIX4 errata #9 - Only on ultra obscure hw
|
||||||
|
* ICH3 errata #13 - Not observed to affect real hw
|
||||||
|
* by Intel
|
||||||
|
*
|
||||||
|
* Things we must deal with
|
||||||
|
* PIIX4 errata #10 - BM IDE hang with non UDMA
|
||||||
|
* (must stop/start dma to recover)
|
||||||
|
* 440MX errata #15 - As PIIX4 errata #10
|
||||||
|
* PIIX4 errata #15 - Must not read control registers
|
||||||
|
* during a PIO transfer
|
||||||
|
* 440MX errata #13 - As PIIX4 errata #15
|
||||||
|
* ICH2 errata #21 - DMA mode 0 doesn't work right
|
||||||
|
* ICH0/1 errata #55 - As ICH2 errata #21
|
||||||
|
* ICH2 spec c #9 - Extra operations needed to handle
|
||||||
|
* drive hotswap [NOT YET SUPPORTED]
|
||||||
|
* ICH2 spec c #20 - IDE PRD must not cross a 64K boundary
|
||||||
|
* and must be dword aligned
|
||||||
|
* ICH2 spec c #24 - UDMA mode 4,5 t85/86 should be 6ns not 3.3
|
||||||
|
*
|
||||||
|
* Should have been BIOS fixed:
|
||||||
|
* 450NX: errata #19 - DMA hangs on old 450NX
|
||||||
|
* 450NX: errata #20 - DMA hangs on old 450NX
|
||||||
|
* 450NX: errata #25 - Corruption with DMA on old 450NX
|
||||||
|
* ICH3 errata #15 - IDE deadlock under high load
|
||||||
|
* (BIOS must set dev 31 fn 0 bit 23)
|
||||||
|
* ICH3 errata #18 - Don't use native mode
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
@@ -576,6 +619,40 @@ static int piix_disable_ahci(struct pci_dev *pdev)
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* piix_check_450nx_errata - Check for problem 450NX setup
|
||||||
|
*
|
||||||
|
* Check for the present of 450NX errata #19 and errata #25. If
|
||||||
|
* they are found return an error code so we can turn off DMA
|
||||||
|
*/
|
||||||
|
|
||||||
|
static int __devinit piix_check_450nx_errata(struct pci_dev *ata_dev)
|
||||||
|
{
|
||||||
|
struct pci_dev *pdev = NULL;
|
||||||
|
u16 cfg;
|
||||||
|
u8 rev;
|
||||||
|
int no_piix_dma = 0;
|
||||||
|
|
||||||
|
while((pdev = pci_get_device(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82454NX, pdev)) != NULL)
|
||||||
|
{
|
||||||
|
/* Look for 450NX PXB. Check for problem configurations
|
||||||
|
A PCI quirk checks bit 6 already */
|
||||||
|
pci_read_config_byte(pdev, PCI_REVISION_ID, &rev);
|
||||||
|
pci_read_config_word(pdev, 0x41, &cfg);
|
||||||
|
/* Only on the original revision: IDE DMA can hang */
|
||||||
|
if(rev == 0x00)
|
||||||
|
no_piix_dma = 1;
|
||||||
|
/* On all revisions below 5 PXB bus lock must be disabled for IDE */
|
||||||
|
else if(cfg & (1<<14) && rev < 5)
|
||||||
|
no_piix_dma = 2;
|
||||||
|
}
|
||||||
|
if(no_piix_dma)
|
||||||
|
dev_printk(KERN_WARNING, &ata_dev->dev, "450NX errata present, disabling IDE DMA.\n");
|
||||||
|
if(no_piix_dma == 2)
|
||||||
|
dev_printk(KERN_WARNING, &ata_dev->dev, "A BIOS update may resolve this.\n");
|
||||||
|
return no_piix_dma;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* piix_init_one - Register PIIX ATA PCI device with kernel services
|
* piix_init_one - Register PIIX ATA PCI device with kernel services
|
||||||
* @pdev: PCI device to register
|
* @pdev: PCI device to register
|
||||||
@@ -650,7 +727,15 @@ static int piix_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
|
|||||||
"combined mode detected (p=%u, s=%u)\n",
|
"combined mode detected (p=%u, s=%u)\n",
|
||||||
pata_chan, sata_chan);
|
pata_chan, sata_chan);
|
||||||
}
|
}
|
||||||
|
if (piix_check_450nx_errata(pdev)) {
|
||||||
|
/* This writes into the master table but it does not
|
||||||
|
really matter for this errata as we will apply it to
|
||||||
|
all the PIIX devices on the board */
|
||||||
|
port_info[0]->mwdma_mask = 0;
|
||||||
|
port_info[0]->udma_mask = 0;
|
||||||
|
port_info[1]->mwdma_mask = 0;
|
||||||
|
port_info[1]->udma_mask = 0;
|
||||||
|
}
|
||||||
return ata_pci_init_one(pdev, port_info, 2);
|
return ata_pci_init_one(pdev, port_info, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -605,7 +605,7 @@ void ata_rwcmd_protocol(struct ata_queued_cmd *qc)
|
|||||||
tf->command = ata_rw_cmds[index + lba48 + write];
|
tf->command = ata_rw_cmds[index + lba48 + write];
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char * xfer_mode_str[] = {
|
static const char * const xfer_mode_str[] = {
|
||||||
"UDMA/16",
|
"UDMA/16",
|
||||||
"UDMA/25",
|
"UDMA/25",
|
||||||
"UDMA/33",
|
"UDMA/33",
|
||||||
@@ -1046,28 +1046,103 @@ static unsigned int ata_pio_modes(const struct ata_device *adev)
|
|||||||
return modes;
|
return modes;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ata_qc_wait_err(struct ata_queued_cmd *qc,
|
struct ata_exec_internal_arg {
|
||||||
struct completion *wait)
|
unsigned int err_mask;
|
||||||
|
struct ata_taskfile *tf;
|
||||||
|
struct completion *waiting;
|
||||||
|
};
|
||||||
|
|
||||||
|
int ata_qc_complete_internal(struct ata_queued_cmd *qc)
|
||||||
{
|
{
|
||||||
int rc = 0;
|
struct ata_exec_internal_arg *arg = qc->private_data;
|
||||||
|
struct completion *waiting = arg->waiting;
|
||||||
|
|
||||||
if (wait_for_completion_timeout(wait, 30 * HZ) < 1) {
|
if (!(qc->err_mask & ~AC_ERR_DEV))
|
||||||
/* timeout handling */
|
qc->ap->ops->tf_read(qc->ap, arg->tf);
|
||||||
unsigned int err_mask = ac_err_mask(ata_chk_status(qc->ap));
|
arg->err_mask = qc->err_mask;
|
||||||
|
arg->waiting = NULL;
|
||||||
|
complete(waiting);
|
||||||
|
|
||||||
if (!err_mask) {
|
return 0;
|
||||||
printk(KERN_WARNING "ata%u: slow completion (cmd %x)\n",
|
}
|
||||||
qc->ap->id, qc->tf.command);
|
|
||||||
} else {
|
/**
|
||||||
printk(KERN_WARNING "ata%u: qc timeout (cmd %x)\n",
|
* ata_exec_internal - execute libata internal command
|
||||||
qc->ap->id, qc->tf.command);
|
* @ap: Port to which the command is sent
|
||||||
rc = -EIO;
|
* @dev: Device to which the command is sent
|
||||||
|
* @tf: Taskfile registers for the command and the result
|
||||||
|
* @dma_dir: Data tranfer direction of the command
|
||||||
|
* @buf: Data buffer of the command
|
||||||
|
* @buflen: Length of data buffer
|
||||||
|
*
|
||||||
|
* Executes libata internal command with timeout. @tf contains
|
||||||
|
* command on entry and result on return. Timeout and error
|
||||||
|
* conditions are reported via return value. No recovery action
|
||||||
|
* is taken after a command times out. It's caller's duty to
|
||||||
|
* clean up after timeout.
|
||||||
|
*
|
||||||
|
* LOCKING:
|
||||||
|
* None. Should be called with kernel context, might sleep.
|
||||||
|
*/
|
||||||
|
|
||||||
|
static unsigned
|
||||||
|
ata_exec_internal(struct ata_port *ap, struct ata_device *dev,
|
||||||
|
struct ata_taskfile *tf,
|
||||||
|
int dma_dir, void *buf, unsigned int buflen)
|
||||||
|
{
|
||||||
|
u8 command = tf->command;
|
||||||
|
struct ata_queued_cmd *qc;
|
||||||
|
DECLARE_COMPLETION(wait);
|
||||||
|
unsigned long flags;
|
||||||
|
struct ata_exec_internal_arg arg;
|
||||||
|
|
||||||
|
spin_lock_irqsave(&ap->host_set->lock, flags);
|
||||||
|
|
||||||
|
qc = ata_qc_new_init(ap, dev);
|
||||||
|
BUG_ON(qc == NULL);
|
||||||
|
|
||||||
|
qc->tf = *tf;
|
||||||
|
qc->dma_dir = dma_dir;
|
||||||
|
if (dma_dir != DMA_NONE) {
|
||||||
|
ata_sg_init_one(qc, buf, buflen);
|
||||||
|
qc->nsect = buflen / ATA_SECT_SIZE;
|
||||||
}
|
}
|
||||||
|
|
||||||
ata_qc_complete(qc, err_mask);
|
arg.waiting = &wait;
|
||||||
|
arg.tf = tf;
|
||||||
|
qc->private_data = &arg;
|
||||||
|
qc->complete_fn = ata_qc_complete_internal;
|
||||||
|
|
||||||
|
if (ata_qc_issue(qc))
|
||||||
|
goto issue_fail;
|
||||||
|
|
||||||
|
spin_unlock_irqrestore(&ap->host_set->lock, flags);
|
||||||
|
|
||||||
|
if (!wait_for_completion_timeout(&wait, ATA_TMOUT_INTERNAL)) {
|
||||||
|
spin_lock_irqsave(&ap->host_set->lock, flags);
|
||||||
|
|
||||||
|
/* We're racing with irq here. If we lose, the
|
||||||
|
* following test prevents us from completing the qc
|
||||||
|
* again. If completion irq occurs after here but
|
||||||
|
* before the caller cleans up, it will result in a
|
||||||
|
* spurious interrupt. We can live with that.
|
||||||
|
*/
|
||||||
|
if (arg.waiting) {
|
||||||
|
qc->err_mask = AC_ERR_OTHER;
|
||||||
|
ata_qc_complete(qc);
|
||||||
|
printk(KERN_WARNING "ata%u: qc timeout (cmd 0x%x)\n",
|
||||||
|
ap->id, command);
|
||||||
}
|
}
|
||||||
|
|
||||||
return rc;
|
spin_unlock_irqrestore(&ap->host_set->lock, flags);
|
||||||
|
}
|
||||||
|
|
||||||
|
return arg.err_mask;
|
||||||
|
|
||||||
|
issue_fail:
|
||||||
|
ata_qc_free(qc);
|
||||||
|
spin_unlock_irqrestore(&ap->host_set->lock, flags);
|
||||||
|
return AC_ERR_OTHER;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1099,9 +1174,8 @@ static void ata_dev_identify(struct ata_port *ap, unsigned int device)
|
|||||||
u16 tmp;
|
u16 tmp;
|
||||||
unsigned long xfer_modes;
|
unsigned long xfer_modes;
|
||||||
unsigned int using_edd;
|
unsigned int using_edd;
|
||||||
DECLARE_COMPLETION(wait);
|
struct ata_taskfile tf;
|
||||||
struct ata_queued_cmd *qc;
|
unsigned int err_mask;
|
||||||
unsigned long flags;
|
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
if (!ata_dev_present(dev)) {
|
if (!ata_dev_present(dev)) {
|
||||||
@@ -1122,40 +1196,26 @@ static void ata_dev_identify(struct ata_port *ap, unsigned int device)
|
|||||||
|
|
||||||
ata_dev_select(ap, device, 1, 1); /* select device 0/1 */
|
ata_dev_select(ap, device, 1, 1); /* select device 0/1 */
|
||||||
|
|
||||||
qc = ata_qc_new_init(ap, dev);
|
|
||||||
BUG_ON(qc == NULL);
|
|
||||||
|
|
||||||
ata_sg_init_one(qc, dev->id, sizeof(dev->id));
|
|
||||||
qc->dma_dir = DMA_FROM_DEVICE;
|
|
||||||
qc->tf.protocol = ATA_PROT_PIO;
|
|
||||||
qc->nsect = 1;
|
|
||||||
|
|
||||||
retry:
|
retry:
|
||||||
|
ata_tf_init(ap, &tf, device);
|
||||||
|
|
||||||
if (dev->class == ATA_DEV_ATA) {
|
if (dev->class == ATA_DEV_ATA) {
|
||||||
qc->tf.command = ATA_CMD_ID_ATA;
|
tf.command = ATA_CMD_ID_ATA;
|
||||||
DPRINTK("do ATA identify\n");
|
DPRINTK("do ATA identify\n");
|
||||||
} else {
|
} else {
|
||||||
qc->tf.command = ATA_CMD_ID_ATAPI;
|
tf.command = ATA_CMD_ID_ATAPI;
|
||||||
DPRINTK("do ATAPI identify\n");
|
DPRINTK("do ATAPI identify\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
qc->waiting = &wait;
|
tf.protocol = ATA_PROT_PIO;
|
||||||
qc->complete_fn = ata_qc_complete_noop;
|
|
||||||
|
|
||||||
spin_lock_irqsave(&ap->host_set->lock, flags);
|
err_mask = ata_exec_internal(ap, dev, &tf, DMA_FROM_DEVICE,
|
||||||
rc = ata_qc_issue(qc);
|
dev->id, sizeof(dev->id));
|
||||||
spin_unlock_irqrestore(&ap->host_set->lock, flags);
|
|
||||||
|
|
||||||
if (rc)
|
if (err_mask) {
|
||||||
|
if (err_mask & ~AC_ERR_DEV)
|
||||||
goto err_out;
|
goto err_out;
|
||||||
else
|
|
||||||
ata_qc_wait_err(qc, &wait);
|
|
||||||
|
|
||||||
spin_lock_irqsave(&ap->host_set->lock, flags);
|
|
||||||
ap->ops->tf_read(ap, &qc->tf);
|
|
||||||
spin_unlock_irqrestore(&ap->host_set->lock, flags);
|
|
||||||
|
|
||||||
if (qc->tf.command & ATA_ERR) {
|
|
||||||
/*
|
/*
|
||||||
* arg! EDD works for all test cases, but seems to return
|
* arg! EDD works for all test cases, but seems to return
|
||||||
* the ATA signature for some ATAPI devices. Until the
|
* the ATA signature for some ATAPI devices. Until the
|
||||||
@@ -1168,13 +1228,9 @@ retry:
|
|||||||
* to have this problem.
|
* to have this problem.
|
||||||
*/
|
*/
|
||||||
if ((using_edd) && (dev->class == ATA_DEV_ATA)) {
|
if ((using_edd) && (dev->class == ATA_DEV_ATA)) {
|
||||||
u8 err = qc->tf.feature;
|
u8 err = tf.feature;
|
||||||
if (err & ATA_ABORTED) {
|
if (err & ATA_ABORTED) {
|
||||||
dev->class = ATA_DEV_ATAPI;
|
dev->class = ATA_DEV_ATAPI;
|
||||||
qc->cursg = 0;
|
|
||||||
qc->cursg_ofs = 0;
|
|
||||||
qc->cursect = 0;
|
|
||||||
qc->nsect = 1;
|
|
||||||
goto retry;
|
goto retry;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2083,7 +2139,7 @@ static void ata_pr_blacklisted(const struct ata_port *ap,
|
|||||||
ap->id, dev->devno);
|
ap->id, dev->devno);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char * ata_dma_blacklist [] = {
|
static const char * const ata_dma_blacklist [] = {
|
||||||
"WDC AC11000H",
|
"WDC AC11000H",
|
||||||
"WDC AC22100H",
|
"WDC AC22100H",
|
||||||
"WDC AC32500H",
|
"WDC AC32500H",
|
||||||
@@ -2278,34 +2334,23 @@ static int ata_choose_xfer_mode(const struct ata_port *ap,
|
|||||||
|
|
||||||
static void ata_dev_set_xfermode(struct ata_port *ap, struct ata_device *dev)
|
static void ata_dev_set_xfermode(struct ata_port *ap, struct ata_device *dev)
|
||||||
{
|
{
|
||||||
DECLARE_COMPLETION(wait);
|
struct ata_taskfile tf;
|
||||||
struct ata_queued_cmd *qc;
|
|
||||||
int rc;
|
|
||||||
unsigned long flags;
|
|
||||||
|
|
||||||
/* set up set-features taskfile */
|
/* set up set-features taskfile */
|
||||||
DPRINTK("set features - xfer mode\n");
|
DPRINTK("set features - xfer mode\n");
|
||||||
|
|
||||||
qc = ata_qc_new_init(ap, dev);
|
ata_tf_init(ap, &tf, dev->devno);
|
||||||
BUG_ON(qc == NULL);
|
tf.command = ATA_CMD_SET_FEATURES;
|
||||||
|
tf.feature = SETFEATURES_XFER;
|
||||||
|
tf.flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE;
|
||||||
|
tf.protocol = ATA_PROT_NODATA;
|
||||||
|
tf.nsect = dev->xfer_mode;
|
||||||
|
|
||||||
qc->tf.command = ATA_CMD_SET_FEATURES;
|
if (ata_exec_internal(ap, dev, &tf, DMA_NONE, NULL, 0)) {
|
||||||
qc->tf.feature = SETFEATURES_XFER;
|
printk(KERN_ERR "ata%u: failed to set xfermode, disabled\n",
|
||||||
qc->tf.flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE;
|
ap->id);
|
||||||
qc->tf.protocol = ATA_PROT_NODATA;
|
|
||||||
qc->tf.nsect = dev->xfer_mode;
|
|
||||||
|
|
||||||
qc->waiting = &wait;
|
|
||||||
qc->complete_fn = ata_qc_complete_noop;
|
|
||||||
|
|
||||||
spin_lock_irqsave(&ap->host_set->lock, flags);
|
|
||||||
rc = ata_qc_issue(qc);
|
|
||||||
spin_unlock_irqrestore(&ap->host_set->lock, flags);
|
|
||||||
|
|
||||||
if (rc)
|
|
||||||
ata_port_disable(ap);
|
ata_port_disable(ap);
|
||||||
else
|
}
|
||||||
ata_qc_wait_err(qc, &wait);
|
|
||||||
|
|
||||||
DPRINTK("EXIT\n");
|
DPRINTK("EXIT\n");
|
||||||
}
|
}
|
||||||
@@ -2320,41 +2365,25 @@ static void ata_dev_set_xfermode(struct ata_port *ap, struct ata_device *dev)
|
|||||||
|
|
||||||
static void ata_dev_reread_id(struct ata_port *ap, struct ata_device *dev)
|
static void ata_dev_reread_id(struct ata_port *ap, struct ata_device *dev)
|
||||||
{
|
{
|
||||||
DECLARE_COMPLETION(wait);
|
struct ata_taskfile tf;
|
||||||
struct ata_queued_cmd *qc;
|
|
||||||
unsigned long flags;
|
|
||||||
int rc;
|
|
||||||
|
|
||||||
qc = ata_qc_new_init(ap, dev);
|
ata_tf_init(ap, &tf, dev->devno);
|
||||||
BUG_ON(qc == NULL);
|
|
||||||
|
|
||||||
ata_sg_init_one(qc, dev->id, sizeof(dev->id));
|
|
||||||
qc->dma_dir = DMA_FROM_DEVICE;
|
|
||||||
|
|
||||||
if (dev->class == ATA_DEV_ATA) {
|
if (dev->class == ATA_DEV_ATA) {
|
||||||
qc->tf.command = ATA_CMD_ID_ATA;
|
tf.command = ATA_CMD_ID_ATA;
|
||||||
DPRINTK("do ATA identify\n");
|
DPRINTK("do ATA identify\n");
|
||||||
} else {
|
} else {
|
||||||
qc->tf.command = ATA_CMD_ID_ATAPI;
|
tf.command = ATA_CMD_ID_ATAPI;
|
||||||
DPRINTK("do ATAPI identify\n");
|
DPRINTK("do ATAPI identify\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
qc->tf.flags |= ATA_TFLAG_DEVICE;
|
tf.flags |= ATA_TFLAG_DEVICE;
|
||||||
qc->tf.protocol = ATA_PROT_PIO;
|
tf.protocol = ATA_PROT_PIO;
|
||||||
qc->nsect = 1;
|
|
||||||
|
|
||||||
qc->waiting = &wait;
|
if (ata_exec_internal(ap, dev, &tf, DMA_FROM_DEVICE,
|
||||||
qc->complete_fn = ata_qc_complete_noop;
|
dev->id, sizeof(dev->id)))
|
||||||
|
|
||||||
spin_lock_irqsave(&ap->host_set->lock, flags);
|
|
||||||
rc = ata_qc_issue(qc);
|
|
||||||
spin_unlock_irqrestore(&ap->host_set->lock, flags);
|
|
||||||
|
|
||||||
if (rc)
|
|
||||||
goto err_out;
|
goto err_out;
|
||||||
|
|
||||||
ata_qc_wait_err(qc, &wait);
|
|
||||||
|
|
||||||
swap_buf_le16(dev->id, ATA_ID_WORDS);
|
swap_buf_le16(dev->id, ATA_ID_WORDS);
|
||||||
|
|
||||||
ata_dump_id(dev);
|
ata_dump_id(dev);
|
||||||
@@ -2363,6 +2392,7 @@ static void ata_dev_reread_id(struct ata_port *ap, struct ata_device *dev)
|
|||||||
|
|
||||||
return;
|
return;
|
||||||
err_out:
|
err_out:
|
||||||
|
printk(KERN_ERR "ata%u: failed to reread ID, disabled\n", ap->id);
|
||||||
ata_port_disable(ap);
|
ata_port_disable(ap);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2376,10 +2406,7 @@ err_out:
|
|||||||
|
|
||||||
static void ata_dev_init_params(struct ata_port *ap, struct ata_device *dev)
|
static void ata_dev_init_params(struct ata_port *ap, struct ata_device *dev)
|
||||||
{
|
{
|
||||||
DECLARE_COMPLETION(wait);
|
struct ata_taskfile tf;
|
||||||
struct ata_queued_cmd *qc;
|
|
||||||
int rc;
|
|
||||||
unsigned long flags;
|
|
||||||
u16 sectors = dev->id[6];
|
u16 sectors = dev->id[6];
|
||||||
u16 heads = dev->id[3];
|
u16 heads = dev->id[3];
|
||||||
|
|
||||||
@@ -2390,26 +2417,18 @@ static void ata_dev_init_params(struct ata_port *ap, struct ata_device *dev)
|
|||||||
/* set up init dev params taskfile */
|
/* set up init dev params taskfile */
|
||||||
DPRINTK("init dev params \n");
|
DPRINTK("init dev params \n");
|
||||||
|
|
||||||
qc = ata_qc_new_init(ap, dev);
|
ata_tf_init(ap, &tf, dev->devno);
|
||||||
BUG_ON(qc == NULL);
|
tf.command = ATA_CMD_INIT_DEV_PARAMS;
|
||||||
|
tf.flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE;
|
||||||
|
tf.protocol = ATA_PROT_NODATA;
|
||||||
|
tf.nsect = sectors;
|
||||||
|
tf.device |= (heads - 1) & 0x0f; /* max head = num. of heads - 1 */
|
||||||
|
|
||||||
qc->tf.command = ATA_CMD_INIT_DEV_PARAMS;
|
if (ata_exec_internal(ap, dev, &tf, DMA_NONE, NULL, 0)) {
|
||||||
qc->tf.flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE;
|
printk(KERN_ERR "ata%u: failed to init parameters, disabled\n",
|
||||||
qc->tf.protocol = ATA_PROT_NODATA;
|
ap->id);
|
||||||
qc->tf.nsect = sectors;
|
|
||||||
qc->tf.device |= (heads - 1) & 0x0f; /* max head = num. of heads - 1 */
|
|
||||||
|
|
||||||
qc->waiting = &wait;
|
|
||||||
qc->complete_fn = ata_qc_complete_noop;
|
|
||||||
|
|
||||||
spin_lock_irqsave(&ap->host_set->lock, flags);
|
|
||||||
rc = ata_qc_issue(qc);
|
|
||||||
spin_unlock_irqrestore(&ap->host_set->lock, flags);
|
|
||||||
|
|
||||||
if (rc)
|
|
||||||
ata_port_disable(ap);
|
ata_port_disable(ap);
|
||||||
else
|
}
|
||||||
ata_qc_wait_err(qc, &wait);
|
|
||||||
|
|
||||||
DPRINTK("EXIT\n");
|
DPRINTK("EXIT\n");
|
||||||
}
|
}
|
||||||
@@ -2455,7 +2474,7 @@ static void ata_sg_clean(struct ata_queued_cmd *qc)
|
|||||||
struct scatterlist *psg = &qc->pad_sgent;
|
struct scatterlist *psg = &qc->pad_sgent;
|
||||||
void *addr = kmap_atomic(psg->page, KM_IRQ0);
|
void *addr = kmap_atomic(psg->page, KM_IRQ0);
|
||||||
memcpy(addr + psg->offset, pad_buf, qc->pad_len);
|
memcpy(addr + psg->offset, pad_buf, qc->pad_len);
|
||||||
kunmap_atomic(psg->page, KM_IRQ0);
|
kunmap_atomic(addr, KM_IRQ0);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (sg_dma_len(&sg[0]) > 0)
|
if (sg_dma_len(&sg[0]) > 0)
|
||||||
@@ -2729,7 +2748,7 @@ static int ata_sg_setup(struct ata_queued_cmd *qc)
|
|||||||
if (qc->tf.flags & ATA_TFLAG_WRITE) {
|
if (qc->tf.flags & ATA_TFLAG_WRITE) {
|
||||||
void *addr = kmap_atomic(psg->page, KM_IRQ0);
|
void *addr = kmap_atomic(psg->page, KM_IRQ0);
|
||||||
memcpy(pad_buf, addr + psg->offset, qc->pad_len);
|
memcpy(pad_buf, addr + psg->offset, qc->pad_len);
|
||||||
kunmap_atomic(psg->page, KM_IRQ0);
|
kunmap_atomic(addr, KM_IRQ0);
|
||||||
}
|
}
|
||||||
|
|
||||||
sg_dma_address(psg) = ap->pad_dma + (qc->tag * ATA_DMA_PAD_SZ);
|
sg_dma_address(psg) = ap->pad_dma + (qc->tag * ATA_DMA_PAD_SZ);
|
||||||
@@ -2777,7 +2796,7 @@ skip_map:
|
|||||||
* None. (grabs host lock)
|
* None. (grabs host lock)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void ata_poll_qc_complete(struct ata_queued_cmd *qc, unsigned int err_mask)
|
void ata_poll_qc_complete(struct ata_queued_cmd *qc)
|
||||||
{
|
{
|
||||||
struct ata_port *ap = qc->ap;
|
struct ata_port *ap = qc->ap;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
@@ -2785,7 +2804,7 @@ void ata_poll_qc_complete(struct ata_queued_cmd *qc, unsigned int err_mask)
|
|||||||
spin_lock_irqsave(&ap->host_set->lock, flags);
|
spin_lock_irqsave(&ap->host_set->lock, flags);
|
||||||
ap->flags &= ~ATA_FLAG_NOINTR;
|
ap->flags &= ~ATA_FLAG_NOINTR;
|
||||||
ata_irq_on(ap);
|
ata_irq_on(ap);
|
||||||
ata_qc_complete(qc, err_mask);
|
ata_qc_complete(qc);
|
||||||
spin_unlock_irqrestore(&ap->host_set->lock, flags);
|
spin_unlock_irqrestore(&ap->host_set->lock, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2802,10 +2821,14 @@ void ata_poll_qc_complete(struct ata_queued_cmd *qc, unsigned int err_mask)
|
|||||||
|
|
||||||
static unsigned long ata_pio_poll(struct ata_port *ap)
|
static unsigned long ata_pio_poll(struct ata_port *ap)
|
||||||
{
|
{
|
||||||
|
struct ata_queued_cmd *qc;
|
||||||
u8 status;
|
u8 status;
|
||||||
unsigned int poll_state = HSM_ST_UNKNOWN;
|
unsigned int poll_state = HSM_ST_UNKNOWN;
|
||||||
unsigned int reg_state = HSM_ST_UNKNOWN;
|
unsigned int reg_state = HSM_ST_UNKNOWN;
|
||||||
|
|
||||||
|
qc = ata_qc_from_tag(ap, ap->active_tag);
|
||||||
|
assert(qc != NULL);
|
||||||
|
|
||||||
switch (ap->hsm_task_state) {
|
switch (ap->hsm_task_state) {
|
||||||
case HSM_ST:
|
case HSM_ST:
|
||||||
case HSM_ST_POLL:
|
case HSM_ST_POLL:
|
||||||
@@ -2825,6 +2848,7 @@ static unsigned long ata_pio_poll(struct ata_port *ap)
|
|||||||
status = ata_chk_status(ap);
|
status = ata_chk_status(ap);
|
||||||
if (status & ATA_BUSY) {
|
if (status & ATA_BUSY) {
|
||||||
if (time_after(jiffies, ap->pio_task_timeout)) {
|
if (time_after(jiffies, ap->pio_task_timeout)) {
|
||||||
|
qc->err_mask |= AC_ERR_ATA_BUS;
|
||||||
ap->hsm_task_state = HSM_ST_TMOUT;
|
ap->hsm_task_state = HSM_ST_TMOUT;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -2859,29 +2883,31 @@ static int ata_pio_complete (struct ata_port *ap)
|
|||||||
* msecs, then chk-status again. If still busy, fall back to
|
* msecs, then chk-status again. If still busy, fall back to
|
||||||
* HSM_ST_POLL state.
|
* HSM_ST_POLL state.
|
||||||
*/
|
*/
|
||||||
drv_stat = ata_busy_wait(ap, ATA_BUSY | ATA_DRQ, 10);
|
drv_stat = ata_busy_wait(ap, ATA_BUSY, 10);
|
||||||
if (drv_stat & (ATA_BUSY | ATA_DRQ)) {
|
if (drv_stat & ATA_BUSY) {
|
||||||
msleep(2);
|
msleep(2);
|
||||||
drv_stat = ata_busy_wait(ap, ATA_BUSY | ATA_DRQ, 10);
|
drv_stat = ata_busy_wait(ap, ATA_BUSY, 10);
|
||||||
if (drv_stat & (ATA_BUSY | ATA_DRQ)) {
|
if (drv_stat & ATA_BUSY) {
|
||||||
ap->hsm_task_state = HSM_ST_LAST_POLL;
|
ap->hsm_task_state = HSM_ST_LAST_POLL;
|
||||||
ap->pio_task_timeout = jiffies + ATA_TMOUT_PIO;
|
ap->pio_task_timeout = jiffies + ATA_TMOUT_PIO;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
qc = ata_qc_from_tag(ap, ap->active_tag);
|
||||||
|
assert(qc != NULL);
|
||||||
|
|
||||||
drv_stat = ata_wait_idle(ap);
|
drv_stat = ata_wait_idle(ap);
|
||||||
if (!ata_ok(drv_stat)) {
|
if (!ata_ok(drv_stat)) {
|
||||||
|
qc->err_mask |= __ac_err_mask(drv_stat);
|
||||||
ap->hsm_task_state = HSM_ST_ERR;
|
ap->hsm_task_state = HSM_ST_ERR;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
qc = ata_qc_from_tag(ap, ap->active_tag);
|
|
||||||
assert(qc != NULL);
|
|
||||||
|
|
||||||
ap->hsm_task_state = HSM_ST_IDLE;
|
ap->hsm_task_state = HSM_ST_IDLE;
|
||||||
|
|
||||||
ata_poll_qc_complete(qc, 0);
|
assert(qc->err_mask == 0);
|
||||||
|
ata_poll_qc_complete(qc);
|
||||||
|
|
||||||
/* another command may start at this point */
|
/* another command may start at this point */
|
||||||
|
|
||||||
@@ -3189,6 +3215,7 @@ static void atapi_pio_bytes(struct ata_queued_cmd *qc)
|
|||||||
err_out:
|
err_out:
|
||||||
printk(KERN_INFO "ata%u: dev %u: ATAPI check failed\n",
|
printk(KERN_INFO "ata%u: dev %u: ATAPI check failed\n",
|
||||||
ap->id, dev->devno);
|
ap->id, dev->devno);
|
||||||
|
qc->err_mask |= AC_ERR_ATA_BUS;
|
||||||
ap->hsm_task_state = HSM_ST_ERR;
|
ap->hsm_task_state = HSM_ST_ERR;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3227,8 +3254,16 @@ static void ata_pio_block(struct ata_port *ap)
|
|||||||
qc = ata_qc_from_tag(ap, ap->active_tag);
|
qc = ata_qc_from_tag(ap, ap->active_tag);
|
||||||
assert(qc != NULL);
|
assert(qc != NULL);
|
||||||
|
|
||||||
|
/* check error */
|
||||||
|
if (status & (ATA_ERR | ATA_DF)) {
|
||||||
|
qc->err_mask |= AC_ERR_DEV;
|
||||||
|
ap->hsm_task_state = HSM_ST_ERR;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* transfer data if any */
|
||||||
if (is_atapi_taskfile(&qc->tf)) {
|
if (is_atapi_taskfile(&qc->tf)) {
|
||||||
/* no more data to transfer or unsupported ATAPI command */
|
/* DRQ=0 means no more data to transfer */
|
||||||
if ((status & ATA_DRQ) == 0) {
|
if ((status & ATA_DRQ) == 0) {
|
||||||
ap->hsm_task_state = HSM_ST_LAST;
|
ap->hsm_task_state = HSM_ST_LAST;
|
||||||
return;
|
return;
|
||||||
@@ -3238,6 +3273,7 @@ static void ata_pio_block(struct ata_port *ap)
|
|||||||
} else {
|
} else {
|
||||||
/* handle BSY=0, DRQ=0 as error */
|
/* handle BSY=0, DRQ=0 as error */
|
||||||
if ((status & ATA_DRQ) == 0) {
|
if ((status & ATA_DRQ) == 0) {
|
||||||
|
qc->err_mask |= AC_ERR_ATA_BUS;
|
||||||
ap->hsm_task_state = HSM_ST_ERR;
|
ap->hsm_task_state = HSM_ST_ERR;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -3255,9 +3291,14 @@ static void ata_pio_error(struct ata_port *ap)
|
|||||||
qc = ata_qc_from_tag(ap, ap->active_tag);
|
qc = ata_qc_from_tag(ap, ap->active_tag);
|
||||||
assert(qc != NULL);
|
assert(qc != NULL);
|
||||||
|
|
||||||
|
/* make sure qc->err_mask is available to
|
||||||
|
* know what's wrong and recover
|
||||||
|
*/
|
||||||
|
assert(qc->err_mask);
|
||||||
|
|
||||||
ap->hsm_task_state = HSM_ST_IDLE;
|
ap->hsm_task_state = HSM_ST_IDLE;
|
||||||
|
|
||||||
ata_poll_qc_complete(qc, AC_ERR_ATA_BUS);
|
ata_poll_qc_complete(qc);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ata_pio_task(void *_data)
|
static void ata_pio_task(void *_data)
|
||||||
@@ -3359,7 +3400,8 @@ static void ata_qc_timeout(struct ata_queued_cmd *qc)
|
|||||||
ap->id, qc->tf.command, drv_stat, host_stat);
|
ap->id, qc->tf.command, drv_stat, host_stat);
|
||||||
|
|
||||||
/* complete taskfile transaction */
|
/* complete taskfile transaction */
|
||||||
ata_qc_complete(qc, ac_err_mask(drv_stat));
|
qc->err_mask |= ac_err_mask(drv_stat);
|
||||||
|
ata_qc_complete(qc);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3458,15 +3500,10 @@ struct ata_queued_cmd *ata_qc_new_init(struct ata_port *ap,
|
|||||||
return qc;
|
return qc;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ata_qc_complete_noop(struct ata_queued_cmd *qc, unsigned int err_mask)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void __ata_qc_complete(struct ata_queued_cmd *qc)
|
static void __ata_qc_complete(struct ata_queued_cmd *qc)
|
||||||
{
|
{
|
||||||
struct ata_port *ap = qc->ap;
|
struct ata_port *ap = qc->ap;
|
||||||
unsigned int tag, do_clear = 0;
|
unsigned int tag;
|
||||||
|
|
||||||
qc->flags = 0;
|
qc->flags = 0;
|
||||||
tag = qc->tag;
|
tag = qc->tag;
|
||||||
@@ -3474,17 +3511,8 @@ static void __ata_qc_complete(struct ata_queued_cmd *qc)
|
|||||||
if (tag == ap->active_tag)
|
if (tag == ap->active_tag)
|
||||||
ap->active_tag = ATA_TAG_POISON;
|
ap->active_tag = ATA_TAG_POISON;
|
||||||
qc->tag = ATA_TAG_POISON;
|
qc->tag = ATA_TAG_POISON;
|
||||||
do_clear = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (qc->waiting) {
|
|
||||||
struct completion *waiting = qc->waiting;
|
|
||||||
qc->waiting = NULL;
|
|
||||||
complete(waiting);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (likely(do_clear))
|
|
||||||
clear_bit(tag, &ap->qactive);
|
clear_bit(tag, &ap->qactive);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -3500,7 +3528,6 @@ static void __ata_qc_complete(struct ata_queued_cmd *qc)
|
|||||||
void ata_qc_free(struct ata_queued_cmd *qc)
|
void ata_qc_free(struct ata_queued_cmd *qc)
|
||||||
{
|
{
|
||||||
assert(qc != NULL); /* ata_qc_from_tag _might_ return NULL */
|
assert(qc != NULL); /* ata_qc_from_tag _might_ return NULL */
|
||||||
assert(qc->waiting == NULL); /* nothing should be waiting */
|
|
||||||
|
|
||||||
__ata_qc_complete(qc);
|
__ata_qc_complete(qc);
|
||||||
}
|
}
|
||||||
@@ -3517,7 +3544,7 @@ void ata_qc_free(struct ata_queued_cmd *qc)
|
|||||||
* spin_lock_irqsave(host_set lock)
|
* spin_lock_irqsave(host_set lock)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void ata_qc_complete(struct ata_queued_cmd *qc, unsigned int err_mask)
|
void ata_qc_complete(struct ata_queued_cmd *qc)
|
||||||
{
|
{
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
@@ -3534,7 +3561,7 @@ void ata_qc_complete(struct ata_queued_cmd *qc, unsigned int err_mask)
|
|||||||
qc->flags &= ~ATA_QCFLAG_ACTIVE;
|
qc->flags &= ~ATA_QCFLAG_ACTIVE;
|
||||||
|
|
||||||
/* call completion callback */
|
/* call completion callback */
|
||||||
rc = qc->complete_fn(qc, err_mask);
|
rc = qc->complete_fn(qc);
|
||||||
|
|
||||||
/* if callback indicates not to complete command (non-zero),
|
/* if callback indicates not to complete command (non-zero),
|
||||||
* return immediately
|
* return immediately
|
||||||
@@ -3972,7 +3999,8 @@ inline unsigned int ata_host_intr (struct ata_port *ap,
|
|||||||
ap->ops->irq_clear(ap);
|
ap->ops->irq_clear(ap);
|
||||||
|
|
||||||
/* complete taskfile transaction */
|
/* complete taskfile transaction */
|
||||||
ata_qc_complete(qc, ac_err_mask(status));
|
qc->err_mask |= ac_err_mask(status);
|
||||||
|
ata_qc_complete(qc);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@@ -4066,13 +4094,17 @@ static void atapi_packet_task(void *_data)
|
|||||||
|
|
||||||
/* sleep-wait for BSY to clear */
|
/* sleep-wait for BSY to clear */
|
||||||
DPRINTK("busy wait\n");
|
DPRINTK("busy wait\n");
|
||||||
if (ata_busy_sleep(ap, ATA_TMOUT_CDB_QUICK, ATA_TMOUT_CDB))
|
if (ata_busy_sleep(ap, ATA_TMOUT_CDB_QUICK, ATA_TMOUT_CDB)) {
|
||||||
goto err_out_status;
|
qc->err_mask |= AC_ERR_ATA_BUS;
|
||||||
|
goto err_out;
|
||||||
|
}
|
||||||
|
|
||||||
/* make sure DRQ is set */
|
/* make sure DRQ is set */
|
||||||
status = ata_chk_status(ap);
|
status = ata_chk_status(ap);
|
||||||
if ((status & (ATA_BUSY | ATA_DRQ)) != ATA_DRQ)
|
if ((status & (ATA_BUSY | ATA_DRQ)) != ATA_DRQ) {
|
||||||
|
qc->err_mask |= AC_ERR_ATA_BUS;
|
||||||
goto err_out;
|
goto err_out;
|
||||||
|
}
|
||||||
|
|
||||||
/* send SCSI cdb */
|
/* send SCSI cdb */
|
||||||
DPRINTK("send cdb\n");
|
DPRINTK("send cdb\n");
|
||||||
@@ -4104,10 +4136,8 @@ static void atapi_packet_task(void *_data)
|
|||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
err_out_status:
|
|
||||||
status = ata_chk_status(ap);
|
|
||||||
err_out:
|
err_out:
|
||||||
ata_poll_qc_complete(qc, __ac_err_mask(status));
|
ata_poll_qc_complete(qc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -418,7 +418,7 @@ void ata_to_sense_error(unsigned id, u8 drv_stat, u8 drv_err, u8 *sk, u8 *asc,
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
/* Based on the 3ware driver translation table */
|
/* Based on the 3ware driver translation table */
|
||||||
static unsigned char sense_table[][4] = {
|
static const unsigned char sense_table[][4] = {
|
||||||
/* BBD|ECC|ID|MAR */
|
/* BBD|ECC|ID|MAR */
|
||||||
{0xd1, ABORTED_COMMAND, 0x00, 0x00}, // Device busy Aborted command
|
{0xd1, ABORTED_COMMAND, 0x00, 0x00}, // Device busy Aborted command
|
||||||
/* BBD|ECC|ID */
|
/* BBD|ECC|ID */
|
||||||
@@ -449,7 +449,7 @@ void ata_to_sense_error(unsigned id, u8 drv_stat, u8 drv_err, u8 *sk, u8 *asc,
|
|||||||
{0x80, MEDIUM_ERROR, 0x11, 0x04}, // Block marked bad Medium error, unrecovered read error
|
{0x80, MEDIUM_ERROR, 0x11, 0x04}, // Block marked bad Medium error, unrecovered read error
|
||||||
{0xFF, 0xFF, 0xFF, 0xFF}, // END mark
|
{0xFF, 0xFF, 0xFF, 0xFF}, // END mark
|
||||||
};
|
};
|
||||||
static unsigned char stat_table[][4] = {
|
static const unsigned char stat_table[][4] = {
|
||||||
/* Must be first because BUSY means no other bits valid */
|
/* Must be first because BUSY means no other bits valid */
|
||||||
{0x80, ABORTED_COMMAND, 0x47, 0x00}, // Busy, fake parity for now
|
{0x80, ABORTED_COMMAND, 0x47, 0x00}, // Busy, fake parity for now
|
||||||
{0x20, HARDWARE_ERROR, 0x00, 0x00}, // Device fault
|
{0x20, HARDWARE_ERROR, 0x00, 0x00}, // Device fault
|
||||||
@@ -1197,12 +1197,11 @@ nothing_to_do:
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ata_scsi_qc_complete(struct ata_queued_cmd *qc,
|
static int ata_scsi_qc_complete(struct ata_queued_cmd *qc)
|
||||||
unsigned int err_mask)
|
|
||||||
{
|
{
|
||||||
struct scsi_cmnd *cmd = qc->scsicmd;
|
struct scsi_cmnd *cmd = qc->scsicmd;
|
||||||
u8 *cdb = cmd->cmnd;
|
u8 *cdb = cmd->cmnd;
|
||||||
int need_sense = (err_mask != 0);
|
int need_sense = (qc->err_mask != 0);
|
||||||
|
|
||||||
/* For ATA pass thru (SAT) commands, generate a sense block if
|
/* For ATA pass thru (SAT) commands, generate a sense block if
|
||||||
* user mandated it or if there's an error. Note that if we
|
* user mandated it or if there's an error. Note that if we
|
||||||
@@ -1526,7 +1525,7 @@ unsigned int ata_scsiop_inq_80(struct ata_scsi_args *args, u8 *rbuf,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *inq_83_str = "Linux ATA-SCSI simulator";
|
static const char * const inq_83_str = "Linux ATA-SCSI simulator";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ata_scsiop_inq_83 - Simulate INQUIRY EVPD page 83, device identity
|
* ata_scsiop_inq_83 - Simulate INQUIRY EVPD page 83, device identity
|
||||||
@@ -1949,9 +1948,9 @@ void ata_scsi_badcmd(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd *), u8
|
|||||||
done(cmd);
|
done(cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int atapi_sense_complete(struct ata_queued_cmd *qc,unsigned int err_mask)
|
static int atapi_sense_complete(struct ata_queued_cmd *qc)
|
||||||
{
|
{
|
||||||
if (err_mask && ((err_mask & AC_ERR_DEV) == 0))
|
if (qc->err_mask && ((qc->err_mask & AC_ERR_DEV) == 0))
|
||||||
/* FIXME: not quite right; we don't want the
|
/* FIXME: not quite right; we don't want the
|
||||||
* translation of taskfile registers into
|
* translation of taskfile registers into
|
||||||
* a sense descriptors, since that's only
|
* a sense descriptors, since that's only
|
||||||
@@ -2009,15 +2008,18 @@ static void atapi_request_sense(struct ata_queued_cmd *qc)
|
|||||||
|
|
||||||
qc->complete_fn = atapi_sense_complete;
|
qc->complete_fn = atapi_sense_complete;
|
||||||
|
|
||||||
if (ata_qc_issue(qc))
|
if (ata_qc_issue(qc)) {
|
||||||
ata_qc_complete(qc, AC_ERR_OTHER);
|
qc->err_mask |= AC_ERR_OTHER;
|
||||||
|
ata_qc_complete(qc);
|
||||||
|
}
|
||||||
|
|
||||||
DPRINTK("EXIT\n");
|
DPRINTK("EXIT\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
static int atapi_qc_complete(struct ata_queued_cmd *qc, unsigned int err_mask)
|
static int atapi_qc_complete(struct ata_queued_cmd *qc)
|
||||||
{
|
{
|
||||||
struct scsi_cmnd *cmd = qc->scsicmd;
|
struct scsi_cmnd *cmd = qc->scsicmd;
|
||||||
|
unsigned int err_mask = qc->err_mask;
|
||||||
|
|
||||||
VPRINTK("ENTER, err_mask 0x%X\n", err_mask);
|
VPRINTK("ENTER, err_mask 0x%X\n", err_mask);
|
||||||
|
|
||||||
|
@@ -39,7 +39,6 @@ struct ata_scsi_args {
|
|||||||
|
|
||||||
/* libata-core.c */
|
/* libata-core.c */
|
||||||
extern int atapi_enabled;
|
extern int atapi_enabled;
|
||||||
extern int ata_qc_complete_noop(struct ata_queued_cmd *qc, unsigned int err_mask);
|
|
||||||
extern struct ata_queued_cmd *ata_qc_new_init(struct ata_port *ap,
|
extern struct ata_queued_cmd *ata_qc_new_init(struct ata_port *ap,
|
||||||
struct ata_device *dev);
|
struct ata_device *dev);
|
||||||
extern void ata_rwcmd_protocol(struct ata_queued_cmd *qc);
|
extern void ata_rwcmd_protocol(struct ata_queued_cmd *qc);
|
||||||
|
@@ -464,14 +464,12 @@ static inline unsigned int adma_intr_pkt(struct ata_host_set *host_set)
|
|||||||
continue;
|
continue;
|
||||||
qc = ata_qc_from_tag(ap, ap->active_tag);
|
qc = ata_qc_from_tag(ap, ap->active_tag);
|
||||||
if (qc && (!(qc->tf.ctl & ATA_NIEN))) {
|
if (qc && (!(qc->tf.ctl & ATA_NIEN))) {
|
||||||
unsigned int err_mask = 0;
|
|
||||||
|
|
||||||
if ((status & (aPERR | aPSD | aUIRQ)))
|
if ((status & (aPERR | aPSD | aUIRQ)))
|
||||||
err_mask = AC_ERR_OTHER;
|
qc->err_mask |= AC_ERR_OTHER;
|
||||||
else if (pp->pkt[0] != cDONE)
|
else if (pp->pkt[0] != cDONE)
|
||||||
err_mask = AC_ERR_OTHER;
|
qc->err_mask |= AC_ERR_OTHER;
|
||||||
|
|
||||||
ata_qc_complete(qc, err_mask);
|
ata_qc_complete(qc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return handled;
|
return handled;
|
||||||
@@ -501,7 +499,8 @@ static inline unsigned int adma_intr_mmio(struct ata_host_set *host_set)
|
|||||||
|
|
||||||
/* complete taskfile transaction */
|
/* complete taskfile transaction */
|
||||||
pp->state = adma_state_idle;
|
pp->state = adma_state_idle;
|
||||||
ata_qc_complete(qc, ac_err_mask(status));
|
qc->err_mask |= ac_err_mask(status);
|
||||||
|
ata_qc_complete(qc);
|
||||||
handled = 1;
|
handled = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -430,7 +430,7 @@ static const struct ata_port_operations mv6_ops = {
|
|||||||
.host_stop = mv_host_stop,
|
.host_stop = mv_host_stop,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct ata_port_info mv_port_info[] = {
|
static const struct ata_port_info mv_port_info[] = {
|
||||||
{ /* chip_504x */
|
{ /* chip_504x */
|
||||||
.sht = &mv_sht,
|
.sht = &mv_sht,
|
||||||
.host_flags = MV_COMMON_FLAGS,
|
.host_flags = MV_COMMON_FLAGS,
|
||||||
@@ -1242,8 +1242,10 @@ static void mv_host_intr(struct ata_host_set *host_set, u32 relevant,
|
|||||||
VPRINTK("port %u IRQ found for qc, "
|
VPRINTK("port %u IRQ found for qc, "
|
||||||
"ata_status 0x%x\n", port,ata_status);
|
"ata_status 0x%x\n", port,ata_status);
|
||||||
/* mark qc status appropriately */
|
/* mark qc status appropriately */
|
||||||
if (!(qc->tf.ctl & ATA_NIEN))
|
if (!(qc->tf.ctl & ATA_NIEN)) {
|
||||||
ata_qc_complete(qc, err_mask);
|
qc->err_mask |= err_mask;
|
||||||
|
ata_qc_complete(qc);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1864,7 +1866,8 @@ static void mv_eng_timeout(struct ata_port *ap)
|
|||||||
*/
|
*/
|
||||||
spin_lock_irqsave(&ap->host_set->lock, flags);
|
spin_lock_irqsave(&ap->host_set->lock, flags);
|
||||||
qc->scsidone = scsi_finish_command;
|
qc->scsidone = scsi_finish_command;
|
||||||
ata_qc_complete(qc, AC_ERR_OTHER);
|
qc->err_mask |= AC_ERR_OTHER;
|
||||||
|
ata_qc_complete(qc);
|
||||||
spin_unlock_irqrestore(&ap->host_set->lock, flags);
|
spin_unlock_irqrestore(&ap->host_set->lock, flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -158,7 +158,7 @@ static const struct ata_port_operations pdc_pata_ops = {
|
|||||||
.host_stop = ata_pci_host_stop,
|
.host_stop = ata_pci_host_stop,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct ata_port_info pdc_port_info[] = {
|
static const struct ata_port_info pdc_port_info[] = {
|
||||||
/* board_2037x */
|
/* board_2037x */
|
||||||
{
|
{
|
||||||
.sht = &pdc_ata_sht,
|
.sht = &pdc_ata_sht,
|
||||||
@@ -401,7 +401,8 @@ static void pdc_eng_timeout(struct ata_port *ap)
|
|||||||
case ATA_PROT_NODATA:
|
case ATA_PROT_NODATA:
|
||||||
printk(KERN_ERR "ata%u: command timeout\n", ap->id);
|
printk(KERN_ERR "ata%u: command timeout\n", ap->id);
|
||||||
drv_stat = ata_wait_idle(ap);
|
drv_stat = ata_wait_idle(ap);
|
||||||
ata_qc_complete(qc, __ac_err_mask(drv_stat));
|
qc->err_mask |= __ac_err_mask(drv_stat);
|
||||||
|
ata_qc_complete(qc);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@@ -410,7 +411,8 @@ static void pdc_eng_timeout(struct ata_port *ap)
|
|||||||
printk(KERN_ERR "ata%u: unknown timeout, cmd 0x%x stat 0x%x\n",
|
printk(KERN_ERR "ata%u: unknown timeout, cmd 0x%x stat 0x%x\n",
|
||||||
ap->id, qc->tf.command, drv_stat);
|
ap->id, qc->tf.command, drv_stat);
|
||||||
|
|
||||||
ata_qc_complete(qc, ac_err_mask(drv_stat));
|
qc->err_mask |= ac_err_mask(drv_stat);
|
||||||
|
ata_qc_complete(qc);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -422,21 +424,21 @@ out:
|
|||||||
static inline unsigned int pdc_host_intr( struct ata_port *ap,
|
static inline unsigned int pdc_host_intr( struct ata_port *ap,
|
||||||
struct ata_queued_cmd *qc)
|
struct ata_queued_cmd *qc)
|
||||||
{
|
{
|
||||||
unsigned int handled = 0, err_mask = 0;
|
unsigned int handled = 0;
|
||||||
u32 tmp;
|
u32 tmp;
|
||||||
void __iomem *mmio = (void __iomem *) ap->ioaddr.cmd_addr + PDC_GLOBAL_CTL;
|
void __iomem *mmio = (void __iomem *) ap->ioaddr.cmd_addr + PDC_GLOBAL_CTL;
|
||||||
|
|
||||||
tmp = readl(mmio);
|
tmp = readl(mmio);
|
||||||
if (tmp & PDC_ERR_MASK) {
|
if (tmp & PDC_ERR_MASK) {
|
||||||
err_mask = AC_ERR_DEV;
|
qc->err_mask |= AC_ERR_DEV;
|
||||||
pdc_reset_port(ap);
|
pdc_reset_port(ap);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (qc->tf.protocol) {
|
switch (qc->tf.protocol) {
|
||||||
case ATA_PROT_DMA:
|
case ATA_PROT_DMA:
|
||||||
case ATA_PROT_NODATA:
|
case ATA_PROT_NODATA:
|
||||||
err_mask |= ac_err_mask(ata_wait_idle(ap));
|
qc->err_mask |= ac_err_mask(ata_wait_idle(ap));
|
||||||
ata_qc_complete(qc, err_mask);
|
ata_qc_complete(qc);
|
||||||
handled = 1;
|
handled = 1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@@ -170,7 +170,7 @@ static const struct ata_port_operations qs_ata_ops = {
|
|||||||
.bmdma_status = qs_bmdma_status,
|
.bmdma_status = qs_bmdma_status,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct ata_port_info qs_port_info[] = {
|
static const struct ata_port_info qs_port_info[] = {
|
||||||
/* board_2068_idx */
|
/* board_2068_idx */
|
||||||
{
|
{
|
||||||
.sht = &qs_ata_sht,
|
.sht = &qs_ata_sht,
|
||||||
@@ -409,8 +409,8 @@ static inline unsigned int qs_intr_pkt(struct ata_host_set *host_set)
|
|||||||
case 3: /* device error */
|
case 3: /* device error */
|
||||||
pp->state = qs_state_idle;
|
pp->state = qs_state_idle;
|
||||||
qs_enter_reg_mode(qc->ap);
|
qs_enter_reg_mode(qc->ap);
|
||||||
ata_qc_complete(qc,
|
qc->err_mask |= ac_err_mask(sDST);
|
||||||
ac_err_mask(sDST));
|
ata_qc_complete(qc);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@@ -447,7 +447,8 @@ static inline unsigned int qs_intr_mmio(struct ata_host_set *host_set)
|
|||||||
|
|
||||||
/* complete taskfile transaction */
|
/* complete taskfile transaction */
|
||||||
pp->state = qs_state_idle;
|
pp->state = qs_state_idle;
|
||||||
ata_qc_complete(qc, ac_err_mask(status));
|
qc->err_mask |= ac_err_mask(status);
|
||||||
|
ata_qc_complete(qc);
|
||||||
handled = 1;
|
handled = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user