From: David Gibson <hidden> Date: 2007-03-22 06:06:30
Here's my latest stack of Ebony patches. Not yet ready for merging,
but getting closer. Notable changes:
- Rebased on top of my latest set of zImage patches (which in
turn are based on some of Milton and Scott's zImage work)
- Device tree now contains rudimentary information on the EBC
and the Ebony's off-chip devices
- Reset support is now folded in, rather than a distinct patch
in the series.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
From: David Gibson <hidden> Date: 2007-03-22 06:10:57
At present, the serial core always allows setserial in userspace to
change the port address, irq and base clock of any serial port. That
makes sense for legacy ISA ports, but not for (say) embedded ns16550
compatible serial ports at peculiar addresses. In these cases, the
kernel code configuring the ports must know exactly where they are,
and their clocking arrangements (which can be unusual on embedded
boards). It doesn't make sense for userspace to change these
settings.
Therefore, this patch defines a UPF_FIXED_PORT flag for the uart_port
structure. If this flag is set when the serial port is configured,
any attempts to alter the port's type, io address, irq or base clock
with setserial are ignored.
In addition this patch uses the new flag for on-chip serial ports
probed in arch/powerpc/kernel/legacy_serial.c, and for other
hard-wired serial ports probed by drivers/serial/of_serial.c.
Signed-off-by: David Gibson <redacted>
---
arch/powerpc/kernel/legacy_serial.c | 3 ++-
drivers/serial/of_serial.c | 3 ++-
drivers/serial/serial_core.c | 22 +++++++++++++---------
include/linux/serial_core.h | 1 +
4 files changed, 18 insertions(+), 11 deletions(-)
Index: working-2.6/drivers/serial/serial_core.c
===================================================================
@@ -115,7 +115,8 @@ static int __init add_legacy_soc_port(st{u64addr;constu32*addrp;-upf_tflags=UPF_BOOT_AUTOCONF|UPF_SKIP_TEST|UPF_SHARE_IRQ;+upf_tflags=UPF_BOOT_AUTOCONF|UPF_SKIP_TEST|UPF_SHARE_IRQ+|UPF_FIXED_PORT;structdevice_node*tsi=of_get_parent(np);/* We only support ports that have a clock frequency properly
From: David Gibson <hidden> Date: 2007-03-22 09:22:02
At present, various parts of the serial code use unsigned long to
define resource addresses. This is a problem, because some 32-bit
platforms have physical addresses larger than 32-bits, and have mmio
serial uarts located above the 4GB point.
This patch changes the type of mapbase in both struct uart_port and
struct plat_serial8250_port to resource_size_t, which can be
configured to be 64 bits on such platforms. The mapbase in
serial_struct can't safely be changed, because that structure is user
visible.
Signed-off-by: David Gibson <redacted>
---
drivers/serial/8250.c | 5 +++--
drivers/serial/8250_early.c | 16 +++++++++-------
drivers/serial/serial_core.c | 9 +++++----
include/linux/serial_8250.h | 2 +-
include/linux/serial_core.h | 2 +-
5 files changed, 19 insertions(+), 15 deletions(-)
Index: working-2.6/include/linux/serial_core.h
===================================================================
@@ -273,7 +273,7 @@ struct uart_port {conststructuart_ops*ops;unsignedintcustom_divisor;unsignedintline;/* port index */-unsignedlongmapbase;/* for ioremap */+resource_size_tmapbase;/* for ioremap */structdevice*dev;/* parent device */unsignedcharhub6;/* this should be in the 8250 driver */unsignedcharunused[3];
@@ -168,9 +169,10 @@ static int __init parse_options(struct edevice->baud);}-printk(KERN_INFO"Early serial console at %s 0x%lx (options '%s')\n",+printk(KERN_INFO"Early serial console at %s 0x%llx (options '%s')\n",mmio?"MMIO":"I/O port",-mmio?port->mapbase:(unsignedlong)port->iobase,+mmio?(unsignedlonglong)port->mapbase+:(unsignedlonglong)port->iobase,device->options);return0;}
@@ -236,10 +238,10 @@ static int __init early_uart_console_swimmio=(port->iotype==UPIO_MEM);line=serial8250_start_console(port,device->options);if(line<0)-printk("No ttyS device at %s 0x%lx for console\n",+printk("No ttyS device at %s 0x%llx for console\n",mmio?"MMIO":"I/O port",-mmio?port->mapbase:-(unsignedlong)port->iobase);+mmio?(unsignedlonglong)port->mapbase+:(unsignedlonglong)port->iobase);unregister_console(&early_uart_console);if(mmio)
@@ -2550,8 +2550,9 @@ static int __devinit serial8250_probe(stret=serial8250_register_port(&port);if(ret<0){dev_err(&dev->dev,"unable to register port at index %d "-"(IO%lx MEM%lx IRQ%d): %d\n",i,-p->iobase,p->mapbase,p->irq,ret);+"(IO%lx MEM%llx IRQ%d): %d\n",i,+p->iobase,(unsignedlonglong)p->mapbase,+p->irq,ret);}}return0;
From: David Gibson <hidden> Date: 2007-03-22 09:22:02
This patch adds a driver to arch/powerpc/sysdev for the UIC, the
on-chip interrupt controller from IBM/AMCC 4xx chips. It uses the new
irq host mapping infrastructure.
Signed-off-by: David Gibson <redacted>
---
arch/powerpc/sysdev/Makefile | 1
arch/powerpc/sysdev/uic.c | 338 +++++++++++++++++++++++++++++++++++++++++++
include/asm-powerpc/uic.h | 23 ++
3 files changed, 362 insertions(+)
Index: working-2.6/arch/powerpc/sysdev/uic.c
===================================================================
@@ -0,0 +1,338 @@+/*+*arch/powerpc/sysdev/uic.c+*+*IBMPowerPC4xxUniversalInterruptController+*+*Copyright2007DavidGibson<dwg@au1.ibm.com>,IBMCorporation.+*+*Thisprogramisfreesoftware;youcanredistributeitand/ormodifyit+*underthetermsoftheGNUGeneralPublicLicenseaspublishedbythe+*FreeSoftwareFoundation;eitherversion2oftheLicense,or(atyour+*option)anylaterversion.+*/+#include<linux/kernel.h>+#include<linux/init.h>+#include<linux/errno.h>+#include<linux/reboot.h>+#include<linux/slab.h>+#include<linux/stddef.h>+#include<linux/sched.h>+#include<linux/signal.h>+#include<linux/sysdev.h>+#include<linux/device.h>+#include<linux/bootmem.h>+#include<linux/spinlock.h>+#include<linux/irq.h>+#include<linux/interrupt.h>+#include<asm/irq.h>+#include<asm/io.h>+#include<asm/prom.h>+#include<asm/dcr.h>++#define NR_UIC_INTS 32++#define UIC_SR 0x0+#define UIC_ER 0x2+#define UIC_CR 0x3+#define UIC_PR 0x4+#define UIC_TR 0x5+#define UIC_MSR 0x6+#define UIC_VR 0x7+#define UIC_VCR 0x8++#define uic_irq_to_hw(virq) (irq_map[virq].hwirq)++structuic*primary_uic;++structuic{+intindex;+intdcrbase;++spinlock_tlock;++/* The remapper for this UIC */+structirq_host*irqhost;++/* For secondary UICs, the cascade interrupt's irqaction */+structirqactioncascade;++/* The device node of the interrupt controller */+structdevice_node*of_node;+};++staticvoiduic_unmask_irq(unsignedintvirq)+{+structuic*uic=get_irq_chip_data(virq);+unsignedintsrc=uic_irq_to_hw(virq);+unsignedlongflags;+u32er;++spin_lock_irqsave(&uic->lock,flags);+er=mfdcr(uic->dcrbase+UIC_ER);+er|=1<<(31-src);+mtdcr(uic->dcrbase+UIC_ER,er);+spin_unlock_irqrestore(&uic->lock,flags);+}++staticvoiduic_mask_irq(unsignedintvirq)+{+structuic*uic=get_irq_chip_data(virq);+unsignedintsrc=uic_irq_to_hw(virq);+unsignedlongflags;+u32er;++spin_lock_irqsave(&uic->lock,flags);+er=mfdcr(uic->dcrbase+UIC_ER);+er&=~(1<<(31-src));+mtdcr(uic->dcrbase+UIC_ER,er);+spin_unlock_irqrestore(&uic->lock,flags);+}++staticvoiduic_ack_irq(unsignedintvirq)+{+structuic*uic=get_irq_chip_data(virq);+unsignedintsrc=uic_irq_to_hw(virq);+unsignedlongflags;++spin_lock_irqsave(&uic->lock,flags);+mtdcr(uic->dcrbase+UIC_SR,1<<(31-src));+spin_unlock_irqrestore(&uic->lock,flags);+}++staticintuic_set_irq_type(unsignedintvirq,unsignedintflow_type)+{+structuic*uic=get_irq_chip_data(virq);+unsignedintsrc=uic_irq_to_hw(virq);+structirq_desc*desc=get_irq_desc(virq);+unsignedlongflags;+inttrigger,polarity;+u32tr,pr,mask;++switch(flow_type&IRQ_TYPE_SENSE_MASK){+caseIRQ_TYPE_NONE:+uic_mask_irq(virq);+return0;++caseIRQ_TYPE_EDGE_RISING:+trigger=1;polarity=1;+break;+caseIRQ_TYPE_EDGE_FALLING:+trigger=1;polarity=0;+break;+caseIRQ_TYPE_LEVEL_HIGH:+trigger=0;polarity=1;+break;+caseIRQ_TYPE_LEVEL_LOW:+trigger=0;polarity=1;+break;+default:+return-EINVAL;+}++mask=~(1<<(31-src));++spin_lock_irqsave(&uic->lock,flags);+tr=mfdcr(uic->dcrbase+UIC_TR);+pr=mfdcr(uic->dcrbase+UIC_PR);+tr=(tr&mask)|(trigger<<(31-src));+pr=(pr&mask)|(polarity<<(31-src));++mtdcr(uic->dcrbase+UIC_PR,pr);+mtdcr(uic->dcrbase+UIC_TR,tr);++desc->status&=~(IRQ_TYPE_SENSE_MASK|IRQ_LEVEL);+desc->status|=flow_type&IRQ_TYPE_SENSE_MASK;+if(trigger)+desc->status|=IRQ_LEVEL;++spin_unlock_irqrestore(&uic->lock,flags);++return0;+}++staticstructirq_chipuic_irq_chip={+.typename=" UIC ",+.unmask=uic_unmask_irq,+.mask=uic_mask_irq,+/* .mask_ack = uic_mask_irq_and_ack, */+.ack=uic_ack_irq,+.set_type=uic_set_irq_type,+};++staticintuic_host_match(structirq_host*h,structdevice_node*node)+{+structuic*uic=h->host_data;+returnuic->of_node==node;+}++staticintuic_host_map(structirq_host*h,unsignedintvirq,+irq_hw_number_thw)+{+structuic*uic=h->host_data;++set_irq_chip_data(virq,uic);+/* Despite the name, handle_level_irq() works for both level+*andedgeirqsonUIC.FIXME:checkthisiscorrect*/+set_irq_chip_and_handler(virq,&uic_irq_chip,handle_level_irq);++/* Set default irq type */+set_irq_type(virq,IRQ_TYPE_NONE);++return0;+}++staticintuic_host_xlate(structirq_host*h,structdevice_node*ct,+u32*intspec,unsignedintintsize,+irq_hw_number_t*out_hwirq,unsignedint*out_type)++{+/* UIC intspecs must have 2 cells */+BUG_ON(intsize!=2);+*out_hwirq=intspec[0];+*out_type=intspec[1];+return0;+}++staticstructirq_host_opsuic_host_ops={+.match=uic_host_match,+.map=uic_host_map,+.xlate=uic_host_xlate,+};++irqreturn_tuic_cascade(intvirq,void*data)+{+structuic*uic=data;+u32msr;+intsrc;+intsubvirq;++msr=mfdcr(uic->dcrbase+UIC_MSR);+src=32-ffs(msr);++subvirq=irq_linear_revmap(uic->irqhost,src);+generic_handle_irq(subvirq);++returnIRQ_HANDLED;+}++staticstructuic*__inituic_init_one(structdevice_node*node)+{+structuic*uic;+constu32*indexp,*dcrreg;+intlen;++BUG_ON(!device_is_compatible(node,"ibm,uic"));++uic=alloc_bootmem(sizeof(*uic));+if(!uic)+returnNULL;/* FIXME: panic? */++memset(uic,0,sizeof(*uic));+uic->of_node=of_node_get(node);+indexp=get_property(node,"cell-index",&len);+if(!indexp||(len!=sizeof(u32))){+printk(KERN_ERR"uic: Device node %s has missing or invalid "+"cell-index property\n",node->full_name);+returnNULL;+}+uic->index=*indexp;++dcrreg=get_property(node,"dcr-reg",&len);+if(!dcrreg||(len!=2*sizeof(u32))){+printk(KERN_ERR"uic: Device node %s has missing or invalid "+"dcr-reg property\n",node->full_name);+returnNULL;+}+uic->dcrbase=*dcrreg;++uic->irqhost=irq_alloc_host(IRQ_HOST_MAP_LINEAR,NR_UIC_INTS,+&uic_host_ops,-1);+if(!uic->irqhost){+of_node_put(node);+returnNULL;/* FIXME: panic? */+}++uic->irqhost->host_data=uic;++/* Start with all interrupts disable and non-critical */+mtdcr(uic->dcrbase+UIC_ER,0);+mtdcr(uic->dcrbase+UIC_CR,0);++printk("UIC%d (%d IRQ sources) at DCR 0x%x\n",uic->index,+NR_UIC_INTS,uic->dcrbase);++returnuic;+}++void__inituic_init_tree(void)+{+structdevice_node*np;+structuic*uic;+constu32*interrupts;++/* First locate and initialize the top-level UIC */++np=of_find_compatible_node(NULL,NULL,"ibm,uic");+while(np){+interrupts=get_property(np,"interrupts",NULL);+if(!interrupts)+break;++np=of_find_compatible_node(np,NULL,"ibm,uic");+}++BUG_ON(!np);/* uic_init_tree() assumes there's a UIC as the+*top-levelinterruptcontroller*/+primary_uic=uic_init_one(np);+if(!primary_uic)+panic("Unable to initialize primary UIC %s\n",np->full_name);++irq_set_default_host(primary_uic->irqhost);+of_node_put(np);++/* The scan again for cascaded UICs */+np=of_find_compatible_node(NULL,NULL,"ibm,uic");+while(np){+interrupts=get_property(np,"interrupts",NULL);+if(interrupts){+/* Secondary UIC */+intcascade_virq;+intret;++uic=uic_init_one(np);+if(!uic)+panic("Unable to initialize a secondary UIC %s\n",+np->full_name);++cascade_virq=irq_of_parse_and_map(np,0);++uic->cascade.handler=uic_cascade;+uic->cascade.name="UIC cascade";+uic->cascade.dev_id=uic;++ret=setup_irq(cascade_virq,&uic->cascade);+if(ret)+printk(KERN_ERR"Failed to setup_irq(%d) for "+"UIC%d cascade\n",cascade_virq,+uic->index);++/* FIXME: setup critical cascade?? */+}++np=of_find_compatible_node(np,NULL,"ibm,uic");+}+}++/* Return an interrupt vector or NO_IRQ if no interrupt is pending. */+unsignedintuic_get_irq(void)+{+u32msr;+intsrc;++BUG_ON(!primary_uic);++msr=mfdcr(primary_uic->dcrbase+UIC_MSR);+src=32-ffs(msr);++returnirq_linear_revmap(primary_uic->irqhost,src);+}
@@ -17,6 +17,7 @@ obj-$(CONFIG_QUICC_ENGINE) += qe_lib/ifeq ($(CONFIG_PPC_MERGE),y)obj-$(CONFIG_PPC_I8259)+=i8259.oobj-$(CONFIG_PPC_83xx)+=ipic.o+obj-$(CONFIG_4xx)+=uic.oendif# Temporary hack until we have migrated to asm-powerpc
From: David Gibson <hidden> Date: 2007-03-22 09:22:02
Now that we always take a device tree in arch/powerpc, there's no good
reason not to allow a single kernel to support multiple embedded 4xx
boards - the correct platform code can be selected based on the device
tree information.
Therefore, this patch re-arranges the 4xx Kconfig code to allow this.
In addition we:
- use "select" instead of depends to configure the correct
config options for specific 4xx CPUs and workarounds, which
makes the information about specific boards and CPUs less
scattered.
- Some old, unused (in arch/powerpc) config options are
removed: WANT_EARLY_SERIAL, IBM_OCP, etc.
Signed-off-by: David Gibson <redacted>
---
arch/powerpc/platforms/4xx/Kconfig | 378 ++++++++++++++-----------------------
1 file changed, 153 insertions(+), 225 deletions(-)
Index: working-2.6/arch/powerpc/platforms/4xx/Kconfig
===================================================================
@@ -3,278 +3,206 @@ config 4xxdepends on40x||44xdefaulty-configWANT_EARLY_SERIAL+configBOOKEbool-selectSERIAL_8250-defaultn--menu"AMCC 4xx options"-depends on4xx--choice-prompt"Machine Type"-depends on40x-defaultWALNUT--configBUBINGA-bool"Bubinga"-selectWANT_EARLY_SERIAL-help-ThisoptionenablessupportfortheIBM405EPevaluationboard.--configCPCI405-bool"CPCI405"-help-ThisoptionenablessupportfortheCPCI405board.--configEP405-bool"EP405/EP405PC"-help-ThisoptionenablessupportfortheEP405/EP405PCboards.--configREDWOOD_5-bool"Redwood-5"-help-ThisoptionenablessupportfortheIBMSTB04evaluationboard.--configREDWOOD_6-bool"Redwood-6"-help-ThisoptionenablessupportfortheIBMSTBx25xxevaluationboard.--configSYCAMORE-bool"Sycamore"-help-ThisoptionenablessupportfortheIBMPPC405GPrevaluationboard.--configWALNUT-bool"Walnut"-help-ThisoptionenablessupportfortheIBMPPC405GPevaluationboard.--configXILINX_ML300-bool"Xilinx-ML300"-help-ThisoptionenablessupportfortheXilinxML300evaluationboard.--endchoice--choice-prompt"Machine Type"depends on44x-defaultEBONY--configBAMBOO-bool"Bamboo"-selectWANT_EARLY_SERIAL-help-ThisoptionenablessupportfortheIBMPPC440EPevaluationboard.--configEBONY-bool"Ebony"-selectWANT_EARLY_SERIAL-help-ThisoptionenablessupportfortheIBMPPC440GPevaluationboard.--configLUAN-bool"Luan"-selectWANT_EARLY_SERIAL-help-ThisoptionenablessupportfortheIBMPPC440SPevaluationboard.--configOCOTEA-bool"Ocotea"-selectWANT_EARLY_SERIAL-help-ThisoptionenablessupportfortheIBMPPC440GXevaluationboard.+defaulty-endchoice+menu"AMCC 40x options"+depends on40x-configEP405PC-bool"EP405PC Support"-depends onEP405+#config BUBINGA+# bool "Bubinga"+# depends on 40x+# default n+# select 405EP+# help+# This option enables support for the IBM 405EP evaluation board.++#config CPCI405+# bool "CPCI405"+# depends on 40x+# default n+# select 405GP+# help+# This option enables support for the CPCI405 board.++#config EP405+# bool "EP405/EP405PC"+# depends on 40x+# default n+# select 405GP+# help+# This option enables support for the EP405/EP405PC boards.++#config EP405PC+# bool "EP405PC Support"+# depends on EP405+# default y+# help+# This option enables support for the extra features of the EP405PC board.++#config REDWOOD_5+# bool "Redwood-5"+# depends on 40x+# default n+# select STB03xxx+# help+# This option enables support for the IBM STB04 evaluation board.++#config REDWOOD_6+# bool "Redwood-6"+# depends on 40x+# default n+# select STB03xxx+# help+# This option enables support for the IBM STBx25xx evaluation board.++#config SYCAMORE+# bool "Sycamore"+# depends on 40x+# default n+# select 405GPR+# help+# This option enables support for the IBM PPC405GPr evaluation board.++#config WALNUT+# bool "Walnut"+# depends on 40x+# default y+# select 405GP+# help+# This option enables support for the IBM PPC405GP evaluation board.++#config XILINX_ML300+# bool "Xilinx-ML300"+# depends on 40x+# default y+# select VIRTEX_II_PRO+# help+# This option enables support for the Xilinx ML300 evaluation board.+endmenu-# It's often necessary to know the specific 4xx processor type.-# Fortunately, it is impled (so far) from the board type, so we-# don't need to ask more redundant questions.+# 40x specific CPU modules, selected based on the board above.configNP405Hbool-depends onASH-defaulty+#depends on ASH-config440EP+# OAK doesn't exist but wanted to keep this around for any future 403GCX boards+config403GCXbool-depends onBAMBOO-selectPPC_FPU-defaulty+#depends on OAK+selectIBM405_ERR51-config440GP+config405GPbool-depends onEBONY-defaulty+selectIBM405_ERR77+selectIBM405_ERR51-config440GX+config405EPbool-depends onOCOTEA-defaulty-config440SP+config405GPRbool-depends onLUAN-defaulty-config440+configVIRTEX_II_PRObool-depends on440GP||440SP||440EP-defaulty+selectIBM405_ERR77+selectIBM405_ERR51-config440A+configSTB03xxxbool-depends on440GX-defaulty+selectIBM405_ERR77+selectIBM405_ERR51-configIBM440EP_ERR42-bool-depends on440EP-defaulty+# 40x errata/workaround config symbols, selected by the CPU models above# All 405-based cores up until the 405GPR and 405EP have this errata.configIBM405_ERR77bool-depends on40x&&!403GCX&&!405GPR&&!405EP-defaulty# All 40x-based cores, up until the 405GPR and 405EP have this errata.configIBM405_ERR51bool-depends on40x&&!405GPR&&!405EP-defaulty-configBOOKE-bool+menu"AMCC 44x options"depends on44x-defaulty-configIBM_OCP-bool-depends onASH||BAMBOO||BUBINGA||CPCI405||EBONY||EP405||LUAN||OCOTEA||REDWOOD_5||REDWOOD_6||SYCAMORE||WALNUT-defaulty+#config BAMBOO+# bool "Bamboo"+# depends on 44x+# default n+# select 440EP+# help+# This option enables support for the IBM PPC440EP evaluation board.-configXILINX_OCP-bool-depends onXILINX_ML300-defaulty--configIBM_EMAC4-bool-depends on440GX||440SP-defaulty--configBIOS_FIXUP-bool-depends onBUBINGA||EP405||SYCAMORE||WALNUT-defaulty--# OAK doesn't exist but wanted to keep this around for any future 403GCX boards-config403GCX-bool-depends onOAK-defaulty--config405EP-bool-depends onBUBINGA-defaulty--config405GP-bool-depends onCPCI405||EP405||WALNUT-defaulty--config405GPR-bool-depends onSYCAMORE-defaulty--configVIRTEX_II_PRO-bool-depends onXILINX_ML300-defaulty--configSTB03xxx-bool-depends onREDWOOD_5||REDWOOD_6-defaulty--configEMBEDDEDBOOT-bool-depends onEP405||XILINX_ML300+configEBONY+bool"Ebony"+depends on44xdefaulty+select440GP+help+ThisoptionenablessupportfortheIBMPPC440GPevaluationboard.-configIBM_OPENBIOS-bool-depends onASH||BUBINGA||REDWOOD_5||REDWOOD_6||SYCAMORE||WALNUT-defaulty+#config LUAN+# bool "Luan"+# depends on 44x+# default n+# select 440SP+# help+# This option enables support for the IBM PPC440SP evaluation board.++#config OCOTEA+# bool "Ocotea"+# depends on 44x+# default n+# select 440GX+# help+# This option enables support for the IBM PPC440GX evaluation board.-configPPC4xx_DMA-bool"PPC4xx DMA controller support"-depends on4xx+endmenu-configPPC4xx_EDMA+# 44x specific CPU modules, selected based on the board above.+config440EPbool-depends on!STB03xxx&&PPC4xx_DMA-defaulty+selectPPC_FPU+selectIBM440EP_ERR42-configPPC_GEN550+config440GPbool-depends on4xx-defaulty--choice-prompt"TTYS0 device and default console"-depends on40x-defaultUART0_TTYS0--configUART0_TTYS0-bool"UART0"--configUART0_TTYS1-bool"UART1"+selectIBM_NEW_EMAC_ZMII-endchoice--configSERIAL_SICC-bool"SICC Serial port support"-depends onSTB03xxx--configUART1_DFLT_CONSOLE+config440GXbool-depends onSERIAL_SICC&&UART0_TTYS1-defaulty-configSERIAL_SICC_CONSOLE+config440SPbool-depends onSERIAL_SICC&&UART0_TTYS1-defaulty-endmenu--menu"IBM 40x options"-depends on40x--configSERIAL_SICC-bool"SICC Serial port"-depends onSTB03xxx--configUART1_DFLT_CONSOLE+config440Abool-depends onSERIAL_SICC&&UART0_TTYS1+depends on440GXdefaulty-configSERIAL_SICC_CONSOLE+# 44x errata/workaround config symbols, selected by the CPU models above+configIBM440EP_ERR42bool-depends onSERIAL_SICC&&UART0_TTYS1-defaulty-endmenu+#config XILINX_OCP+# bool+# depends on XILINX_ML300+# default y++#config BIOS_FIXUP+# bool+# depends on BUBINGA || EP405 || SYCAMORE || WALNUT+# default y++#config PPC4xx_DMA+# bool "PPC4xx DMA controller support"+# depends on 4xx++#config PPC4xx_EDMA+# bool+# depends on !STB03xxx && PPC4xx_DMA+# default y
From: David Gibson <hidden> Date: 2007-03-22 09:22:02
This patch moves the mmu.h definitions which are still relevant for
ARCH=powerpc from include/asm-ppc/mmu.h to their own file,
include/asm-powerpc/mmu_44x.h. The new file is included from
asm-powerpc/mmu.h, and a couple of other tweaks to correct mmu
definitions for 44x are made.
Signed-off-by: David Gibson <redacted>
---
arch/powerpc/kernel/head_44x.S | 4 -
arch/powerpc/mm/44x_mmu.c | 81 +++++++-------------------------------
arch/powerpc/mm/mmu_decl.h | 2
include/asm-powerpc/mmu-44x/mmu.h | 75 +++++++++++++++++++++++++++++++++++
include/asm-powerpc/mmu.h | 11 ++++-
5 files changed, 105 insertions(+), 68 deletions(-)
Index: working-2.6/include/asm-powerpc/mmu.h
===================================================================
@@ -24,73 +24,35 @@**/-#include<linux/signal.h>-#include<linux/sched.h>-#include<linux/kernel.h>-#include<linux/errno.h>-#include<linux/string.h>-#include<linux/types.h>-#include<linux/ptrace.h>-#include<linux/mman.h>-#include<linux/mm.h>-#include<linux/swap.h>-#include<linux/stddef.h>-#include<linux/vmalloc.h>-#include<linux/init.h>-#include<linux/delay.h>-#include<linux/highmem.h>--#include<asm/pgalloc.h>-#include<asm/prom.h>-#include<asm/io.h>-#include<asm/mmu_context.h>-#include<asm/pgtable.h>#include<asm/mmu.h>-#include<asm/uaccess.h>-#include<asm/smp.h>-#include<asm/bootx.h>-#include<asm/machdep.h>-#include<asm/setup.h>#include"mmu_decl.h"-externcharetext[],_stext[];-/* Used by the 44x TLB replacement exception handler.*Justneededitdeclaredsomeplace.*/-unsignedinttlb_44x_index=0;-unsignedinttlb_44x_hwater=62;+unsignedinttlb_44x_index;/* = 0 */+unsignedinttlb_44x_hwater=PPC44x_TLB_SIZE-1-PPC44x_EARLY_TLBS;/**"Pins"a256MBTLBentryinAS0forkernellowmem*/-staticvoid__init-ppc44x_pin_tlb(intslot,unsignedintvirt,unsignedintphys)+staticvoid__initppc44x_pin_tlb(unsignedintvirt,unsignedintphys){-unsignedlongattrib=0;--__asm____volatile__("\-clrrwi%2,%2,10\n\-ori%2,%2,%4\n\-clrrwi%1,%1,10\n\-li%0,0\n\-ori%0,%0,%5\n\-tlbwe%2,%3,%6\n\-tlbwe%1,%3,%7\n\-tlbwe%0,%3,%8"+__asm____volatile__(+"tlbwe %2,%3,%4\n"+"tlbwe %1,%3,%5\n"+"tlbwe %0,%3,%6\n":-:"r"(attrib),"r"(phys),"r"(virt),"r"(slot),-"i"(PPC44x_TLB_VALID|PPC44x_TLB_256M),-"i"(PPC44x_TLB_SW|PPC44x_TLB_SR|PPC44x_TLB_SX|PPC44x_TLB_G),+:"r"(PPC44x_TLB_SW|PPC44x_TLB_SR|PPC44x_TLB_SX|PPC44x_TLB_G),+"r"(phys),+"r"(virt|PPC44x_TLB_VALID|PPC44x_TLB_256M),+"r"(tlb_44x_hwater--),/* slot for this TLB entry */"i"(PPC44x_TLB_PAGEID),"i"(PPC44x_TLB_XLAT),"i"(PPC44x_TLB_ATTRIB));}-/*-*MMU_init_hwdoesthechip-specificinitializationoftheMMUhardware.-*/void__initMMU_init_hw(void){flush_instruction_cache();
@@ -98,22 +60,13 @@ void __init MMU_init_hw(void)unsignedlong__initmmu_mapin_ram(void){-unsignedintpinned_tlbs=1;-inti;+unsignedlongaddr;-/* Determine number of entries necessary to cover lowmem */-pinned_tlbs=(unsignedint)-(_ALIGN(total_lowmem,PPC_PIN_SIZE)>>PPC44x_PIN_SHIFT);--/* Write upper watermark to save location */-tlb_44x_hwater=PPC44x_LOW_SLOT-pinned_tlbs;--/* If necessary, set additional pinned TLBs */-if(pinned_tlbs>1)-for(i=(PPC44x_LOW_SLOT-(pinned_tlbs-1));i<PPC44x_LOW_SLOT;i++){-unsignedintphys_addr=(PPC44x_LOW_SLOT-i)*PPC_PIN_SIZE;-ppc44x_pin_tlb(i,phys_addr+PAGE_OFFSET,phys_addr);-}+/* Pin in enough TLBs to cover any lowmem not covered by the+*initial256Mmappingestablishedinhead_44x.S*/+for(addr=PPC_PIN_SIZE;addr<total_lowmem;+addr+=PPC_PIN_SIZE)+ppc44x_pin_tlb(addr+PAGE_OFFSET,addr);returntotal_lowmem;}
From: David Gibson <hidden> Date: 2007-03-22 09:22:02
This patch adds support for early serial debugging via the built in
port on IBM/AMCC PowerPC 44x CPUs. It uses a bolted TLB entry in
address space 1 for the UART's mapping, allowing robust debugging both
before and after the initialization of the MMU.
Signed-off-by: David Gibson <redacted>
---
arch/powerpc/Kconfig.debug | 23 ++++++++++++++++++-----
arch/powerpc/kernel/head_44x.S | 34 +++++++++++++---------------------
arch/powerpc/kernel/of_platform.c | 1 -
arch/powerpc/kernel/udbg.c | 3 +++
arch/powerpc/kernel/udbg_16550.c | 23 +++++++++++++++++++++++
arch/powerpc/platforms/4xx/44x.h | 2 ++
arch/powerpc/platforms/4xx/misc_44x.S | 31 +++++++++++++++++++++++++++++++
include/asm-powerpc/mmu-44x/mmu.h | 7 ++++++-
include/asm-powerpc/udbg.h | 1 +
9 files changed, 97 insertions(+), 28 deletions(-)
Index: working-2.6/arch/powerpc/Kconfig.debug
===================================================================
@@ -130,11 +130,6 @@ config BOOTX_TEXTSayYheretoseeprogressmessagesfromthebootfirmwareintextmode.RequireseitherBootXorOpenFirmware.-configSERIAL_TEXT_DEBUG-bool"Support for early boot texts over serial port"-depends on4xx||LOPEC||MV64X60||PPLUS||PRPMC800||\-PPC_GEN550||PPC_MPC52xx-configPPC_EARLY_DEBUGbool"Early debugging (dangerous)"
@@ -199,6 +194,24 @@ config PPC_EARLY_DEBUG_BEAThelpSelectthistoenableearlydebuggingforCellebwithBeat.+configPPC_EARLY_DEBUG_44x+bool"Early serial debugging for IBM/AMCC 44x CPUs"+depends on44x+selectPPC_UDBG_16550+help+SelectthistoenableearlydebuggingforIBM44xchipsviathe+inbuiltserialport.+endchoice+configPPC_EARLY_DEBUG_44x_PHYSLOW+hex"Low 32 bits of early debug UART physical address"+dependsPPC_EARLY_DEBUG_44x+default"0x40000200"++configPPC_EARLY_DEBUG_44x_PHYSHIGH+hex"EPRN of early debug UART physical address"+dependsPPC_EARLY_DEBUG_44x+default"0x1"+endmenu
@@ -1 +1,2 @@-# empty makefile so make clean works
\ No newline at end of file
+obj-$(CONFIG_EBONY) := ebony.o
+obj-$(CONFIG_44x) += misc_44x.o
\ No newline at end of file
Index: working-2.6/arch/powerpc/platforms/4xx/ebony.c
===================================================================
@@ -0,0 +1,886 @@+#+# Automatically generated make config: don't edit+# Linux kernel version: 2.6.20-powerpc-emac-new-20070212.diff+# Wed Feb 28 15:24:15 2007+#+# CONFIG_PPC64 is not set+CONFIG_PPC32=y+CONFIG_PPC_MERGE=y+CONFIG_MMU=y+CONFIG_GENERIC_HARDIRQS=y+CONFIG_IRQ_PER_CPU=y+CONFIG_RWSEM_XCHGADD_ALGORITHM=y+CONFIG_ARCH_HAS_ILOG2_U32=y+CONFIG_GENERIC_HWEIGHT=y+CONFIG_GENERIC_CALIBRATE_DELAY=y+CONFIG_GENERIC_FIND_NEXT_BIT=y+CONFIG_PPC=y+CONFIG_EARLY_PRINTK=y+CONFIG_GENERIC_NVRAM=y+CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y+CONFIG_ARCH_MAY_HAVE_PC_FDC=y+CONFIG_PPC_OF=y+# CONFIG_PPC_UDBG_16550 is not set+# CONFIG_GENERIC_TBSYNC is not set+CONFIG_AUDIT_ARCH=y+CONFIG_GENERIC_BUG=y+# CONFIG_DEFAULT_UIMAGE is not set++#+# Processor support+#+# CONFIG_CLASSIC32 is not set+# CONFIG_PPC_82xx is not set+# CONFIG_PPC_83xx is not set+# CONFIG_PPC_85xx is not set+# CONFIG_PPC_86xx is not set+# CONFIG_PPC_8xx is not set+# CONFIG_40x is not set+CONFIG_44x=y+# CONFIG_E200 is not set+CONFIG_PPC_DCR_NATIVE=y+# CONFIG_PPC_DCR_MMIO is not set+CONFIG_PPC_DCR=y+CONFIG_BOOKE=y+CONFIG_PTE_64BIT=y+CONFIG_PHYS_64BIT=y+CONFIG_NOT_COHERENT_CACHE=y+CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"++#+# Code maturity level options+#+CONFIG_EXPERIMENTAL=y+CONFIG_BROKEN_ON_SMP=y+CONFIG_INIT_ENV_ARG_LIMIT=32++#+# General setup+#+CONFIG_LOCALVERSION=""+CONFIG_LOCALVERSION_AUTO=y+CONFIG_SWAP=y+CONFIG_SYSVIPC=y+# CONFIG_IPC_NS is not set+CONFIG_SYSVIPC_SYSCTL=y+CONFIG_POSIX_MQUEUE=y+# CONFIG_BSD_PROCESS_ACCT is not set+# CONFIG_TASKSTATS is not set+# CONFIG_UTS_NS is not set+# CONFIG_AUDIT is not set+# CONFIG_IKCONFIG is not set+CONFIG_SYSFS_DEPRECATED=y+# CONFIG_RELAY is not set+CONFIG_INITRAMFS_SOURCE=""+# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set+CONFIG_SYSCTL=y+CONFIG_EMBEDDED=y+CONFIG_SYSCTL_SYSCALL=y+CONFIG_KALLSYMS=y+# CONFIG_KALLSYMS_ALL is not set+# CONFIG_KALLSYMS_EXTRA_PASS is not set+CONFIG_HOTPLUG=y+CONFIG_PRINTK=y+CONFIG_BUG=y+CONFIG_ELF_CORE=y+CONFIG_BASE_FULL=y+CONFIG_FUTEX=y+CONFIG_EPOLL=y+CONFIG_SHMEM=y+CONFIG_SLAB=y+CONFIG_VM_EVENT_COUNTERS=y+CONFIG_RT_MUTEXES=y+# CONFIG_TINY_SHMEM is not set+CONFIG_BASE_SMALL=0+# CONFIG_SLOB is not set++#+# Loadable module support+#+CONFIG_MODULES=y+CONFIG_MODULE_UNLOAD=y+# CONFIG_MODULE_FORCE_UNLOAD is not set+# CONFIG_MODVERSIONS is not set+# CONFIG_MODULE_SRCVERSION_ALL is not set+CONFIG_KMOD=y++#+# Block layer+#+CONFIG_BLOCK=y+CONFIG_LBD=y+# CONFIG_BLK_DEV_IO_TRACE is not set+# CONFIG_LSF is not set++#+# 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"+CONFIG_4xx=y++#+# AMCC 44x options+#+CONFIG_EBONY=y+CONFIG_440GP=y+# CONFIG_MPIC is not set++#+# Kernel options+#+# CONFIG_HIGHMEM is not set+# CONFIG_HZ_100 is not set+CONFIG_HZ_250=y+# CONFIG_HZ_300 is not set+# CONFIG_HZ_1000 is not set+CONFIG_HZ=250+CONFIG_PREEMPT_NONE=y+# CONFIG_PREEMPT_VOLUNTARY is not set+# CONFIG_PREEMPT is not set+CONFIG_BINFMT_ELF=y+# CONFIG_BINFMT_MISC is not set+CONFIG_MATH_EMULATION=y+CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y+# CONFIG_PC_KEYBOARD is not set+CONFIG_ARCH_FLATMEM_ENABLE=y+CONFIG_ARCH_POPULATES_NODE_MAP=y+CONFIG_SELECT_MEMORY_MODEL=y+CONFIG_FLATMEM_MANUAL=y+# CONFIG_DISCONTIGMEM_MANUAL is not set+# CONFIG_SPARSEMEM_MANUAL is not set+CONFIG_FLATMEM=y+CONFIG_FLAT_NODE_MEM_MAP=y+# CONFIG_SPARSEMEM_STATIC is not set+CONFIG_SPLIT_PTLOCK_CPUS=4+CONFIG_RESOURCES_64BIT=y+CONFIG_ZONE_DMA_FLAG=1+CONFIG_PROC_DEVICETREE=y+CONFIG_CMDLINE_BOOL=y+CONFIG_CMDLINE=""+CONFIG_SECCOMP=y+CONFIG_ISA_DMA_API=y++#+# Bus options+#+CONFIG_ZONE_DMA=y+# CONFIG_MPIC_WEIRD is not set+# CONFIG_PPC_I8259 is not set+CONFIG_PPC_INDIRECT_PCI=y+CONFIG_PCI=y+CONFIG_PCI_DOMAINS=y+# CONFIG_PCIEPORTBUS is not set+# CONFIG_PCI_DEBUG is not set++#+# PCCARD (PCMCIA/CardBus) support+#+# CONFIG_PCCARD is not set++#+# PCI Hotplug Support+#+# CONFIG_HOTPLUG_PCI is not set++#+# Advanced setup+#+# CONFIG_ADVANCED_OPTIONS is not set++#+# Default settings for advanced configuration options are used+#+CONFIG_HIGHMEM_START=0xfe000000+CONFIG_LOWMEM_SIZE=0x30000000+CONFIG_KERNEL_START=0xc0000000+CONFIG_TASK_SIZE=0x80000000+CONFIG_CONSISTENT_START=0xff100000+CONFIG_CONSISTENT_SIZE=0x00200000+CONFIG_BOOT_LOAD=0x01000000++#+# Networking+#+CONFIG_NET=y++#+# Networking options+#+# CONFIG_NETDEBUG is not set+CONFIG_PACKET=y+# CONFIG_PACKET_MMAP is not set+CONFIG_UNIX=y+# CONFIG_NET_KEY is not set+CONFIG_INET=y+# CONFIG_IP_MULTICAST is not set+# CONFIG_IP_ADVANCED_ROUTER is not set+CONFIG_IP_FIB_HASH=y+CONFIG_IP_PNP=y+CONFIG_IP_PNP_DHCP=y+CONFIG_IP_PNP_BOOTP=y+# CONFIG_IP_PNP_RARP is not set+# CONFIG_NET_IPIP is not set+# CONFIG_NET_IPGRE is not set+# CONFIG_ARPD is not set+# CONFIG_SYN_COOKIES is not set+# CONFIG_INET_AH is not set+# CONFIG_INET_ESP is not set+# CONFIG_INET_IPCOMP is not set+# CONFIG_INET_XFRM_TUNNEL is not set+# CONFIG_INET_TUNNEL is not set+# CONFIG_INET_XFRM_MODE_TRANSPORT is not set+# CONFIG_INET_XFRM_MODE_TUNNEL is not set+# CONFIG_INET_XFRM_MODE_BEET is not set+CONFIG_INET_DIAG=y+CONFIG_INET_TCP_DIAG=y+# CONFIG_TCP_CONG_ADVANCED is not set+CONFIG_TCP_CONG_CUBIC=y+CONFIG_DEFAULT_TCP_CONG="cubic"+# CONFIG_TCP_MD5SIG is not set+# CONFIG_IPV6 is not set+# CONFIG_INET6_XFRM_TUNNEL is not set+# CONFIG_INET6_TUNNEL is not set+# CONFIG_NETWORK_SECMARK is not set+# CONFIG_NETFILTER is not set++#+# DCCP Configuration (EXPERIMENTAL)+#+# CONFIG_IP_DCCP is not set++#+# SCTP Configuration (EXPERIMENTAL)+#+# CONFIG_IP_SCTP is not set++#+# TIPC Configuration (EXPERIMENTAL)+#+# CONFIG_TIPC is not set+# CONFIG_ATM is not set+# CONFIG_BRIDGE is not set+# CONFIG_VLAN_8021Q is not set+# CONFIG_DECNET is not set+# CONFIG_LLC2 is not set+# CONFIG_IPX is not set+# CONFIG_ATALK is not set+# CONFIG_X25 is not set+# CONFIG_LAPB is not set+# CONFIG_ECONET is not set+# CONFIG_WAN_ROUTER is not set++#+# QoS and/or fair queueing+#+# CONFIG_NET_SCHED is not set++#+# Network testing+#+# CONFIG_NET_PKTGEN is not set+# CONFIG_HAMRADIO is not set+# CONFIG_IRDA is not set+# CONFIG_BT is not set+# CONFIG_IEEE80211 is not set++#+# Device Drivers+#++#+# Generic Driver Options+#+CONFIG_STANDALONE=y+CONFIG_PREVENT_FIRMWARE_BUILD=y+CONFIG_FW_LOADER=y+# CONFIG_DEBUG_DRIVER is not set+# CONFIG_DEBUG_DEVRES is not set+# CONFIG_SYS_HYPERVISOR is not set++#+# Connector - unified userspace <-> kernelspace linker+#+CONFIG_CONNECTOR=y+CONFIG_PROC_EVENTS=y++#+# Memory Technology Devices (MTD)+#+# CONFIG_MTD is not set++#+# Parallel port support+#+# CONFIG_PARPORT is not set++#+# Plug and Play support+#+# CONFIG_PNPACPI is not set++#+# Block devices+#+# CONFIG_BLK_DEV_FD is not set+# CONFIG_BLK_CPQ_DA is not set+# CONFIG_BLK_CPQ_CISS_DA is not set+# CONFIG_BLK_DEV_DAC960 is not set+# CONFIG_BLK_DEV_UMEM is not set+# CONFIG_BLK_DEV_COW_COMMON is not set+# CONFIG_BLK_DEV_LOOP is not set+# CONFIG_BLK_DEV_NBD is not set+# CONFIG_BLK_DEV_SX8 is not set+CONFIG_BLK_DEV_RAM=y+CONFIG_BLK_DEV_RAM_COUNT=16+CONFIG_BLK_DEV_RAM_SIZE=35000+CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024+CONFIG_BLK_DEV_INITRD=y+# CONFIG_CDROM_PKTCDVD is not set+# CONFIG_ATA_OVER_ETH is not set++#+# Misc devices+#+# CONFIG_SGI_IOC4 is not set+# CONFIG_TIFM_CORE is not set++#+# ATA/ATAPI/MFM/RLL support+#+# CONFIG_IDE is not set++#+# SCSI device support+#+# CONFIG_RAID_ATTRS is not set+# CONFIG_SCSI is not set+# CONFIG_SCSI_NETLINK is not set++#+# Serial ATA (prod) and Parallel ATA (experimental) drivers+#+# CONFIG_ATA is not set++#+# Multi-device support (RAID and LVM)+#+# CONFIG_MD is not set++#+# Fusion MPT device support+#+# CONFIG_FUSION is not set++#+# IEEE 1394 (FireWire) support+#+# CONFIG_IEEE1394 is not set++#+# I2O device support+#+# CONFIG_I2O is not set++#+# Macintosh device drivers+#+# CONFIG_MAC_EMUMOUSEBTN is not set+# CONFIG_WINDFARM is not set++#+# Network device support+#+CONFIG_NETDEVICES=y+# CONFIG_DUMMY is not set+# CONFIG_BONDING is not set+# CONFIG_EQUALIZER is not set+# CONFIG_TUN is not set++#+# ARCnet devices+#+# CONFIG_ARCNET is not set++#+# PHY device support+#++#+# Ethernet (10 or 100Mbit)+#+# CONFIG_NET_ETHERNET is not set+CONFIG_IBM_NEW_EMAC=y+CONFIG_IBM_NEW_EMAC_RXB=128+CONFIG_IBM_NEW_EMAC_TXB=64+CONFIG_IBM_NEW_EMAC_POLL_WEIGHT=32+CONFIG_IBM_NEW_EMAC_RX_COPY_THRESHOLD=256+CONFIG_IBM_NEW_EMAC_RX_SKB_HEADROOM=0+# CONFIG_IBM_NEW_EMAC_DEBUG is not set+CONFIG_IBM_NEW_EMAC_ZMII=y+# CONFIG_IBM_NEW_EMAC_RGMII is not set+# CONFIG_IBM_NEW_EMAC_TAH is not set+# CONFIG_IBM_NEW_EMAC_EMAC4 is not set++#+# Ethernet (1000 Mbit)+#+# CONFIG_ACENIC is not set+# CONFIG_DL2K is not set+# CONFIG_E1000 is not set+# CONFIG_NS83820 is not set+# CONFIG_HAMACHI is not set+# CONFIG_YELLOWFIN is not set+# CONFIG_R8169 is not set+# CONFIG_SIS190 is not set+# CONFIG_SKGE is not set+# CONFIG_SKY2 is not set+# CONFIG_SK98LIN is not set+# CONFIG_TIGON3 is not set+# CONFIG_BNX2 is not set+# CONFIG_QLA3XXX is not set+# CONFIG_ATL1 is not set++#+# Ethernet (10000 Mbit)+#+# CONFIG_CHELSIO_T1 is not set+# CONFIG_CHELSIO_T3 is not set+# CONFIG_IXGB is not set+# CONFIG_S2IO is not set+# CONFIG_MYRI10GE is not set+# CONFIG_NETXEN_NIC is not set++#+# Token Ring devices+#+# CONFIG_TR is not set++#+# Wireless LAN (non-hamradio)+#+# CONFIG_NET_RADIO is not set++#+# Wan interfaces+#+# CONFIG_WAN is not set+# CONFIG_FDDI is not set+# CONFIG_HIPPI is not set+# CONFIG_PPP is not set+# CONFIG_SLIP is not set+# CONFIG_SHAPER is not set+# CONFIG_NETCONSOLE is not set+# CONFIG_NETPOLL is not set+# CONFIG_NET_POLL_CONTROLLER is not set++#+# ISDN subsystem+#+# CONFIG_ISDN is not set++#+# Telephony Support+#+# CONFIG_PHONE is not set++#+# Input device support+#+# CONFIG_INPUT is not set++#+# Hardware I/O ports+#+# CONFIG_SERIO is not set+# CONFIG_GAMEPORT is not set++#+# Character devices+#+# CONFIG_VT is not set+# CONFIG_SERIAL_NONSTANDARD is not set++#+# Serial drivers+#+CONFIG_SERIAL_8250=y+CONFIG_SERIAL_8250_CONSOLE=y+# CONFIG_SERIAL_8250_PCI is not set+CONFIG_SERIAL_8250_NR_UARTS=4+CONFIG_SERIAL_8250_RUNTIME_UARTS=4+CONFIG_SERIAL_8250_EXTENDED=y+# CONFIG_SERIAL_8250_MANY_PORTS is not set+CONFIG_SERIAL_8250_SHARE_IRQ=y+# CONFIG_SERIAL_8250_DETECT_IRQ is not set+# CONFIG_SERIAL_8250_RSA is not set++#+# Non-8250 serial port support+#+# CONFIG_SERIAL_UARTLITE is not set+CONFIG_SERIAL_CORE=y+CONFIG_SERIAL_CORE_CONSOLE=y+# CONFIG_SERIAL_JSM is not set+CONFIG_SERIAL_OF_PLATFORM=y+CONFIG_UNIX98_PTYS=y+CONFIG_LEGACY_PTYS=y+CONFIG_LEGACY_PTY_COUNT=256++#+# IPMI+#+# CONFIG_IPMI_HANDLER is not set++#+# Watchdog Cards+#+# CONFIG_WATCHDOG is not set+# CONFIG_HW_RANDOM is not set+# CONFIG_NVRAM is not set+# CONFIG_GEN_RTC is not set+# CONFIG_DTLK is not set+# CONFIG_R3964 is not set+# CONFIG_APPLICOM is not set+# CONFIG_AGP is not set+# CONFIG_DRM is not set+# CONFIG_RAW_DRIVER is not set++#+# TPM devices+#+# CONFIG_TCG_TPM is not set++#+# I2C support+#+# CONFIG_I2C is not set++#+# SPI support+#+# CONFIG_SPI is not set+# CONFIG_SPI_MASTER is not set++#+# Dallas's 1-wire bus+#+# CONFIG_W1 is not set++#+# Hardware Monitoring support+#+# CONFIG_HWMON is not set+# CONFIG_HWMON_VID is not set++#+# Multimedia devices+#+# CONFIG_VIDEO_DEV is not set++#+# Digital Video Broadcasting Devices+#+# CONFIG_DVB is not set++#+# Graphics support+#+# CONFIG_FIRMWARE_EDID is not set+# CONFIG_FB is not set+# CONFIG_FB_IBM_GXT4500 is not set+# CONFIG_BACKLIGHT_LCD_SUPPORT is not set++#+# Sound+#+# CONFIG_SOUND is not set++#+# USB support+#+CONFIG_USB_ARCH_HAS_HCD=y+CONFIG_USB_ARCH_HAS_OHCI=y+CONFIG_USB_ARCH_HAS_EHCI=y+# CONFIG_USB is not set++#+# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'+#++#+# USB Gadget Support+#+# CONFIG_USB_GADGET is not set++#+# MMC/SD Card support+#+# CONFIG_MMC is not set++#+# LED devices+#+# CONFIG_NEW_LEDS is not set++#+# LED drivers+#++#+# LED Triggers+#++#+# InfiniBand support+#+# CONFIG_INFINIBAND is not set++#+# EDAC - error detection and reporting (RAS) (EXPERIMENTAL)+#++#+# Real Time Clock+#+# CONFIG_RTC_CLASS is not set++#+# DMA Engine support+#+# CONFIG_DMA_ENGINE is not set++#+# DMA Clients+#++#+# DMA Devices+#++#+# Auxiliary Display support+#++#+# Virtualization+#++#+# File systems+#+CONFIG_EXT2_FS=y+# CONFIG_EXT2_FS_XATTR is not set+# CONFIG_EXT2_FS_XIP is not set+# CONFIG_EXT3_FS is not set+# CONFIG_EXT4DEV_FS is not set+# CONFIG_REISERFS_FS is not set+# CONFIG_JFS_FS is not set+# CONFIG_FS_POSIX_ACL is not set+# CONFIG_XFS_FS is not set+# CONFIG_GFS2_FS is not set+# CONFIG_OCFS2_FS is not set+# CONFIG_MINIX_FS is not set+# CONFIG_ROMFS_FS is not set+CONFIG_INOTIFY=y+CONFIG_INOTIFY_USER=y+# CONFIG_QUOTA is not set+CONFIG_DNOTIFY=y+# CONFIG_AUTOFS_FS is not set+# CONFIG_AUTOFS4_FS is not set+# CONFIG_FUSE_FS is not set++#+# CD-ROM/DVD Filesystems+#+# CONFIG_ISO9660_FS is not set+# CONFIG_UDF_FS is not set++#+# DOS/FAT/NT Filesystems+#+# CONFIG_MSDOS_FS is not set+# CONFIG_VFAT_FS is not set+# CONFIG_NTFS_FS is not set++#+# Pseudo filesystems+#+CONFIG_PROC_FS=y+CONFIG_PROC_KCORE=y+CONFIG_PROC_SYSCTL=y+CONFIG_SYSFS=y+CONFIG_TMPFS=y+# CONFIG_TMPFS_POSIX_ACL is not set+# CONFIG_HUGETLB_PAGE is not set+CONFIG_RAMFS=y+# CONFIG_CONFIGFS_FS is not set++#+# Miscellaneous filesystems+#+# CONFIG_ADFS_FS is not set+# CONFIG_AFFS_FS is not set+# CONFIG_HFS_FS is not set+# CONFIG_HFSPLUS_FS is not set+# CONFIG_BEFS_FS is not set+# CONFIG_BFS_FS is not set+# CONFIG_EFS_FS is not set+CONFIG_CRAMFS=y+# CONFIG_VXFS_FS is not set+# CONFIG_HPFS_FS is not set+# CONFIG_QNX4FS_FS is not set+# CONFIG_SYSV_FS is not set+# CONFIG_UFS_FS is not set++#+# Network File Systems+#+CONFIG_NFS_FS=y+CONFIG_NFS_V3=y+# CONFIG_NFS_V3_ACL is not set+# CONFIG_NFS_V4 is not set+# CONFIG_NFS_DIRECTIO is not set+# CONFIG_NFSD is not set+CONFIG_ROOT_NFS=y+CONFIG_LOCKD=y+CONFIG_LOCKD_V4=y+CONFIG_NFS_COMMON=y+CONFIG_SUNRPC=y+# CONFIG_RPCSEC_GSS_KRB5 is not set+# CONFIG_RPCSEC_GSS_SPKM3 is not set+# CONFIG_SMB_FS is not set+# CONFIG_CIFS is not set+# CONFIG_NCP_FS is not set+# CONFIG_CODA_FS is not set+# CONFIG_AFS_FS is not set+# CONFIG_9P_FS is not set++#+# Partition Types+#+# CONFIG_PARTITION_ADVANCED is not set+CONFIG_MSDOS_PARTITION=y++#+# Native Language Support+#+# CONFIG_NLS is not set++#+# Distributed Lock Manager+#+# CONFIG_DLM is not set++#+# Library routines+#+CONFIG_BITREVERSE=y+# CONFIG_CRC_CCITT is not set+# CONFIG_CRC16 is not set+CONFIG_CRC32=y+# CONFIG_LIBCRC32C is not set+CONFIG_ZLIB_INFLATE=y+CONFIG_PLIST=y+CONFIG_HAS_IOMEM=y+CONFIG_HAS_IOPORT=y++#+# Instrumentation Support+#+# CONFIG_PROFILING is not set++#+# Kernel hacking+#+# CONFIG_PRINTK_TIME is not set+CONFIG_ENABLE_MUST_CHECK=y+CONFIG_MAGIC_SYSRQ=y+# CONFIG_UNUSED_SYMBOLS is not set+# CONFIG_DEBUG_FS is not set+# CONFIG_HEADERS_CHECK is not set+CONFIG_DEBUG_KERNEL=y+# CONFIG_DEBUG_SHIRQ is not set+CONFIG_LOG_BUF_SHIFT=14+CONFIG_DETECT_SOFTLOCKUP=y+# CONFIG_SCHEDSTATS is not set+# CONFIG_TIMER_STATS is not set+# CONFIG_DEBUG_SLAB is not set+# CONFIG_DEBUG_RT_MUTEXES is not set+# CONFIG_RT_MUTEX_TESTER is not set+# CONFIG_DEBUG_SPINLOCK is not set+# CONFIG_DEBUG_MUTEXES is not set+# CONFIG_DEBUG_SPINLOCK_SLEEP is not set+# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set+# CONFIG_DEBUG_KOBJECT is not set+# CONFIG_DEBUG_BUGVERBOSE is not set+# CONFIG_DEBUG_INFO is not set+# CONFIG_DEBUG_VM is not set+# CONFIG_DEBUG_LIST is not set+CONFIG_FORCED_INLINING=y+# CONFIG_RCU_TORTURE_TEST is not set+# CONFIG_DEBUG_STACKOVERFLOW is not set+# CONFIG_DEBUG_STACK_USAGE is not set+CONFIG_DEBUGGER=y+# CONFIG_KGDB is not set+# CONFIG_XMON is not set+# CONFIG_BDI_SWITCH is not set+# CONFIG_BOOTX_TEXT is not set+# CONFIG_PPC_EARLY_DEBUG is not set++#+# Security options+#+# CONFIG_KEYS is not set+# CONFIG_SECURITY is not set++#+# Cryptographic options+#+CONFIG_CRYPTO=y+CONFIG_CRYPTO_ALGAPI=y+CONFIG_CRYPTO_BLKCIPHER=y+CONFIG_CRYPTO_MANAGER=y+# CONFIG_CRYPTO_HMAC is not set+# CONFIG_CRYPTO_XCBC is not set+# CONFIG_CRYPTO_NULL is not set+# CONFIG_CRYPTO_MD4 is not set+CONFIG_CRYPTO_MD5=y+# CONFIG_CRYPTO_SHA1 is not set+# CONFIG_CRYPTO_SHA256 is not set+# CONFIG_CRYPTO_SHA512 is not set+# CONFIG_CRYPTO_WP512 is not set+# CONFIG_CRYPTO_TGR192 is not set+# CONFIG_CRYPTO_GF128MUL is not set+CONFIG_CRYPTO_ECB=y+CONFIG_CRYPTO_CBC=y+CONFIG_CRYPTO_PCBC=y+# CONFIG_CRYPTO_LRW is not set+CONFIG_CRYPTO_DES=y+# CONFIG_CRYPTO_FCRYPT is not set+# CONFIG_CRYPTO_BLOWFISH is not set+# CONFIG_CRYPTO_TWOFISH is not set+# CONFIG_CRYPTO_SERPENT is not set+# CONFIG_CRYPTO_AES is not set+# CONFIG_CRYPTO_CAST5 is not set+# CONFIG_CRYPTO_CAST6 is not set+# CONFIG_CRYPTO_TEA is not set+# CONFIG_CRYPTO_ARC4 is not set+# CONFIG_CRYPTO_KHAZAD is not set+# CONFIG_CRYPTO_ANUBIS is not set+# CONFIG_CRYPTO_DEFLATE is not set+# CONFIG_CRYPTO_MICHAEL_MIC is not set+# CONFIG_CRYPTO_CRC32C is not set+# CONFIG_CRYPTO_CAMELLIA is not set+# CONFIG_CRYPTO_TEST is not set++#+# Hardware crypto devices+#
Oops, no. Thanks for spotting that, the Ebony has no level-low
devices, so I didn't notice any problems.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
I think at this point we should also clear the interrupts in the SR
register as well. When playing with the Bamboo port, I found that the
firmware leaves pending interrupts, which can lead to some not nice
results when the cascade bits are enabled.
josh
From: Kumar Gala <hidden> Date: 2007-03-23 14:09:44
On Mar 22, 2007, at 4:22 AM, David Gibson wrote:
This patch moves the mmu.h definitions which are still relevant for
ARCH=powerpc from include/asm-ppc/mmu.h to their own file,
include/asm-powerpc/mmu_44x.h. The new file is included from
asm-powerpc/mmu.h, and a couple of other tweaks to correct mmu
definitions for 44x are made.
Signed-off-by: David Gibson <redacted>
---
arch/powerpc/kernel/head_44x.S | 4 -
arch/powerpc/mm/44x_mmu.c | 81 ++++++
+-------------------------------
arch/powerpc/mm/mmu_decl.h | 2
include/asm-powerpc/mmu-44x/mmu.h | 75 ++++++++++++++++++++++++++
+++++++++
include/asm-powerpc/mmu.h | 11 ++++-
5 files changed, 105 insertions(+), 68 deletions(-)
Any reason you are creating a new directory in include/asm-powerpc
for 44x mmu defn? why not just mmu_44x.h or something like that?
- k
From: David Gibson <hidden> Date: 2007-03-23 23:30:34
On Fri, Mar 23, 2007 at 09:09:11AM -0500, Kumar Gala wrote:
On Mar 22, 2007, at 4:22 AM, David Gibson wrote:
quoted
This patch moves the mmu.h definitions which are still relevant for
ARCH=powerpc from include/asm-ppc/mmu.h to their own file,
include/asm-powerpc/mmu_44x.h. The new file is included from
asm-powerpc/mmu.h, and a couple of other tweaks to correct mmu
definitions for 44x are made.
Signed-off-by: David Gibson <redacted>
---
arch/powerpc/kernel/head_44x.S | 4 -
arch/powerpc/mm/44x_mmu.c | 81 ++++++
+-------------------------------
arch/powerpc/mm/mmu_decl.h | 2
include/asm-powerpc/mmu-44x/mmu.h | 75 ++++++++++++++++++++++++++
+++++++++
include/asm-powerpc/mmu.h | 11 ++++-
5 files changed, 105 insertions(+), 68 deletions(-)
Any reason you are creating a new directory in include/asm-powerpc
for 44x mmu defn? why not just mmu_44x.h or something like that?
Heh, Stephen asked me that too, in person.
Originally I did use mmu_44x.h, but I'm looking ahead. In the middle
term, I want to purge the last dependencies on include/asm-ppc from
include/asm-powerpc, which currently includes all the mm headers:
mmu.h, pgtable.h, pgalloc.h, possibly a couple of others.
It seems most sensible to me to have a subdirectory for each mmu
family (32-bit has, 64-bit hash, 40x, 44x, FSL Book E, etc..) , with
the relevant version of each of these files. This patch is a first
tiny step in that direction.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson