Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Warning message #6

Closed
wants to merge 97 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
0cb3e34
Driver: Silead: add dmi match for 'jumper ezpad 6 pro b' into touchsc…
userx14 Jan 17, 2019
ea7d150
extcon-intel-cht-wc: Make charger detection co-existed with OTG host …
jekhor Mar 3, 2019
6161dcd
extcon intel-cht-wc: Enable external charger
jekhor Mar 3, 2019
ca0ea70
staging/vboxvideo: Another FIXME item
danvet Feb 21, 2019
1796a12
staging/vboxvideo: Use same BO mmap offset as other drivers
Feb 7, 2019
2181858
drm/ttm: Define a single DRM_FILE_PAGE_OFFSET constant
Feb 7, 2019
71154ce
drm/ttm: Remove file_page_offset parameter from ttm_bo_device_init()
Feb 7, 2019
e669eab
drm/ttm: Quick-test mmap offset in ttm_bo_mmap()
Feb 7, 2019
a2d32a7
drm: Use the same mmap-range offset and size for GEM and TTM
Feb 7, 2019
8a26531
staging/vboxvideo: Drop initial_mode_queried workaround
jwrdegoede Mar 4, 2019
4536dd0
staging/vboxvideo: Refactor vbox_update_mode_hints
jwrdegoede Mar 4, 2019
c2f04b6
drm/vboxvideo: Move the vboxvideo driver out of staging
jwrdegoede Mar 4, 2019
78d1c4c
drm/vboxvideo: Remove unused including <linux/version.h>
Mar 20, 2019
fe493a9
MAINTAINERS: Add an entry for the vboxvideo driver
jwrdegoede Mar 11, 2019
51c39c2
HID: logitech: check the return value of create_singlethread_workqueue
kengiter Mar 14, 2019
bb1540c
HID: logitech: Handle 0 scroll events for the m560
whot Mar 19, 2019
41a99c1
HID: logitech-hidpp: simplify printing of HID++ version
jwrdegoede Mar 22, 2019
5cf60ca
HID: logitech-hidpp: remove hidpp_is_connected()
jwrdegoede Mar 22, 2019
ad9e1ed
HID: logitech-hidpp: change low battery level threshold from 31 to 30…
jwrdegoede Mar 22, 2019
e289116
usb: typec: altmodes/displayport: Fall back to multi-func pins
jwrdegoede Feb 25, 2019
dfdcd47
usb: typec: pi3usb30532: Keep orientation when setting mux to safe mode
jwrdegoede Feb 22, 2019
9bc988f
usb: typec: fusb302: Make fusb302_set_cc_polarity also set pull ups /…
jwrdegoede Jan 13, 2019
2ca8da1
usb: typec: fusb302: Refactor / simplify tcpm_set_cc()
jwrdegoede Jan 13, 2019
edd3f73
usb: typec: fusb302: Fold fusb302_set_cc_pull into tcpm_set_cc
jwrdegoede Jan 13, 2019
cf4a691
usb: typec: fusb302: Check vconn is off when we start toggling
jwrdegoede Jan 13, 2019
0353d45
usb: typec: fusb302: Fix fusb302_handle_togdone_src Ra handling
jwrdegoede Jan 13, 2019
f7fc2ef
usb: typec: fusb302: 2 small misc. fixes
jwrdegoede Jan 15, 2019
040376e
usb: typec: fusb302: Improve suspend/resume handling
jwrdegoede Mar 7, 2019
8c62b94
usb: typec: fusb302: Add __printf attribute to fusb302_log function
jwrdegoede Feb 22, 2019
0df0abb
crypto/sha256: Factor out the parts of base API that don't use shash_…
amluto Dec 27, 2016
c66dd36
crypto/sha256: Export a sha256_{init,update,final}_direct() API
amluto Jan 3, 2017
e61a9e5
crypto/sha256: Build the SHA256 core separately from the crypto module
amluto Jan 4, 2017
19bfc1c
efi: Export boot-services code and data as debugfs-blobs
jwrdegoede Mar 23, 2018
95b7d1c
efi: Add embedded peripheral firmware support
jwrdegoede Mar 25, 2018
7c54f6c
platform/x86: touchscreen_dmi: Add EFI embedded firmware info support
jwrdegoede Apr 6, 2018
de67bf8
platform/x86: touchscreen_dmi: Add info for the Chuwi Vi8 Plus tablet
jwrdegoede Apr 7, 2018
694510a
HID: core: Call request_module before doing device_add
jwrdegoede Mar 21, 2019
b9ad06d
HID: force setting drvdata to NULL when removing the driver
bentiss Jan 3, 2019
1564c5a
ASoC: rt5651: Add support for active-high jack detect
jwrdegoede Feb 20, 2019
2adaeab
ASoC: Intel: bytcr_rt5651: Add BYT_RT5651_JD_NOT_INV quirk
jwrdegoede Mar 3, 2019
fb872b7
ASoC: Intel: cht_bsw_max98090_ti: Enable codec clock once and keep it…
jwrdegoede Jan 25, 2019
4d43e3b
ARM: dts: sun7i: Disable OOB IRQ for brcm wifi on Cubietruck and Bana…
jwrdegoede Sep 30, 2018
81ccf7a
drm/i915/dsi: Adjust crtc_clock for burst_mode_ratio
jwrdegoede Nov 30, 2018
94643fc
drm/i915/dsi: Call drm_connector_cleanup on vlv_dsi_init error exit path
jwrdegoede Nov 30, 2018
aeca4dc
drm/i915: Make intel_fuzzy_clock_check available outside of intel_dis…
jwrdegoede Nov 29, 2018
270eb05
drm/i915/dsi: Move logging of DSI VBT parameters to a helper function
jwrdegoede Nov 30, 2018
6b007b8
drm/i915/dsi: Move vlv/icl_dphy_param_init call out of intel_dsi_vbt_…
jwrdegoede Nov 30, 2018
4d6763f
drm/i915/dsi: Read back pclk set by GOP and use that as pclk (v3)
jwrdegoede Nov 29, 2018
38d2cd2
x86/cpu/intel: Lower "ENERGY_PERF_BIAS: Set to normal" message log pr…
jwrdegoede Dec 30, 2018
4695a5b
drm: Add support for out-of-band hotplug notification
jwrdegoede Feb 24, 2019
ff3f407
i915: Add support for out-of-bound hotplug events
jwrdegoede Feb 24, 2019
ee45bf1
usb: typec: altmodes/displayport: Notify drm subsys of hotplug events
jwrdegoede Feb 24, 2019
751b162
Track my personal .config in git
jwrdegoede Mar 11, 2017
55fc0df
Intel Atom suspend: add debug check for S0ix blockers
Jul 26, 2017
bca2de2
usb: typec: fusb302: WIP/HACK: Add support for displayport altmode
jwrdegoede Dec 15, 2018
89b90af
fs: Add VirtualBox guest shared folder (vboxsf) support
jwrdegoede Aug 11, 2017
d3a2f02
Input: Rename extra mouse buttons defines to match their actual usage
jwrdegoede Mar 30, 2019
1dd1f4b
Input: Stop using deprecated BTN_EXTRA, _SIDE, _FORWARD and _BACK def…
jwrdegoede Mar 30, 2019
5b48746
ARM: Stop using deprecated BTN_EXTRA, _SIDE, _FORWARD and _BACK defines
jwrdegoede Mar 30, 2019
5597c13
media: rc-core: ati_remote: Stop using deprecated BTN_EXTRA, _SIDE de…
jwrdegoede Mar 30, 2019
9730258
Bluetooth: hidp: Stop using deprecated BTN_EXTRA, _SIDE defines
jwrdegoede Mar 30, 2019
10800c1
brcmfmac: Add DMI nvram filename quirk for ACEPC T8 mini PC
jwrdegoede Mar 28, 2019
3916d4a
power: supply: axp288_fuel_gauge: Add ACEPC T8 mini PC to the blacklist
jwrdegoede Mar 28, 2019
5a03c34
bluetooth: hci_bcm: debugfoo
jwrdegoede Mar 28, 2019
de9f228
HID: quirks: do not blacklist Logitech devices
bentiss Sep 7, 2018
f4eafb7
HID: logitech-dj: reshuffle logi_dj_recv_forward_*
bentiss Jan 10, 2019
e0bb383
HID: logitech-dj: fix variable naming in logi_dj_hidpp_event
bentiss Jan 10, 2019
1aa52e8
HID: logitech-dj: use BIT() macro for RF Report types
bentiss Jan 11, 2019
ae480fb
HID: logitech-dj: declare and use a few HID++ 1.0 constants
bentiss Jan 16, 2019
5e5679e
HID: logitech-dj: remove USB dependency
bentiss Jan 2, 2019
49caf49
HID: logitech-dj: do not schedule the dj report itself
bentiss Jan 4, 2019
b678c6c
HID: logitech-dj: remove unused querying_devices variable
jwrdegoede Mar 26, 2019
e919368
HID: logitech-dj: protect the paired_dj_devices access in add_djhid_d…
jwrdegoede Mar 26, 2019
e7fbd95
HID: logitech-dj: rename dj_receiver_dev.hdev to dj_receiver_dev.hidpp
jwrdegoede Mar 26, 2019
063db47
HID: logitech-dj: support sharing struct dj_receiver_dev between USB-…
jwrdegoede Mar 26, 2019
aefc809
HID: logitech-dj: add logi_dj_recv_queue_unknown_work helper
jwrdegoede Mar 27, 2019
e948f2b
HID: logitech-dj: add support for non unifying receivers
jwrdegoede Mar 26, 2019
f33fda7
HID: logitech-dj: add support for the gaming unifying receiver
bentiss Mar 27, 2019
61dafad
HID: logitech-dj: add support for 27 MHz receivers
jwrdegoede Mar 27, 2019
d342fd5
HID: logitech-dj: add support for 27 MHz mouse-only receivers
jwrdegoede Mar 27, 2019
48b1230
HID: logitech-dj: replace dev_err calls with hid_err calls
jwrdegoede Mar 27, 2019
a74e9e8
HID: logitech-dj: deal with some KVMs adding an extra interface to th…
jwrdegoede Mar 17, 2019
94192d0
HID: logitech-dj: pick a better name for non-unifying receivers
jwrdegoede Apr 1, 2019
47ea1c7
HID: logitech-dj: remove false-positive error on double queueing of d…
jwrdegoede Apr 1, 2019
78ac5d4
HID: logitech-dj: add support for Logitech Bluetooth Mini-Receiver
jwrdegoede Mar 31, 2019
f097045
HID: logitech-hidpp: ignore very-short or empty names
jwrdegoede Apr 1, 2019
afa5caa
HID: logitech-hidpp: allow non HID++ devices to be handled by this mo…
bentiss Jan 16, 2017
38aaf54
HID: logitech-hidpp: make .probe usbhid capable
bentiss Dec 20, 2018
73df634
HID: logitech-hidpp: use RAP instead of FAP to get the protocol version
jwrdegoede Mar 21, 2019
ba09ff8
HID: logitech-hidpp: skip getting pairing info on devs without a long…
jwrdegoede Mar 21, 2019
a9d75e8
HID: logitech-hidpp: do not hardcode very long report length
jwrdegoede Apr 2, 2019
afb44b3
HID: logitech-hidpp: add input_device ptr to struct hidpp_device
jwrdegoede Mar 29, 2019
af8b802
HID: logitech-hidpp: add support for HID++ 1.0 mice hwheel and extra …
jwrdegoede Mar 29, 2019
931b9e9
HID: logitech-hidpp: add support for HID++ 1.0 consumer keys reports
jwrdegoede Apr 1, 2019
1bb25b7
HID: Stop using deprecated BTN_EXTRA, _SIDE, _FORWARD and _BACK defines
jwrdegoede Mar 30, 2019
a8ee716
drm/gma500: Add CedarView LVDS blacklist
jwrdegoede Apr 3, 2019
7c593b1
FIX: Warning message
sfumato77 Apr 3, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8,687 changes: 8,687 additions & 0 deletions .config

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions Documentation/devicetree/bindings/sound/rt5651.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ Optional properties:
2: Use JD1_2 pin for jack-detect
3: Use JD2 pin for jack-detect

- realtek,jack-detect-not-inverted
bool. Normal jack-detect switches give an inverted (active-low) signal,
set this bool in the rare case you've a jack-detect switch which is not
inverted.

- realtek,over-current-threshold-microamp
u32, micbias over-current detection threshold in µA, valid values are
600, 1500 and 2000µA.
Expand Down
76 changes: 76 additions & 0 deletions Documentation/driver-api/firmware/request_firmware.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,79 @@ If something went wrong request_firmware() returns non-zero and fw_entry
is set to NULL. Once your driver is done with processing the firmware it
can call call release_firmware(fw_entry) to release the firmware image
and any related resource.

EFI embedded firmware support
=============================

On some devices the system's EFI code / ROM may contain an embedded copy
of firmware for some of the system's integrated peripheral devices and
the peripheral's Linux device-driver needs to access this firmware.

A device driver which needs this can describe the firmware it needs
using an efi_embedded_fw_desc struct:

.. kernel-doc:: include/linux/efi_embedded_fw.h
:functions: efi_embedded_fw_desc

The EFI embedded-fw code works by scanning all EFI_BOOT_SERVICES_CODE memory
segments for an eight byte sequence matching prefix, if the prefix is found it
then does a crc32 over length bytes and if that matches makes a copy of length
bytes and adds that to its list with found firmwares.

To avoid doing this somewhat expensive scan on all systems, dmi matching is
used. Drivers are expected to export a dmi_system_id array, with each entries'
driver_data pointing to an efi_embedded_fw_desc.

To register this array with the efi-embedded-fw code, a driver needs to:

1. Always be builtin to the kernel or store the dmi_system_id array in a
separate object file which always gets builtin.

2. Add an extern declaration for the dmi_system_id array to
include/linux/efi_embedded_fw.h.

3. Add the dmi_system_id array to the embedded_fw_table in
drivers/firmware/efi/embedded-firmware.c wrapped in a #ifdef testing that
the driver is being builtin.

4. Add "select EFI_EMBEDDED_FIRMWARE if EFI_STUB" to its Kconfig entry.

The request_firmware() function will always first try to load firmware with
the specified name directly from the disk, so the EFI embedded-fw can always
be overridden by placing a file under /lib/firmare.

To make request_firmware() fallback to trying EFI embedded firmwares after this,
the driver must set a boolean "efi-embedded-firmware" device-property on the
device before passing it to request_firmware(). Note that this disables the
usual usermodehelper fallback, so you may want to only set this on systems
which match your dmi_system_id array.

Once the device-property is set, the driver can use the regular
request_firmware() function to get the firmware, using the name filled in
in the efi_embedded_fw_desc.

Note that:

1. The code scanning for EFI embbedded-firmware runs near the end
of start_kernel(), just before calling rest_init(). For normal drivers and
subsystems using subsys_initcall() to register themselves this does not
matter. This means that code running earlier cannot use EFI
embbedded-firmware.

2. ATM the EFI embedded-fw code assumes that firmwares always start at an offset
which is a multiple of 8 bytes, if this is not true for your case send in
a patch to fix this.

3. ATM the EFI embedded-fw code only works on x86 because other archs free
EFI_BOOT_SERVICES_CODE before the EFI embedded-fw code gets a chance to
scan it.

4. The current brute-force scanning of EFI_BOOT_SERVICES_CODE is an ad-hoc
brute-force solution. There has been discussion to use the PI spec's
Firmware Volume protocol. This has been rejected because the FV Protocol
relies on *internal* interfaces of PI spec, and:
1. The The PI spec does not define firmware at all
2. The internal interfaces of PI Spec does not guarantee any backward
compatibility. Any implementation details in FV may be subject to change,
and may vary system to system. Supporting the FV Protocol would be
difficult as it is purposely ambiguous.
1 change: 1 addition & 0 deletions Documentation/gpu/drm-kms-helpers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ Output Probing Helper Functions Reference

.. kernel-doc:: drivers/gpu/drm/drm_probe_helper.c
:doc: output probing helper overview
:doc: out-of-band hotplug event helper overview

.. kernel-doc:: drivers/gpu/drm/drm_probe_helper.c
:export:
Expand Down
2 changes: 1 addition & 1 deletion Documentation/input/event-codes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ should be used to report when the tool is in contact with the tablet.
BTN_{STYLUS,STYLUS2} should be used to report buttons on the tool itself. Any
button may be used for buttons on the tablet except BTN_{MOUSE,LEFT}.
BTN_{0,1,2,etc} are good generic codes for unlabeled buttons. Do not use
meaningful buttons, like BTN_FORWARD, unless the button is labeled for that
meaningful buttons, like BTN_FORWRD, unless the button is labeled for that
purpose on the device.

For new hardware, both INPUT_PROP_DIRECT and INPUT_PROP_POINTER should be set.
13 changes: 13 additions & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -5055,6 +5055,13 @@ L: dri-devel@lists.freedesktop.org
F: drivers/gpu/drm/vkms/
F: Documentation/gpu/vkms.rst

DRM DRIVER FOR VIRTUALBOX VIRTUAL GPU
M: Hans de Goede <hdegoede@redhat.com>
L: dri-devel@lists.freedesktop.org
S: Maintained
F: drivers/gpu/drm/vboxvideo/
T: git git://anongit.freedesktop.org/drm/drm-misc

DRM DRIVER FOR VMWARE VIRTUAL GPU
M: "VMware Graphics" <linux-graphics-maintainer@vmware.com>
M: Thomas Hellstrom <thellstrom@vmware.com>
Expand Down Expand Up @@ -16577,6 +16584,12 @@ F: include/linux/vbox_utils.h
F: include/uapi/linux/vbox*.h
F: drivers/virt/vboxguest/

VIRTUAL BOX SHARED FOLDER VFS DRIVER:
M: Hans de Goede <hdegoede@redhat.com>
L: linux-fsdevel@vger.kernel.org
S: Maintained
F: fs/vboxsf/*

VIRTUAL SERIO DEVICE DRIVER
M: Stephen Chandler Paul <thatslyude@gmail.com>
S: Maintained
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/imx27-apf27dev.dts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
user-key {
label = "user";
gpios = <&gpio6 13 GPIO_ACTIVE_HIGH>;
linux,code = <276>; /* BTN_EXTRA */
linux,code = <276>; /* BTN_FORWRD */
};
};

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/omap3-devkit8000-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
user {
label = "user";
gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>;
linux,code = <BTN_EXTRA>;
linux,code = <BTN_FORWRD>;
wakeup-source;
};
};
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/omap4-var-om44customboard.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
user-key@184 {
label = "user";
gpios = <&gpio6 24 GPIO_ACTIVE_HIGH>; /* gpio 184 */
linux,code = <BTN_EXTRA>;
linux,code = <BTN_FORWRD>;
wakeup-source;
};
};
Expand Down
16 changes: 13 additions & 3 deletions arch/arm/boot/dts/sun7i-a20-bananapro.dts
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,19 @@
brcmf: wifi@1 {
reg = <1>;
compatible = "brcm,bcm4329-fmac";
interrupt-parent = <&pio>;
interrupts = <7 15 IRQ_TYPE_LEVEL_LOW>;
interrupt-names = "host-wake";
/*
* OOB interrupt support is broken ATM, often the first irq
* does not get seen resulting in the drv probe failing with:
*
* brcmfmac: brcmf_sdio_bus_rxctl: resumed on timeout
* brcmfmac: brcmf_bus_started: failed: -110
* brcmfmac: brcmf_attach: dongle is not responding: err=-110
* brcmfmac: brcmf_sdio_firmware_callback: brcmf_attach failed
*
* interrupt-parent = <&pio>;
* interrupts = <7 15 IRQ_TYPE_LEVEL_LOW>;
* interrupt-names = "host-wake";
*/
};
};

Expand Down
16 changes: 13 additions & 3 deletions arch/arm/boot/dts/sun7i-a20-cubietruck.dts
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,19 @@
brcmf: wifi@1 {
reg = <1>;
compatible = "brcm,bcm4329-fmac";
interrupt-parent = <&pio>;
interrupts = <7 10 IRQ_TYPE_LEVEL_LOW>; /* PH10 / EINT10 */
interrupt-names = "host-wake";
/*
* OOB interrupt support is broken ATM, often the first irq
* does not get seen resulting in the drv probe failing with:
*
* brcmfmac: brcmf_sdio_bus_rxctl: resumed on timeout
* brcmfmac: brcmf_bus_started: failed: -110
* brcmfmac: brcmf_attach: dongle is not responding: err=-110
* brcmfmac: brcmf_sdio_firmware_callback: brcmf_attach failed
*
* interrupt-parent = <&pio>;
* interrupts = <7 10 IRQ_TYPE_LEVEL_LOW>; /* PH10 / EINT10 */
* interrupt-names = "host-wake";
*/
};
};

Expand Down
6 changes: 3 additions & 3 deletions arch/arm/mach-imx/mach-pcm037_eet.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@ static struct gpio_keys_button pcm037_gpio_keys[] = {
.wakeup = 0,
}, {
.type = EV_KEY,
.code = BTN_FORWARD,
.code = BTN_EXTRA1,
.gpio = 50,
.desc = "Focus Forward",
.wakeup = 0,
}, {
.type = EV_KEY,
.code = BTN_BACK,
.code = BTN_EXTRA2,
.gpio = 51,
.desc = "Focus Backward",
.wakeup = 0,
Expand All @@ -142,7 +142,7 @@ static struct gpio_keys_button pcm037_gpio_keys[] = {
.wakeup = 0,
}, {
.type = EV_KEY,
.code = BTN_EXTRA,
.code = BTN_FORWRD,
.gpio = 53,
.desc = "Release Full",
.wakeup = 0,
Expand Down
12 changes: 12 additions & 0 deletions arch/x86/include/asm/intel_idle.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#ifndef _ASM_X86_INTEL_IDLE_H
#define _ASM_X86_INTEL_IDLE_H

#include <linux/notifier.h>

#ifdef CONFIG_PM_DEBUG
void intel_idle_freeze_notifier_register(struct notifier_block *nb);
void intel_idle_freeze_notifier_unregister(struct notifier_block *nb);
#endif


#endif /* _ASM_X86_INTEL_IDLE_H */
4 changes: 2 additions & 2 deletions arch/x86/kernel/cpu/intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -611,8 +611,8 @@ static void init_intel_energy_perf(struct cpuinfo_x86 *c)
if ((epb & 0xF) != ENERGY_PERF_BIAS_PERFORMANCE)
return;

pr_warn_once("ENERGY_PERF_BIAS: Set to 'normal', was 'performance'\n");
pr_warn_once("ENERGY_PERF_BIAS: View and update with x86_energy_perf_policy(8)\n");
pr_info_once("ENERGY_PERF_BIAS: Set to 'normal', was 'performance'\n");
pr_info_once("ENERGY_PERF_BIAS: View and update with x86_energy_perf_policy(8)\n");
epb = (epb & ~0xF) | ENERGY_PERF_BIAS_NORMAL;
wrmsrl(MSR_IA32_ENERGY_PERF_BIAS, epb);
}
Expand Down
49 changes: 49 additions & 0 deletions arch/x86/platform/atom/punit_atom_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <asm/cpu_device_id.h>
#include <asm/intel-family.h>
#include <asm/iosf_mbi.h>
#include <asm/intel_idle.h>

/* Subsystem config/status Video processor */
#define VED_SS_PM0 0x32
Expand Down Expand Up @@ -138,6 +139,47 @@ static void punit_dbgfs_unregister(void)
debugfs_remove_recursive(punit_dbg_file);
}

#if defined(CONFIG_PM_DEBUG) && defined(CONFIG_INTEL_IDLE)
struct punit_notifier_block {
struct notifier_block nb;
struct punit_device *punit_device;
};

static int punit_freeze_cb(struct notifier_block *nb,
unsigned long action, void *data)
{
struct punit_notifier_block *punit_nb =
container_of(nb, struct punit_notifier_block, nb);
struct punit_device *punit_devp = punit_nb->punit_device;
u32 punit_pwr_status;
int index;
int status;
int cpu = action;

while (punit_devp->name) {
status = iosf_mbi_read(BT_MBI_UNIT_PMC, MBI_REG_READ,
punit_devp->reg, &punit_pwr_status);
if (status) {
pr_err("punit debug: %s: read failed\n",
punit_devp->name);
} else {
index = (punit_pwr_status >> punit_devp->sss_pos) & 3;
if (!index)
pr_err("punit debug: cpu %d: %s is in D0 prior to freeze\n",
cpu, punit_devp->name);
}
punit_devp++;
}
return 0;
}

static struct punit_notifier_block punit_freeze_nb = {
.nb = {
.notifier_call = punit_freeze_cb,
},
};
#endif

#define ICPU(model, drv_data) \
{ X86_VENDOR_INTEL, 6, model, X86_FEATURE_MWAIT,\
(kernel_ulong_t)&drv_data }
Expand All @@ -164,11 +206,18 @@ static int __init punit_atom_debug_init(void)
if (ret < 0)
return ret;

#if defined(CONFIG_PM_DEBUG) && defined(CONFIG_INTEL_IDLE)
punit_freeze_nb.punit_device = (struct punit_device *)id->driver_data;
intel_idle_freeze_notifier_register(&punit_freeze_nb.nb);
#endif
return 0;
}

static void __exit punit_atom_debug_exit(void)
{
#if defined(CONFIG_PM_DEBUG) && defined(CONFIG_INTEL_IDLE)
intel_idle_freeze_notifier_unregister(&punit_freeze_nb.nb);
#endif
punit_dbgfs_unregister();
}

Expand Down
2 changes: 2 additions & 0 deletions arch/x86/platform/efi/efi.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ int __init efi_memblock_x86_reserve_range(void)
efi.memmap.desc_version);

memblock_reserve(pmap, efi.memmap.nr_map * efi.memmap.desc_size);
set_bit(EFI_PRESERVE_BS_REGIONS, &efi.flags);

return 0;
}
Expand Down Expand Up @@ -993,6 +994,7 @@ static void __init __efi_enter_virtual_mode(void)
panic("EFI call to SetVirtualAddressMap() failed!");
}

efi_check_for_embedded_firmwares();
efi_free_boot_services();

/*
Expand Down
4 changes: 4 additions & 0 deletions arch/x86/platform/efi/quirks.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,10 @@ void __init efi_free_boot_services(void)
int num_entries = 0;
void *new, *new_md;

/* Keep all regions for /sys/kernel/debug/efi */
if (efi_enabled(EFI_DBG))
return;

for_each_efi_memory_desc(md) {
unsigned long long start = md->phys_addr;
unsigned long long size = md->num_pages << EFI_PAGE_SHIFT;
Expand Down
8 changes: 8 additions & 0 deletions crypto/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ config XOR_BLOCKS
#
source "crypto/async_tx/Kconfig"

#
# Cryptographic algorithms that are usable without the Crypto API.
# None of these should have visible config options.
#
config CRYPTO_SHA256_DIRECT
bool

#
# Cryptographic API Configuration
#
Expand Down Expand Up @@ -905,6 +912,7 @@ config CRYPTO_SHA1_PPC_SPE

config CRYPTO_SHA256
tristate "SHA224 and SHA256 digest algorithm"
select CRYPTO_SHA256_DIRECT
select CRYPTO_HASH
help
SHA256 secure hash standard (DFIPS 180-2).
Expand Down
1 change: 1 addition & 0 deletions crypto/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ obj-$(CONFIG_CRYPTO_RMD160) += rmd160.o
obj-$(CONFIG_CRYPTO_RMD256) += rmd256.o
obj-$(CONFIG_CRYPTO_RMD320) += rmd320.o
obj-$(CONFIG_CRYPTO_SHA1) += sha1_generic.o
obj-$(CONFIG_CRYPTO_SHA256_DIRECT) += sha256_direct.o
obj-$(CONFIG_CRYPTO_SHA256) += sha256_generic.o
obj-$(CONFIG_CRYPTO_SHA512) += sha512_generic.o
obj-$(CONFIG_CRYPTO_SHA3) += sha3_generic.o
Expand Down
Loading