[GIT PULL] Power management fixes for v5.11-rc3

2021-01-08 Thread Rafael J. Wysocki
of it in case of out-of-band updates (Rafael Wysocki). Thanks! --- Colin Ian King (1): cpufreq: powernow-k8: pass policy rather than use cpufreq_cpu_get() Lukas Bulwahn (1): cpufreq: intel_pstate: remove obsolete functions Rafael J. Wysocki (1): cpufreq: intel_pstate

[GIT PULL] ACPI fixes for v5.11-rc3

2021-01-08 Thread Rafael J. Wysocki
text for items that are no longer modular Rafael J. Wysocki (1): ACPI: PM: s2idle: Drop unused local variables and related code Shawn Guo (1): ACPI: scan: add stub acpi_create_platform_device() for !CONFIG_ACPI --- drivers/acpi/Kconfig | 6 -- drivers/acpi/x86

Re: [PATCH] drivers: core: Detach device from power domain on shutdown

2021-01-08 Thread Rafael J. Wysocki
On Fri, Jan 8, 2021 at 4:43 PM Greg Kroah-Hartman wrote: > > On Mon, Dec 14, 2020 at 08:56:48PM -0800, Furquan Shaikh wrote: > > On Tue, Dec 1, 2020 at 1:30 PM Furquan Shaikh wrote: > > > > > > When the system is powered off or rebooted, devices are not detached > > > from their PM domain. This

Re: [PATCH] drivers: core: Detach device from power domain on shutdown

2021-01-08 Thread Rafael J. Wysocki
power resources for the device thus complying with its > power sequencing requirements. > > Signed-off-by: Furquan Shaikh Acked-by: Rafael J. Wysocki > --- > drivers/base/core.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/base/core.c b/drivers/base/

Re: Aarch64 EXT4FS inode checksum failures - seems to be weak memory ordering issues

2021-01-07 Thread Darrick J. Wong
On Thu, Jan 07, 2021 at 02:27:51PM -0800, Eric Biggers wrote: > On Thu, Jan 07, 2021 at 10:48:05PM +0100, Arnd Bergmann wrote: > > On Thu, Jan 7, 2021 at 5:27 PM Theodore Ts'o wrote: > > > > > > On Thu, Jan 07, 2021 at 01:37:47PM +, Russell King - ARM Linux admin > > > wrote: > > > > > The

[PATCH v1 0/3] cpufreq: intel_pstate: Assorted cleanups

2021-01-07 Thread Rafael J. Wysocki
Hi, These three patches clean up intel_pstate a bit: [1/3] makes it always use READ_ONCE() for reading hwp_cap_cached [2/3] changes the first argument of intel_pstate_get_hwp_max() [3/3] renames to functions (to avoid possible confusion). Please see patch changelogs for details. Thanks!

[PATCH v1 3/3] cpufreq: intel_pstate: Rename two functions

2021-01-07 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Rename intel_cpufreq_adjust_hwp() and intel_cpufreq_adjust_perf_ctl() to intel_cpufreq_hwp_update() and intel_cpufreq_perf_ctl_update(), respectively, to avoid possible confusion with the ->adjist_perf() callback function, intel_cpufreq_adjust_perf(). Signed-

[PATCH v1 2/3] cpufreq: intel_pstate: Change intel_pstate_get_hwp_max() argument

2021-01-07 Thread Rafael J. Wysocki
From: Rafael J. Wysocki All of the callers of intel_pstate_get_hwp_max() access the struct cpudata object that corresponds to the given CPU already and the function itself needs to access that object (in order to update hwp_cap_cached), so modify the code to pass a struct cpudata pointer

[PATCH v1 1/3] cpufreq: intel_pstate: Always read hwp_cap_cached with READ_ONCE()

2021-01-07 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Because intel_pstate_get_hwp_max() which updates hwp_cap_cached may run in parallel with the readers of it, annotate all of the read accesses to it with READ_ONCE(). Signed-off-by: Rafael J. Wysocki --- drivers/cpufreq/intel_pstate.c | 13 +++-- 1 file

Re: [PATCH] cpufreq: intel_pstate: remove obsolete functions

2021-01-07 Thread Rafael J. Wysocki
On Mon, Dec 21, 2020 at 11:21 PM Nathan Chancellor wrote: > > On Mon, Dec 21, 2020 at 06:13:20AM +0100, Lukas Bulwahn wrote: > > percent_fp() was used in intel_pstate_pid_reset(), which was removed in > > commit 9d0ef7af1f2d ("cpufreq: intel_pstate: Do not use PID-based P-state > > selection")

Re: [PATCH][next] powercap/drivers/dtpm: Fix size of object being allocated

2021-01-07 Thread Rafael J. Wysocki
On Mon, Jan 4, 2021 at 3:24 PM Daniel Lezcano wrote: > > On 04/01/2021 13:10, Colin King wrote: > > From: Colin Ian King > > > > The kzalloc allocation for dtpm_cpu is currently allocating the size > > of the pointer and not the size of the structure. Fix this by using > > the correct sizeof

Re: [PATCH v2 1/2] ACPI: platform-profile: Introduce object pointers to callbacks

2021-01-07 Thread Rafael J. Wysocki
On Tue, Jan 5, 2021 at 2:18 PM Hans de Goede wrote: > > Hi, > > On 1/5/21 2:14 PM, Jiaxun Yang wrote: > > Add a object pointer to handler callbacks to avoid having > > global variables everywhere. > > > > Signed-off-by: Jiaxun Yang > > Suggested-by: Hans de Goede > > Thanks, patch looks good to

Re: [PATCH 2/2] device property: add description of fwnode cases

2021-01-07 Thread Rafael J. Wysocki
On Thu, Jan 7, 2021 at 3:11 PM Heikki Krogerus wrote: > > On Tue, Jan 05, 2021 at 05:11:46PM +0800, Bard Liao wrote: > > There are only four valid fwnode cases which are > > - primary --> secondary --> -ENODEV > > - primary --> NULL > > - secondary --> -ENODEV > > - NULL > > > > dev->fwnode

Re: [PATCH] ACPI: Update Kconfig help text for items that are no longer modular

2021-01-07 Thread Rafael J. Wysocki
On Tue, Dec 29, 2020 at 12:19 PM Peter Robinson wrote: > > The CONTAINER and HOTPLUG_MEMORY memory options mention modules > but are bool only options so if selected are alway built in. Drop > the help text about modules. > > Signed-off-by: Peter Robinson > --- > drivers/acpi/Kconfig | 6 --

Re: [PATCH] ACPI: add stub acpi_create_platform_device() for !CONFIG_ACPI

2021-01-07 Thread Rafael J. Wysocki
On Thu, Dec 31, 2020 at 12:36 PM Shawn Guo wrote: > > It adds a stub acpi_create_platform_device() for !CONFIG_ACPI build, so > that caller doesn't have to deal with !CONFIG_ACPI build issue. > > Reported-by: kernel test robot > Signed-off-by: Shawn Guo > --- > This fixes an build issue

Re: [PATCH][V3] cpufreq: powernow-k8: pass policy rather than use cpufreq_cpu_get

2021-01-07 Thread Rafael J. Wysocki
On Tue, Jan 5, 2021 at 11:22 AM Viresh Kumar wrote: > > On 05-01-21, 10:19, Colin King wrote: > > From: Colin Ian King > > > > Currently there is an unlikely case where cpufreq_cpu_get returns a > > null policy and this will cause a null pointer dereference later on. > > Fix this by passing the

Re: [PATCH 0/2] IdeaPad platform profile support

2021-01-07 Thread Rafael J. Wysocki
On Wed, Jan 6, 2021 at 10:17 AM Hans de Goede wrote: > > Hi, > > On 1/5/21 6:18 PM, Rafael J. Wysocki wrote: > > On Mon, Jan 4, 2021 at 9:58 PM Hans de Goede wrote: > > > > >> Patch 1/2 does use a slightly different approach then I suggest above, &g

Re: [PATCH] ACPI: scan: Fix a Hyper-V Linux VM panic caused by buffer overflow

2021-01-07 Thread Rafael J. Wysocki
On Tue, Jan 5, 2021 at 11:02 PM Dexuan Cui wrote: > > > From: Michael Kelley > > Sent: Tuesday, December 22, 2020 5:56 AM > > From: Dexuan Cui > > Sent: Thursday, December 17, 2020 > > 8:08 PM > > > > > > Linux VM on Hyper-V crashes with the latest mainline: > > > ... > > > ---

Re: [PATCH] ACPI: PM: s2idle: Remove useless variable ‘obj_new’ in lpi_device_get_constraints_amd

2021-01-07 Thread Rafael J. Wysocki
On Wed, Jan 6, 2021 at 2:13 AM Ye Bin wrote: > > Fix warning: > drivers/acpi/x86/s2idle.c:138:25: warning: variable ‘obj_new’ set but > not used [-Wunused-but-set-variable] > union acpi_object *obj_new; >^~~ > Reported-by: Hulk Robot > Signed-off-by: Ye

Re: [PATCH] ext4: Remove expensive flush on fast commit

2021-01-06 Thread Darrick J. Wong
On Wed, Jan 06, 2021 at 10:32:42AM +0900, Daejun Park wrote: > In the fast commit, it adds REQ_FUA and REQ_PREFLUSH on each fast commit > block when barrier is enabled. However, in recovery phase, ext4 compares > CRC value in the tail. So it is sufficient adds REQ_FUA and REQ_PREFLUSH > on the

Re: Aarch64 EXT4FS inode checksum failures - seems to be weak memory ordering issues

2021-01-05 Thread Darrick J. Wong
On Tue, Jan 05, 2021 at 03:47:26PM +, Russell King - ARM Linux admin wrote: > Hi, > > This is an update on where I am with this long standing issue at the > current time. > > Since 5.4, I have been struggling with several of my ARM64 systems, of > different SoC vendors and differing

[PATCH] cpufreq: intel_pstate: Use HWP capabilities in intel_cpufreq_adjust_perf()

2021-01-05 Thread Rafael J. Wysocki
From: Rafael J. Wysocki If turbo P-states cannot be used, either due to the configuration of the processor, or because intel_pstate is not allowed to used them, the maximum available P-state with HWP enabled corresponds to the HWP_CAP.GUARANTEED value which is not static. It can be adjusted

[PATCH] ACPI: PM: s2idle: Drop unused local variables and related code

2021-01-05 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Two local variables in drivers/acpi/x86/s2idle.c are never read, so drop them along with the code updating their values (in vain). Fixes: fef98671194b ("ACPI: PM: s2idle: Move x86-specific code to the x86 directory") Signed-off-by: Rafael J. Wysocki --- dr

Re: [PATCH 0/2] IdeaPad platform profile support

2021-01-05 Thread Rafael J. Wysocki
On Mon, Jan 4, 2021 at 9:58 PM Hans de Goede wrote: > > Hi, > > On 1/4/21 9:33 PM, Rafael J. Wysocki wrote: > > On Mon, Jan 4, 2021 at 3:36 PM Hans de Goede wrote: > >> > >> Hi, > >> > >> On 1/1/21 1:56 PM, Jiaxun Yang wrote: > >>>

Re: [RFC PATCH v3 8/9] md: Implement ->corrupted_range()

2021-01-04 Thread Darrick J. Wong
On Fri, Dec 18, 2020 at 10:11:54AM +0800, Ruan Shiyang wrote: > > > On 2020/12/16 上午4:51, Darrick J. Wong wrote: > > On Tue, Dec 15, 2020 at 08:14:13PM +0800, Shiyang Ruan wrote: > > > With the support of ->rmap(), it is possible to obtain the superblo

Re: [PATCH 09/10] xfs: Implement ->corrupted_range() for XFS

2021-01-04 Thread Darrick J. Wong
On Thu, Dec 31, 2020 at 12:56:00AM +0800, Shiyang Ruan wrote: > This function is used to handle errors which may cause data lost in > filesystem. Such as memory failure in fsdax mode. > > In XFS, it requires "rmapbt" feature in order to query for files or > metadata which associated to the

Re: [PATCH] fs: Fix freeze_bdev()/thaw_bdev() accounting of bd_fsfreeze_sb

2021-01-04 Thread Darrick J. Wong
;fs: simplify freeze_bdev/thaw_bdev") > Signed-off-by: Satya Tangirala I came up with the same solution to the same crash, so: Reviewed-by: Darrick J. Wong --D > --- > fs/block_dev.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/fs/block_dev.c b/fs/block_d

Re: [PATCH 0/2] IdeaPad platform profile support

2021-01-04 Thread Rafael J. Wysocki
On Mon, Jan 4, 2021 at 3:36 PM Hans de Goede wrote: > > Hi, > > On 1/1/21 1:56 PM, Jiaxun Yang wrote: > > Tested on Lenovo Yoga-14SARE Chinese Edition. > > > > Jiaxun Yang (2): > > ACPI: platform-profile: Introduce data parameter to handler > > platform/x86: ideapad-laptop: DYTC Platform

Re: [dm-devel] [RFC PATCH v4 2/3] block: add simple copy support

2021-01-04 Thread Darrick J. Wong
SelvaKumar S: This didn't show up on dm-devel, sorry for the OT reply... On Mon, Jan 04, 2021 at 12:47:11PM +, Damien Le Moal wrote: > On 2021/01/04 19:48, SelvaKumar S wrote: > > Add new BLKCOPY ioctl that offloads copying of one or more sources > > ranges to a destination in the device.

Re: power-off delay/hang due to commit 6d25be57 (mainline)

2021-01-02 Thread Rafael J. Wysocki
On Thursday, December 31, 2020 9:46:11 PM CET Rafael J. Wysocki wrote: > On Wednesday, December 2, 2020 8:13:38 PM CET Rafael J. Wysocki wrote: > > On Wed, Dec 2, 2020 at 7:31 PM Rafael J. Wysocki wrote: > > > > > > On Wed, Dec 2, 2020 at 7:03 PM Sebastian A

[GIT PULL][Resend] Power management updates for v5.11-rc2

2021-01-02 Thread Rafael J. Wysocki
memory leak in _allocate_opp_table Rafael J. Wysocki (1): cpufreq: intel_pstate: Fix fast-switch fallback path Viresh Kumar (1): opp: Call the missing clk_put() on error --- MAINTAINERS| 2 +- drivers/cpufreq/intel_pstate.c | 1 - drivers/idle

Re: [GIT PULL] Power management updates for v5.11-rc2

2021-01-01 Thread Rafael J. Wysocki
On Fri, Jan 1, 2021 at 10:12 PM Linus Torvalds wrote: > > On Fri, Jan 1, 2021 at 8:51 AM Rafael J. Wysocki wrote: > > > > - Add new power capping facility called DTPM (Dynamic Thermal Power > >Management), based on the existing power capping framework, to >

[GIT PULL] Power management updates for v5.11-rc2

2021-01-01 Thread Rafael J. Wysocki
/dtpm: Fix __udivdi3 and __aeabi_uldivmod unresolved symbols Lukas Bulwahn (1): MAINTAINERS: include governors into CPU IDLE TIME MANAGEMENT FRAMEWORK Quanyang Wang (1): opp: fix memory leak in _allocate_opp_table Rafael J. Wysocki (1): cpufreq: intel_pstate: Fix fast-switch

Re: [GIT PULL] xfs: new code for 5.11

2020-12-31 Thread Darrick J. Wong
On Tue, Dec 29, 2020 at 10:49:55AM +0300, Dmitrii Tcvetkov wrote: > >Please pull the following branch containing all the new xfs code for > >5.11. In this release we add the ability to set a 'needsrepair' flag > >indicating that we /know/ the filesystem requires xfs_repair, but other > >than

Re: power-off delay/hang due to commit 6d25be57 (mainline)

2020-12-31 Thread Rafael J. Wysocki
On Wednesday, December 2, 2020 8:13:38 PM CET Rafael J. Wysocki wrote: > On Wed, Dec 2, 2020 at 7:31 PM Rafael J. Wysocki wrote: > > > > On Wed, Dec 2, 2020 at 7:03 PM Sebastian Andrzej Siewior > > wrote: > > > > > > On 2020-10-26 18:20

Re: [PATCH] powercap/drivers/dtpm: Fix __udivdi3 and __aeabi_uldivmod unresolved symbols

2020-12-30 Thread Rafael J. Wysocki
On Wed, Dec 30, 2020 at 4:38 PM Daniel Lezcano wrote: > > 32 bits architectures do not support u64 division, so the macro > DIV_ROUND_CLOSEST is not adequate as the compiler will replace the > call to an unexisting function for the platform, leading to an > unresolved symbols. > > Fix this by

[PATCH] cpufreq: intel_pstate: Fix fast-switch fallback path

2020-12-29 Thread Rafael J. Wysocki
From: Rafael J. Wysocki When sugov_update_single_perf() falls back to the "frequency" path due to the missing scale-invariance, it will call cpufreq_driver_fast_switch() via sugov_fast_switch() and the driver's ->fast_switch() callback will be invoked, so it must not be NULL. H

Re: [PATCH v2 0/3] cpufreq: Allow drivers to receive more information from the governor

2020-12-28 Thread Rafael J. Wysocki
On Wed, Dec 23, 2020 at 2:08 PM Giovanni Gherdovich wrote: > > On Mon, 2020-12-21 at 17:11 +0100, Rafael J. Wysocki wrote: > > Hi, > > > > On Fri, Dec 18, 2020 at 5:22 PM Giovanni Gherdovich wrote: > > > > > > Gitsource: this test show the most c

[GIT PULL] More ACPI updates for v5.11-rc1

2020-12-22 Thread Rafael J. Wysocki
). Thanks! --- Hans de Goede (1): ACPI: scan: Add Intel Baytrail Mailbox Device to acpi_ignore_dep_ids Hui Wang (1): ACPI: PNP: compare the string length in the matching_id() Rafael J. Wysocki (4): ACPI: scan: Evaluate _DEP before adding the device ACPI: scan: Defer

[GIT PULL] More power management updates for v5.11-rc1

2020-12-22 Thread Rafael J. Wysocki
: replace per-cpu data array with a list Punit Agrawal (1): ACPI: processor: Drop duplicate setting of shared_cpu_map Rafael J. Wysocki (4): cpufreq: schedutil: Add util to struct sg_cpu cpufreq: Add special-purpose fast-switching callback for drivers cpufreq: intel_psta

Re: [PATCH] MAINTAINERS: include governors into CPU IDLE TIME MANAGEMENT FRAMEWORK

2020-12-22 Thread Rafael J. Wysocki
On Thu, Dec 17, 2020 at 8:16 AM Lukas Bulwahn wrote: > > The current pattern in the file entry does not make the files in the > governors subdirectory to be a part of the CPU IDLE TIME MANAGEMENT > FRAMEWORK. > > Adjust the file pattern to include files in governors. > > Signed-off-by: Lukas

Re: [PATCH v5 0/4] powercap/dtpm: Add the DTPM framework

2020-12-22 Thread Rafael J. Wysocki
On Fri, Dec 11, 2020 at 8:15 PM Rafael J. Wysocki wrote: > > On Fri, Dec 11, 2020 at 11:41 AM Daniel Lezcano > wrote: > > > > > > Hi Rafael, > > > > I believe I took into account all the comments, do you think it is > > possible to merge this s

Re: [PATCH 0/4] sched/idle: Fix missing need_resched() checks after rcu_idle_enter()

2020-12-22 Thread Rafael J. Wysocki
/idle.c | 18 -- 4 files changed, 51 insertions(+), 17 deletions(-) Please feel free to add Reviewed-by: Rafael J. Wysocki to all patches in the series. Thanks!

[PATCH v2 3/7] iommu/arm-smmu: Add dependency on io-pgtable format modules

2020-12-21 Thread Isaac J. Manjarres
ng the ARM SMMU driver module. Signed-off-by: Isaac J. Manjarres --- drivers/iommu/arm/arm-smmu/arm-smmu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iommu/arm/arm-smmu/arm-smmu.c b/drivers/iommu/arm/arm-smmu/arm-smmu.c index d8c6bfd..a72649f 100644 --- a/drivers/iommu/arm/ar

[PATCH v2 2/7] iommu/io-pgtable: Add refcounting for io-pgtable format modules

2020-12-21 Thread Isaac J. Manjarres
In preparation for modularizing io-pgtable formats, add support for reference counting the io-pgtable format modules to ensure that the modules are not unloaded while they are in use. Signed-off-by: Isaac J. Manjarres --- drivers/iommu/io-pgtable-arm-v7s.c | 1 + drivers/iommu/io-pgtable-arm.c

[PATCH v2 6/7] drm/panfrost: Add dependency on io-pgtable-arm format module

2020-12-21 Thread Isaac J. Manjarres
re loading the Panfrost DRM driver module. Signed-off-by: Isaac J. Manjarres --- drivers/gpu/drm/panfrost/panfrost_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/panfrost/panfrost_drv.c b/drivers/gpu/drm/panfrost/panfrost_drv.c index 83a461b..7294622 100644 --- a/drivers/gpu/dr

[PATCH v2 1/7] iommu/io-pgtable: Introduce dynamic io-pgtable fmt registration

2020-12-21 Thread Isaac J. Manjarres
-pgtable formats, switch to a dynamic registration scheme, where each io-pgtable format can register their init functions with the io-pgtable code at boot or module insertion time. Signed-off-by: Isaac J. Manjarres --- drivers/iommu/io-pgtable-arm-v7s.c | 34 +- drivers/iommu/io-pgtable

[PATCH v2 4/7] iommu/arm-smmu-v3: Add dependency on io-pgtable-arm format module

2020-12-21 Thread Isaac J. Manjarres
ARM SMMUv3 driver module. Signed-off-by: Isaac J. Manjarres --- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c b/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c index 8ca7415..c498ac8 100644 --- a/drivers/iom

[PATCH v2 7/7] iommu/io-pgtable-arm: Allow building modular io-pgtable fmts

2020-12-21 Thread Isaac J. Manjarres
Now that everything is in place for modular io-pgtable formats, allow the ARM LPAE and ARMV7S io-pgtable formats to be built as modules. Signed-off-by: Isaac J. Manjarres --- drivers/iommu/Kconfig | 4 ++-- drivers/iommu/io-pgtable-arm-v7s.c | 2 ++ drivers/iommu/io-pgtable-arm.c

[RFC PATCH v2 0/7] iommu: Permit modular builds of io-pgtable drivers

2020-12-21 Thread Isaac J. Manjarres
the Kconfig options for the ARM LPAE nad ARM V7S to tristate. Thanks in advance for the feedback, Isaac J. Manjarres Isaac J. Manjarres (7): iommu/io-pgtable: Introduce dynamic io-pgtable fmt registration iommu/io-pgtable: Add refcounting for io-pgtable format modules iommu/arm-smmu: Add dependency

[PATCH v2 5/7] drm/msm: Add dependency on io-pgtable-arm format module

2020-12-21 Thread Isaac J. Manjarres
he MSM DRM driver module. Signed-off-by: Isaac J. Manjarres --- drivers/gpu/drm/msm/msm_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index 535a026..8be3506 100644 --- a/drivers/gpu/drm/msm/msm_drv.c +++ b/drivers/gpu/drm/msm

Re: [PATCH v2 0/3] cpufreq: Allow drivers to receive more information from the governor

2020-12-21 Thread Rafael J. Wysocki
Hi, On Fri, Dec 18, 2020 at 5:22 PM Giovanni Gherdovich wrote: > > On Mon, 2020-12-14 at 21:01 +0100, Rafael J. Wysocki wrote: > > Hi, > > > > The timing of this is not perfect (sorry about that), but here's a refresh > > of this series. > > > > The m

Re: [PATCH v2 0/3] cpufreq: Allow drivers to receive more information from the governor

2020-12-21 Thread Rafael J. Wysocki
On Thu, Dec 17, 2020 at 4:27 PM Doug Smythies wrote: > > On 2020.12.14 12:02 Rafael J. Wysocki wrote: > > > Hi, > > Hi Rafael, > > V2 test results below are new, other results are partially re-stated: > > For readers that do not want to read on, I didn'

Re: [PATCH v1 0/5] Enable fw_devlink=on by default

2020-12-21 Thread Rafael J. Wysocki
On Fri, Dec 18, 2020 at 4:17 AM Saravana Kannan wrote: > > As discussed in LPC 2020, cyclic dependencies in firmware that couldn't > be broken using logic was one of the last remaining reasons > fw_devlink=on couldn't be set by default. > > This series changes fw_devlink so that when a cyclic

Re: [PATCH] cpufreq: intel_pstate: Use most recent guaranteed performance values

2020-12-20 Thread Rafael J. Wysocki
On Sat, Dec 19, 2020 at 6:21 AM srinivas pandruvada wrote: > > On Thu, 2020-12-17 at 20:17 +0100, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > When turbo has been disabled by the BIOS, but HWP_CAP.GUARANTEED is > > changed later, user sp

[GIT PULL] xfs: new code for 5.11

2020-12-18 Thread Darrick J. Wong
re straightforward. - Small prep cleanup for idmapping support. - Get rid of the xfs_buf_t typedef. Christoph Hellwig (2): xfs: remove xfs_vn_setattr_nonsize xfs: open code updating i_mode in xfs_set_acl Darrick J. Wong (21):

[PATCH 3/3] iommu/io-pgtable: Allow building as a module

2020-12-18 Thread Isaac J. Manjarres
with the descriptor format (either or both ARM LPAE and ARMV7S) can be built as modules. Signed-off-by: Isaac J. Manjarres --- drivers/iommu/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig index 192ef8f..d7de6db 100644

[PATCH 2/3] iommu/io-pgtable: Prepare for modularization

2020-12-18 Thread Isaac J. Manjarres
() instead. Also, add the GPL v2 module license to the io-pgtable source file. Signed-off-by: Isaac J. Manjarres --- drivers/iommu/io-pgtable.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/iommu/io-pgtable.c b/drivers/iommu/io-pgtable.c index 94394c8..867ecb4

[RFC PATCH 0/3] iommu: Permit modular builds of io-pgtable drivers

2020-12-18 Thread Isaac J. Manjarres
module. Thanks in advance for the feedback, Isaac J. Manjarres Isaac J. Manjarres (3): iommu/io-pgtable-arm: Prepare for modularization iommu/io-pgtable: Prepare for modularization iommu/io-pgtable: Allow building as a module drivers/iommu/Kconfig | 6 +++--- drivers/iommu/io

[PATCH 1/3] iommu/io-pgtable-arm: Prepare for modularization

2020-12-18 Thread Isaac J. Manjarres
The io-pgtable-arm and io-pgtable-arm-v7s source files will be compiled as separate modules, along with the io-pgtable source. Export the symbols for the io-pgtable init function structures for the io-pgtable module to use. Signed-off-by: Isaac J. Manjarres --- drivers/iommu/io-pgtable-arm

Re: [RFC PATCH v3 0/9] fsdax: introduce fs query to support reflink

2020-12-17 Thread Darrick J. Wong
On Fri, Dec 18, 2020 at 10:44:26AM +0800, Ruan Shiyang wrote: > > > On 2020/12/17 上午4:55, Jane Chu wrote: > > Hi, Shiyang, > > > > On 12/15/2020 4:14 AM, Shiyang Ruan wrote: > > > The call trace is like this: > > > memory_failure() > > >   pgmap->ops->memory_failure()  =>

[PATCH] ACPI: PM: s2idle: More x86-specific code to the x86 directory

2020-12-17 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Some code in drivers/acpi/sleep.c (which is regarded as a generic file) related to suspend-to-idle support has grown direct dependencies on x86, but in fact it has been specific to x86 (which is the only user of it) anyway for a long time. For this reason, move that code

[PATCH] cpufreq: intel_pstate: Use most recent guaranteed performance values

2020-12-17 Thread Rafael J. Wysocki
From: Rafael J. Wysocki When turbo has been disabled by the BIOS, but HWP_CAP.GUARANTEED is changed later, user space may want to take advantage of this increased guaranteed performance. HWP_CAP.GUARANTEED is not a static value. It can be adjusted by an out-of-band agent or during an Intel

Re: [PATCH] cpufreq: intel_pstate: Use the latest guaranteed freq during verify

2020-12-17 Thread Rafael J. Wysocki
On Thu, Dec 17, 2020 at 6:29 PM Rafael J. Wysocki wrote: > > On Thu, Dec 17, 2020 at 6:09 PM Srinivas Pandruvada > wrote: > > > > On Thu, 2020-12-17 at 16:24 +0100, Rafael J. Wysocki wrote: > > > On Thu, Dec 17, 2020 at 4:21 PM Srinivas Pandruvada > > >

Re: [PATCH] cpufreq: intel_pstate: Use the latest guaranteed freq during verify

2020-12-17 Thread Rafael J. Wysocki
On Thu, Dec 17, 2020 at 6:09 PM Srinivas Pandruvada wrote: > > On Thu, 2020-12-17 at 16:24 +0100, Rafael J. Wysocki wrote: > > On Thu, Dec 17, 2020 at 4:21 PM Srinivas Pandruvada > > wrote: > > > > > > On Thu, 2020-12-17 at 16:12 +0100, Rafael J. Wysocki wro

Re: [PATCH] cpufreq: intel_pstate: Use the latest guaranteed freq during verify

2020-12-17 Thread Rafael J. Wysocki
On Thu, Dec 17, 2020 at 4:21 PM Srinivas Pandruvada wrote: > > On Thu, 2020-12-17 at 16:12 +0100, Rafael J. Wysocki wrote: > > On Thursday, December 17, 2020 3:23:44 PM CET Srinivas Pandruvada > > wrote: > > > On Thu, 2020-12-17 at 06:19 -0800, Srinivas Pandruvada wro

Re: [PATCH] cpufreq: intel_pstate: Use the latest guaranteed freq during verify

2020-12-17 Thread Rafael J. Wysocki
On Thursday, December 17, 2020 3:23:44 PM CET Srinivas Pandruvada wrote: > On Thu, 2020-12-17 at 06:19 -0800, Srinivas Pandruvada wrote: > > On Thu, 2020-12-17 at 14:58 +0100, Rafael J. Wysocki wrote: > > > On Thu, Dec 17, 2020 at 11:44 AM Srinivas Pandr

Re: [PATCH] cpufreq: intel_pstate: Use the latest guaranteed freq during verify

2020-12-17 Thread Rafael J. Wysocki
On Thu, Dec 17, 2020 at 11:44 AM Srinivas Pandruvada wrote: > > This change tries to address an issue, when BIOS disabled turbo > but HWP_CAP guaranteed is changed later and user space wants to take > advantage of this increased guaranteed performance. > > The HWP_CAP.GUARANTEED value is not a

Re: [RFC PATCH v2 0/6] fsdax: introduce fs query to support reflink

2020-12-15 Thread Darrick J. Wong
On Wed, Dec 16, 2020 at 10:10:22AM +1100, Dave Chinner wrote: > On Tue, Dec 15, 2020 at 11:05:07AM -0800, Jane Chu wrote: > > On 12/15/2020 3:58 AM, Ruan Shiyang wrote: > > > Hi Jane > > > > > > On 2020/12/15 上午4:58, Jane Chu wrote: > > > > Hi, Shiyang, > > > > > > > > On 11/22/2020 4:41 PM,

Re: [RFC PATCH v3 8/9] md: Implement ->corrupted_range()

2020-12-15 Thread Darrick J. Wong
On Tue, Dec 15, 2020 at 08:14:13PM +0800, Shiyang Ruan wrote: > With the support of ->rmap(), it is possible to obtain the superblock on > a mapped device. > > If a pmem device is used as one target of mapped device, we cannot > obtain its superblock directly. With the help of SYSFS, the mapped

Re: [RFC PATCH v3 9/9] xfs: Implement ->corrupted_range() for XFS

2020-12-15 Thread Darrick J. Wong
On Tue, Dec 15, 2020 at 08:14:14PM +0800, Shiyang Ruan wrote: > This function is used to handle errors which may cause data lost in > filesystem. Such as memory failure in fsdax mode. > > In XFS, it requires "rmapbt" feature in order to query for files or > metadata which associated to the

Re: [PATCH v2 0/4] cppc_cpufreq: fix, clarify and improve support

2020-12-15 Thread Rafael J. Wysocki
On Mon, Dec 14, 2020 at 5:14 PM Mian Yousaf Kaukab wrote: > > On Mon, Dec 14, 2020 at 12:38:19PM +, Ionela Voinescu wrote: > > Hi guys, > > > > I'm sending v2 of some of the patches at [1] in light of the discussions > > at [2]. > > > > v2: > > - Patches 1-3 are trivial rebase on linux next

Re: [PATCH v2] ACPI: processor: fix NONE coordination for domain mapping failure

2020-12-15 Thread Rafael J. Wysocki
hat both functions return domains with a single CPU, this change > does not affect the functionality, but clarifies the intention. > > Signed-off-by: Ionela Voinescu > Acked-by: Viresh Kumar > [ rjw: Subject edit ] > Signed-off-by: Rafael J. Wysocki > --- > > Hi guy

[GIT PULL] ACPI updates for v5.11-rc1

2020-12-15 Thread Rafael J. Wysocki
(1): ACPI: video: Add DMI quirk for GIGABYTE GB-BXBT-2807 Punit Agrawal (1): ACPI: processor: Drop duplicate setting of shared_cpu_map Rafael J. Wysocki (8): ACPI: EC: Fold acpi_ec_clear_gpe() into its caller ACPI: EC: Rename acpi_ec_is_gpe_raised() ACPI:

[GIT PULL] Power management updates for v5.11-rc1

2020-12-15 Thread Rafael J. Wysocki
missing MODULE_ALIAS Patrice Chotard (1): PM: sleep: Add dev_wakeup_path() helper Pavankumar Kondeti (1): PM / EM: Micro optimization in em_cpu_energy Qinglang Miao (1): cpufreq: mediatek: add missing platform_driver_unregister() on error in mtk_cpufreq_driver_init Rafael J. Wysocki

Re: [PATCH v1 3/4] cpufreq: Add special-purpose fast-switching callback for drivers

2020-12-15 Thread Rafael J. Wysocki
On Tue, Dec 15, 2020 at 5:17 AM Viresh Kumar wrote: > > On 08-12-20, 14:32, Viresh Kumar wrote: > > On 07-12-20, 17:35, Rafael J. Wysocki wrote: > > > From: Rafael J. Wysocki > > > > > > First off, some cpufreq drivers (eg. intel_pstate) can pass hints &g

[RFT][PATCH v1 0/3] ACPI: scan: Defer enumeration of devices with significant dependencies

2020-12-14 Thread Rafael J. Wysocki
Hi, This series addresses some enumeration ordering issues by using information from _DEP to defer the enumeration of devices that are likely to depend on operation region (OpRegion) handlers supplied by the drivers of other devices. This allows the OpRegion suppliers to be probed and start

[RFT][PATCH v1 2/3] ACPI: scan: Defer enumeration of devices with _DEP lists

2020-12-14 Thread Rafael J. Wysocki
From: Rafael J. Wysocki In some cases ACPI control methods used during device enumeration (such as _HID or _STA) may rely on Operation Region handlers supplied by the drivers of other devices [1]: An example of this is the Acer Switch 10E SW3-016 model. The _HID method of the ACPI node

[RFT][PATCH v1 1/3] ACPI: scan: Evaluate _DEP before adding the device

2020-12-14 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Evaluate _DEP before calling acpi_add_single_object() from acpi_bus_check_add() and do that only for ACPI_BUS_TYPE_DEVICE objects. While at it, rename acpi_device_dep_initialize() to acpi_scan_check_dep(), fix up a memory allocation statement in that function

[RFT][PATCH v1 3/3] ACPI: scan: Avoid unnecessary second pass in acpi_bus_scan()

2020-12-14 Thread Rafael J. Wysocki
From: Rafael J. Wysocki If there are no devices whose enumeration has been deferred after the first pass in acpi_bus_scan(), the second pass is not necssary, so avoid it with the help of a new static variable. Signed-off-by: Rafael J. Wysocki --- drivers/acpi/scan.c | 11 ++- 1 file

[PATCH v2 0/3] cpufreq: Allow drivers to receive more information from the governor

2020-12-14 Thread Rafael J. Wysocki
Hi, The timing of this is not perfect (sorry about that), but here's a refresh of this series. The majority of the previous cover letter still applies: On Monday, December 7, 2020 5:25:38 PM CET Rafael J. Wysocki wrote: > > This is based on the RFC posted a few days ago: >

[PATCH v2 3/3] cpufreq: intel_pstate: Implement the ->adjust_perf() callback

2020-12-14 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Make intel_pstate expose the ->adjust_perf() callback when it operates in the passive mode with HWP enabled which causes the schedutil governor to use that callback instead of ->fast_switch(). The minimum and target performance-level values passed by the go

[PATCH v2 1/3] cpufreq: schedutil: Add util to struct sg_cpu

2020-12-14 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Instead of passing util and max between functions while computing the utilization and capacity, store the former in struct sg_cpu (along with the latter and bw_dl). This will allow the current utilization value to be compared with the one obtained previously (which

[PATCH v2 2/3] cpufreq: Add special-purpose fast-switching callback for drivers

2020-12-14 Thread Rafael J. Wysocki
From: Rafael J. Wysocki First off, some cpufreq drivers (eg. intel_pstate) can pass hints beyond the current target frequency to the hardware and there are no provisions for doing that in the cpufreq framework. In particular, today the driver has to assume that it should not allow the frequency

Re: [PATCH] ACPI: Use fwnode_init() to set up fwnode

2020-12-11 Thread Rafael J. Wysocki
3c.ca...@redhat.com/ > Fixes: 01bb86b380a3 ("driver core: Add fwnode_init()") > Reported-by: Qian Cai > Suggested-by: Robin Murphy > Tested-by: Marc Zyngier > Signed-off-by: Saravana Kannan Acked-by: Rafael J. Wysocki > --- > Greg, > > Can you

[PATCH] PCI: ACPI: Fix up ACPI companion lookup for device 0 on the root bus

2020-12-11 Thread Rafael J. Wysocki
From: Rafael J. Wysocki In some cases acpi_pci_find_companion() returns an incorrect device object as the ACPI companion for device 0 on the root bus (bus 0). On the affected systems that device is the PCI interface to the host bridge and the "ACPI companion" returned for it c

Re: [PATCH v5 0/4] powercap/dtpm: Add the DTPM framework

2020-12-11 Thread Rafael J. Wysocki
On Fri, Dec 11, 2020 at 11:41 AM Daniel Lezcano wrote: > > > Hi Rafael, > > I believe I took into account all the comments, do you think it is > possible to merge this series ? It should be, unless more changes are requested. I will be taking care of it next week and, if all goes well, it

Re: [GIT PULL] devfreq next for v5.11

2020-12-11 Thread Rafael J. Wysocki
On Fri, Dec 11, 2020 at 8:45 AM Chanwoo Choi wrote: > > Dear Rafael, > > This is devfreq-next pull request for v5.11-rc1. I add detailed description of > this pull request on the following tag. Please pull devfreq with following > updates. > - tag name : devfreq-next-for-5.11 > > Best Regards, >

Re: [PATCH 1/2] acpi: cppc: add cpufreq device

2020-12-10 Thread Rafael J. Wysocki
On Thu, Dec 10, 2020 at 6:23 PM Ionela Voinescu wrote: > > Hi Rafael, > > On Thursday 10 Dec 2020 at 17:55:56 (+0100), Rafael J. Wysocki wrote: > > On Thursday, December 10, 2020 4:04:40 PM CET Mian Yousaf Kaukab wrote: > > > On Thu, Dec 10, 2020 at 03:32:09PM +01

Re: [PATCH v4] PM: domains: create debugfs nodes when adding power domains

2020-12-10 Thread Rafael J. Wysocki
On Thu, Dec 10, 2020 at 8:18 AM Ulf Hansson wrote: > > On Tue, 8 Dec 2020 at 20:20, Thierry Strudel wrote: > > > > debugfs nodes were created in genpd_debug_init alled in late_initcall > > preventing power domains registered though loadable modules to have > > a debugfs entry. > > > >

Re: [PATCH 1/2] acpi: cppc: add cpufreq device

2020-12-10 Thread Rafael J. Wysocki
On Thu, Dec 10, 2020 at 3:23 PM Mian Yousaf Kaukab wrote: > > From: Mian Yousaf Kaukab > > Since commit 28f06f770454 ("cppc_cpufreq: replace per-cpu structures with > lists"), cppc-cpufreq driver doesn't check availability of PSD data before > registering with cpufreq core. As a result on a

Re: [PATCH 1/2] acpi: cppc: add cpufreq device

2020-12-10 Thread Rafael J. Wysocki
On Thursday, December 10, 2020 4:04:40 PM CET Mian Yousaf Kaukab wrote: > On Thu, Dec 10, 2020 at 03:32:09PM +0100, Rafael J. Wysocki wrote: > > On Thu, Dec 10, 2020 at 3:23 PM Mian Yousaf Kaukab > > wrote: > > > > > > Convert cppc-cpufreq driver to a pl

Re: [PATCH v1 1/4] cpufreq: schedutil: Add util to struct sg_cpu

2020-12-09 Thread Rafael J. Wysocki
On Tue, Dec 8, 2020 at 9:34 AM Viresh Kumar wrote: > > On 07-12-20, 17:28, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > Instead of passing util and max between functions while computing the > > utilization and capacity, store the former in struct sg_

Re: [PATCH v4] PM: domains: create debugfs nodes when adding power domains

2020-12-09 Thread Rafael J. Wysocki
On Tue, Dec 8, 2020 at 9:39 PM Greg Kroah-Hartman wrote: > > On Tue, Dec 08, 2020 at 11:19:55AM -0800, Thierry Strudel wrote: > > debugfs nodes were created in genpd_debug_init alled in late_initcall > > preventing power domains registered though loadable modules to have > > a debugfs entry. > >

Re: [PATCH v1 2/4] cpufreq: schedutil: Adjust utilization instead of frequency

2020-12-09 Thread Rafael J. Wysocki
On Wed, Dec 9, 2020 at 6:16 AM Viresh Kumar wrote: > > On 08-12-20, 18:01, Rafael J. Wysocki wrote: > > On Tue, Dec 8, 2020 at 9:52 AM Viresh Kumar wrote: > > > > > > On 07-12-20, 17:29, Rafael J. Wysocki wrote: > > > > From: Rafael J. Wysock

Re: [PATCH V2 2/2] mm/highmem: Lift memcpy_[to|from]_page to core

2020-12-08 Thread Darrick J. Wong
On Tue, Dec 08, 2020 at 10:32:34PM +, Matthew Wilcox wrote: > On Tue, Dec 08, 2020 at 02:23:10PM -0800, Dan Williams wrote: > > On Tue, Dec 8, 2020 at 1:51 PM Matthew Wilcox wrote: > > > > > > On Tue, Dec 08, 2020 at 01:32:55PM -0800, Ira Weiny wrote: > > > > On Mon, Dec 07, 2020 at

Re: [PATCH] driver: core: Fix list corruption after device_del()

2020-12-08 Thread Rafael J. Wysocki
: https://bugzilla.kernel.org/show_bug.cgi?id=209207 > Signed-off-by: Takashi Iwai Reviewed-by: Rafael J. Wysocki > --- > drivers/base/core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/base/core.c b/drivers/base/core.c > index d661ada

Re: Potential Issue in Tracing Ring Buffer

2020-12-08 Thread J. Avila
> > On Mon, Nov 30, 2020 at 09:48:46AM -0500, Steven Rostedt wrote: > > On Thu, 26 Nov 2020 13:26:13 -0500 > > Steven Rostedt wrote: > > > > > On Thu, 26 Nov 2020 06:52:45 +0100 > > > Greg KH wrote: > > > > > > >

Re: [RESEND PATCH V3] PM / EM: Micro optimization in em_cpu_energy

2020-12-08 Thread Rafael J. Wysocki
On Sat, Nov 28, 2020 at 3:21 AM Pavankumar Kondeti wrote: > > When the sum of the utilization of CPUs in a power domain is zero, > return the energy as 0 without doing any computations. > > Acked-by: Quentin Perret > Reviewed-by: Dietmar Eggemann > Signed-off-by: Pavankumar Kondeti > --- >

Re: [PATCH v1 0/4] cpufreq: Allow drivers to receive more information from the governor

2020-12-08 Thread Rafael J. Wysocki
On Tue, Dec 8, 2020 at 5:31 PM Giovanni Gherdovich wrote: > > On Mon, 2020-12-07 at 17:25 +0100, Rafael J. Wysocki wrote: > > Hi, > > > > This is based on the RFC posted a few days ago: > > > > https://lore.kernel.org/linux-pm/1817571.2o5Kk4Ohv2@kreacher/

<    3   4   5   6   7   8   9   10   11   12   >