5.10.24-rc1 review
Subsystems (5)
Greg KH
maintainerRe: [PATCH 5.10 081/290] gpiolib: Read "gpio-line-names" from a firmware node
In reply to Bartosz GolaszewskiQuoted 26 lines · Bartosz Golaszewski
Quoted 25 lines · Marek Vasut
Quoted 23 lines · On 3/15/21 2:52 PM, [email protected] wrote:
From: Greg Kroah-Hartman <[email protected]>
From: Andy Shevchenko <[email protected]>
commit
b41ba2ec54a70908067034f139aa23d0dd2985ceupstream.On STM32MP1, the GPIO banks are subnodes of pin-controller@50002000, see
arch/arm/boot/dts/stm32mp151.dtsi. The driver for pin-controller@50002000 is indrivers/pinctrl/stm32/pinctrl-stm32.cand iterates over all of its DT subnodes when registering each GPIO bank gpiochip. Each gpiochip has:- gpio_chip.parent = dev,
where dev is the device node of the pin controller
- gpio_chip.of_node = np,
which is the OF node of the GPIO bankTherefore,
dev_fwnode(chip->parent)!=of_fwnode_handle(chip.of_node), i.e. pin-controller@50002000 != pin-controller@50002000/gpio@5000*000.The original code behaved correctly, as it extracted the "gpio-line-names" from
of_fwnode_handle(chip.of_node)= pin-controller@50002000/gpio@5000*000.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
To achieve the same behaviour, read property from the firmware node.
There seem to be some discussion going on around this patch, so please postpone backporting until that is settled. Same for v5.11 backport. I hope Andy/Bartosz agrees ?
Yes, this patch broke at least the testing module and we're working to determine if it breaks DT drivers too.
Now dropped, thanks.
greg k-h
Re: [PATCH 5.10 041/290] net: enetc: force the RGMII speed and duplex instead of operating in inband mode
In reply to [email protected]Hi!
Quoted 3 lines
It has been reported that RGMII is broken in fixed-link, and that is not surprising considering the fact that no PHY is attached to the MAC in that case, but a switch.
Okay, but there's something wrong in the code.
Quoted 10 lines
This brings us to the topic of the patch: the enetc driver should have not enabled the optional in-band status signaling for RGMII unconditionally, but should have forced the speed and duplex to what was resolved by phylink.
+++
b/drivers/net/ethernet/freescale/enetc/enetc_pf.c(quoted diff) +0
-0@@ -494,13 +494,20 @@ static void enetc_configure_port_mac(str static void enetc_mac_config(struct enetc_hw *hw, phy_interface_t phy_mode) {
...
Review
Quoted 9 lines
(quoted diff) +9
-0+ u32 val; + + if (phy_interface_mode_is_rgmii(phy_mode)) { + val = enetc_port_rd(hw, ENETC_PM0_IF_MODE); + val &= ~ENETC_PM0_IFM_EN_AUTO; + val &= ENETC_PM0_IFM_IFMODE_MASK; + val |= ENETC_PM0_IFM_IFMODE_GMII | ENETC_PM0_IFM_RG; + enetc_port_wr(hw, ENETC_PM0_IF_MODE, val); + }
val clears ENETC_PM0_IFM_EN_AUTO bit, then the bit is cleared again, preserving just IFMODE bits, then ors the IFMODE bits with new values.
I believe this is needed:
Pavel
drivers/net/ethernet/freescale/enetc/enetc_pf.c +1 -1
@@ -499,7 +499,7 @@ static void enetc_mac_config(struct enetc_hw *hw, phy_interface_t phy_mode)if (phy_interface_mode_is_rgmii (phy_mode)) { val =enetc_port_rd (hw,ENETC_PM0_IF_MODE ); val &= ~ENETC_PM0_IFM_EN_AUTO ; - val &=ENETC_PM0_IFM_IFMODE_MASK ; + val &= ~ENETC_PM0_IFM_IFMODE_MASK ; val |=ENETC_PM0_IFM_IFMODE_GMII |ENETC_PM0_IFM_RG ;enetc_port_wr (hw,ENETC_PM0_IF_MODE , val); }
Signature · 2 lines
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Quoted 11 lines · On 2021/3/15 21:51, [email protected] wrote:
From: Greg Kroah-Hartman <[email protected]>
This is the start of the stable review cycle for the 5.10.24 release. There are 290 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Wed, 17 Mar 2021 13:55:02 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 9 lines
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.10.24-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.10.y
and the diffstat can be found below.thanks,
greg k-h
Tested on arm64 and x86 for 5.10.24,
Kernel repo:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
Branch: linux-5.10.y
Version: 5.10.24
Commit: 05d125f7524e9ad200375c52799575184755d340
Compiler: gcc version 7.3.0 (GCC)
arm64:
--------------------------------------------------------------------
Testcase Result Summary:
total: 4721
passed: 4720
failed: 0
timeout: 1
--------------------------------------------------------------------
Timeout cases :
ltp dio29
The only one timeout case is caused by the test machine was very busy and timed out, no kernel failures
--------------------------------------------------------------------
x86:
--------------------------------------------------------------------
Testcase Result Summary:
total: 4721
passed: 4721
failed: 0
timeout: 0
--------------------------------------------------------------------
Greg KH
maintainerQuoted 28 lines · Jon Hunter
Quoted 11 lines · On Mon, 15 Mar 2021 14:51:33 +0100, [email protected] wrote:
From: Greg Kroah-Hartman <[email protected]>
This is the start of the stable review cycle for the 5.10.24 release. There are 290 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Wed, 17 Mar 2021 13:55:02 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 8 lines
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.10.24-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.10.y
and the diffstat can be found below.thanks,
greg k-h
All tests passing for Tegra ...
Test results for stable-v5.10:
12 builds: 12 pass, 0 fail 28 boots: 28 pass, 0 fail 65 tests: 65 pass, 0 fail
Quoted 7 lines
Linux version: 5.10.24-rc1-g1dc88c1d74df
Boards tested: tegra124-jetson-tk1, tegra186-p2771-0000,tegra194-p2972-0000, tegra194-p3509-0000+p3668-0000, tegra20-ventana, tegra210-p2371-2180, tegra210-p3450-0000, tegra30-cardhu-a04Tested-by Jon Hunter <[email protected]>
Thanks for testing them all and letting me know.
greg k-h
Greg KH
maintainerQuoted 19 lines · Florian Fainelli
Quoted 16 lines · On 3/15/2021 6:51 AM, [email protected] wrote:
From: Greg Kroah-Hartman <[email protected]>
This is the start of the stable review cycle for the 5.10.24 release. There are 290 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Wed, 17 Mar 2021 13:55:02 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.10.24-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-5.10.y
and the diffstat can be found below.
Quoted 7 lines
Quoted 3 lines
thanks,
greg k-h
On
ARCH_BRCMSTB, using 32-bit and 64-bit kernels:Tested-by Florian Fainelli <[email protected]>
Thanks for testing!
Re: [PATCH 5.10 267/290] powerpc: Fix missing declaration of [en/dis]able_kernel_vsx()
In reply to Geert UytterhoevenLe 15/03/2021 à 15:15, Geert Uytterhoeven a écrit :
Quoted 5 lines · On Mon, Mar 15, 2021 at 3:04 PM <[email protected]> wrote:
Quoted 4 lines
From: Greg Kroah-Hartman <[email protected]>
From: Christophe Leroy <[email protected]>
Quoted 7 lines
Quoted 4 lines
commit
bd73758803c2eedc037c2268b65a19542a832594upstream.Add stub instances of
enable_kernel_vsx()anddisable_kernel_vsx()whenCONFIG_VSXis not set, to avoid following build failure.Please note that this is not sufficient, and will just turn the build error in another, different build error.
Not exactly, the fix is sufficient in most case, it is only with ancient versions of gcc (eg 4.9) or with CONFIG_CC_OPTIMISE_FOR_SIZE that we now get a build bug. Building with gcc 10 now works.
Quoted 2 lines
Waiting for the subsequent fix to enter v5.12-rc4...
https://lore.kernel.org/lkml/[email protected]/
This has now landed in mainline as commit eed5fae00593ab9d261a0c1ffc1bdb786a87a55a see https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/arch/powerpc/include/asm/cpu_has_feature.h?h=v5.12-rc4&id=eed5fae00593ab9d261a0c1ffc1bdb786a87a55a
Christophe
Quoted 78 lines
Quoted 63 lines
CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.o In file included from ./drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:29, from ./drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:37, from drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:27: drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c: In function 'dcn_bw_apply_registry_override': ./drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:64:3: error: implicit declaration of function 'enable_kernel_vsx'; did you mean 'enable_kernel_fp'? [-Werror=implicit-function-declaration] 64 | enable_kernel_vsx(); \ | ^~~~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:640:2: note: in expansion of macro 'DC_FP_START' 640 | DC_FP_START(); | ^~~~~~~~~~~ ./drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:75:3: error: implicit declaration of function 'disable_kernel_vsx'; did you mean 'disable_kernel_fp'? [-Werror=implicit-function-declaration] 75 | disable_kernel_vsx(); \ | ^~~~~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:676:2: note: in expansion of macro 'DC_FP_END' 676 | DC_FP_END(); | ^~~~~~~~~ cc1: some warnings being treated as errors make[5]: *** [drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.o] Error 1This works because the caller is checking if VSX is available using
cpu_has_feature():#define DC_FP_START() { \ if (cpu_has_feature(CPU_FTR_VSX_COMP)) { \ preempt_disable(); \ enable_kernel_vsx(); \ } else if (cpu_has_feature(CPU_FTR_ALTIVEC_COMP)) { \ preempt_disable(); \ enable_kernel_altivec(); \ } else if (!cpu_has_feature(CPU_FTR_FPU_UNAVAILABLE)) { \ preempt_disable(); \ enable_kernel_fp(); \ } \When
CONFIG_VSXis not selected,cpu_has_feature(CPU_FTR_VSX_COMP)constant folds to 'false' so the call toenable_kernel_vsx()is discarded and the build succeeds.Fixes 16a9dea110a6 ("amdgpu: Enable initial DCN support on POWER")Cc [email protected] # v5.6+Reported-by Geert Uytterhoeven <[email protected]>Reported-by kernel test robot <[email protected]>Signed-off-by Christophe Leroy <[email protected]>[mpe: Incorporate some discussion comments into the change log]Signed-off-by Michael Ellerman <[email protected]>Link https://lore.kernel.org/r/8d7d285a027e9d21f5ff7f850fa71a2655b0c4af.1615279170.git.christophe.leroy@csgroup.eu open hereSigned-off-by Greg Kroah-Hartman <[email protected]>--- arch/powerpc/include/asm/switch_to.h | 10 ++++++++++ 1 file changed, 10 insertions(+)arch/powerpc/include/asm/switch_to.h +3
-0@@ -71,6 +71,16 @@ static inline void disable_kernel_vsx(vo {msr_check_and_clear (MSR_FP |MSR_VEC |MSR_VSX ); } +#else +static inline void enable_kernel_vsx (void ) +{arch/powerpc/include/asm/switch_to.h static inline void disable_kernel_vsx(vo · line 86
Quoted 10 lines
arch/powerpc/include/asm/switch_to.h +7
-0+ BUILD_BUG(); +} + +static inline void disable_kernel_vsx (void ) +{ +BUILD_BUG (); +}#endif #ifdef CONFIG_SPE Gr{oetje,eeting}s,
Geert
Greg KH
maintainerRe: [PATCH 5.10 267/290] powerpc: Fix missing declaration of [en/dis]able_kernel_vsx()
Quoted 20 lines · Christophe Leroy
Le 15/03/2021 à 15:15, Geert Uytterhoeven a écrit :
Quoted 5 lines · On Mon, Mar 15, 2021 at 3:04 PM <[email protected]> wrote:
Quoted 4 lines
From: Greg Kroah-Hartman <[email protected]>
From: Christophe Leroy <[email protected]>
Quoted 7 lines
Quoted 4 lines
commit
bd73758803c2eedc037c2268b65a19542a832594upstream.Add stub instances of
enable_kernel_vsx()anddisable_kernel_vsx()whenCONFIG_VSXis not set, to avoid following build failure.Please note that this is not sufficient, and will just turn the build error in another, different build error.
Not exactly, the fix is sufficient in most case, it is only with ancient versions of gcc (eg 4.9) or with
CONFIG_CC_OPTIMISE_FOR_SIZEthat we now get a build bug. Building with gcc 10 now works.
Quoted 5 lines
Quoted 2 lines
Waiting for the subsequent fix to enter v5.12-rc4...
https://lore.kernel.org/lkml/[email protected]/This has now landed in mainline as commit
eed5fae00593ab9d261a0c1ffc1bdb786a87a55asee https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/arch/powerpc/include/asm/cpu_has_feature.h?h=v5.12-rc4&id=eed5fae00593ab9d261a0c1ffc1bdb786a87a55a
Now queued up, thanks.
greg k-h
Jerome Brunet
reviewerPATCH 1/1 Revert "drm: meson_drv add shutdown function"
In reply to [email protected]This reverts commit d66083c0d6f5125a4d982aa177dd71ab4cd3d212 and commit d4ec1ffbdaa8939a208656e9c1440742c457ef16.
On v5.10 stable, reboot gets stuck on gxl and g12a chip family (at least). This was tested on the aml-s905x-cc from libretch and the u200 reference design.
Bisecting on the v5.10 stable branch lead to
commit d4ec1ffbdaa8 ("drm: meson_drv add shutdown function").
Reverting it (and a fixes on the it) sloves the problem.
---
Hi Greg,
Things are fine on master but it breaks on v5.10-y. I did not check v5.14-y yet. I'll try next week.
drivers/gpu/drm/meson/meson_drv.c | 12 ------------ 1 file changed, 12 deletions(-)
drivers/gpu/drm/meson/meson_drv.c +0 -12
@@ -482,17 +482,6 @@ static int meson_probe_remote(struct platform_device *pdev,return count; } -static void meson_drv_shutdown (struct platform_device *pdev) -{ -struct meson_drm *priv =dev_get_drvdata (&pdev->dev); - -if (!priv) -return ; - -drm_kms_helper_poll_fini (priv->drm); -drm_atomic_helper_shutdown (priv->drm); -} -static int meson_drv_probe (struct platform_device *pdev) {struct component_match *match =NULL ;
@@ -564,7 +553,6 @@ static const struct dev_pm_ops meson_drv_pm_ops = {static struct platform_driver meson_drm_platform_driver = { .probe = meson_drv_probe, - .shutdown = meson_drv_shutdown, .driver = { .name ="meson-drm" , .of_match_table = dt_match,
Signature · 1 line
2.34.0
Re: [PATCH 5.10] Revert "drm: meson_drv add shutdown function"
In reply to a message not in the archivehi all
i have test it on (VIM1 VIM2 VIM3 VIM3L) its works on my side
+ 5.10.11
+ 5.11.x
+ 5.13.x
+ 5.14.x
+ 5.15.x
+ 5.16.x
can u share your kernel config (i know for some kernel configuration drivers still have problem with reboot )
Quoted 58 lines · Jerome Brunet
This reverts commit
d66083c0d6f5125a4d982aa177dd71ab4cd3d212and commitd4ec1ffbdaa8939a208656e9c1440742c457ef16.On v5.10 stable, reboot gets stuck on gxl and g12a chip family (at least). This was tested on the aml-s905x-cc from libretch and the u200 reference design.
Bisecting on the v5.10 stable branch lead to
commitd4ec1ffbdaa8("drm:meson_drvadd shutdown function").Reverting it (and a fixes on the it) sloves the problem.
Signed-off-by Jerome Brunet <[email protected]>---
Hi Greg,
Things are fine on master but it breaks on v5.10-y. I did not check v5.14-y yet. I'll try next week.
drivers/gpu/drm/meson/meson_drv.c | 12 ------------ 1 file changed, 12 deletions(-)drivers/gpu/drm/meson/meson_drv.c +0
-13@@ -482,17 +482,6 @@ static int meson_probe_remote(struct platform_device *pdev,return count; } -static void meson_drv_shutdown (struct platform_device *pdev) -{ -struct meson_drm *priv =dev_get_drvdata (&pdev->dev); - -if (!priv) -return ; - -drm_kms_helper_poll_fini (priv->drm); -drm_atomic_helper_shutdown (priv->drm); -} -static int meson_drv_probe (struct platform_device *pdev) {struct component_match *match =NULL ;@@ -564,7 +553,6 @@ static const struct dev_pm_ops meson_drv_pm_ops = {static struct platform_driver meson_drm_platform_driver = { .probe = meson_drv_probe, - .shutdown = meson_drv_shutdown, .driver = { .name ="meson-drm" , .of_match_table = dt_match, --2.34.0
Greg Kroah-Hartman
maintainerRe: [PATCH 5.10] Revert "drm: meson_drv add shutdown function"
In reply to Jerome BrunetQuoted 2 lines · Jerome Brunet
This reverts commit
d66083c0d6f5125a4d982aa177dd71ab4cd3d212and commitd4ec1ffbdaa8939a208656e9c1440742c457ef16.
No, please, at most let us revert the commits individually.
Quoted 9 lines
On v5.10 stable, reboot gets stuck on gxl and g12a chip family (at least). This was tested on the aml-s905x-cc from libretch and the u200 reference design.
Bisecting on the v5.10 stable branch lead to
commitd4ec1ffbdaa8("drm:meson_drvadd shutdown function").Reverting it (and a fixes on the it) sloves the problem.
Quoted 7 lines
Signed-off-by Jerome Brunet <[email protected]>---
Hi Greg,
Things are fine on master but it breaks on v5.10-y. I did not check v5.14-y yet. I'll try next week.
Please check 5.15.y (5.14 is long end-of-life).
thanks,
greg k-h
Jerome Brunet
reviewerRe: [PATCH 5.10] Revert "drm: meson_drv add shutdown function"
In reply to Art NikpalQuoted 10 lines · Art Nikpal
hi all
i have test it on (VIM1 VIM2 VIM3 VIM3L) its works on my side
+ 5.10.11
+ 5.11.x
+ 5.13.x
+ 5.14.x
+ 5.15.x
+ 5.16.x
Quoted 2 lines
can u share your kernel config (i know for some kernel configuration drivers still have problem with reboot )
The kernel configuration is the default arm64 defconfig
Quoted 61 lines · Jerome Brunet
Quoted 58 lines
This reverts commit
d66083c0d6f5125a4d982aa177dd71ab4cd3d212and commitd4ec1ffbdaa8939a208656e9c1440742c457ef16.On v5.10 stable, reboot gets stuck on gxl and g12a chip family (at least). This was tested on the aml-s905x-cc from libretch and the u200 reference design.
Bisecting on the v5.10 stable branch lead to
commitd4ec1ffbdaa8("drm:meson_drvadd shutdown function").Reverting it (and a fixes on the it) sloves the problem.
Signed-off-by Jerome Brunet <[email protected]>---
Hi Greg,
Things are fine on master but it breaks on v5.10-y. I did not check v5.14-y yet. I'll try next week.
drivers/gpu/drm/meson/meson_drv.c | 12 ------------ 1 file changed, 12 deletions(-)drivers/gpu/drm/meson/meson_drv.c +0
-13@@ -482,17 +482,6 @@ static int meson_probe_remote(struct platform_device *pdev,return count; } -static void meson_drv_shutdown (struct platform_device *pdev) -{ -struct meson_drm *priv =dev_get_drvdata (&pdev->dev); - -if (!priv) -return ; - -drm_kms_helper_poll_fini (priv->drm); -drm_atomic_helper_shutdown (priv->drm); -} -static int meson_drv_probe (struct platform_device *pdev) {struct component_match *match =NULL ;@@ -564,7 +553,6 @@ static const struct dev_pm_ops meson_drv_pm_ops = {static struct platform_driver meson_drm_platform_driver = { .probe = meson_drv_probe, - .shutdown = meson_drv_shutdown, .driver = { .name ="meson-drm" , .of_match_table = dt_match, --2.34.0
Re: [PATCH 5.10] Revert "drm: meson_drv add shutdown function"
In reply to a message not in the archiveQuoted 7 lines · Jerome Brunet
This reverts commit
d66083c0d6f5125a4d982aa177dd71ab4cd3d212and commitd4ec1ffbdaa8939a208656e9c1440742c457ef16.On v5.10 stable, reboot gets stuck on gxl and g12a chip family (at least). This was tested on the aml-s905x-cc from libretch and the u200 reference design.
What about the rate ? it's 100% stuck for any reboot try !
Quoted 51 lines
Bisecting on the v5.10 stable branch lead to
commitd4ec1ffbdaa8("drm:meson_drvadd shutdown function").Reverting it (and a fixes on the it) sloves the problem.
Signed-off-by Jerome Brunet <[email protected]>---
Hi Greg,
Things are fine on master but it breaks on v5.10-y. I did not check v5.14-y yet. I'll try next week.
drivers/gpu/drm/meson/meson_drv.c | 12 ------------ 1 file changed, 12 deletions(-)drivers/gpu/drm/meson/meson_drv.c +0
-13@@ -482,17 +482,6 @@ static int meson_probe_remote(struct platform_device *pdev,return count; } -static void meson_drv_shutdown (struct platform_device *pdev) -{ -struct meson_drm *priv =dev_get_drvdata (&pdev->dev); - -if (!priv) -return ; - -drm_kms_helper_poll_fini (priv->drm); -drm_atomic_helper_shutdown (priv->drm); -} -static int meson_drv_probe (struct platform_device *pdev) {struct component_match *match =NULL ;@@ -564,7 +553,6 @@ static const struct dev_pm_ops meson_drv_pm_ops = {static struct platform_driver meson_drm_platform_driver = { .probe = meson_drv_probe, - .shutdown = meson_drv_shutdown, .driver = { .name ="meson-drm" , .of_match_table = dt_match, --2.34.0