mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-13 10:46:48 +07:00
6efb6b77ff
Currently, when assign_irq_vector is called and the irq connected in the simulator, the irq is not ready. request_irq will return ENOSYS immediately. It is because the irq chip is unset. Hence set the chip properly to irq_type_hp_sim. And make sure this is done from both users of simulated interrupts. Also we have to set handler here, otherwise we end up in handle_bad_int resulting in spam in logs and no irqs handled. We use handle_simple_irq as these are SW interrupts that need no ACK or anything. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Tony Luck <tony.luck@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
41 lines
830 B
C
41 lines
830 B
C
/*
|
|
* Platform dependent support for HP simulator.
|
|
*
|
|
* Copyright (C) 1998, 1999, 2002 Hewlett-Packard Co
|
|
* David Mosberger-Tang <davidm@hpl.hp.com>
|
|
* Copyright (C) 1999 Vijay Chander <vijay@engr.sgi.com>
|
|
*/
|
|
#include <linux/console.h>
|
|
#include <linux/init.h>
|
|
#include <linux/kdev_t.h>
|
|
#include <linux/kernel.h>
|
|
#include <linux/major.h>
|
|
#include <linux/param.h>
|
|
#include <linux/root_dev.h>
|
|
#include <linux/string.h>
|
|
#include <linux/types.h>
|
|
|
|
#include <asm/delay.h>
|
|
#include <asm/irq.h>
|
|
#include <asm/pal.h>
|
|
#include <asm/machvec.h>
|
|
#include <asm/pgtable.h>
|
|
#include <asm/sal.h>
|
|
#include <asm/hpsim.h>
|
|
|
|
#include "hpsim_ssc.h"
|
|
|
|
void
|
|
ia64_ctl_trace (long on)
|
|
{
|
|
ia64_ssc(on, 0, 0, 0, SSC_CTL_TRACE);
|
|
}
|
|
|
|
void __init
|
|
hpsim_setup (char **cmdline_p)
|
|
{
|
|
ROOT_DEV = Root_SDA1; /* default to first SCSI drive */
|
|
|
|
simcons_register();
|
|
}
|