Skip to contentSkip to conversation

Blackfin arch fixing and updates for 2.6.24 merge windows

GIT-PULL Part #2 Bryan Wu 2 participants 2 messages Oct 21, 2007

lore
Share & tools
lore

Bryan Wu

author
#0 lore raw

Hi Linus,

This set of commits are for Blackfin architecture updates part #2 for 2.6.24 merge window, only thing related with Blackfin arch.

- Blackfin arch BF52x processor initial support
- General purpose timers API
- Critical bug fixing and code cleanup

Please pull from 'for-linus' branch of

master.kernel.org:/pub/scm/linux/kernel/git/cooloney/blackfin-2.6.git for-linus

to receive the following updates:

 arch/blackfin/Kconfig                             |   61 +-
 arch/blackfin/Makefile                            |   23 +-
 arch/blackfin/boot/Makefile                       |    3 +
 arch/blackfin/boot/install.sh                     |   57 +
 arch/blackfin/configs/BF527-EZKIT_defconfig       | 1241 +++++++++++++++++++++
 arch/blackfin/configs/BF548-EZKIT_defconfig       |    9 +-
 arch/blackfin/kernel/Makefile                     |    1 +
 arch/blackfin/kernel/bfin_dma_5xx.c               |   26 +
 arch/blackfin/kernel/bfin_gpio.c                  |   35 +-
 arch/blackfin/kernel/gptimers.c                   |  250 +++++
 arch/blackfin/kernel/reboot.c                     |    2 +-
 arch/blackfin/kernel/setup.c                      |  116 ++-
 arch/blackfin/kernel/traps.c                      |    2 +
 arch/blackfin/lib/Makefile                        |    2 +-
 arch/blackfin/lib/udivdi3.S                       |  375 +++++++
 arch/blackfin/mach-bf527/Kconfig                  |  251 +++++
 arch/blackfin/mach-bf527/Makefile                 |    9 +
 arch/blackfin/mach-bf527/boards/Makefile          |    7 +
 arch/blackfin/mach-bf527/boards/eth_mac.c         |   50 +
 arch/blackfin/mach-bf527/boards/ezkit.c           |  737 ++++++++++++
 arch/blackfin/mach-bf527/cpu.c                    |  161 +++
 arch/blackfin/mach-bf527/dma.c                    |  115 ++
 arch/blackfin/mach-bf527/head.S                   |  456 ++++++++
 arch/blackfin/mach-bf527/ints-priority.c          |  100 ++
 arch/blackfin/mach-bf533/boards/cm_bf533.c        |    2 +-
 arch/blackfin/mach-bf533/boards/ezkit.c           |    2 +-
 arch/blackfin/mach-bf533/boards/generic_board.c   |    2 +-
 arch/blackfin/mach-bf533/boards/stamp.c           |    2 +-
 arch/blackfin/mach-bf537/boards/cm_bf537.c        |    2 +-
 arch/blackfin/mach-bf537/boards/generic_board.c   |    2 +-
 arch/blackfin/mach-bf537/boards/pnav10.c          |    2 +-
 arch/blackfin/mach-bf537/boards/stamp.c           |    2 +-
 arch/blackfin/mach-bf548/boards/ezkit.c           |    4 +-
 arch/blackfin/mach-bf548/dma.c                    |    1 +
 arch/blackfin/mach-bf561/boards/cm_bf561.c        |    2 +-
 arch/blackfin/mach-bf561/boards/ezkit.c           |    2 +-
 arch/blackfin/mach-bf561/boards/generic_board.c   |    2 +-
 arch/blackfin/mach-bf561/boards/tepla.c           |    2 +-
 arch/blackfin/mach-common/ints-priority-dc.c      |    8 +-
 arch/blackfin/mach-common/ints-priority-sc.c      |   55 +-
 drivers/serial/Kconfig                            |    2 +-
 include/asm-blackfin/bf5xx_timers.h               |  209 ----
 include/asm-blackfin/bfin-global.h                |    4 +-
 include/asm-blackfin/dma.h                        |    7 +-
 include/asm-blackfin/gpio.h                       |    3 +-
 include/asm-blackfin/gptimers.h                   |  210 ++++
 include/asm-blackfin/mach-bf527/anomaly.h         |    8 +
 include/asm-blackfin/mach-bf527/bf527.h           |  127 +++
 include/asm-blackfin/mach-bf527/bfin_serial_5xx.h |  152 +++
 include/asm-blackfin/mach-bf527/blackfin.h        |   78 ++
 include/asm-blackfin/mach-bf527/cdefBF52x_base.h  |   19 +-
 include/asm-blackfin/mach-bf527/defBF527.h        |    4 +-
 include/asm-blackfin/mach-bf527/defBF52x_base.h   |    9 +-
 include/asm-blackfin/mach-bf527/dma.h             |   60 +
 include/asm-blackfin/mach-bf527/irq.h             |  263 +++++
 include/asm-blackfin/mach-bf527/mem_init.h        |  337 ++++++
 include/asm-blackfin/mach-bf527/mem_map.h         |   98 ++
 include/asm-blackfin/mach-bf527/portmux.h         |  205 ++++
 include/asm-blackfin/mach-bf548/defBF549.h        |    2 +-
 include/asm-blackfin/mach-bf548/defBF54x_base.h   |    6 +-
 include/asm-blackfin/mach-bf548/dma.h             |    2 +-
 61 files changed, 5669 insertions(+), 317 deletions(-)
 create mode 100644 arch/blackfin/boot/install.sh
 create mode 100644 arch/blackfin/configs/BF527-EZKIT_defconfig
 create mode 100644 arch/blackfin/kernel/gptimers.c
 create mode 100644 arch/blackfin/lib/udivdi3.S
 create mode 100644 arch/blackfin/mach-bf527/Kconfig
 create mode 100644 arch/blackfin/mach-bf527/Makefile
 create mode 100644 arch/blackfin/mach-bf527/boards/Makefile
 create mode 100644 arch/blackfin/mach-bf527/boards/eth_mac.c
 create mode 100644 arch/blackfin/mach-bf527/boards/ezkit.c
 create mode 100644 arch/blackfin/mach-bf527/cpu.c
 create mode 100644 arch/blackfin/mach-bf527/dma.c
 create mode 100644 arch/blackfin/mach-bf527/head.S
 create mode 100644 arch/blackfin/mach-bf527/ints-priority.c
 delete mode 100644 include/asm-blackfin/bf5xx_timers.h
 create mode 100644 include/asm-blackfin/gptimers.h
 create mode 100644 include/asm-blackfin/mach-bf527/bf527.h
 create mode 100644 include/asm-blackfin/mach-bf527/bfin_serial_5xx.h
 create mode 100644 include/asm-blackfin/mach-bf527/blackfin.h
 create mode 100644 include/asm-blackfin/mach-bf527/dma.h
 create mode 100644 include/asm-blackfin/mach-bf527/irq.h
 create mode 100644 include/asm-blackfin/mach-bf527/mem_init.h
 create mode 100644 include/asm-blackfin/mach-bf527/mem_map.h
 create mode 100644 include/asm-blackfin/mach-bf527/portmux.h

Bernd Schmidt (1):
Blackfin arch: Fixing Bug: balance calls to get_task_mm with corresponding mmput calls

Bryan Wu (3):
Blackfin arch: Fix bug: missing CHIPID register field definition of BF54x Blackfin arch: dma add some API and cleanup bf54x DMA definition Blackfin arch: update boards files

Michael Hennerich (2):
Blackfin arch: add new processor ADSP-BF52x arch/mach support Blackfin arch: Optimization - no need to make additional math here

Mike Frysinger (9):
Blackfin arch BF548 defconfig: enable watchdog by default
Blackfin arch: force irq_flags into the .data section
Blackfin serial driver Kconfig: depend on DMA not being enabled rather than a specific DMA size
Blackfin arch: use "char bfin_board_name[]" rather than "char *bfin_board_name" per discussion on lkml as the former uses less storage Blackfin arch: -mno-fdpic works
Blackfin arch: add assembly function for doing 64bit unsigned division
Blackfin arch: add functions for converting between sclks and usecs
Blackfin arch: add a cheesy install target
Blackfin arch: cleanup and promote the general purpose timers api to a core blackfin component

Robin Getz (1):
Blackfin arch: Fix up /proc/cpuinfo so it is like everyone else

arch/blackfin/Kconfig +55 -6
index ad28dc7..7888551 100644
@@ -71,7 +71,7 @@ config GENERIC_CALIBRATE_DELAY
 
 config IRQCHIP_DEMUX_GPIO
 	bool
-	depends on (BF53x || BF561 || BF54x)
+	depends on (BF52x || BF53x || BF561 || BF54x)
 	default y
 
 source "init/Kconfig"
@@ -85,6 +85,21 @@ choice
 	prompt "CPU"
 	default BF533
 
+config BF522
+	bool "BF522"
+	help
+	  BF522 Processor Support.
+
+config BF525
+	bool "BF525"
+	help
+	  BF525 Processor Support.
+
+config BF527
+	bool "BF527"
+	help
+	  BF527 Processor Support.
+
 config BF531
 	bool "BF531"
 	help
@@ -144,13 +159,18 @@ endchoice
 
 choice
 	prompt "Silicon Rev"
+	default BF_REV_0_1 if BF527
 	default BF_REV_0_2 if BF537
 	default BF_REV_0_3 if BF533
 	default BF_REV_0_0 if BF549
 
 config BF_REV_0_0
 	bool "0.0"
-	depends on (BF549)
+	depends on (BF549 || BF527)
+
+config BF_REV_0_1
+	bool "0.2"
+	depends on (BF549 || BF527)
 
 config BF_REV_0_2
 	bool "0.2"
@@ -176,6 +196,11 @@ config BF_REV_NONE
 
 endchoice
 
+config BF52x
+	bool
+	depends on (BF522 || BF525 || BF527)
+	default y
+
 config BF53x
 	bool
 	depends on (BF531 || BF532 || BF533 || BF534 || BF536 || BF537)
@@ -204,6 +229,12 @@ choice
 	  configuration to ensure that all the other settings are
 	  correct.
 
+config BFIN527_EZKIT
+	bool "BF527-EZKIT"
+	depends on (BF522 || BF525 || BF527)
+	help
+	  BF533-EZKIT-LITE board Support.
+
 config BFIN533_EZKIT
 	bool "BF533-EZKIT"
 	depends on (BF533 || BF532 || BF531)
@@ -299,11 +330,17 @@ config MEM_MT48LC8M32B2B5_7
 	depends on (BFIN561_BLUETECHNIX_CM)
 	default y
 
+config MEM_MT48LC32M16A2TG_75
+	bool
+	depends on (BFIN527_EZKIT)
+	default y
+
 config BFIN_SHARED_FLASH_ENET
 	bool
 	depends on (BFIN533_STAMP)
 	default y
 
+source "arch/blackfin/mach-bf527/Kconfig"
 source "arch/blackfin/mach-bf533/Kconfig"
 source "arch/blackfin/mach-bf561/Kconfig"
 source "arch/blackfin/mach-bf537/Kconfig"
@@ -329,7 +366,7 @@ config CLKIN_HZ
 	int "Crystal Frequency in Hz"
 	default "11059200" if BFIN533_STAMP
 	default "27000000" if BFIN533_EZKIT
-	default "25000000" if BFIN537_STAMP
+	default "25000000" if (BFIN537_STAMP || BFIN527_EZKIT)
 	default "30000000" if BFIN561_EZKIT
 	default "24576000" if PNAV10
 	help
@@ -362,7 +399,7 @@ config VCO_MULT
 	range 1 64
 	default "22" if BFIN533_EZKIT
 	default "45" if BFIN533_STAMP
-	default "20" if BFIN537_STAMP
+	default "20" if (BFIN537_STAMP || BFIN527_EZKIT)
 	default "22" if BFIN533_BLUETECHNIX_CM
 	default "20" if BFIN537_BLUETECHNIX_CM
 	default "20" if BFIN561_BLUETECHNIX_CM
@@ -398,7 +435,7 @@ config SCLK_DIV
 	range 1 15
 	default 5 if BFIN533_EZKIT
 	default 5 if BFIN533_STAMP
-	default 4 if BFIN537_STAMP
+	default 4 if (BFIN537_STAMP || BFIN527_EZKIT)
 	default 5 if BFIN533_BLUETECHNIX_CM
 	default 4 if BFIN537_BLUETECHNIX_CM
 	default 4 if BFIN561_BLUETECHNIX_CM
@@ -450,6 +487,7 @@ comment "Memory Setup"
 config MEM_SIZE
 	int "SDRAM Memory Size in MBytes"
 	default  32 if BFIN533_EZKIT
+	default  64 if BFIN527_EZKIT
 	default  64 if BFIN537_STAMP
 	default  64 if BFIN561_EZKIT
 	default 128 if BFIN533_STAMP
@@ -459,6 +497,7 @@ config MEM_ADD_WIDTH
 	int "SDRAM Memory Address Width"
 	default  9 if BFIN533_EZKIT
 	default  9 if BFIN561_EZKIT
+	default 10 if BFIN527_EZKIT
 	default 10 if BFIN537_STAMP
 	default 11 if BFIN533_STAMP
 	default 10 if PNAV10
@@ -749,9 +788,19 @@ config LARGE_ALLOCS
 	  a lot of RAM, and you need to able to allocate very large
 	  contiguous chunks. If unsure, say N.
 
+config BFIN_GPTIMERS
+	tristate "Enable Blackfin General Purpose Timers API"
+	default n
+	help
+	  Enable support for the General Purpose Timers API.  If you
+	  are unsure, say N.
+
+	  To compile this driver as a module, choose M here: the module
+	  will be called gptimers.ko.
+
 config BFIN_DMA_5XX
 	bool "Enable DMA Support"
-	depends on (BF533 || BF532 || BF531 || BF537 || BF536 || BF534 || BF561 || BF54x)
+	depends on (BF52x || BF53x || BF561 || BF54x)
 	default y
 	help
 	  DMA driver for BF5xx.
arch/blackfin/Makefile +21 -2
index 3689337..3c87291 100644
@@ -12,12 +12,17 @@ LDFLAGS_vmlinux  := -X
 OBJCOPYFLAGS     := -O binary -R .note -R .comment -S
 GZFLAGS          := -9
 
+CFLAGS           += $(call cc-option,-mno-fdpic)
+AFLAGS           += $(call cc-option,-mno-fdpic)
 CFLAGS_MODULE    += -mlong-calls
 KALLSYMS         += --symbol-prefix=_
 
 KBUILD_DEFCONFIG := BF537-STAMP_defconfig
 
 # setup the machine name and the machine dependent settings
+machine-$(CONFIG_BF522) := bf527
+machine-$(CONFIG_BF525) := bf527
+machine-$(CONFIG_BF527) := bf527
 machine-$(CONFIG_BF531) := bf533
 machine-$(CONFIG_BF532) := bf533
 machine-$(CONFIG_BF533) := bf533
@@ -32,6 +37,9 @@ machine-$(CONFIG_BF561) := bf561
 MACHINE := $(machine-y)
 export MACHINE
 
+cpu-$(CONFIG_BF522) := bf522
+cpu-$(CONFIG_BF525) := bf525
+cpu-$(CONFIG_BF527) := bf527
 cpu-$(CONFIG_BF531) := bf531
 cpu-$(CONFIG_BF532) := bf532
 cpu-$(CONFIG_BF533) := bf533
@@ -97,12 +105,23 @@ archclean:
 	$(Q)$(MAKE) $(clean)=$(boot)
 
 
-all: vmImage
 boot := arch/$(ARCH)/boot
 BOOT_TARGETS = vmImage
-.PHONY: $(BOOT_TARGETS)
+PHONY += $(BOOT_TARGETS) install
+KBUILD_IMAGE := $(boot)/vmImage
+
+all: vmImage
+
 $(BOOT_TARGETS): vmlinux
 	$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
+
+install:
+	$(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) install
+
 define archhelp
   echo  '* vmImage         - Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage)'
+  echo  '  install         - Install kernel using'
+  echo  '                     (your) ~/bin/$(CROSS_COMPILE)installkernel or'
+  echo  '                     (distribution) PATH: $(CROSS_COMPILE)installkernel or'
+  echo  '                     install to $$(INSTALL_PATH)'
 endef
arch/blackfin/boot/Makefile +3 -0
index 8cd3356..522f3c1 100644
@@ -26,3 +26,6 @@ $(obj)/vmlinux.gz: $(obj)/vmlinux.bin FORCE
 $(obj)/vmImage: $(obj)/vmlinux.gz
 	$(call if_changed,uimage)
 	@echo 'Kernel: $@ is ready'
+
+install:
+	sh $(srctree)/$(src)/install.sh $(KERNELRELEASE) $(BOOTIMAGE) System.map "$(INSTALL_PATH)"
arch/blackfin/boot/install.sh new file +57 -0

57 lines not on this page · raw message

arch/blackfin/configs/BF527-EZKIT_defconfig new file +1241 -0

1,241 lines not on this page · raw message

arch/blackfin/configs/BF548-EZKIT_defconfig +8 -1
index e80f3d5..d856988 100644
@@ -809,7 +809,14 @@ CONFIG_UNIX98_PTYS=y
 # IPMI
 #
 # CONFIG_IPMI_HANDLER is not set
-# CONFIG_WATCHDOG is not set
+CONFIG_WATCHDOG=y
+# CONFIG_WATCHDOG_NOWAYOUT is not set
+
+#
+# Watchdog Device Drivers
+#
+# CONFIG_SOFT_WATCHDOG is not set
+CONFIG_BFIN_WDT=y
 CONFIG_HW_RANDOM=y
 # CONFIG_GEN_RTC is not set
 # CONFIG_R3964 is not set
arch/blackfin/kernel/Makefile +1 -0
index 8aeb606..8a4cfb2 100644
@@ -9,6 +9,7 @@ obj-y := \
 	sys_bfin.o time.o traps.o irqchip.o dma-mapping.o flat.o \
 	fixed_code.o cplbinit.o cacheinit.o reboot.o bfin_gpio.o
 
+obj-$(CONFIG_BFIN_GPTIMERS)          += gptimers.o
 obj-$(CONFIG_MODULES)                += module.o
 obj-$(CONFIG_BFIN_DMA_5XX)           += bfin_dma_5xx.o
 obj-$(CONFIG_DUAL_CORE_TEST_MODULE)  += dualcore_test.o
arch/blackfin/kernel/bfin_dma_5xx.c +26 -0
index e19164f..503eef4 100644
@@ -420,6 +420,32 @@ unsigned short get_dma_curr_ycount(unsigned int channel)
 }
 EXPORT_SYMBOL(get_dma_curr_ycount);
 
+unsigned long get_dma_next_desc_ptr(unsigned int channel)
+{
+	BUG_ON(!(dma_ch[channel].chan_status != DMA_CHANNEL_FREE
+	      && channel < MAX_BLACKFIN_DMA_CHANNEL));
+
+	return dma_ch[channel].regs->next_desc_ptr;
+}
+EXPORT_SYMBOL(get_dma_next_desc_ptr);
+
+unsigned long get_dma_curr_desc_ptr(unsigned int channel)
+{
+	BUG_ON(!(dma_ch[channel].chan_status != DMA_CHANNEL_FREE
+	      && channel < MAX_BLACKFIN_DMA_CHANNEL));
+
+	return dma_ch[channel].regs->curr_desc_ptr;
+}
+
+unsigned long get_dma_curr_addr(unsigned int channel)
+{
+	BUG_ON(!(dma_ch[channel].chan_status != DMA_CHANNEL_FREE
+	      && channel < MAX_BLACKFIN_DMA_CHANNEL));
+
+	return dma_ch[channel].regs->curr_addr_ptr;
+}
+EXPORT_SYMBOL(get_dma_curr_addr);
+
 static void *__dma_memcpy(void *dest, const void *src, size_t size)
 {
 	int direction;	/* 1 - address decrease, 0 - address increase */
arch/blackfin/kernel/bfin_gpio.c +33 -2
index 3fe0cd4..ce85d4b 100644
@@ -124,7 +124,7 @@ static struct gpio_port_t *gpio_bankb[gpio_bank(MAX_BLACKFIN_GPIOS)] = {
 };
 #endif
 
-#ifdef BF537_FAMILY
+#if defined(BF527_FAMILY) || defined(BF537_FAMILY)
 static struct gpio_port_t *gpio_bankb[gpio_bank(MAX_BLACKFIN_GPIOS)] = {
 	(struct gpio_port_t *) PORTFIO,
 	(struct gpio_port_t *) PORTGIO,
@@ -139,6 +139,21 @@ static unsigned short *port_fer[gpio_bank(MAX_BLACKFIN_GPIOS)] = {
 
 #endif
 
+#ifdef BF527_FAMILY
+static unsigned short *port_mux[gpio_bank(MAX_BLACKFIN_GPIOS)] = {
+	(unsigned short *) PORTF_MUX,
+	(unsigned short *) PORTG_MUX,
+	(unsigned short *) PORTH_MUX,
+};
+
+static const
+u8 pmux_offset[][16] =
+	{{ 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 4, 6, 8, 8, 10, 10 }, /* PORTF */
+	 { 0, 0, 0, 0, 0, 2, 2, 4, 4, 6, 8, 10, 10, 10, 12, 12 }, /* PORTG */
+	 { 0, 0, 0, 0, 0, 0, 0, 0, 2, 4, 4, 4, 4, 4, 4, 4 }, /* PORTH */
+	};
+#endif
+
 #ifdef BF561_FAMILY
 static struct gpio_port_t *gpio_bankb[gpio_bank(MAX_BLACKFIN_GPIOS)] = {
 	(struct gpio_port_t *) FIO0_FLAG_D,
@@ -186,6 +201,10 @@ static unsigned int sic_iwr_irqs[gpio_bank(MAX_BLACKFIN_GPIOS)] = {IRQ_PROG_INTB
 static unsigned int sic_iwr_irqs[gpio_bank(MAX_BLACKFIN_GPIOS)] = {IRQ_PROG_INTB, IRQ_PORTG_INTB, IRQ_MAC_TX};
 #endif
 
+#ifdef BF527_FAMILY
+static unsigned int sic_iwr_irqs[gpio_bank(MAX_BLACKFIN_GPIOS)] = {IRQ_PORTF_INTB, IRQ_PORTG_INTB, IRQ_PORTH_INTB};
+#endif
+
 #ifdef BF561_FAMILY
 static unsigned int sic_iwr_irqs[gpio_bank(MAX_BLACKFIN_GPIOS)] = {IRQ_PROG0_INTB, IRQ_PROG1_INTB, IRQ_PROG2_INTB};
 #endif
@@ -238,7 +257,7 @@ static int cmp_label(unsigned short ident, const char *label)
 		return -EINVAL;
 }
 
-#ifdef BF537_FAMILY
+#if defined(BF527_FAMILY) || defined(BF537_FAMILY)
 static void port_setup(unsigned short gpio, unsigned short usage)
 {
 	if (!check_gpio(gpio)) {
@@ -354,6 +373,18 @@ inline u16 get_portmux(unsigned short portno)
 
 	return (pmux >> (2 * gpio_sub_n(portno)) & 0x3);
 }
+#elif defined(BF527_FAMILY)
+inline void portmux_setup(unsigned short portno, unsigned short function)
+{
+	u16 pmux, ident = P_IDENT(portno);
+	u8 offset = pmux_offset[gpio_bank(ident)][gpio_sub_n(ident)];
+
+	pmux = *port_mux[gpio_bank(ident)];
+	pmux &= ~(3 << offset);
+	pmux |= (function & 3) << offset;
+	*port_mux[gpio_bank(ident)] = pmux;
+	SSYNC();
+}
 #else
 # define portmux_setup(...)  do { } while (0)
 #endif
arch/blackfin/kernel/gptimers.c new file +250 -0

250 lines not on this page · raw message

arch/blackfin/kernel/reboot.c +1 -1
index 356078e..ae28aac 100644
@@ -11,7 +11,7 @@
 #include <asm/reboot.h>
 #include <asm/system.h>
 
-#if defined(BF537_FAMILY) || defined(BF533_FAMILY)
+#if defined(BF537_FAMILY) || defined(BF533_FAMILY) || defined(BF527_FAMILY)
 #define SYSCR_VAL 	0x0
 #elif defined(BF561_FAMILY)
 #define SYSCR_VAL 	0x20
arch/blackfin/kernel/setup.c +75 -41

170 lines not on this page · raw message

arch/blackfin/kernel/traps.c +2 -0
index 8823e9a..afd044e 100644
@@ -118,12 +118,14 @@ static int printk_address(unsigned long address)
 					offset = (address - vma->vm_start) + (vma->vm_pgoff << PAGE_SHIFT);
 
 				write_unlock_irq(&tasklist_lock);
+				mmput(mm);
 				return printk("<0x%p> [ %s + 0x%lx ]",
 				              (void *)address, name, offset);
 			}
 
 			vml = vml->next;
 		}
+		mmput(mm);
 	}
 	write_unlock_irq(&tasklist_lock);
 
arch/blackfin/lib/Makefile +1 -1
index 635288f..bfdad52 100644
@@ -4,7 +4,7 @@
 
 lib-y := \
 	ashldi3.o ashrdi3.o lshrdi3.o \
-	muldi3.o divsi3.o udivsi3.o modsi3.o umodsi3.o \
+	muldi3.o divsi3.o udivsi3.o udivdi3.o modsi3.o umodsi3.o \
 	checksum.o memcpy.o memset.o memcmp.o memchr.o memmove.o \
 	strcmp.o strcpy.o strncmp.o strncpy.o \
 	umulsi3_highpart.o smulsi3_highpart.o \
arch/blackfin/lib/udivdi3.S new file +375 -0

375 lines not on this page · raw message

arch/blackfin/mach-bf527/Kconfig new file +251 -0

251 lines not on this page · raw message

arch/blackfin/mach-bf527/Makefile new file +9 -0
new file mode 100644
index 0000000..9f99f5d
@@ -0,0 +1,9 @@
+#
+# arch/blackfin/mach-bf527/Makefile
+#
+
+extra-y := head.o
+
+obj-y := ints-priority.o dma.o
+
+obj-$(CONFIG_CPU_FREQ)   += cpu.o
arch/blackfin/mach-bf527/boards/Makefile new file +7 -0
new file mode 100644
index 0000000..912ac8e
@@ -0,0 +1,7 @@
+#
+# arch/blackfin/mach-bf532/boards/Makefile
+#
+
+obj-y					+= eth_mac.o
+obj-$(CONFIG_BFIN527_EZKIT)		+= ezkit.o
+
arch/blackfin/mach-bf527/boards/eth_mac.c new file +50 -0

50 lines not on this page · raw message

arch/blackfin/mach-bf527/boards/ezkit.c new file +737 -0

238 lines not on this page · raw message

arch/blackfin/mach-bf527/cpu.c new file +161 -0

161 lines not on this page · raw message

arch/blackfin/mach-bf527/dma.c new file +115 -0

115 lines not on this page · raw message

arch/blackfin/mach-bf527/head.S new file +456 -0

456 lines not on this page · raw message

arch/blackfin/mach-bf527/ints-priority.c new file +100 -0

100 lines not on this page · raw message

arch/blackfin/mach-bf533/boards/cm_bf533.c +1 -1
index a57b52d..1c5a86a 100644

Lines of this file are not shown. View the raw message.

arch/blackfin/mach-bf533/boards/ezkit.c +1 -1
index 5c1e35d..34b6392 100644

Lines of this file are not shown. View the raw message.

arch/blackfin/mach-bf533/boards/generic_board.c +1 -1
index 9bc1f0d..310b777 100644

Lines of this file are not shown. View the raw message.

arch/blackfin/mach-bf533/boards/stamp.c +1 -1
index 8975e06..f84be4e 100644

Lines of this file are not shown. View the raw message.

arch/blackfin/mach-bf537/boards/cm_bf537.c +1 -1
index 44dea05..52e2320 100644

Lines of this file are not shown. View the raw message.

arch/blackfin/mach-bf537/boards/generic_board.c +1 -1
index 6668c8e..255da7a 100644

Lines of this file are not shown. View the raw message.

arch/blackfin/mach-bf537/boards/pnav10.c +1 -1
index f83a254..87b8089 100644

Lines of this file are not shown. View the raw message.

arch/blackfin/mach-bf537/boards/stamp.c +1 -1
index f42ba3a..cc41f6c 100644

Lines of this file are not shown. View the raw message.

arch/blackfin/mach-bf548/boards/ezkit.c +2 -2
index 046e6d8..6b6490e 100644

Lines of this file are not shown. View the raw message.

arch/blackfin/mach-bf548/dma.c +1 -0
index a818411..957bf13 100644

Lines of this file are not shown. View the raw message.

arch/blackfin/mach-bf561/boards/cm_bf561.c +1 -1
index cd827a1..97aeb43 100644

Lines of this file are not shown. View the raw message.

arch/blackfin/mach-bf561/boards/ezkit.c +1 -1
index 57e14ed..059d516 100644

Lines of this file are not shown. View the raw message.

arch/blackfin/mach-bf561/boards/generic_board.c +1 -1
index 4dfea5d..46816be 100644

Lines of this file are not shown. View the raw message.

arch/blackfin/mach-bf561/boards/tepla.c +1 -1
index c442eb2..4a17c6d 100644

Lines of this file are not shown. View the raw message.

arch/blackfin/mach-common/ints-priority-dc.c +7 -1
index 2db3546..c2f05fa 100644

Lines of this file are not shown. View the raw message.

arch/blackfin/mach-common/ints-priority-sc.c +41 -14

55 lines not on this page · raw message

drivers/serial/Kconfig +1 -1
index 87665d7..ed438bc 100644

Lines of this file are not shown. View the raw message.

include/asm-blackfin/bf5xx_timers.h deleted +0 -209

209 lines not on this page · raw message

include/asm-blackfin/bfin-global.h +3 -1
index a970781..14cb8d3 100644

Lines of this file are not shown. View the raw message.

include/asm-blackfin/dma.h +4 -3
index b42a531..b469505 100644

Lines of this file are not shown. View the raw message.

include/asm-blackfin/gpio.h +2 -1
index dd203cd..33ce98e 100644

Lines of this file are not shown. View the raw message.

include/asm-blackfin/gptimers.h new file +210 -0

210 lines not on this page · raw message

include/asm-blackfin/mach-bf527/anomaly.h +8 -0
index 991db98..a891204 100644

Lines of this file are not shown. View the raw message.

include/asm-blackfin/mach-bf527/bf527.h new file +127 -0

127 lines not on this page · raw message

include/asm-blackfin/mach-bf527/bfin_serial_5xx.h new file +152 -0

152 lines not on this page · raw message

include/asm-blackfin/mach-bf527/blackfin.h new file +78 -0

78 lines not on this page · raw message

include/asm-blackfin/mach-bf527/cdefBF52x_base.h +8 -11
index 5f801a0..3f4de5d 100644

Lines of this file are not shown. View the raw message.

include/asm-blackfin/mach-bf527/defBF527.h +2 -2
index 2be3293..82134f5 100644

Lines of this file are not shown. View the raw message.

include/asm-blackfin/mach-bf527/defBF52x_base.h +6 -3
index b1ff67d..d6c24c5 100644

Lines of this file are not shown. View the raw message.

include/asm-blackfin/mach-bf527/dma.h new file +60 -0

60 lines not on this page · raw message

include/asm-blackfin/mach-bf527/irq.h new file +263 -0

263 lines not on this page · raw message

include/asm-blackfin/mach-bf527/mem_init.h new file +337 -0

337 lines not on this page · raw message

include/asm-blackfin/mach-bf527/mem_map.h new file +98 -0

98 lines not on this page · raw message

include/asm-blackfin/mach-bf527/portmux.h new file +205 -0

205 lines not on this page · raw message

include/asm-blackfin/mach-bf548/defBF549.h +1 -1
index 50b3fe5..4e46d65 100644

Lines of this file are not shown. View the raw message.

include/asm-blackfin/mach-bf548/defBF54x_base.h +5 -1
index e2632db..1d365c8 100644

Lines of this file are not shown. View the raw message.

include/asm-blackfin/mach-bf548/dma.h +1 -1
index 14cb10c..4d97d3a 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.

#1 lore raw

Hi Bryan.

arch/blackfin/Makefile LDFLAGS_vmlinux := -X · line 18

Quoted 12 lines
arch/blackfin/Makefile +2 -0
index 3689337..3c87291 100644
@@ -12,12 +12,17 @@ LDFLAGS_vmlinux  := -X
 OBJCOPYFLAGS     := -O binary -R .note -R .comment -S
 GZFLAGS          := -9
 
+CFLAGS           += $(call cc-option,-mno-fdpic)
+AFLAGS           += $(call cc-option,-mno-fdpic)
 CFLAGS_MODULE    += -mlong-calls
 KALLSYMS         += --symbol-prefix=_

During the merge window kbuild shifted to use KBUILD_CFLAGS and KBUILD_AFLAGS so you need to update the above two assignments.

I think it works as is but then you cannot pass additional CFLAGS from the commandline.

Sam