/* * Thunderbolt driver - NHI registers * * Copyright (c) 2014 Andreas Noever */ #ifndef NHI_REGS_H_ #define NHI_REGS_H_ #include enum ring_flags { RING_FLAG_ISOCH_ENABLE = 1 << 27, /* TX only? */ RING_FLAG_E2E_FLOW_CONTROL = 1 << 28, RING_FLAG_PCI_NO_SNOOP = 1 << 29, RING_FLAG_RAW = 1 << 30, /* ignore EOF/SOF mask, include checksum */ RING_FLAG_ENABLE = 1 << 31, }; enum ring_desc_flags { RING_DESC_ISOCH = 0x1, /* TX only? */ RING_DESC_COMPLETED = 0x2, /* set by NHI */ RING_DESC_POSTED = 0x4, /* always set this */ RING_DESC_INTERRUPT = 0x8, /* request an interrupt on completion */ }; /** * struct ring_desc - TX/RX ring entry * * For TX set length/eof/sof. * For RX length/eof/sof are set by the NHI. */ struct ring_desc { u64 phys; u32 length:12; u32 eof:4; u32 sof:4; enum ring_desc_flags flags:12; u32 time; /* write zero */ } __packed; /* NHI registers in bar 0 */ /* * 16 bytes per entry, one entry for every hop (REG_HOP_COUNT) * 00: physical pointer to an array of struct ring_desc * 08: ring tail (set by NHI) * 10: ring head (index of first non posted descriptor) * 12: descriptor count */ #define REG_TX_RING_BASE 0x00000 /* * 16 bytes per entry, one entry for every hop (REG_HOP_COUNT) * 00: physical pointer to an array of struct ring_desc * 08: ring head (index of first not posted descriptor) * 10: ring tail (set by NHI) * 12: descriptor count * 14: max frame sizes (anything larger than 0x100 has no effect) */ #define REG_RX_RING_BASE 0x08000 /* * 32 bytes per entry, one entry for every hop (REG_HOP_COUNT) * 00: enum_ring_flags * 04: isoch time stamp ?? (write 0) * ..: unknown */ #define REG_TX_OPTIONS_BASE 0x19800 /* * 32 bytes per entry, one entry for every hop (REG_HOP_COUNT) * 00: enum ring_flags * If RING_FLAG_E2E_FLOW_CONTROL is set then bits 13-23 must be set to * the corresponding TX hop id. * 04: EOF/SOF mask (ignored for RING_FLAG_RAW rings) * ..: unknown */ #define REG_RX_OPTIONS_BASE 0x29800 /* * three bitfields: tx, rx, rx overflow * Every bitfield contains one bit for every hop (REG_HOP_COUNT). Registers are * cleared on read. New interrupts are fired only after ALL registers have been * read (even those containing only disabled rings). */ #define REG_RING_NOTIFY_BASE 0x37800 #define RING_NOTIFY_REG_COUNT(nhi) ((31 + 3 * nhi->hop_count) / 32) /* * two bitfields: rx, tx * Both bitfields contains one bit for every hop (REG_HOP_COUNT). To * enable/disable interrupts set/clear the corresponding bits. */ #define REG_RING_INTERRUPT_BASE 0x38200 #define RING_INTERRUPT_REG_COUNT(nhi) ((31 + 2 * nhi->hop_count) / 32) /* The last 11 bits contain the number of hops supported by the NHI port. */ #define REG_HOP_COUNT 0x39640 #endif e2d5bcb7499b0a6f6700fe'>root/include/uapi/asm-generic/signal.h
diff options
context:
space:
mode:
authorJerome Brunet <jbrunet@baylibre.com>2017-01-20 08:20:24 -0800
committerArnd Bergmann <arnd@arndb.de>2017-01-27 16:46:42 +0100
commitfeb3cbea0946c67060e2d5bcb7499b0a6f6700fe (patch)
tree4789978854a7fd97de08f4b77f220bcd9278417b /include/uapi/asm-generic/signal.h
parent7a308bb3016f57e5be11a677d15b821536419d36 (diff)
ARM64: dts: meson-gxbb-odroidc2: fix GbE tx link breakage
OdroidC2 GbE link breaks under heavy tx transfer. This happens even if the MAC does not enable Energy Efficient Ethernet (No Low Power state Idle on the Tx path). The problem seems to come from the phy Rx path, entering the LPI state. Disabling EEE advertisement on the phy prevent this feature to be negociated with the link partner and solve the issue. Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Signed-off-by: Kevin Hilman <khilman@baylibre.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'include/uapi/asm-generic/signal.h')
lidation of exceptional DAX entries (a bug which is there for a long time) - without these patches data loss can occur on power failure even though user called fsync(2). The other three patches change locking of DAX faults so that ->iomap_begin() is called in a more relaxed locking context and we are safe to start a transaction there for ext4" These have received a build success notification from the kbuild robot, and pass the latest libnvdimm unit tests. There have not been any -next releases since -rc1, so they have not appeared there" * 'libnvdimm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm: ext4: Simplify DAX fault path dax: Call ->iomap_begin without entry lock during dax fault dax: Finish fault completely when loading holes dax: Avoid page invalidation races and unnecessary radix tree traversals mm: Invalidate DAX radix tree entries only if appropriate ext2: Return BH_New buffers for zeroed blocks
Diffstat (limited to 'sound/drivers/mpu401')