~vicamo/+git/ubuntu-kernel:bug-1847450/intel_pmc_core-for-comet-lake/oem-osp1-bionic

Last commit made on 2019-11-27
Get this branch:
git clone -b bug-1847450/intel_pmc_core-for-comet-lake/oem-osp1-bionic https://git.launchpad.net/~vicamo/+git/ubuntu-kernel
Only You-Sheng Yang can upload to this branch. If you are You-Sheng Yang please log in for upload directions.

Branch merges

Branch information

Name:
bug-1847450/intel_pmc_core-for-comet-lake/oem-osp1-bionic
Repository:
lp:~vicamo/+git/ubuntu-kernel

Recent commits

73b3c41... by You-Sheng Yang

Bug 1847450: platform/x86: intel_pmc_core: Add Comet Lake (CML) platform support to intel_pmc_core driver

947e74d... by Gayatri Kammela <email address hidden>

UBUNTU: SAUCE: platform/x86: intel_pmc_core: Add Comet Lake (CML) platform support to intel_pmc_core driver

Add Comet Lake to the list of the platforms that intel_pmc_core driver
supports for pmc_core device.

Just like Ice Lake, Comet Lake can also reuse all the Cannon Lake PCH
IPs. No additional effort is needed to enable but to simply reuse them.

Cc: Mario Limonciello <email address hidden>
Cc: Peter Zijlstra <email address hidden>
Cc: Srinivas Pandruvada <email address hidden>
Cc: Andy Shevchenko <email address hidden>
Cc: Kan Liang <email address hidden>
Cc: David E. Box <email address hidden>
Cc: Rajneesh Bhardwaj <email address hidden>
Cc: Tony Luck <email address hidden>
Signed-off-by: Gayatri Kammela <email address hidden>
(backported from https://lkml.org/lkml/2019/11/18/713)
Signed-off-by: You-Sheng Yang <email address hidden>

84efca0... by Timo Aaltonen

UBUNTU: Ubuntu-oem-osp1-5.0.0-1030.34

Signed-off-by: Timo Aaltonen <email address hidden>

601a606... by Kai-Heng Feng

UBUNTU: [Config] CONFIG_RTW88_8723DE=y

BugLink: https://bugs.launchpad.net/bugs/1780590

Enable Realtek 8723DE Wireless LAN.

Signed-off-by: Kai-Heng Feng <email address hidden>
Signed-off-by: Timo Aaltonen <email address hidden>

4646c21... by Ping-Ke Shih

UBUNTU: SAUCE: rtw88: add ciphers to suppress error message

BugLink: https://bugs.launchpad.net/bugs/1780590

Though hardware isn't implement CCMP-256, GCMP and GCMP-256, it's possible
to fallback to use software de-/en-cryption implemented by mac80211.

Without adding these chipers, kernel log will show something if we connect
to a WPA3 enterprise AP, likes
  wlan0: failed to set key (1, ff:ff:ff:ff:ff:ff) to hardware (-524)

Change-Id: I0593008f2c971f66dd4c772d976a207bb5cd0e5b
Signed-off-by: Ping-Ke Shih <email address hidden>
Signed-off-by: Kai-Heng Feng <email address hidden>
Signed-off-by: Timo Aaltonen <email address hidden>

c9fc716... by Ping-Ke Shih

UBUNTU: SAUCE: rtw88: sar: dump sar information via debugfs

BugLink: https://bugs.launchpad.net/bugs/1780590

To know detail of SAR information, we add a debugfs entry to dump the raw
content written in ACPI, and also dump the translated data (real number in
decimal). The output looks like

  Customer ID: 0x5048
  WiFiEnable: 0x1
  Total SAR Table Count: 3
  Current SAR Table Index: (02 02 02 02)

  Dump RWRD SAR RAW DATA. (Total Count: 60)
  01: 0e 0c 0c 0c 0c 0e 0c 0c 0c 0c 0e 0c 0c 0c 0c 12 10 10 12 12
  02: 08 03 03 03 03 08 03 03 03 03 08 03 03 03 03 12 10 10 12 12
  03: 04 ff ff ff ff 04 ff ff ff ff 04 ff ff ff ff 12 10 10 12 12

  Show SAR PowerLimit:
  2.4G Antenna 0: [14.0] dBm
  2.4G Antenna 1: [14.0] dBm

  5G Antenna 0: [11.500, 11.500, 11.500, 11.500, ] dBm
  5G Antenna 1: [11.500, 11.500, 11.500, 11.500, ] dBm

  Dump Geo-SAR Table RAW DATA. (Total Count: 30)
  geo-0: 10 04 08 01 01 0f 04 0c 01 01
  geo-1: 0c 02 06 03 03 06 04 08 03 03
  geo-2: 10 03 03 03 03 0f 03 03 03 03

  Show Geo-SAR PowerLimit:
  2G Geo Table Index: 1
  5G Geo Table Index: 1

  2GHz:
  Max Power: [16.0] dBm
  Ant-0 delta value: [1.0] dB
  Ant-1 delta value: [3.0] dB

  5GHz:
  Max Power: [13.0] dBm
  Ant-0 delta value: [2.0] dB
  Ant-1 delta value: [4.0] dB

Change-Id: Iea86d50ac67f63eb7cbf7eda5aed9c2516808d19
Signed-off-by: Ping-Ke Shih <email address hidden>
Signed-off-by: Kai-Heng Feng <email address hidden>
Signed-off-by: Timo Aaltonen <email address hidden>

7221603... by Ping-Ke Shih

UBUNTU: SAUCE: rtw88: sar: add sar_work to poll if RWSI changed

BugLink: https://bugs.launchpad.net/bugs/1780590

RWSI is used to tell driver operating mode is changed. For example, a
notebook PC can also play as a tablet. Driver detects RWSI in period of
10 seconds, and reconfigure SAR power limit if RWSI values are changed.

Change-Id: Ie7bb721aae72a055e1b64b079176d544abbfbe40
Signed-off-by: Ping-Ke Shih <email address hidden>
Signed-off-by: Kai-Heng Feng <email address hidden>
Signed-off-by: Timo Aaltonen <email address hidden>

c0e98b2... by Ping-Ke Shih

UBUNTU: SAUCE: rtw88: sar: apply RWRD/RWSI/RWGS tables to tx power limit

BugLink: https://bugs.launchpad.net/bugs/1780590

We apply four frequency ranges to calculate TX power, though RWRD defines
five ranges. RWGS is used to adjust SAR power limit value and define the
upper bound corresponding to geography.

Signed-off-by: Ping-Ke Shih <email address hidden>
Signed-off-by: Kai-Heng Feng <email address hidden>
Signed-off-by: Timo Aaltonen <email address hidden>

66b22f5... by Ping-Ke Shih

UBUNTU: SAUCE: rtw88: sar: add basic parser of RT tables

BugLink: https://bugs.launchpad.net/bugs/1780590

Three tables RWRD, RWSI and RWGS are defined to support SAR power limit
proposed by Realtek. RWRD describes main power limit values that can support
more than one mode, tablet, lid close and etc. RWSI is used to indicate
which mode is operating, so driver must apply SAR power limit corresponding
to the mode. Since each country (geography) has some different SAR power
limit values, RWGS is introduced to adjust power limit mentioned in RWRD
if stack hints driver that regulatory domain is changed.

RWRD contains customer ID, SAR enable, table count and SAR power limit.
With different customer ID, the formats of RWRD, RWSI and RWGS are
different, such as the number of fields in table and precision of power
limit value (in Q-notation). By now, two customer IDs are supported, RT
and HP. 'table count' indicates total number of tables corresponding to
operating modes, and selected by WRSI.

To valid RWSI and RWGS tables, we check if read length and sizeof() are
equal. But these checking statements depend on RWRD's ID are little
verbose, use two predefined values, rwsi_sz and rwgs_sz, would be easy
to understand the code.

Change-Id: I49526fc1871143f9fdb86c50c44d5a40d68cefdb
Signed-off-by: Ping-Ke Shih <email address hidden>
Signed-off-by: Kai-Heng Feng <email address hidden>
Signed-off-by: Timo Aaltonen <email address hidden>

e53032f... by Ping-Ke Shih

UBUNTU: SAUCE: rtw88: sar: generalize WRDS read function to support more tables

BugLink: https://bugs.launchpad.net/bugs/1780590

WRDS is known as static SAR table, and we're going to support dynamic SAR
table named EWDS that contains three profiles, but definition of profile
is the same with WRDS. To share the common code, this commit generalizes
the code, but code logic is unchanged.

This commit will be merged into "rtw88: sar: Load SAR table from ACPI"

Change-Id: Iea120ad86a0c8b466bfae7c07c57d0d153d0d833
Signed-off-by: Ping-Ke Shih <email address hidden>
Signed-off-by: Kai-Heng Feng <email address hidden>
Signed-off-by: Timo Aaltonen <email address hidden>