android_kernel_asus_sm8350/Documentation/ABI/testing
Mika Westerberg dcc3c9e37f thunderbolt: Export IOMMU based DMA protection support to userspace
Recent systems with Thunderbolt ports may support IOMMU natively. In
practice this means that Thunderbolt connected devices are placed behind
an IOMMU during the whole time it is connected (including during boot)
making Thunderbolt security levels redundant. This is called Kernel DMA
protection [1] by Microsoft.

Some of these systems still have Thunderbolt security level set to
"user" in order to support OS downgrade (the older version of the OS
might not support IOMMU based DMA protection so connecting a device
still relies on user approval).

Export this information to userspace by introducing a new sysfs
attribute (iommu_dma_protection). Based on it userspace tools can make
more accurate decision whether or not authorize the connected device.

In addition update Thunderbolt documentation regarding IOMMU based DMA
protection.

[1] https://docs.microsoft.com/en-us/windows/security/information-protection/kernel-dma-protection-for-thunderbolt

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Yehezkel Bernat <YehezkelShB@gmail.com>
2018-12-05 12:01:56 +03:00
..
configfs-acpi
configfs-iio
configfs-rdma_cm
configfs-spear-pcie-gadget
configfs-stp-policy
configfs-stp-policy-p_sys-t stm class: p_sys-t: Document the configfs interface 2018-10-11 12:12:55 +02:00
configfs-usb-gadget
configfs-usb-gadget-acm
configfs-usb-gadget-ecm
configfs-usb-gadget-eem
configfs-usb-gadget-ffs
configfs-usb-gadget-hid
configfs-usb-gadget-loopback
configfs-usb-gadget-mass-storage
configfs-usb-gadget-midi
configfs-usb-gadget-ncm
configfs-usb-gadget-obex
configfs-usb-gadget-phonet
configfs-usb-gadget-printer
configfs-usb-gadget-rndis
configfs-usb-gadget-serial
configfs-usb-gadget-sourcesink
configfs-usb-gadget-subset
configfs-usb-gadget-tcm
configfs-usb-gadget-uac1
configfs-usb-gadget-uac1_legacy
configfs-usb-gadget-uac2
configfs-usb-gadget-uvc usb: gadget: uvc: configfs: Add bFrameIndex attributes 2018-09-24 19:00:35 +03:00
debugfs-cec-error-inj
debugfs-driver-genwqe
debugfs-ec
debugfs-ideapad
debugfs-olpc
debugfs-pfo-nx-crypto
debugfs-pktcdvd
dell-smbios-wmi
dev-kmsg
devlink-resource-mlxsw
evm EVM: Allow runtime modification of the set of verified xattrs 2018-05-18 15:34:45 -04:00
gpio-cdev
ima_policy ima: define a new policy condition based on the filesystem name 2018-05-22 07:33:53 -04:00
ppc-memtrace Documentation: Update documentation on ppc-memtrace 2018-08-10 22:12:32 +10:00
procfs-diskstats block: Track DISCARD statistics and output them in stat and diskstat 2018-07-18 08:44:22 -06:00
procfs-smaps_rollup
pstore
rtc-cdev
sysfs-ata
sysfs-block
sysfs-block-aoe
sysfs-block-bcache
sysfs-block-device
sysfs-block-dm
sysfs-block-loop
sysfs-block-rssd
sysfs-block-zram
sysfs-bus-acpi
sysfs-bus-amba
sysfs-bus-bcma
sysfs-bus-coresight-devices-etb10
sysfs-bus-coresight-devices-etm3x
sysfs-bus-coresight-devices-etm4x
sysfs-bus-coresight-devices-funnel
sysfs-bus-coresight-devices-stm
sysfs-bus-coresight-devices-tmc coresight: tmc: Add configuration support for trace buffer size 2018-07-15 13:52:57 +02:00
sysfs-bus-css
sysfs-bus-event_source-devices-events
sysfs-bus-event_source-devices-format
sysfs-bus-event_source-devices-hv_24x7
sysfs-bus-event_source-devices-hv_gpci
sysfs-bus-fcoe
sysfs-bus-fsi
sysfs-bus-fsl-mc
sysfs-bus-hsi
sysfs-bus-i2c-devices-bq32k
sysfs-bus-i2c-devices-fsa9480
sysfs-bus-i2c-devices-hm6352
sysfs-bus-i2c-devices-lm3533
sysfs-bus-iio iio: fix position relative kernel version 2018-09-02 10:19:14 +01:00
sysfs-bus-iio-accel-bmc150
sysfs-bus-iio-adc-envelope-detector
sysfs-bus-iio-adc-hi8435
sysfs-bus-iio-adc-max9611
sysfs-bus-iio-adc-stm32
sysfs-bus-iio-chemical-vz89x
sysfs-bus-iio-counter-104-quad-8
sysfs-bus-iio-cros-ec
sysfs-bus-iio-dac-dpot-dac
sysfs-bus-iio-dfsdm-adc-stm32
sysfs-bus-iio-distance-srf08
sysfs-bus-iio-frequency-ad9523
sysfs-bus-iio-frequency-adf4350
sysfs-bus-iio-gyro-bmg160
sysfs-bus-iio-health-afe440x
sysfs-bus-iio-humidity-hdc100x
sysfs-bus-iio-ina2xx-adc
sysfs-bus-iio-isl29501 iio: light: isl29501: Add support for the ISL29501 ToF sensor. 2018-07-23 19:18:10 +01:00
sysfs-bus-iio-light-isl29018
sysfs-bus-iio-light-lm3533-als
sysfs-bus-iio-light-si1133 iio: light: introduce si1133 2018-07-23 19:18:11 +01:00
sysfs-bus-iio-light-tsl2583
sysfs-bus-iio-lptimer-stm32
sysfs-bus-iio-magnetometer-hmc5843
sysfs-bus-iio-meas-spec
sysfs-bus-iio-mpu6050
sysfs-bus-iio-potentiometer-mcp4531
sysfs-bus-iio-proximity-as3935
sysfs-bus-iio-timer-stm32
sysfs-bus-iio-trigger-sysfs
sysfs-bus-iio-vf610
sysfs-bus-intel_th-devices-gth
sysfs-bus-intel_th-devices-msc
sysfs-bus-intel_th-devices-pti
sysfs-bus-intel_th-output-devices
sysfs-bus-mcb
sysfs-bus-mdio
sysfs-bus-media
sysfs-bus-mei
sysfs-bus-mmc
sysfs-bus-nfit acpi, nfit: Remove ecc_unit_size 2018-06-03 12:49:15 -07:00
sysfs-bus-pci PCI/P2PDMA: Add sysfs group to display p2pmem stats 2018-10-17 12:18:15 -05:00
sysfs-bus-pci-devices-aer_stats PCI/AER: Add sysfs attributes for rootport cumulative stats 2018-07-19 16:19:52 -05:00
sysfs-bus-pci-devices-cciss
sysfs-bus-pci-drivers-ehci_hcd
sysfs-bus-pci-drivers-janz-cmodio
sysfs-bus-pci-drivers-xhci_hcd
sysfs-bus-platform
sysfs-bus-rapidio
sysfs-bus-rbd
sysfs-bus-rpmsg
sysfs-bus-siox
sysfs-bus-thunderbolt thunderbolt: Export IOMMU based DMA protection support to userspace 2018-12-05 12:01:56 +03:00
sysfs-bus-typec usb: typec: Bus type for alternate modes 2018-07-02 17:42:36 +02:00
sysfs-bus-umc
sysfs-bus-usb usb: export firmware port location in sysfs 2018-10-02 12:05:30 -07:00
sysfs-bus-usb-devices-usbsevseg
sysfs-bus-usb-lvstest
sysfs-bus-vfio-mdev
sysfs-bus-vmbus vmbus: add driver_override support 2018-09-12 09:46:46 +02:00
sysfs-c2port
sysfs-cfq-target-latency
sysfs-class
sysfs-class-backlight-adp5520
sysfs-class-backlight-adp8860
sysfs-class-backlight-driver-adp8870
sysfs-class-backlight-driver-lm3533
sysfs-class-backlight-lm3639
sysfs-class-bdi
sysfs-class-bsr
sysfs-class-cxl Merge branch 'fixes' into next 2018-06-03 20:32:02 +10:00
sysfs-class-devfreq
sysfs-class-devfreq-event
sysfs-class-extcon
sysfs-class-fpga-bridge
sysfs-class-fpga-manager fpga: mgr: add status for fpga-manager 2018-07-15 13:55:44 +02:00
sysfs-class-fpga-region fpga: region: add compat_id support 2018-07-15 13:55:44 +02:00
sysfs-class-gnss gnss: add receiver type support 2018-06-28 20:32:51 +09:00
sysfs-class-iommu
sysfs-class-iommu-amd-iommu
sysfs-class-iommu-intel-iommu
sysfs-class-lcd
sysfs-class-led
sysfs-class-led-driver-lm3533
sysfs-class-led-driver-sc27xx leds: sc27xx: Add pattern_set/clear interfaces for LED controller 2018-10-11 21:59:11 +02:00
sysfs-class-led-flash
sysfs-class-led-trigger-netdev
sysfs-class-led-trigger-oneshot
sysfs-class-led-trigger-pattern Documentation: ABI: led-trigger-pattern: Fix typos 2018-11-07 21:43:46 +01:00
sysfs-class-led-trigger-usbport
sysfs-class-leds-gt683r
sysfs-class-mei mei: expose fw version to sysfs 2018-07-03 13:11:20 +02:00
sysfs-class-mic.txt
sysfs-class-mtd
sysfs-class-mux
sysfs-class-net First merge window pull request 2018-10-26 07:38:19 -07:00
sysfs-class-net-batman-adv
sysfs-class-net-cdc_ncm
sysfs-class-net-dsa net: dsa: Expose tagging protocol to user-space 2018-09-07 14:49:55 -07:00
sysfs-class-net-grcan
sysfs-class-net-janz-ican3
sysfs-class-net-mesh
sysfs-class-net-phydev
sysfs-class-net-qmi
sysfs-class-net-queues Documentation: Add explanation for XPS using Rx-queue(s) map 2018-07-02 09:06:24 +09:00
sysfs-class-net-statistics
sysfs-class-ocxl
sysfs-class-pktcdvd
sysfs-class-power
sysfs-class-power-twl4030
sysfs-class-powercap
sysfs-class-pwm
sysfs-class-rapidio
sysfs-class-rc
sysfs-class-rc-nuvoton
sysfs-class-regulator
sysfs-class-remoteproc
sysfs-class-rtc
sysfs-class-rtc-rtc0-device-rtc_calibration
sysfs-class-scsi_host
sysfs-class-scsi_tape
sysfs-class-stm
sysfs-class-stm_source
sysfs-class-switchtec
sysfs-class-typec usb: typec: Bus type for alternate modes 2018-07-02 17:42:36 +02:00
sysfs-class-usb_role
sysfs-class-uwb_rc
sysfs-class-uwb_rc-wusbhc
sysfs-class-watchdog
sysfs-class-zram
sysfs-dev
sysfs-devices
sysfs-devices-coredump
sysfs-devices-edac
sysfs-devices-firmware_node
sysfs-devices-lpss_ltr
sysfs-devices-memory
sysfs-devices-mmc
sysfs-devices-online
sysfs-devices-platform-_UDC_-gadget
sysfs-devices-platform-ACPI-TAD
sysfs-devices-platform-docg3
sysfs-devices-platform-dock
sysfs-devices-platform-ipmi
sysfs-devices-platform-sh_mobile_lcdc_fb
sysfs-devices-platform-trackpoint
sysfs-devices-power
sysfs-devices-power_resources_D0
sysfs-devices-power_resources_D1
sysfs-devices-power_resources_D2
sysfs-devices-power_resources_D3hot
sysfs-devices-power_resources_wakeup
sysfs-devices-power_state
sysfs-devices-real_power_state
sysfs-devices-resource_in_use
sysfs-devices-soc
sysfs-devices-sun
sysfs-devices-system-cpu x86/bugs, kvm: Introduce boot-time control of L1TF mitigations 2018-07-13 16:29:56 +02:00
sysfs-devices-system-ibm-rtl
sysfs-devices-system-xen_cpu
sysfs-driver-altera-cvp
sysfs-driver-bd9571mwv-regulator regulator: bd9571mwv: Document "backup_mode" sysfs file 2018-07-18 13:10:15 +01:00
sysfs-driver-fsi-master-gpio
sysfs-driver-genwqe
sysfs-driver-hid
sysfs-driver-hid-corsair
sysfs-driver-hid-lenovo
sysfs-driver-hid-logitech-hidpp
sysfs-driver-hid-logitech-lg4ff
sysfs-driver-hid-multitouch
sysfs-driver-hid-ntrig
sysfs-driver-hid-picolcd
sysfs-driver-hid-prodikeys
sysfs-driver-hid-roccat-kone
sysfs-driver-hid-srws1
sysfs-driver-hid-wiimote
sysfs-driver-input-axp-pek
sysfs-driver-intel-rapid-start
sysfs-driver-pciback
sysfs-driver-ppi
sysfs-driver-samsung-laptop
sysfs-driver-st
sysfs-driver-tegra-fuse
sysfs-driver-toshiba_acpi
sysfs-driver-toshiba_haps
sysfs-driver-typec-displayport usb: typec: Add driver for DisplayPort alternate mode 2018-07-02 17:42:36 +02:00
sysfs-driver-ufs
sysfs-driver-w1_ds28e17
sysfs-driver-wacom
sysfs-driver-xen-blkback xen/blkback: don't keep persistent grants too long 2018-08-27 12:12:03 -04:00
sysfs-driver-xen-blkfront
sysfs-firmware-acpi
sysfs-firmware-dmi-entries
sysfs-firmware-dmi-tables
sysfs-firmware-efi
sysfs-firmware-efi-esrt
sysfs-firmware-efi-runtime-map
sysfs-firmware-gsmi
sysfs-firmware-log
sysfs-firmware-memmap
sysfs-firmware-ofw
sysfs-firmware-opal-powercap
sysfs-firmware-opal-psr
sysfs-firmware-qemu_fw_cfg
sysfs-firmware-sfi
sysfs-firmware-sgi_uv
sysfs-fs-ext4
sysfs-fs-f2fs f2fs: add new idle interval timing for discard and gc paths 2018-09-19 15:55:14 -07:00
sysfs-fs-nilfs2
sysfs-fs-xfs
sysfs-hypervisor-xen
sysfs-ibft
sysfs-kernel-boot_params
sysfs-kernel-fscaps
sysfs-kernel-iommu_groups
sysfs-kernel-irq
sysfs-kernel-livepatch
sysfs-kernel-mm
sysfs-kernel-mm-hugepages
sysfs-kernel-mm-ksm
sysfs-kernel-mm-swap
sysfs-kernel-slab
sysfs-kernel-uids
sysfs-kernel-vmcoreinfo
sysfs-memory-page-offline
sysfs-module
sysfs-ocfs2
sysfs-platform-asus-laptop
sysfs-platform-asus-wmi
sysfs-platform-at91
sysfs-platform-brcmstb-gisb-arb
sysfs-platform-chipidea-usb2
sysfs-platform-chipidea-usb-otg
sysfs-platform-dell-laptop
sysfs-platform-dell-smbios
sysfs-platform-dfl-fme fpga: dfl: fme: add header sub feature support 2018-07-15 13:55:46 +02:00
sysfs-platform-dfl-port fpga: dfl: afu: add afu sub feature support 2018-07-15 13:55:47 +02:00
sysfs-platform-dptf
sysfs-platform-eeepc-laptop
sysfs-platform-hidma
sysfs-platform-hidma-mgmt
sysfs-platform-i2c-demux-pinctrl
sysfs-platform-ideapad-laptop platform/x86: ideapad-laptop: Add fn-lock setting 2018-05-22 12:24:12 +03:00
sysfs-platform-intel-wmi-thunderbolt
sysfs-platform-kim
sysfs-platform-lg-laptop platform/x86: Add LG Gram laptop special features driver 2018-10-19 19:21:57 +03:00
sysfs-platform-msi-laptop
sysfs-platform-phy-rcar-gen3-usb2
sysfs-platform-renesas_usb3
sysfs-platform-sst-atom
sysfs-platform-tahvo-usb
sysfs-platform-ts5500
sysfs-platform-twl4030-usb
sysfs-platform-usbip-vudc
sysfs-power PM / hibernate: Documentation: fix image_size default value 2018-09-10 12:07:06 +02:00
sysfs-pps
sysfs-profiling
sysfs-ptp
sysfs-tty
sysfs-uevent
sysfs-wusb_cbaf