* [net-next 4/6] ixgbe: force VF to grab new MAC on driver reload
From: Jeff Kirsher @ 2018-05-17 16:37 UTC (permalink / raw)
To: davem; +Cc: Emil Tantilov, netdev, nhorman, sassmann, jogreene, Jeff Kirsher
In-Reply-To: <20180517163732.30910-1-jeffrey.t.kirsher@intel.com>
From: Emil Tantilov <emil.s.tantilov@intel.com>
Do not validate the MAC address during a reset, unless the MAC was set on
the host. This way the VF will get a new MAC address every time it reloads.
Remove the "no MAC address assigned" message since it will get spammed on
reset and it doesn't help much as the MAC on the VF is randomly generated.
Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
---
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c
index 2649c06d877b..6f59933cdff7 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c
@@ -854,14 +854,11 @@ static int ixgbe_vf_reset_msg(struct ixgbe_adapter *adapter, u32 vf)
/* reply to reset with ack and vf mac address */
msgbuf[0] = IXGBE_VF_RESET;
- if (!is_zero_ether_addr(vf_mac)) {
+ if (!is_zero_ether_addr(vf_mac) && adapter->vfinfo[vf].pf_set_mac) {
msgbuf[0] |= IXGBE_VT_MSGTYPE_ACK;
memcpy(addr, vf_mac, ETH_ALEN);
} else {
msgbuf[0] |= IXGBE_VT_MSGTYPE_NACK;
- dev_warn(&adapter->pdev->dev,
- "VF %d has no MAC address assigned, you may have to assign one manually\n",
- vf);
}
/*
--
2.17.0
^ permalink raw reply related
* [net-next 0/6][pull request] 10GbE Intel Wired LAN Driver Updates 2018-05-17
From: Jeff Kirsher @ 2018-05-17 16:37 UTC (permalink / raw)
To: davem; +Cc: Jeff Kirsher, netdev, nhorman, sassmann, jogreene
This series contains updates to ixgbe, ixgbevf and ice drivers.
Cathy Zhou resolves sparse warnings by using the force attribute.
Mauro S M Rodrigues fixes a bug where IRQs were not freed if a PCI error
recovery system opts to remove the device which causes
ixgbe_io_error_detected() to return PCI_ERS_RESULT_DISCONNECT before
calling ixgbe_close_suspend() which results in IRQs not freed and
crashing when the remove handler calls pci_disable_device(). Resolved
this by calling ixgbe_close_suspend() before evaluating the PCI channel
state.
Pavel Tatashin releases the rtnl_lock during the call to
ixgbe_close_suspend() to allow scaling if device_shutdown() is
multi-threaded.
Emil modifies ixgbe to not validate the MAC address during a reset,
unless the MAC was set on the host so that the VF will get a new MAC
address every time it reloads. Also updates ixgbevf to set
hw->mac.perm_addr in order to retain the custom MAC on a reset.
Anirudh updates the ice NVM read/erase/update AQ commands to align with
the latest specification.
The following are changes since commit b9f672af148bf7a08a6031743156faffd58dbc7e:
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next
and are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue 10GbE
Anirudh Venkataramanan (1):
ice: Update NVM AQ command functions
Cathy Zhou (1):
ixgbe: cleanup sparse warnings
Emil Tantilov (2):
ixgbe: force VF to grab new MAC on driver reload
ixgbevf: fix MAC address changes through ixgbevf_set_mac()
Mauro S M Rodrigues (1):
ixgbe/ixgbevf: Free IRQ when PCI error recovery removes the device
Pavel Tatashin (1):
ixgbe: release lock for the duration of ixgbe_suspend_close()
.../net/ethernet/intel/ice/ice_adminq_cmd.h | 13 +++---
drivers/net/ethernet/intel/ice/ice_nvm.c | 7 +--
.../net/ethernet/intel/ixgbe/ixgbe_82599.c | 13 +++---
.../net/ethernet/intel/ixgbe/ixgbe_common.c | 2 +-
drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c | 2 +-
.../net/ethernet/intel/ixgbe/ixgbe_ipsec.c | 25 +++++++----
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 44 ++++++++++++-------
.../net/ethernet/intel/ixgbe/ixgbe_model.h | 16 +++----
.../net/ethernet/intel/ixgbe/ixgbe_sriov.c | 5 +--
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c | 9 ++--
.../net/ethernet/intel/ixgbevf/ixgbevf_main.c | 7 +--
11 files changed, 82 insertions(+), 61 deletions(-)
--
2.17.0
^ permalink raw reply
* [net-next 2/6] ixgbe/ixgbevf: Free IRQ when PCI error recovery removes the device
From: Jeff Kirsher @ 2018-05-17 16:37 UTC (permalink / raw)
To: davem
Cc: Mauro S M Rodrigues, netdev, nhorman, sassmann, jogreene,
Jeff Kirsher
In-Reply-To: <20180517163732.30910-1-jeffrey.t.kirsher@intel.com>
From: Mauro S M Rodrigues <maurosr@linux.vnet.ibm.com>
Since commit f7f37e7ff2b9 ("ixgbe: handle close/suspend race with
netif_device_detach/present") ixgbe_close_suspend is called, from
ixgbe_close, only if the device is present, i.e. if it isn't detached.
That exposed a situation where IRQs weren't freed if a PCI error
recovery system opts to remove the device. For such case the pci channel
state is set to pci_channel_io_perm_failure and ixgbe_io_error_detected
was returning PCI_ERS_RESULT_DISCONNECT before calling
ixgbe_close_suspend consequentially not freeing IRQ and crashing when
the remove handler calls pci_disable_device, hitting a BUG_ON at
free_msi_irqs, which asserts that there is no non-free IRQ associated
with the device to be removed:
BUG_ON(irq_has_action(entry->irq + i));
The issue is fixed by calling the ixgbe_close_suspend before evaluate
the pci channel state.
Reported-by: Naresh Bannoth <nbannoth@in.ibm.com>
Reported-by: Abdul Haleem <abdhalee@in.ibm.com>
Signed-off-by: Mauro S M Rodrigues <maurosr@linux.vnet.ibm.com>
Reviewed-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
---
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 6 +++---
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
index 163b34a9572d..a52d92e182ee 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
@@ -10935,14 +10935,14 @@ static pci_ers_result_t ixgbe_io_error_detected(struct pci_dev *pdev,
rtnl_lock();
netif_device_detach(netdev);
+ if (netif_running(netdev))
+ ixgbe_close_suspend(adapter);
+
if (state == pci_channel_io_perm_failure) {
rtnl_unlock();
return PCI_ERS_RESULT_DISCONNECT;
}
- if (netif_running(netdev))
- ixgbe_close_suspend(adapter);
-
if (!test_and_set_bit(__IXGBE_DISABLED, &adapter->state))
pci_disable_device(pdev);
rtnl_unlock();
diff --git a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
index 1ccce6cd51fc..9a939dcaf727 100644
--- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
+++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
@@ -4747,14 +4747,14 @@ static pci_ers_result_t ixgbevf_io_error_detected(struct pci_dev *pdev,
rtnl_lock();
netif_device_detach(netdev);
+ if (netif_running(netdev))
+ ixgbevf_close_suspend(adapter);
+
if (state == pci_channel_io_perm_failure) {
rtnl_unlock();
return PCI_ERS_RESULT_DISCONNECT;
}
- if (netif_running(netdev))
- ixgbevf_close_suspend(adapter);
-
if (!test_and_set_bit(__IXGBEVF_DISABLED, &adapter->state))
pci_disable_device(pdev);
rtnl_unlock();
--
2.17.0
^ permalink raw reply related
* [net-next 1/6] ixgbe: cleanup sparse warnings
From: Jeff Kirsher @ 2018-05-17 16:37 UTC (permalink / raw)
To: davem; +Cc: Cathy Zhou, netdev, nhorman, sassmann, jogreene, Jeff Kirsher
In-Reply-To: <20180517163732.30910-1-jeffrey.t.kirsher@intel.com>
From: Cathy Zhou <cathy.zhou@oracle.com>
Sparse complains valid conversions between restricted types, force
attribute is used to avoid those warnings.
Signed-off-by: Cathy Zhou <cathy.zhou@oracle.com>
Reviewed-by: Shannon Nelson <shannon.nelson@oracle.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
---
.../net/ethernet/intel/ixgbe/ixgbe_82599.c | 13 +++++----
.../net/ethernet/intel/ixgbe/ixgbe_common.c | 2 +-
drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c | 2 +-
.../net/ethernet/intel/ixgbe/ixgbe_ipsec.c | 25 ++++++++++------
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 29 +++++++++++--------
.../net/ethernet/intel/ixgbe/ixgbe_model.h | 16 +++++-----
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c | 9 +++---
7 files changed, 55 insertions(+), 41 deletions(-)
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c
index 42f63b943ea0..1e49716f52bc 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c
@@ -1436,7 +1436,8 @@ void ixgbe_atr_compute_perfect_hash_82599(union ixgbe_atr_input *input,
{
u32 hi_hash_dword, lo_hash_dword, flow_vm_vlan;
- u32 bucket_hash = 0, hi_dword = 0;
+ u32 bucket_hash = 0;
+ __be32 hi_dword = 0;
int i;
/* Apply masks to input data */
@@ -1475,7 +1476,7 @@ void ixgbe_atr_compute_perfect_hash_82599(union ixgbe_atr_input *input,
* Limit hash to 13 bits since max bucket count is 8K.
* Store result at the end of the input stream.
*/
- input->formatted.bkt_hash = bucket_hash & 0x1FFF;
+ input->formatted.bkt_hash = (__force __be16)(bucket_hash & 0x1FFF);
}
/**
@@ -1584,7 +1585,7 @@ s32 ixgbe_fdir_set_input_mask_82599(struct ixgbe_hw *hw,
return IXGBE_ERR_CONFIG;
}
- switch (input_mask->formatted.flex_bytes & 0xFFFF) {
+ switch ((__force u16)input_mask->formatted.flex_bytes & 0xFFFF) {
case 0x0000:
/* Mask Flex Bytes */
fdirm |= IXGBE_FDIRM_FLEX;
@@ -1654,13 +1655,13 @@ s32 ixgbe_fdir_write_perfect_filter_82599(struct ixgbe_hw *hw,
IXGBE_WRITE_REG(hw, IXGBE_FDIRPORT, fdirport);
/* record vlan (little-endian) and flex_bytes(big-endian) */
- fdirvlan = IXGBE_STORE_AS_BE16(input->formatted.flex_bytes);
+ fdirvlan = IXGBE_STORE_AS_BE16((__force u16)input->formatted.flex_bytes);
fdirvlan <<= IXGBE_FDIRVLAN_FLEX_SHIFT;
fdirvlan |= ntohs(input->formatted.vlan_id);
IXGBE_WRITE_REG(hw, IXGBE_FDIRVLAN, fdirvlan);
/* configure FDIRHASH register */
- fdirhash = input->formatted.bkt_hash;
+ fdirhash = (__force u32)input->formatted.bkt_hash;
fdirhash |= soft_id << IXGBE_FDIRHASH_SIG_SW_INDEX_SHIFT;
IXGBE_WRITE_REG(hw, IXGBE_FDIRHASH, fdirhash);
@@ -1698,7 +1699,7 @@ s32 ixgbe_fdir_erase_perfect_filter_82599(struct ixgbe_hw *hw,
s32 err;
/* configure FDIRHASH register */
- fdirhash = input->formatted.bkt_hash;
+ fdirhash = (__force u32)input->formatted.bkt_hash;
fdirhash |= soft_id << IXGBE_FDIRHASH_SIG_SW_INDEX_SHIFT;
IXGBE_WRITE_REG(hw, IXGBE_FDIRHASH, fdirhash);
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
index 8d038837f72b..3f5c350716bb 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
@@ -3626,7 +3626,7 @@ s32 ixgbe_hic_unlocked(struct ixgbe_hw *hw, u32 *buffer, u32 length,
*/
for (i = 0; i < dword_len; i++)
IXGBE_WRITE_REG_ARRAY(hw, IXGBE_FLEX_MNG,
- i, cpu_to_le32(buffer[i]));
+ i, (__force u32)cpu_to_le32(buffer[i]));
/* Setting this bit tells the ARC that a new command is pending. */
IXGBE_WRITE_REG(hw, IXGBE_HICR, hicr | IXGBE_HICR_C);
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c
index b5219e024f70..94b3165ff543 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c
@@ -440,7 +440,7 @@ int ixgbe_fcoe_ddp(struct ixgbe_adapter *adapter,
case cpu_to_le32(IXGBE_RXDADV_STAT_FCSTAT_FCPRSP):
dma_unmap_sg(&adapter->pdev->dev, ddp->sgl,
ddp->sgc, DMA_FROM_DEVICE);
- ddp->err = ddp_err;
+ ddp->err = (__force u32)ddp_err;
ddp->sgl = NULL;
ddp->sgc = 0;
/* fall through */
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c
index 195c0b65eee2..99b170f1efd1 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c
@@ -19,8 +19,9 @@ static void ixgbe_ipsec_set_tx_sa(struct ixgbe_hw *hw, u16 idx,
int i;
for (i = 0; i < 4; i++)
- IXGBE_WRITE_REG(hw, IXGBE_IPSTXKEY(i), cpu_to_be32(key[3 - i]));
- IXGBE_WRITE_REG(hw, IXGBE_IPSTXSALT, cpu_to_be32(salt));
+ IXGBE_WRITE_REG(hw, IXGBE_IPSTXKEY(i),
+ (__force u32)cpu_to_be32(key[3 - i]));
+ IXGBE_WRITE_REG(hw, IXGBE_IPSTXSALT, (__force u32)cpu_to_be32(salt));
IXGBE_WRITE_FLUSH(hw);
reg = IXGBE_READ_REG(hw, IXGBE_IPSTXIDX);
@@ -69,7 +70,8 @@ static void ixgbe_ipsec_set_rx_sa(struct ixgbe_hw *hw, u16 idx, __be32 spi,
int i;
/* store the SPI (in bigendian) and IPidx */
- IXGBE_WRITE_REG(hw, IXGBE_IPSRXSPI, cpu_to_le32(spi));
+ IXGBE_WRITE_REG(hw, IXGBE_IPSRXSPI,
+ (__force u32)cpu_to_le32((__force u32)spi));
IXGBE_WRITE_REG(hw, IXGBE_IPSRXIPIDX, ip_idx);
IXGBE_WRITE_FLUSH(hw);
@@ -77,8 +79,9 @@ static void ixgbe_ipsec_set_rx_sa(struct ixgbe_hw *hw, u16 idx, __be32 spi,
/* store the key, salt, and mode */
for (i = 0; i < 4; i++)
- IXGBE_WRITE_REG(hw, IXGBE_IPSRXKEY(i), cpu_to_be32(key[3 - i]));
- IXGBE_WRITE_REG(hw, IXGBE_IPSRXSALT, cpu_to_be32(salt));
+ IXGBE_WRITE_REG(hw, IXGBE_IPSRXKEY(i),
+ (__force u32)cpu_to_be32(key[3 - i]));
+ IXGBE_WRITE_REG(hw, IXGBE_IPSRXSALT, (__force u32)cpu_to_be32(salt));
IXGBE_WRITE_REG(hw, IXGBE_IPSRXMOD, mode);
IXGBE_WRITE_FLUSH(hw);
@@ -97,7 +100,8 @@ static void ixgbe_ipsec_set_rx_ip(struct ixgbe_hw *hw, u16 idx, __be32 addr[])
/* store the ip address */
for (i = 0; i < 4; i++)
- IXGBE_WRITE_REG(hw, IXGBE_IPSRXIPADDR(i), cpu_to_le32(addr[i]));
+ IXGBE_WRITE_REG(hw, IXGBE_IPSRXIPADDR(i),
+ (__force u32)cpu_to_le32((__force u32)addr[i]));
IXGBE_WRITE_FLUSH(hw);
ixgbe_ipsec_set_rx_item(hw, idx, ips_rx_ip_tbl);
@@ -367,7 +371,8 @@ static struct xfrm_state *ixgbe_ipsec_find_rx_state(struct ixgbe_ipsec *ipsec,
struct xfrm_state *ret = NULL;
rcu_read_lock();
- hash_for_each_possible_rcu(ipsec->rx_sa_list, rsa, hlist, spi)
+ hash_for_each_possible_rcu(ipsec->rx_sa_list, rsa, hlist,
+ (__force u32)spi) {
if (spi == rsa->xs->id.spi &&
((ip4 && *daddr == rsa->xs->id.daddr.a4) ||
(!ip4 && !memcmp(daddr, &rsa->xs->id.daddr.a6,
@@ -377,6 +382,7 @@ static struct xfrm_state *ixgbe_ipsec_find_rx_state(struct ixgbe_ipsec *ipsec,
xfrm_state_hold(ret);
break;
}
+ }
rcu_read_unlock();
return ret;
}
@@ -569,7 +575,7 @@ static int ixgbe_ipsec_add_sa(struct xfrm_state *xs)
/* hash the new entry for faster search in Rx path */
hash_add_rcu(ipsec->rx_sa_list, &ipsec->rx_tbl[sa_idx].hlist,
- rsa.xs->id.spi);
+ (__force u64)rsa.xs->id.spi);
} else {
struct tx_sa tsa;
@@ -653,7 +659,8 @@ static void ixgbe_ipsec_del_sa(struct xfrm_state *xs)
if (!ipsec->ip_tbl[ipi].ref_cnt) {
memset(&ipsec->ip_tbl[ipi], 0,
sizeof(struct rx_ip_sa));
- ixgbe_ipsec_set_rx_ip(hw, ipi, zerobuf);
+ ixgbe_ipsec_set_rx_ip(hw, ipi,
+ (__force __be32 *)zerobuf);
}
}
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
index 6652b201df5b..163b34a9572d 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
@@ -727,8 +727,8 @@ static void ixgbe_dump(struct ixgbe_adapter *adapter)
ring_desc = "";
pr_info("T [0x%03X] %016llX %016llX %016llX %08X %p %016llX %p%s",
i,
- le64_to_cpu(u0->a),
- le64_to_cpu(u0->b),
+ le64_to_cpu((__force __le64)u0->a),
+ le64_to_cpu((__force __le64)u0->b),
(u64)dma_unmap_addr(tx_buffer, dma),
dma_unmap_len(tx_buffer, len),
tx_buffer->next_to_watch,
@@ -839,15 +839,15 @@ static void ixgbe_dump(struct ixgbe_adapter *adapter)
/* Descriptor Done */
pr_info("RWB[0x%03X] %016llX %016llX ---------------- %p%s\n",
i,
- le64_to_cpu(u0->a),
- le64_to_cpu(u0->b),
+ le64_to_cpu((__force __le64)u0->a),
+ le64_to_cpu((__force __le64)u0->b),
rx_buffer_info->skb,
ring_desc);
} else {
pr_info("R [0x%03X] %016llX %016llX %016llX %p%s\n",
i,
- le64_to_cpu(u0->a),
- le64_to_cpu(u0->b),
+ le64_to_cpu((__force __le64)u0->a),
+ le64_to_cpu((__force __le64)u0->b),
(u64)rx_buffer_info->dma,
rx_buffer_info->skb,
ring_desc);
@@ -7751,7 +7751,7 @@ static int ixgbe_tso(struct ixgbe_ring *tx_ring,
/* remove payload length from inner checksum */
paylen = skb->len - l4_offset;
- csum_replace_by_diff(&l4.tcp->check, htonl(paylen));
+ csum_replace_by_diff(&l4.tcp->check, (__force __wsum)htonl(paylen));
/* update gso size and bytecount with header size */
first->gso_segs = skb_shinfo(skb)->gso_segs;
@@ -9104,7 +9104,8 @@ static int ixgbe_clsu32_build_input(struct ixgbe_fdir_filter *input,
for (j = 0; field_ptr[j].val; j++) {
if (field_ptr[j].off == off) {
- field_ptr[j].val(input, mask, val, m);
+ field_ptr[j].val(input, mask, (__force u32)val,
+ (__force u32)m);
input->filter.formatted.flow_type |=
field_ptr[j].type;
found_entry = true;
@@ -9113,8 +9114,10 @@ static int ixgbe_clsu32_build_input(struct ixgbe_fdir_filter *input,
}
if (nexthdr) {
if (nexthdr->off == cls->knode.sel->keys[i].off &&
- nexthdr->val == cls->knode.sel->keys[i].val &&
- nexthdr->mask == cls->knode.sel->keys[i].mask)
+ nexthdr->val ==
+ (__force u32)cls->knode.sel->keys[i].val &&
+ nexthdr->mask ==
+ (__force u32)cls->knode.sel->keys[i].mask)
found_jump_field = true;
else
continue;
@@ -9218,7 +9221,8 @@ static int ixgbe_configure_clsu32(struct ixgbe_adapter *adapter,
for (i = 0; nexthdr[i].jump; i++) {
if (nexthdr[i].o != cls->knode.sel->offoff ||
nexthdr[i].s != cls->knode.sel->offshift ||
- nexthdr[i].m != cls->knode.sel->offmask)
+ nexthdr[i].m !=
+ (__force u32)cls->knode.sel->offmask)
return err;
jump = kzalloc(sizeof(*jump), GFP_KERNEL);
@@ -9991,7 +9995,8 @@ static int ixgbe_xdp_setup(struct net_device *dev, struct bpf_prog *prog)
}
} else {
for (i = 0; i < adapter->num_rx_queues; i++)
- xchg(&adapter->rx_ring[i]->xdp_prog, adapter->xdp_prog);
+ (void)xchg(&adapter->rx_ring[i]->xdp_prog,
+ adapter->xdp_prog);
}
if (old_prog)
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_model.h b/drivers/net/ethernet/intel/ixgbe/ixgbe_model.h
index fcae520647ce..1e6cf220f543 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_model.h
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_model.h
@@ -29,8 +29,8 @@ static inline int ixgbe_mat_prgm_sip(struct ixgbe_fdir_filter *input,
union ixgbe_atr_input *mask,
u32 val, u32 m)
{
- input->filter.formatted.src_ip[0] = val;
- mask->formatted.src_ip[0] = m;
+ input->filter.formatted.src_ip[0] = (__force __be32)val;
+ mask->formatted.src_ip[0] = (__force __be32)m;
return 0;
}
@@ -38,8 +38,8 @@ static inline int ixgbe_mat_prgm_dip(struct ixgbe_fdir_filter *input,
union ixgbe_atr_input *mask,
u32 val, u32 m)
{
- input->filter.formatted.dst_ip[0] = val;
- mask->formatted.dst_ip[0] = m;
+ input->filter.formatted.dst_ip[0] = (__force __be32)val;
+ mask->formatted.dst_ip[0] = (__force __be32)m;
return 0;
}
@@ -55,10 +55,10 @@ static inline int ixgbe_mat_prgm_ports(struct ixgbe_fdir_filter *input,
union ixgbe_atr_input *mask,
u32 val, u32 m)
{
- input->filter.formatted.src_port = val & 0xffff;
- mask->formatted.src_port = m & 0xffff;
- input->filter.formatted.dst_port = val >> 16;
- mask->formatted.dst_port = m >> 16;
+ input->filter.formatted.src_port = (__force __be16)(val & 0xffff);
+ mask->formatted.src_port = (__force __be16)(m & 0xffff);
+ input->filter.formatted.dst_port = (__force __be16)(val >> 16);
+ mask->formatted.dst_port = (__force __be16)(m >> 16);
return 0;
};
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
index ac71ed76a54b..a8148c7126e5 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
@@ -878,8 +878,9 @@ static s32 ixgbe_read_ee_hostif_buffer_X550(struct ixgbe_hw *hw,
buffer.hdr.req.checksum = FW_DEFAULT_CHECKSUM;
/* convert offset from words to bytes */
- buffer.address = cpu_to_be32((offset + current_word) * 2);
- buffer.length = cpu_to_be16(words_to_read * 2);
+ buffer.address = (__force u32)cpu_to_be32((offset +
+ current_word) * 2);
+ buffer.length = (__force u16)cpu_to_be16(words_to_read * 2);
buffer.pad2 = 0;
buffer.pad3 = 0;
@@ -1089,9 +1090,9 @@ static s32 ixgbe_read_ee_hostif_X550(struct ixgbe_hw *hw, u16 offset, u16 *data)
buffer.hdr.req.checksum = FW_DEFAULT_CHECKSUM;
/* convert offset from words to bytes */
- buffer.address = cpu_to_be32(offset * 2);
+ buffer.address = (__force u32)cpu_to_be32(offset * 2);
/* one word */
- buffer.length = cpu_to_be16(sizeof(u16));
+ buffer.length = (__force u16)cpu_to_be16(sizeof(u16));
status = hw->mac.ops.acquire_swfw_sync(hw, mask);
if (status)
--
2.17.0
^ permalink raw reply related
* Re: [patch net-next RFC 04/12] dsa: set devlink port attrs for dsa ports
From: Jiri Pirko @ 2018-05-17 16:37 UTC (permalink / raw)
To: Andrew Lunn
Cc: Florian Fainelli, netdev, davem, idosch, jakub.kicinski, mlxsw,
vivien.didelot, michael.chan, ganeshgr, saeedm, simon.horman,
pieter.jansenvanvuuren, john.hurley, dirk.vandermerwe,
alexander.h.duyck, ogerlitz, dsahern, vijaya.guvva,
satananda.burla, raghu.vatsavayi, felix.manlunas, gospo,
sathya.perla, vasundhara-v.volam, tariqt, eranbe,
jeffrey.t.kirsher
In-Reply-To: <20180517144828.GC23601@lunn.ch>
Thu, May 17, 2018 at 04:48:28PM CEST, andrew@lunn.ch wrote:
>> >Yes, modprobe dsa-loop-bdinfo first, which will create the
>>
>> That is compiled inside "fixed_phy", isn't it?
>
>Nope.
>
>It follows a pattern seen with I2C and SPI subsystem. A bus driver
>provides a bus to Linux. But i2c and SPI, unlike PCI or USB, you
>cannot enumerate the devices on the bus, you need to know what devices
>are there. So the board file registers an info structure, listing what
>devices are on the bus. When the bus pops into existence, the core
>links the bus to the info structure about devices on the bus and then
>probes the devices.
>
>The same is happening here. The fixed_phy driver provides an MDIO bus.
>
>The info structure in dsa-loop-bdinfo says there is an dsa-loop device
>at address 31 on that bus.
>
>Combine the two causes the dsa-loop device to actually probe.
I understand. Yet I have no dsa_loop_bdinfo.ko module. In my .config I
have:
CONFIG_FIXED_PHY=y
CONFIG_NET_DSA_LOOP=m
I had to do this:
diff --git a/drivers/net/dsa/Makefile b/drivers/net/dsa/Makefile
index 15c2a831edf1..2d773d3a7d49 100644
--- a/drivers/net/dsa/Makefile
+++ b/drivers/net/dsa/Makefile
@@ -2,9 +2,7 @@
obj-$(CONFIG_NET_DSA_BCM_SF2) += bcm-sf2.o
bcm-sf2-objs := bcm_sf2.o bcm_sf2_cfp.o
obj-$(CONFIG_NET_DSA_LOOP) += dsa_loop.o
-ifdef CONFIG_NET_DSA_LOOP
-obj-$(CONFIG_FIXED_PHY) += dsa_loop_bdinfo.o
-endif
+obj-$(CONFIG_NET_DSA_LOOP) += dsa_loop_bdinfo.o
obj-$(CONFIG_NET_DSA_MT7530) += mt7530.o
obj-$(CONFIG_NET_DSA_MV88E6060) += mv88e6060.o
obj-$(CONFIG_NET_DSA_QCA8K) += qca8k.o
Now dsa_loop_bdinfo.ko gets compiled. I have no clue why it does not
work without the patch :O "obj-$(CONFIG_FIXED_PHY)" doesn't work.
^ permalink raw reply related
* Re: [PATCH net-next 3/4] tcp: add SACK compression
From: Neal Cardwell @ 2018-05-17 16:41 UTC (permalink / raw)
To: Eric Dumazet
Cc: Eric Dumazet, David Miller, Netdev,
Toke Høiland-Jørgensen, Yuchung Cheng,
Soheil Hassas Yeganeh
In-Reply-To: <58bcf9c0-e4f0-691d-8d6a-40ff3629f500@gmail.com>
On Thu, May 17, 2018 at 11:40 AM Eric Dumazet <eric.dumazet@gmail.com>
wrote:
> On 05/17/2018 08:14 AM, Neal Cardwell wrote:
> > Is there a particular motivation for the cap of 127? IMHO 127 ACKs is
quite
> > a few to compress. Experience seems to show that it works well to have
one
> > GRO ACK for ~64KBytes that triggers a single TSO skb of ~64KBytes. It
might
> > be nice to try to match those dynamics in this SACK compression case,
so it
> > might be nice to cap the number of compressed ACKs at something like 44?
> > (0xffff / 1448 - 1). That way for high-speed paths we could try to keep
> > the ACK clock going with ACKs for ~64KBytes that trigger a single TSO
skb
> > of ~64KBytes, no matter whether we are sending SACKs or cumulative ACKs.
> 127 was chosen because the field is u8, and since skb allocation for the
ACK
> can fail, we could have cases were the field goes above 127.
> Ultimately, I believe a followup patch would add a sysctl, so that we can
fine-tune
> this, and eventually disable ACK compression if this sysctl is set to 0
OK, a sysctl sounds good. I would still vote for a default of 44. :-)
> >> + if (hrtimer_is_queued(&tp->compressed_ack_timer))
> >> + return;
> >> +
> >> + /* compress ack timer : 5 % of srtt, but no more than 2.5 ms */
> >> +
> >> + delay = min_t(unsigned long, 2500 * NSEC_PER_USEC,
> >> + tp->rcv_rtt_est.rtt_us * (NSEC_PER_USEC >>
3)/20);
> >
> > Any particular motivation for the 2.5ms here? It might be nice to match
the
> > existing TSO autosizing dynamics and use 1ms here instead of having a
> > separate new constant of 2.5ms. Smaller time scales here should lead to
> > less burstiness and queue pressure from data packets in the network,
and we
> > know from experience that the CPU overhead of 1ms chunks is acceptable.
> This came from my tests on wifi really :)
> I also had the idea to make this threshold adjustable for wifi, like we
did for sk_pacing_shift.
> (On wifi, we might want to increase the max delay between ACK)
> So maybe use 1ms delay, when sk_pacing_shift == 10, but increase it if
sk_pacing_shift has been lowered.
Sounds good to me.
Thanks for implementing this! Overall this patch seems nice to me.
Acked-by: Neal Cardwell <ncardwell@google.com>
BTW, I guess we should spread the word to maintainers of other major TCP
stacks that they need to be prepared for what may be a much higher degree
of compression/aggregation in the SACK stream. Linux stacks going back many
years should be fine with this, but I'm not sure about the other major OSes
(they may only allow sending one MSS per ACK-with-SACKs received).
neal
^ permalink raw reply
* Re: [PATCH v2 net] stmmac: strip vlan tag on reception only for 8021q tagged frames
From: David Miller @ 2018-05-17 16:43 UTC (permalink / raw)
To: eladv6; +Cc: makita.toshiaki, netdev, peppe.cavallaro, alexandre.torgue
In-Reply-To: <35b608aa-0e74-c375-b5e8-35ddc07e0f59@gmail.com>
From: Elad Nachman <eladv6@gmail.com>
Date: Fri, 11 May 2018 10:31:40 +0300
> stmmac reception handler calls stmmac_rx_vlan() to strip the vlan
> before calling napi_gro_receive().
>
> The function assumes VLAN tagged frames are always tagged with
> 802.1Q protocol, and assigns ETH_P_8021Q to the skb by hard-coding
> the parameter on call to __vlan_hwaccel_put_tag() without checking
> the actual VLAN tag.
>
> This causes packets not to be passed to the VLAN slave if it was
> created with 802.1AD protocol (ip link add link eth0 eth0.100 type
> vlan proto 802.1ad id 100).
>
> This fix only strips the VLAN tag for 802.1Q tagged
> protocols. 802.1AD frames will be handled later by skb_vlan_untag().
>
> Signed-off-by: Elad Nachman <eladn@gilat.com>
Giuseppe and Alexandre, please review this patch.
^ permalink raw reply
* Re: [PATCH net] net: test tailroom before appending to linear skb
From: Eric Dumazet @ 2018-05-17 16:44 UTC (permalink / raw)
To: Willem de Bruijn, netdev; +Cc: davem, Willem de Bruijn
In-Reply-To: <20180517155437.120414-1-willemdebruijn.kernel@gmail.com>
On 05/17/2018 08:54 AM, Willem de Bruijn wrote:
> From: Willem de Bruijn <willemb@google.com>
>
> Device features may change during transmission. In particular with
> corking, a device may toggle scatter-gather in between allocating
> and writing to an skb.
>
> Do not unconditionally assume that !NETIF_F_SG at write time implies
> that the same held at alloc time and thus the skb has sufficient
> tailroom.
>
> This issue predates git history.
>
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> Reported-by: Eric Dumazet <edumazet@google.com>
> Signed-off-by: Willem de Bruijn <willemb@google.com>
> ---
> net/ipv4/ip_output.c | 3 ++-
> net/ipv6/ip6_output.c | 3 ++-
> 2 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c
> index 83c73bab2c3d..c15204ec2eb0 100644
> --- a/net/ipv4/ip_output.c
> +++ b/net/ipv4/ip_output.c
> @@ -1045,7 +1045,8 @@ static int __ip_append_data(struct sock *sk,
> if (copy > length)
> copy = length;
>
> - if (!(rt->dst.dev->features&NETIF_F_SG)) {
> + if (!(rt->dst.dev->features&NETIF_F_SG) &&
> + skb_tailroom(skb) > copy) {
On second thought, maybe use >= for the test ?
> unsigned int off;
>
> off = skb->len;
> diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c
> index 2e891d2c30ef..7b6d1689087b 100644
> --- a/net/ipv6/ip6_output.c
> +++ b/net/ipv6/ip6_output.c
> @@ -1503,7 +1503,8 @@ static int __ip6_append_data(struct sock *sk,
> if (copy > length)
> copy = length;
>
> - if (!(rt->dst.dev->features&NETIF_F_SG)) {
> + if (!(rt->dst.dev->features&NETIF_F_SG) &&
> + skb_tailroom(skb) >= copy) {
> unsigned int off;
>
> off = skb->len;
>
^ permalink raw reply
* Re: [PATCH net-next] erspan: set bso bit based on mirrored packet's len
From: William Tu @ 2018-05-17 16:57 UTC (permalink / raw)
To: Tobin C. Harding; +Cc: Linux Kernel Network Developers
In-Reply-To: <20180516222400.GB25268@eros>
On Wed, May 16, 2018 at 3:24 PM, Tobin C. Harding <tobin@apporbit.com> wrote:
> On Wed, May 16, 2018 at 07:05:34AM -0700, William Tu wrote:
>> On Mon, May 14, 2018 at 10:33 PM, Tobin C. Harding <tobin@apporbit.com> wrote:
>> > On Mon, May 14, 2018 at 04:54:36PM -0700, William Tu wrote:
>> >> Before the patch, the erspan BSO bit (Bad/Short/Oversized) is not
>> >> handled. BSO has 4 possible values:
>> >> 00 --> Good frame with no error, or unknown integrity
>> >> 11 --> Payload is a Bad Frame with CRC or Alignment Error
>> >> 01 --> Payload is a Short Frame
>> >> 10 --> Payload is an Oversized Frame
>> >>
>> >> Based the short/oversized definitions in RFC1757, the patch sets
>> >> the bso bit based on the mirrored packet's size.
>> >>
>> >> Reported-by: Xiaoyan Jin <xiaoyanj@vmware.com>
>> >> Signed-off-by: William Tu <u9012063@gmail.com>
>> >> ---
>> >> include/net/erspan.h | 25 +++++++++++++++++++++++++
>> >> 1 file changed, 25 insertions(+)
>> >>
>> >> diff --git a/include/net/erspan.h b/include/net/erspan.h
>> >> index d044aa60cc76..5eb95f78ad45 100644
>> >> --- a/include/net/erspan.h
>> >> +++ b/include/net/erspan.h
>> >> @@ -219,6 +219,30 @@ static inline __be32 erspan_get_timestamp(void)
>> >> return htonl((u32)h_usecs);
>> >> }
>> >>
>> >> +/* ERSPAN BSO (Bad/Short/Oversized)
>> >> + * 00b --> Good frame with no error, or unknown integrity
>> >> + * 01b --> Payload is a Short Frame
>> >> + * 10b --> Payload is an Oversized Frame
>> >> + * 11b --> Payload is a Bad Frame with CRC or Alignment Error
>> >> + */
>> >> +enum erspan_bso {
>> >> + BSO_NOERROR,
>> >> + BSO_SHORT,
>> >> + BSO_OVERSIZED,
>> >> + BSO_BAD,
>> >> +};
>> >
>> > If we are relying on the values perhaps this would be clearer
>> >
>> > BSO_NOERROR = 0x00,
>> > BSO_SHORT = 0x01,
>> > BSO_OVERSIZED = 0x02,
>> > BSO_BAD = 0x03,
>> >
>>
>> Yes, thanks. I will change in v2.
>>
>> >> +
>> >> +static inline u8 erspan_detect_bso(struct sk_buff *skb)
>> >> +{
>> >> + if (skb->len < ETH_ZLEN)
>> >> + return BSO_SHORT;
>> >> +
>> >> + if (skb->len > ETH_FRAME_LEN)
>> >> + return BSO_OVERSIZED;
>> >> +
>> >> + return BSO_NOERROR;
>> >> +}
>> >
>> > Without having much contextual knowledge around this patch; should we be
>> > doing some check on CRC or alignment (at some stage)? Having BSO_BAD
>> > seems to imply so?
>> >
>>
>> The definition of BSO_BAD:
>> etherStatsCRCAlignErrors OBJECT-TYPE
>> SYNTAX Counter
>> ACCESS read-only
>> STATUS mandatory
>> DESCRIPTION
>> "The total number of packets received that
>> had a length (excluding framing bits, but
>> including FCS octets) of between 64 and 1518
>> octets, inclusive, but but had either a bad
>> Frame Check Sequence (FCS) with an integral
>> number of octets (FCS Error) or a bad FCS with
>> a non-integral number of octets (Alignment Error)."
>>
>> But I don't know how to check CRC error at this code point.
>> Isn't it done by the NIC hardware?
>
> I'll just start with; I don't know anything about ERSPAN
>
> "ERSPAN is a Cisco proprietary feature and is available only to
> Catalyst 6500, 7600, Nexus, and ASR 1000 platforms to date. The
> ASR 1000 supports ERSPAN source (monitoring) only on Fast
> Ethernet, Gigabit Ethernet, and port-channel interfaces."
>
> https://supportforums.cisco.com/t5/network-infrastructure-documents/understanding-span-rspan-and-erspan/ta-p/3144951
>
> I dug around a bit and none of the files that currently import erspan.h
> actually use the 'bso' field
>
> $ grep bso $(git grep -l 'erspan\.h')
> include/net/erspan.h: u8 bso = 0; /* Bad/Short/Oversized */
> include/net/erspan.h: ershdr->en = bso;
> net/ipv4/ip_gre.c: ICMP in the real Internet is absolutely infeasible.
> net/ipv4/ip_gre.c: * ICMP in the real Internet is absolutely infeasible.
>
Yes, that's expected.
>
> Normally, AFAICT, the FCS does not get passed to the operating system
> since its a link layer mechanism. If ERSPAN is passing the FCS when it
> mirrors frames (does it mirror frames or packets, I don't know?) then
> surely ERSPAN should provide a function to return the BSO value.
It mirrors layer 2 ethernet frame, so no FCS is passing.
>
> So IMHO this patch seems like a just pretense and not really doing
> anything.
>
The purpose is to set the BSO bit according to the spec, so that
ERSPAN monitor can interpret the mirrored traffic.
Thanks,
William
^ permalink raw reply
* Re: [PATCH net-next 3/4] tcp: add SACK compression
From: Yuchung Cheng @ 2018-05-17 16:59 UTC (permalink / raw)
To: Neal Cardwell
Cc: Eric Dumazet, Eric Dumazet, David Miller, Netdev,
Toke Høiland-Jørgensen, Soheil Hassas Yeganeh,
Christoph Paasch
In-Reply-To: <CADVnQymTZ-dfU65kJYAVrb4eEWkou_+bd8ZOCxE9sPUn=ZCtxg@mail.gmail.com>
On Thu, May 17, 2018 at 9:41 AM, Neal Cardwell <ncardwell@google.com> wrote:
>
> On Thu, May 17, 2018 at 11:40 AM Eric Dumazet <eric.dumazet@gmail.com>
> wrote:
> > On 05/17/2018 08:14 AM, Neal Cardwell wrote:
> > > Is there a particular motivation for the cap of 127? IMHO 127 ACKs is
> quite
> > > a few to compress. Experience seems to show that it works well to have
> one
> > > GRO ACK for ~64KBytes that triggers a single TSO skb of ~64KBytes. It
> might
> > > be nice to try to match those dynamics in this SACK compression case,
> so it
> > > might be nice to cap the number of compressed ACKs at something like 44?
> > > (0xffff / 1448 - 1). That way for high-speed paths we could try to keep
> > > the ACK clock going with ACKs for ~64KBytes that trigger a single TSO
> skb
> > > of ~64KBytes, no matter whether we are sending SACKs or cumulative ACKs.
>
> > 127 was chosen because the field is u8, and since skb allocation for the
> ACK
> > can fail, we could have cases were the field goes above 127.
>
> > Ultimately, I believe a followup patch would add a sysctl, so that we can
> fine-tune
> > this, and eventually disable ACK compression if this sysctl is set to 0
>
> OK, a sysctl sounds good. I would still vote for a default of 44. :-)
>
>
> > >> + if (hrtimer_is_queued(&tp->compressed_ack_timer))
> > >> + return;
> > >> +
> > >> + /* compress ack timer : 5 % of srtt, but no more than 2.5 ms */
> > >> +
> > >> + delay = min_t(unsigned long, 2500 * NSEC_PER_USEC,
> > >> + tp->rcv_rtt_est.rtt_us * (NSEC_PER_USEC >>
> 3)/20);
> > >
> > > Any particular motivation for the 2.5ms here? It might be nice to match
> the
> > > existing TSO autosizing dynamics and use 1ms here instead of having a
> > > separate new constant of 2.5ms. Smaller time scales here should lead to
> > > less burstiness and queue pressure from data packets in the network,
> and we
> > > know from experience that the CPU overhead of 1ms chunks is acceptable.
>
> > This came from my tests on wifi really :)
>
> > I also had the idea to make this threshold adjustable for wifi, like we
> did for sk_pacing_shift.
>
> > (On wifi, we might want to increase the max delay between ACK)
>
> > So maybe use 1ms delay, when sk_pacing_shift == 10, but increase it if
> sk_pacing_shift has been lowered.
>
> Sounds good to me.
>
> Thanks for implementing this! Overall this patch seems nice to me.
>
> Acked-by: Neal Cardwell <ncardwell@google.com>
>
> BTW, I guess we should spread the word to maintainers of other major TCP
> stacks that they need to be prepared for what may be a much higher degree
> of compression/aggregation in the SACK stream. Linux stacks going back many
> years should be fine with this, but I'm not sure about the other major OSes
> (they may only allow sending one MSS per ACK-with-SACKs received).
Patch looks really good but Neal's comment just reminds me a potential
legacy issue.
I recall at least Apple and Windows TCP stacks still need 3+ DUPACKs
(!= a SACK covering 3+ packets) to trigger fast recovery. Will we have
an issue there interacting w/ these stacks?
>
> neal
^ permalink raw reply
* Re: [PATCH v3 1/2] media: rc: introduce BPF_PROG_RAWIR_EVENT
From: Y Song @ 2018-05-17 17:02 UTC (permalink / raw)
To: Sean Young
Cc: linux-media, linux-kernel, Alexei Starovoitov,
Mauro Carvalho Chehab, Daniel Borkmann, netdev, Matthias Reichl,
Devin Heitmueller
In-Reply-To: <92785c791057185fa5691f78cecfa4beae7fc336.1526504511.git.sean@mess.org>
On Wed, May 16, 2018 at 2:04 PM, Sean Young <sean@mess.org> wrote:
> Add support for BPF_PROG_RAWIR_EVENT. This type of BPF program can call
> rc_keydown() to reported decoded IR scancodes, or rc_repeat() to report
> that the last key should be repeated.
>
> The bpf program can be attached to using the bpf(BPF_PROG_ATTACH) syscall;
> the target_fd must be the /dev/lircN device.
>
> Signed-off-by: Sean Young <sean@mess.org>
> ---
> drivers/media/rc/Kconfig | 13 ++
> drivers/media/rc/Makefile | 1 +
> drivers/media/rc/bpf-rawir-event.c | 363 +++++++++++++++++++++++++++++
> drivers/media/rc/lirc_dev.c | 24 ++
> drivers/media/rc/rc-core-priv.h | 24 ++
> drivers/media/rc/rc-ir-raw.c | 14 +-
> include/linux/bpf_rcdev.h | 30 +++
> include/linux/bpf_types.h | 3 +
> include/uapi/linux/bpf.h | 55 ++++-
> kernel/bpf/syscall.c | 7 +
> 10 files changed, 531 insertions(+), 3 deletions(-)
> create mode 100644 drivers/media/rc/bpf-rawir-event.c
> create mode 100644 include/linux/bpf_rcdev.h
>
> diff --git a/drivers/media/rc/Kconfig b/drivers/media/rc/Kconfig
> index eb2c3b6eca7f..2172d65b0213 100644
> --- a/drivers/media/rc/Kconfig
> +++ b/drivers/media/rc/Kconfig
> @@ -25,6 +25,19 @@ config LIRC
> passes raw IR to and from userspace, which is needed for
> IR transmitting (aka "blasting") and for the lirc daemon.
>
> +config BPF_RAWIR_EVENT
> + bool "Support for eBPF programs attached to lirc devices"
> + depends on BPF_SYSCALL
> + depends on RC_CORE=y
> + depends on LIRC
> + help
> + Allow attaching eBPF programs to a lirc device using the bpf(2)
> + syscall command BPF_PROG_ATTACH. This is supported for raw IR
> + receivers.
> +
> + These eBPF programs can be used to decode IR into scancodes, for
> + IR protocols not supported by the kernel decoders.
> +
> menuconfig RC_DECODERS
> bool "Remote controller decoders"
> depends on RC_CORE
> diff --git a/drivers/media/rc/Makefile b/drivers/media/rc/Makefile
> index 2e1c87066f6c..74907823bef8 100644
> --- a/drivers/media/rc/Makefile
> +++ b/drivers/media/rc/Makefile
> @@ -5,6 +5,7 @@ obj-y += keymaps/
> obj-$(CONFIG_RC_CORE) += rc-core.o
> rc-core-y := rc-main.o rc-ir-raw.o
> rc-core-$(CONFIG_LIRC) += lirc_dev.o
> +rc-core-$(CONFIG_BPF_RAWIR_EVENT) += bpf-rawir-event.o
> obj-$(CONFIG_IR_NEC_DECODER) += ir-nec-decoder.o
> obj-$(CONFIG_IR_RC5_DECODER) += ir-rc5-decoder.o
> obj-$(CONFIG_IR_RC6_DECODER) += ir-rc6-decoder.o
> diff --git a/drivers/media/rc/bpf-rawir-event.c b/drivers/media/rc/bpf-rawir-event.c
> new file mode 100644
> index 000000000000..7cb48b8d87b5
> --- /dev/null
> +++ b/drivers/media/rc/bpf-rawir-event.c
> @@ -0,0 +1,363 @@
> +// SPDX-License-Identifier: GPL-2.0
> +// bpf-rawir-event.c - handles bpf
> +//
> +// Copyright (C) 2018 Sean Young <sean@mess.org>
> +
> +#include <linux/bpf.h>
> +#include <linux/filter.h>
> +#include <linux/bpf_rcdev.h>
> +#include "rc-core-priv.h"
> +
> +/*
> + * BPF interface for raw IR
> + */
> +const struct bpf_prog_ops rawir_event_prog_ops = {
> +};
> +
> +BPF_CALL_1(bpf_rc_repeat, struct bpf_rawir_event*, event)
> +{
> + struct ir_raw_event_ctrl *ctrl;
> +
> + ctrl = container_of(event, struct ir_raw_event_ctrl, bpf_rawir_event);
> +
> + rc_repeat(ctrl->dev);
> +
> + return 0;
> +}
> +
> +static const struct bpf_func_proto rc_repeat_proto = {
> + .func = bpf_rc_repeat,
> + .gpl_only = true, /* rc_repeat is EXPORT_SYMBOL_GPL */
> + .ret_type = RET_INTEGER,
> + .arg1_type = ARG_PTR_TO_CTX,
> +};
> +
> +BPF_CALL_4(bpf_rc_keydown, struct bpf_rawir_event*, event, u32, protocol,
> + u32, scancode, u32, toggle)
> +{
> + struct ir_raw_event_ctrl *ctrl;
> +
> + ctrl = container_of(event, struct ir_raw_event_ctrl, bpf_rawir_event);
> +
> + rc_keydown(ctrl->dev, protocol, scancode, toggle != 0);
> +
> + return 0;
> +}
> +
> +static const struct bpf_func_proto rc_keydown_proto = {
> + .func = bpf_rc_keydown,
> + .gpl_only = true, /* rc_keydown is EXPORT_SYMBOL_GPL */
> + .ret_type = RET_INTEGER,
> + .arg1_type = ARG_PTR_TO_CTX,
> + .arg2_type = ARG_ANYTHING,
> + .arg3_type = ARG_ANYTHING,
> + .arg4_type = ARG_ANYTHING,
> +};
> +
> +static const struct bpf_func_proto *
> +rawir_event_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
> +{
> + switch (func_id) {
> + case BPF_FUNC_rc_repeat:
> + return &rc_repeat_proto;
> + case BPF_FUNC_rc_keydown:
> + return &rc_keydown_proto;
> + case BPF_FUNC_map_lookup_elem:
> + return &bpf_map_lookup_elem_proto;
> + case BPF_FUNC_map_update_elem:
> + return &bpf_map_update_elem_proto;
> + case BPF_FUNC_map_delete_elem:
> + return &bpf_map_delete_elem_proto;
> + case BPF_FUNC_ktime_get_ns:
> + return &bpf_ktime_get_ns_proto;
> + case BPF_FUNC_tail_call:
> + return &bpf_tail_call_proto;
> + case BPF_FUNC_get_prandom_u32:
> + return &bpf_get_prandom_u32_proto;
> + case BPF_FUNC_trace_printk:
> + if (capable(CAP_SYS_ADMIN))
> + return bpf_get_trace_printk_proto();
> + /* fall through */
> + default:
> + return NULL;
> + }
> +}
> +
> +static bool rawir_event_is_valid_access(int off, int size,
> + enum bpf_access_type type,
> + const struct bpf_prog *prog,
> + struct bpf_insn_access_aux *info)
> +{
> + /* struct bpf_rawir_event has two u32 fields */
> + if (type == BPF_WRITE)
> + return false;
> +
> + if (size != sizeof(__u32))
> + return false;
> +
> + if (!(off == offsetof(struct bpf_rawir_event, duration) ||
> + off == offsetof(struct bpf_rawir_event, type)))
> + return false;
> +
> + return true;
> +}
> +
> +const struct bpf_verifier_ops rawir_event_verifier_ops = {
> + .get_func_proto = rawir_event_func_proto,
> + .is_valid_access = rawir_event_is_valid_access
> +};
> +
> +#define BPF_MAX_PROGS 64
> +
> +static int rc_dev_bpf_attach(struct rc_dev *rcdev, struct bpf_prog *prog)
> +{
> + struct ir_raw_event_ctrl *raw;
> + struct bpf_prog_list *pl;
> + int ret, size;
> +
> + if (rcdev->driver_type != RC_DRIVER_IR_RAW)
> + return -EINVAL;
> +
> + ret = mutex_lock_interruptible(&ir_raw_handler_lock);
> + if (ret)
> + return ret;
> +
> + raw = rcdev->raw;
> + if (!raw) {
> + ret = -ENODEV;
> + goto out;
> + }
> +
> + size = 0;
> + list_for_each_entry(pl, &raw->progs, node) {
> + if (pl->prog == prog) {
> + ret = -EEXIST;
> + goto out;
> + }
> +
> + size++;
> + }
> +
> + if (size >= BPF_MAX_PROGS) {
> + ret = -E2BIG;
> + goto out;
> + }
> +
> + pl = kmalloc(sizeof(*pl), GFP_KERNEL);
> + if (!pl) {
> + ret = -ENOMEM;
> + goto out;
> + }
> +
> + pl->prog = prog;
> + list_add(&pl->node, &raw->progs);
> +out:
> + mutex_unlock(&ir_raw_handler_lock);
> + return ret;
> +}
> +
> +static int rc_dev_bpf_detach(struct rc_dev *rcdev, struct bpf_prog *prog)
> +{
> + struct ir_raw_event_ctrl *raw;
> + struct bpf_prog_list *pl, *tmp;
> + int ret;
> +
> + if (rcdev->driver_type != RC_DRIVER_IR_RAW)
> + return -EINVAL;
> +
> + ret = mutex_lock_interruptible(&ir_raw_handler_lock);
> + if (ret)
> + return ret;
> +
> + raw = rcdev->raw;
> + if (!raw) {
> + ret = -ENODEV;
> + goto out;
> + }
> +
> + ret = -ENOENT;
> +
> + list_for_each_entry_safe(pl, tmp, &raw->progs, node) {
> + if (pl->prog == prog) {
> + list_del(&pl->node);
> + kfree(pl);
> + bpf_prog_put(prog);
> + ret = 0;
> + goto out;
> + }
> + }
> +out:
> + mutex_unlock(&ir_raw_handler_lock);
> + return ret;
> +}
> +
> +void rc_dev_bpf_init(struct rc_dev *rcdev)
> +{
> + INIT_LIST_HEAD(&rcdev->raw->progs);
> +}
> +
> +void rc_dev_bpf_run(struct rc_dev *rcdev, struct ir_raw_event ev)
> +{
> + struct ir_raw_event_ctrl *raw = rcdev->raw;
> + struct bpf_prog_list *pl;
> +
> + if (list_empty(&raw->progs))
> + return;
> +
> + if (unlikely(ev.carrier_report)) {
> + raw->bpf_rawir_event.carrier = ev.carrier;
> + raw->bpf_rawir_event.type = BPF_RAWIR_EVENT_CARRIER;
> + } else {
> + raw->bpf_rawir_event.duration = ev.duration;
> +
> + if (ev.pulse)
> + raw->bpf_rawir_event.type = BPF_RAWIR_EVENT_PULSE;
> + else if (ev.timeout)
> + raw->bpf_rawir_event.type = BPF_RAWIR_EVENT_TIMEOUT;
> + else if (ev.reset)
> + raw->bpf_rawir_event.type = BPF_RAWIR_EVENT_RESET;
> + else
> + raw->bpf_rawir_event.type = BPF_RAWIR_EVENT_SPACE;
> + }
> +
> + list_for_each_entry(pl, &raw->progs, node)
> + BPF_PROG_RUN(pl->prog, &raw->bpf_rawir_event);
Is the raw->progs protected by locks? It is possible that attaching/detaching
could manipulate raw->progs at the same time? In perf/cgroup prog array
case, the prog array run is protected by rcu and the dummy prog idea is
to avoid the prog is skipped by reshuffling.
Also, the original idea about using prog array is the least overhead since you
want to BPF programs to execute as soon as possible.
> +}
> +
> +void rc_dev_bpf_free(struct rc_dev *rcdev)
> +{
> + struct bpf_prog_list *pl, *tmp;
> +
> + list_for_each_entry_safe(pl, tmp, &rcdev->raw->progs, node) {
> + list_del(&pl->node);
> + bpf_prog_put(pl->prog);
> + kfree(pl);
> + }
> +}
> +
> +int rc_dev_prog_attach(const union bpf_attr *attr)
> +{
> + struct bpf_prog *prog;
> + struct rc_dev *rcdev;
> + int ret;
> +
> + if (attr->attach_flags)
> + return -EINVAL;
> +
> + prog = bpf_prog_get_type(attr->attach_bpf_fd,
> + BPF_PROG_TYPE_RAWIR_EVENT);
> + if (IS_ERR(prog))
> + return PTR_ERR(prog);
> +
> + rcdev = rc_dev_get_from_fd(attr->target_fd);
> + if (IS_ERR(rcdev)) {
> + bpf_prog_put(prog);
> + return PTR_ERR(rcdev);
> + }
> +
> + ret = rc_dev_bpf_attach(rcdev, prog);
> + if (ret)
> + bpf_prog_put(prog);
> +
> + put_device(&rcdev->dev);
> +
> + return ret;
> +}
> +
> +int rc_dev_prog_detach(const union bpf_attr *attr)
> +{
> + struct bpf_prog *prog;
> + struct rc_dev *rcdev;
> + int ret;
> +
> + if (attr->attach_flags)
> + return -EINVAL;
> +
> + prog = bpf_prog_get_type(attr->attach_bpf_fd,
> + BPF_PROG_TYPE_RAWIR_EVENT);
> + if (IS_ERR(prog))
> + return PTR_ERR(prog);
> +
> + rcdev = rc_dev_get_from_fd(attr->target_fd);
> + if (IS_ERR(rcdev)) {
> + bpf_prog_put(prog);
> + return PTR_ERR(rcdev);
> + }
> +
> + ret = rc_dev_bpf_detach(rcdev, prog);
> +
> + bpf_prog_put(prog);
> + put_device(&rcdev->dev);
> +
> + return ret;
> +}
> +
> +int rc_dev_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr)
> +{
> + __u32 __user *prog_ids = u64_to_user_ptr(attr->query.prog_ids);
> + struct ir_raw_event_ctrl *raw;
> + struct bpf_prog_list *pl;
> + struct rc_dev *rcdev;
> + u32 cnt, flags = 0, *ids, i;
> + int ret;
> +
> + if (attr->query.query_flags)
> + return -EINVAL;
> +
> + rcdev = rc_dev_get_from_fd(attr->query.target_fd);
> + if (IS_ERR(rcdev))
> + return PTR_ERR(rcdev);
> +
> + if (rcdev->driver_type != RC_DRIVER_IR_RAW) {
> + ret = -EINVAL;
> + goto out;
mutex_lock_interruptible() has not been called. You can just return here.
> + }
> +
> + ret = mutex_lock_interruptible(&ir_raw_handler_lock);
> + if (ret)
> + goto out;
Maybe you can rename label "out" to "unlock" since it
is really an unlock and out?
> +
> + raw = rcdev->raw;
> + if (!raw) {
> + ret = -ENODEV;
> + goto out;
> + }
> +
> + cnt = 0;
> + list_for_each_entry(pl, &raw->progs, node)
> + cnt++;
> +
> + if (copy_to_user(&uattr->query.prog_cnt, &cnt, sizeof(cnt))) {
> + ret = -EFAULT;
> + goto out;
> + }
> + if (copy_to_user(&uattr->query.attach_flags, &flags, sizeof(flags))) {
> + ret = -EFAULT;
> + goto out;
> + }
> +
> + if (attr->query.prog_cnt != 0 && prog_ids && cnt) {
> + if (attr->query.prog_cnt < cnt)
> + cnt = attr->query.prog_cnt;
> +
> + ids = kmalloc_array(cnt, sizeof(u32), GFP_KERNEL);
> + if (!ids) {
> + ret = -ENOMEM;
> + goto out;
> + }
> +
> + i = 0;
> + list_for_each_entry(pl, &raw->progs, node) {
> + ids[i++] = pl->prog->aux->id;
> + if (i == cnt)
> + break;
> + }
> +
> + ret = copy_to_user(prog_ids, ids, cnt * sizeof(u32));
Do you want to give user a chance to know that the "cnt" is not big enough
by return -ENOSPC if cnt is smaller than the number of progs in the array?
> + }
> +out:
> + mutex_unlock(&ir_raw_handler_lock);
> + put_device(&rcdev->dev);
> +
> + return ret;
> +}
> diff --git a/drivers/media/rc/lirc_dev.c b/drivers/media/rc/lirc_dev.c
> index 24e9fbb80e81..193540ded626 100644
> --- a/drivers/media/rc/lirc_dev.c
> +++ b/drivers/media/rc/lirc_dev.c
> @@ -20,6 +20,7 @@
> #include <linux/module.h>
> #include <linux/mutex.h>
> #include <linux/device.h>
> +#include <linux/file.h>
> #include <linux/idr.h>
> #include <linux/poll.h>
> #include <linux/sched.h>
> @@ -816,4 +817,27 @@ void __exit lirc_dev_exit(void)
> unregister_chrdev_region(lirc_base_dev, RC_DEV_MAX);
> }
>
> +struct rc_dev *rc_dev_get_from_fd(int fd)
> +{
> + struct fd f = fdget(fd);
> + struct lirc_fh *fh;
> + struct rc_dev *dev;
> +
> + if (!f.file)
> + return ERR_PTR(-EBADF);
> +
> + if (f.file->f_op != &lirc_fops) {
> + fdput(f);
> + return ERR_PTR(-EINVAL);
> + }
> +
> + fh = f.file->private_data;
> + dev = fh->rc;
> +
> + get_device(&dev->dev);
> + fdput(f);
> +
> + return dev;
> +}
> +
> MODULE_ALIAS("lirc_dev");
> diff --git a/drivers/media/rc/rc-core-priv.h b/drivers/media/rc/rc-core-priv.h
> index e0e6a17460f6..148db73cfa0c 100644
> --- a/drivers/media/rc/rc-core-priv.h
> +++ b/drivers/media/rc/rc-core-priv.h
> @@ -13,6 +13,7 @@
> #define MAX_IR_EVENT_SIZE 512
>
> #include <linux/slab.h>
> +#include <uapi/linux/bpf.h>
> #include <media/rc-core.h>
>
> /**
> @@ -57,6 +58,11 @@ struct ir_raw_event_ctrl {
> /* raw decoder state follows */
> struct ir_raw_event prev_ev;
> struct ir_raw_event this_ev;
> +
> +#ifdef CONFIG_BPF_RAWIR_EVENT
> + struct bpf_rawir_event bpf_rawir_event;
> + struct list_head progs;
> +#endif
> struct nec_dec {
> int state;
> unsigned count;
> @@ -126,6 +132,9 @@ struct ir_raw_event_ctrl {
> } imon;
> };
>
> +/* Mutex for locking raw IR processing and handler change */
> +extern struct mutex ir_raw_handler_lock;
> +
> /* macros for IR decoders */
> static inline bool geq_margin(unsigned d1, unsigned d2, unsigned margin)
> {
> @@ -288,6 +297,7 @@ void ir_lirc_raw_event(struct rc_dev *dev, struct ir_raw_event ev);
> void ir_lirc_scancode_event(struct rc_dev *dev, struct lirc_scancode *lsc);
> int ir_lirc_register(struct rc_dev *dev);
> void ir_lirc_unregister(struct rc_dev *dev);
> +struct rc_dev *rc_dev_get_from_fd(int fd);
> #else
> static inline int lirc_dev_init(void) { return 0; }
> static inline void lirc_dev_exit(void) {}
> @@ -299,4 +309,18 @@ static inline int ir_lirc_register(struct rc_dev *dev) { return 0; }
> static inline void ir_lirc_unregister(struct rc_dev *dev) { }
> #endif
>
> +/*
> + * bpf interface
> + */
> +#ifdef CONFIG_BPF_RAWIR_EVENT
> +void rc_dev_bpf_init(struct rc_dev *dev);
> +void rc_dev_bpf_free(struct rc_dev *dev);
> +void rc_dev_bpf_run(struct rc_dev *dev, struct ir_raw_event ev);
> +#else
> +static inline void rc_dev_bpf_init(struct rc_dev *dev) { }
> +static inline void rc_dev_bpf_free(struct rc_dev *dev) { }
> +static inline void rc_dev_bpf_run(struct rc_dev *dev, struct ir_raw_event ev)
> +{ }
> +#endif
> +
> #endif /* _RC_CORE_PRIV */
> diff --git a/drivers/media/rc/rc-ir-raw.c b/drivers/media/rc/rc-ir-raw.c
> index 374f83105a23..e68cdd4fbf5d 100644
> --- a/drivers/media/rc/rc-ir-raw.c
> +++ b/drivers/media/rc/rc-ir-raw.c
> @@ -14,7 +14,7 @@
> static LIST_HEAD(ir_raw_client_list);
>
> /* Used to handle IR raw handler extensions */
> -static DEFINE_MUTEX(ir_raw_handler_lock);
> +DEFINE_MUTEX(ir_raw_handler_lock);
> static LIST_HEAD(ir_raw_handler_list);
> static atomic64_t available_protocols = ATOMIC64_INIT(0);
>
> @@ -32,6 +32,7 @@ static int ir_raw_event_thread(void *data)
> handler->protocols || !handler->protocols)
> handler->decode(raw->dev, ev);
> ir_lirc_raw_event(raw->dev, ev);
> + rc_dev_bpf_run(raw->dev, ev);
> raw->prev_ev = ev;
> }
> mutex_unlock(&ir_raw_handler_lock);
> @@ -572,6 +573,7 @@ int ir_raw_event_prepare(struct rc_dev *dev)
> spin_lock_init(&dev->raw->edge_spinlock);
> timer_setup(&dev->raw->edge_handle, ir_raw_edge_handle, 0);
> INIT_KFIFO(dev->raw->kfifo);
> + rc_dev_bpf_init(dev);
>
> return 0;
> }
> @@ -621,9 +623,17 @@ void ir_raw_event_unregister(struct rc_dev *dev)
> list_for_each_entry(handler, &ir_raw_handler_list, list)
> if (handler->raw_unregister)
> handler->raw_unregister(dev);
> - mutex_unlock(&ir_raw_handler_lock);
> +
> + rc_dev_bpf_free(dev);
>
> ir_raw_event_free(dev);
> +
> + /*
> + * A user can be calling bpf(BPF_PROG_{QUERY|ATTACH|DETACH}), so
> + * ensure that the raw member is null on unlock; this is how
> + * "device gone" is checked.
> + */
> + mutex_unlock(&ir_raw_handler_lock);
> }
>
> /*
> diff --git a/include/linux/bpf_rcdev.h b/include/linux/bpf_rcdev.h
> new file mode 100644
> index 000000000000..17a30f30436a
> --- /dev/null
> +++ b/include/linux/bpf_rcdev.h
> @@ -0,0 +1,30 @@
> +/* SPDX-License-Identifier: GPL-2.0 */
> +#ifndef _BPF_RCDEV_H
> +#define _BPF_RCDEV_H
> +
> +#include <linux/bpf.h>
> +#include <uapi/linux/bpf.h>
> +
> +#ifdef CONFIG_BPF_RAWIR_EVENT
> +int rc_dev_prog_attach(const union bpf_attr *attr);
> +int rc_dev_prog_detach(const union bpf_attr *attr);
> +int rc_dev_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr);
> +#else
> +static inline int rc_dev_prog_attach(const union bpf_attr *attr)
> +{
> + return -EINVAL;
> +}
> +
> +static inline int rc_dev_prog_detach(const union bpf_attr *attr)
> +{
> + return -EINVAL;
> +}
> +
> +static inline int rc_dev_prog_query(const union bpf_attr *attr,
> + union bpf_attr __user *uattr)
> +{
> + return -EINVAL;
> +}
> +#endif
> +
> +#endif /* _BPF_RCDEV_H */
> diff --git a/include/linux/bpf_types.h b/include/linux/bpf_types.h
> index b67f8793de0d..e2b1b12474d4 100644
> --- a/include/linux/bpf_types.h
> +++ b/include/linux/bpf_types.h
> @@ -25,6 +25,9 @@ BPF_PROG_TYPE(BPF_PROG_TYPE_RAW_TRACEPOINT, raw_tracepoint)
> #ifdef CONFIG_CGROUP_BPF
> BPF_PROG_TYPE(BPF_PROG_TYPE_CGROUP_DEVICE, cg_dev)
> #endif
> +#ifdef CONFIG_BPF_RAWIR_EVENT
> +BPF_PROG_TYPE(BPF_PROG_TYPE_RAWIR_EVENT, rawir_event)
> +#endif
>
> BPF_MAP_TYPE(BPF_MAP_TYPE_ARRAY, array_map_ops)
> BPF_MAP_TYPE(BPF_MAP_TYPE_PERCPU_ARRAY, percpu_array_map_ops)
> diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h
> index d94d333a8225..243e141e8a5b 100644
> --- a/include/uapi/linux/bpf.h
> +++ b/include/uapi/linux/bpf.h
> @@ -141,6 +141,7 @@ enum bpf_prog_type {
> BPF_PROG_TYPE_SK_MSG,
> BPF_PROG_TYPE_RAW_TRACEPOINT,
> BPF_PROG_TYPE_CGROUP_SOCK_ADDR,
> + BPF_PROG_TYPE_RAWIR_EVENT,
> };
>
> enum bpf_attach_type {
> @@ -158,6 +159,7 @@ enum bpf_attach_type {
> BPF_CGROUP_INET6_CONNECT,
> BPF_CGROUP_INET4_POST_BIND,
> BPF_CGROUP_INET6_POST_BIND,
> + BPF_RAWIR_EVENT,
> __MAX_BPF_ATTACH_TYPE
> };
>
> @@ -1902,6 +1904,35 @@ union bpf_attr {
> * egress otherwise). This is the only flag supported for now.
> * Return
> * **SK_PASS** on success, or **SK_DROP** on error.
> + *
> + * int bpf_rc_keydown(void *ctx, u32 protocol, u32 scancode, u32 toggle)
> + * Description
> + * Report decoded scancode with toggle value. For use in
> + * BPF_PROG_TYPE_RAWIR_EVENT, to report a successfully
> + * decoded scancode. This is will generate a keydown event,
> + * and a keyup event once the scancode is no longer repeated.
> + *
> + * *ctx* pointer to bpf_rawir_event, *protocol* is decoded
> + * protocol (see RC_PROTO_* enum).
> + *
> + * Some protocols include a toggle bit, in case the button
> + * was released and pressed again between consecutive scancodes,
> + * copy this bit into *toggle* if it exists, else set to 0.
> + *
> + * Return
> + * Always return 0 (for now)
> + *
> + * int bpf_rc_repeat(void *ctx)
> + * Description
> + * Repeat the last decoded scancode; some IR protocols like
> + * NEC have a special IR message for repeat last button,
> + * in case user is holding a button down; the scancode is
> + * not repeated.
> + *
> + * *ctx* pointer to bpf_rawir_event.
> + *
> + * Return
> + * Always return 0 (for now)
> */
> #define __BPF_FUNC_MAPPER(FN) \
> FN(unspec), \
> @@ -1976,7 +2007,9 @@ union bpf_attr {
> FN(fib_lookup), \
> FN(sock_hash_update), \
> FN(msg_redirect_hash), \
> - FN(sk_redirect_hash),
> + FN(sk_redirect_hash), \
> + FN(rc_repeat), \
> + FN(rc_keydown),
>
> /* integer value in 'imm' field of BPF_CALL instruction selects which helper
> * function eBPF program intends to call
> @@ -2043,6 +2076,26 @@ enum bpf_hdr_start_off {
> BPF_HDR_START_NET,
> };
>
> +/*
> + * user accessible mirror of in-kernel ir_raw_event
> + */
> +#define BPF_RAWIR_EVENT_SPACE 0
> +#define BPF_RAWIR_EVENT_PULSE 1
> +#define BPF_RAWIR_EVENT_TIMEOUT 2
> +#define BPF_RAWIR_EVENT_RESET 3
> +#define BPF_RAWIR_EVENT_CARRIER 4
> +#define BPF_RAWIR_EVENT_DUTY_CYCLE 5
> +
> +struct bpf_rawir_event {
> + union {
> + __u32 duration;
> + __u32 carrier;
> + __u32 duty_cycle;
> + };
> +
> + __u32 type;
> +};
> +
> /* user accessible mirror of in-kernel sk_buff.
> * new fields can only be added to the end of this structure
> */
> diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c
> index e2aeb5e89f44..75c089f407c8 100644
> --- a/kernel/bpf/syscall.c
> +++ b/kernel/bpf/syscall.c
> @@ -11,6 +11,7 @@
> */
> #include <linux/bpf.h>
> #include <linux/bpf_trace.h>
> +#include <linux/bpf_rcdev.h>
> #include <linux/btf.h>
> #include <linux/syscalls.h>
> #include <linux/slab.h>
> @@ -1567,6 +1568,8 @@ static int bpf_prog_attach(const union bpf_attr *attr)
> case BPF_SK_SKB_STREAM_PARSER:
> case BPF_SK_SKB_STREAM_VERDICT:
> return sockmap_get_from_fd(attr, BPF_PROG_TYPE_SK_SKB, true);
> + case BPF_RAWIR_EVENT:
> + return rc_dev_prog_attach(attr);
> default:
> return -EINVAL;
> }
> @@ -1637,6 +1640,8 @@ static int bpf_prog_detach(const union bpf_attr *attr)
> case BPF_SK_SKB_STREAM_PARSER:
> case BPF_SK_SKB_STREAM_VERDICT:
> return sockmap_get_from_fd(attr, BPF_PROG_TYPE_SK_SKB, false);
> + case BPF_RAWIR_EVENT:
> + return rc_dev_prog_detach(attr);
> default:
> return -EINVAL;
> }
> @@ -1684,6 +1689,8 @@ static int bpf_prog_query(const union bpf_attr *attr,
> case BPF_CGROUP_SOCK_OPS:
> case BPF_CGROUP_DEVICE:
> break;
> + case BPF_RAWIR_EVENT:
> + return rc_dev_prog_query(attr, uattr);
> default:
> return -EINVAL;
> }
> --
> 2.17.0
>
^ permalink raw reply
* Re: [PATCH net] net: test tailroom before appending to linear skb
From: Willem de Bruijn @ 2018-05-17 17:03 UTC (permalink / raw)
To: Eric Dumazet; +Cc: Network Development, David Miller, Willem de Bruijn
In-Reply-To: <69013f90-5b09-06e9-b0e4-2869bce6515c@gmail.com>
On Thu, May 17, 2018 at 12:44 PM, Eric Dumazet <eric.dumazet@gmail.com> wrote:
>
>
> On 05/17/2018 08:54 AM, Willem de Bruijn wrote:
>> From: Willem de Bruijn <willemb@google.com>
>>
>> Device features may change during transmission. In particular with
>> corking, a device may toggle scatter-gather in between allocating
>> and writing to an skb.
>>
>> Do not unconditionally assume that !NETIF_F_SG at write time implies
>> that the same held at alloc time and thus the skb has sufficient
>> tailroom.
>>
>> This issue predates git history.
>>
>> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
>> Reported-by: Eric Dumazet <edumazet@google.com>
>> Signed-off-by: Willem de Bruijn <willemb@google.com>
>> ---
>> net/ipv4/ip_output.c | 3 ++-
>> net/ipv6/ip6_output.c | 3 ++-
>> 2 files changed, 4 insertions(+), 2 deletions(-)
>>
>> diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c
>> index 83c73bab2c3d..c15204ec2eb0 100644
>> --- a/net/ipv4/ip_output.c
>> +++ b/net/ipv4/ip_output.c
>> @@ -1045,7 +1045,8 @@ static int __ip_append_data(struct sock *sk,
>> if (copy > length)
>> copy = length;
>>
>> - if (!(rt->dst.dev->features&NETIF_F_SG)) {
>> + if (!(rt->dst.dev->features&NETIF_F_SG) &&
>> + skb_tailroom(skb) > copy) {
>
> On second thought, maybe use >= for the test ?
Ai, yes of course. Will send a v2.
^ permalink raw reply
* Re: [PATCH net-next 0/2] sched: refactor NOLOCK qdiscs
From: David Miller @ 2018-05-17 17:06 UTC (permalink / raw)
To: pabeni; +Cc: netdev, jhs, xiyou.wangcong, jiri, john.fastabend, mst
In-Reply-To: <cover.1526392746.git.pabeni@redhat.com>
From: Paolo Abeni <pabeni@redhat.com>
Date: Tue, 15 May 2018 16:24:35 +0200
> With the introduction of NOLOCK qdiscs, pfifo_fast performances in the
> uncontended scenario degraded measurably, especially after the commit
> eb82a9944792 ("net: sched, fix OOO packets with pfifo_fast").
>
> This series restore the pfifo_fast performances in such scenario back the
> previous level, mainly reducing the number of atomic operations required to
> perform the qdisc_run() call. Even performances in the contended scenario
> increase measurably.
>
> Note: This series is on top of:
>
> sched: manipulate __QDISC_STATE_RUNNING in qdisc_run_* helpers
Series applied, thank you.
^ permalink raw reply
* [PATCH net v2] net: test tailroom before appending to linear skb
From: Willem de Bruijn @ 2018-05-17 17:13 UTC (permalink / raw)
To: netdev; +Cc: davem, Willem de Bruijn
From: Willem de Bruijn <willemb@google.com>
Device features may change during transmission. In particular with
corking, a device may toggle scatter-gather in between allocating
and writing to an skb.
Do not unconditionally assume that !NETIF_F_SG at write time implies
that the same held at alloc time and thus the skb has sufficient
tailroom.
This issue predates git history.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Reported-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Willem de Bruijn <willemb@google.com>
---
v2: fix ipv4 boundary condition
---
net/ipv4/ip_output.c | 3 ++-
net/ipv6/ip6_output.c | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c
index 83c73bab2c3d..d54abc097800 100644
--- a/net/ipv4/ip_output.c
+++ b/net/ipv4/ip_output.c
@@ -1045,7 +1045,8 @@ static int __ip_append_data(struct sock *sk,
if (copy > length)
copy = length;
- if (!(rt->dst.dev->features&NETIF_F_SG)) {
+ if (!(rt->dst.dev->features&NETIF_F_SG) &&
+ skb_tailroom(skb) >= copy) {
unsigned int off;
off = skb->len;
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c
index 2e891d2c30ef..7b6d1689087b 100644
--- a/net/ipv6/ip6_output.c
+++ b/net/ipv6/ip6_output.c
@@ -1503,7 +1503,8 @@ static int __ip6_append_data(struct sock *sk,
if (copy > length)
copy = length;
- if (!(rt->dst.dev->features&NETIF_F_SG)) {
+ if (!(rt->dst.dev->features&NETIF_F_SG) &&
+ skb_tailroom(skb) >= copy) {
unsigned int off;
off = skb->len;
--
2.17.0.441.gb46fe60e1d-goog
^ permalink raw reply related
* Re: [PATCH net-next 2/4] tcp: do not force quickack when receiving out-of-order packets
From: Soheil Hassas Yeganeh @ 2018-05-17 17:14 UTC (permalink / raw)
To: Eric Dumazet
Cc: David S . Miller, netdev, Toke Høiland-Jørgensen,
Neal Cardwell, Yuchung Cheng, Eric Dumazet
In-Reply-To: <20180517121213.43559-3-edumazet@google.com>
On Thu, May 17, 2018 at 8:12 AM, Eric Dumazet <edumazet@google.com> wrote:
> As explained in commit 9f9843a751d0 ("tcp: properly handle stretch
> acks in slow start"), TCP stacks have to consider how many packets
> are acknowledged in one single ACK, because of GRO, but also
> because of ACK compression or losses.
>
> We plan to add SACK compression in the following patch, we
> must therefore not call tcp_enter_quickack_mode()
>
> Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Thank you, Eric!
^ permalink raw reply
* Re: [PATCH net-next 3/4] tcp: add SACK compression
From: Eric Dumazet @ 2018-05-17 17:15 UTC (permalink / raw)
To: Yuchung Cheng
Cc: Neal Cardwell, Eric Dumazet, David Miller, netdev,
Toke Høiland-Jørgensen, Soheil Hassas Yeganeh,
Christoph Paasch
In-Reply-To: <CAK6E8=e=L3oDLwAJze0Af_YXYBOBvpWTZHpBSPcGjUmuvLCKXQ@mail.gmail.com>
On Thu, May 17, 2018 at 9:59 AM Yuchung Cheng <ycheng@google.com> wrote:
> >
> > Thanks for implementing this! Overall this patch seems nice to me.
> >
> > Acked-by: Neal Cardwell <ncardwell@google.com>
> >
> > BTW, I guess we should spread the word to maintainers of other major TCP
> > stacks that they need to be prepared for what may be a much higher
degree
> > of compression/aggregation in the SACK stream. Linux stacks going back
many
> > years should be fine with this, but I'm not sure about the other major
OSes
> > (they may only allow sending one MSS per ACK-with-SACKs received).
> Patch looks really good but Neal's comment just reminds me a potential
> legacy issue.
> I recall at least Apple and Windows TCP stacks still need 3+ DUPACKs
> (!= a SACK covering 3+ packets) to trigger fast recovery. Will we have
> an issue there interacting w/ these stacks?
Then we should revert GRO :)
Really it is time for these stacks to catch up, or give up to QUIC :/
^ permalink raw reply
* Re: [PATCH net-next 3/4] tcp: add SACK compression
From: Yuchung Cheng @ 2018-05-17 17:15 UTC (permalink / raw)
To: Neal Cardwell
Cc: Eric Dumazet, Eric Dumazet, David Miller, Netdev,
Toke Høiland-Jørgensen, Soheil Hassas Yeganeh,
Christoph Paasch
In-Reply-To: <CAK6E8=e=L3oDLwAJze0Af_YXYBOBvpWTZHpBSPcGjUmuvLCKXQ@mail.gmail.com>
On Thu, May 17, 2018 at 9:59 AM, Yuchung Cheng <ycheng@google.com> wrote:
> On Thu, May 17, 2018 at 9:41 AM, Neal Cardwell <ncardwell@google.com> wrote:
>>
>> On Thu, May 17, 2018 at 11:40 AM Eric Dumazet <eric.dumazet@gmail.com>
>> wrote:
>> > On 05/17/2018 08:14 AM, Neal Cardwell wrote:
>> > > Is there a particular motivation for the cap of 127? IMHO 127 ACKs is
>> quite
>> > > a few to compress. Experience seems to show that it works well to have
>> one
>> > > GRO ACK for ~64KBytes that triggers a single TSO skb of ~64KBytes. It
>> might
>> > > be nice to try to match those dynamics in this SACK compression case,
>> so it
>> > > might be nice to cap the number of compressed ACKs at something like 44?
>> > > (0xffff / 1448 - 1). That way for high-speed paths we could try to keep
>> > > the ACK clock going with ACKs for ~64KBytes that trigger a single TSO
>> skb
>> > > of ~64KBytes, no matter whether we are sending SACKs or cumulative ACKs.
>>
>> > 127 was chosen because the field is u8, and since skb allocation for the
>> ACK
>> > can fail, we could have cases were the field goes above 127.
>>
>> > Ultimately, I believe a followup patch would add a sysctl, so that we can
>> fine-tune
>> > this, and eventually disable ACK compression if this sysctl is set to 0
>>
>> OK, a sysctl sounds good. I would still vote for a default of 44. :-)
>>
>>
>> > >> + if (hrtimer_is_queued(&tp->compressed_ack_timer))
>> > >> + return;
>> > >> +
>> > >> + /* compress ack timer : 5 % of srtt, but no more than 2.5 ms */
>> > >> +
>> > >> + delay = min_t(unsigned long, 2500 * NSEC_PER_USEC,
>> > >> + tp->rcv_rtt_est.rtt_us * (NSEC_PER_USEC >>
>> 3)/20);
>> > >
>> > > Any particular motivation for the 2.5ms here? It might be nice to match
>> the
>> > > existing TSO autosizing dynamics and use 1ms here instead of having a
>> > > separate new constant of 2.5ms. Smaller time scales here should lead to
>> > > less burstiness and queue pressure from data packets in the network,
>> and we
>> > > know from experience that the CPU overhead of 1ms chunks is acceptable.
>>
>> > This came from my tests on wifi really :)
>>
>> > I also had the idea to make this threshold adjustable for wifi, like we
>> did for sk_pacing_shift.
>>
>> > (On wifi, we might want to increase the max delay between ACK)
>>
>> > So maybe use 1ms delay, when sk_pacing_shift == 10, but increase it if
>> sk_pacing_shift has been lowered.
>>
>> Sounds good to me.
>>
>> Thanks for implementing this! Overall this patch seems nice to me.
>>
>> Acked-by: Neal Cardwell <ncardwell@google.com>
>>
>> BTW, I guess we should spread the word to maintainers of other major TCP
>> stacks that they need to be prepared for what may be a much higher degree
>> of compression/aggregation in the SACK stream. Linux stacks going back many
>> years should be fine with this, but I'm not sure about the other major OSes
>> (they may only allow sending one MSS per ACK-with-SACKs received).
> Patch looks really good but Neal's comment just reminds me a potential
> legacy issue.
>
> I recall at least Apple and Windows TCP stacks still need 3+ DUPACKs
> (!= a SACK covering 3+ packets) to trigger fast recovery. Will we have
> an issue there interacting w/ these stacks?
Offline chat w/ Eric: actually the problem already exists with GRO: a
Linux receiver could receive a OOO skb of say 5 pkts and returns one
(DUP)ACK w/ sack option covering 5 pkts.
Since no issues have been reported my concern is probably not big
deal. Hopefully other stacks can improve their sack / recovery
handling there.
>
>>
>> neal
^ permalink raw reply
* Re: [PATCH v3 2/2] bpf: add selftest for rawir_event type program
From: Y Song @ 2018-05-17 17:17 UTC (permalink / raw)
To: Sean Young
Cc: linux-media, linux-kernel, Alexei Starovoitov,
Mauro Carvalho Chehab, Daniel Borkmann, netdev, Matthias Reichl,
Devin Heitmueller
In-Reply-To: <78945f2bf82e9f16695f72bed3930d1302d38e29.1526504511.git.sean@mess.org>
On Wed, May 16, 2018 at 2:04 PM, Sean Young <sean@mess.org> wrote:
> This is simple test over rc-loopback.
>
> Signed-off-by: Sean Young <sean@mess.org>
> ---
> tools/bpf/bpftool/prog.c | 1 +
> tools/include/uapi/linux/bpf.h | 57 +++++++-
> tools/lib/bpf/libbpf.c | 1 +
> tools/testing/selftests/bpf/Makefile | 8 +-
> tools/testing/selftests/bpf/bpf_helpers.h | 6 +
> tools/testing/selftests/bpf/test_rawir.sh | 37 +++++
> .../selftests/bpf/test_rawir_event_kern.c | 26 ++++
> .../selftests/bpf/test_rawir_event_user.c | 130 ++++++++++++++++++
> 8 files changed, 261 insertions(+), 5 deletions(-)
> create mode 100755 tools/testing/selftests/bpf/test_rawir.sh
> create mode 100644 tools/testing/selftests/bpf/test_rawir_event_kern.c
> create mode 100644 tools/testing/selftests/bpf/test_rawir_event_user.c
Could you copy include/uapi/linux/lirc.h file to tools directory as well.
Otherwise, I will get the following compilation error:
gcc -Wall -O2 -I../../../include/uapi -I../../../lib
-I../../../lib/bpf -I../../../../include/generated -I../../../include
test_rawir_event_user.c
/home/yhs/work/bpf-next/tools/testing/selftests/bpf/libbpf.a -lcap
-lelf -lrt -lpthread -o
/home/yhs/work/bpf-next/tools/testing/selftests/bpf/test_rawir_event_user
test_rawir_event_user.c: In function ‘main’:
test_rawir_event_user.c:60:15: error: ‘LIRC_MODE_SCANCODE’ undeclared
(first use in this function); did you mean ‘LIRC_MODE_LIRCCODE’?
mode = LIRC_MODE_SCANCODE;
^~~~~~~~~~~~~~~~~~
LIRC_MODE_LIRCCODE
test_rawir_event_user.c:60:15: note: each undeclared identifier is
reported only once for each function it appears in
test_rawir_event_user.c:93:29: error: storage size of ‘lsc’ isn’t known
struct lirc_scancode lsc;
^~~
test_rawir_event_user.c:93:29: warning: unused variable ‘lsc’
[-Wunused-variable]
>
> diff --git a/tools/bpf/bpftool/prog.c b/tools/bpf/bpftool/prog.c
> index 9bdfdf2d3fbe..8889a4ee8577 100644
> --- a/tools/bpf/bpftool/prog.c
> +++ b/tools/bpf/bpftool/prog.c
> @@ -71,6 +71,7 @@ static const char * const prog_type_name[] = {
> [BPF_PROG_TYPE_SK_MSG] = "sk_msg",
> [BPF_PROG_TYPE_RAW_TRACEPOINT] = "raw_tracepoint",
> [BPF_PROG_TYPE_CGROUP_SOCK_ADDR] = "cgroup_sock_addr",
> + [BPF_PROG_TYPE_RAWIR_EVENT] = "rawir_event",
> };
>
> static void print_boot_time(__u64 nsecs, char *buf, unsigned int size)
> diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h
> index 1205d86a7a29..243e141e8a5b 100644
> --- a/tools/include/uapi/linux/bpf.h
> +++ b/tools/include/uapi/linux/bpf.h
> @@ -141,6 +141,7 @@ enum bpf_prog_type {
> BPF_PROG_TYPE_SK_MSG,
> BPF_PROG_TYPE_RAW_TRACEPOINT,
> BPF_PROG_TYPE_CGROUP_SOCK_ADDR,
> + BPF_PROG_TYPE_RAWIR_EVENT,
> };
>
> enum bpf_attach_type {
> @@ -158,6 +159,7 @@ enum bpf_attach_type {
> BPF_CGROUP_INET6_CONNECT,
> BPF_CGROUP_INET4_POST_BIND,
> BPF_CGROUP_INET6_POST_BIND,
> + BPF_RAWIR_EVENT,
> __MAX_BPF_ATTACH_TYPE
> };
>
> @@ -1829,7 +1831,6 @@ union bpf_attr {
> * Return
> * 0 on success, or a negative error in case of failure.
> *
> - *
> * int bpf_fib_lookup(void *ctx, struct bpf_fib_lookup *params, int plen, u32 flags)
> * Description
> * Do FIB lookup in kernel tables using parameters in *params*.
> @@ -1856,6 +1857,7 @@ union bpf_attr {
> * Egress device index on success, 0 if packet needs to continue
> * up the stack for further processing or a negative error in case
> * of failure.
> + *
> * int bpf_sock_hash_update(struct bpf_sock_ops_kern *skops, struct bpf_map *map, void *key, u64 flags)
> * Description
> * Add an entry to, or update a sockhash *map* referencing sockets.
> @@ -1902,6 +1904,35 @@ union bpf_attr {
> * egress otherwise). This is the only flag supported for now.
> * Return
> * **SK_PASS** on success, or **SK_DROP** on error.
> + *
> + * int bpf_rc_keydown(void *ctx, u32 protocol, u32 scancode, u32 toggle)
> + * Description
> + * Report decoded scancode with toggle value. For use in
> + * BPF_PROG_TYPE_RAWIR_EVENT, to report a successfully
> + * decoded scancode. This is will generate a keydown event,
> + * and a keyup event once the scancode is no longer repeated.
> + *
> + * *ctx* pointer to bpf_rawir_event, *protocol* is decoded
> + * protocol (see RC_PROTO_* enum).
> + *
> + * Some protocols include a toggle bit, in case the button
> + * was released and pressed again between consecutive scancodes,
> + * copy this bit into *toggle* if it exists, else set to 0.
> + *
> + * Return
> + * Always return 0 (for now)
> + *
> + * int bpf_rc_repeat(void *ctx)
> + * Description
> + * Repeat the last decoded scancode; some IR protocols like
> + * NEC have a special IR message for repeat last button,
> + * in case user is holding a button down; the scancode is
> + * not repeated.
> + *
> + * *ctx* pointer to bpf_rawir_event.
> + *
> + * Return
> + * Always return 0 (for now)
> */
> #define __BPF_FUNC_MAPPER(FN) \
> FN(unspec), \
> @@ -1976,7 +2007,9 @@ union bpf_attr {
> FN(fib_lookup), \
> FN(sock_hash_update), \
> FN(msg_redirect_hash), \
> - FN(sk_redirect_hash),
> + FN(sk_redirect_hash), \
> + FN(rc_repeat), \
> + FN(rc_keydown),
>
> /* integer value in 'imm' field of BPF_CALL instruction selects which helper
> * function eBPF program intends to call
> @@ -2043,6 +2076,26 @@ enum bpf_hdr_start_off {
> BPF_HDR_START_NET,
> };
>
> +/*
> + * user accessible mirror of in-kernel ir_raw_event
> + */
> +#define BPF_RAWIR_EVENT_SPACE 0
> +#define BPF_RAWIR_EVENT_PULSE 1
> +#define BPF_RAWIR_EVENT_TIMEOUT 2
> +#define BPF_RAWIR_EVENT_RESET 3
> +#define BPF_RAWIR_EVENT_CARRIER 4
> +#define BPF_RAWIR_EVENT_DUTY_CYCLE 5
> +
> +struct bpf_rawir_event {
> + union {
> + __u32 duration;
> + __u32 carrier;
> + __u32 duty_cycle;
> + };
> +
> + __u32 type;
> +};
> +
> /* user accessible mirror of in-kernel sk_buff.
> * new fields can only be added to the end of this structure
> */
> diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c
> index df54c4c9e48a..372269e9053d 100644
> --- a/tools/lib/bpf/libbpf.c
> +++ b/tools/lib/bpf/libbpf.c
> @@ -1455,6 +1455,7 @@ static bool bpf_prog_type__needs_kver(enum bpf_prog_type type)
> case BPF_PROG_TYPE_CGROUP_DEVICE:
> case BPF_PROG_TYPE_SK_MSG:
> case BPF_PROG_TYPE_CGROUP_SOCK_ADDR:
> + case BPF_PROG_TYPE_RAWIR_EVENT:
> return false;
> case BPF_PROG_TYPE_UNSPEC:
> case BPF_PROG_TYPE_KPROBE:
> diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile
> index 1eb0fa2aba92..b84e36d05d34 100644
> --- a/tools/testing/selftests/bpf/Makefile
> +++ b/tools/testing/selftests/bpf/Makefile
> @@ -24,7 +24,7 @@ urandom_read: urandom_read.c
> # Order correspond to 'make run_tests' order
> TEST_GEN_PROGS = test_verifier test_tag test_maps test_lru_map test_lpm_map test_progs \
> test_align test_verifier_log test_dev_cgroup test_tcpbpf_user \
> - test_sock test_btf test_sockmap
> + test_sock test_btf test_sockmap test_rawir_event_user
>
> TEST_GEN_FILES = test_pkt_access.o test_xdp.o test_l4lb.o test_tcp_estats.o test_obj_id.o \
> test_pkt_md_access.o test_xdp_redirect.o test_xdp_meta.o sockmap_parse_prog.o \
> @@ -33,7 +33,8 @@ TEST_GEN_FILES = test_pkt_access.o test_xdp.o test_l4lb.o test_tcp_estats.o test
> sample_map_ret0.o test_tcpbpf_kern.o test_stacktrace_build_id.o \
> sockmap_tcp_msg_prog.o connect4_prog.o connect6_prog.o test_adjust_tail.o \
> test_btf_haskv.o test_btf_nokv.o test_sockmap_kern.o test_tunnel_kern.o \
> - test_get_stack_rawtp.o test_sockmap_kern.o test_sockhash_kern.o
> + test_get_stack_rawtp.o test_sockmap_kern.o test_sockhash_kern.o \
> + test_rawir_event_kern.o
>
> # Order correspond to 'make run_tests' order
> TEST_PROGS := test_kmod.sh \
> @@ -42,7 +43,8 @@ TEST_PROGS := test_kmod.sh \
> test_xdp_meta.sh \
> test_offload.py \
> test_sock_addr.sh \
> - test_tunnel.sh
> + test_tunnel.sh \
> + test_rawir.sh
>
> # Compile but not part of 'make run_tests'
> TEST_GEN_PROGS_EXTENDED = test_libbpf_open test_sock_addr
> diff --git a/tools/testing/selftests/bpf/bpf_helpers.h b/tools/testing/selftests/bpf/bpf_helpers.h
> index 8f143dfb3700..26d89b7f9841 100644
> --- a/tools/testing/selftests/bpf/bpf_helpers.h
> +++ b/tools/testing/selftests/bpf/bpf_helpers.h
> @@ -114,6 +114,12 @@ static int (*bpf_get_stack)(void *ctx, void *buf, int size, int flags) =
> static int (*bpf_fib_lookup)(void *ctx, struct bpf_fib_lookup *params,
> int plen, __u32 flags) =
> (void *) BPF_FUNC_fib_lookup;
> +static int (*bpf_rc_repeat)(void *ctx) =
> + (void *) BPF_FUNC_rc_repeat;
> +static int (*bpf_rc_keydown)(void *ctx, unsigned int protocol,
> + unsigned int scancode, unsigned int toggle) =
> + (void *) BPF_FUNC_rc_keydown;
> +
>
> /* llvm builtin functions that eBPF C program may use to
> * emit BPF_LD_ABS and BPF_LD_IND instructions
> diff --git a/tools/testing/selftests/bpf/test_rawir.sh b/tools/testing/selftests/bpf/test_rawir.sh
> new file mode 100755
> index 000000000000..0aa77b043ee1
> --- /dev/null
> +++ b/tools/testing/selftests/bpf/test_rawir.sh
> @@ -0,0 +1,37 @@
> +#!/bin/bash
> +# SPDX-License-Identifier: GPL-2.0
> +
> +# Test bpf_rawir_event over rc-loopback. Steps for the test:
> +#
> +# 1. Find the /dev/lircN device for rc-loopback
> +# 2. Attach bpf_rawir_event program which decodes some IR.
> +# 3. Send some IR to the same IR device; since it is loopback, this will
> +# end up in the bpf program
> +# 4. bpf program should decode IR and report keycode
> +# 5. We can read keycode from same /dev/lirc device
> +
> +GREEN='\033[0;92m'
> +RED='\033[0;31m'
> +NC='\033[0m' # No Color
> +
> +modprobe rc-loopback
> +
> +for i in /sys/class/rc/rc*
> +do
> + if grep -q DRV_NAME=rc-loopback $i/uevent
> + then
> + LIRCDEV=$(grep DEVNAME= $i/lirc*/uevent | sed sQDEVNAME=Q/dev/Q)
> + fi
> +done
> +
> +if [ -n $LIRCDEV ];
> +then
> + TYPE=rawir_event
> + ./test_rawir_event_user $LIRCDEV
> + ret=$?
> + if [ $ret -ne 0 ]; then
> + echo -e ${RED}"FAIL: $TYPE"${NC}
> + else
> + echo -e ${GREEN}"PASS: $TYPE"${NC}
> + fi
> +fi
> diff --git a/tools/testing/selftests/bpf/test_rawir_event_kern.c b/tools/testing/selftests/bpf/test_rawir_event_kern.c
> new file mode 100644
> index 000000000000..33ba5d30af62
> --- /dev/null
> +++ b/tools/testing/selftests/bpf/test_rawir_event_kern.c
> @@ -0,0 +1,26 @@
> +// SPDX-License-Identifier: GPL-2.0
> +// test ir decoder
> +//
> +// Copyright (C) 2018 Sean Young <sean@mess.org>
> +
> +#include <linux/bpf.h>
> +#include "bpf_helpers.h"
> +
> +SEC("rawir_event")
> +int bpf_decoder(struct bpf_rawir_event *e)
> +{
> + if (e->type == BPF_RAWIR_EVENT_PULSE) {
> + /*
> + * The lirc interface is microseconds, but here we receive
> + * nanoseconds.
> + */
> + int microseconds = e->duration / 1000;
> +
> + if (microseconds & 0x10000)
> + bpf_rc_keydown(e, 0x40, microseconds & 0xffff, 0);
> + }
> +
> + return 0;
> +}
> +
> +char _license[] SEC("license") = "GPL";
> diff --git a/tools/testing/selftests/bpf/test_rawir_event_user.c b/tools/testing/selftests/bpf/test_rawir_event_user.c
> new file mode 100644
> index 000000000000..c3d7f2c68033
> --- /dev/null
> +++ b/tools/testing/selftests/bpf/test_rawir_event_user.c
> @@ -0,0 +1,130 @@
> +// SPDX-License-Identifier: GPL-2.0
> +// test ir decoder
> +//
> +// Copyright (C) 2018 Sean Young <sean@mess.org>
> +
> +#include <linux/bpf.h>
> +#include <linux/lirc.h>
> +#include <assert.h>
> +#include <errno.h>
> +#include <signal.h>
> +#include <stdio.h>
> +#include <stdlib.h>
> +#include <stdbool.h>
> +#include <string.h>
> +#include <unistd.h>
> +#include <poll.h>
> +#include <libgen.h>
> +#include <sys/resource.h>
> +#include <sys/types.h>
> +#include <sys/ioctl.h>
> +#include <sys/stat.h>
> +#include <fcntl.h>
> +
> +#include "bpf_util.h"
> +#include <bpf/bpf.h>
> +#include <bpf/libbpf.h>
> +
> +int main(int argc, char **argv)
> +{
> + struct bpf_object *obj;
> + int ret, lircfd, progfd, mode;
> + int testir = 0x1dead;
> + u32 prog_ids[10], prog_flags[10], prog_cnt;
> +
> + if (argc != 2) {
> + printf("Usage: %s /dev/lircN\n", argv[0]);
Most people probably not really familiar with lircN device. It would be
good to provide more information about how to enable this, e.g.,
CONFIG_RC_CORE=y
CONFIG_BPF_RAWIR_EVENT=y
CONFIG_RC_LOOPBACK=y
......
Thanks!
^ permalink raw reply
* Re: [PATCH net v2] net: test tailroom before appending to linear skb
From: Eric Dumazet @ 2018-05-17 17:18 UTC (permalink / raw)
To: Willem de Bruijn, netdev; +Cc: davem, Willem de Bruijn
In-Reply-To: <20180517171329.201710-1-willemdebruijn.kernel@gmail.com>
On 05/17/2018 10:13 AM, Willem de Bruijn wrote:
> From: Willem de Bruijn <willemb@google.com>
>
> Device features may change during transmission. In particular with
> corking, a device may toggle scatter-gather in between allocating
> and writing to an skb.
>
> Do not unconditionally assume that !NETIF_F_SG at write time implies
> that the same held at alloc time and thus the skb has sufficient
> tailroom.
>
> This issue predates git history.
>
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> Reported-by: Eric Dumazet <edumazet@google.com>
> Signed-off-by: Willem de Bruijn <willemb@google.com>
>
Reviewed-by: Eric Dumazet <edumazet@google.com>
^ permalink raw reply
* Re: [PATCH 2/2] bpf: sockmap, fix double-free
From: John Fastabend @ 2018-05-17 17:26 UTC (permalink / raw)
To: Gustavo A. R. Silva, Alexei Starovoitov, Daniel Borkmann
Cc: netdev, linux-kernel
In-Reply-To: <96e7f5e59eacddc5e32abb72b7686c3e9163a410.1526565461.git.gustavo@embeddedor.com>
On 05/17/2018 07:11 AM, Gustavo A. R. Silva wrote:
> `e' is being freed twice.
>
> Fix this by removing one of the kfree() calls.
>
> Addresses-Coverity-ID: 1468983 ("Double free")
> Fixes: 81110384441a ("bpf: sockmap, add hash map support")
> Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
> ---
> kernel/bpf/sockmap.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/kernel/bpf/sockmap.c b/kernel/bpf/sockmap.c
> index 41b41fc..c682669 100644
> --- a/kernel/bpf/sockmap.c
> +++ b/kernel/bpf/sockmap.c
> @@ -1823,7 +1823,6 @@ static int __sock_map_ctx_update_elem(struct bpf_map *map,
> write_unlock_bh(&sock->sk_callback_lock);
> return err;
> out_free:
> - kfree(e);
> smap_release_sock(psock, sock);
> out_progs:
> if (verdict)
>
Thanks. This can happen when a user tries to add a kTLS socket to a
sockmap. We need to add some tests for kTLS + sockmap cases.
Acked-by: John Fastabend <john.fastabend@gmail.com>
^ permalink raw reply
* Re: [PATCH 1/2] bpf: sockmap, fix uninitialized variable
From: John Fastabend @ 2018-05-17 17:27 UTC (permalink / raw)
To: Gustavo A. R. Silva, Alexei Starovoitov, Daniel Borkmann
Cc: netdev, linux-kernel
In-Reply-To: <11073635016901e9e84c2f34f20d412073b26297.1526565461.git.gustavo@embeddedor.com>
On 05/17/2018 07:08 AM, Gustavo A. R. Silva wrote:
> There is a potential execution path in which variable err is
> returned without being properly initialized previously.
>
> Fix this by initializing variable err to 0.
>
> Addresses-Coverity-ID: 1468964 ("Uninitialized scalar variable")
> Fixes: e5cd3abcb31a ("bpf: sockmap, refactor sockmap routines to work
> with hashmap")
> Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
> ---
> kernel/bpf/sockmap.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/kernel/bpf/sockmap.c b/kernel/bpf/sockmap.c
> index c6de139..41b41fc 100644
> --- a/kernel/bpf/sockmap.c
> +++ b/kernel/bpf/sockmap.c
> @@ -1713,7 +1713,7 @@ static int __sock_map_ctx_update_elem(struct bpf_map *map,
> struct smap_psock_map_entry *e = NULL;
> struct smap_psock *psock;
> bool new = false;
> - int err;
> + int err = 0;
>
> /* 1. If sock map has BPF programs those will be inherited by the
> * sock being added. If the sock is already attached to BPF programs
>
Thanks for catching this and the quick fix. The path to hit this case
is to add a sock to a map (without a BPF program) where the sock already
has been added to another map. I don't have any tests for the case with
socks in multiple maps so I'll add some to the selftests so I remember
this case.
The alternative fix would be to always 'return 0' at the end of the
function, but I think its probably better to init err here like above.
Acked-by: John Fastabend <john.fastabend@gmail.com>
^ permalink raw reply
* Re: [patch net-next RFC 04/12] dsa: set devlink port attrs for dsa ports
From: Jiri Pirko @ 2018-05-17 17:39 UTC (permalink / raw)
To: Florian Fainelli
Cc: Andrew Lunn, netdev, davem, idosch, jakub.kicinski, mlxsw,
vivien.didelot, michael.chan, ganeshgr, saeedm, simon.horman,
pieter.jansenvanvuuren, john.hurley, dirk.vandermerwe,
alexander.h.duyck, ogerlitz, dsahern, vijaya.guvva,
satananda.burla, raghu.vatsavayi, felix.manlunas, gospo,
sathya.perla, vasundhara-v.volam, tariqt, eranbe,
jeffrey.t.kirsher
In-Reply-To: <4ba82a94-18c9-e5bb-8e96-11af8cfefa73@gmail.com>
Thu, May 17, 2018 at 04:51:17PM CEST, f.fainelli@gmail.com wrote:
>
>
>On 05/17/2018 07:30 AM, Jiri Pirko wrote:
>> Thu, May 17, 2018 at 04:08:10PM CEST, f.fainelli@gmail.com wrote:
>>>
>>>
>>> On 05/17/2018 07:02 AM, Jiri Pirko wrote:
>>>> Fri, Mar 23, 2018 at 06:09:29PM CET, f.fainelli@gmail.com wrote:
>>>>> On 03/23/2018 07:49 AM, Jiri Pirko wrote:
>>>>>> Fri, Mar 23, 2018 at 02:30:02PM CET, andrew@lunn.ch wrote:
>>>>>>> On Thu, Mar 22, 2018 at 11:55:14AM +0100, Jiri Pirko wrote:
>>>>>>>> From: Jiri Pirko <jiri@mellanox.com>
>>>>>>>>
>>>>>>>> Set the attrs and allow to expose port flavour to user via devlink.
>>>>>>>>
>>>>>>>> Signed-off-by: Jiri Pirko <jiri@mellanox.com>
>>>>>>>> ---
>>>>>>>> net/dsa/dsa2.c | 23 +++++++++++++++++++++++
>>>>>>>> 1 file changed, 23 insertions(+)
>>>>>>>>
>>>>>>>> diff --git a/net/dsa/dsa2.c b/net/dsa/dsa2.c
>>>>>>>> index adf50fbc4c13..49453690696d 100644
>>>>>>>> --- a/net/dsa/dsa2.c
>>>>>>>> +++ b/net/dsa/dsa2.c
>>>>>>>> @@ -270,7 +270,27 @@ static int dsa_port_setup(struct dsa_port *dp)
>>>>>>>> case DSA_PORT_TYPE_UNUSED:
>>>>>>>> break;
>>>>>>>> case DSA_PORT_TYPE_CPU:
>>>>>>>> + /* dp->index is used now as port_number. However
>>>>>>>> + * CPU ports should have separate numbering
>>>>>>>> + * independent from front panel port numbers.
>>>>>>>> + */
>>>>>>>> + devlink_port_attrs_set(&dp->devlink_port,
>>>>>>>> + DEVLINK_PORT_FLAVOUR_CPU,
>>>>>>>> + dp->index, false, 0);
>>>>>>>> + err = dsa_port_link_register_of(dp);
>>>>>>>> + if (err) {
>>>>>>>> + dev_err(ds->dev, "failed to setup link for port %d.%d\n",
>>>>>>>> + ds->index, dp->index);
>>>>>>>> + return err;
>>>>>>>> + }
>>>>>>>
>>>>>>> Ah, i get it. These used to be two case statements with one code
>>>>>>> block. But you split them apart, so needed to duplicate the
>>>>>>> dsa_port_link_register.
>>>>>>>
>>>>>>> Unfortunately, you forgot to add a 'break;', so it still falls
>>>>>>> through, and overwrites the port flavour to DSA.
>>>>>>
>>>>>> ah, crap. Don't have hw to test this :/
>>>>>> Will fix. Thanks!
>>>>>
>>>>> You don't need hardware, there is drivers/net/dsa/dsa_loop.c which will
>>>>> emulate a DSA switch. It won't create interconnect ports, since only one
>>>>
>>>> Hmm, trying to use dsa_loop. Doing:
>>>> modprobe dsa_loop
>>>> modprobe fixed_phy
>>>>
>>>> I don't see the netdevs. Any idea what am I doing wrong? Thanks!
>>>
>>> Yes, modprobe dsa-loop-bdinfo first, which will create the
>>
>> That is compiled inside "fixed_phy", isn't it?
>
>It matches what CONFIG_FIXED_PHY is, so if it's built-in it also becomes
>built-in, if is modular, it is also modular, this was fixed with
>40013ff20b1beed31184935fc0aea6a859d4d4ef ("net: dsa: Fix functional
>dsa-loop dependency on FIXED_PHY")
Now I have it compiled as module, and after modprobe dsa_loop I see:
[ 1168.129202] libphy: Fixed MDIO Bus: probed
[ 1168.222716] dsa-loop fixed-0:1f: DSA mockup driver: 0x1f
This messages I did not see when I had fixed_phy compiled as buildin.
But I still see no netdevs :/
>
>> In my case, "Module fixed_phy is builtin"
>> So it should be enough just to "modprobe dsa_loop", right? That does not
>> work :/
>
>There is a caveat that if you have everything modular, if you loaded
>fixed_phy first, and forgot to load dsa-loop-bdinfo, then nothing will
>happen because the MDIO bus was created and there were no matching devices.
>
>Send me your .config and I will take a look. Attached is mine (64Bit x86
>VM), start with:
>--
>Florian
>#
># Automatically generated file; DO NOT EDIT.
># Linux/x86 4.15.0-rc2 Kernel Configuration
>#
>CONFIG_64BIT=y
>CONFIG_X86_64=y
>CONFIG_X86=y
>CONFIG_INSTRUCTION_DECODER=y
>CONFIG_OUTPUT_FORMAT="elf64-x86-64"
>CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"
>CONFIG_LOCKDEP_SUPPORT=y
>CONFIG_STACKTRACE_SUPPORT=y
>CONFIG_MMU=y
>CONFIG_ARCH_MMAP_RND_BITS_MIN=28
>CONFIG_ARCH_MMAP_RND_BITS_MAX=32
>CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8
>CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16
>CONFIG_NEED_DMA_MAP_STATE=y
>CONFIG_NEED_SG_DMA_LENGTH=y
>CONFIG_GENERIC_ISA_DMA=y
>CONFIG_GENERIC_BUG=y
>CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y
>CONFIG_GENERIC_HWEIGHT=y
>CONFIG_ARCH_MAY_HAVE_PC_FDC=y
>CONFIG_RWSEM_XCHGADD_ALGORITHM=y
>CONFIG_GENERIC_CALIBRATE_DELAY=y
>CONFIG_ARCH_HAS_CPU_RELAX=y
>CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y
>CONFIG_HAVE_SETUP_PER_CPU_AREA=y
>CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y
>CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y
>CONFIG_ARCH_HIBERNATION_POSSIBLE=y
>CONFIG_ARCH_SUSPEND_POSSIBLE=y
>CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y
>CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
>CONFIG_ZONE_DMA32=y
>CONFIG_AUDIT_ARCH=y
>CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y
>CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
>CONFIG_X86_64_SMP=y
>CONFIG_ARCH_SUPPORTS_UPROBES=y
>CONFIG_FIX_EARLYCON_MEM=y
>CONFIG_PGTABLE_LEVELS=4
>CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
>CONFIG_IRQ_WORK=y
>CONFIG_BUILDTIME_EXTABLE_SORT=y
>CONFIG_THREAD_INFO_IN_TASK=y
>
>#
># General setup
>#
>CONFIG_INIT_ENV_ARG_LIMIT=32
>CONFIG_CROSS_COMPILE=""
># CONFIG_COMPILE_TEST is not set
>CONFIG_LOCALVERSION=""
>CONFIG_LOCALVERSION_AUTO=y
>CONFIG_HAVE_KERNEL_GZIP=y
>CONFIG_HAVE_KERNEL_BZIP2=y
>CONFIG_HAVE_KERNEL_LZMA=y
>CONFIG_HAVE_KERNEL_XZ=y
>CONFIG_HAVE_KERNEL_LZO=y
>CONFIG_HAVE_KERNEL_LZ4=y
># CONFIG_KERNEL_GZIP is not set
># CONFIG_KERNEL_BZIP2 is not set
># CONFIG_KERNEL_LZMA is not set
>CONFIG_KERNEL_XZ=y
># CONFIG_KERNEL_LZO is not set
># CONFIG_KERNEL_LZ4 is not set
>CONFIG_DEFAULT_HOSTNAME="(none)"
>CONFIG_SWAP=y
>CONFIG_SYSVIPC=y
>CONFIG_SYSVIPC_SYSCTL=y
>CONFIG_POSIX_MQUEUE=y
>CONFIG_POSIX_MQUEUE_SYSCTL=y
>CONFIG_CROSS_MEMORY_ATTACH=y
># CONFIG_USELIB is not set
># CONFIG_AUDIT is not set
>CONFIG_HAVE_ARCH_AUDITSYSCALL=y
>
>#
># IRQ subsystem
>#
>CONFIG_GENERIC_IRQ_PROBE=y
>CONFIG_GENERIC_IRQ_SHOW=y
>CONFIG_GENERIC_IRQ_EFFECTIVE_AFF_MASK=y
>CONFIG_GENERIC_PENDING_IRQ=y
>CONFIG_GENERIC_IRQ_MIGRATION=y
>CONFIG_IRQ_DOMAIN=y
>CONFIG_IRQ_DOMAIN_HIERARCHY=y
>CONFIG_GENERIC_MSI_IRQ=y
>CONFIG_GENERIC_MSI_IRQ_DOMAIN=y
>CONFIG_GENERIC_IRQ_MATRIX_ALLOCATOR=y
>CONFIG_GENERIC_IRQ_RESERVATION_MODE=y
># CONFIG_IRQ_DOMAIN_DEBUG is not set
>CONFIG_IRQ_FORCED_THREADING=y
>CONFIG_SPARSE_IRQ=y
># CONFIG_GENERIC_IRQ_DEBUGFS is not set
>CONFIG_CLOCKSOURCE_WATCHDOG=y
>CONFIG_ARCH_CLOCKSOURCE_DATA=y
>CONFIG_CLOCKSOURCE_VALIDATE_LAST_CYCLE=y
>CONFIG_GENERIC_TIME_VSYSCALL=y
>CONFIG_GENERIC_CLOCKEVENTS=y
>CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
>CONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=y
>CONFIG_GENERIC_CMOS_UPDATE=y
>
>#
># Timers subsystem
>#
>CONFIG_TICK_ONESHOT=y
>CONFIG_NO_HZ_COMMON=y
># CONFIG_HZ_PERIODIC is not set
>CONFIG_NO_HZ_IDLE=y
># CONFIG_NO_HZ_FULL is not set
>CONFIG_NO_HZ=y
>CONFIG_HIGH_RES_TIMERS=y
>
>#
># CPU/Task time and stats accounting
>#
>CONFIG_TICK_CPU_ACCOUNTING=y
># CONFIG_VIRT_CPU_ACCOUNTING_GEN is not set
>CONFIG_IRQ_TIME_ACCOUNTING=y
># CONFIG_BSD_PROCESS_ACCT is not set
># CONFIG_TASKSTATS is not set
># CONFIG_CPU_ISOLATION is not set
>
>#
># RCU Subsystem
>#
>CONFIG_TREE_RCU=y
># CONFIG_RCU_EXPERT is not set
>CONFIG_SRCU=y
>CONFIG_TREE_SRCU=y
># CONFIG_TASKS_RCU is not set
>CONFIG_RCU_STALL_COMMON=y
>CONFIG_RCU_NEED_SEGCBLIST=y
># CONFIG_BUILD_BIN2C is not set
># CONFIG_IKCONFIG is not set
>CONFIG_LOG_BUF_SHIFT=16
>CONFIG_LOG_CPU_MAX_BUF_SHIFT=12
>CONFIG_PRINTK_SAFE_LOG_BUF_SHIFT=13
>CONFIG_HAVE_UNSTABLE_SCHED_CLOCK=y
>CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=y
>CONFIG_ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH=y
>CONFIG_ARCH_SUPPORTS_INT128=y
>CONFIG_CGROUPS=y
># CONFIG_MEMCG is not set
># CONFIG_BLK_CGROUP is not set
># CONFIG_CGROUP_SCHED is not set
># CONFIG_CGROUP_PIDS is not set
># CONFIG_CGROUP_RDMA is not set
># CONFIG_CGROUP_FREEZER is not set
># CONFIG_CPUSETS is not set
># CONFIG_CGROUP_DEVICE is not set
># CONFIG_CGROUP_CPUACCT is not set
># CONFIG_CGROUP_PERF is not set
># CONFIG_CGROUP_DEBUG is not set
># CONFIG_SOCK_CGROUP_DATA is not set
># CONFIG_NAMESPACES is not set
># CONFIG_SCHED_AUTOGROUP is not set
># CONFIG_SYSFS_DEPRECATED is not set
>CONFIG_RELAY=y
>CONFIG_BLK_DEV_INITRD=y
>CONFIG_INITRAMFS_SOURCE=""
>CONFIG_RD_GZIP=y
>CONFIG_RD_BZIP2=y
>CONFIG_RD_LZMA=y
>CONFIG_RD_XZ=y
>CONFIG_RD_LZO=y
>CONFIG_RD_LZ4=y
>CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y
># CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
>CONFIG_SYSCTL=y
>CONFIG_ANON_INODES=y
>CONFIG_HAVE_UID16=y
>CONFIG_SYSCTL_EXCEPTION_TRACE=y
>CONFIG_HAVE_PCSPKR_PLATFORM=y
>CONFIG_BPF=y
>CONFIG_EXPERT=y
>CONFIG_UID16=y
>CONFIG_MULTIUSER=y
># CONFIG_SGETMASK_SYSCALL is not set
>CONFIG_SYSFS_SYSCALL=y
># CONFIG_SYSCTL_SYSCALL is not set
>CONFIG_FHANDLE=y
>CONFIG_POSIX_TIMERS=y
>CONFIG_PRINTK=y
>CONFIG_PRINTK_NMI=y
>CONFIG_BUG=y
>CONFIG_ELF_CORE=y
>CONFIG_PCSPKR_PLATFORM=y
>CONFIG_BASE_FULL=y
>CONFIG_FUTEX=y
>CONFIG_FUTEX_PI=y
>CONFIG_EPOLL=y
>CONFIG_SIGNALFD=y
>CONFIG_TIMERFD=y
>CONFIG_EVENTFD=y
>CONFIG_SHMEM=y
>CONFIG_AIO=y
>CONFIG_ADVISE_SYSCALLS=y
>CONFIG_MEMBARRIER=y
># CONFIG_CHECKPOINT_RESTORE is not set
>CONFIG_KALLSYMS=y
>CONFIG_KALLSYMS_ALL=y
>CONFIG_KALLSYMS_ABSOLUTE_PERCPU=y
>CONFIG_KALLSYMS_BASE_RELATIVE=y
># CONFIG_BPF_SYSCALL is not set
># CONFIG_USERFAULTFD is not set
>CONFIG_EMBEDDED=y
>CONFIG_HAVE_PERF_EVENTS=y
># CONFIG_PC104 is not set
>
>#
># Kernel Performance Events And Counters
>#
>CONFIG_PERF_EVENTS=y
># CONFIG_DEBUG_PERF_USE_VMALLOC is not set
>CONFIG_VM_EVENT_COUNTERS=y
>CONFIG_COMPAT_BRK=y
>CONFIG_SLAB=y
># CONFIG_SLUB is not set
># CONFIG_SLOB is not set
>CONFIG_SLAB_MERGE_DEFAULT=y
># CONFIG_SLAB_FREELIST_RANDOM is not set
>CONFIG_SYSTEM_DATA_VERIFICATION=y
># CONFIG_PROFILING is not set
>CONFIG_TRACEPOINTS=y
>CONFIG_HAVE_OPROFILE=y
>CONFIG_OPROFILE_NMI_TIMER=y
># CONFIG_KPROBES is not set
># CONFIG_JUMP_LABEL is not set
>CONFIG_UPROBES=y
># CONFIG_HAVE_64BIT_ALIGNED_ACCESS is not set
>CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y
>CONFIG_ARCH_USE_BUILTIN_BSWAP=y
>CONFIG_HAVE_IOREMAP_PROT=y
>CONFIG_HAVE_KPROBES=y
>CONFIG_HAVE_KRETPROBES=y
>CONFIG_HAVE_OPTPROBES=y
>CONFIG_HAVE_KPROBES_ON_FTRACE=y
>CONFIG_HAVE_NMI=y
>CONFIG_HAVE_ARCH_TRACEHOOK=y
>CONFIG_HAVE_DMA_CONTIGUOUS=y
>CONFIG_GENERIC_SMP_IDLE_THREAD=y
>CONFIG_ARCH_HAS_FORTIFY_SOURCE=y
>CONFIG_ARCH_HAS_SET_MEMORY=y
>CONFIG_ARCH_WANTS_DYNAMIC_TASK_STRUCT=y
>CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y
>CONFIG_HAVE_CLK=y
>CONFIG_HAVE_DMA_API_DEBUG=y
>CONFIG_HAVE_HW_BREAKPOINT=y
>CONFIG_HAVE_MIXED_BREAKPOINTS_REGS=y
>CONFIG_HAVE_USER_RETURN_NOTIFIER=y
>CONFIG_HAVE_PERF_EVENTS_NMI=y
>CONFIG_HAVE_HARDLOCKUP_DETECTOR_PERF=y
>CONFIG_HAVE_PERF_REGS=y
>CONFIG_HAVE_PERF_USER_STACK_DUMP=y
>CONFIG_HAVE_ARCH_JUMP_LABEL=y
>CONFIG_HAVE_RCU_TABLE_FREE=y
>CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=y
>CONFIG_HAVE_CMPXCHG_LOCAL=y
>CONFIG_HAVE_CMPXCHG_DOUBLE=y
>CONFIG_ARCH_WANT_COMPAT_IPC_PARSE_VERSION=y
>CONFIG_ARCH_WANT_OLD_COMPAT_IPC=y
>CONFIG_HAVE_ARCH_SECCOMP_FILTER=y
>CONFIG_HAVE_GCC_PLUGINS=y
># CONFIG_GCC_PLUGINS is not set
>CONFIG_HAVE_CC_STACKPROTECTOR=y
>CONFIG_CC_STACKPROTECTOR=y
># CONFIG_CC_STACKPROTECTOR_NONE is not set
>CONFIG_CC_STACKPROTECTOR_REGULAR=y
># CONFIG_CC_STACKPROTECTOR_STRONG is not set
>CONFIG_THIN_ARCHIVES=y
>CONFIG_HAVE_ARCH_WITHIN_STACK_FRAMES=y
>CONFIG_HAVE_CONTEXT_TRACKING=y
>CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y
>CONFIG_HAVE_IRQ_TIME_ACCOUNTING=y
>CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE=y
>CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD=y
>CONFIG_HAVE_ARCH_HUGE_VMAP=y
>CONFIG_HAVE_ARCH_SOFT_DIRTY=y
>CONFIG_HAVE_MOD_ARCH_SPECIFIC=y
>CONFIG_MODULES_USE_ELF_RELA=y
>CONFIG_HAVE_IRQ_EXIT_ON_IRQ_STACK=y
>CONFIG_ARCH_HAS_ELF_RANDOMIZE=y
>CONFIG_HAVE_ARCH_MMAP_RND_BITS=y
>CONFIG_HAVE_EXIT_THREAD=y
>CONFIG_ARCH_MMAP_RND_BITS=28
>CONFIG_HAVE_ARCH_MMAP_RND_COMPAT_BITS=y
>CONFIG_ARCH_MMAP_RND_COMPAT_BITS=8
>CONFIG_HAVE_ARCH_COMPAT_MMAP_BASES=y
>CONFIG_HAVE_COPY_THREAD_TLS=y
>CONFIG_HAVE_STACK_VALIDATION=y
># CONFIG_HAVE_ARCH_HASH is not set
># CONFIG_ISA_BUS_API is not set
>CONFIG_OLD_SIGSUSPEND3=y
>CONFIG_COMPAT_OLD_SIGACTION=y
># CONFIG_CPU_NO_EFFICIENT_FFS is not set
>CONFIG_HAVE_ARCH_VMAP_STACK=y
>CONFIG_VMAP_STACK=y
># CONFIG_ARCH_OPTIONAL_KERNEL_RWX is not set
># CONFIG_ARCH_OPTIONAL_KERNEL_RWX_DEFAULT is not set
>CONFIG_ARCH_HAS_STRICT_KERNEL_RWX=y
>CONFIG_STRICT_KERNEL_RWX=y
>CONFIG_ARCH_HAS_STRICT_MODULE_RWX=y
>CONFIG_STRICT_MODULE_RWX=y
>CONFIG_ARCH_HAS_REFCOUNT=y
># CONFIG_REFCOUNT_FULL is not set
>
>#
># GCOV-based kernel profiling
>#
># CONFIG_GCOV_KERNEL is not set
>CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
># CONFIG_HAVE_GENERIC_DMA_COHERENT is not set
>CONFIG_RT_MUTEXES=y
>CONFIG_BASE_SMALL=0
>CONFIG_MODULES=y
>CONFIG_MODULE_FORCE_LOAD=y
>CONFIG_MODULE_UNLOAD=y
># CONFIG_MODULE_FORCE_UNLOAD is not set
>CONFIG_MODVERSIONS=y
># CONFIG_MODULE_SRCVERSION_ALL is not set
># CONFIG_MODULE_SIG is not set
># CONFIG_MODULE_COMPRESS is not set
># CONFIG_TRIM_UNUSED_KSYMS is not set
>CONFIG_MODULES_TREE_LOOKUP=y
>CONFIG_BLOCK=y
>CONFIG_BLK_SCSI_REQUEST=y
>CONFIG_BLK_DEV_BSG=y
># CONFIG_BLK_DEV_BSGLIB is not set
># CONFIG_BLK_DEV_INTEGRITY is not set
># CONFIG_BLK_DEV_ZONED is not set
># CONFIG_BLK_CMDLINE_PARSER is not set
># CONFIG_BLK_WBT is not set
>CONFIG_BLK_DEBUG_FS=y
># CONFIG_BLK_SED_OPAL is not set
>
>#
># Partition Types
>#
>CONFIG_PARTITION_ADVANCED=y
># CONFIG_ACORN_PARTITION is not set
># CONFIG_AIX_PARTITION is not set
># CONFIG_OSF_PARTITION is not set
># CONFIG_AMIGA_PARTITION is not set
># CONFIG_ATARI_PARTITION is not set
># CONFIG_MAC_PARTITION is not set
>CONFIG_MSDOS_PARTITION=y
># CONFIG_BSD_DISKLABEL is not set
># CONFIG_MINIX_SUBPARTITION is not set
># CONFIG_SOLARIS_X86_PARTITION is not set
># CONFIG_UNIXWARE_DISKLABEL is not set
># CONFIG_LDM_PARTITION is not set
># CONFIG_SGI_PARTITION is not set
># CONFIG_ULTRIX_PARTITION is not set
># CONFIG_SUN_PARTITION is not set
># CONFIG_KARMA_PARTITION is not set
>CONFIG_EFI_PARTITION=y
># CONFIG_SYSV68_PARTITION is not set
># CONFIG_CMDLINE_PARTITION is not set
>CONFIG_BLOCK_COMPAT=y
>CONFIG_BLK_MQ_PCI=y
>
>#
># IO Schedulers
>#
>CONFIG_IOSCHED_NOOP=y
>CONFIG_IOSCHED_DEADLINE=y
>CONFIG_IOSCHED_CFQ=y
># CONFIG_DEFAULT_DEADLINE is not set
>CONFIG_DEFAULT_CFQ=y
># CONFIG_DEFAULT_NOOP is not set
>CONFIG_DEFAULT_IOSCHED="cfq"
>CONFIG_MQ_IOSCHED_DEADLINE=y
>CONFIG_MQ_IOSCHED_KYBER=y
># CONFIG_IOSCHED_BFQ is not set
>CONFIG_ASN1=y
>CONFIG_UNINLINE_SPIN_UNLOCK=y
>CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y
>CONFIG_MUTEX_SPIN_ON_OWNER=y
>CONFIG_RWSEM_SPIN_ON_OWNER=y
>CONFIG_LOCK_SPIN_ON_OWNER=y
>CONFIG_ARCH_USE_QUEUED_SPINLOCKS=y
>CONFIG_QUEUED_SPINLOCKS=y
>CONFIG_ARCH_USE_QUEUED_RWLOCKS=y
>CONFIG_QUEUED_RWLOCKS=y
># CONFIG_FREEZER is not set
>
>#
># Processor type and features
>#
>CONFIG_ZONE_DMA=y
>CONFIG_SMP=y
>CONFIG_X86_FEATURE_NAMES=y
>CONFIG_X86_FAST_FEATURE_TESTS=y
>CONFIG_X86_MPPARSE=y
># CONFIG_GOLDFISH is not set
># CONFIG_INTEL_RDT is not set
>CONFIG_X86_EXTENDED_PLATFORM=y
># CONFIG_X86_VSMP is not set
># CONFIG_X86_GOLDFISH is not set
># CONFIG_IOSF_MBI is not set
>CONFIG_X86_SUPPORTS_MEMORY_FAILURE=y
>CONFIG_SCHED_OMIT_FRAME_POINTER=y
># CONFIG_HYPERVISOR_GUEST is not set
>CONFIG_NO_BOOTMEM=y
># CONFIG_MK8 is not set
># CONFIG_MPSC is not set
># CONFIG_MCORE2 is not set
># CONFIG_MATOM is not set
>CONFIG_GENERIC_CPU=y
>CONFIG_X86_INTERNODE_CACHE_SHIFT=6
>CONFIG_X86_L1_CACHE_SHIFT=6
>CONFIG_X86_TSC=y
>CONFIG_X86_CMPXCHG64=y
>CONFIG_X86_CMOV=y
>CONFIG_X86_MINIMUM_CPU_FAMILY=64
>CONFIG_X86_DEBUGCTLMSR=y
># CONFIG_PROCESSOR_SELECT is not set
>CONFIG_CPU_SUP_INTEL=y
>CONFIG_CPU_SUP_AMD=y
>CONFIG_CPU_SUP_CENTAUR=y
>CONFIG_HPET_TIMER=y
>CONFIG_DMI=y
># CONFIG_GART_IOMMU is not set
># CONFIG_CALGARY_IOMMU is not set
>CONFIG_SWIOTLB=y
>CONFIG_IOMMU_HELPER=y
># CONFIG_MAXSMP is not set
>CONFIG_NR_CPUS=4
># CONFIG_SCHED_SMT is not set
># CONFIG_SCHED_MC is not set
>CONFIG_PREEMPT_NONE=y
># CONFIG_PREEMPT_VOLUNTARY is not set
># CONFIG_PREEMPT is not set
>CONFIG_PREEMPT_COUNT=y
>CONFIG_X86_LOCAL_APIC=y
>CONFIG_X86_IO_APIC=y
># CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS is not set
>CONFIG_X86_MCE=y
># CONFIG_X86_MCELOG_LEGACY is not set
>CONFIG_X86_MCE_INTEL=y
>CONFIG_X86_MCE_AMD=y
>CONFIG_X86_MCE_THRESHOLD=y
># CONFIG_X86_MCE_INJECT is not set
>CONFIG_X86_THERMAL_VECTOR=y
>
>#
># Performance monitoring
>#
>CONFIG_PERF_EVENTS_INTEL_UNCORE=y
>CONFIG_PERF_EVENTS_INTEL_RAPL=y
>CONFIG_PERF_EVENTS_INTEL_CSTATE=y
># CONFIG_PERF_EVENTS_AMD_POWER is not set
># CONFIG_VM86 is not set
>CONFIG_X86_16BIT=y
>CONFIG_X86_ESPFIX64=y
>CONFIG_X86_VSYSCALL_EMULATION=y
># CONFIG_I8K is not set
>CONFIG_MICROCODE=y
>CONFIG_MICROCODE_INTEL=y
># CONFIG_MICROCODE_AMD is not set
>CONFIG_MICROCODE_OLD_INTERFACE=y
># CONFIG_X86_MSR is not set
># CONFIG_X86_CPUID is not set
># CONFIG_X86_5LEVEL is not set
>CONFIG_ARCH_PHYS_ADDR_T_64BIT=y
>CONFIG_ARCH_DMA_ADDR_T_64BIT=y
>CONFIG_X86_DIRECT_GBPAGES=y
>CONFIG_ARCH_HAS_MEM_ENCRYPT=y
># CONFIG_AMD_MEM_ENCRYPT is not set
># CONFIG_NUMA is not set
>CONFIG_ARCH_SPARSEMEM_ENABLE=y
>CONFIG_ARCH_SPARSEMEM_DEFAULT=y
>CONFIG_ARCH_SELECT_MEMORY_MODEL=y
>CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000
>CONFIG_SELECT_MEMORY_MODEL=y
>CONFIG_SPARSEMEM_MANUAL=y
>CONFIG_SPARSEMEM=y
>CONFIG_HAVE_MEMORY_PRESENT=y
>CONFIG_SPARSEMEM_EXTREME=y
>CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y
>CONFIG_SPARSEMEM_ALLOC_MEM_MAP_TOGETHER=y
>CONFIG_SPARSEMEM_VMEMMAP=y
>CONFIG_HAVE_MEMBLOCK=y
>CONFIG_HAVE_MEMBLOCK_NODE_MAP=y
>CONFIG_HAVE_GENERIC_GUP=y
>CONFIG_ARCH_DISCARD_MEMBLOCK=y
>CONFIG_MEMORY_ISOLATION=y
># CONFIG_HAVE_BOOTMEM_INFO_NODE is not set
># CONFIG_MEMORY_HOTPLUG is not set
>CONFIG_SPLIT_PTLOCK_CPUS=4
>CONFIG_ARCH_ENABLE_SPLIT_PMD_PTLOCK=y
>CONFIG_COMPACTION=y
>CONFIG_MIGRATION=y
>CONFIG_PHYS_ADDR_T_64BIT=y
>CONFIG_BOUNCE=y
>CONFIG_VIRT_TO_BUS=y
># CONFIG_KSM is not set
>CONFIG_DEFAULT_MMAP_MIN_ADDR=4096
>CONFIG_ARCH_SUPPORTS_MEMORY_FAILURE=y
># CONFIG_MEMORY_FAILURE is not set
># CONFIG_TRANSPARENT_HUGEPAGE is not set
>CONFIG_ARCH_WANTS_THP_SWAP=y
># CONFIG_CLEANCACHE is not set
># CONFIG_FRONTSWAP is not set
>CONFIG_CMA=y
># CONFIG_CMA_DEBUG is not set
># CONFIG_CMA_DEBUGFS is not set
>CONFIG_CMA_AREAS=7
># CONFIG_ZPOOL is not set
># CONFIG_ZBUD is not set
># CONFIG_ZSMALLOC is not set
>CONFIG_GENERIC_EARLY_IOREMAP=y
>CONFIG_ARCH_SUPPORTS_DEFERRED_STRUCT_PAGE_INIT=y
># CONFIG_IDLE_PAGE_TRACKING is not set
>CONFIG_ARCH_HAS_ZONE_DEVICE=y
>CONFIG_ARCH_USES_HIGH_VMA_FLAGS=y
>CONFIG_ARCH_HAS_PKEYS=y
># CONFIG_PERCPU_STATS is not set
># CONFIG_GUP_BENCHMARK is not set
># CONFIG_X86_PMEM_LEGACY is not set
># CONFIG_X86_CHECK_BIOS_CORRUPTION is not set
>CONFIG_X86_RESERVE_LOW=64
>CONFIG_MTRR=y
>CONFIG_MTRR_SANITIZER=y
>CONFIG_MTRR_SANITIZER_ENABLE_DEFAULT=0
>CONFIG_MTRR_SANITIZER_SPARE_REG_NR_DEFAULT=1
>CONFIG_X86_PAT=y
>CONFIG_ARCH_USES_PG_UNCACHED=y
>CONFIG_ARCH_RANDOM=y
>CONFIG_X86_SMAP=y
>CONFIG_X86_INTEL_UMIP=y
># CONFIG_X86_INTEL_MPX is not set
>CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS=y
># CONFIG_SECCOMP is not set
># CONFIG_HZ_100 is not set
># CONFIG_HZ_250 is not set
># CONFIG_HZ_300 is not set
>CONFIG_HZ_1000=y
>CONFIG_HZ=1000
>CONFIG_SCHED_HRTICK=y
># CONFIG_KEXEC is not set
># CONFIG_KEXEC_FILE is not set
># CONFIG_CRASH_DUMP is not set
>CONFIG_PHYSICAL_START=0x1000000
>CONFIG_RELOCATABLE=y
>CONFIG_RANDOMIZE_BASE=y
>CONFIG_X86_NEED_RELOCS=y
>CONFIG_PHYSICAL_ALIGN=0x200000
>CONFIG_RANDOMIZE_MEMORY=y
>CONFIG_RANDOMIZE_MEMORY_PHYSICAL_PADDING=0x0
>CONFIG_HOTPLUG_CPU=y
># CONFIG_BOOTPARAM_HOTPLUG_CPU0 is not set
># CONFIG_DEBUG_HOTPLUG_CPU0 is not set
># CONFIG_COMPAT_VDSO is not set
># CONFIG_LEGACY_VSYSCALL_NATIVE is not set
>CONFIG_LEGACY_VSYSCALL_EMULATE=y
># CONFIG_LEGACY_VSYSCALL_NONE is not set
># CONFIG_CMDLINE_BOOL is not set
>CONFIG_MODIFY_LDT_SYSCALL=y
>CONFIG_HAVE_LIVEPATCH=y
>CONFIG_ARCH_HAS_ADD_PAGES=y
>CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
>
>#
># Power management and ACPI options
>#
># CONFIG_SUSPEND is not set
># CONFIG_HIBERNATION is not set
># CONFIG_PM is not set
># CONFIG_ACPI is not set
># CONFIG_SFI is not set
>
>#
># CPU Frequency scaling
>#
># CONFIG_CPU_FREQ is not set
>
>#
># CPU Idle
>#
># CONFIG_CPU_IDLE is not set
># CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED is not set
>
>#
># Bus options (PCI etc.)
>#
>CONFIG_PCI=y
>CONFIG_PCI_DIRECT=y
>CONFIG_PCI_DOMAINS=y
># CONFIG_PCI_CNB20LE_QUIRK is not set
>CONFIG_PCIEPORTBUS=y
># CONFIG_PCIEAER is not set
>CONFIG_PCIEASPM=y
># CONFIG_PCIEASPM_DEBUG is not set
>CONFIG_PCIEASPM_DEFAULT=y
># CONFIG_PCIEASPM_POWERSAVE is not set
># CONFIG_PCIEASPM_POWER_SUPERSAVE is not set
># CONFIG_PCIEASPM_PERFORMANCE is not set
># CONFIG_PCIE_DPC is not set
># CONFIG_PCIE_PTM is not set
>CONFIG_PCI_BUS_ADDR_T_64BIT=y
>CONFIG_PCI_MSI=y
>CONFIG_PCI_MSI_IRQ_DOMAIN=y
>CONFIG_PCI_QUIRKS=y
># CONFIG_PCI_DEBUG is not set
># CONFIG_PCI_STUB is not set
>CONFIG_PCI_LOCKLESS_CONFIG=y
># CONFIG_PCI_IOV is not set
># CONFIG_PCI_PRI is not set
># CONFIG_PCI_PASID is not set
>CONFIG_PCI_LABEL=y
># CONFIG_HOTPLUG_PCI is not set
>
>#
># DesignWare PCI Core Support
>#
># CONFIG_PCIE_DW_PLAT is not set
>
>#
># PCI host controller drivers
>#
># CONFIG_VMD is not set
>
>#
># PCI Endpoint
>#
># CONFIG_PCI_ENDPOINT is not set
>
>#
># PCI switch controller drivers
>#
># CONFIG_PCI_SW_SWITCHTEC is not set
># CONFIG_ISA_BUS is not set
>CONFIG_ISA_DMA_API=y
>CONFIG_AMD_NB=y
># CONFIG_PCCARD is not set
># CONFIG_RAPIDIO is not set
># CONFIG_X86_SYSFB is not set
>
>#
># Executable file formats / Emulations
>#
>CONFIG_BINFMT_ELF=y
>CONFIG_COMPAT_BINFMT_ELF=y
>CONFIG_ELFCORE=y
>CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=y
>CONFIG_BINFMT_SCRIPT=y
># CONFIG_HAVE_AOUT is not set
># CONFIG_BINFMT_MISC is not set
>CONFIG_COREDUMP=y
>CONFIG_IA32_EMULATION=y
>CONFIG_IA32_AOUT=y
>CONFIG_X86_X32=y
>CONFIG_COMPAT_32=y
>CONFIG_COMPAT=y
>CONFIG_COMPAT_FOR_U64_ALIGNMENT=y
>CONFIG_SYSVIPC_COMPAT=y
>CONFIG_X86_DEV_DMA_OPS=y
>CONFIG_NET=y
>
>#
># Networking options
>#
>CONFIG_PACKET=y
># CONFIG_PACKET_DIAG is not set
>CONFIG_UNIX=y
># CONFIG_UNIX_DIAG is not set
># CONFIG_TLS is not set
># CONFIG_XFRM_USER is not set
># CONFIG_NET_KEY is not set
>CONFIG_INET=y
>CONFIG_IP_MULTICAST=y
># CONFIG_IP_ADVANCED_ROUTER is not set
>CONFIG_IP_PNP=y
>CONFIG_IP_PNP_DHCP=y
>CONFIG_IP_PNP_BOOTP=y
>CONFIG_IP_PNP_RARP=y
># CONFIG_NET_IPIP is not set
># CONFIG_NET_IPGRE_DEMUX is not set
># CONFIG_NET_IP_TUNNEL is not set
>CONFIG_IP_MROUTE=y
>CONFIG_IP_PIMSM_V1=y
>CONFIG_IP_PIMSM_V2=y
># CONFIG_SYN_COOKIES is not set
># CONFIG_NET_UDP_TUNNEL is not set
># CONFIG_NET_FOU is not set
># CONFIG_INET_AH is not set
># CONFIG_INET_ESP is not set
># CONFIG_INET_IPCOMP is not set
># CONFIG_INET_XFRM_TUNNEL is not set
># CONFIG_INET_TUNNEL is not set
># CONFIG_INET_XFRM_MODE_TRANSPORT is not set
># CONFIG_INET_XFRM_MODE_TUNNEL is not set
># CONFIG_INET_XFRM_MODE_BEET is not set
>CONFIG_INET_DIAG=y
>CONFIG_INET_TCP_DIAG=y
>CONFIG_INET_UDP_DIAG=y
># CONFIG_INET_RAW_DIAG is not set
># CONFIG_INET_DIAG_DESTROY is not set
>CONFIG_TCP_CONG_ADVANCED=y
>CONFIG_TCP_CONG_BIC=y
>CONFIG_TCP_CONG_CUBIC=y
># CONFIG_TCP_CONG_WESTWOOD is not set
># CONFIG_TCP_CONG_HTCP is not set
># CONFIG_TCP_CONG_HSTCP is not set
># CONFIG_TCP_CONG_HYBLA is not set
># CONFIG_TCP_CONG_VEGAS is not set
># CONFIG_TCP_CONG_NV is not set
># CONFIG_TCP_CONG_SCALABLE is not set
># CONFIG_TCP_CONG_LP is not set
># CONFIG_TCP_CONG_VENO is not set
># CONFIG_TCP_CONG_YEAH is not set
># CONFIG_TCP_CONG_ILLINOIS is not set
># CONFIG_TCP_CONG_DCTCP is not set
># CONFIG_TCP_CONG_CDG is not set
># CONFIG_TCP_CONG_BBR is not set
># CONFIG_DEFAULT_BIC is not set
>CONFIG_DEFAULT_CUBIC=y
># CONFIG_DEFAULT_RENO is not set
>CONFIG_DEFAULT_TCP_CONG="cubic"
># CONFIG_TCP_MD5SIG is not set
># CONFIG_IPV6 is not set
># CONFIG_NETWORK_SECMARK is not set
>CONFIG_NET_PTP_CLASSIFY=y
># CONFIG_NETWORK_PHY_TIMESTAMPING is not set
># CONFIG_NETFILTER is not set
># CONFIG_IP_DCCP is not set
># CONFIG_IP_SCTP is not set
># CONFIG_RDS is not set
># CONFIG_TIPC is not set
># CONFIG_ATM is not set
># CONFIG_L2TP is not set
>CONFIG_STP=y
>CONFIG_BRIDGE=y
>CONFIG_BRIDGE_IGMP_SNOOPING=y
>CONFIG_BRIDGE_VLAN_FILTERING=y
>CONFIG_HAVE_NET_DSA=y
>CONFIG_NET_DSA=y
>CONFIG_NET_DSA_LEGACY=y
>CONFIG_NET_DSA_TAG_BRCM=y
>CONFIG_NET_DSA_TAG_BRCM_PREPEND=y
>CONFIG_NET_DSA_TAG_DSA=y
>CONFIG_NET_DSA_TAG_EDSA=y
>CONFIG_NET_DSA_TAG_KSZ=y
>CONFIG_NET_DSA_TAG_LAN9303=y
>CONFIG_NET_DSA_TAG_MTK=y
>CONFIG_NET_DSA_TAG_TRAILER=y
>CONFIG_NET_DSA_TAG_QCA=y
>CONFIG_VLAN_8021Q=y
># CONFIG_VLAN_8021Q_GVRP is not set
># CONFIG_VLAN_8021Q_MVRP is not set
># CONFIG_DECNET is not set
>CONFIG_LLC=y
># CONFIG_LLC2 is not set
># CONFIG_IPX is not set
># CONFIG_ATALK is not set
># CONFIG_X25 is not set
># CONFIG_LAPB is not set
># CONFIG_PHONET is not set
># CONFIG_IEEE802154 is not set
># CONFIG_NET_SCHED is not set
># CONFIG_DCB is not set
>CONFIG_DNS_RESOLVER=y
># CONFIG_BATMAN_ADV is not set
># CONFIG_OPENVSWITCH is not set
># CONFIG_VSOCKETS is not set
># CONFIG_NETLINK_DIAG is not set
># CONFIG_MPLS is not set
># CONFIG_NET_NSH is not set
># CONFIG_HSR is not set
>CONFIG_NET_SWITCHDEV=y
># CONFIG_NET_L3_MASTER_DEV is not set
># CONFIG_NET_NCSI is not set
>CONFIG_RPS=y
>CONFIG_RFS_ACCEL=y
>CONFIG_XPS=y
># CONFIG_CGROUP_NET_PRIO is not set
># CONFIG_CGROUP_NET_CLASSID is not set
>CONFIG_NET_RX_BUSY_POLL=y
>CONFIG_BQL=y
># CONFIG_BPF_JIT is not set
>CONFIG_NET_FLOW_LIMIT=y
>
>#
># Network testing
>#
># CONFIG_NET_PKTGEN is not set
># CONFIG_NET_DROP_MONITOR is not set
># CONFIG_HAMRADIO is not set
># CONFIG_CAN is not set
># CONFIG_BT is not set
># CONFIG_AF_RXRPC is not set
># CONFIG_AF_KCM is not set
># CONFIG_STREAM_PARSER is not set
>CONFIG_WIRELESS=y
>CONFIG_CFG80211=y
># CONFIG_NL80211_TESTMODE is not set
># CONFIG_CFG80211_DEVELOPER_WARNINGS is not set
># CONFIG_CFG80211_CERTIFICATION_ONUS is not set
>CONFIG_CFG80211_REQUIRE_SIGNED_REGDB=y
>CONFIG_CFG80211_USE_KERNEL_REGDB_KEYS=y
>CONFIG_CFG80211_DEFAULT_PS=y
># CONFIG_CFG80211_DEBUGFS is not set
>CONFIG_CFG80211_CRDA_SUPPORT=y
># CONFIG_CFG80211_WEXT is not set
># CONFIG_LIB80211 is not set
># CONFIG_MAC80211 is not set
>CONFIG_MAC80211_STA_HASH_MAX_SIZE=0
># CONFIG_WIMAX is not set
># CONFIG_RFKILL is not set
># CONFIG_NET_9P is not set
># CONFIG_CAIF is not set
># CONFIG_CEPH_LIB is not set
># CONFIG_NFC is not set
># CONFIG_PSAMPLE is not set
># CONFIG_NET_IFE is not set
># CONFIG_LWTUNNEL is not set
># CONFIG_DST_CACHE is not set
># CONFIG_GRO_CELLS is not set
># CONFIG_NET_DEVLINK is not set
>CONFIG_MAY_USE_DEVLINK=y
>CONFIG_HAVE_EBPF_JIT=y
>
>#
># Device Drivers
>#
>
>#
># Generic Driver Options
>#
>CONFIG_UEVENT_HELPER=y
>CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
>CONFIG_DEVTMPFS=y
>CONFIG_DEVTMPFS_MOUNT=y
>CONFIG_STANDALONE=y
>CONFIG_PREVENT_FIRMWARE_BUILD=y
>CONFIG_FW_LOADER=y
>CONFIG_FIRMWARE_IN_KERNEL=y
>CONFIG_EXTRA_FIRMWARE=""
># CONFIG_FW_LOADER_USER_HELPER_FALLBACK is not set
>CONFIG_ALLOW_DEV_COREDUMP=y
># CONFIG_DEBUG_DRIVER is not set
># CONFIG_DEBUG_DEVRES is not set
># CONFIG_DEBUG_TEST_DRIVER_REMOVE is not set
># CONFIG_TEST_ASYNC_DRIVER_PROBE is not set
># CONFIG_SYS_HYPERVISOR is not set
># CONFIG_GENERIC_CPU_DEVICES is not set
>CONFIG_GENERIC_CPU_AUTOPROBE=y
>CONFIG_REGMAP=y
>CONFIG_REGMAP_I2C=m
># CONFIG_DMA_SHARED_BUFFER is not set
>CONFIG_DMA_CMA=y
>
>#
># Default contiguous memory area size:
>#
>CONFIG_CMA_SIZE_MBYTES=16
>CONFIG_CMA_SIZE_SEL_MBYTES=y
># CONFIG_CMA_SIZE_SEL_PERCENTAGE is not set
># CONFIG_CMA_SIZE_SEL_MIN is not set
># CONFIG_CMA_SIZE_SEL_MAX is not set
>CONFIG_CMA_ALIGNMENT=9
>
>#
># Bus devices
>#
># CONFIG_CONNECTOR is not set
># CONFIG_MTD is not set
># CONFIG_OF is not set
>CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
># CONFIG_PARPORT is not set
>CONFIG_BLK_DEV=y
># CONFIG_BLK_DEV_NULL_BLK is not set
># CONFIG_BLK_DEV_FD is not set
>CONFIG_CDROM=y
># CONFIG_BLK_DEV_PCIESSD_MTIP32XX is not set
># CONFIG_BLK_DEV_DAC960 is not set
># CONFIG_BLK_DEV_UMEM is not set
># CONFIG_BLK_DEV_COW_COMMON is not set
>CONFIG_BLK_DEV_LOOP=y
>CONFIG_BLK_DEV_LOOP_MIN_COUNT=8
># CONFIG_BLK_DEV_CRYPTOLOOP is not set
># CONFIG_BLK_DEV_DRBD is not set
># CONFIG_BLK_DEV_NBD is not set
># CONFIG_BLK_DEV_SKD is not set
># CONFIG_BLK_DEV_SX8 is not set
>CONFIG_BLK_DEV_RAM=y
>CONFIG_BLK_DEV_RAM_COUNT=16
>CONFIG_BLK_DEV_RAM_SIZE=8192
># CONFIG_CDROM_PKTCDVD is not set
># CONFIG_ATA_OVER_ETH is not set
># CONFIG_BLK_DEV_RBD is not set
># CONFIG_BLK_DEV_RSXX is not set
>
>#
># NVME Support
>#
># CONFIG_BLK_DEV_NVME is not set
># CONFIG_NVME_FC is not set
># CONFIG_NVME_TARGET is not set
>
>#
># Misc devices
>#
># CONFIG_SENSORS_LIS3LV02D is not set
># CONFIG_AD525X_DPOT is not set
># CONFIG_DUMMY_IRQ is not set
># CONFIG_IBM_ASM is not set
># CONFIG_PHANTOM is not set
># CONFIG_SGI_IOC4 is not set
># CONFIG_TIFM_CORE is not set
># CONFIG_ICS932S401 is not set
># CONFIG_ENCLOSURE_SERVICES is not set
># CONFIG_HP_ILO is not set
># CONFIG_APDS9802ALS is not set
># CONFIG_ISL29003 is not set
># CONFIG_ISL29020 is not set
># CONFIG_SENSORS_TSL2550 is not set
># CONFIG_SENSORS_BH1770 is not set
># CONFIG_SENSORS_APDS990X is not set
># CONFIG_HMC6352 is not set
># CONFIG_DS1682 is not set
># CONFIG_USB_SWITCH_FSA9480 is not set
># CONFIG_SRAM is not set
># CONFIG_PCI_ENDPOINT_TEST is not set
># CONFIG_C2PORT is not set
>
>#
># EEPROM support
>#
># CONFIG_EEPROM_AT24 is not set
># CONFIG_EEPROM_LEGACY is not set
># CONFIG_EEPROM_MAX6875 is not set
>CONFIG_EEPROM_93CX6=y
># CONFIG_EEPROM_IDT_89HPESX is not set
># CONFIG_CB710_CORE is not set
>
>#
># Texas Instruments shared transport line discipline
>#
># CONFIG_SENSORS_LIS3_I2C is not set
># CONFIG_ALTERA_STAPL is not set
># CONFIG_INTEL_MEI is not set
># CONFIG_INTEL_MEI_ME is not set
># CONFIG_INTEL_MEI_TXE is not set
># CONFIG_VMWARE_VMCI is not set
>
>#
># Intel MIC & related support
>#
>
>#
># Intel MIC Bus Driver
>#
># CONFIG_INTEL_MIC_BUS is not set
>
>#
># SCIF Bus Driver
>#
># CONFIG_SCIF_BUS is not set
>
>#
># VOP Bus Driver
>#
># CONFIG_VOP_BUS is not set
>
>#
># Intel MIC Host Driver
>#
>
>#
># Intel MIC Card Driver
>#
>
>#
># SCIF Driver
>#
>
>#
># Intel MIC Coprocessor State Management (COSM) Drivers
>#
>
>#
># VOP Driver
>#
># CONFIG_GENWQE is not set
># CONFIG_ECHO is not set
># CONFIG_CXL_BASE is not set
># CONFIG_CXL_AFU_DRIVER_OPS is not set
># CONFIG_CXL_LIB is not set
>CONFIG_HAVE_IDE=y
># CONFIG_IDE is not set
>
>#
># SCSI device support
>#
>CONFIG_SCSI_MOD=y
># CONFIG_RAID_ATTRS is not set
>CONFIG_SCSI=y
>CONFIG_SCSI_DMA=y
># CONFIG_SCSI_NETLINK is not set
># CONFIG_SCSI_MQ_DEFAULT is not set
>CONFIG_SCSI_PROC_FS=y
>
>#
># SCSI support type (disk, tape, CD-ROM)
>#
>CONFIG_BLK_DEV_SD=y
># CONFIG_CHR_DEV_ST is not set
># CONFIG_CHR_DEV_OSST is not set
>CONFIG_BLK_DEV_SR=y
># CONFIG_BLK_DEV_SR_VENDOR is not set
>CONFIG_CHR_DEV_SG=y
># CONFIG_CHR_DEV_SCH is not set
># CONFIG_SCSI_CONSTANTS is not set
># CONFIG_SCSI_LOGGING is not set
># CONFIG_SCSI_SCAN_ASYNC is not set
>
>#
># SCSI Transports
>#
># CONFIG_SCSI_SPI_ATTRS is not set
># CONFIG_SCSI_FC_ATTRS is not set
># CONFIG_SCSI_ISCSI_ATTRS is not set
># CONFIG_SCSI_SAS_ATTRS is not set
># CONFIG_SCSI_SAS_LIBSAS is not set
># CONFIG_SCSI_SRP_ATTRS is not set
>CONFIG_SCSI_LOWLEVEL=y
># CONFIG_ISCSI_TCP is not set
># CONFIG_ISCSI_BOOT_SYSFS is not set
># CONFIG_SCSI_CXGB3_ISCSI is not set
># CONFIG_SCSI_CXGB4_ISCSI is not set
># CONFIG_SCSI_BNX2_ISCSI is not set
># CONFIG_BE2ISCSI is not set
># CONFIG_BLK_DEV_3W_XXXX_RAID is not set
># CONFIG_SCSI_HPSA is not set
># CONFIG_SCSI_3W_9XXX is not set
># CONFIG_SCSI_3W_SAS is not set
># CONFIG_SCSI_ACARD is not set
># CONFIG_SCSI_AACRAID is not set
># CONFIG_SCSI_AIC7XXX is not set
># CONFIG_SCSI_AIC79XX is not set
># CONFIG_SCSI_AIC94XX is not set
># CONFIG_SCSI_MVSAS is not set
># CONFIG_SCSI_MVUMI is not set
># CONFIG_SCSI_DPT_I2O is not set
># CONFIG_SCSI_ADVANSYS is not set
># CONFIG_SCSI_ARCMSR is not set
># CONFIG_SCSI_ESAS2R is not set
># CONFIG_MEGARAID_NEWGEN is not set
># CONFIG_MEGARAID_LEGACY is not set
># CONFIG_MEGARAID_SAS is not set
># CONFIG_SCSI_MPT3SAS is not set
># CONFIG_SCSI_MPT2SAS is not set
># CONFIG_SCSI_SMARTPQI is not set
># CONFIG_SCSI_UFSHCD is not set
># CONFIG_SCSI_HPTIOP is not set
># CONFIG_SCSI_BUSLOGIC is not set
># CONFIG_VMWARE_PVSCSI is not set
># CONFIG_SCSI_SNIC is not set
># CONFIG_SCSI_DMX3191D is not set
># CONFIG_SCSI_EATA is not set
># CONFIG_SCSI_FUTURE_DOMAIN is not set
># CONFIG_SCSI_GDTH is not set
># CONFIG_SCSI_ISCI is not set
># CONFIG_SCSI_IPS is not set
># CONFIG_SCSI_INITIO is not set
># CONFIG_SCSI_INIA100 is not set
># CONFIG_SCSI_STEX is not set
># CONFIG_SCSI_SYM53C8XX_2 is not set
># CONFIG_SCSI_IPR is not set
># CONFIG_SCSI_QLOGIC_1280 is not set
># CONFIG_SCSI_QLA_ISCSI is not set
># CONFIG_SCSI_DC395x is not set
># CONFIG_SCSI_AM53C974 is not set
># CONFIG_SCSI_WD719X is not set
># CONFIG_SCSI_DEBUG is not set
># CONFIG_SCSI_PMCRAID is not set
># CONFIG_SCSI_PM8001 is not set
># CONFIG_SCSI_DH is not set
># CONFIG_SCSI_OSD_INITIATOR is not set
>CONFIG_ATA=y
># CONFIG_ATA_NONSTANDARD is not set
>CONFIG_ATA_VERBOSE_ERROR=y
>CONFIG_SATA_PMP=y
>
>#
># Controllers with non-SFF native interface
>#
>CONFIG_SATA_AHCI=y
>CONFIG_SATA_AHCI_PLATFORM=y
># CONFIG_SATA_INIC162X is not set
># CONFIG_SATA_ACARD_AHCI is not set
># CONFIG_SATA_SIL24 is not set
>CONFIG_ATA_SFF=y
>
>#
># SFF controllers with custom DMA interface
>#
># CONFIG_PDC_ADMA is not set
># CONFIG_SATA_QSTOR is not set
># CONFIG_SATA_SX4 is not set
>CONFIG_ATA_BMDMA=y
>
>#
># SATA SFF controllers with BMDMA
>#
>CONFIG_ATA_PIIX=y
># CONFIG_SATA_MV is not set
># CONFIG_SATA_NV is not set
># CONFIG_SATA_PROMISE is not set
># CONFIG_SATA_SIL is not set
># CONFIG_SATA_SIS is not set
># CONFIG_SATA_SVW is not set
># CONFIG_SATA_ULI is not set
># CONFIG_SATA_VIA is not set
># CONFIG_SATA_VITESSE is not set
>
>#
># PATA SFF controllers with BMDMA
>#
># CONFIG_PATA_ALI is not set
># CONFIG_PATA_AMD is not set
># CONFIG_PATA_ARTOP is not set
># CONFIG_PATA_ATIIXP is not set
># CONFIG_PATA_ATP867X is not set
># CONFIG_PATA_CMD64X is not set
># CONFIG_PATA_CYPRESS is not set
># CONFIG_PATA_EFAR is not set
># CONFIG_PATA_HPT366 is not set
># CONFIG_PATA_HPT37X is not set
># CONFIG_PATA_HPT3X2N is not set
># CONFIG_PATA_HPT3X3 is not set
># CONFIG_PATA_IT8213 is not set
># CONFIG_PATA_IT821X is not set
># CONFIG_PATA_JMICRON is not set
># CONFIG_PATA_MARVELL is not set
># CONFIG_PATA_NETCELL is not set
># CONFIG_PATA_NINJA32 is not set
># CONFIG_PATA_NS87415 is not set
># CONFIG_PATA_OLDPIIX is not set
># CONFIG_PATA_OPTIDMA is not set
># CONFIG_PATA_PDC2027X is not set
># CONFIG_PATA_PDC_OLD is not set
># CONFIG_PATA_RADISYS is not set
># CONFIG_PATA_RDC is not set
># CONFIG_PATA_SCH is not set
># CONFIG_PATA_SERVERWORKS is not set
># CONFIG_PATA_SIL680 is not set
># CONFIG_PATA_SIS is not set
># CONFIG_PATA_TOSHIBA is not set
># CONFIG_PATA_TRIFLEX is not set
># CONFIG_PATA_VIA is not set
># CONFIG_PATA_WINBOND is not set
>
>#
># PIO-only SFF controllers
>#
># CONFIG_PATA_CMD640_PCI is not set
># CONFIG_PATA_MPIIX is not set
># CONFIG_PATA_NS87410 is not set
># CONFIG_PATA_OPTI is not set
># CONFIG_PATA_PLATFORM is not set
># CONFIG_PATA_RZ1000 is not set
>
>#
># Generic fallback / legacy drivers
>#
># CONFIG_ATA_GENERIC is not set
># CONFIG_PATA_LEGACY is not set
># CONFIG_MD is not set
># CONFIG_TARGET_CORE is not set
># CONFIG_FUSION is not set
>
>#
># IEEE 1394 (FireWire) support
>#
># CONFIG_FIREWIRE is not set
># CONFIG_FIREWIRE_NOSY is not set
># CONFIG_MACINTOSH_DRIVERS is not set
>CONFIG_NETDEVICES=y
>CONFIG_NET_CORE=y
># CONFIG_BONDING is not set
># CONFIG_DUMMY is not set
># CONFIG_EQUALIZER is not set
># CONFIG_NET_FC is not set
># CONFIG_NET_TEAM is not set
># CONFIG_MACVLAN is not set
># CONFIG_VXLAN is not set
># CONFIG_MACSEC is not set
># CONFIG_NETCONSOLE is not set
># CONFIG_NETPOLL is not set
># CONFIG_NET_POLL_CONTROLLER is not set
># CONFIG_TUN is not set
># CONFIG_TUN_VNET_CROSS_LE is not set
># CONFIG_VETH is not set
># CONFIG_NLMON is not set
># CONFIG_ARCNET is not set
>
>#
># CAIF transport drivers
>#
>
>#
># Distributed Switch Architecture drivers
>#
>CONFIG_B53=m
>CONFIG_B53_MDIO_DRIVER=m
>CONFIG_B53_MMAP_DRIVER=m
>CONFIG_B53_SRAB_DRIVER=m
>CONFIG_NET_DSA_LOOP=m
>CONFIG_NET_DSA_MT7530=m
>CONFIG_NET_DSA_MV88E6060=m
>CONFIG_MICROCHIP_KSZ=m
>CONFIG_NET_DSA_MV88E6XXX=m
>CONFIG_NET_DSA_MV88E6XXX_GLOBAL2=y
>CONFIG_NET_DSA_QCA8K=m
>CONFIG_NET_DSA_SMSC_LAN9303=m
>CONFIG_NET_DSA_SMSC_LAN9303_I2C=m
>CONFIG_NET_DSA_SMSC_LAN9303_MDIO=m
>CONFIG_ETHERNET=y
>CONFIG_NET_VENDOR_3COM=y
># CONFIG_VORTEX is not set
># CONFIG_TYPHOON is not set
># CONFIG_NET_VENDOR_ADAPTEC is not set
>CONFIG_NET_VENDOR_AGERE=y
># CONFIG_ET131X is not set
>CONFIG_NET_VENDOR_ALACRITECH=y
># CONFIG_SLICOSS is not set
># CONFIG_NET_VENDOR_ALTEON is not set
># CONFIG_ALTERA_TSE is not set
>CONFIG_NET_VENDOR_AMAZON=y
># CONFIG_ENA_ETHERNET is not set
># CONFIG_NET_VENDOR_AMD is not set
>CONFIG_NET_VENDOR_AQUANTIA=y
># CONFIG_AQTION is not set
># CONFIG_NET_VENDOR_ARC is not set
># CONFIG_NET_VENDOR_ATHEROS is not set
># CONFIG_NET_VENDOR_AURORA is not set
># CONFIG_NET_CADENCE is not set
># CONFIG_NET_VENDOR_BROADCOM is not set
># CONFIG_NET_VENDOR_BROCADE is not set
># CONFIG_NET_VENDOR_CAVIUM is not set
># CONFIG_NET_VENDOR_CHELSIO is not set
># CONFIG_NET_VENDOR_CISCO is not set
># CONFIG_CX_ECAT is not set
># CONFIG_DNET is not set
># CONFIG_NET_VENDOR_DEC is not set
># CONFIG_NET_VENDOR_DLINK is not set
># CONFIG_NET_VENDOR_EMULEX is not set
>CONFIG_NET_VENDOR_EZCHIP=y
># CONFIG_NET_VENDOR_EXAR is not set
># CONFIG_NET_VENDOR_HP is not set
>CONFIG_NET_VENDOR_HUAWEI=y
># CONFIG_HINIC is not set
>CONFIG_NET_VENDOR_INTEL=y
># CONFIG_E100 is not set
>CONFIG_E1000=y
>CONFIG_E1000E=y
>CONFIG_E1000E_HWTS=y
># CONFIG_IGB is not set
># CONFIG_IGBVF is not set
># CONFIG_IXGB is not set
># CONFIG_IXGBE is not set
># CONFIG_IXGBEVF is not set
># CONFIG_I40E is not set
># CONFIG_I40EVF is not set
># CONFIG_FM10K is not set
>CONFIG_NET_VENDOR_I825XX=y
># CONFIG_JME is not set
>CONFIG_NET_VENDOR_MARVELL=y
># CONFIG_MVMDIO is not set
># CONFIG_SKGE is not set
># CONFIG_SKY2 is not set
># CONFIG_NET_VENDOR_MELLANOX is not set
># CONFIG_NET_VENDOR_MICREL is not set
># CONFIG_NET_VENDOR_MYRI is not set
># CONFIG_FEALNX is not set
># CONFIG_NET_VENDOR_NATSEMI is not set
>CONFIG_NET_VENDOR_NETRONOME=y
># CONFIG_NFP is not set
># CONFIG_NET_VENDOR_NVIDIA is not set
># CONFIG_NET_VENDOR_OKI is not set
># CONFIG_ETHOC is not set
># CONFIG_NET_PACKET_ENGINE is not set
># CONFIG_NET_VENDOR_QLOGIC is not set
>CONFIG_NET_VENDOR_QUALCOMM=y
># CONFIG_QCOM_EMAC is not set
># CONFIG_RMNET is not set
># CONFIG_NET_VENDOR_REALTEK is not set
>CONFIG_NET_VENDOR_RENESAS=y
># CONFIG_NET_VENDOR_RDC is not set
>CONFIG_NET_VENDOR_ROCKER=y
>CONFIG_ROCKER=y
>CONFIG_NET_VENDOR_SAMSUNG=y
># CONFIG_SXGBE_ETH is not set
># CONFIG_NET_VENDOR_SEEQ is not set
># CONFIG_NET_VENDOR_SILAN is not set
># CONFIG_NET_VENDOR_SIS is not set
>CONFIG_NET_VENDOR_SOLARFLARE=y
># CONFIG_SFC is not set
># CONFIG_SFC_FALCON is not set
># CONFIG_NET_VENDOR_SMSC is not set
># CONFIG_NET_VENDOR_STMICRO is not set
># CONFIG_NET_VENDOR_SUN is not set
># CONFIG_NET_VENDOR_TEHUTI is not set
># CONFIG_NET_VENDOR_TI is not set
># CONFIG_NET_VENDOR_VIA is not set
># CONFIG_NET_VENDOR_WIZNET is not set
>CONFIG_NET_VENDOR_SYNOPSYS=y
># CONFIG_DWC_XLGMAC is not set
># CONFIG_FDDI is not set
># CONFIG_HIPPI is not set
>CONFIG_MDIO_DEVICE=y
>CONFIG_MDIO_BUS=y
># CONFIG_MDIO_BITBANG is not set
># CONFIG_MDIO_THUNDER is not set
>CONFIG_PHYLINK=y
>CONFIG_PHYLIB=y
>CONFIG_SWPHY=y
>
>#
># MII PHY device drivers
>#
># CONFIG_SFP is not set
># CONFIG_AMD_PHY is not set
># CONFIG_AQUANTIA_PHY is not set
># CONFIG_AT803X_PHY is not set
>CONFIG_BCM7XXX_PHY=m
># CONFIG_BCM87XX_PHY is not set
>CONFIG_BCM_NET_PHYLIB=m
># CONFIG_BROADCOM_PHY is not set
># CONFIG_CICADA_PHY is not set
># CONFIG_CORTINA_PHY is not set
># CONFIG_DAVICOM_PHY is not set
># CONFIG_DP83822_PHY is not set
># CONFIG_DP83848_PHY is not set
># CONFIG_DP83867_PHY is not set
>CONFIG_FIXED_PHY=m
># CONFIG_ICPLUS_PHY is not set
># CONFIG_INTEL_XWAY_PHY is not set
># CONFIG_LSI_ET1011C_PHY is not set
># CONFIG_LXT_PHY is not set
># CONFIG_MARVELL_PHY is not set
># CONFIG_MARVELL_10G_PHY is not set
># CONFIG_MICREL_PHY is not set
># CONFIG_MICROCHIP_PHY is not set
># CONFIG_MICROSEMI_PHY is not set
># CONFIG_NATIONAL_PHY is not set
># CONFIG_QSEMI_PHY is not set
># CONFIG_REALTEK_PHY is not set
># CONFIG_RENESAS_PHY is not set
># CONFIG_ROCKCHIP_PHY is not set
># CONFIG_SMSC_PHY is not set
># CONFIG_STE10XP is not set
># CONFIG_TERANETICS_PHY is not set
># CONFIG_VITESSE_PHY is not set
># CONFIG_XILINX_GMII2RGMII is not set
># CONFIG_PPP is not set
># CONFIG_SLIP is not set
>
>#
># Host-side USB support is needed for USB Network Adapter support
>#
># CONFIG_WLAN is not set
>
>#
># Enable WiMAX (Networking options) to see the WiMAX drivers
>#
># CONFIG_WAN is not set
># CONFIG_VMXNET3 is not set
># CONFIG_NETDEVSIM is not set
># CONFIG_ISDN is not set
># CONFIG_NVM is not set
>
>#
># Input device support
>#
>CONFIG_INPUT=y
># CONFIG_INPUT_FF_MEMLESS is not set
># CONFIG_INPUT_POLLDEV is not set
># CONFIG_INPUT_SPARSEKMAP is not set
># CONFIG_INPUT_MATRIXKMAP is not set
>
>#
># Userland interfaces
>#
># CONFIG_INPUT_MOUSEDEV is not set
># CONFIG_INPUT_JOYDEV is not set
># CONFIG_INPUT_EVDEV is not set
># CONFIG_INPUT_EVBUG is not set
>
>#
># Input Device Drivers
>#
># CONFIG_INPUT_KEYBOARD is not set
># CONFIG_INPUT_MOUSE is not set
># CONFIG_INPUT_JOYSTICK is not set
># CONFIG_INPUT_TABLET is not set
># CONFIG_INPUT_TOUCHSCREEN is not set
># CONFIG_INPUT_MISC is not set
># CONFIG_RMI4_CORE is not set
>
>#
># Hardware I/O ports
>#
># CONFIG_SERIO is not set
>CONFIG_ARCH_MIGHT_HAVE_PC_SERIO=y
># CONFIG_GAMEPORT is not set
>
>#
># Character devices
>#
>CONFIG_TTY=y
>CONFIG_VT=y
>CONFIG_CONSOLE_TRANSLATIONS=y
>CONFIG_VT_CONSOLE=y
>CONFIG_HW_CONSOLE=y
>CONFIG_VT_HW_CONSOLE_BINDING=y
>CONFIG_UNIX98_PTYS=y
>CONFIG_LEGACY_PTYS=y
>CONFIG_LEGACY_PTY_COUNT=256
># CONFIG_SERIAL_NONSTANDARD is not set
># CONFIG_NOZOMI is not set
># CONFIG_N_GSM is not set
># CONFIG_TRACE_SINK is not set
>CONFIG_DEVMEM=y
>CONFIG_DEVKMEM=y
>
>#
># Serial drivers
>#
>CONFIG_SERIAL_EARLYCON=y
>CONFIG_SERIAL_8250=y
>CONFIG_SERIAL_8250_DEPRECATED_OPTIONS=y
># CONFIG_SERIAL_8250_FINTEK is not set
>CONFIG_SERIAL_8250_CONSOLE=y
>CONFIG_SERIAL_8250_PCI=y
>CONFIG_SERIAL_8250_EXAR=y
>CONFIG_SERIAL_8250_NR_UARTS=4
>CONFIG_SERIAL_8250_RUNTIME_UARTS=4
># CONFIG_SERIAL_8250_EXTENDED is not set
># CONFIG_SERIAL_8250_FSL is not set
>CONFIG_SERIAL_8250_DW=y
># CONFIG_SERIAL_8250_RT288X is not set
>CONFIG_SERIAL_8250_LPSS=y
>CONFIG_SERIAL_8250_MID=y
># CONFIG_SERIAL_8250_MOXA is not set
>
>#
># Non-8250 serial port support
>#
># CONFIG_SERIAL_UARTLITE is not set
>CONFIG_SERIAL_CORE=y
>CONFIG_SERIAL_CORE_CONSOLE=y
># CONFIG_SERIAL_JSM is not set
># CONFIG_SERIAL_SCCNXP is not set
># CONFIG_SERIAL_SC16IS7XX is not set
># CONFIG_SERIAL_ALTERA_JTAGUART is not set
># CONFIG_SERIAL_ALTERA_UART is not set
># CONFIG_SERIAL_ARC is not set
># CONFIG_SERIAL_RP2 is not set
># CONFIG_SERIAL_FSL_LPUART is not set
># CONFIG_SERIAL_DEV_BUS is not set
># CONFIG_TTY_PRINTK is not set
># CONFIG_IPMI_HANDLER is not set
>CONFIG_HW_RANDOM=y
># CONFIG_HW_RANDOM_TIMERIOMEM is not set
>CONFIG_HW_RANDOM_INTEL=y
>CONFIG_HW_RANDOM_AMD=y
>CONFIG_HW_RANDOM_VIA=y
># CONFIG_NVRAM is not set
># CONFIG_R3964 is not set
># CONFIG_APPLICOM is not set
># CONFIG_MWAVE is not set
># CONFIG_RAW_DRIVER is not set
># CONFIG_HANGCHECK_TIMER is not set
># CONFIG_TCG_TPM is not set
># CONFIG_TELCLOCK is not set
>CONFIG_DEVPORT=y
># CONFIG_XILLYBUS is not set
>
>#
># I2C support
>#
>CONFIG_I2C=y
>CONFIG_I2C_BOARDINFO=y
>CONFIG_I2C_COMPAT=y
>CONFIG_I2C_CHARDEV=y
>CONFIG_I2C_MUX=y
>
>#
># Multiplexer I2C Chip support
>#
># CONFIG_I2C_MUX_LTC4306 is not set
># CONFIG_I2C_MUX_PCA9541 is not set
># CONFIG_I2C_MUX_REG is not set
># CONFIG_I2C_MUX_MLXCPLD is not set
>CONFIG_I2C_HELPER_AUTO=y
>
>#
># I2C Hardware Bus support
>#
>
>#
># PC SMBus host controller drivers
>#
># CONFIG_I2C_ALI1535 is not set
># CONFIG_I2C_ALI1563 is not set
># CONFIG_I2C_ALI15X3 is not set
># CONFIG_I2C_AMD756 is not set
># CONFIG_I2C_AMD8111 is not set
># CONFIG_I2C_I801 is not set
># CONFIG_I2C_ISCH is not set
># CONFIG_I2C_ISMT is not set
># CONFIG_I2C_PIIX4 is not set
># CONFIG_I2C_NFORCE2 is not set
># CONFIG_I2C_SIS5595 is not set
># CONFIG_I2C_SIS630 is not set
># CONFIG_I2C_SIS96X is not set
># CONFIG_I2C_VIA is not set
># CONFIG_I2C_VIAPRO is not set
>
>#
># I2C system bus drivers (mostly embedded / system-on-chip)
>#
># CONFIG_I2C_DESIGNWARE_PLATFORM is not set
># CONFIG_I2C_DESIGNWARE_PCI is not set
># CONFIG_I2C_EMEV2 is not set
># CONFIG_I2C_OCORES is not set
># CONFIG_I2C_PCA_PLATFORM is not set
># CONFIG_I2C_PXA_PCI is not set
># CONFIG_I2C_SIMTEC is not set
># CONFIG_I2C_XILINX is not set
>
>#
># External I2C/SMBus adapter drivers
>#
># CONFIG_I2C_PARPORT_LIGHT is not set
># CONFIG_I2C_TAOS_EVM is not set
>
>#
># Other I2C/SMBus bus drivers
>#
># CONFIG_I2C_MLXCPLD is not set
># CONFIG_I2C_STUB is not set
># CONFIG_I2C_SLAVE is not set
># CONFIG_I2C_DEBUG_CORE is not set
># CONFIG_I2C_DEBUG_ALGO is not set
># CONFIG_I2C_DEBUG_BUS is not set
># CONFIG_SPI is not set
># CONFIG_SPMI is not set
># CONFIG_HSI is not set
>CONFIG_PPS=y
># CONFIG_PPS_DEBUG is not set
>
>#
># PPS clients support
>#
># CONFIG_PPS_CLIENT_KTIMER is not set
># CONFIG_PPS_CLIENT_LDISC is not set
># CONFIG_PPS_CLIENT_GPIO is not set
>
>#
># PPS generators support
>#
>
>#
># PTP clock support
>#
>CONFIG_PTP_1588_CLOCK=y
>
>#
># Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks.
>#
># CONFIG_PINCTRL is not set
># CONFIG_GPIOLIB is not set
># CONFIG_W1 is not set
># CONFIG_POWER_AVS is not set
># CONFIG_POWER_RESET is not set
>CONFIG_POWER_SUPPLY=y
># CONFIG_POWER_SUPPLY_DEBUG is not set
># CONFIG_PDA_POWER is not set
># CONFIG_TEST_POWER is not set
># CONFIG_BATTERY_DS2780 is not set
># CONFIG_BATTERY_DS2781 is not set
># CONFIG_BATTERY_DS2782 is not set
># CONFIG_BATTERY_SBS is not set
># CONFIG_CHARGER_SBS is not set
># CONFIG_BATTERY_BQ27XXX is not set
># CONFIG_BATTERY_MAX17040 is not set
># CONFIG_BATTERY_MAX17042 is not set
># CONFIG_CHARGER_MAX8903 is not set
># CONFIG_CHARGER_LP8727 is not set
># CONFIG_CHARGER_BQ2415X is not set
># CONFIG_CHARGER_SMB347 is not set
># CONFIG_BATTERY_GAUGE_LTC2941 is not set
># CONFIG_HWMON is not set
>CONFIG_THERMAL=y
>CONFIG_THERMAL_EMERGENCY_POWEROFF_DELAY_MS=0
>CONFIG_THERMAL_WRITABLE_TRIPS=y
># CONFIG_THERMAL_DEFAULT_GOV_STEP_WISE is not set
># CONFIG_THERMAL_DEFAULT_GOV_FAIR_SHARE is not set
>CONFIG_THERMAL_DEFAULT_GOV_USER_SPACE=y
># CONFIG_THERMAL_DEFAULT_GOV_POWER_ALLOCATOR is not set
># CONFIG_THERMAL_GOV_FAIR_SHARE is not set
>CONFIG_THERMAL_GOV_STEP_WISE=y
># CONFIG_THERMAL_GOV_BANG_BANG is not set
>CONFIG_THERMAL_GOV_USER_SPACE=y
># CONFIG_THERMAL_GOV_POWER_ALLOCATOR is not set
># CONFIG_THERMAL_EMULATION is not set
># CONFIG_INTEL_POWERCLAMP is not set
>CONFIG_X86_PKG_TEMP_THERMAL=m
># CONFIG_INTEL_SOC_DTS_THERMAL is not set
>
>#
># ACPI INT340X thermal drivers
>#
># CONFIG_INTEL_PCH_THERMAL is not set
># CONFIG_WATCHDOG is not set
>CONFIG_SSB_POSSIBLE=y
>
>#
># Sonics Silicon Backplane
>#
>CONFIG_SSB=m
>CONFIG_SSB_SPROM=y
>CONFIG_SSB_PCIHOST_POSSIBLE=y
>CONFIG_SSB_PCIHOST=y
># CONFIG_SSB_B43_PCI_BRIDGE is not set
># CONFIG_SSB_SILENT is not set
># CONFIG_SSB_DEBUG is not set
>CONFIG_SSB_DRIVER_PCICORE_POSSIBLE=y
>CONFIG_SSB_DRIVER_PCICORE=y
>CONFIG_BCMA_POSSIBLE=y
># CONFIG_BCMA is not set
>
>#
># Multifunction device drivers
>#
># CONFIG_MFD_CORE is not set
># CONFIG_MFD_AS3711 is not set
># CONFIG_PMIC_ADP5520 is not set
># CONFIG_MFD_BCM590XX is not set
># CONFIG_MFD_BD9571MWV is not set
># CONFIG_MFD_AXP20X_I2C is not set
># CONFIG_MFD_CROS_EC is not set
># CONFIG_PMIC_DA903X is not set
># CONFIG_MFD_DA9052_I2C is not set
># CONFIG_MFD_DA9055 is not set
># CONFIG_MFD_DA9062 is not set
># CONFIG_MFD_DA9063 is not set
># CONFIG_MFD_DA9150 is not set
># CONFIG_MFD_MC13XXX_I2C is not set
># CONFIG_HTC_PASIC3 is not set
># CONFIG_MFD_INTEL_QUARK_I2C_GPIO is not set
># CONFIG_LPC_ICH is not set
># CONFIG_LPC_SCH is not set
># CONFIG_MFD_INTEL_LPSS_PCI is not set
># CONFIG_MFD_JANZ_CMODIO is not set
># CONFIG_MFD_KEMPLD is not set
># CONFIG_MFD_88PM800 is not set
># CONFIG_MFD_88PM805 is not set
># CONFIG_MFD_88PM860X is not set
># CONFIG_MFD_MAX14577 is not set
># CONFIG_MFD_MAX77693 is not set
># CONFIG_MFD_MAX77843 is not set
># CONFIG_MFD_MAX8907 is not set
># CONFIG_MFD_MAX8925 is not set
># CONFIG_MFD_MAX8997 is not set
># CONFIG_MFD_MAX8998 is not set
># CONFIG_MFD_MT6397 is not set
># CONFIG_MFD_MENF21BMC is not set
># CONFIG_MFD_RETU is not set
># CONFIG_MFD_PCF50633 is not set
># CONFIG_MFD_RDC321X is not set
># CONFIG_MFD_RTSX_PCI is not set
># CONFIG_MFD_RT5033 is not set
># CONFIG_MFD_RC5T583 is not set
># CONFIG_MFD_SEC_CORE is not set
># CONFIG_MFD_SI476X_CORE is not set
># CONFIG_MFD_SM501 is not set
># CONFIG_MFD_SKY81452 is not set
># CONFIG_MFD_SMSC is not set
># CONFIG_ABX500_CORE is not set
># CONFIG_MFD_SYSCON is not set
># CONFIG_MFD_TI_AM335X_TSCADC is not set
># CONFIG_MFD_LP3943 is not set
># CONFIG_MFD_LP8788 is not set
># CONFIG_MFD_TI_LMU is not set
># CONFIG_MFD_PALMAS is not set
># CONFIG_TPS6105X is not set
># CONFIG_TPS6507X is not set
># CONFIG_MFD_TPS65086 is not set
># CONFIG_MFD_TPS65090 is not set
># CONFIG_MFD_TI_LP873X is not set
># CONFIG_MFD_TPS6586X is not set
># CONFIG_MFD_TPS65912_I2C is not set
># CONFIG_MFD_TPS80031 is not set
># CONFIG_TWL4030_CORE is not set
># CONFIG_TWL6040_CORE is not set
># CONFIG_MFD_WL1273_CORE is not set
># CONFIG_MFD_LM3533 is not set
># CONFIG_MFD_TMIO is not set
># CONFIG_MFD_VX855 is not set
># CONFIG_MFD_ARIZONA_I2C is not set
># CONFIG_MFD_WM8400 is not set
># CONFIG_MFD_WM831X_I2C is not set
># CONFIG_MFD_WM8350_I2C is not set
># CONFIG_MFD_WM8994 is not set
># CONFIG_REGULATOR is not set
># CONFIG_RC_CORE is not set
># CONFIG_MEDIA_SUPPORT is not set
>
>#
># Graphics support
>#
># CONFIG_AGP is not set
># CONFIG_VGA_ARB is not set
># CONFIG_DRM is not set
>
>#
># ACP (Audio CoProcessor) Configuration
>#
>
>#
># AMD Library routines
>#
># CONFIG_CHASH is not set
># CONFIG_DRM_LIB_RANDOM is not set
>
>#
># Frame buffer Devices
>#
># CONFIG_FB is not set
># CONFIG_BACKLIGHT_LCD_SUPPORT is not set
># CONFIG_VGASTATE is not set
>
>#
># Console display driver support
>#
>CONFIG_VGA_CONSOLE=y
># CONFIG_VGACON_SOFT_SCROLLBACK is not set
>CONFIG_DUMMY_CONSOLE=y
>CONFIG_DUMMY_CONSOLE_COLUMNS=80
>CONFIG_DUMMY_CONSOLE_ROWS=25
># CONFIG_SOUND is not set
>
>#
># HID support
>#
>CONFIG_HID=y
># CONFIG_HID_BATTERY_STRENGTH is not set
># CONFIG_HIDRAW is not set
># CONFIG_UHID is not set
>CONFIG_HID_GENERIC=y
>
>#
># Special HID drivers
>#
># CONFIG_HID_A4TECH is not set
># CONFIG_HID_ACRUX is not set
># CONFIG_HID_APPLE is not set
># CONFIG_HID_AUREAL is not set
># CONFIG_HID_BELKIN is not set
># CONFIG_HID_CHERRY is not set
># CONFIG_HID_CHICONY is not set
># CONFIG_HID_CMEDIA is not set
># CONFIG_HID_CYPRESS is not set
># CONFIG_HID_DRAGONRISE is not set
># CONFIG_HID_EMS_FF is not set
># CONFIG_HID_ELECOM is not set
># CONFIG_HID_EZKEY is not set
># CONFIG_HID_GEMBIRD is not set
># CONFIG_HID_GFRM is not set
># CONFIG_HID_KEYTOUCH is not set
># CONFIG_HID_KYE is not set
># CONFIG_HID_WALTOP is not set
># CONFIG_HID_GYRATION is not set
># CONFIG_HID_ICADE is not set
># CONFIG_HID_ITE is not set
># CONFIG_HID_TWINHAN is not set
># CONFIG_HID_KENSINGTON is not set
># CONFIG_HID_LCPOWER is not set
># CONFIG_HID_LENOVO is not set
># CONFIG_HID_LOGITECH is not set
># CONFIG_HID_MAGICMOUSE is not set
># CONFIG_HID_MAYFLASH is not set
># CONFIG_HID_MICROSOFT is not set
># CONFIG_HID_MONTEREY is not set
># CONFIG_HID_MULTITOUCH is not set
># CONFIG_HID_NTI is not set
># CONFIG_HID_ORTEK is not set
># CONFIG_HID_PANTHERLORD is not set
># CONFIG_HID_PETALYNX is not set
># CONFIG_HID_PICOLCD is not set
># CONFIG_HID_PLANTRONICS is not set
># CONFIG_HID_PRIMAX is not set
># CONFIG_HID_SAITEK is not set
># CONFIG_HID_SAMSUNG is not set
># CONFIG_HID_SPEEDLINK is not set
># CONFIG_HID_STEELSERIES is not set
># CONFIG_HID_SUNPLUS is not set
># CONFIG_HID_RMI is not set
># CONFIG_HID_GREENASIA is not set
># CONFIG_HID_SMARTJOYPLUS is not set
># CONFIG_HID_TIVO is not set
># CONFIG_HID_TOPSEED is not set
># CONFIG_HID_THRUSTMASTER is not set
># CONFIG_HID_UDRAW_PS3 is not set
># CONFIG_HID_XINMO is not set
># CONFIG_HID_ZEROPLUS is not set
># CONFIG_HID_ZYDACRON is not set
># CONFIG_HID_SENSOR_HUB is not set
># CONFIG_HID_ALPS is not set
>
>#
># I2C HID support
>#
># CONFIG_I2C_HID is not set
>
>#
># Intel ISH HID support
>#
># CONFIG_INTEL_ISH_HID is not set
>CONFIG_USB_OHCI_LITTLE_ENDIAN=y
># CONFIG_USB_SUPPORT is not set
># CONFIG_UWB is not set
># CONFIG_MMC is not set
># CONFIG_MEMSTICK is not set
># CONFIG_NEW_LEDS is not set
># CONFIG_ACCESSIBILITY is not set
># CONFIG_INFINIBAND is not set
>CONFIG_EDAC_ATOMIC_SCRUB=y
>CONFIG_EDAC_SUPPORT=y
>CONFIG_RTC_LIB=y
>CONFIG_RTC_MC146818_LIB=y
># CONFIG_RTC_CLASS is not set
># CONFIG_DMADEVICES is not set
>
>#
># DMABUF options
>#
># CONFIG_SYNC_FILE is not set
># CONFIG_AUXDISPLAY is not set
># CONFIG_UIO is not set
># CONFIG_VIRT_DRIVERS is not set
>
>#
># Virtio drivers
>#
># CONFIG_VIRTIO_PCI is not set
># CONFIG_VIRTIO_MMIO is not set
>
>#
># Microsoft Hyper-V guest support
>#
># CONFIG_HYPERV_TSCPAGE is not set
># CONFIG_STAGING is not set
># CONFIG_X86_PLATFORM_DEVICES is not set
>CONFIG_PMC_ATOM=y
># CONFIG_CHROME_PLATFORMS is not set
>CONFIG_CLKDEV_LOOKUP=y
>CONFIG_HAVE_CLK_PREPARE=y
>CONFIG_COMMON_CLK=y
>
>#
># Common Clock Framework
>#
># CONFIG_COMMON_CLK_SI5351 is not set
># CONFIG_COMMON_CLK_CDCE706 is not set
># CONFIG_COMMON_CLK_CS2000_CP is not set
># CONFIG_COMMON_CLK_NXP is not set
># CONFIG_COMMON_CLK_PXA is not set
># CONFIG_COMMON_CLK_PIC32 is not set
># CONFIG_HWSPINLOCK is not set
>
>#
># Clock Source drivers
>#
>CONFIG_CLKEVT_I8253=y
>CONFIG_I8253_LOCK=y
>CONFIG_CLKBLD_I8253=y
># CONFIG_ATMEL_PIT is not set
># CONFIG_SH_TIMER_CMT is not set
># CONFIG_SH_TIMER_MTU2 is not set
># CONFIG_SH_TIMER_TMU is not set
># CONFIG_EM_TIMER_STI is not set
># CONFIG_MAILBOX is not set
># CONFIG_IOMMU_SUPPORT is not set
>
>#
># Remoteproc drivers
>#
># CONFIG_REMOTEPROC is not set
>
>#
># Rpmsg drivers
>#
># CONFIG_RPMSG_VIRTIO is not set
>
>#
># SOC (System On Chip) specific Drivers
>#
>
>#
># Amlogic SoC drivers
>#
>
>#
># Broadcom SoC drivers
>#
>
>#
># i.MX SoC drivers
>#
>
>#
># Qualcomm SoC drivers
>#
># CONFIG_SUNXI_SRAM is not set
># CONFIG_SOC_TI is not set
># CONFIG_PM_DEVFREQ is not set
># CONFIG_EXTCON is not set
># CONFIG_MEMORY is not set
># CONFIG_IIO is not set
># CONFIG_NTB is not set
># CONFIG_VME_BUS is not set
># CONFIG_PWM is not set
>
>#
># IRQ chip support
>#
>CONFIG_ARM_GIC_MAX_NR=1
># CONFIG_ARM_GIC_V3_ITS is not set
># CONFIG_IPACK_BUS is not set
># CONFIG_RESET_CONTROLLER is not set
># CONFIG_FMC is not set
>
>#
># PHY Subsystem
>#
>CONFIG_GENERIC_PHY=y
># CONFIG_BCM_KONA_USB2_PHY is not set
># CONFIG_PHY_PXA_28NM_HSIC is not set
># CONFIG_PHY_PXA_28NM_USB2 is not set
># CONFIG_POWERCAP is not set
># CONFIG_MCB is not set
>
>#
># Performance monitor support
>#
># CONFIG_RAS is not set
># CONFIG_THUNDERBOLT is not set
>
>#
># Android
>#
># CONFIG_ANDROID is not set
># CONFIG_LIBNVDIMM is not set
># CONFIG_DAX is not set
># CONFIG_NVMEM is not set
># CONFIG_STM is not set
># CONFIG_INTEL_TH is not set
># CONFIG_FPGA is not set
>
>#
># FSI support
>#
># CONFIG_FSI is not set
>
>#
># Firmware Drivers
>#
># CONFIG_EDD is not set
># CONFIG_FIRMWARE_MEMMAP is not set
># CONFIG_DELL_RBU is not set
># CONFIG_DCDBAS is not set
># CONFIG_DMIID is not set
># CONFIG_DMI_SYSFS is not set
>CONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK=y
># CONFIG_FW_CFG_SYSFS is not set
># CONFIG_GOOGLE_FIRMWARE is not set
>
>#
># Tegra firmware driver
>#
>
>#
># File systems
>#
>CONFIG_DCACHE_WORD_ACCESS=y
>CONFIG_FS_IOMAP=y
># CONFIG_EXT2_FS is not set
># CONFIG_EXT3_FS is not set
>CONFIG_EXT4_FS=y
>CONFIG_EXT4_USE_FOR_EXT2=y
># CONFIG_EXT4_FS_POSIX_ACL is not set
># CONFIG_EXT4_FS_SECURITY is not set
># CONFIG_EXT4_ENCRYPTION is not set
># CONFIG_EXT4_DEBUG is not set
>CONFIG_JBD2=y
># CONFIG_JBD2_DEBUG is not set
>CONFIG_FS_MBCACHE=y
># CONFIG_REISERFS_FS is not set
># CONFIG_JFS_FS is not set
># CONFIG_XFS_FS is not set
># CONFIG_GFS2_FS is not set
># CONFIG_OCFS2_FS is not set
># CONFIG_BTRFS_FS is not set
># CONFIG_NILFS2_FS is not set
># CONFIG_F2FS_FS is not set
># CONFIG_FS_DAX is not set
># CONFIG_FS_POSIX_ACL is not set
>CONFIG_EXPORTFS=y
># CONFIG_EXPORTFS_BLOCK_OPS is not set
>CONFIG_FILE_LOCKING=y
>CONFIG_MANDATORY_FILE_LOCKING=y
># CONFIG_FS_ENCRYPTION is not set
>CONFIG_FSNOTIFY=y
>CONFIG_DNOTIFY=y
>CONFIG_INOTIFY_USER=y
># CONFIG_FANOTIFY is not set
># CONFIG_QUOTA is not set
># CONFIG_QUOTACTL is not set
># CONFIG_AUTOFS4_FS is not set
># CONFIG_FUSE_FS is not set
># CONFIG_OVERLAY_FS is not set
>
>#
># Caches
>#
># CONFIG_FSCACHE is not set
>
>#
># CD-ROM/DVD Filesystems
>#
># CONFIG_ISO9660_FS is not set
># CONFIG_UDF_FS is not set
>
>#
># DOS/FAT/NT Filesystems
>#
># CONFIG_MSDOS_FS is not set
># CONFIG_VFAT_FS is not set
># CONFIG_NTFS_FS is not set
>
>#
># Pseudo filesystems
>#
>CONFIG_PROC_FS=y
># CONFIG_PROC_KCORE is not set
>CONFIG_PROC_SYSCTL=y
>CONFIG_PROC_PAGE_MONITOR=y
>CONFIG_PROC_CHILDREN=y
>CONFIG_KERNFS=y
>CONFIG_SYSFS=y
>CONFIG_TMPFS=y
># CONFIG_TMPFS_POSIX_ACL is not set
># CONFIG_TMPFS_XATTR is not set
># CONFIG_HUGETLBFS is not set
># CONFIG_HUGETLB_PAGE is not set
>CONFIG_ARCH_HAS_GIGANTIC_PAGE=y
>CONFIG_CONFIGFS_FS=y
>CONFIG_MISC_FILESYSTEMS=y
># CONFIG_ORANGEFS_FS is not set
># CONFIG_ADFS_FS is not set
># CONFIG_AFFS_FS is not set
># CONFIG_ECRYPT_FS is not set
># CONFIG_HFS_FS is not set
># CONFIG_HFSPLUS_FS is not set
># CONFIG_BEFS_FS is not set
># CONFIG_BFS_FS is not set
># CONFIG_EFS_FS is not set
># CONFIG_CRAMFS is not set
># CONFIG_SQUASHFS is not set
># CONFIG_VXFS_FS is not set
># CONFIG_MINIX_FS is not set
># CONFIG_OMFS_FS is not set
># CONFIG_HPFS_FS is not set
># CONFIG_QNX4FS_FS is not set
># CONFIG_QNX6FS_FS is not set
># CONFIG_ROMFS_FS is not set
># CONFIG_PSTORE is not set
># CONFIG_SYSV_FS is not set
># CONFIG_UFS_FS is not set
># CONFIG_NETWORK_FILESYSTEMS is not set
>CONFIG_NLS=y
>CONFIG_NLS_DEFAULT="iso8859-1"
>CONFIG_NLS_CODEPAGE_437=y
># CONFIG_NLS_CODEPAGE_737 is not set
># CONFIG_NLS_CODEPAGE_775 is not set
># CONFIG_NLS_CODEPAGE_850 is not set
># CONFIG_NLS_CODEPAGE_852 is not set
># CONFIG_NLS_CODEPAGE_855 is not set
># CONFIG_NLS_CODEPAGE_857 is not set
># CONFIG_NLS_CODEPAGE_860 is not set
># CONFIG_NLS_CODEPAGE_861 is not set
># CONFIG_NLS_CODEPAGE_862 is not set
># CONFIG_NLS_CODEPAGE_863 is not set
># CONFIG_NLS_CODEPAGE_864 is not set
># CONFIG_NLS_CODEPAGE_865 is not set
># CONFIG_NLS_CODEPAGE_866 is not set
># CONFIG_NLS_CODEPAGE_869 is not set
># CONFIG_NLS_CODEPAGE_936 is not set
># CONFIG_NLS_CODEPAGE_950 is not set
># CONFIG_NLS_CODEPAGE_932 is not set
># CONFIG_NLS_CODEPAGE_949 is not set
># CONFIG_NLS_CODEPAGE_874 is not set
># CONFIG_NLS_ISO8859_8 is not set
># CONFIG_NLS_CODEPAGE_1250 is not set
># CONFIG_NLS_CODEPAGE_1251 is not set
># CONFIG_NLS_ASCII is not set
>CONFIG_NLS_ISO8859_1=y
># CONFIG_NLS_ISO8859_2 is not set
># CONFIG_NLS_ISO8859_3 is not set
># CONFIG_NLS_ISO8859_4 is not set
># CONFIG_NLS_ISO8859_5 is not set
># CONFIG_NLS_ISO8859_6 is not set
># CONFIG_NLS_ISO8859_7 is not set
># CONFIG_NLS_ISO8859_9 is not set
># CONFIG_NLS_ISO8859_13 is not set
># CONFIG_NLS_ISO8859_14 is not set
># CONFIG_NLS_ISO8859_15 is not set
># CONFIG_NLS_KOI8_R is not set
># CONFIG_NLS_KOI8_U is not set
># CONFIG_NLS_MAC_ROMAN is not set
># CONFIG_NLS_MAC_CELTIC is not set
># CONFIG_NLS_MAC_CENTEURO is not set
># CONFIG_NLS_MAC_CROATIAN is not set
># CONFIG_NLS_MAC_CYRILLIC is not set
># CONFIG_NLS_MAC_GAELIC is not set
># CONFIG_NLS_MAC_GREEK is not set
># CONFIG_NLS_MAC_ICELAND is not set
># CONFIG_NLS_MAC_INUIT is not set
># CONFIG_NLS_MAC_ROMANIAN is not set
># CONFIG_NLS_MAC_TURKISH is not set
># CONFIG_NLS_UTF8 is not set
># CONFIG_DLM is not set
>
>#
># Kernel hacking
>#
>CONFIG_TRACE_IRQFLAGS_SUPPORT=y
>
>#
># printk and dmesg options
>#
>CONFIG_PRINTK_TIME=y
>CONFIG_CONSOLE_LOGLEVEL_DEFAULT=7
>CONFIG_MESSAGE_LOGLEVEL_DEFAULT=4
># CONFIG_BOOT_PRINTK_DELAY is not set
>CONFIG_DYNAMIC_DEBUG=y
>
>#
># Compile-time checks and compiler options
>#
>CONFIG_DEBUG_INFO=y
># CONFIG_DEBUG_INFO_REDUCED is not set
># CONFIG_DEBUG_INFO_SPLIT is not set
># CONFIG_DEBUG_INFO_DWARF4 is not set
>CONFIG_GDB_SCRIPTS=y
>CONFIG_ENABLE_WARN_DEPRECATED=y
>CONFIG_ENABLE_MUST_CHECK=y
>CONFIG_FRAME_WARN=1024
># CONFIG_STRIP_ASM_SYMS is not set
># CONFIG_READABLE_ASM is not set
># CONFIG_UNUSED_SYMBOLS is not set
># CONFIG_PAGE_OWNER is not set
>CONFIG_DEBUG_FS=y
># CONFIG_HEADERS_CHECK is not set
># CONFIG_DEBUG_SECTION_MISMATCH is not set
>CONFIG_SECTION_MISMATCH_WARN_ONLY=y
>CONFIG_STACK_VALIDATION=y
># CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set
>CONFIG_MAGIC_SYSRQ=y
>CONFIG_MAGIC_SYSRQ_DEFAULT_ENABLE=0x1
>CONFIG_MAGIC_SYSRQ_SERIAL=y
>CONFIG_DEBUG_KERNEL=y
>
>#
># Memory Debugging
>#
># CONFIG_PAGE_EXTENSION is not set
># CONFIG_DEBUG_PAGEALLOC is not set
># CONFIG_PAGE_POISONING is not set
># CONFIG_DEBUG_PAGE_REF is not set
>CONFIG_DEBUG_RODATA_TEST=y
># CONFIG_DEBUG_OBJECTS is not set
># CONFIG_DEBUG_SLAB is not set
>CONFIG_HAVE_DEBUG_KMEMLEAK=y
># CONFIG_DEBUG_KMEMLEAK is not set
># CONFIG_DEBUG_STACK_USAGE is not set
># CONFIG_DEBUG_VM is not set
>CONFIG_ARCH_HAS_DEBUG_VIRTUAL=y
># CONFIG_DEBUG_VIRTUAL is not set
># CONFIG_DEBUG_MEMORY_INIT is not set
># CONFIG_DEBUG_PER_CPU_MAPS is not set
>CONFIG_HAVE_DEBUG_STACKOVERFLOW=y
># CONFIG_DEBUG_STACKOVERFLOW is not set
>CONFIG_HAVE_ARCH_KASAN=y
># CONFIG_KASAN is not set
>CONFIG_ARCH_HAS_KCOV=y
># CONFIG_KCOV is not set
># CONFIG_DEBUG_SHIRQ is not set
>
>#
># Debug Lockups and Hangs
>#
>CONFIG_LOCKUP_DETECTOR=y
>CONFIG_SOFTLOCKUP_DETECTOR=y
>CONFIG_HARDLOCKUP_DETECTOR_PERF=y
>CONFIG_HARDLOCKUP_CHECK_TIMESTAMP=y
>CONFIG_HARDLOCKUP_DETECTOR=y
># CONFIG_BOOTPARAM_HARDLOCKUP_PANIC is not set
>CONFIG_BOOTPARAM_HARDLOCKUP_PANIC_VALUE=0
># CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set
>CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0
>CONFIG_DETECT_HUNG_TASK=y
>CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=120
># CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set
>CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0
>CONFIG_WQ_WATCHDOG=y
># CONFIG_PANIC_ON_OOPS is not set
>CONFIG_PANIC_ON_OOPS_VALUE=0
>CONFIG_PANIC_TIMEOUT=0
>CONFIG_SCHED_DEBUG=y
># CONFIG_SCHED_INFO is not set
># CONFIG_SCHEDSTATS is not set
># CONFIG_SCHED_STACK_END_CHECK is not set
># CONFIG_DEBUG_TIMEKEEPING is not set
>
>#
># Lock Debugging (spinlocks, mutexes, etc...)
>#
>CONFIG_DEBUG_RT_MUTEXES=y
>CONFIG_DEBUG_SPINLOCK=y
>CONFIG_DEBUG_MUTEXES=y
>CONFIG_DEBUG_WW_MUTEX_SLOWPATH=y
>CONFIG_DEBUG_LOCK_ALLOC=y
>CONFIG_PROVE_LOCKING=y
>CONFIG_LOCKDEP=y
>CONFIG_LOCK_STAT=y
>CONFIG_LOCKDEP_CROSSRELEASE=y
>CONFIG_LOCKDEP_COMPLETIONS=y
># CONFIG_BOOTPARAM_LOCKDEP_CROSSRELEASE_FULLSTACK is not set
>CONFIG_DEBUG_LOCKDEP=y
>CONFIG_DEBUG_ATOMIC_SLEEP=y
># CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set
># CONFIG_LOCK_TORTURE_TEST is not set
># CONFIG_WW_MUTEX_SELFTEST is not set
>CONFIG_TRACE_IRQFLAGS=y
>CONFIG_STACKTRACE=y
># CONFIG_WARN_ALL_UNSEEDED_RANDOM is not set
># CONFIG_DEBUG_KOBJECT is not set
>CONFIG_DEBUG_BUGVERBOSE=y
># CONFIG_DEBUG_LIST is not set
># CONFIG_DEBUG_PI_LIST is not set
># CONFIG_DEBUG_SG is not set
># CONFIG_DEBUG_NOTIFIERS is not set
># CONFIG_DEBUG_CREDENTIALS is not set
>
>#
># RCU Debugging
>#
>CONFIG_PROVE_RCU=y
># CONFIG_TORTURE_TEST is not set
># CONFIG_RCU_PERF_TEST is not set
># CONFIG_RCU_TORTURE_TEST is not set
>CONFIG_RCU_CPU_STALL_TIMEOUT=21
># CONFIG_RCU_TRACE is not set
># CONFIG_RCU_EQS_DEBUG is not set
># CONFIG_DEBUG_WQ_FORCE_RR_CPU is not set
># CONFIG_DEBUG_BLOCK_EXT_DEVT is not set
># CONFIG_CPU_HOTPLUG_STATE_CONTROL is not set
># CONFIG_NOTIFIER_ERROR_INJECTION is not set
># CONFIG_FAULT_INJECTION is not set
># CONFIG_LATENCYTOP is not set
>CONFIG_USER_STACKTRACE_SUPPORT=y
>CONFIG_NOP_TRACER=y
>CONFIG_HAVE_FUNCTION_TRACER=y
>CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y
>CONFIG_HAVE_DYNAMIC_FTRACE=y
>CONFIG_HAVE_DYNAMIC_FTRACE_WITH_REGS=y
>CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y
>CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
>CONFIG_HAVE_FENTRY=y
>CONFIG_HAVE_C_RECORDMCOUNT=y
>CONFIG_TRACE_CLOCK=y
>CONFIG_RING_BUFFER=y
>CONFIG_EVENT_TRACING=y
>CONFIG_CONTEXT_SWITCH_TRACER=y
>CONFIG_TRACING=y
>CONFIG_TRACING_SUPPORT=y
>CONFIG_FTRACE=y
># CONFIG_FUNCTION_TRACER is not set
># CONFIG_IRQSOFF_TRACER is not set
># CONFIG_SCHED_TRACER is not set
># CONFIG_HWLAT_TRACER is not set
># CONFIG_ENABLE_DEFAULT_TRACERS is not set
># CONFIG_FTRACE_SYSCALLS is not set
># CONFIG_TRACER_SNAPSHOT is not set
>CONFIG_BRANCH_PROFILE_NONE=y
># CONFIG_PROFILE_ANNOTATED_BRANCHES is not set
># CONFIG_PROFILE_ALL_BRANCHES is not set
># CONFIG_STACK_TRACER is not set
># CONFIG_BLK_DEV_IO_TRACE is not set
>CONFIG_UPROBE_EVENTS=y
>CONFIG_PROBE_EVENTS=y
># CONFIG_MMIOTRACE is not set
># CONFIG_HIST_TRIGGERS is not set
># CONFIG_TRACEPOINT_BENCHMARK is not set
># CONFIG_RING_BUFFER_BENCHMARK is not set
># CONFIG_RING_BUFFER_STARTUP_TEST is not set
># CONFIG_TRACE_EVAL_MAP_FILE is not set
># CONFIG_PROVIDE_OHCI1394_DMA_INIT is not set
># CONFIG_DMA_API_DEBUG is not set
>
>#
># Runtime Testing
>#
># CONFIG_LKDTM is not set
># CONFIG_TEST_LIST_SORT is not set
># CONFIG_TEST_SORT is not set
># CONFIG_BACKTRACE_SELF_TEST is not set
># CONFIG_RBTREE_TEST is not set
># CONFIG_INTERVAL_TREE_TEST is not set
># CONFIG_PERCPU_TEST is not set
># CONFIG_ATOMIC64_SELFTEST is not set
># CONFIG_TEST_HEXDUMP is not set
># CONFIG_TEST_STRING_HELPERS is not set
># CONFIG_TEST_KSTRTOX is not set
># CONFIG_TEST_PRINTF is not set
># CONFIG_TEST_BITMAP is not set
># CONFIG_TEST_UUID is not set
># CONFIG_TEST_RHASHTABLE is not set
># CONFIG_TEST_HASH is not set
># CONFIG_TEST_LKM is not set
># CONFIG_TEST_USER_COPY is not set
># CONFIG_TEST_BPF is not set
># CONFIG_TEST_FIND_BIT is not set
># CONFIG_TEST_FIRMWARE is not set
># CONFIG_TEST_SYSCTL is not set
># CONFIG_TEST_UDELAY is not set
># CONFIG_TEST_STATIC_KEYS is not set
># CONFIG_TEST_KMOD is not set
># CONFIG_MEMTEST is not set
># CONFIG_BUG_ON_DATA_CORRUPTION is not set
># CONFIG_SAMPLES is not set
>CONFIG_HAVE_ARCH_KGDB=y
># CONFIG_KGDB is not set
>CONFIG_ARCH_HAS_UBSAN_SANITIZE_ALL=y
># CONFIG_ARCH_WANTS_UBSAN_NO_NULL is not set
># CONFIG_UBSAN is not set
>CONFIG_ARCH_HAS_DEVMEM_IS_ALLOWED=y
># CONFIG_STRICT_DEVMEM is not set
>CONFIG_X86_VERBOSE_BOOTUP=y
>CONFIG_EARLY_PRINTK=y
># CONFIG_EARLY_PRINTK_DBGP is not set
># CONFIG_EARLY_PRINTK_USB_XDBC is not set
># CONFIG_X86_PTDUMP_CORE is not set
># CONFIG_X86_PTDUMP is not set
># CONFIG_DEBUG_WX is not set
>CONFIG_DOUBLEFAULT=y
># CONFIG_DEBUG_TLBFLUSH is not set
># CONFIG_IOMMU_STRESS is not set
>CONFIG_HAVE_MMIOTRACE_SUPPORT=y
>CONFIG_IO_DELAY_TYPE_0X80=0
>CONFIG_IO_DELAY_TYPE_0XED=1
>CONFIG_IO_DELAY_TYPE_UDELAY=2
>CONFIG_IO_DELAY_TYPE_NONE=3
>CONFIG_IO_DELAY_0X80=y
># CONFIG_IO_DELAY_0XED is not set
># CONFIG_IO_DELAY_UDELAY is not set
># CONFIG_IO_DELAY_NONE is not set
>CONFIG_DEFAULT_IO_DELAY_TYPE=0
># CONFIG_DEBUG_BOOT_PARAMS is not set
># CONFIG_CPA_DEBUG is not set
># CONFIG_OPTIMIZE_INLINING is not set
># CONFIG_DEBUG_ENTRY is not set
># CONFIG_DEBUG_NMI_SELFTEST is not set
>CONFIG_X86_DEBUG_FPU=y
># CONFIG_PUNIT_ATOM_DEBUG is not set
>CONFIG_UNWINDER_ORC=y
># CONFIG_UNWINDER_FRAME_POINTER is not set
># CONFIG_UNWINDER_GUESS is not set
>
>#
># Security options
>#
>CONFIG_KEYS=y
>CONFIG_KEYS_COMPAT=y
># CONFIG_PERSISTENT_KEYRINGS is not set
># CONFIG_BIG_KEYS is not set
># CONFIG_ENCRYPTED_KEYS is not set
># CONFIG_KEY_DH_OPERATIONS is not set
># CONFIG_SECURITY_DMESG_RESTRICT is not set
># CONFIG_SECURITY is not set
># CONFIG_SECURITYFS is not set
>CONFIG_HAVE_HARDENED_USERCOPY_ALLOCATOR=y
># CONFIG_HARDENED_USERCOPY is not set
># CONFIG_FORTIFY_SOURCE is not set
># CONFIG_STATIC_USERMODEHELPER is not set
>CONFIG_DEFAULT_SECURITY_DAC=y
>CONFIG_DEFAULT_SECURITY=""
>CONFIG_CRYPTO=y
>
>#
># Crypto core or helper
>#
>CONFIG_CRYPTO_ALGAPI=y
>CONFIG_CRYPTO_ALGAPI2=y
>CONFIG_CRYPTO_AEAD=m
>CONFIG_CRYPTO_AEAD2=y
>CONFIG_CRYPTO_BLKCIPHER2=y
>CONFIG_CRYPTO_HASH=y
>CONFIG_CRYPTO_HASH2=y
>CONFIG_CRYPTO_RNG=m
>CONFIG_CRYPTO_RNG2=y
>CONFIG_CRYPTO_RNG_DEFAULT=m
>CONFIG_CRYPTO_AKCIPHER2=y
>CONFIG_CRYPTO_AKCIPHER=y
>CONFIG_CRYPTO_KPP2=y
>CONFIG_CRYPTO_ACOMP2=y
>CONFIG_CRYPTO_RSA=y
># CONFIG_CRYPTO_DH is not set
># CONFIG_CRYPTO_ECDH is not set
>CONFIG_CRYPTO_MANAGER=y
>CONFIG_CRYPTO_MANAGER2=y
># CONFIG_CRYPTO_USER is not set
>CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y
># CONFIG_CRYPTO_GF128MUL is not set
>CONFIG_CRYPTO_NULL=m
>CONFIG_CRYPTO_NULL2=y
># CONFIG_CRYPTO_PCRYPT is not set
>CONFIG_CRYPTO_WORKQUEUE=y
># CONFIG_CRYPTO_CRYPTD is not set
># CONFIG_CRYPTO_MCRYPTD is not set
># CONFIG_CRYPTO_AUTHENC is not set
># CONFIG_CRYPTO_TEST is not set
>
>#
># Authenticated Encryption with Associated Data
>#
># CONFIG_CRYPTO_CCM is not set
># CONFIG_CRYPTO_GCM is not set
># CONFIG_CRYPTO_CHACHA20POLY1305 is not set
># CONFIG_CRYPTO_SEQIV is not set
>CONFIG_CRYPTO_ECHAINIV=m
>
>#
># Block modes
>#
># CONFIG_CRYPTO_CBC is not set
># CONFIG_CRYPTO_CTR is not set
># CONFIG_CRYPTO_CTS is not set
># CONFIG_CRYPTO_ECB is not set
># CONFIG_CRYPTO_LRW is not set
># CONFIG_CRYPTO_PCBC is not set
># CONFIG_CRYPTO_XTS is not set
># CONFIG_CRYPTO_KEYWRAP is not set
>
>#
># Hash modes
>#
># CONFIG_CRYPTO_CMAC is not set
>CONFIG_CRYPTO_HMAC=m
># CONFIG_CRYPTO_XCBC is not set
># CONFIG_CRYPTO_VMAC is not set
>
>#
># Digest
>#
>CONFIG_CRYPTO_CRC32C=y
># CONFIG_CRYPTO_CRC32C_INTEL is not set
># CONFIG_CRYPTO_CRC32 is not set
># CONFIG_CRYPTO_CRC32_PCLMUL is not set
># CONFIG_CRYPTO_CRCT10DIF is not set
># CONFIG_CRYPTO_GHASH is not set
># CONFIG_CRYPTO_POLY1305 is not set
># CONFIG_CRYPTO_POLY1305_X86_64 is not set
># CONFIG_CRYPTO_MD4 is not set
># CONFIG_CRYPTO_MD5 is not set
># CONFIG_CRYPTO_MICHAEL_MIC is not set
># CONFIG_CRYPTO_RMD128 is not set
># CONFIG_CRYPTO_RMD160 is not set
># CONFIG_CRYPTO_RMD256 is not set
># CONFIG_CRYPTO_RMD320 is not set
># CONFIG_CRYPTO_SHA1 is not set
># CONFIG_CRYPTO_SHA1_SSSE3 is not set
># CONFIG_CRYPTO_SHA256_SSSE3 is not set
># CONFIG_CRYPTO_SHA512_SSSE3 is not set
># CONFIG_CRYPTO_SHA1_MB is not set
># CONFIG_CRYPTO_SHA256_MB is not set
># CONFIG_CRYPTO_SHA512_MB is not set
>CONFIG_CRYPTO_SHA256=y
># CONFIG_CRYPTO_SHA512 is not set
># CONFIG_CRYPTO_SHA3 is not set
># CONFIG_CRYPTO_SM3 is not set
># CONFIG_CRYPTO_TGR192 is not set
># CONFIG_CRYPTO_WP512 is not set
># CONFIG_CRYPTO_GHASH_CLMUL_NI_INTEL is not set
>
>#
># Ciphers
>#
>CONFIG_CRYPTO_AES=y
># CONFIG_CRYPTO_AES_TI is not set
># CONFIG_CRYPTO_AES_X86_64 is not set
># CONFIG_CRYPTO_AES_NI_INTEL is not set
># CONFIG_CRYPTO_ANUBIS is not set
># CONFIG_CRYPTO_ARC4 is not set
># CONFIG_CRYPTO_BLOWFISH is not set
># CONFIG_CRYPTO_BLOWFISH_X86_64 is not set
># CONFIG_CRYPTO_CAMELLIA is not set
># CONFIG_CRYPTO_CAMELLIA_X86_64 is not set
># CONFIG_CRYPTO_CAMELLIA_AESNI_AVX_X86_64 is not set
># CONFIG_CRYPTO_CAMELLIA_AESNI_AVX2_X86_64 is not set
># CONFIG_CRYPTO_CAST5 is not set
># CONFIG_CRYPTO_CAST5_AVX_X86_64 is not set
># CONFIG_CRYPTO_CAST6 is not set
># CONFIG_CRYPTO_CAST6_AVX_X86_64 is not set
># CONFIG_CRYPTO_DES is not set
># CONFIG_CRYPTO_DES3_EDE_X86_64 is not set
># CONFIG_CRYPTO_FCRYPT is not set
># CONFIG_CRYPTO_KHAZAD is not set
># CONFIG_CRYPTO_SALSA20 is not set
># CONFIG_CRYPTO_SALSA20_X86_64 is not set
># CONFIG_CRYPTO_CHACHA20 is not set
># CONFIG_CRYPTO_CHACHA20_X86_64 is not set
># CONFIG_CRYPTO_SEED is not set
># CONFIG_CRYPTO_SERPENT is not set
># CONFIG_CRYPTO_SERPENT_SSE2_X86_64 is not set
># CONFIG_CRYPTO_SERPENT_AVX_X86_64 is not set
># CONFIG_CRYPTO_SERPENT_AVX2_X86_64 is not set
># CONFIG_CRYPTO_TEA is not set
># CONFIG_CRYPTO_TWOFISH is not set
># CONFIG_CRYPTO_TWOFISH_X86_64 is not set
># CONFIG_CRYPTO_TWOFISH_X86_64_3WAY is not set
># CONFIG_CRYPTO_TWOFISH_AVX_X86_64 is not set
>
>#
># Compression
>#
>CONFIG_CRYPTO_DEFLATE=y
>CONFIG_CRYPTO_LZO=y
># CONFIG_CRYPTO_842 is not set
># CONFIG_CRYPTO_LZ4 is not set
># CONFIG_CRYPTO_LZ4HC is not set
>
>#
># Random Number Generation
>#
># CONFIG_CRYPTO_ANSI_CPRNG is not set
>CONFIG_CRYPTO_DRBG_MENU=m
>CONFIG_CRYPTO_DRBG_HMAC=y
># CONFIG_CRYPTO_DRBG_HASH is not set
>CONFIG_CRYPTO_DRBG=m
>CONFIG_CRYPTO_JITTERENTROPY=m
># CONFIG_CRYPTO_USER_API_HASH is not set
># CONFIG_CRYPTO_USER_API_SKCIPHER is not set
># CONFIG_CRYPTO_USER_API_RNG is not set
># CONFIG_CRYPTO_USER_API_AEAD is not set
>CONFIG_CRYPTO_HASH_INFO=y
># CONFIG_CRYPTO_HW is not set
>CONFIG_ASYMMETRIC_KEY_TYPE=y
>CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE=y
>CONFIG_X509_CERTIFICATE_PARSER=y
>CONFIG_PKCS7_MESSAGE_PARSER=y
># CONFIG_PKCS7_TEST_KEY is not set
># CONFIG_SIGNED_PE_FILE_VERIFICATION is not set
>
>#
># Certificates for signature checking
>#
>CONFIG_SYSTEM_TRUSTED_KEYRING=y
>CONFIG_SYSTEM_TRUSTED_KEYS=""
># CONFIG_SYSTEM_EXTRA_CERTIFICATE is not set
># CONFIG_SECONDARY_TRUSTED_KEYRING is not set
># CONFIG_SYSTEM_BLACKLIST_KEYRING is not set
>CONFIG_HAVE_KVM=y
># CONFIG_VIRTUALIZATION is not set
>CONFIG_BINARY_PRINTF=y
>
>#
># Library routines
>#
>CONFIG_BITREVERSE=y
># CONFIG_HAVE_ARCH_BITREVERSE is not set
>CONFIG_RATIONAL=y
>CONFIG_GENERIC_STRNCPY_FROM_USER=y
>CONFIG_GENERIC_STRNLEN_USER=y
>CONFIG_GENERIC_NET_UTILS=y
>CONFIG_GENERIC_FIND_FIRST_BIT=y
>CONFIG_GENERIC_PCI_IOMAP=y
>CONFIG_GENERIC_IOMAP=y
>CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y
>CONFIG_ARCH_HAS_FAST_MULTIPLIER=y
># CONFIG_CRC_CCITT is not set
>CONFIG_CRC16=y
># CONFIG_CRC_T10DIF is not set
>CONFIG_CRC_ITU_T=y
>CONFIG_CRC32=y
># CONFIG_CRC32_SELFTEST is not set
>CONFIG_CRC32_SLICEBY8=y
># CONFIG_CRC32_SLICEBY4 is not set
># CONFIG_CRC32_SARWATE is not set
># CONFIG_CRC32_BIT is not set
># CONFIG_CRC4 is not set
># CONFIG_CRC7 is not set
>CONFIG_LIBCRC32C=m
># CONFIG_CRC8 is not set
># CONFIG_AUDIT_ARCH_COMPAT_GENERIC is not set
># CONFIG_RANDOM32_SELFTEST is not set
>CONFIG_ZLIB_INFLATE=y
>CONFIG_ZLIB_DEFLATE=y
>CONFIG_LZO_COMPRESS=y
>CONFIG_LZO_DECOMPRESS=y
>CONFIG_LZ4_DECOMPRESS=y
>CONFIG_XZ_DEC=y
>CONFIG_XZ_DEC_X86=y
># CONFIG_XZ_DEC_POWERPC is not set
># CONFIG_XZ_DEC_IA64 is not set
># CONFIG_XZ_DEC_ARM is not set
># CONFIG_XZ_DEC_ARMTHUMB is not set
># CONFIG_XZ_DEC_SPARC is not set
>CONFIG_XZ_DEC_BCJ=y
># CONFIG_XZ_DEC_TEST is not set
>CONFIG_DECOMPRESS_GZIP=y
>CONFIG_DECOMPRESS_BZIP2=y
>CONFIG_DECOMPRESS_LZMA=y
>CONFIG_DECOMPRESS_XZ=y
>CONFIG_DECOMPRESS_LZO=y
>CONFIG_DECOMPRESS_LZ4=y
>CONFIG_GENERIC_ALLOCATOR=y
>CONFIG_ASSOCIATIVE_ARRAY=y
>CONFIG_HAS_IOMEM=y
>CONFIG_HAS_IOPORT_MAP=y
>CONFIG_HAS_DMA=y
># CONFIG_DMA_NOOP_OPS is not set
># CONFIG_DMA_VIRT_OPS is not set
>CONFIG_CPU_RMAP=y
>CONFIG_DQL=y
>CONFIG_GLOB=y
># CONFIG_GLOB_SELFTEST is not set
>CONFIG_NLATTR=y
>CONFIG_CLZ_TAB=y
># CONFIG_CORDIC is not set
># CONFIG_DDR is not set
># CONFIG_IRQ_POLL is not set
>CONFIG_MPILIB=y
>CONFIG_OID_REGISTRY=y
># CONFIG_SG_SPLIT is not set
>CONFIG_SG_POOL=y
>CONFIG_ARCH_HAS_SG_CHAIN=y
>CONFIG_ARCH_HAS_PMEM_API=y
>CONFIG_ARCH_HAS_UACCESS_FLUSHCACHE=y
>CONFIG_SBITMAP=y
># CONFIG_STRING_SELFTEST is not set
^ permalink raw reply
* [PATCH] selftests/bpf: check return value of fopen in test_verifier.c
From: Jesper Dangaard Brouer @ 2018-05-17 17:39 UTC (permalink / raw)
To: netdev, Jesper Dangaard Brouer; +Cc: Daniel Borkmann, joe, Alexei Starovoitov
Commit 0a6748740368 ("selftests/bpf: Only run tests if !bpf_disabled")
forgot to check return value of fopen.
This caused some confusion, when running test_verifier (from
tools/testing/selftests/bpf/) on an older kernel (< v4.4) as it will
simply seqfault.
This fix avoids the segfault and prints an error, but allow program to
continue. Given the sysctl was introduced in 1be7f75d1668 ("bpf:
enable non-root eBPF programs"), we know that the running kernel
cannot support unpriv, thus continue with unpriv_disabled = true.
Fixes: 0a6748740368 ("selftests/bpf: Only run tests if !bpf_disabled")
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
---
tools/testing/selftests/bpf/test_verifier.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tools/testing/selftests/bpf/test_verifier.c b/tools/testing/selftests/bpf/test_verifier.c
index a877af00605d..94498eaf872e 100644
--- a/tools/testing/selftests/bpf/test_verifier.c
+++ b/tools/testing/selftests/bpf/test_verifier.c
@@ -12337,6 +12337,11 @@ static void get_unpriv_disabled()
FILE *fd;
fd = fopen("/proc/sys/"UNPRIV_SYSCTL, "r");
+ if (!fd) {
+ perror("fopen /proc/sys/"UNPRIV_SYSCTL);
+ unpriv_disabled = true;
+ return;
+ }
if (fgets(buf, 2, fd) == buf && atoi(buf))
unpriv_disabled = true;
fclose(fd);
^ permalink raw reply related
* Re: Request for -stable inclusion: time stamping fix for nfp
From: Guillaume Nault @ 2018-05-17 17:41 UTC (permalink / raw)
To: David Miller; +Cc: jakub.kicinski, netdev
In-Reply-To: <20171116.101328.982221191751997203.davem@davemloft.net>
On Thu, Nov 16, 2017 at 10:13:28AM +0900, David Miller wrote:
> From: Guillaume Nault <g.nault@alphalink.fr>
> Date: Wed, 15 Nov 2017 17:20:46 +0100
>
> > Can you please queue commit 46f1c52e66db
> > ("nfp: TX time stamp packets before HW doorbell is rung") for -stable?
> > We got hit but this bug in the late summer. We run this fix internally
> > since a couple of months, but that'd be better to have it officially
> > backported so everyone can benefit of it.
>
> Queued up.
I guess this one got lost somewhere as it doesn't appear in linux-4.9.y
(other trees aren't relevant).
If that's unintentional, than can you please re-queue
46f1c52e66db ("nfp: TX time stamp packets before HW doorbell is rung")
to -stable?
Sorry for noticing so late.
Guillaume
^ permalink raw reply
* [PATCH v2 net-next 0/6] tcp: implement SACK compression
From: Eric Dumazet @ 2018-05-17 17:47 UTC (permalink / raw)
To: David S . Miller
Cc: netdev, Toke Høiland-Jørgensen, Neal Cardwell,
Yuchung Cheng, Soheil Hassas Yeganeh, Eric Dumazet, Eric Dumazet
When TCP receives an out-of-order packet, it immediately sends
a SACK packet, generating network load but also forcing the
receiver to send 1-MSS pathological packets, increasing its
RTX queue length/depth, and thus processing time.
Wifi networks suffer from this aggressive behavior, but generally
speaking, all these SACK packets add fuel to the fire when networks
are under congestion.
This patch series adds SACK compression, but the infrastructure
could be leveraged to also compress ACK in the future.
v2: Addressed Neal feedback.
Added two sysctls to allow fine tuning, or even disabling the feature.
Eric Dumazet (6):
tcp: use __sock_put() instead of sock_put() in tcp_clear_xmit_timers()
tcp: do not force quickack when receiving out-of-order packets
tcp: add SACK compression
tcp: add TCPAckCompressed SNMP counter
tcp: add tcp_comp_sack_delay_ns sysctl
tcp: add tcp_comp_sack_nr sysctl
Documentation/networking/ip-sysctl.txt | 13 ++++++++++
include/linux/tcp.h | 2 ++
include/net/netns/ipv4.h | 2 ++
include/net/tcp.h | 5 +++-
include/uapi/linux/snmp.h | 1 +
net/ipv4/proc.c | 1 +
net/ipv4/sysctl_net_ipv4.c | 17 +++++++++++++
net/ipv4/tcp.c | 1 +
net/ipv4/tcp_input.c | 34 ++++++++++++++++++++------
net/ipv4/tcp_ipv4.c | 2 ++
net/ipv4/tcp_output.c | 9 +++++++
net/ipv4/tcp_timer.c | 25 +++++++++++++++++++
12 files changed, 103 insertions(+), 9 deletions(-)
--
2.17.0.441.gb46fe60e1d-goog
^ permalink raw reply
page: next (older) | prev (newer) | latest
- recent:[subjects (threaded)|topics (new)|topics (active)]
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox