android_kernel_samsung_a7y1.../drivers
Al Stone 53c8a8bd2c ACPI / CPPC: do not require the _PSD method
[ Upstream commit 4c4cdc4c63853fee48c02e25c8605fb65a6c9924 ]

According to the ACPI 6.3 specification, the _PSD method is optional
when using CPPC.  The underlying assumption is that each CPU can change
frequency independently from all other CPUs; _PSD is provided to tell
the OS that some processors can NOT do that.

However, the acpi_get_psd() function returns ENODEV if there is no _PSD
method present, or an ACPI error status if an error occurs when evaluating
_PSD, if present.  This makes _PSD mandatory when using CPPC, in violation
of the specification, and only on Linux.

This has forced some firmware writers to provide a dummy _PSD, even though
it is irrelevant, but only because Linux requires it; other OSPMs follow
the spec.  We really do not want to have OS specific ACPI tables, though.

So, correct acpi_get_psd() so that it does not return an error if there
is no _PSD method present, but does return a failure when the method can
not be executed properly.  This allows _PSD to be optional as it should
be.

Signed-off-by: Al Stone <ahs3@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-07 07:38:54 +02:00
..
accessibility
acpi ACPI / CPPC: do not require the _PSD method 2020-04-07 07:38:54 +02:00
amba
android Revert "coredump: fix race condition between mmget_not_zero()/get_task_mm() and core dumping" 2020-04-06 22:47:46 +05:30
ata libata: add SG safety checks in SFF pio transfers 2020-04-06 20:53:32 +02:00
atm Kconfig: Fix the reference to the IDT77105 Phy driver in the description of ATM_NICSTAR_USE_IDT77105 2020-04-06 21:36:26 +02:00
auxdisplay
base base: soc: Export soc_device_register/unregister APIs 2020-04-07 07:38:14 +02:00
battery
battery_v2
bcma
block floppy: fix usercopy direction 2020-04-06 21:37:07 +02:00
bluetooth Bluetooth: btrtl: Additional Realtek 8822CE Bluetooth devices 2020-04-07 07:37:02 +02:00
bts
bus
ccic
cdrom
char hpet: Fix division by zero in hpet_time_div() 2020-04-06 20:16:43 +02:00
clk clk: rockchip: Don't yell about bad mmc phases when getting 2020-04-06 21:35:47 +02:00
clocksource
connector
cpufreq cpufreq/pasemi: fix use-after-free in pas_cpufreq_cpu_init() 2020-04-06 20:38:49 +02:00
cpuidle
crypto crypto: talitos - fix missing break in switch statement 2020-04-07 07:36:33 +02:00
dca
devfreq
dio
dma dmaengine: iop-adma: use correct printk format strings 2020-04-07 07:38:32 +02:00
dma-buf
edac EDAC: Fix global-out-of-bounds write when setting edac_mc_poll_msec 2020-04-06 19:55:33 +02:00
eisa
extcon
fingerprint
firewire
firmware efi: cper: print AER info of PCIe fatal error 2020-04-07 07:38:26 +02:00
five
fmc
fpga
gator
gpio gpio: omap: ensure irq is enabled before wakeup 2020-04-06 19:54:51 +02:00
gps
gpu drm: Flush output polling on shutdown 2020-04-07 07:37:00 +02:00
gud
hid HID: hidraw: Fix invalid read in hidraw_ioctl 2020-04-07 07:36:28 +02:00
hsi
hv
hwmon hwmon: (nct7802) Fix wrong detection of in4 presence 2020-04-06 20:39:30 +02:00
hwspinlock
hwtracing stm class: Fix a double free of stm_source_device 2020-04-06 21:33:50 +02:00
i2c i2c: dev: fix potential memory leak in i2cdev_ioctl_rdwr 2020-04-06 19:04:00 +02:00
ide
idle
iio
infiniband IB/mlx4: Fix memory leaks 2020-04-06 21:34:25 +02:00
input Input: psmouse - fix build error of multiple definition 2020-04-06 20:50:06 +02:00
iommu iommu/amd: Move iommu_init_pci() to .init section 2020-04-06 20:50:24 +02:00
ipack
irqchip irqchip/gic-v3-its: Fix LPI release for Multi-MSI devices 2020-04-07 07:36:50 +02:00
isdn mISDN: enforce CAP_NET_RAW for raw sockets 2020-04-07 07:37:27 +02:00
leds leds: leds-lp5562 allow firmware files up to the maximum length 2020-04-07 07:37:48 +02:00
lguest
lightnvm
macintosh
mailbox mailbox: handle failed named mailbox channel request 2020-04-06 20:13:46 +02:00
mcb
md md: don't set In_sync if array is frozen 2020-04-07 07:38:24 +02:00
media media: ov9650: add a sanity check 2020-04-07 07:38:52 +02:00
memory
memstick memstick: Fix error cleanup path of memstick_init 2020-04-06 20:05:56 +02:00
message
mfd mfd: arizona: Fix undefined behavior 2020-04-06 20:06:18 +02:00
misc VMCI: Release resource if the work is already queued 2020-04-06 21:33:52 +02:00
mmc mmc: core: Fix init of SD cards reporting an invalid VDD range 2020-04-06 21:33:48 +02:00
motor
mtd mtd: cfi_cmdset_0002: Use chip_good() to retry in do_write_oneword() 2020-04-07 07:36:30 +02:00
muic
net net: lpc-enet: fix printk format strings 2020-04-07 07:38:37 +02:00
nfc st_nci_hci_connectivity_event_received: null check the allocation 2020-04-06 20:52:53 +02:00
ntb
nubus
nvdimm
nvme
nvmem
of
oprofile
parisc
parport parport: Fix mem leak in parport_register_dev_model 2020-04-06 19:16:22 +02:00
pci PCI: sysfs: Ignore lockdep for remove attribute 2020-04-06 20:06:10 +02:00
pcmcia
perf
phy phy: renesas: rcar-gen2: Fix memory leak at error paths 2020-04-06 20:06:04 +02:00
pinctrl pinctrl: rockchip: fix leaked of_node references 2020-04-06 20:05:52 +02:00
platform
pnp
power
powercap
pps drivers/pps/pps.c: clear offset flags in PPS_SETPARAMS ioctl 2020-04-06 20:26:27 +02:00
ps3
ptp
pwm pwm: Fix deadlock warning when removing PWM device 2020-04-06 19:02:42 +02:00
rapidio
ras
regulator regulator: s2mps11: Fix buck7 and buck8 wrong voltages 2020-04-06 20:03:59 +02:00
remoteproc
reset
rpmsg
rtc
s390 s390/qdio: add sanity checks to the fast-requeue path 2020-04-06 20:38:52 +02:00
sbus
scsi scsi: ufs: Fix NULL pointer dereference in ufshcd_config_vreg_hpm() 2020-04-06 21:33:01 +02:00
security/samsung/icdrv
sensorhub
sensors
sfi
sh
sn
soc
spi spi: bcm2835aux: fix corruptions for longer spi transfers 2020-04-06 21:34:39 +02:00
spmi
ssb
staging staging: comedi: dt3000: Fix rounding up of timer divisor 2020-04-06 20:49:26 +02:00
switch
target
tc
tee
thermal
thunderbolt
trace
tty tty/serial: atmel: reschedule TX after RX was started 2020-04-06 21:36:12 +02:00
uh
uio
usb USB: usbcore: Fix slab-out-of-bounds bug during device reset 2020-04-06 21:36:00 +02:00
uwb
vfio
vhost vhost: make sure log_num < in_num 2020-04-06 21:35:05 +02:00
video video: imsttfb: fix potential NULL pointer dereferences 2020-04-06 19:02:29 +02:00
virt
virtio
vision
vlynq
vme
w1
watchdog watchdog: bcm2835_wdt: Fix module autoload 2020-04-06 21:33:14 +02:00
xen xen/pciback: remove set but not used variable 'old_state' 2020-04-06 20:48:45 +02:00
zorro
Kconfig
Makefile