/* * Copyright 2015 Linaro Limited * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * 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. */ #ifndef _DT_BINDINGS_RESET_MSM_GCC_8916_H #define _DT_BINDINGS_RESET_MSM_GCC_8916_H #define GCC_BLSP1_BCR 0 #define GCC_BLSP1_QUP1_BCR 1 #define GCC_BLSP1_UART1_BCR 2 #define GCC_BLSP1_QUP2_BCR 3 #define GCC_BLSP1_UART2_BCR 4 #define GCC_BLSP1_QUP3_BCR 5 #define GCC_BLSP1_QUP4_BCR 6 #define GCC_BLSP1_QUP5_BCR 7 #define GCC_BLSP1_QUP6_BCR 8 #define GCC_IMEM_BCR 9 #define GCC_SMMU_BCR 10 #define GCC_APSS_TCU_BCR 11 #define GCC_SMMU_XPU_BCR 12 #define GCC_PCNOC_TBU_BCR 13 #define GCC_PRNG_BCR 14 #define GCC_BOOT_ROM_BCR 15 #define GCC_CRYPTO_BCR 16 #define GCC_SEC_CTRL_BCR 17 #define GCC_AUDIO_CORE_BCR 18 #define GCC_ULT_AUDIO_BCR 19 #define GCC_DEHR_BCR 20 #define GCC_SYSTEM_NOC_BCR 21 #define GCC_PCNOC_BCR 22 #define GCC_TCSR_BCR 23 #define GCC_QDSS_BCR 24 #define GCC_DCD_BCR 25 #define GCC_MSG_RAM_BCR 26 #define GCC_MPM_BCR 27 #define GCC_SPMI_BCR 28 #define GCC_SPDM_BCR 29 #define GCC_MM_SPDM_BCR 30 #define GCC_BIMC_BCR 31 #define GCC_RBCPR_BCR 32 #define GCC_TLMM_BCR 33 #define GCC_USB_HS_BCR 34 #define GCC_USB2A_PHY_BCR 35 #define GCC_SDCC1_BCR 36 #define GCC_SDCC2_BCR 37 #define GCC_PDM_BCR 38 #define GCC_SNOC_BUS_TIMEOUT0_BCR 39 #define GCC_PCNOC_BUS_TIMEOUT0_BCR 40 #define GCC_PCNOC_BUS_TIMEOUT1_BCR 41 #define GCC_PCNOC_BUS_TIMEOUT2_BCR 42 #define GCC_PCNOC_BUS_TIMEOUT3_BCR 43 #define GCC_PCNOC_BUS_TIMEOUT4_BCR 44 #define GCC_PCNOC_BUS_TIMEOUT5_BCR 45 #define GCC_PCNOC_BUS_TIMEOUT6_BCR 46 #define GCC_PCNOC_BUS_TIMEOUT7_BCR 47 #define GCC_PCNOC_BUS_TIMEOUT8_BCR 48 #define GCC_PCNOC_BUS_TIMEOUT9_BCR 49 #define GCC_MMSS_BCR 50 #define GCC_VENUS0_BCR 51 #define GCC_MDSS_BCR 52 #define GCC_CAMSS_PHY0_BCR 53 #define GCC_CAMSS_CSI0_BCR 54 #define GCC_CAMSS_CSI0PHY_BCR 55 #define GCC_CAMSS_CSI0RDI_BCR 56 #define GCC_CAMSS_CSI0PIX_BCR 57 #define GCC_CAMSS_PHY1_BCR 58 #define GCC_CAMSS_CSI1_BCR 59 #define GCC_CAMSS_CSI1PHY_BCR 60 #define GCC_CAMSS_CSI1RDI_BCR 61 #define GCC_CAMSS_CSI1PIX_BCR 62 #define GCC_CAMSS_ISPIF_BCR 63 #define GCC_CAMSS_CCI_BCR 64 #define GCC_CAMSS_MCLK0_BCR 65 #define GCC_CAMSS_MCLK1_BCR 66 #define GCC_CAMSS_GP0_BCR 67 #define GCC_CAMSS_GP1_BCR 68 #define GCC_CAMSS_TOP_BCR 69 #define GCC_CAMSS_MICRO_BCR 70 #define GCC_CAMSS_JPEG_BCR 71 #define GCC_CAMSS_VFE_BCR 72 #define GCC_CAMSS_CSI_VFE0_BCR 73 #define GCC_OXILI_BCR 74 #define GCC_GMEM_BCR 75 #define GCC_CAMSS_AHB_BCR 76 #define GCC_MDP_TBU_BCR 77 #define GCC_GFX_TBU_BCR 78 #define GCC_GFX_TCU_BCR 79 #define GCC_MSS_TBU_AXI_BCR 80 #define GCC_MSS_TBU_GSS_AXI_BCR 81 #define GCC_MSS_TBU_Q6_AXI_BCR 82 #define GCC_GTCU_AHB_BCR 83 #define GCC_SMMU_CFG_BCR 84 #define GCC_VFE_TBU_BCR 85 #define GCC_VENUS_TBU_BCR 86 #define GCC_JPEG_TBU_BCR 87 #define GCC_PRONTO_TBU_BCR 88 #define GCC_SMMU_CATS_BCR 89 #endif c'>net: reduce skb_warn_bad_offload() noiseEric Dumazet1-3/+9 Dmitry reported warnings occurring in __skb_gso_segment() [1] All SKB_GSO_DODGY producers can allow user space to feed packets that trigger the current check. We could prevent them from doing so, rejecting packets, but this might add regressions to existing programs. It turns out our SKB_GSO_DODGY handlers properly set up checksum information that is needed anyway when packets needs to be segmented. By checking again skb_needs_check() after skb_mac_gso_segment(), we should remove these pesky warnings, at a very minor cost. With help from Willem de Bruijn [1] WARNING: CPU: 1 PID: 6768 at net/core/dev.c:2439 skb_warn_bad_offload+0x2af/0x390 net/core/dev.c:2434 lo: caps=(0x000000a2803b7c69, 0x0000000000000000) len=138 data_len=0 gso_size=15883 gso_type=4 ip_summed=0 Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 6768 Comm: syz-executor1 Not tainted 4.9.0 #5 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801c063ecd8 ffffffff82346bdf ffffffff00000001 1ffff100380c7d2e ffffed00380c7d26 0000000041b58ab3 ffffffff84b37e38 ffffffff823468f1 ffffffff84820740 ffffffff84f289c0 dffffc0000000000 ffff8801c063ee20 Call Trace: [<ffffffff82346bdf>] __dump_stack lib/dump_stack.c:15 [inline] [<ffffffff82346bdf>] dump_stack+0x2ee/0x3ef lib/dump_stack.c:51 [<ffffffff81827e34>] panic+0x1fb/0x412 kernel/panic.c:179 [<ffffffff8141f704>] __warn+0x1c4/0x1e0 kernel/panic.c:542 [<ffffffff8141f7e5>] warn_slowpath_fmt+0xc5/0x100 kernel/panic.c:565 [<ffffffff8356cbaf>] skb_warn_bad_offload+0x2af/0x390 net/core/dev.c:2434 [<ffffffff83585cd2>] __skb_gso_segment+0x482/0x780 net/core/dev.c:2706 [<ffffffff83586f19>] skb_gso_segment include/linux/netdevice.h:3985 [inline] [<ffffffff83586f19>] validate_xmit_skb+0x5c9/0xc20 net/core/dev.c:2969 [<ffffffff835892bb>] __dev_queue_xmit+0xe6b/0x1e70 net/core/dev.c:3383 [<ffffffff8358a2d7>] dev_queue_xmit+0x17/0x20 net/core/dev.c:3424 [<ffffffff83ad161d>] packet_snd net/packet/af_packet.c:2930 [inline] [<ffffffff83ad161d>] packet_sendmsg+0x32ed/0x4d30 net/packet/af_packet.c:2955 [<ffffffff834f0aaa>] sock_sendmsg_nosec net/socket.c:621 [inline] [<ffffffff834f0aaa>] sock_sendmsg+0xca/0x110 net/socket.c:631 [<ffffffff834f329a>] ___sys_sendmsg+0x8fa/0x9f0 net/socket.c:1954 [<ffffffff834f5e58>] __sys_sendmsg+0x138/0x300 net/socket.c:1988 [<ffffffff834f604d>] SYSC_sendmsg net/socket.c:1999 [inline] [<ffffffff834f604d>] SyS_sendmsg+0x2d/0x50 net/socket.c:1995 [<ffffffff84371941>] entry_SYSCALL_64_fastpath+0x1f/0xc2 Signed-off-by: Eric Dumazet <edumazet@google.com> Reported-by: Dmitry Vyukov <dvyukov@google.com> Cc: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net> 2017-02-01rtnetlink: Handle IFLA_MASTER parameter when processing rtnl_newlinkTheuns Verwoerd1-1/+6 Allow a master interface to be specified as one of the parameters when creating a new interface via rtnl_newlink. Previously this would require invoking interface creation, waiting for it to complete, and then separately binding that new interface to a master. In particular, this is used when creating a macvlan child interface for VRRP in a VRF configuration, allowing the interface creator to specify directly what master interface should be inherited by the child, without having to deal with asynchronous complications and potential race conditions. Signed-off-by: Theuns Verwoerd <theuns.verwoerd@alliedtelesis.co.nz> Acked-by: David Ahern <dsa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>