/* * i2sbus driver -- interface register definitions * * Copyright 2006 Johannes Berg * * GPL v2, can be found in COPYING. */ #ifndef __I2SBUS_INTERFACE_H #define __I2SBUS_INTERFACE_H /* i2s bus control registers, at least what we know about them */ #define __PAD(m,n) u8 __pad##m[n] #define _PAD(line, n) __PAD(line, n) #define PAD(n) _PAD(__LINE__, (n)) struct i2s_interface_regs { __le32 intr_ctl; /* 0x00 */ PAD(12); __le32 serial_format; /* 0x10 */ PAD(12); __le32 codec_msg_out; /* 0x20 */ PAD(12); __le32 codec_msg_in; /* 0x30 */ PAD(12); __le32 frame_count; /* 0x40 */ PAD(12); __le32 frame_match; /* 0x50 */ PAD(12); __le32 data_word_sizes; /* 0x60 */ PAD(12); __le32 peak_level_sel; /* 0x70 */ PAD(12); __le32 peak_level_in0; /* 0x80 */ PAD(12); __le32 peak_level_in1; /* 0x90 */ PAD(12); /* total size: 0x100 bytes */ } __attribute__((__packed__)); /* interrupt register is just a bitfield with * interrupt enable and pending bits */ #define I2S_REG_INTR_CTL 0x00 # define I2S_INT_FRAME_COUNT (1<<31) # define I2S_PENDING_FRAME_COUNT (1<<30) # define I2S_INT_MESSAGE_FLAG (1<<29) # define I2S_PENDING_MESSAGE_FLAG (1<<28) # define I2S_INT_NEW_PEAK (1<<27) # define I2S_PENDING_NEW_PEAK (1<<26) # define I2S_INT_CLOCKS_STOPPED (1<<25) # define I2S_PENDING_CLOCKS_STOPPED (1<<24) # define I2S_INT_EXTERNAL_SYNC_ERROR (1<<23) # define I2S_PENDING_EXTERNAL_SYNC_ERROR (1<<22) # define I2S_INT_EXTERNAL_SYNC_OK (1<<21) # define I2S_PENDING_EXTERNAL_SYNC_OK (1<<20) # define I2S_INT_NEW_SAMPLE_RATE (1<<19) # define I2S_PENDING_NEW_SAMPLE_RATE (1<<18) # define I2S_INT_STATUS_FLAG (1<<17) # define I2S_PENDING_STATUS_FLAG (1<<16) /* serial format register is more interesting :) * It contains: * - clock source * - MClk divisor * - SClk divisor * - SClk master flag * - serial format (sony, i2s 64x, i2s 32x, dav, silabs) * - external sample frequency interrupt (don't understand) * - external sample frequency */ #define I2S_REG_SERIAL_FORMAT 0x10 /* clock source. You get either 18.432, 45.1584 or 49.1520 MHz */ # define I2S_SF_CLOCK_SOURCE_SHIFT 30 # define I2S_SF_CLOCK_SOURCE_MASK (3<75422726b0f717d67db3283c2eb5bc14fa2619c5 (diff)
pid: fix lockdep deadlock warning due to ucount_lock
========================================================= [ INFO: possible irq lock inversion dependency detected ] 4.10.0-rc2-00024-g4aecec9-dirty #118 Tainted: G W --------------------------------------------------------- swapper/1/0 just changed the state of lock: (&(&sighand->siglock)->rlock){-.....}, at: [<ffffffffbd0a1bc6>] __lock_task_sighand+0xb6/0x2c0 but this lock took another, HARDIRQ-unsafe lock in the past: (ucounts_lock){+.+...} and interrupts could create inverse lock ordering between them. other info that might help us debug this: Chain exists of: &(&sighand->siglock)->rlock --> &(&tty->ctrl_lock)->rlock --> ucounts_lock Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(ucounts_lock); local_irq_disable(); lock(&(&sighand->siglock)->rlock); lock(&(&tty->ctrl_lock)->rlock); <Interrupt> lock(&(&sighand->siglock)->rlock); *** DEADLOCK *** This patch removes a dependency between rlock and ucount_lock. Fixes: f333c700c610 ("pidns: Add a limit on the number of pid namespaces") Cc: stable@vger.kernel.org Signed-off-by: Andrei Vagin <avagin@openvz.org> Acked-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'tools/build/feature/test-libdw-dwarf-unwind.c')