Commit graph

1,169,205 commits

Author SHA1 Message Date
Uwe Kleine-König
f35a7249b8 media: dvb-frontends/mxl692: Convert to i2c's .probe_new()
The probe function doesn't make use of the i2c_device_id * parameter so it
can be trivially converted.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2022-11-21 11:04:21 +01:00
Uwe Kleine-König
32f2129cce media: dvb-frontends/mn88473: Convert to i2c's .probe_new()
The probe function doesn't make use of the i2c_device_id * parameter so it
can be trivially converted.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2022-11-21 11:04:21 +01:00
Uwe Kleine-König
d5f96d7a35 media: dvb-frontends/mn88472: Convert to i2c's .probe_new()
The probe function doesn't make use of the i2c_device_id * parameter so it
can be trivially converted.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2022-11-21 11:04:20 +01:00
Uwe Kleine-König
0bada33eef media: dvb-frontends/lgdt330x: Convert to i2c's .probe_new()
The probe function doesn't make use of the i2c_device_id * parameter so it
can be trivially converted.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2022-11-21 11:04:20 +01:00
Uwe Kleine-König
f11b4a06b4 media: dvb-frontends/lgdt3306a: Convert to i2c's .probe_new()
The probe function doesn't make use of the i2c_device_id * parameter so it
can be trivially converted.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2022-11-21 11:04:20 +01:00
Uwe Kleine-König
006dfdbb05 media: dvb-frontends/helene: Convert to i2c's .probe_new()
The probe function doesn't make use of the i2c_device_id * parameter so it
can be trivially converted.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2022-11-21 11:04:20 +01:00
Uwe Kleine-König
8f17faa5c6 media: dvb-frontends/cxd2820r_core: Convert to i2c's .probe_new()
The probe function doesn't make use of the i2c_device_id * parameter so it
can be trivially converted.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2022-11-21 11:04:19 +01:00
Uwe Kleine-König
36628e8ed2 media: dvb-frontends/cxd2099: Convert to i2c's .probe_new()
The probe function doesn't make use of the i2c_device_id * parameter so it
can be trivially converted.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2022-11-21 11:04:19 +01:00
Uwe Kleine-König
3a29275de5 media: dvb-frontends/au8522_decoder: Convert to i2c's .probe_new()
The probe function doesn't make use of the i2c_device_id * parameter so it
can be trivially converted.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2022-11-21 11:04:19 +01:00
Uwe Kleine-König
479ac4dd6d media: dvb-frontends/af9033: Convert to i2c's .probe_new()
The probe function doesn't make use of the i2c_device_id * parameter so it
can be trivially converted.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2022-11-21 11:04:18 +01:00
Uwe Kleine-König
e84171209b media: dvb-frontends/af9013: Convert to i2c's .probe_new()
The probe function doesn't make use of the i2c_device_id * parameter so it
can be trivially converted.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2022-11-21 11:04:18 +01:00
Uwe Kleine-König
6266daa652 media: dvb-frontends/a8293: Convert to i2c's .probe_new()
The probe function doesn't make use of the i2c_device_id * parameter so it
can be trivially converted.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2022-11-21 11:04:18 +01:00
Peter Gonda
47894e0fa6 virt/sev-guest: Prevent IV reuse in the SNP guest driver
The AMD Secure Processor (ASP) and an SNP guest use a series of
AES-GCM keys called VMPCKs to communicate securely with each other.
The IV to this scheme is a sequence number that both the ASP and the
guest track.

Currently, this sequence number in a guest request must exactly match
the sequence number tracked by the ASP. This means that if the guest
sees an error from the host during a request it can only retry that
exact request or disable the VMPCK to prevent an IV reuse. AES-GCM
cannot tolerate IV reuse, see: "Authentication Failures in NIST version
of GCM" - Antoine Joux et al.

In order to address this, make handle_guest_request() delete the VMPCK
on any non successful return. To allow userspace querying the cert_data
length make handle_guest_request() save the number of pages required by
the host, then have handle_guest_request() retry the request without
requesting the extended data, then return the number of pages required
back to userspace.

  [ bp: Massage, incorporate Tom's review comments. ]

Fixes: fce96cf044 ("virt: Add SEV-SNP guest driver")
Reported-by: Peter Gonda <pgonda@google.com>
Signed-off-by: Peter Gonda <pgonda@google.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Cc: stable@kernel.org
Link: https://lore.kernel.org/r/20221116175558.2373112-1-pgonda@google.com
2022-11-21 11:03:40 +01:00
Arnd Bergmann
cdd1db7660
Merge branch 'dt/dtbo-rename' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux into soc/dt
* 'dt/dtbo-rename' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
  kbuild: Cleanup DT Overlay intermediate files as appropriate
  staging: pi433: overlay: Rename overlay source file from .dts to .dtso
  of: overlay: rename overlay source files from .dts to .dtso
  kbuild: Allow DTB overlays to built into .dtbo.S files
  kbuild: Allow DTB overlays to built from .dtso named source files

Link: https://lore.kernel.org/r/20221118211103.GA1334449-robh@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2022-11-21 11:01:48 +01:00
Arnd Bergmann
55aa08a5be - Added H616 USB node
- Enabled bluetooth on Pinebook A64
 - Added f1c100s PWM, I2C, CIR and LRADC nodes
 - Added USB HCI0 PHYs property to H3/H5
 -----BEGIN PGP SIGNATURE-----
 
 iHUEABYIAB0WIQSPRixG1tysKC2PKM10Ba7+DO8kkwUCY3fo/wAKCRB0Ba7+DO8k
 k2/RAP95cR5K7szlGWYl7nty5XHbCzE1+8+LSvtZ6bA1Z29Z0AD/UZaQNUS4Rnlz
 zAPgR5HJ5h3RiejIaMgk4IhjIwDMLAI=
 =UTsi
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEo6/YBQwIrVS28WGKmmx57+YAGNkFAmN7S+sACgkQmmx57+YA
 GNkHlQ//e4AXpva6tkLDYEMHRuV5AldWV7ogu6oNm0/ZdPVNSV/lnRD7aWV3s9en
 1i8DkaakW0eblmUJXqP7wVHVnoeOJ4oklFgWb6VYnrjNj34/ZhwfJPqh64xwCkEV
 O3/4UO3C1gBSPf0bBghHe5EzG83dZB6Lav1E2xDyXkg0NQQwjvJKkCkpJsISazGU
 40XDr7FofTJGpEXiyf+1DHwFmNWgCat+7EF0ozdf4/iYGp3E3gxhUJVOsrnw0oyl
 Y8T11tt72E1jq57WPi8IO4e5MtC1yyS/24gmA3EIPM7Zq8mi+GqMVtdV0KSzyYIJ
 ikIrKHf7cSfKn+k+CPYnrf+XLyXLApioTXq7AZWfwUvjTklX0Qdnl6l3YdEgpWHP
 HjKq7w/MgCCFypxgDJB3XuPOHIAY2poMw0Pc3luSlQbIA0TixVe75DkKyD8vHN85
 vr0b7js0acjvwn7gN3ZFkBU+DoinB0bY2RqYgSZdoBHvYFFhcQhLhKoZXHGXZiDn
 zsKkRrIA4rb+2Ska0Q3Kg2cRdvTpU391wZf9teg2zywMtmb/7PhKZtDh4reOZ3A9
 Dt3uOp6zQB8og+KMIA2qlt5DzKMB6uqzDJXIQI4ULt96+R98o0WGm9l6C+j27984
 YPW0zwdcYqzoHm6RjOWZ9BV/0CdL/8jHOc3uv6yEBj/emarFmas=
 =K22m
 -----END PGP SIGNATURE-----

Merge tag 'sunxi-dt-for-6.2-1' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux into soc/dt

- Added H616 USB node
- Enabled bluetooth on Pinebook A64
- Added f1c100s PWM, I2C, CIR and LRADC nodes
- Added USB HCI0 PHYs property to H3/H5

* tag 'sunxi-dt-for-6.2-1' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux:
  ARM: dts: sunxi: H3/H5: Add phys property to USB HCI0
  ARM: dts: suniv: f1c100s: add LRADC node
  ARM: dts: suniv: f1c100s: add CIR DT node
  dt-bindings: media: IR: Add F1C100s IR compatible string
  ARM: dts: suniv: f1c100s: add I2C DT nodes
  ARM: dts: suniv: f1c100s: add PWM node
  dt-bindings: pwm: allwinner,sun4i-a10: Add F1C100s compatible
  arm64: dts: allwinner: a64: enable Bluetooth on Pinebook
  arm64: dts: allwinner: h616: X96 Mate: Add USB nodes
  arm64: dts: allwinner: h616: OrangePi Zero 2: Add USB nodes
  arm64: dts: allwinner: h616: Add USB nodes
  dt-bindings: usb: Add H616 compatible string
  ARM: dts: axp22x/axp809: Add GPIO controller nodes
  ARM: dts: axp803/axp81x: Drop GPIO LDO pinctrl nodes

Link: https://lore.kernel.org/r/Y3fuAosinWbrj+Dy@jernej-laptop
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2022-11-21 10:59:07 +01:00
Arnd Bergmann
285fde40c1 AT91 DT for 6.2 #2
It contains:
 - one typo fix for a SAMA7G5 pin; the pin is not used anywhere in the
   device trees.
 -----BEGIN PGP SIGNATURE-----
 
 iHUEABYIAB0WIQTsZ8eserC1pmhwqDmejrg/N2X7/QUCY3d+fAAKCRCejrg/N2X7
 /S22AQDWFZ+AlQsP0dM0aB0DA+YsPuoO11ydOXbbYNhe+jKeSAD/WCjY3JJOjUNe
 HgnYqtcNk8Lkz+/Gk7oZoFHa4kr6XAY=
 =xBmv
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEo6/YBQwIrVS28WGKmmx57+YAGNkFAmN7S1sACgkQmmx57+YA
 GNlrMw//cZvXK5TM+gHA4b7jt6rRuJwkNnsB5ubOAo7FJyej7m6zZH52LG/Cc5rx
 B/vLjKhbzdQtWZMzNyCiLRM+s/UgrHv5nKAMPyEI/u2SJ8jG4qVjl9lYFF/7dBIQ
 zeuxGTLFZIvL3Sy9GNrkm25DZGQBnc5mn3WVnMoNohsJ34NlrupvU/1rs7BYqhYk
 TxaQvdRKIQW1ijbWH/iYsbFbwocSBtI4w9zMSqh9+CbYzoU5y5yv10/ArdQjsVPs
 bqUxEwq8C0wf0gxyV0uE/ndk5D2nLTL7AcmkqqiB4pAozl1NgrSRAubonrce8rfw
 p5ugdpn5hKRWAjqRL9LZLHbUJZPEaTmuf5iWxHDBVDfLyEHX+i+CXDDuuw/Cj8MX
 VaMwbQe6bNsQkaG3h57WaJQdhEpsg/bHYofKLCCIOSrN+VlAMmK3D3yawJTLGtrv
 5Lk7P1cGzEurojRVpFi8JYFQ0zP1Z99Ow4kvGgNZc92Hi19w/2n89ieFQn4kRwcV
 vg7LiJVKQghAdy1bairjvTPvxvargTvSS3lSrvkLhhm07w5cVovK9k41ktnlOqQf
 P+pXPqglGfde2khSoP0+Z0SYYVjlnIquV1v7uxDnvNSexwCaJkRapKDLg568C/RD
 XOr1pZwDPjvPROMUWDhACKD9pI3pLarz/yJqaN7NNn5+pkFzJhQ=
 =tNzV
 -----END PGP SIGNATURE-----

Merge tag 'at91-dt-6.2-2' of https://git.kernel.org/pub/scm/linux/kernel/git/at91/linux into soc/dt

AT91 DT for 6.2 #2

It contains:
- one typo fix for a SAMA7G5 pin; the pin is not used anywhere in the
  device trees.

* tag 'at91-dt-6.2-2' of https://git.kernel.org/pub/scm/linux/kernel/git/at91/linux:
  ARM: dts: at91: sama7g5: fix signal name of pin PD8

Link: https://lore.kernel.org/r/20221118131214.301678-1-claudiu.beznea@microchip.com
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2022-11-21 10:56:43 +01:00
David E. Box
7fdc03a737 tools/arch/x86: intel_sdsi: Add support for reading meter certificates
Add option to read and decode On Demand meter certificates.

Link: https://github.com/intel/intel-sdsi/blob/master/meter-certificate.rst

Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20221119002343.1281885-10-david.e.box@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2022-11-21 10:56:17 +01:00
Kunihiko Hayashi
bdeaf22dfa
ARM: dts: uniphier: Add Pro5 board support
Initial version of devicetree sources for Pro5 EPCORE and ProEX boards.
These boards have UART, I2C, USB, eMMC and PCI endpoint in common.

Pro5 EPCORE board is a kind of Pro5 reference board with PCIe endpoint
card edge connector.

ProEX board shares peripherals with Linux and other systems, and some
of these ports are available in Linux.

Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Link: https://lore.kernel.org/r/20221117163219.3673-3-hayashi.kunihiko@socionext.com
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2022-11-21 10:56:10 +01:00
Kunihiko Hayashi
2dbcd8b4f2
dt-bindings: arm: uniphier: Add Pro5 boards
Add compatible string for Pro5 EP-Core board and ProEX board support.

Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20221117163219.3673-2-hayashi.kunihiko@socionext.com
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2022-11-21 10:56:10 +01:00
David E. Box
429e789c67 tools/arch/x86: intel_sdsi: Add support for new GUID
The structure and content of the On Demand registers is based on the GUID
which is read from hardware through sysfs. Add support for decoding the
registers of a new GUID 0xF210D9EF.

Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Link: https://lore.kernel.org/r/20221119002343.1281885-9-david.e.box@linux.intel.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2022-11-21 10:56:09 +01:00
David E. Box
a8041a89b7 tools/arch/x86: intel_sdsi: Read more On Demand registers
Add decoding of the following On Demand register fields:

1. NVRAM content authorization error status
2. Enabled features: telemetry and attestation
3. Key provisioning status
4. NVRAM update limit
5. PCU_CR3_CAPID_CFG

Link: https://github.com/intel/intel-sdsi/blob/master/state-certificate-encoding.rst
Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20221119002343.1281885-8-david.e.box@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2022-11-21 10:55:59 +01:00
David E. Box
334599bccb tools/arch/x86: intel_sdsi: Add Intel On Demand text
Intel Software Defined Silicon (SDSi) is now officially known as Intel
On Demand. Change text in tool to indicate this.

Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20221119002343.1281885-7-david.e.box@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2022-11-21 10:55:56 +01:00
David E. Box
3088258ea7 tools/arch/x86: intel_sdsi: Add support for reading state certificates
Add option to read and decode On Demand state certificates.

Link: https://github.com/intel/intel-sdsi/blob/master/state-certificate-encoding.rst
Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20221119002343.1281885-6-david.e.box@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2022-11-21 10:55:51 +01:00
David E. Box
a96f1b9c48 platform/x86/intel/sdsi: Add meter certificate support
Add support for reading the meter certificate from Intel On Demand
hardware.  The meter certificate [1] is used to access the utilization
metrics of enabled features in support of the Intel On Demand consumption
model. Similar to the state certificate, the meter certificate is read by
mailbox command.

While making similar changes also use the BIN_ATTR_ADMIN_RO helper to
create the 'registers' sysfs file.

Link: https://github.com/intel-sandbox/debox1.intel_sdsi/blob/gnr-review/meter-certificate.rst [1]
Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Link: https://lore.kernel.org/r/20221119002343.1281885-5-david.e.box@linux.intel.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2022-11-21 10:55:35 +01:00
David E. Box
25612c0fb2 platform/x86/intel/sdsi: Support different GUIDs
Newer versions of Intel On Demand hardware may have an expanded list of
registers to support new features. The register layout is identified by a
unique GUID that's read during driver probe. Add support for handling
different GUIDs and add support for current GUIDs [1].

Link: https://github.com/intel/intel-sdsi/blob/master/os-interface.rst [1]
Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20221119002343.1281885-4-david.e.box@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2022-11-21 10:55:28 +01:00
David E. Box
aa546b2816 platform/x86/intel/sdsi: Hide attributes if hardware doesn't support
Provisioning capabilities are enabled by a bit set by BIOS. Read this bit
and hide the provisioning attributes if the On Demand feature is not
enabled.

Also, remove the sdsi_enabled boolean from private and instead add a
features register since this will be used for future features.

Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20221119002343.1281885-3-david.e.box@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2022-11-21 10:55:24 +01:00
David E. Box
4ea629155c platform/x86/intel/sdsi: Add Intel On Demand text
Intel Software Defined Silicon (SDSi) is now officially known as Intel
On Demand. Add On Demand to the description in the kconfig, documentation,
and driver source.

Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20221119002343.1281885-2-david.e.box@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2022-11-21 10:55:12 +01:00
Arnd Bergmann
6f8d2a2037 Samsung DTS ARM64 changes for v6.2
Correct pin drive strength macros (names) and values used on Tesla FSD
 SoC.
 -----BEGIN PGP SIGNATURE-----
 
 iQJEBAABCgAuFiEE3dJiKD0RGyM7briowTdm5oaLg9cFAmN0rS8QHGtyemtAa2Vy
 bmVsLm9yZwAKCRDBN2bmhouD1+RgD/9b0HVcfgBsvp/ZyFe2Eor20VYnPhCqSbk4
 P/6x1huHcGR9BC8jOzhQv9NzvUTZ10KrhiyhmV8AzeEoLR8hI6kZYZ0YzZwUL9FW
 4pqaDs5xn519QOxt6qqRTiXPbeshiQ/VoXDxpuHIi7irgdzfd7qlzEVuZKBTeKvi
 6H6WTrkoxzr31wyzH3LmZOTZzc4eIaQqBLrFo563S52Uw/jo71fWhhxLD4Q6C4+o
 rHIZ7tjcgaIyHIjhtRkWLk1bJnsYcG1tenXCw48sjILqlskso0GPeD+SG9BP8S+o
 vdC7WJzkt2Kgk+JRTE5qlBXepjIM9NJqczysrdkMPRvDUTQIOEddDrwYkt97B7Nj
 mEEiZ8zCXsbzIIS2v8UOwZHjloHy+15HM6jAzVrwwGJIMd514aM+kmIEK6Ucrd3c
 F3WaBG24D5kJ3dALe1oJWggX8soOtqIxzA51qMQxmw+iVj/G13WjiY/pIN/4b+zq
 ex2bsNHjaDTi7ye7jjNb0FGLjrCTfVftpXNQStS1QpLUFYZsP2VRt6Bi0uM/WiNU
 8HZovJdPkPBJFUeTjMideC5wQR9wIgDB8+LGkhP+PCGH7d4KbtxvZEGPBHFT2PVq
 +lpuul5XFF2v4ZAOlpM0KIbav7XdScRgn+Zw5g8tu/d2yAsRQ/bxCJ+1slrmnOk6
 oDjXYnM01Q==
 =ckQO
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEo6/YBQwIrVS28WGKmmx57+YAGNkFAmN7SrEACgkQmmx57+YA
 GNlMIRAAnWhgP16nYA3maeSKqkvHlxugxtYH4de/fQnmo6EsJXcBZKOsn+2EaW5X
 OUa/YT6r/sDjAgVHGrmUMxYwIejjqmH7gR6/AmMmDQpTjk20blVwaTm9jtac0HAd
 UXNfhB1790UqG4LwJVojgxsFouwv8DS40/fVWhJYnfOfW5t63vF0Vytl1ZnL0n1P
 PPvqFdAU9mAJotlPm7rScxYilVOKQbG59fSgIUDWZgTFp5FtZmUOa8OzMkzaUq+H
 8X3mZZb7tBpMh2rLmxo+Lrj0DKsfAcXDZ8/b8hAn+P8xzeD03BxQWAIjJ07RkYh8
 UwtvASEeUO6EHW7Ugi0DB/Xs7XwgyxmrxBCOodqCPvRJgCNgcAWsavJo7nv3noBX
 IzTsaMpJRiGYwoVw0xwxmFgOCHGsjDqnBjUHrgT22OJ2iRFAdQU0m9nxA372kWMt
 VG9qNtKgTApTQSeNM1AMY14wU76Xb3t6RGizozm4B9ZZBbO31KQAzhLoBMzQ9Ev3
 y5lLTseqmibJvNBUQKevA96KWTlspaktq+OiZP4Inmg6aPZh+IOa0MkG1ME/TnZK
 JxhyE8xQ7QRagHcoAk9NbwCZN5U3xJGCL80vwp+whvuGAirpsCfER/7fyinpNsOq
 0ivvC/q1LpW9ICO9FEkh4HzJqSnyZFmLautPbYNQu7lA0ectGVI=
 =+Slu
 -----END PGP SIGNATURE-----

Merge tag 'samsung-dt64-6.2' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux into soc/dt

Samsung DTS ARM64 changes for v6.2

Correct pin drive strength macros (names) and values used on Tesla FSD
SoC.

* tag 'samsung-dt64-6.2' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux:
  arm64: dts: fsd: fix drive strength values as per FSD HW UM
  arm64: dts: fsd: fix drive strength macros as per FSD HW UM

Link: https://lore.kernel.org/r/20221116093010.18515-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2022-11-21 10:53:53 +01:00
Aakarsh Jain
84b63565f8
ARM: dts: exynos: Add new SoC specific compatible string for Exynos3250 SoC
Exynos3250 and Exynos5420 are using same compatible string for MFC codec
device but they have different clock hierarchy and complexity.  Add new
compatible string followed by mfc-v7 fallback for Exynos3250 SoC.

Suggested-by: Alim Akhtar <alim.akhtar@samsung.com>
Signed-off-by: Aakarsh Jain <aakarsh.jain@samsung.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Tommaso Merciai <tommaso.merciai@amarulasolutions.com>
Link: https://lore.kernel.org/r/20221114115024.69591-4-aakarsh.jain@samsung.com
Link: https://lore.kernel.org/r/20221116093010.18515-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2022-11-21 10:53:12 +01:00
Arnd Bergmann
972d89438d i.MX defconfig change for 6.2:
- Enable Renesas 9-series PCIe clock generator, SNVS LPGRP and i.MX8MP
   interconnect driver support in arm64 defconfig.
 - Enable Silergy SY7636A EPD PMIC, CYTTSP5 touchscreen and USB GPIO
   extcon support in imx_v6_v7_defconfig.
 -----BEGIN PGP SIGNATURE-----
 
 iQFIBAABCgAyFiEEFmJXigPl4LoGSz08UFdYWoewfM4FAmN4ygEUHHNoYXduZ3Vv
 QGtlcm5lbC5vcmcACgkQUFdYWoewfM7FBwf8CJ4kXlG1DFLgYgzM2VjIe0GcjLJa
 aq9bmcGz5ePMufgh+A7S/SNlCH7BiBC2edfPUJHdcmC5UPyD9uVsCP/Gjzp+87Ww
 oHOKwmoCIdg1Tr9izdL3J4xnmiMGxCaJ38geNb8evoYWPcONVSis/WbHO8Mgf2o0
 l/g/Aq0Gf18w1I8J37RSjLfWF58AwFEPTjAYAalZmVqO8h8Vd713BlGvaneSZlBb
 w2G+onguugFerO33ubPS6t3Ql+kUsFNDEpTYEoBi3nWBMIzVHVuFlNx3Fx/d5MKZ
 f+s0YpRRb3/+Mbtar6d0m8nlKksnOyxMthI3dx9c/ZHno7IRwSJwQOI1Qw==
 =Ffj7
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEo6/YBQwIrVS28WGKmmx57+YAGNkFAmN7SgsACgkQmmx57+YA
 GNm5BhAAk4wFMxLGKXbQTVSa1RGozqhs8Hbwswwjel4ZDp5xv97g6b7joDYxWgf0
 3+uNjMHwPxQiJKvO+P4RU6iy3D/81P1CuxmQeor5QTxRrwei6VnqL1Z1GK73Cwdm
 W0r9q3B+ej40Y1JGyGUZh4uWR9n6Afd7XtYZ/8EeebJlVEq+SmxMPHPTvEnISp7I
 JEMO/DzM4VzqFHRSedsDrEjF1oGGzKgRfTEz8TIkSh4Vyx2IXVT4XKHllIfSjhGi
 oYlt2i+nMSFAHCX2L8A0yTJMN9M3InKF2kpw1dGeA+HP5y5r1dXT4GWTPkXQgd5x
 NA/dTx2C2FMe4IX9CmVSLeQg2zkZstv/dDKCNqFL1/jBP0zvsJRjQDBr34G/27PK
 C4J4M8Nv4b27sF88e67wXKbAaY7YuTBlrD7VPlI7bAmjCLhPM07jj4Ic8Nzs5149
 CFOA4OWJ7jJMYkHne/w0ZvLULI6QNFDE0LqvHSPKFovRWDE6fxkBoy5BV274PJKu
 wgW/+qk2ghlHlt0hJBD+vIK+6UDHYyVMP1zzEvLle6DVofY1owo0BM5KlIr9CdZd
 Tr3NTRKzzQk29byt6s3BKxPg49CMMFypK3tAA0HBOr6E3TahyREilPRiB52z3Id9
 RMktT5bmdGR6CAsGVfYyqGF66OhgLq9tXiqXvBg4o2ZfurOmOik=
 =RntO
 -----END PGP SIGNATURE-----

Merge tag 'imx-defconfig-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux into arm/defconfig

i.MX defconfig change for 6.2:

- Enable Renesas 9-series PCIe clock generator, SNVS LPGRP and i.MX8MP
  interconnect driver support in arm64 defconfig.
- Enable Silergy SY7636A EPD PMIC, CYTTSP5 touchscreen and USB GPIO
  extcon support in imx_v6_v7_defconfig.

* tag 'imx-defconfig-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux:
  arm64: defconfig: Add Renesas 9-series PCIe clock generator
  ARM: imx_v6_v7_defconfig: Enable the cyttsp5 touchscreen
  ARM: imx_v6_v7_defconfig: Enable silergy,sy7636a
  ARM: imx_v6_v7_defconfig: Enable USB GPIO extcon support
  arm64: defconfig: enable i.mx 8m plus specific interconnect support
  arm64: defconfig: enable snvs lpgpr support

Link: https://lore.kernel.org/r/20221119125733.32719-6-shawnguo@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2022-11-21 10:51:07 +01:00
Arnd Bergmann
4b7067ae93 arm64: tegra: Default configuration updates for v6.2-rc1
This enables several audio-related options, as well as the Tegra186
 timer and hardware timestamping engine drivers.
 -----BEGIN PGP SIGNATURE-----
 
 iQJHBAABCAAxFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAmN4LM8THHRyZWRpbmdA
 bnZpZGlhLmNvbQAKCRDdI6zXfz6zoWbbD/4gvLHjW3sqUvh8c5sciH8mMUMTZpUA
 4fnaqyt5Ya2Un05mWkVcRwgC8itXwy9FLf9L2coaDBEly1FokDZrapNS9TVd7GtA
 ihBRig13wXcx8ZtaSEkj5F/juf1GDUghMg/v8M/qFv7cYuSbbYDGZ40pfd/NaAlE
 zaGY3S6dampIm9N2XQegaRNGoRscAMIH0/Qa9MJkvvs8VQ7eB0C3/lOs3wUIv+8g
 G4bZrXyIMfrEsIo67v/xOUwkhts8VHSSWOr2oLnJd8rXvY0Sy/H3kXu3EPjQTzne
 f4IegmSAqUQ1oc5Ob/WgQ6nwoVKftgQfkxv6naLJHKY8F0r+3netKEarC/K66Ix/
 ogvT+RUOpBUvWbCpohQZIpZj95LEe/skaVUCg6BGBqj+g9IbYZPBw7V/5PYoJl9Q
 3Pw6vVMKheWR0RD5M+5gO/yqxTZ8bW5lFzrRbsmqtMsIVgg9gBrVvReRGr0RmsVv
 /qYCXR9rxjQA4A4dCTFCTOw1diXDwGnjIXutWi9ay1BLtavfnmm1OJVnHn9+1OaR
 FK7LWkOWTENyhxYCa/+kSbCS8oW293MGDtlMDshk6Lb47srAHYr0JI3st4D6iQ1j
 CadIZQy/lqEtcjS/fuyYvaN5exhS3G8Z1c5R+rhUqtr8YxrD6eR+nMlhvx0mb7lw
 92aYzMeqKZDjjQ==
 =fbGh
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEo6/YBQwIrVS28WGKmmx57+YAGNkFAmN7ScoACgkQmmx57+YA
 GNmSwg//b8WiBxMxphDloxGUKQy9VBw5zOIm5UVHm5O6vA7zMr/OMgJ+MNVTaN9H
 XzS437/DUVLW44ZpA4t+drE8ou3lrkOChA3nqHB7TV88A8lk7fvKh9PFkciB0K2M
 i/bcdoQg9qRp7RnTuyQsItgDqxm741cS2Hz+Uw3HU6c5mjyLthd/r+AeuQvuxFwJ
 gI/iHIms68Ux6RGChSyHGX2lYT9Cx06J+TLY54mWnjlDciSMQis2Vb15Dg2gTWoA
 Mew7mPVOqAeRwKfUFMP7I07j0aZuatH1+E3m7XMu6vq5j8o3Bzn2OQhQenAz/S5M
 lNzo/nd1PWgUFMHe9JNGsqFFyOjsU5YQcEgWSlFVc2QqeU2Flzc4lpiM7gfGwrVb
 dSpde7o0Yvv7kMNobvS+FOFKSNmXS8T0gPKOtHlM2WYyyjdjbS6sWkOBIDuSFYPp
 9MDpjRJPYOnf0soKaYhpY4gK43Be8eUDZC/oWQtK0caUhZ4ABVxY/vzXMHPX+oFd
 BGfozXKhWH0VVTkLEm8AaUMmhQCf9sLoNIU7PL2aLD0XmErv24QviSOjZc4p8u+p
 t6loMh7CDNDp1O9Tj0WcMB7W2vPTuacde44ESx6Ph5j68UCIsr9apME33aUI/Qbd
 RVIB+sk2f2CUnfFBpEKrUQaZTh8aFw9aCNg2OrcCBiNcJ44oXtc=
 =zh22
 -----END PGP SIGNATURE-----

Merge tag 'tegra-for-6.2-arm64-defconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux into arm/defconfig

arm64: tegra: Default configuration updates for v6.2-rc1

This enables several audio-related options, as well as the Tegra186
timer and hardware timestamping engine drivers.

* tag 'tegra-for-6.2-arm64-defconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux:
  arm64: defconfig: Enable HTE config
  arm64: defconfig: Enable Tegra186 timer support
  arm64: defconfig: Enable SND_ALOOP
  arm64: defconfig: Enable couple of audio codecs

Link: https://lore.kernel.org/r/20221119012025.3968358-8-thierry.reding@gmail.com
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2022-11-21 10:50:02 +01:00
Arnd Bergmann
267511c977 Renesas RISC-V defconfig updates for v6.2
- Enable support for the Renesas RZ/Five SoC and the RZ/Five SMARC EVK
     board in the risc-v defconfig.
 -----BEGIN PGP SIGNATURE-----
 
 iHUEABYIAB0WIQQ9qaHoIs/1I4cXmEiKwlD9ZEnxcAUCY3dgowAKCRCKwlD9ZEnx
 cN1VAQDpcwPavcRL/IQ/oIYzIGyq/47lKUuhfxw93YjUlVtrIQD/W5F9uVhjDt22
 9gSrKI11+mjT1r/uLLhi+n5q3yPBlAw=
 =YeaL
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEo6/YBQwIrVS28WGKmmx57+YAGNkFAmN7SbUACgkQmmx57+YA
 GNlQsBAAmQf/cN5iLX4UIiN+X/Vx82Y8iR2s06bAoihQX1ugX5meD/LIpV2EeU1g
 UfEklu21AXQyvtgnsrb9iscxNWsFrWbP3tCEcpTNheTgKwsOwxXpS3ia09o6K4st
 g+ZUOKeBd5H14Kez7UndEdTh8zg7Zul6IJoMMdEsgl6uH2J0JO7wyEbYFUyb98YK
 /n+64IJ7LYmolfel34OfHKhkBreAT8PFuDQa5W2YJyzGkIxLVF8qzjsNWnP5O/08
 sxcIc3WV5hBBg01ZAFstdxPU8s62kIIez/yU186tgWhgKvRxyc8JW0s5iilFgo1W
 l/moJAv/veqUuJ+YoTcQWJIng0lSSntMWDCbLeM+OI3mzk/4YKdvda49R7pd6VPC
 MthVcaD/miES3ovZnxRNLYpNjoBBJa1h97R5AfPZjVTwAFUyU0Dwgk7SPEuJnXCR
 etXtL2PJF1HwCjxFgKcbl3cECjAZDYdtBQKc2sqG9riMqF69D3A3DEH3pDWJwIBC
 ynJCzxHcSWP3YytocLqTJ0bNm7tcQ1pBj4pn2W7VZa83AthlfDGhxrf2xWC9GJQN
 sYjv0TDmE4dVFUE6TD2eclr49X4zOsRGDG3nh13BanmJ25f8zrrAItSRs2iyGd/G
 0cBTu+Z34XBe/64n0C3eW9WorZsxJL8mESR8Eo8sG4550YThzx8=
 =wAfB
 -----END PGP SIGNATURE-----

Merge tag 'renesas-riscv-defconfig-for-v6.2-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel into arm/defconfig

Renesas RISC-V defconfig updates for v6.2

  - Enable support for the Renesas RZ/Five SoC and the RZ/Five SMARC EVK
    board in the risc-v defconfig.

* tag 'renesas-riscv-defconfig-for-v6.2-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel:
  riscv: configs: defconfig: Enable Renesas RZ/Five SoC

Link: https://lore.kernel.org/r/cover.1668788928.git.geert+renesas@glider.be
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2022-11-21 10:49:41 +01:00
Arnd Bergmann
1d4456221f Renesas ARM defconfig updates for v6.2
- Enable support for Renesas R-Car S4-8 Spider Ethernet devices in the
     arm64 defconfig.
 -----BEGIN PGP SIGNATURE-----
 
 iHUEABYIAB0WIQQ9qaHoIs/1I4cXmEiKwlD9ZEnxcAUCY3evhgAKCRCKwlD9ZEnx
 cI+DAQDuYqax077qNI/tBd2LXFBDv3BkTAGhZpaYcyJEXBf1bQD/bjIzTEzKJjN5
 9Ky8xneA3N4SnvTMW+P29iLZL+7m+Qs=
 =T6Fz
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEo6/YBQwIrVS28WGKmmx57+YAGNkFAmN7SWIACgkQmmx57+YA
 GNl/7g//RdVdEGLzbQeItsMxvz5t8TDnX0oZ/ASMB8YumlfxrsLQlioAlvDUKE+6
 osm4rH2bVlvg4a7cY5LdGoCBmOtWHo53ON9l3wiyInFUOA+1arREibnrDAL6YkR1
 ddmCk0hm1wpR6ukDndjPmGKw3OWvvkNOQ2yeY/7gTmKUlATOrGyw1UEi/47a13Vu
 ZvEo46no3xfUMQb/CaLCuzOenFLqXqJdrpWgHOc+glWer/GF7AtMPmo81tdkxxNk
 aj8GhZDKVVQMxn7ucO5DfnYxB+5i9m/gLjZZgLven4I1lRp1cHXp8puJUbJ0fTmC
 7/CqhcTjklFyDnpWgJcynvakR4CR0Z//GIPei2V5G7qd3KSyOK0K7pXZDCToZL47
 nVwYAR/8ao5Du9WozOgzAGoUFX/WlXL0orVHzsq31Qa/DN8J7/o/WPlVUWrpNo1d
 pXkm44iVC4guibLYRl+LprSbt6FgnIGHr6mZQ1b04v8+NaIeXOYduyUeNkpGCcdh
 7SIWYDZo4/dA/om8H2taiCAVtAFeOY9nSkQY/4fmH16/bE600hD8qL4HbmLJ6drv
 yUsVN+hAYGSNwiz442jOhl3vIw5qWRFw7EdubH+7Dtl2NY+mJMZP4Uc0xQ6UNKsK
 fFxTSU1zLgYJTJvkjOxDRWoqjrkZTWFIQGWVquMH2TBuQP+Nwtk=
 =eBkH
 -----END PGP SIGNATURE-----

Merge tag 'renesas-arm-defconfig-for-v6.2-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel into arm/defconfig

Renesas ARM defconfig updates for v6.2

  - Enable support for Renesas R-Car S4-8 Spider Ethernet devices in the
    arm64 defconfig.

* tag 'renesas-arm-defconfig-for-v6.2-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel:
  arm64: defconfig: Enable Renesas R-Car S4-8 Spider Ethernet devices

Link: https://lore.kernel.org/r/cover.1668788920.git.geert+renesas@glider.be
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2022-11-21 10:48:18 +01:00
Lorenzo Bianconi
ef8c373bd9 net: ethernet: mtk_eth_soc: fix RSTCTRL_PPE{0,1} definitions
Fix RSTCTRL_PPE0 and RSTCTRL_PPE1 register mask definitions for
MTK_NETSYS_V2.
Remove duplicated definitions.

Fixes: 160d3a9b19 ("net: ethernet: mtk_eth_soc: introduce MTK_NETSYS_V2 support")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-11-21 09:48:12 +00:00
Horatiu Vultur
aa5ac4be8d net: microchip: sparx5: kunit test: Fix compile warnings.
When VCAP_KUNIT_TEST is enabled the following warnings are generated:

drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c:257:34: warning: Using plain integer as NULL pointer
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c:258:41: warning: Using plain integer as NULL pointer
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c:342:23: warning: Using plain integer as NULL pointer
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c:359:23: warning: Using plain integer as NULL pointer
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c:1327:34: warning: Using plain integer as NULL pointer
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c:1328:41: warning: Using plain integer as NULL pointer

Therefore fix this.

Fixes: dccc30cc49 ("net: microchip: sparx5: Add KUNIT test of counters and sorted rules")
Fixes: c956b9b318 ("net: microchip: sparx5: Adding KUNIT tests of key/action values in VCAP API")
Fixes: 67d637516f ("net: microchip: sparx5: Adding KUNIT test for the VCAP API")
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-11-21 09:47:18 +00:00
Fabrice Gasnier
6bd7179385
ARM: multi_v7_defconfig: enable Type-C UCSI and STM32G0 as modules
Enable the USB Type-C UCSI, and the STM32G0 UCSI drivers as modules, since
used on STM32MP13 board.

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
Link: https://lore.kernel.org/r/20221117103931.26174-1-alexandre.torgue@foss.st.com
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2022-11-21 10:47:12 +01:00
Gayatri Kammela
c5ad454a12 platform/x86: intel/pmc/core: Add Meteor Lake support to pmc core driver
Add Meteor Lake client and mobile support to pmc core driver. This patch
adds legacy support.

Cc: David E Box <david.e.box@linux.intel.com>
Suggested-by: David E Box <david.e.box@linux.intel.com>
Reviewed-by: "David E. Box" <david.e.box@linux.intel.com>
Signed-off-by: Sukumar Ghorai <sukumar.ghorai@intel.com>
Signed-off-by: Gayatri Kammela <gayatri.kammela@linux.intel.com>
Signed-off-by: "David E. Box" <david.e.box@linux.intel.com>
Link: https://lore.kernel.org/r/20221114183257.2067662-9-gayatri.kammela@linux.intel.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2022-11-21 10:42:52 +01:00
Gayatri Kammela
08876884b9 platform/x86: intel/pmc: Relocate Alder Lake PCH support
Create adl.c for Alder Lake PCH specific structures and init().
This file supports Alder Lake, Raptor Lake and Raptor Lake S platforms
There are no functional changes involved.

Cc: David E Box <david.e.box@linux.intel.com>
Reviewed-by: "David E. Box" <david.e.box@linux.intel.com>
Signed-off-by: Gayatri Kammela <gayatri.kammela@linux.intel.com>
Signed-off-by: "David E. Box" <david.e.box@linux.intel.com>
Link: https://lore.kernel.org/r/20221114183257.2067662-8-gayatri.kammela@linux.intel.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2022-11-21 10:42:50 +01:00
Gayatri Kammela
92f530edd7 platform/x86: intel/pmc: Relocate Tiger Lake PCH support
Create tgl.c for Tiger Lake PCH specific structures and init().
This file supports Tiger Lake, Elkhart Lake, Rocket Lake,
Alder Lake mobile, Alder Lake N and Raptor Lake P platforms.
There are no functional changes involved.

Cc: David E Box <david.e.box@linux.intel.com>
Reviewed-by: "David E. Box" <david.e.box@linux.intel.com>
Signed-off-by: Gayatri Kammela <gayatri.kammela@linux.intel.com>
Signed-off-by: "David E. Box" <david.e.box@linux.intel.com>
Link: https://lore.kernel.org/r/20221114183257.2067662-7-gayatri.kammela@linux.intel.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2022-11-21 10:42:47 +01:00
Xi Pardee
fd2ed6dbc3 platform/x86: intel/pmc: Relocate Ice Lake PCH support
Create icl.c for Ice Lake PCH specific structures and init().
This file supports Ice Lake, Ice Lake NNPI and Jasper Lake platforms.
There are no functional changes involved.

Cc: David E Box <david.e.box@linux.intel.com>
Reviewed-by: "David E. Box" <david.e.box@linux.intel.com>
Signed-off-by: Xi Pardee <xi.pardee@intel.com>
Signed-off-by: "David E. Box" <david.e.box@linux.intel.com>
Link: https://lore.kernel.org/r/20221114183257.2067662-6-gayatri.kammela@linux.intel.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2022-11-21 10:42:44 +01:00
Xi Pardee
d6cd0cc8d1 platform/x86: intel/pmc: Relocate Cannon Lake Point PCH support
Create cnp.c for Cannon Lake Point PCH specific structures and init().
This file supports Cannon Lake and Comet Lake platforms.
There are no functional changes involved.

Cc: David E Box <david.e.box@linux.intel.com>
Reviewed-by: "David E. Box" <david.e.box@linux.intel.com>
Signed-off-by: Xi Pardee <xi.pardee@intel.com>
Signed-off-by: "David E. Box" <david.e.box@linux.intel.com>
Link: https://lore.kernel.org/r/20221114183257.2067662-5-gayatri.kammela@linux.intel.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2022-11-21 10:42:41 +01:00
Rajvi Jingar
f23e21a345 platform/x86: intel/pmc: Relocate Sunrise Point PCH support
Create spt.c for Sunrise Point PCH specific structures and init().
This file supports Sky Lake and Kaby Lake platforms. There are no
functional changes involved.

Cc: David E Box <david.e.box@linux.intel.com>
Reviewed-by: "David E. Box" <david.e.box@linux.intel.com>
Signed-off-by: Rajvi Jingar <rajvi.jingar@linux.intel.com>
Signed-off-by: "David E. Box" <david.e.box@linux.intel.com>
Link: https://lore.kernel.org/r/20221114183257.2067662-4-gayatri.kammela@linux.intel.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2022-11-21 10:42:38 +01:00
Xi Pardee
03c58a1e94 platform/x86: intel/pmc: Move variable declarations and definitions to header and core.c
Move the msr_map variable declaration to core.h and move the pmc_lpm_modes
definition to core.c.

This is a prepartory patch for redesigning the pmc core driver as the
variables will be used in multiple PCH specific files.

Cc: David E Box <david.e.box@linux.intel.com>
Reviewed-by: "David E. Box" <david.e.box@linux.intel.com>
Signed-off-by: Xi Pardee <xi.pardee@intel.com>
Signed-off-by: "David E. Box" <david.e.box@linux.intel.com>
Link: https://lore.kernel.org/r/20221114183257.2067662-3-gayatri.kammela@linux.intel.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2022-11-21 10:42:35 +01:00
Gayatri Kammela
284c01b72a platform/x86: intel/pmc: Replace all the reg_map with init functions
The current implementation of pmc core driver has the reg_map assigned
to the CPUID of each platform. Replace the reg_map with init functions
that are defined for each platform.

This is a preparatory patch for redesigning the pmc core driver.

Cc: David E Box <david.e.box@linux.intel.com>
Reviewed-by: "David E. Box" <david.e.box@linux.intel.com>
Signed-off-by: Gayatri Kammela <gayatri.kammela@linux.intel.com>
Signed-off-by: "David E. Box" <david.e.box@linux.intel.com>
Link: https://lore.kernel.org/r/20221114183257.2067662-2-gayatri.kammela@linux.intel.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2022-11-21 10:42:20 +01:00
Imre Deak
ebbaa4392e drm/i915: Fix warn in intel_display_power_*_domain() functions
The intel_display_power_*_domain() functions should always warn if a
default domain is returned as a fallback, fix this up. Spotted by Ville.

Fixes: 979e1b32e0 ("drm/i915: Sanitize the port -> DDI/AUX power domain mapping for each platform")
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Jouni Högander <jouni.hogander@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221114122251.21327-2-imre.deak@intel.com
(cherry picked from commit 10b85f0e1d)
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
2022-11-21 09:41:14 +00:00
Matthew Auld
00a6c36cca drm/i915/ttm: never purge busy objects
In i915_gem_madvise_ioctl() we immediately purge the object is not
currently used, like when the mm.pages are NULL.  With shmem the pages
might still be hanging around or are perhaps swapped out. Similarly with
ttm we might still have the pages hanging around on the ttm resource,
like with lmem or shmem, but here we need to be extra careful since
async unbinds are possible as well as in-progress kernel moves. In
i915_ttm_purge() we expect the pipeline-gutting to nuke the ttm resource
for us, however if it's busy the memory is only moved to a ghost object,
which then leads to broken behaviour when for example clearing the
i915_tt->filp, since the actual ttm_tt is still alive and populated,
even though it's been moved to the ghost object.  When we later destroy
the ghost object we hit the following, since the filp is now NULL:

[  +0.006982] #PF: supervisor read access in kernel mode
[  +0.005149] #PF: error_code(0x0000) - not-present page
[  +0.005147] PGD 11631d067 P4D 11631d067 PUD 115972067 PMD 0
[  +0.005676] Oops: 0000 [#1] PREEMPT SMP NOPTI
[  +0.012962] Workqueue: events ttm_device_delayed_workqueue [ttm]
[  +0.006022] RIP: 0010:i915_ttm_tt_unpopulate+0x3a/0x70 [i915]
[  +0.005879] Code: 89 fb 48 85 f6 74 11 8b 55 4c 48 8b 7d 30 45 31 c0 31 c9 e8 18 6a e5 e0 80 7d 60 00 74 20 48 8b 45 68
8b 55 08 4c 89 e7 5b 5d <48> 8b 40 20 83 e2 01 41 5c 89 d1 48 8b 70
 30 e9 42 b2 ff ff 4c 89
[  +0.018782] RSP: 0000:ffffc9000bf6fd70 EFLAGS: 00010202
[  +0.005244] RAX: 0000000000000000 RBX: ffff8883e12ae380 RCX: 0000000000000000
[  +0.007150] RDX: 000000008000000e RSI: ffffffff823559b4 RDI: ffff8883e12ae3c0
[  +0.007142] RBP: ffff888103b65d48 R08: 0000000000000001 R09: 0000000000000001
[  +0.007144] R10: 0000000000000001 R11: ffff88829c2c8040 R12: ffff8883e12ae3c0
[  +0.007148] R13: 0000000000000001 R14: ffff888115184140 R15: ffff888115184248
[  +0.007154] FS:  0000000000000000(0000) GS:ffff88844db00000(0000) knlGS:0000000000000000
[  +0.008108] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  +0.005763] CR2: 0000000000000020 CR3: 000000013fdb4004 CR4: 00000000003706e0
[  +0.007152] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  +0.007145] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[  +0.007154] Call Trace:
[  +0.002459]  <TASK>
[  +0.002126]  ttm_tt_unpopulate.part.0+0x17/0x70 [ttm]
[  +0.005068]  ttm_bo_tt_destroy+0x1c/0x50 [ttm]
[  +0.004464]  ttm_bo_cleanup_memtype_use+0x25/0x40 [ttm]
[  +0.005244]  ttm_bo_cleanup_refs+0x90/0x2c0 [ttm]
[  +0.004721]  ttm_bo_delayed_delete+0x235/0x250 [ttm]
[  +0.004981]  ttm_device_delayed_workqueue+0x13/0x40 [ttm]
[  +0.005422]  process_one_work+0x248/0x560
[  +0.004028]  worker_thread+0x4b/0x390
[  +0.003682]  ? process_one_work+0x560/0x560
[  +0.004199]  kthread+0xeb/0x120
[  +0.003163]  ? kthread_complete_and_exit+0x20/0x20
[  +0.004815]  ret_from_fork+0x1f/0x30

v2:
 - Just use ttm_bo_wait() directly (Niranjana)
 - Add testcase reference

Testcase: igt@gem_madvise@dontneed-evict-race
Fixes: 213d509277 ("drm/i915/ttm: Introduce a TTM i915 gem object backend")
Reported-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Andrzej Hajda <andrzej.hajda@intel.com>
Cc: Nirmoy Das <nirmoy.das@intel.com>
Cc: <stable@vger.kernel.org> # v5.15+
Reviewed-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Acked-by: Nirmoy Das <Nirmoy.Das@intel.com>
Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221115104620.120432-1-matthew.auld@intel.com
(cherry picked from commit 5524b5e52e)
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
2022-11-21 09:41:13 +00:00
Vlastimil Babka
b5e72d27e3 Merge branch 'slab/for-6.2/alloc_size' into slab/for-next
Two patches from Kees Cook [1]:

These patches work around a deficiency in GCC (>=11) and Clang (<16)
where the __alloc_size attribute does not apply to inlines.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96503

This manifests as reduced overflow detection coverage for many allocation
sites under CONFIG_FORTIFY_SOURCE=y, where the allocation size was not
actually being propagated to __builtin_dynamic_object_size().

[1] https://lore.kernel.org/all/20221118034713.gonna.754-kees@kernel.org/
2022-11-21 10:37:36 +01:00
Greg Kroah-Hartman
d9c3b34d3b Merge 6.1-rc6 into usb-next
We need the USB fixes in here as well.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-11-21 10:37:10 +01:00
Vlastimil Babka
90e9b23a60 Merge branch 'slab/for-6.2/kmalloc_redzone' into slab/for-next
kmalloc() redzone improvements by Feng Tang

From cover letter [1]:

kmalloc's API family is critical for mm, and one of its nature is that
it will round up the request size to a fixed one (mostly power of 2).
When user requests memory for '2^n + 1' bytes, actually 2^(n+1) bytes
could be allocated, so there is an extra space than what is originally
requested.

This patchset tries to extend the redzone sanity check to the extra
kmalloced buffer than requested, to better detect un-legitimate access
to it. (depends on SLAB_STORE_USER & SLAB_RED_ZONE)

[1] https://lore.kernel.org/all/20221021032405.1825078-1-feng.tang@intel.com/
2022-11-21 10:36:09 +01:00
Vlastimil Babka
76537db3b9 Merge branch 'slab/for-6.2/fit_rcu_head' into slab/for-next
A series by myself to reorder fields in struct slab to allow the
embedded rcu_head to grow (for debugging purposes). Requires changes to
isolate_movable_page() to skip slab pages which can otherwise become
false-positive __PageMovable due to its use of low bits in
page->mapping.
2022-11-21 10:36:09 +01:00