lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080422231827.GD27728@linux-mips.org>
Date:	Wed, 23 Apr 2008 00:18:27 +0100
From:	Ralf Baechle <ralf@...ux-mips.org>
To:	Jens Axboe <jens.axboe@...cle.com>
Cc:	linux-arch@...r.kernel.org, linux-kernel@...r.kernel.org,
	npiggin@...e.de, torvalds@...ux-foundation.org,
	peterz@...radead.org, sam@...nborg.org
Subject: Re: [PATCH 8/11] mips: convert to generic helpers for IPI function
	calls

On Tue, Apr 22, 2008 at 08:50:24PM +0200, Jens Axboe wrote:

> This converts mips to use the new helpers for smp_call_function() and
> friends, and adds support for smp_call_function_single(). Not tested,
> but it compiles.
> 
> Cc: Ralf Baechle <ralf@...ux-mips.org>
> Signed-off-by: Jens Axboe <jens.axboe@...cle.com>
> ---
>  arch/mips/Kconfig              |    1 +
>  arch/mips/kernel/smp-mt.c      |   27 ++++++++-
>  arch/mips/kernel/smp.c         |  133 +++-------------------------------------
>  arch/mips/kernel/smtc.c        |    7 ++
>  arch/mips/sibyte/bcm1480/smp.c |    3 +
>  arch/mips/sibyte/sb1250/smp.c  |    2 +
>  include/asm-mips/smp.h         |   12 +---
>  7 files changed, 49 insertions(+), 136 deletions(-)
> 
> diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
> index 8724ed3..5092a9e 100644
> --- a/arch/mips/Kconfig
> +++ b/arch/mips/Kconfig
> @@ -1742,6 +1742,7 @@ config SMP
>  	bool "Multi-Processing support"
>  	depends on SYS_SUPPORTS_SMP
>  	select IRQ_PER_CPU
> +	select USE_GENERIC_SMP_HELPERS
>  	help
>  	  This enables support for systems with more than one CPU. If you have
>  	  a system with only one CPU, like most personal computers, say N. If
> diff --git a/arch/mips/kernel/smp-mt.c b/arch/mips/kernel/smp-mt.c
> index 89e6f6a..31049fc 100644
> --- a/arch/mips/kernel/smp-mt.c
> +++ b/arch/mips/kernel/smp-mt.c
> @@ -38,8 +38,9 @@
>  
>  #define MIPS_CPU_IPI_RESCHED_IRQ 0
>  #define MIPS_CPU_IPI_CALL_IRQ 1
> +#define MIPS_CPU_IPI_CALL_SINGLE_IRQ 2

The smp-mt.c has no chance of working.  There are only two hardware
interrupts available so just using one more won't quite work.  But I like
the basic idea of this patch series.

  Ralf
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ