[PATCH] dynticks: avoid flow_cache_flush() interrupting every core

2013-03-19 Thread Chris Metcalf
items, and only interrupt those cores. When we are trying to isolate a set of cpus from interrupts, this is important to do. Signed-off-by: Chris Metcalf --- This change stands alone so could be taken into the net tree if desired, but it is most useful in the context of Frederic Weisbecker's

Re: [PATCH] tile: revert pr_info to printk in

2013-02-04 Thread Chris Metcalf
On 2/1/2013 5:33 PM, Joe Perches wrote: > On Fri, 2013-02-01 at 12:34 -0500, Chris Metcalf wrote: >> Using pr_info in a header exposes us to potential trouble from >> subsystems that define pr_fmt. This change fixes: >> >> In file included from inc

[GIT PULL] arch/tile bug fixes for v3.8

2013-02-12 Thread Chris Metcalf
quot;, inspired to Tejun Heo's observation about Kconfig.freezer not being included. The largest changes are just syntax changes removing the tile-specific use of a macro named INT_MASK, which is way too commonly redefined throughout driver code. Chris Metcalf (9): tile: remove an unused v

Re: kernel/cgroup_freezer.c:151:3: error: 'system_freezing_cnt' undeclared

2013-01-31 Thread Chris Metcalf
; CONFIG_COGRUP_FREEZER is in init/Kconfig, so allyesconfig enables it > but as CONFIG_FREEZER definition isn't visible, we end up with broken > config CONFIG_CGROUP_FREEZER && !CONFIG_FREEZER. > > Maybe we need to move CONFIG_CGROUP_FREEZER to Kconfig.freezer if tile >

Re: kernel/cgroup_freezer.c:151:3: error: 'system_freezing_cnt' undeclared

2013-01-31 Thread Chris Metcalf
On 1/31/2013 7:52 PM, Tejun Heo wrote: > Hello, Chris. > > On Thu, Jan 31, 2013 at 07:46:09PM -0500, Chris Metcalf wrote: >> That seems reasonable to me, but I'm happy to experiment with >> including Kconfig.freezer from the arch/tile/Kconfig if that feels >>

[PATCH] tile: support atomic64_dec_if_positive()

2013-02-01 Thread Chris Metcalf
Use the normal cmpxchg() idiom to implement this functionality. Signed-off-by: Chris Metcalf --- arch/tile/Kconfig |1 + arch/tile/include/asm/atomic.h | 21 + 2 files changed, 22 insertions(+) diff --git a/arch/tile/Kconfig b/arch/tile/Kconfig index

[PATCH] drivers/input/joystick/analog.c: enable precise timer

2013-02-01 Thread Chris Metcalf
Like nm10300, tile can just use get_cycles() for this. Signed-off-by: Chris Metcalf --- drivers/input/joystick/analog.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/joystick/analog.c b/drivers/input/joystick/analog.c index 358cd7e..7cd74e2 100644 --- a

[PATCH] Export {enable,disable}_percpu_irq().

2013-02-01 Thread Chris Metcalf
These functions are used by (for example) the tilegx onchip network driver, and it's useful to be able to load that driver as a module. Signed-off-by: Chris Metcalf --- kernel/irq/manage.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c

[PATCH] tile: export a handful of symbols appropriately

2013-02-01 Thread Chris Metcalf
This was shown up by running with "allmodconfig". I used EXPORT_SYMBOL() to match existing conventions in files that were already exporting symbols, or that were exported that way by other architectures, and otherwise EXPORT_SYMBOL_GPL(). Signed-off-by: Chris Metcalf --- arch/t

[PATCH] tile: fix memcpy_*io functions for allnoconfig

2013-02-01 Thread Chris Metcalf
On tilepro without CONFIG_PCI, we can't provide inlines of these functions, as we don't have readl/writel. In addition, fix memset_io() signature to take a volatile void *. Signed-off-by: Chris Metcalf --- arch/tile/include/asm/io.h |6 +- 1 file changed, 5 insertions(+),

[PATCH] tile: tag some code with #ifdef CONFIG_COMPAT

2013-02-01 Thread Chris Metcalf
This allows us to disable COMPAT mode without a link error. Signed-off-by: Chris Metcalf --- arch/tile/kernel/intvec_64.S |4 1 file changed, 4 insertions(+) diff --git a/arch/tile/kernel/intvec_64.S b/arch/tile/kernel/intvec_64.S index 54bc9a6..4ea0809 100644 --- a/arch/tile/kernel

[PATCH] tile: revert pr_info to printk in

2013-02-01 Thread Chris Metcalf
/include/asm/io.h: In function ‘ioport_map’: arch/tile/include/asm/io.h:296: error: expected ‘)’ before ‘PFX’ Signed-off-by: Chris Metcalf --- arch/tile/include/asm/io.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/tile/include/asm/io.h b/arch/tile/include/asm/io.h

[PATCH] tile: avoid defining INT_MASK macro in

2013-02-01 Thread Chris Metcalf
ivers that are enabled by "allyesconfig". Signed-off-by: Chris Metcalf --- arch/tile/include/asm/irqflags.h| 32 +-- arch/tile/include/uapi/arch/interrupts_32.h | 394 ++- arch/tile/include/uapi/arch/interrupts_64.h | 346 +++ a

[PATCH] tile: provide "screen_info" when enabling VT

2013-02-01 Thread Chris Metcalf
This avoids a link-time failure when building allyesconfig. Signed-off-by: Chris Metcalf --- arch/tile/kernel/setup.c |5 + 1 file changed, 5 insertions(+) diff --git a/arch/tile/kernel/setup.c b/arch/tile/kernel/setup.c index 6a649a4..d1e15f7 100644 --- a/arch/tile/kernel/setup.c

[PATCH] drm: fix compile failure by including

2013-02-01 Thread Chris Metcalf
On tile architecture (with "make allyesconfig") including is required to call swiotlb_nr_tbl(). Signed-off-by: Chris Metcalf --- drivers/gpu/drm/nouveau/nouveau_bo.c |1 + drivers/gpu/drm/radeon/radeon_ttm.c |1 + 2 files changed, 2 insertions(+) diff --git a/drivers/gpu/d

Re: [PATCH 1/1] mm/hugetlb: add more arch-defined huge_pte_xxx functions

2013-03-12 Thread Chris Metcalf
per" bit in the initial mk_huge_pte() call, and then set "young" and "huge" after that in the platform-independent caller (make_huge_pte). This would allow your change to eliminate some code as well as just introducing code :-) -- Chris Metcalf, Tilera Corp. http://w

Re: [PATCH] [RFC] cross-arch: don't corrupt personality flags upon exec()

2012-08-28 Thread Chris Metcalf
set_personality(PER_LINUX); \ current_thread_info()->status |= TS_COMPAT; \ } while (0) -- Chris Metcalf, Tilera Corp. http://www.tilera.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@

Re: [PATCH] [RFC] cross-arch: don't corrupt personality flags upon exec()

2012-08-28 Thread Chris Metcalf
On 8/28/2012 2:49 PM, Jiri Kosina wrote: > On Tue, 28 Aug 2012, Chris Metcalf wrote: >>> On tile, the PER_LINUX_32BIT is always set for 32 bit compat tasks in a >>> 64 bit kernel, which is harmless but wrong anyway. Also this, tile never >>> calls set_personality, whi

Re: [patch 2/3] tile: remove duplicate CONFIG_HOTPLUG definition

2012-09-04 Thread Chris Metcalf
Kconfig file. > > Cc: Chris Metcalf > Signed-off-by: Greg Kroah-Hartman > > --- > arch/tile/Kconfig |8 > 1 file changed, 8 deletions(-) Acked-by: Chris Metcalf -- Chris Metcalf, Tilera Corp. http://www.tilera.com -- To unsubscribe from this list: send the li

Re: [PATCH 3/3] mm: Introduce HAVE_ARCH_TRANSPARENT_HUGEPAGE

2012-09-12 Thread Chris Metcalf
On 9/12/2012 11:32 AM, Michal Hocko wrote: > Makes sense if there are going to be more archs to support THP. The tile architecture currently supports it in our in-house tree, though we haven't returned it to the community yet. -- Chris Metcalf, Tilera Corp. http://www.tilera.c

Re: [PATCH] arch/tile: avoid build warnings from duplicate ELF_R_xxx #defines

2012-10-23 Thread Chris Metcalf
On 10/21/2012 11:16 PM, Rusty Russell wrote: > Chris Metcalf writes: > >> These are now provided in , so clean up warning >> by not re-defining them in module.c. >> >> Signed-off-by: Chris Metcalf > This change was in linux-next for quite a while, BTW, so there

[GIT PULL] tile updates for 3.7-rc2

2012-10-23 Thread Chris Metcalf
Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile.git stable This fixes one issue with compiler flags that can cause modules not to load, and cleans up some warnings with ELF_R_xxx defines. Chris Metcalf (2): arch/tile: avoid generating

Re: [PATCH] tile: support GENERIC_KERNEL_THREAD and GENERIC_KERNEL_EXECVE

2012-10-23 Thread Chris Metcalf
On 10/20/2012 1:16 PM, Al Viro wrote: > On Sat, Oct 20, 2012 at 04:34:01PM +0100, Al Viro wrote: >> On Sat, Oct 20, 2012 at 09:06:57AM -0400, Chris Metcalf wrote: >>> First, the compat_sys_execve() declaration provided in >>> arch/tile/include/asm/compat.h isn't r

[PATCH] arch/tile: eliminate pt_regs trampolines for syscalls

2012-10-23 Thread Chris Metcalf
cmpxchg_badaddr() syscalls are now just straight C. Signed-off-by: Chris Metcalf --- This is based on Al Viro's signal.git#arch-tile branch, which includes some ARM64 changes and some Tile changes for generic kernel execve. arch/tile/include/asm/compat.h |9 +++-- arch/tile/include/asm/sysca

Re: [PATCH] tile: support GENERIC_KERNEL_THREAD and GENERIC_KERNEL_EXECVE

2012-10-23 Thread Chris Metcalf
On 10/23/2012 2:41 PM, Al Viro wrote: > On Tue, Oct 23, 2012 at 01:30:26PM -0400, Chris Metcalf wrote: >> As you had suggested in an earlier email, I went ahead and eliminated the >> special pt_regs handling for sigaltstack, rt_sigreturn, and clone. (Also a >> tilepro-spec

Re: [PATCH] tile: support GENERIC_KERNEL_THREAD and GENERIC_KERNEL_EXECVE

2012-10-25 Thread Chris Metcalf
dle()), that should be all > we'll need in arch/tile for killing idle_regs() and killing the pt_regs > passing to do_fork()/copy_process()/copy_thread(). It seems to work fine. Thanks! Acked-by: Chris Metcalf -- Chris Metcalf, Tilera Corp. http://www.tilera.com -- To unsubscribe f

[PATCH] tilegx: fix some issues in the SW TSO support

2012-10-25 Thread Chris Metcalf
This change correctly computes the header length and data length in the fragments to avoid a bug where we would end up with extremely slow performance. Also adopt use of skb_frag_size() accessor. Signed-off-by: Chris Metcalf Cc: sta...@vger.kernel.org [v3.6] --- drivers/net/ethernet/tile

Re: [PATCH] tilegx: fix some issues in the SW TSO support

2012-10-25 Thread Chris Metcalf
On 10/25/2012 1:51 PM, Ben Hutchings wrote: > On Thu, 2012-10-25 at 13:25 -0400, Chris Metcalf wrote: >> This change correctly computes the header length and data length in >> the fragments to avoid a bug where we would end up with extremely >> slow performance. Also adopt

[PATCH] tilegx: move fixup hook from __init to __devinit

2012-10-25 Thread Chris Metcalf
Support having the PCI bus be removed at runtime and rediscovered. Signed-off-by: Chris Metcalf Cc: sta...@vger.kernel.org [v3.6] --- arch/tile/kernel/pci_gx.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/tile/kernel/pci_gx.c b/arch/tile/kernel/pci_gx.c index

[PATCH] tile: gxio iorpc numbering change for TRIO interface

2012-09-24 Thread Chris Metcalf
An ABI numbering change was made in the hypervisor for Tilera's 4.1 MDE release (just shipped). It's incompatible with the previous 4.0 release ABI numbering, so we track the new numbering going forward. We plan to avoid modifying ABI numbering for these interfaces again. Signed-off

[GIT PULL] tile gxio ABI fix for 3.6

2012-09-24 Thread Chris Metcalf
this occur. Chris Metcalf (1): tile: gxio iorpc numbering change for TRIO interface arch/tile/include/gxio/iorpc_trio.h | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) -- Chris Metcalf, Tilera Corp. http://www.tilera.com -- To unsubscribe from this list:

Re: PCIe IO space support on Tilera GX: Is there any one who can confirm my modification to fix it is OK?

2012-10-26 Thread Chris Metcalf
d submit that change to the community. Bjorn et al: does it seem reasonable to add a bias to the mappings so that we never report a zero value as valid? This may be sufficiently defensive programming that it's just the right thing to do regardless of whether drivers are technically at fault

Re: [PATCH] tilegx: fix some issues in the SW TSO support

2012-10-26 Thread Chris Metcalf
7; and some more normal streams) to ensure there > is real contention. Thanks! I've filed a bugzilla within Tilera to come back and revisit this - I think it's not a short-term problem so we'll find some time to look at it in the future. Or, someone reading this could t

Re: [PATCH 01/16] tile: Convert dev_printk(KERN_ to dev_(

2012-10-28 Thread Chris Metcalf
nged, 6 insertions(+), 9 deletions(-) Acked-by: Chris Metcalf -- Chris Metcalf, Tilera Corp. http://www.tilera.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.o

Re: [PATCH v2] tile: support KVM for tilegx

2013-08-25 Thread Chris Metcalf
On 8/25/2013 7:39 AM, Gleb Natapov wrote: > On Mon, Aug 12, 2013 at 04:24:11PM -0400, Chris Metcalf wrote: >> This change provides the initial framework support for KVM on tilegx. >> Basic virtual disk and networking is supported. >> > This needs to be broken down to mor

Re: [guv v2 23/31] tile: Replace __get_cpu_var uses

2013-08-26 Thread Chris Metcalf
asid, then use __this_cpu_write() with min_asid. Thanks. The rest is fine. Would it make more sense for me to fold all these changes into the tile tree and just have it meet in linux-next? There are certainly a bunch of other changes staged there which likely also include more uses of __ge

Re: [guv v2 23/31] tile: Replace __get_cpu_var uses

2013-08-28 Thread Chris Metcalf
On 8/27/2013 10:48 AM, Christoph Lameter wrote: > On Mon, 26 Aug 2013, Chris Metcalf wrote: >> > The rest is fine. Would it make more sense for me to fold all these >> > changes into the tile tree and just have it meet in linux-next? There >> > are certainly a bunch

Re: [guv v2 23/31] tile: Replace __get_cpu_var uses

2013-08-28 Thread Chris Metcalf
On 8/28/2013 1:54 PM, Christoph Lameter wrote: > On Wed, 28 Aug 2013, Chris Metcalf wrote: >> In addition, I applied the following commit to clean up the remaining >> uses that are currently only being carried in the linux-tile tree. > You are going to merge these changes rig

Re: [PATCH v2] tile: support KVM for tilegx

2013-08-28 Thread Chris Metcalf
On 8/26/2013 8:04 AM, Gleb Natapov wrote: > On Sun, Aug 25, 2013 at 09:26:47PM -0400, Chris Metcalf wrote: >> On 8/25/2013 7:39 AM, Gleb Natapov wrote: >>> On Mon, Aug 12, 2013 at 04:24:11PM -0400, Chris Metcalf wrote: >>>> This change provides the initial frame

[PATCH v3 2/3] tile: enable building as a paravirtualized KVM_GUEST

2013-08-28 Thread Chris Metcalf
ulator notifications within the guest kernel. The timer interrupt for the guest uses the AUX_TILE_TIMER hardware, leaving the regular TILE_TIMER for the host. Signed-off-by: Chris Metcalf --- arch/tile/Kconfig | 14 +++-- arch/tile/include/asm/module.h | 10 -- arch/til

[PATCH v3 3/3] tile: enable VIRTIO support for KVM

2013-08-28 Thread Chris Metcalf
-by: Chris Metcalf --- arch/tile/Kconfig | 3 + arch/tile/include/asm/kvm_para.h| 20 ++ arch/tile/include/asm/kvm_virtio.h | 26 ++ arch/tile/include/uapi/asm/Kbuild | 1 + arch/tile/include/uapi/asm/kvm.h| 5 + arch/tile/include/uapi/asm

Re: [PATCH] tile: add null check for kzalloc in tile/kernel/setup.c

2013-08-29 Thread Chris Metcalf
up.c |4 > 1 file changed, 4 insertions(+) Thanks. Taken into the tile tree. -- Chris Metcalf, Tilera Corp. http://www.tilera.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordo

[GIT PULL] additional arch/tile changes for v3.12

2013-09-16 Thread Chris Metcalf
, whitespace and style issues cleaned up, and some header updates from our internal "upstream" architecture team. Chris Metcalf (8): tile: fix typos in comment in arch/tile/kernel/unaligned.c tile: use pmd_pfn() instead of casting via pte_t tile: remove HUGE_VMAP dead code

Re: [GIT PULL] additional arch/tile changes for v3.12

2013-09-17 Thread Chris Metcalf
This pull request is (IMO) suitable for 3.12-rc2 as well, since it introduces no new features and is purely cleanup (and deletes more lines of code than it adds - always a good attribute!). On 9/16/2013 5:01 PM, Chris Metcalf wrote: > Linus, > > Please pull the following changes for

[PATCH] tile: rework

2013-09-06 Thread Chris Metcalf
arguments, which is consistent with how they used the arguments internally anyway, so provided some nice simplification there too. Signed-off-by: Chris Metcalf --- arch/tile/include/asm/atomic.h| 52 + arch/tile/include/asm/atomic_32.h | 85 --

[PATCH] tile: refresh tile defconfig files

2013-09-06 Thread Chris Metcalf
These are based on the current shipping versions of the config files from Tilera, as synced up to the tip, so are a better starting point for folks who want a default configuration. Signed-off-by: Chris Metcalf --- arch/tile/configs/tilegx_defconfig | 241

[GIT PULL] arch/tile changes for v3.12

2013-09-06 Thread Chris Metcalf
ng (1): arch: tile: include: asm: add cmpxchg64() definition Chris Metcalf (77): tile: various minor cleanups to hardwall subsystem tile: convert uses of "inv" to "finv" tile: optimize and clean up string functions tile PCI RC: cleanups for tilepro PCI RC

[PATCH] net: tilegx driver: avoid compiler warning

2013-09-09 Thread Chris Metcalf
cc 4.7 does not warn. Signed-off-by: Chris Metcalf --- drivers/net/ethernet/tile/tilegx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/tile/tilegx.c b/drivers/net/ethernet/tile/tilegx.c index 949076f..13e6fff 100644 --- a/drivers/net/ethernet

Re: [RFC PATCH v2 20/25] smp, tile: kill SMP single function call interrupt

2013-09-11 Thread Chris Metcalf
interrupt > is needed for architecture specific code to support generic SMP function > call interfaces, so kill the redundant single function call interrupt. > > Signed-off-by: Jiang Liu > Cc: Jiang Liu Acked-by: Chris Metcalf -- Chris Metcalf, Tilera Corp. http://www.tilera.com -- To u

Re: [PATCH] Kconfig cleanup (PARPORT_PC dependencies)

2013-09-12 Thread Chris Metcalf
nge, since as far as I know there's no way for tile to have PARPORT_PC. -- Chris Metcalf, Tilera Corp. http://www.tilera.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at

[PATCH] ath9k: mark wmi_event_swba as __packed

2013-09-13 Thread Chris Metcalf
: 0xfff7103a4b10 ath9k_wmi_event_tasklet+0x1b0/0x270 [ath9k_htc] frame 2: 0xfff700326570 tasklet_action+0x148/0x298 [...] Signed-off-by: Chris Metcalf --- drivers/net/wireless/ath/ath9k/wmi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath9k

[GIT PULL] tile bug fixes for v3.12-rc5

2013-10-07 Thread Chris Metcalf
): arch: tile: re-use kbasename() helper Chen Gang (1): tile: include: asm: use 'long long' instead of 'u64' for atomic64_t and its related functions Chris Metcalf (2): tile: ensure interrupts disabled for preempt_schedule_irq() tile: use a more conservativ

Re: [PATCH 28/34] tile: handle pgtable_page_ctor() fail

2013-10-10 Thread Chris Metcalf
On 10/10/2013 2:05 PM, Kirill A. Shutemov wrote: > Signed-off-by: Kirill A. Shutemov > Cc: Chris Metcalf > --- > arch/tile/mm/pgtable.c | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) Acked-by: Chris Metcalf -- Chris Metcalf, Tilera Corp. http://www.ti

Re: [PATCH 1/2] time: allow changing the timekeeper clock frequency

2013-08-29 Thread Chris Metcalf
release? https://lkml.org/lkml/2013/8/9/497 https://lkml.org/lkml/2013/8/9/499 Thanks in advance! On 8/14/2013 5:30 PM, Chris Metcalf wrote: > On 8/14/2013 2:17 PM, John Stultz wrote: >> So a long while back we had tried to adapt for clock frequency changes >> on things like

[PATCH] tile PCI RC: make default consistent DMA mask 32-bit

2013-08-30 Thread Chris Metcalf
This change sets the PCI devices' initial DMA capabilities conservatively and promotes them at the request of the driver, as opposed to assuming advanced DMA capabilities. The old design runs the risk of breaking drivers that assume default capabilities. Signed-off-by: Chris Metcalf ---

Re: [PATCH 1/2] time: allow changing the timekeeper clock frequency

2013-08-30 Thread Chris Metcalf
On 8/29/2013 3:30 PM, John Stultz wrote: > On 08/29/2013 11:40 AM, Chris Metcalf wrote: >> Ping! I have this work queued up to push as part of the linux-tile tree for >> the >> merge window. Is that acceptable to the timekeeping/clocksource folks? >> Should I hold it

Re: [guv v2 23/31] tile: Replace __get_cpu_var uses

2013-08-30 Thread Chris Metcalf
On 8/28/2013 2:13 PM, Chris Metcalf wrote: > On 8/28/2013 1:54 PM, Christoph Lameter wrote: >> On Wed, 28 Aug 2013, Chris Metcalf wrote: >>> In addition, I applied the following commit to clean up the remaining >>> uses that are currently only being carried in the linux-

Re: [PATCH v2] tile: support KVM for tilegx

2013-09-03 Thread Chris Metcalf
On 8/26/2013 8:04 AM, Gleb Natapov wrote: > On Sun, Aug 25, 2013 at 09:26:47PM -0400, Chris Metcalf wrote: >> On 8/25/2013 7:39 AM, Gleb Natapov wrote: >>> On Mon, Aug 12, 2013 at 04:24:11PM -0400, Chris Metcalf wrote: >>>> This change provides the initial frame

Re: [PATCH v2] tile: support KVM for tilegx

2013-09-03 Thread Chris Metcalf
On 9/3/2013 1:39 PM, Gleb Natapov wrote: > On Tue, Sep 03, 2013 at 01:32:22PM -0400, Chris Metcalf wrote: >> Ping! I'd like to ask Linus to pull the tile tree now that 3.12 is open. >> Let me know if this would be problematic for you. >> > That was sent to close to

[PATCH 3/3] tile: parameterize VA and PA space more cleanly

2013-09-03 Thread Chris Metcalf
nt PLs in tilepro, only tilegx. Signed-off-by: Chris Metcalf --- arch/tile/include/asm/page.h | 52 +++--- arch/tile/include/asm/pgtable_32.h | 2 +- arch/tile/include/asm/pgtable_64.h | 3 +-- arch/tile/include/asm/processor.h | 2 +- arch/tile/kernel/he

[PATCH 1/3] tile: clean up relocate_kernel_64 debug code

2013-09-03 Thread Chris Metcalf
We remove some debug code in relocate_kernel_64.S that made raw calls to the hv_console_putc Tilera hypervisor API, since everything should funnel through the early_hv_write() API. Signed-off-by: Chris Metcalf --- arch/tile/kernel/relocate_kernel_64.S | 9 +++-- 1 file changed, 7 insertions

[PATCH 0/3] tile prerequisites for KVM support

2013-09-03 Thread Chris Metcalf
e they are essentially internal rework within the tile architecture. This will also simplify ongoing three-way merges. I will defer the pull request for linux-tile for a few days in case anyone has comments on this batch of changes. Chris Metcalf (3): tile: clean up relocate_kernel_64 debug code t

[PATCH 2/3] tile: don't assume user privilege is zero

2013-09-03 Thread Chris Metcalf
Technically, user privilege is anything less than kernel privilege. We modify the existing user_mode() macro to have this semantic (and use it in a couple of places it wasn't being used before), and add an IS_KERNEL_EX1() macro to the assembly code as well. Signed-off-by: Chris Me

[PATCH] tile: ensure interrupts disabled for preempt_schedule_irq()

2013-09-26 Thread Chris Metcalf
When coming from a page fault (for example), interrupts might be enabled as we enter the code to return from interrupt. Cc: sta...@vger.kernel.org Signed-off-by: Chris Metcalf --- arch/tile/kernel/intvec_32.S | 3 +++ arch/tile/kernel/intvec_64.S | 3 +++ 2 files changed, 6 insertions(+) diff

[PATCH] tile: use a more conservative __my_cpu_offset in CONFIG_PREEMPT

2013-09-26 Thread Chris Metcalf
ne in change 509eb76ebf97. Cc: sta...@vger.kernel.org Signed-off-by: Chris Metcalf --- Ben Herrenschmidt offered to look into extending barrier() in some per-architecture way, but for now this patch is the minimal thing to fix the bug in 3.12 and earlier, so I'm planning to push it as-i

Re: [PATCH] tile: use a more conservative __my_cpu_offset in CONFIG_PREEMPT

2013-09-27 Thread Chris Metcalf
On 9/26/2013 1:57 PM, Will Deacon wrote: > Hi Chris, > > On Thu, Sep 26, 2013 at 06:24:53PM +0100, Chris Metcalf wrote: >> [...] >> +static inline unsigned long __my_cpu_offset(void) >> +{ >> +unsigned long tp; >> +register unsigned long *sp asm(&quo

Re: [PATCH] arch: tile: re-use kbasename() helper

2013-09-27 Thread Chris Metcalf
On 9/27/2013 4:26 AM, Andy Shevchenko wrote: > kbasename() returns the filename part of a pathname. > > Signed-off-by: Andy Shevchenko > --- > arch/tile/kernel/stack.c | 12 +--- > 1 file changed, 5 insertions(+), 7 deletions(-) Thanks! Taken into the tile tree.

Re: [PATCH] tile: use a more conservative __my_cpu_offset in CONFIG_PREEMPT

2013-09-30 Thread Chris Metcalf
On 9/30/2013 5:45 AM, Will Deacon wrote: > On Fri, Sep 27, 2013 at 09:13:15PM +0100, Chris Metcalf wrote: >> On 9/26/2013 1:57 PM, Will Deacon wrote: >>> Hi Chris, >>> >>> On Thu, Sep 26, 2013 at 06:24:53PM +0100, Chris Metcalf wrote: >>>> [...] &

Re: [PATCH v3 3/3] tile: enable VIRTIO support for KVM

2013-09-30 Thread Chris Metcalf
As I said to Gleb in the previous email - sorry for the delay in replying to your thoughtful comments! On 9/10/2013 8:47 AM, Paolo Bonzini wrote: > Il 28/08/2013 22:58, Chris Metcalf ha scritto: >> This change enables support for a virtio-based console, >> network support, a

Re: [PATCH v3 1/3] tile: support KVM host mode

2013-09-30 Thread Chris Metcalf
tead. >> --- a/virt/kvm/kvm_main.c >> +++ b/virt/kvm/kvm_main.c >> @@ -1978,7 +1978,8 @@ static long kvm_vcpu_ioctl(struct file *filp, >> if (vcpu->kvm->mm != current->mm) >> return -EIO; >> >> -#if defined(CONFIG_S390) ||

Re: [RFC GIT PULL] softirq: Consolidation and stack overrun fix

2013-09-23 Thread Chris Metcalf
doesn't ever * change with PREEMPT_NONE, and with PREEMPT_VOLUNTARY it only * changes at function call points, at which we are already re-reading * the value of "tp" due to "my_cpu_offset_reg" being a global variable. */ #define __my_cpu_offset my_cpu_offset_reg #endif #d

Re: [RFC GIT PULL] softirq: Consolidation and stack overrun fix

2013-09-24 Thread Chris Metcalf
On 9/23/2013 4:57 PM, Benjamin Herrenschmidt wrote: > On Mon, 2013-09-23 at 13:59 -0400, Chris Metcalf wrote: >> We just came up against this on tilegx with a customer bug report in a >> PREEMPT environment. On tile, %tp is a GPR that points to the percpu area. >> The foll

Re: [PATCH] tile: include: asm: use 'long long' instead of 'u64' for atomic64_t and its related functions

2013-09-25 Thread Chris Metcalf
b/atomic_32.c | 8 > 4 files changed, 39 insertions(+), 29 deletions(-) Thanks! Taken into the tile tree for 3.12. -- Chris Metcalf, Tilera Corp. http://www.tilera.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: [PATCH] tile: change lock initalization in hardwall

2013-09-25 Thread Chris Metcalf
gt; arch/tile/kernel/hardwall.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Thanks! Taken into the tile tree for 3.12. -- Chris Metcalf, Tilera Corp. http://www.tilera.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a me

Re: [PATCH v2 16/31] arm64: ELF definitions

2012-09-05 Thread Chris Metcalf
vior is used on powerpc, s390, mips, sparc and > parisc. Not sure about tile though. tile also reports "tilegx" regardless of whether the task is 64-bit or 32-bit compat. -- Chris Metcalf, Tilera Corp. http://www.tilera.com -- To unsubscribe from this list: send the line "unsub

Re: [RFC][CFT][CFReview] execve and kernel_thread unification work

2012-10-09 Thread Chris Metcalf
t; magic. I'll take a look at this for arch/tile this week. -- Chris Metcalf, Tilera Corp. http://www.tilera.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kerne

Re: [PATCH 3/8] sparc64: Eliminate PTE table memory wastage.

2012-10-09 Thread Chris Metcalf
ry non-common :-) I'll add arch/tile to the list of architectures that would benefit. We currently allocate PTEs using the page allocator, but by default we use 64K pages and 16M huge pages, so with 8-byte PTEs that's just 2K for the page table, so we could fit 32 of them on a page if we wi

Re: [PATCH -next] tile/PCI: use for_each_pci_dev to simplify the code

2012-12-03 Thread Chris Metcalf
On 12/3/2012 8:28 AM, Wei Yongjun wrote: > From: Wei Yongjun > > Use for_each_pci_dev to simplify the code. > > Signed-off-by: Wei Yongjun Thanks, I've taken this into my tree for -next. -- Chris Metcalf, Tilera Corp. http://www.tilera.com -- To unsubscribe from this

Re: [PATCH -next] tile/PCI: use for_each_pci_dev to simplify the code

2012-12-04 Thread Chris Metcalf
ch function are you referring to? You mention MPS/MRS so perhaps you're talking about fixup_read_and_payload_sizes()? > In general, I think the PCI_EXP_DEVCAP and PCI_EXP_DEVCTL code for MPS > and MRRS management belongs in the PCI core, not in drivers or > architectures (it's fin

Re: [PATCH 05/10] UAPI: Place comments in empty arch Kbuilds to make them non-empty

2012-10-17 Thread Chris Metcalf
t it will be the same there. > > Signed-off-by: David Howells > cc: Ralf Baechle > cc: Chris Metcalf Acked-by: Chris Metcalf -- Chris Metcalf, Tilera Corp. http://www.tilera.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body

Re: [PATCH 06/10] UAPI: The tile arch uses the generic ucontext.h file

2012-10-17 Thread Chris Metcalf
On 10/17/2012 10:16 AM, David Howells wrote: > Move the header-y and generic-y lines for ucontext.h from > arch/tile/include/asm/Kbuild to the uapi/ Kbuild as the asm-generic variant is > used. > > Signed-off-by: David Howells > cc: Chris Metcalf Acked-by: Chris Metcalf

[PATCH] tile: support GENERIC_KERNEL_THREAD and GENERIC_KERNEL_EXECVE

2012-10-19 Thread Chris Metcalf
Also provide an optimized current_pt_regs() while we're at it. Signed-off-by: Chris Metcalf --- arch/tile/Kconfig |2 + arch/tile/include/asm/processor.h |3 ++ arch/tile/include/asm/switch_to.h |5 +- arch/tile/kernel/entry.S | 11 arch/tile/k

[PATCH] arch/tile: avoid generating .eh_frame information in modules

2012-10-19 Thread Chris Metcalf
support, the compiler by default omits .eh_frame information, so we don't see this problem. But when not using feedback, we need to explicitly suppress the .eh_frame. Signed-off-by: Chris Metcalf --- arch/tile/Makefile |4 1 file changed, 4 insertions(+) diff --git a/arch/tile/Mak

[PATCH] arch/tile: avoid build warnings from duplicate ELF_R_xxx #defines

2012-10-19 Thread Chris Metcalf
These are now provided in , so clean up warning by not re-defining them in module.c. Signed-off-by: Chris Metcalf --- arch/tile/kernel/module.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/arch/tile/kernel/module.c b/arch/tile/kernel/module.c index 001cbfa..243ffeb 100644

[PATCH] tile: support GENERIC_KERNEL_THREAD and GENERIC_KERNEL_EXECVE

2012-10-19 Thread Chris Metcalf
Also provide an optimized current_pt_regs() while we're at it. Signed-off-by: Chris Metcalf --- [Re-sending to correct linus-arch / linux-arch typo.] arch/tile/Kconfig |2 + arch/tile/include/asm/processor.h |3 ++ arch/tile/include/asm/switch_to.h |5 +- arch

Re: [PATCH] tile: support GENERIC_KERNEL_THREAD and GENERIC_KERNEL_EXECVE

2012-10-20 Thread Chris Metcalf
On 10/19/2012 5:35 PM, Al Viro wrote: > On Fri, Oct 19, 2012 at 04:25:12PM -0400, Chris Metcalf wrote: >> Also provide an optimized current_pt_regs() while we're at it. > Applied. BTW, are you sure you want to record parent's pid and not tid? By recording ->pid r

Re: [update] Re: new execve/kernel_thread design

2012-12-07 Thread Chris Metcalf
ext as soon as the merge window opens. It had > been sitting there for a long time by now and you've all been Cc'd on > that thread all along. IMHO, Al has done a great job reaching out to the architecture maintainers with this round of changes. I think it should be a m

Re: [RFC PATCH 1/8] mm, vmalloc: change iterating a vmlist to find_vm_area()

2012-12-10 Thread Chris Metcalf
feel free to apply it to the tile file as well. You'll note that for tile it's under an #if 0, which in retrospect I shouldn't have pushed anyway. So I don't feel strongly :-) FWIW, the change certainly seems at least plausible to me. -- Chris Metcalf, Tilera Corp. http://w

Re: [PATCH] tilegx: request_irq with a non-null device name

2012-11-13 Thread Chris Metcalf
net_handle_ingress_irq, > - 0, NULL, NULL); > + 0, "tile_net", NULL); Good catch. If you can change it to dev->name instead of "tile_net", feel free to add my: Acked-by: Chris Metcalf -- Chris Metcalf, Tilera Corp. http://www.tilera.com -- To unsub

Re: [PATCH] tilegx: request_irq with a non-null device name

2012-11-13 Thread Chris Metcalf
On 11/13/2012 4:54 PM, Simon Marchi wrote: > On Tue, Nov 13, 2012 at 1:37 PM, Chris Metcalf wrote: >> On 11/13/2012 3:58 PM, Simon Marchi wrote: >>> This patch simply makes the tilegx net driver call request_irq with a >>> non-null name. It makes the output in /proc/i

Re: [PATCH 1/3] arch/tile: Call tracehook_report_syscall_{entry,exit} in syscall trace

2012-12-26 Thread Chris Metcalf
d patch 3/3 in this series, into the tile tree (and pushed it up to linux-next). I fixed up ptrace.h to adjust the declarations for the modified functions. As Al Viro pointed out, patch 2/3 is already present in v3.8-rc1. Thanks! -- Chris Metcalf, Tilera Corp. http://www.tilera.com -- To unsubs

[PATCH] tile: remove an unused variable in copy_thread()

2013-01-04 Thread Chris Metcalf
Signed-off-by: Chris Metcalf --- arch/tile/kernel/process.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/tile/kernel/process.c b/arch/tile/kernel/process.c index 0e5661e..caf93ae 100644 --- a/arch/tile/kernel/process.c +++ b/arch/tile/kernel/process.c @@ -159,7

Re: [PATCH 1/3] arch/tile: implement user_regset interface on tilegx

2012-12-17 Thread Chris Metcalf
see do_work_pending() in arch/tile/kernel/process.c. And signal delivery seems to be handled in a platform-independent way now; see kernel/signal.c. My only comment on the revised patch is that I believe you should #include , not . Source code (.c files) doesn't seem to use the prefix. --

Re: [PATCH v3 1/3] arch/tile: implement user_regset interface on tile

2012-12-17 Thread Chris Metcalf
On 12/17/2012 8:08 PM, Simon Marchi wrote: > This is a basic implementation of user_regset for the tile > architecture. It reuses the basic blocks that were already there. > > Signed-off-by: Simon Marchi Thanks, I'll take this into the tile tree for this merge window. -- Chri

[GIT PULL] tile updates for 3.8

2012-12-18 Thread Chris Metcalf
Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile.git master These are a smattering of minor changes from Tilera and other folks, mostly in the ptrace area. Chris Metcalf (3): tilegx: remove __init from pci fixup hook arch/tile: provide

[PATCH] tilepro: work around module link error with gcc 4.7

2013-06-15 Thread Chris Metcalf
gcc 4.7.x is emitting calls to __ffsdi2 where previously it used to inline the appropriate ctz instructions. While this needs to be fixed in gcc, it's also easy to avoid having it cause build failures when building with those compilers by exporting __ffsdi2 to modules. Signed-off-by:

[GIT PULL] tile bug fix for v3.10

2013-06-19 Thread Chris Metcalf
implementation for __builtin_ffsll(). This should be inline again starting with gcc 4.7.4 and 4.8.2 or so, but meanwhile this change keeps things from breaking, with the only cost being a few bytes of code in the kernel to provide __ffsdi2 even for compilers that do inline it. Chris Metcalf (1

Re: [PATCH v3, part1 04/10] PCI: mark pci_scan_bus_parented() as __deprecated

2013-05-31 Thread Chris Metcalf
On 5/25/2013 9:48 AM, Jiang Liu wrote: > Mark pci_scan_bus_parented() as __deprecated and clean up outdated > comments. > > Signed-off-by: Jiang Liu > Cc: Chris Metcalf > Cc: Greg Kroah-Hartman > Cc: Thierry Reding > Cc: linux-kernel@vger.kernel.org > Cc: linux-..

Re: [Suggestion] tile: include: asm: missing "feedback.h" file.

2013-06-27 Thread Chris Metcalf
LICIT(FUNCNAME, SECNAME, SIZE) #define FEEDBACK_ENTER(FUNCNAME) #define FEEDBACK_REENTER(FUNCNAME) #define FEEDBACK_ENTRY(FUNCNAME, SECNAME, SIZE) ^D -- Chris Metcalf, Tilera Corp. http://www.tilera.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] tile: remove two outdated Kconfig entries

2013-03-21 Thread Chris Metcalf
> Signed-off-by: Paul Bolle > Thanks - taken into the tile tree. -- Chris Metcalf, Tilera Corp. http://www.tilera.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at h

  1   2   3   4   5   6   7   8   9   10   >