#ifndef __SOUND_SEQ_OSS_H #define __SOUND_SEQ_OSS_H /* * OSS compatible sequencer driver * * Copyright (C) 1998,99 Takashi Iwai * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include #include /* * argument structure for synthesizer operations */ struct snd_seq_oss_arg { /* given by OSS sequencer */ int app_index; /* application unique index */ int file_mode; /* file mode - see below */ int seq_mode; /* sequencer mode - see below */ /* following must be initialized in open callback */ struct snd_seq_addr addr; /* opened port address */ void *private_data; /* private data for lowlevel drivers */ /* note-on event passing mode: initially given by OSS seq, * but configurable by drivers - see below */ int event_passing; }; /* * synthesizer operation callbacks */ struct snd_seq_oss_callback { struct module *owner; int (*open)(struct snd_seq_oss_arg *p, void *closure); int (*close)(struct snd_seq_oss_arg *p); int (*ioctl)(struct snd_seq_oss_arg *p, unsigned int cmd, unsigned long arg); int (*load_patch)(struct snd_seq_oss_arg *p, int format, const char __user *buf, int offs, int count); int (*reset)(struct snd_seq_oss_arg *p); int (*raw_event)(struct snd_seq_oss_arg *p, unsigned char *data); }; /* flag: file_mode */ #define SNDRV_SEQ_OSS_FILE_ACMODE 3 #define SNDRV_SEQ_OSS_FILE_READ 1 #define SNDRV_SEQ_OSS_FILE_WRITE 2 #define SNDRV_SEQ_OSS_FILE_NONBLOCK 4 /* flag: seq_mode */ #define SNDRV_SEQ_OSS_MODE_SYNTH 0 #define SNDRV_SEQ_OSS_MODE_MUSIC 1 /* flag: event_passing */ #define SNDRV_SEQ_OSS_PROCESS_EVENTS 0 /* key == 255 is processed as velocity change */ #define SNDRV_SEQ_OSS_PASS_EVENTS 1 /* pass all events to callback */ #define SNDRV_SEQ_OSS_PROCESS_KEYPRESS 2 /* key >= 128 will be processed as key-pressure */ /* default control rate: fixed */ #define SNDRV_SEQ_OSS_CTRLRATE 100 /* default max queue length: configurable by module option */ #define SNDRV_SEQ_OSS_MAX_QLEN 1024 /* * data pointer to snd_seq_register_device */ struct snd_seq_oss_reg { int type; int subtype; int nvoices; struct snd_seq_oss_callback oper; void *private_data; }; /* device id */ #define SNDRV_SEQ_DEV_ID_OSS "seq-oss" #endif /* __SOUND_SEQ_OSS_H */ 783da3b24e8c9e017ac649326f'>root/include/rdma
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2017-01-27 22:25:52 +0000
committerIngo Molnar <mingo@kernel.org>2017-01-28 09:18:56 +0100
commitbf29bddf0417a4783da3b24e8c9e017ac649326f (patch)
tree54a05a4883b73f80e4e1d8c4b15750aa01c39932 /include/rdma
parent883af14e67e8b8702b5560aa64c888c0cd0bd66c (diff)
x86/efi: Always map the first physical page into the EFI pagetables
Commit: 129766708 ("x86/efi: Only map RAM into EFI page tables if in mixed-mode") stopped creating 1:1 mappings for all RAM, when running in native 64-bit mode. It turns out though that there are 64-bit EFI implementations in the wild (this particular problem has been reported on a Lenovo Yoga 710-11IKB), which still make use of the first physical page for their own private use, even though they explicitly mark it EFI_CONVENTIONAL_MEMORY in the memory map. In case there is no mapping for this particular frame in the EFI pagetables, as soon as firmware tries to make use of it, a triple fault occurs and the system reboots (in case of the Yoga 710-11IKB this is very early during bootup). Fix that by always mapping the first page of physical memory into the EFI pagetables. We're free to hand this page to the BIOS, as trim_bios_range() will reserve the first page and isolate it away from memory allocators anyway. Note that just reverting 129766708 alone is not enough on v4.9-rc1+ to fix the regression on affected hardware, as this commit: ab72a27da ("x86/efi: Consolidate region mapping logic") later made the first physical frame not to be mapped anyway. Reported-by: Hanka Pavlikova <hanka@ucw.cz> Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Borislav Petkov <bp@alien8.de> Cc: Borislav Petkov <bp@suse.de> Cc: Laura Abbott <labbott@redhat.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Vojtech Pavlik <vojtech@ucw.cz> Cc: Waiman Long <waiman.long@hpe.com> Cc: linux-efi@vger.kernel.org Cc: stable@kernel.org # v4.8+ Fixes: 129766708 ("x86/efi: Only map RAM into EFI page tables if in mixed-mode") Link: http://lkml.kernel.org/r/20170127222552.22336-1-matt@codeblueprint.co.uk [ Tidied up the changelog and the comment. ] Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/rdma')