Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5722
b: refs/heads/master
c: 6fc0b4a
h: refs/heads/master
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Aug 6, 2005
1 parent 7de27e7 commit 59dceeb
Show file tree
Hide file tree
Showing 63 changed files with 442 additions and 1,747 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 03c6b749b364fe7b8e47ed8e1ce26baca167c322
refs/heads/master: 6fc0b4a7a73a81e74d0004732df358f4f9975be2
4 changes: 2 additions & 2 deletions trunk/CREDITS
Original file line number Diff line number Diff line change
Expand Up @@ -2380,8 +2380,8 @@ E: tmolina@cablespeed.com
D: bug fixes, documentation, minor hackery

N: James Morris
E: jmorris@namei.org
W: http://namei.org/
E: jmorris@redhat.com
W: http://www.intercode.com.au/jmorris/
D: Netfilter, Linux Security Modules (LSM), SELinux, IPSec,
D: Crypto API, general networking, miscellaneous.
S: PO Box 707
Expand Down
5 changes: 0 additions & 5 deletions trunk/Documentation/x86_64/boot-options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ only the AMD64 specific ones are listed here.
Machine check

mce=off disable machine check
mce=bootlog Enable logging of machine checks left over from booting.
Disabled by default because some BIOS leave bogus ones.
If your BIOS doesn't do that it's a good idea to enable though
to make sure you log even machine check events that result
in a reboot.

nomce (for compatibility with i386): same as mce=off

Expand Down
4 changes: 2 additions & 2 deletions trunk/MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -1658,7 +1658,7 @@ M: kuznet@ms2.inr.ac.ru
P: Pekka Savola (ipv6)
M: pekkas@netcore.fi
P: James Morris
M: jmorris@namei.org
M: jmorris@redhat.com
P: Hideaki YOSHIFUJI
M: yoshfuji@linux-ipv6.org
P: Patrick McHardy
Expand Down Expand Up @@ -2047,7 +2047,7 @@ SELINUX SECURITY MODULE
P: Stephen Smalley
M: sds@epoch.ncsc.mil
P: James Morris
M: jmorris@namei.org
M: jmorris@redhat.com
L: linux-kernel@vger.kernel.org (kernel issues)
L: selinux@tycho.nsa.gov (general discussion)
W: http://www.nsa.gov/selinux
Expand Down
2 changes: 1 addition & 1 deletion trunk/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 13
EXTRAVERSION =-rc6
EXTRAVERSION =-rc5
NAME=Woozy Numbat

# *DOCUMENTATION*
Expand Down
11 changes: 1 addition & 10 deletions trunk/arch/i386/mach-visws/reboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,19 @@
void (*pm_power_off)(void);
EXPORT_SYMBOL(pm_power_off);

void machine_shutdown(void)
void machine_restart(char * __unused)
{
#ifdef CONFIG_SMP
smp_send_stop();
#endif
}

void machine_emergency_restart(void)
{
/*
* Visual Workstations restart after this
* register is poked on the PIIX4
*/
outb(PIIX4_RESET_VAL, PIIX4_RESET_PORT);
}

void machine_restart(char * __unused)
{
machine_shutdown();
machine_emergency_restart();
}

void machine_power_off(void)
{
unsigned short pm_status;
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/i386/mach-visws/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
#include "cobalt.h"
#include "piix4.h"

int no_broadcast;

char visws_board_type = -1;
char visws_board_rev = -1;

Expand Down
6 changes: 0 additions & 6 deletions trunk/arch/i386/mach-voyager/voyager_basic.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,6 @@ kb_wait(void)
break;
}

void
machine_shutdown(void)
{
/* Architecture specific shutdown needed before a kexec */
}

void
machine_restart(char *cmd)
{
Expand Down
19 changes: 8 additions & 11 deletions trunk/arch/i386/mm/discontig.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,14 @@ static unsigned long calculate_numa_remap_pages(void)
/* now the roundup is correct, convert to PAGE_SIZE pages */
size = size * PTRS_PER_PTE;

if (node_end_pfn[nid] & (PTRS_PER_PTE-1)) {
/*
* Adjust size if node_end_pfn is not on a proper
* pmd boundary. remap_numa_kva will barf otherwise.
*/
size += node_end_pfn[nid] & (PTRS_PER_PTE-1);
}

/*
* Validate the region we are allocating only contains valid
* pages.
Expand All @@ -262,17 +270,6 @@ static unsigned long calculate_numa_remap_pages(void)
reserve_pages += size;
printk("Shrinking node %d from %ld pages to %ld pages\n",
nid, node_end_pfn[nid], node_end_pfn[nid] - size);

if (node_end_pfn[nid] & (PTRS_PER_PTE-1)) {
/*
* Align node_end_pfn[] and node_remap_start_pfn[] to
* pmd boundary. remap_numa_kva will barf otherwise.
*/
printk("Shrinking node %d further by %ld pages for proper alignment\n",
nid, node_end_pfn[nid] & (PTRS_PER_PTE-1));
size += node_end_pfn[nid] & (PTRS_PER_PTE-1);
}

node_end_pfn[nid] -= size;
node_remap_start_pfn[nid] = node_end_pfn[nid];
}
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/i386/pci/visws.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@
extern struct pci_raw_ops pci_direct_conf1;

static int pci_visws_enable_irq(struct pci_dev *dev) { return 0; }
static void pci_visws_disable_irq(struct pci_dev *dev) { }

int (*pcibios_enable_irq)(struct pci_dev *dev) = &pci_visws_enable_irq;
void (*pcibios_disable_irq)(struct pci_dev *dev) = &pci_visws_disable_irq;

void __init pcibios_penalize_isa_irq(int irq, int active) {}

Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/ppc/8xx_io/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ config FEC_QS6612

config ENET_BIG_BUFFERS
bool "Use Big CPM Ethernet Buffers"
depends on SCC_ENET || FEC_ENET
depends on NET_ETHERNET
help
Allocate large buffers for MPC8xx Ethernet. Increases throughput
Allocate large buffers for MPC8xx Etherenet. Increases throughput
and decreases the likelihood of dropped packets, but costs memory.

config HTDMSOUND
Expand Down
20 changes: 19 additions & 1 deletion trunk/arch/ppc/8xx_io/commproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
#include <asm/tlbflush.h>
#include <asm/rheap.h>

extern int get_pteptr(struct mm_struct *mm, unsigned long addr, pte_t **ptep);

static void m8xx_cpm_dpinit(void);
static uint host_buffer; /* One page of host buffer */
static uint host_end; /* end + 1 */
Expand Down Expand Up @@ -106,11 +108,14 @@ struct hw_interrupt_type cpm_pic = {
.end = cpm_eoi,
};

extern void flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr);

void
m8xx_cpm_reset(void)
m8xx_cpm_reset(uint bootpage)
{
volatile immap_t *imp;
volatile cpm8xx_t *commproc;
pte_t *pte;

imp = (immap_t *)IMAP_ADDR;
commproc = (cpm8xx_t *)&imp->im_cpm;
Expand Down Expand Up @@ -138,6 +143,17 @@ m8xx_cpm_reset(void)
/* Reclaim the DP memory for our use. */
m8xx_cpm_dpinit();

/* get the PTE for the bootpage */
if (!get_pteptr(&init_mm, bootpage, &pte))
panic("get_pteptr failed\n");

/* and make it uncachable */
pte_val(*pte) |= _PAGE_NO_CACHE;
_tlbie(bootpage);

host_buffer = bootpage;
host_end = host_buffer + PAGE_SIZE;

/* Tell everyone where the comm processor resides.
*/
cpmp = (cpm8xx_t *)commproc;
Expand Down Expand Up @@ -368,6 +384,8 @@ static rh_info_t cpm_dpmem_info;

void m8xx_cpm_dpinit(void)
{
cpm8xx_t *cp = &((immap_t *)IMAP_ADDR)->im_cpm;

spin_lock_init(&cpm_dpmem_lock);

/* Initialize the info header */
Expand Down
43 changes: 17 additions & 26 deletions trunk/arch/ppc/8xx_io/fec.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ struct fec_enet_private {
uint phy_status;
uint phy_speed;
phy_info_t *phy;
struct work_struct phy_task;
struct tq_struct phy_task;

uint sequence_done;

Expand All @@ -199,8 +199,7 @@ static int fec_enet_start_xmit(struct sk_buff *skb, struct net_device *dev);
#ifdef CONFIG_USE_MDIO
static void fec_enet_mii(struct net_device *dev);
#endif /* CONFIG_USE_MDIO */
static irqreturn_t fec_enet_interrupt(int irq, void * dev_id,
struct pt_regs * regs);
static void fec_enet_interrupt(int irq, void * dev_id, struct pt_regs * regs);
#ifdef CONFIG_FEC_PACKETHOOK
static void fec_enet_tx(struct net_device *dev, __u32 regval);
static void fec_enet_rx(struct net_device *dev, __u32 regval);
Expand Down Expand Up @@ -472,7 +471,7 @@ fec_timeout(struct net_device *dev)
/* The interrupt handler.
* This is called from the MPC core interrupt.
*/
static irqreturn_t
static void
fec_enet_interrupt(int irq, void * dev_id, struct pt_regs * regs)
{
struct net_device *dev = dev_id;
Expand Down Expand Up @@ -526,7 +525,6 @@ printk("%s[%d] %s: unexpected FEC_ENET_MII event\n", __FILE__,__LINE__,__FUNCTIO
}

}
return IRQ_RETVAL(IRQ_HANDLED);
}


Expand Down Expand Up @@ -1265,9 +1263,8 @@ static void mii_display_status(struct net_device *dev)
printk(".\n");
}

static void mii_display_config(void *priv)
static void mii_display_config(struct net_device *dev)
{
struct net_device *dev = (struct net_device *)priv;
struct fec_enet_private *fep = dev->priv;
volatile uint *s = &(fep->phy_status);

Expand Down Expand Up @@ -1297,9 +1294,8 @@ static void mii_display_config(void *priv)
fep->sequence_done = 1;
}

static void mii_relink(void *priv)
static void mii_relink(struct net_device *dev)
{
struct net_device *dev = (struct net_device *)priv;
struct fec_enet_private *fep = dev->priv;
int duplex;

Expand Down Expand Up @@ -1327,16 +1323,18 @@ static void mii_queue_relink(uint mii_reg, struct net_device *dev)
{
struct fec_enet_private *fep = dev->priv;

INIT_WORK(&fep->phy_task, mii_relink, (void *)dev);
schedule_work(&fep->phy_task);
fep->phy_task.routine = (void *)mii_relink;
fep->phy_task.data = dev;
schedule_task(&fep->phy_task);
}

static void mii_queue_config(uint mii_reg, struct net_device *dev)
{
struct fec_enet_private *fep = dev->priv;

INIT_WORK(&fep->phy_task, mii_display_config, (void *)dev);
schedule_work(&fep->phy_task);
fep->phy_task.routine = (void *)mii_display_config;
fep->phy_task.data = dev;
schedule_task(&fep->phy_task);
}


Expand Down Expand Up @@ -1405,11 +1403,11 @@ mii_discover_phy(uint mii_reg, struct net_device *dev)

/* This interrupt occurs when the PHY detects a link change.
*/
static
static void
#ifdef CONFIG_RPXCLASSIC
void mii_link_interrupt(void *dev_id)
mii_link_interrupt(void *dev_id)
#else
irqreturn_t mii_link_interrupt(int irq, void * dev_id, struct pt_regs * regs)
mii_link_interrupt(int irq, void * dev_id, struct pt_regs * regs)
#endif
{
#ifdef CONFIG_USE_MDIO
Expand Down Expand Up @@ -1442,9 +1440,6 @@ irqreturn_t mii_link_interrupt(int irq, void * dev_id, struct pt_regs * regs)
printk("%s[%d] %s: unexpected Link interrupt\n", __FILE__,__LINE__,__FUNCTION__);
#endif /* CONFIG_USE_MDIO */

#ifndef CONFIG_RPXCLASSIC
return IRQ_RETVAL(IRQ_HANDLED);
#endif /* CONFIG_RPXCLASSIC */
}

static int
Expand Down Expand Up @@ -1580,7 +1575,7 @@ static int __init fec_enet_init(void)
struct fec_enet_private *fep;
int i, j, k, err;
unsigned char *eap, *iap, *ba;
dma_addr_t mem_addr;
unsigned long mem_addr;
volatile cbd_t *bdp;
cbd_t *cbd_base;
volatile immap_t *immap;
Expand Down Expand Up @@ -1645,8 +1640,7 @@ static int __init fec_enet_init(void)
printk("FEC initialization failed.\n");
return 1;
}
cbd_base = (cbd_t *)dma_alloc_coherent(dev->class_dev.dev, PAGE_SIZE,
&mem_addr, GFP_KERNEL);
cbd_base = (cbd_t *)consistent_alloc(GFP_KERNEL, PAGE_SIZE, &mem_addr);

/* Set receive and transmit descriptor base.
*/
Expand All @@ -1663,10 +1657,7 @@ static int __init fec_enet_init(void)

/* Allocate a page.
*/
ba = (unsigned char *)dma_alloc_coherent(dev->class_dev.dev,
PAGE_SIZE,
&mem_addr,
GFP_KERNEL);
ba = (unsigned char *)consistent_alloc(GFP_KERNEL, PAGE_SIZE, &mem_addr);
/* BUG: no check for failure */

/* Initialize the BD for every fragment in the page.
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/ppc/kernel/ppc_ksyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ EXPORT_SYMBOL(__res);

EXPORT_SYMBOL(next_mmu_context);
EXPORT_SYMBOL(set_context);
EXPORT_SYMBOL_GPL(__handle_mm_fault); /* For MOL */
EXPORT_SYMBOL(handle_mm_fault); /* For MOL */
EXPORT_SYMBOL(disarm_decr);
#ifdef CONFIG_PPC_STD_MMU
extern long mol_trampoline;
Expand Down
8 changes: 6 additions & 2 deletions trunk/arch/ppc/syslib/m8xx_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ unsigned char __res[sizeof(bd_t)];
extern void m8xx_ide_init(void);

extern unsigned long find_available_memory(void);
extern void m8xx_cpm_reset();
extern void m8xx_cpm_reset(uint cpm_page);
extern void m8xx_wdt_handler_install(bd_t *bp);
extern void rpxfb_alloc_pages(void);
extern void cpm_interrupt_init(void);
Expand All @@ -70,9 +70,13 @@ board_init(void)
void __init
m8xx_setup_arch(void)
{
int cpm_page;

cpm_page = (int) alloc_bootmem_pages(PAGE_SIZE);

/* Reset the Communication Processor Module.
*/
m8xx_cpm_reset();
m8xx_cpm_reset(cpm_page);

#ifdef CONFIG_FB_RPX
rpxfb_alloc_pages();
Expand Down
Loading

0 comments on commit 59dceeb

Please sign in to comment.