From: Kukjin Kim <kgene.kim@samsung.com> To: "'Stephen Rothwell'" <sfr@canb.auug.org.au> Cc: linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, "'Stephen Warren'" <swarren@nvidia.com>, "'Olof Johansson'" <olof@lixom.net>, "'Arnd Bergmann'" <arnd@arndb.de>, linux-arm-kernel@lists.infradead.org, cpgs@samsung.com Subject: RE: linux-next: manual merge of the samsung tree with the arm-soc tree Date: Wed, 16 Jan 2013 21:13:00 -0800 [thread overview] Message-ID: <0c9401cdf471$53f7c140$fbe743c0$@samsung.com> (raw) In-Reply-To: Kukjin Kim wrote: [...] > Hmm, updating timer patches in Samsung tree cause the merge conflicts with > arm-soc, so for now I dropped them in my tree just now. > And note that regarding topic branch which are including it will be re-worked > soon :-) > > Now to merge Samsung tree for linux-next should be fine. > > Thanks again. > One more, following is my preferred resolution when merge conflict happens between Samsung tree and arm-soc tree: 8<--------------------------------------------------- diff --cc arch/arm/common/Makefile index 55d4182,dc8dd0d..7a5df8b --- a/arch/arm/common/Makefile +++ b/arch/arm/common/Makefile @@@ -2,10 -2,6 +2,8 @@@ # Makefile for the linux kernel. # +obj-y += firmware.o + - obj-$(CONFIG_ARM_GIC) += gic.o - obj-$(CONFIG_ARM_VIC) += vic.o obj-$(CONFIG_ICST) += icst.o obj-$(CONFIG_SA1111) += sa1111.o obj-$(CONFIG_PCI_HOST_VIA82C505) += via82c505.o diff --cc arch/arm/mach-exynos/mach-exynos4-dt.c index ab1dacc,112d10e..3ac73ed --- a/arch/arm/mach-exynos/mach-exynos4-dt.c +++ b/arch/arm/mach-exynos/mach-exynos4-dt.c @@@ -107,11 -106,9 +106,10 @@@ DT_MACHINE_START(EXYNOS4210_DT, "Samsun .smp = smp_ops(exynos_smp_ops), .init_irq = exynos4_init_irq, .map_io = exynos4_dt_map_io, - .handle_irq = gic_handle_irq, + .init_early = exynos_firmware_init, .init_machine = exynos4_dt_machine_init, .init_late = exynos_init_late, - .timer = &exynos4_timer, + .init_time = exynos4_timer_init, .dt_compat = exynos4_dt_compat, .restart = exynos4_restart, MACHINE_END diff --cc arch/arm/mach-exynos/platsmp.c index 3226893,60f7c5b..a083e05 --- a/arch/arm/mach-exynos/platsmp.c +++ b/arch/arm/mach-exynos/platsmp.c @@@ -20,12 -20,11 +20,12 @@@ #include <linux/jiffies.h> #include <linux/smp.h> #include <linux/io.h> + #include <linux/irqchip/arm-gic.h> #include <asm/cacheflush.h> - #include <asm/hardware/gic.h> #include <asm/smp_plat.h> #include <asm/smp_scu.h> +#include <asm/firmware.h> #include <mach/hardware.h> #include <mach/regs-clock.h> @@@ -146,22 -145,11 +146,22 @@@ static int __cpuinit exynos_boot_second timeout = jiffies + (1 * HZ); while (time_before(jiffies, timeout)) { + unsigned long boot_addr; + smp_rmb(); - __raw_writel(virt_to_phys(exynos4_secondary_startup), - cpu_boot_reg(phys_cpu)); + boot_addr = virt_to_phys(exynos4_secondary_startup); + + /* + * Try to set boot address using firmware first + * and fall back to boot register if it fails. + */ + if (call_firmware_op(set_cpu_boot_addr, phys_cpu, boot_addr)) + __raw_writel(boot_addr, cpu_boot_reg(phys_cpu)); + + call_firmware_op(cpu_boot, phys_cpu); + - gic_raise_softirq(cpumask_of(cpu), 0); + arch_send_wakeup_ipi_mask(cpumask_of(cpu)); if (pen_release == -1) break;
WARNING: multiple messages have this Message-ID (diff)
From: kgene.kim@samsung.com (Kukjin Kim) To: linux-arm-kernel@lists.infradead.org Subject: linux-next: manual merge of the samsung tree with the arm-soc tree Date: Wed, 16 Jan 2013 21:13:00 -0800 [thread overview] Message-ID: <0c9401cdf471$53f7c140$fbe743c0$@samsung.com> (raw) In-Reply-To: 20130117145324.3f1f27fb5902b5a03135bf06@canb.auug.org.au Kukjin Kim wrote: [...] > Hmm, updating timer patches in Samsung tree cause the merge conflicts with > arm-soc, so for now I dropped them in my tree just now. > And note that regarding topic branch which are including it will be re-worked > soon :-) > > Now to merge Samsung tree for linux-next should be fine. > > Thanks again. > One more, following is my preferred resolution when merge conflict happens between Samsung tree and arm-soc tree: 8<--------------------------------------------------- diff --cc arch/arm/common/Makefile index 55d4182,dc8dd0d..7a5df8b --- a/arch/arm/common/Makefile +++ b/arch/arm/common/Makefile @@@ -2,10 -2,6 +2,8 @@@ # Makefile for the linux kernel. # +obj-y += firmware.o + - obj-$(CONFIG_ARM_GIC) += gic.o - obj-$(CONFIG_ARM_VIC) += vic.o obj-$(CONFIG_ICST) += icst.o obj-$(CONFIG_SA1111) += sa1111.o obj-$(CONFIG_PCI_HOST_VIA82C505) += via82c505.o diff --cc arch/arm/mach-exynos/mach-exynos4-dt.c index ab1dacc,112d10e..3ac73ed --- a/arch/arm/mach-exynos/mach-exynos4-dt.c +++ b/arch/arm/mach-exynos/mach-exynos4-dt.c @@@ -107,11 -106,9 +106,10 @@@ DT_MACHINE_START(EXYNOS4210_DT, "Samsun .smp = smp_ops(exynos_smp_ops), .init_irq = exynos4_init_irq, .map_io = exynos4_dt_map_io, - .handle_irq = gic_handle_irq, + .init_early = exynos_firmware_init, .init_machine = exynos4_dt_machine_init, .init_late = exynos_init_late, - .timer = &exynos4_timer, + .init_time = exynos4_timer_init, .dt_compat = exynos4_dt_compat, .restart = exynos4_restart, MACHINE_END diff --cc arch/arm/mach-exynos/platsmp.c index 3226893,60f7c5b..a083e05 --- a/arch/arm/mach-exynos/platsmp.c +++ b/arch/arm/mach-exynos/platsmp.c @@@ -20,12 -20,11 +20,12 @@@ #include <linux/jiffies.h> #include <linux/smp.h> #include <linux/io.h> + #include <linux/irqchip/arm-gic.h> #include <asm/cacheflush.h> - #include <asm/hardware/gic.h> #include <asm/smp_plat.h> #include <asm/smp_scu.h> +#include <asm/firmware.h> #include <mach/hardware.h> #include <mach/regs-clock.h> @@@ -146,22 -145,11 +146,22 @@@ static int __cpuinit exynos_boot_second timeout = jiffies + (1 * HZ); while (time_before(jiffies, timeout)) { + unsigned long boot_addr; + smp_rmb(); - __raw_writel(virt_to_phys(exynos4_secondary_startup), - cpu_boot_reg(phys_cpu)); + boot_addr = virt_to_phys(exynos4_secondary_startup); + + /* + * Try to set boot address using firmware first + * and fall back to boot register if it fails. + */ + if (call_firmware_op(set_cpu_boot_addr, phys_cpu, boot_addr)) + __raw_writel(boot_addr, cpu_boot_reg(phys_cpu)); + + call_firmware_op(cpu_boot, phys_cpu); + - gic_raise_softirq(cpumask_of(cpu), 0); + arch_send_wakeup_ipi_mask(cpumask_of(cpu)); if (pen_release == -1) break;
next prev parent reply other threads:[~2013-01-17 5:13 UTC|newest] Thread overview: 72+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-01-11 4:32 linux-next: manual merge of the samsung tree with the arm-soc tree Stephen Rothwell 2013-01-11 4:32 ` Stephen Rothwell 2013-01-11 4:32 ` Stephen Rothwell 2013-01-17 3:53 ` Stephen Rothwell 2013-01-17 3:53 ` Stephen Rothwell 2013-01-17 3:53 ` Stephen Rothwell 2013-01-17 4:06 ` Kukjin Kim 2013-01-17 4:06 ` Kukjin Kim 2013-01-17 4:10 ` Kukjin Kim 2013-01-17 4:10 ` Kukjin Kim 2013-01-17 5:02 ` Kukjin Kim 2013-01-17 5:02 ` Kukjin Kim 2013-01-17 5:13 ` Kukjin Kim [this message] 2013-01-17 5:13 ` Kukjin Kim 2013-01-17 5:59 ` Stephen Rothwell 2013-01-17 5:59 ` Stephen Rothwell -- strict thread matches above, loose matches on Subject: below -- 2014-07-21 1:13 Stephen Rothwell 2014-07-21 1:13 ` Stephen Rothwell 2014-07-21 1:13 ` Stephen Rothwell 2014-07-17 2:06 Stephen Rothwell 2014-07-17 2:06 ` Stephen Rothwell 2014-07-17 2:06 ` Stephen Rothwell 2014-07-17 2:01 Stephen Rothwell 2014-07-17 2:01 ` Stephen Rothwell 2014-07-17 2:01 ` Stephen Rothwell 2014-07-17 1:54 Stephen Rothwell 2014-07-17 1:54 ` Stephen Rothwell 2014-07-17 1:54 ` Stephen Rothwell 2014-05-26 0:17 Stephen Rothwell 2014-05-26 0:17 ` Stephen Rothwell 2014-05-26 0:17 ` Stephen Rothwell 2014-05-26 0:37 ` Stephen Rothwell 2014-05-26 0:37 ` Stephen Rothwell 2014-05-26 0:37 ` Stephen Rothwell 2014-03-23 23:30 Stephen Rothwell 2014-03-23 23:30 ` Stephen Rothwell 2014-03-23 23:30 ` Stephen Rothwell 2013-04-05 5:02 Stephen Rothwell 2013-04-05 5:02 ` Stephen Rothwell 2013-04-05 5:02 ` Stephen Rothwell 2013-04-05 6:49 ` Kukjin Kim 2013-04-05 6:49 ` Kukjin Kim 2013-02-13 7:39 Stephen Rothwell 2013-02-13 7:39 ` Stephen Rothwell 2013-02-13 7:39 ` Stephen Rothwell 2013-01-30 14:48 Stephen Rothwell 2013-01-30 14:48 ` Stephen Rothwell 2013-01-30 14:48 ` Stephen Rothwell 2013-01-30 14:48 Stephen Rothwell 2013-01-30 14:48 ` Stephen Rothwell 2013-01-30 14:48 ` Stephen Rothwell 2013-02-09 14:20 ` Grant Likely 2013-02-09 14:20 ` Grant Likely 2013-01-18 3:28 Stephen Rothwell 2013-01-18 3:28 ` Stephen Rothwell 2013-01-18 3:28 ` Stephen Rothwell 2013-01-18 3:24 Stephen Rothwell 2013-01-18 3:24 ` Stephen Rothwell 2013-01-18 3:24 ` Stephen Rothwell 2013-01-18 3:21 Stephen Rothwell 2013-01-18 3:21 ` Stephen Rothwell 2013-01-18 3:21 ` Stephen Rothwell 2013-01-11 4:18 Stephen Rothwell 2012-11-26 11:19 Stephen Rothwell 2012-11-26 11:19 ` Stephen Rothwell 2012-11-26 11:19 ` Stephen Rothwell 2012-11-26 11:15 Stephen Rothwell 2012-11-26 11:15 ` Stephen Rothwell 2012-11-26 11:15 ` Stephen Rothwell 2012-09-24 10:52 Stephen Rothwell 2012-09-24 10:52 ` Stephen Rothwell 2012-09-24 10:52 ` Stephen Rothwell
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to='0c9401cdf471$53f7c140$fbe743c0$@samsung.com' \ --to=kgene.kim@samsung.com \ --cc=arnd@arndb.de \ --cc=cpgs@samsung.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-next@vger.kernel.org \ --cc=olof@lixom.net \ --cc=sfr@canb.auug.org.au \ --cc=swarren@nvidia.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.