- 28 8月, 2021 4 次提交
-
-
由 Mario Limonciello 提交于
Yellow carp matches same behavior as green sardine and other Zen3 products, but have different CCD offsets. Signed-off-by: NMario Limonciello <mario.limonciello@amd.com> Acked-by: NBorislav Petkov <bp@suse.de> Link: https://lore.kernel.org/r/20210827201527.24454-3-mario.limonciello@amd.comSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Mario Limonciello 提交于
Some of the existing assumptions made do not scale properly to new silicon in upcoming changes. This commit should cause no functional changes to existing silicon. Signed-off-by: NMario Limonciello <mario.limonciello@amd.com> Link: https://lore.kernel.org/r/20210827201527.24454-2-mario.limonciello@amd.comSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Mario Limonciello 提交于
Tdie is an offset calculation that should only be shown when temp_offset is actually put into a table. This is useless to show for all CPU/APU. Show it only when necessary. Signed-off-by: NMario Limonciello <mario.limonciello@amd.com> Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Mario Limonciello 提交于
These follow the rest of the existing codepaths for families 17h and 19h. Signed-off-by: NMario Limonciello <mario.limonciello@amd.com> Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
- 18 8月, 2021 33 次提交
-
-
由 Lukas Bulwahn 提交于
Commit 9049572f ("hwmon: Remove amd_energy driver") removes the driver, but misses to adjust the Makefile. Hence, ./scripts/checkkconfigsymbols.py warns: SENSORS_AMD_ENERGY Referencing files: drivers/hwmon/Makefile Remove the missing piece of this driver removal. Fixes: 9049572f ("hwmon: Remove amd_energy driver") Signed-off-by: NLukas Bulwahn <lukas.bulwahn@gmail.com> Link: https://lore.kernel.org/r/20210817084811.10673-1-lukas.bulwahn@gmail.comSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Armin Wolf 提交于
Drop #ifdef DEBUG and use ktime_us_delta() for improved precision. Signed-off-by: NArmin Wolf <W_Armin@gmx.de> Reviewed-by: NPali Rohár <pali@kernel.org> Link: https://lore.kernel.org/r/20210814190516.26718-1-W_Armin@gmx.deSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Armin Wolf 提交于
Mark function i8k_get_fan_nominal_speed() as __init since it is only used in code also marked as __init. Signed-off-by: NArmin Wolf <W_Armin@gmx.de> Reviewed-by: NPali Rohár <pali@kernel.org> Link: https://lore.kernel.org/r/20210814143637.11922-5-W_Armin@gmx.deSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Armin Wolf 提交于
Both the config and the DMI tables never change and are only used during module init for setting up the device data struct. Mark all of them as const and __initconst for a smaller runtime memory footprint. Signed-off-by: NArmin Wolf <W_Armin@gmx.de> Reviewed-by: NPali Rohár <pali@kernel.org> Link: https://lore.kernel.org/r/20210814143637.11922-2-W_Armin@gmx.deSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Chris Packham 提交于
BPD-RS600 modules running firmware v5.70 misreport the MFR_PIN_MAX. The indicate a maximum of 1640W instead of 700W. Detect the invalid reading and return a sensible value instead. Signed-off-by: NChris Packham <chris.packham@alliedtelesis.co.nz> Link: https://lore.kernel.org/r/20210812014000.26293-3-chris.packham@alliedtelesis.co.nzSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Chris Packham 提交于
In the initial implementation a number of PMBUS_x_WARN_LIMITs were mapped to MFR fields. This was incorrect as these MFR limits reflect the rated limit as opposed to a limit which will generate warning. Instead return -ENXIO like we were already doing for other WARN_LIMITs. Subsequently these rated limits have been exposed generically as new fields in the sysfs ABI so the values are still available. Fixes: 15b2703e ("hwmon: (pmbus) Add driver for BluTek BPA-RS600") Signed-off-by: NChris Packham <chris.packham@alliedtelesis.co.nz> Link: https://lore.kernel.org/r/20210812014000.26293-2-chris.packham@alliedtelesis.co.nzSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Nuno Sá 提交于
The HW has some predefined points where it will associate a PWM value. However some users might want to better set these points to their usecases. This patch exposes these points as pwm auto_points: * pwm1_auto_point1_temp_hyst: temperature threshold below which PWM should be 0%; * pwm1_auto_point1_temp: temperature threshold above which PWM should be 25%; * pwm1_auto_point2_temp_hyst: temperature threshold below which PWM should be 25%; * pwm1_auto_point2_temp: temperature threshold above which PWM should be 50%; * pwm1_auto_point3_temp_hyst: temperature threshold below which PWM should be 50%; * pwm1_auto_point3_temp: temperature threshold above which PWM should be 75%; * pwm1_auto_point4_temp_hyst: temperature threshold below which PWM should be 75%; * pwm1_auto_point4_temp: temperature threshold above which PWM should be 100%; Signed-off-by: NNuno Sá <nuno.sa@analog.com> Link: https://lore.kernel.org/r/20210811114853.159298-4-nuno.sa@analog.comSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Nuno Sá 提交于
The core will now start out of reset at boot as soon as clocking is available. Hence, by the time we unmask the interrupts we already might have some of them set. Thus, it's important to handle them in the natural order the core generates them. Otherwise, we could process 'ADI_IRQ_SRC_PWM_CHANGED' before 'ADI_IRQ_SRC_TEMP_INCREASE' and erroneously set 'update_tacho_params' to true. Signed-off-by: NNuno Sá <nuno.sa@analog.com> Link: https://lore.kernel.org/r/20210811114853.159298-3-nuno.sa@analog.comSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Nuno Sá 提交于
The core will only work if it's clock is enabled. This patch is a minor enhancement to make sure that's the case. Signed-off-by: NNuno Sá <nuno.sa@analog.com> Link: https://lore.kernel.org/r/20210811114853.159298-2-nuno.sa@analog.comSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Brandon Wyman 提交于
When doing a PMBus write for the LED control on the IBM Common Form Factor Power Supplies (ibm-cffps), the DAh command requires that bit 7 be low and bit 6 be high in order to indicate that you are truly attempting to do a write. Signed-off-by: NBrandon Wyman <bjwyman@gmail.com> Link: https://lore.kernel.org/r/20210806225131.1808759-1-bjwyman@gmail.comSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Linus Walleij 提交于
I2C devices should match on the proper compatible string. This is already used in one device tree in the kernel (MIPS) so let's add the matches. Signed-off-by: NLinus Walleij <linus.walleij@linaro.org> Reviewed-by: NGuenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20210729230543.2853485-2-linus.walleij@linaro.orgSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Linus Walleij 提交于
This adds a device tree binding for the Winbond W83781D and its sibling HW monitoring ICs. This is used in for example the Freecom FSG-3 router/NAS. Cc: devicetree@vger.kernel.org Signed-off-by: NLinus Walleij <linus.walleij@linaro.org> Reviewed-by: NRob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20210729230543.2853485-1-linus.walleij@linaro.orgSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
The functions get_online_cpus() and put_online_cpus() have been deprecated during the CPU hotplug rework. They map directly to cpus_read_lock() and cpus_read_unlock(). Replace deprecated CPU-hotplug functions with the official version. The behavior remains unchanged. Cc: Jean Delvare <jdelvare@suse.com> Cc: Guenter Roeck <linux@roeck-us.net> Cc: linux-hwmon@vger.kernel.org Signed-off-by: NSebastian Andrzej Siewior <bigeasy@linutronix.de> Link: https://lore.kernel.org/r/20210803141621.780504-14-bigeasy@linutronix.deSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
This allows manual PWM control without the BIOS fighting back on Dell Precision 7510. Meanwhile at it, also sort alphabetically the entries of the i8k_whitelist_fan_control struct. Signed-off-by: NCarlos Alberto Lopez Perez <clopez@igalia.com> Acked-by: NPali Rohár <pali@kernel.org> Link: https://lore.kernel.org/r/20210802131538.8660-1-clopez@igalia.comSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Armin Wolf 提交于
There are up to three fans, but the detection omits the 3rd one. Fix that by using DELL_SMM_NO_FANS. Signed-off-by: NArmin Wolf <W_Armin@gmx.de> Fixes: 747bc8b0 (hwmon: (dell-smm) Detect fan with index=2) Link: https://lore.kernel.org/r/20210728221557.8891-7-W_Armin@gmx.deSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Armin Wolf 提交于
Convert to new registration API to get rid of attribute magic numbers and reduce module size. Signed-off-by: NArmin Wolf <W_Armin@gmx.de> Link: https://lore.kernel.org/r/20210728221557.8891-6-W_Armin@gmx.deSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Armin Wolf 提交于
Move Variables into a driver private data structure. Signed-off-by: NArmin Wolf <W_Armin@gmx.de> Link: https://lore.kernel.org/r/20210728221557.8891-5-W_Armin@gmx.deSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Armin Wolf 提交于
Use devm_add_action_or_reset() for calling i8k_exit_procfs() so the remove() function in dell_smm_driver can be omitted. Signed-off-by: NArmin Wolf <W_Armin@gmx.de> Reviewed-by: NPali Rohár <pali@kernel.org> Tested-by: NPali Rohár <pali@kernel.org> Link: https://lore.kernel.org/r/20210728221557.8891-4-W_Armin@gmx.deSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Armin Wolf 提交于
i8k_get_dmi_data() and i8k_get_dell_signature() are only called during module init and probe, which both are marked as __init. Also mark these function as __init to lower the runtime memory footprint. Signed-off-by: NArmin Wolf <W_Armin@gmx.de> Reviewed-by: NPali Rohár <pali@kernel.org> Tested-by: NPali Rohár <pali@kernel.org> Link: https://lore.kernel.org/r/20210728221557.8891-3-W_Armin@gmx.deSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Armin Wolf 提交于
Register a platform device for usage with devm_hwmon_device_register_with_groups since the platform device is necessary for future changes. Also fix some checkpatch warnings. Signed-off-by: NArmin Wolf <W_Armin@gmx.de> Link: https://lore.kernel.org/r/20210728221557.8891-2-W_Armin@gmx.deSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Akshay Gupta 提交于
- Document device tree bindings for AMD SB-RMI emulated service. Signed-off-by: NAkshay Gupta <Akshay.Gupta@amd.com> Signed-off-by: NNaveen Krishna Chatradhi <nchatrad@amd.com> Reviewed-by: NRob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20210726133615.9709-3-nchatrad@amd.comSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Akshay Gupta 提交于
- Add documentation for SB-RMI module Reviewed-by: NGuenter Roeck <linux@roeck-us.net> Signed-off-by: NAkshay Gupta <Akshay.Gupta@amd.com> Signed-off-by: NNaveen Krishna Chatradhi <nchatrad@amd.com> Link: https://lore.kernel.org/r/20210726133615.9709-2-nchatrad@amd.comSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Akshay Gupta 提交于
On AMD platforms the Out-of-band access is provided by Advanced Platform Management Link (APML), APML is a SMBus v2.0 compatible 2-wire processor client interface. APML is also referred as the sideband interface (SBI). APML is used to communicate with the Side-Band Remote Management Interface (SB-RMI) which provides Soft Mailbox messages to manage power consumption and power limits of the CPU socket. - This module add support to read power consumption, power limit & max power limit and write power limit. - To instantiate this driver on a Board Management Controller (BMC) connected to an AMD CPU with SB-RMI support, the i2c bus number would be the bus connected from the BMC to the CPU. Reviewed-by: NGuenter Roeck <linux@roeck-us.net> Signed-off-by: NAkshay Gupta <Akshay.Gupta@amd.com> Signed-off-by: NNaveen Krishna Chatradhi <nchatrad@amd.com> Link: https://lore.kernel.org/r/20210726133615.9709-1-nchatrad@amd.com [groeck: Fix uninitialized variable problem when reporting max power] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Armin Wolf 提交于
Make DEVICE_ATTR_RO static to fix sparse warning: warning: symbol 'dev_attr_cpu0_vid' was not declared. Should it be static? Signed-off-by: NArmin Wolf <W_Armin@gmx.de> Link: https://lore.kernel.org/r/20210724154817.18796-1-W_Armin@gmx.deSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Armin Wolf 提交于
Use SIMPLE_DEV_PM_OPS() to also assign poweroff and thaw callbacks. Remove the now obsolete checking of CONFIG_PM too. Signed-off-by: NArmin Wolf <W_Armin@gmx.de> Link: https://lore.kernel.org/r/20210721192519.28784-1-W_Armin@gmx.deSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Mauro Carvalho Chehab 提交于
Changeset 1496be71 ("dt-bindings: firmware: arm,scpi: Convert to json schema") renamed: Documentation/devicetree/bindings/arm/arm,scpi.txt to: Documentation/devicetree/bindings/firmware/arm,scpi.yaml. Update its cross-reference accordingly. Fixes: 1496be71 ("dt-bindings: firmware: arm,scpi: Convert to json schema") Signed-off-by: NMauro Carvalho Chehab <mchehab+huawei@kernel.org> Acked-by: NSudeep Holla <sudeep.holla@arm.com> Link: https://lore.kernel.org/r/b5a2b0cb83e7f8193b4be4cef9250dd4c42877ab.1626947923.git.mchehab+huawei@kernel.orgSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Martin Hundebøll 提交于
Add the list of sensors supported by the Silicom n5010 PAC, and enable the drivers as a subtype of the intel-m10-bmc multi-function driver. Signed-off-by: NMartin Hundebøll <mhu@silicom.dk> Reviewed-by: NGuenter Roeck <linux@roeck-us.net> Reviewed-by: NMoritz Fischer <mdf@kernel.org> Reviewed-by: NXu Yilun <yilun.xu@intel.com> Link: https://lore.kernel.org/r/20210716135441.3235863-4-martin@geanix.comSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Armin Wolf 提交于
Using devm_request_region() allows us to omit w83627ehf_remove() and also simplifies error handling during probe. Also fixed a checkpatch issue. Signed-off-by: NArmin Wolf <W_Armin@gmx.de> Link: https://lore.kernel.org/r/20210709184501.6546-3-W_Armin@gmx.deSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Armin Wolf 提交于
Using platform_create_bundle() simplifies the module init code and allows w83627ehf_probe() to be marked as __init, lowering the runtime memory footprint. Signed-off-by: NArmin Wolf <W_Armin@gmx.de> Link: https://lore.kernel.org/r/20210709184501.6546-2-W_Armin@gmx.deSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Chris Packham 提交于
The BPD-RS600 is the DC version of the BPA-RS600. The PMBUS interface is the same between the two models. Keep the same compatible string but accept either BPA-RS600 or BPD-RS600 in the PMBUS_MFR_MODEL. Signed-off-by: NChris Packham <chris.packham@alliedtelesis.co.nz> Link: https://lore.kernel.org/r/20210708220618.23576-1-chris.packham@alliedtelesis.co.nzSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Linus Walleij 提交于
The kernel has a helper function for linear interpolation so use it. It incidentally makes the code easier to read as well. Tested on the ST-Ericsson HREFv60plus hardware reference design with two thermistors forming a thermal zone. Cc: Peter Rosin <peda@axentia.se> Cc: Chris Lesiak <chris.lesiak@licor.com> Cc: linux-iio@vger.kernel.org Signed-off-by: NLinus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20210704222014.12058-1-linus.walleij@linaro.orgSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 David Bartley 提交于
Add support for Zen3 Ryzen APU. Signed-off-by: NDavid Bartley <andareed@gmail.com> Link: https://lore.kernel.org/r/20210517064131.4369-1-andareed@gmail.comSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Randy Dunlap 提交于
Make top and bottom border lines match. Documentation/hwmon/sht4x.rst:42: WARNING: Malformed table. Text in column margin in table line 4. Fixes: 505c2549 ("hwmon: Add sht4x Temperature and Humidity Sensor Driver") Signed-off-by: NRandy Dunlap <rdunlap@infradead.org> Cc: Navin Sankar Velliangiri <navin@linumiz.com> Cc: Guenter Roeck <linux@roeck-us.net> Cc: Jean Delvare <jdelvare@suse.com> Cc: linux-hwmon@vger.kernel.org Link: https://lore.kernel.org/r/20210727232054.7426-1-rdunlap@infradead.orgSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
-
- 02 8月, 2021 3 次提交
-
-
由 Linus Torvalds 提交于
-
由 Linus Torvalds 提交于
Merge tag 'perf-tools-fixes-for-v5.14-2021-08-01' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux Pull perf tools fixes from Arnaldo Carvalho de Melo: - Revert "perf map: Fix dso->nsinfo refcounting", this makes 'perf top' abort, uncovering a design flaw on how namespace information is kept. The fix for that is more than we can do right now, leave it for the next merge window. - Split --dump-raw-trace by AUX records for ARM's CoreSight, fixing up the decoding of some records. - Fix PMU alias matching. Thanks to James Clark and John Garry for these fixes. * tag 'perf-tools-fixes-for-v5.14-2021-08-01' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux: Revert "perf map: Fix dso->nsinfo refcounting" perf pmu: Fix alias matching perf cs-etm: Split --dump-raw-trace by AUX records
-
git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux由 Linus Torvalds 提交于
Pull powerpc fixes from Michael Ellerman: - Don't use r30 in VDSO code, to avoid breaking existing Go lang programs. - Change an export symbol to allow non-GPL modules to use spinlocks again. Thanks to Paul Menzel, and Srikar Dronamraju. * tag 'powerpc-5.14-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux: powerpc/vdso: Don't use r30 to avoid breaking Go lang powerpc/pseries: Fix regression while building external modules
-