19
19
#include <linux/kthread.h>
20
20
#include <linux/interrupt.h>
21
21
#include <linux/pm_runtime.h>
22
+ #include <linux/sizes.h>
22
23
23
24
#include "mei_dev.h"
24
25
#include "hbm.h"
@@ -1389,6 +1390,11 @@ static bool mei_me_fw_type_sps(struct pci_dev *pdev)
1389
1390
.fw_status.status[4] = PCI_CFG_HFS_5, \
1390
1391
.fw_status.status[5] = PCI_CFG_HFS_6
1391
1392
1393
+ #define MEI_CFG_DMA_128 \
1394
+ .dma_size[DMA_DSCR_HOST] = SZ_128K, \
1395
+ .dma_size[DMA_DSCR_DEVICE] = SZ_128K, \
1396
+ .dma_size[DMA_DSCR_CTRL] = PAGE_SIZE
1397
+
1392
1398
/* ICH Legacy devices */
1393
1399
static const struct mei_cfg mei_me_ich_cfg = {
1394
1400
MEI_CFG_ICH_HFS ,
@@ -1421,6 +1427,12 @@ static const struct mei_cfg mei_me_pch8_sps_cfg = {
1421
1427
MEI_CFG_FW_SPS ,
1422
1428
};
1423
1429
1430
+ /* Cannon Lake and newer devices */
1431
+ static const struct mei_cfg mei_me_pch12_cfg = {
1432
+ MEI_CFG_PCH8_HFS ,
1433
+ MEI_CFG_DMA_128 ,
1434
+ };
1435
+
1424
1436
/*
1425
1437
* mei_cfg_list - A list of platform platform specific configurations.
1426
1438
* Note: has to be synchronized with enum mei_cfg_idx.
@@ -1433,6 +1445,7 @@ static const struct mei_cfg *const mei_cfg_list[] = {
1433
1445
[MEI_ME_PCH_CPT_PBG_CFG ] = & mei_me_pch_cpt_pbg_cfg ,
1434
1446
[MEI_ME_PCH8_CFG ] = & mei_me_pch8_cfg ,
1435
1447
[MEI_ME_PCH8_SPS_CFG ] = & mei_me_pch8_sps_cfg ,
1448
+ [MEI_ME_PCH12_CFG ] = & mei_me_pch12_cfg ,
1436
1449
};
1437
1450
1438
1451
const struct mei_cfg * mei_me_get_cfg (kernel_ulong_t idx )
0 commit comments