[PATCH v4 11/16] soc: mediatek: pm-domains: Add support for mt8183

2020-10-30 Thread Enric Balletbo i Serra
From: Matthias Brugger Add the needed board data to support mt8183 SoC. Signed-off-by: Matthias Brugger Signed-off-by: Enric Balletbo i Serra --- Changes in v4: - Adapt the scpsys_soc_data struct to the changes done in previous patches. Changes in v3: - Do not remove mmsys from

[PATCH v4 03/16] arm64: dts: mediatek: Add mt8173 power domain controller

2020-10-30 Thread Enric Balletbo i Serra
Add power domain controller node for SoC mt8173. Signed-off-by: Enric Balletbo i Serra --- Changes in v4: None Changes in v3: None Changes in v2: - Add a scpsys syscon node as parent and a SPM (System Power Manager) as a child. arch/arm64/boot/dts/mediatek/mt8173.dtsi | 164

[PATCH v4 08/16] soc: mediatek: pm-domains: Add subsystem clocks

2020-10-30 Thread Enric Balletbo i Serra
From: Matthias Brugger For the bus protection operations, some subsystem clocks need to be enabled before releasing the protection. This patch identifies the subsystem clocks by it's name. Suggested-by: Weiyi Lu [Adapted the patch to the mtk-pm-domains driver] Signed-off-by: Matthias Brugger

[PATCH v4 07/16] soc: mediatek: pm-domains: Add extra sram control

2020-10-30 Thread Enric Balletbo i Serra
From: Matthias Brugger For some power domains like vpu_core on MT8183 whose sram need to do clock and internal isolation while power on/off sram. We add a cap "MTK_SCPD_SRAM_ISO" to judge if we need to do the extra sram isolation control or not. Signed-off-by: Weiyi Lu Signed-off-by: Matthias

[PATCH v5 07/11] arm64: dts: ls2088ardb: add PHY nodes for the CS4340 PHYs

2020-10-30 Thread Ioana Ciornei
From: Ioana Ciornei Annotate the EMDIO1 node and describe the 4 10GBASER PHYs found on the LS2088ARDB board. Also, add phy-handles for DPMACs 1-4 to their associated PHY. Signed-off-by: Ioana Ciornei --- Changes in v2: - none Changes in v3: - none Changes in v4: - move the

[PATCH v4 13/16] arm64: dts: mediatek: Add mt8183 power domains controller

2020-10-30 Thread Enric Balletbo i Serra
From: Matthias Brugger Add power domains controller node for SoC mt8183 Signed-off-by: Matthias Brugger Signed-off-by: Enric Balletbo i Serra --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm64/boot/dts/mediatek/mt8183.dtsi | 162 +++ 1 file

[PATCH v5 11/11] arm64: dts: lx2160ardb: add nodes for the AQR107 PHYs

2020-10-30 Thread Ioana Ciornei
From: Ioana Ciornei Annotate the EMDIO1 node and describe the 2 AQR107 PHYs found on the LX2160ARDB board. Also, add the necessary phy-handles for DPMACs 3 and 4 to their associated PHY. Signed-off-by: Ioana Ciornei --- .../boot/dts/freescale/fsl-lx2160a-rdb.dts| 32 +++ 1

[PATCH v4 10/16] dt-bindings: power: Add MT8183 power domains

2020-10-30 Thread Enric Balletbo i Serra
Add power domains dt-bindings for MT8183. Signed-off-by: Matthias Brugger Signed-off-by: Enric Balletbo i Serra --- Changes in v4: None Changes in v3: None Changes in v2: None .../power/mediatek,power-controller.yaml | 2 ++ include/dt-bindings/power/mt8183-power.h | 26

[PATCH v5 10/11] arm64: dts: lx2160a: add PCS MDIO and PCS PHY nodes

2020-10-30 Thread Ioana Ciornei
From: Ioana Ciornei Add PCS MDIO nodes for the internal MDIO buses on the LX2160A, along with their internal PCS PHYs, which will be used when the DPMAC is in TYPE_PHY mode. Also, rename the dpmac@x nodes to ethernet@x in order to be compliant with the naming convention used by ethernet

[PATCH v4 14/16] dt-bindings: power: Add MT8192 power domains

2020-10-30 Thread Enric Balletbo i Serra
From: Weiyi Lu Add power domains dt-bindings for MT8192. Signed-off-by: Weiyi Lu Signed-off-by: Enric Balletbo i Serra --- Changes in v4: None Changes in v3: None Changes in v2: None .../power/mediatek,power-controller.yaml | 2 ++ include/dt-bindings/power/mt8192-power.h | 32

[PATCH v4 15/16] soc: mediatek: pm-domains: Add default power off flag

2020-10-30 Thread Enric Balletbo i Serra
From: Weiyi Lu For some power domain, like conn on MT8192, it should be default OFF. Because the power on/off control relies the function of connectivity chip and its firmware. And if project choose other chip vendor solution, those necessary connectivity functions will not provided.

[PATCH v5 04/11] arm64: dts: ls1088ardb: add QSGMII PHY nodes

2020-10-30 Thread Ioana Ciornei
From: Ioana Ciornei Annotate the external MDIO1 node and describe the 8 QSGMII PHYs found on the LS1088ARDB board and add phy-handles for DPMACs 3-10 to its associated PHY. Also, add the internal PCS MDIO nodes for the internal MDIO buses found on the LS1088A SoC along with their internal PCS

[PATCH v5 05/11] arm64: dts: ls1088ardb: add necessary DTS nodes for DPMAC2

2020-10-30 Thread Ioana Ciornei
From: Ioana Ciornei Annotate the external MDIO2 node and describe the 10GBASER PHY found on the LS1088ARDB board and add a phy-handle for DPMAC2 to link it. Also, add the internal PCS MDIO node for the internal MDIO buses found on the LS1088A SoC along with its internal PCS PHY and link the

[PATCH v4 02/16] soc: mediatek: Add MediaTek SCPSYS power domains

2020-10-30 Thread Enric Balletbo i Serra
The System Control Processor System (SCPSYS) has several power management related tasks in the system. This driver implements support to handle the different power domains supported in order to meet high performance and low power requirements. Co-developed-by: Matthias Brugger Signed-off-by:

[PATCH v4 01/16] dt-bindings: power: Add bindings for the Mediatek SCPSYS power domains controller

2020-10-30 Thread Enric Balletbo i Serra
The System Control Processor System (SCPSYS) has several power management related tasks in the system. Add the bindings to define the power domains for the SCPSYS power controller. Co-developed-by: Matthias Brugger Signed-off-by: Matthias Brugger Signed-off-by: Enric Balletbo i Serra

[PATCH v5 06/11] arm64: dts: ls208xa: add the external MDIO nodes

2020-10-30 Thread Ioana Ciornei
From: Ioana Ciornei Add the external MDIO device nodes found in the WRIOP global memory region. This is needed for management of external PHYs. Signed-off-by: Ioana Ciornei --- Changes in v2: - removed the 0x from the unit addresses Changes in v3: - none Changes in v4: - none Changes in v5:

[PATCH v4 05/16] soc: mediatek: pm_domains: Make bus protection generic

2020-10-30 Thread Enric Balletbo i Serra
From: Matthias Brugger Bus protection is not exclusively done by calling the infracfg misc driver. Make the calls for setting and clearing the bus protection generic so that we can use other blocks for it as well. Signed-off-by: Matthias Brugger Signed-off-by: Enric Balletbo i Serra ---

[PATCH v4 06/16] soc: mediatek: pm-domains: Add SMI block as bus protection block

2020-10-30 Thread Enric Balletbo i Serra
From: Matthias Brugger Apart from the infracfg block, the SMI block is used to enable the bus protection for some power domains. Add support for this block. Signed-off-by: Matthias Brugger Signed-off-by: Enric Balletbo i Serra --- Changes in v4: - Use the new

[PATCH v4 09/16] soc: mediatek: pm-domains: Allow bus protection to ignore clear ack

2020-10-30 Thread Enric Balletbo i Serra
From: Matthias Brugger In some cases the hardware does not create an acknowledgment of the bus protection clearing. Add a flag to the bus protection indicating that a clear event will be ignored. Signed-off-by: Matthias Brugger Signed-off-by: Enric Balletbo i Serra --- Changes in v4: None

[PATCH v5 09/11] arm64: dts: ls208xa: add PCS MDIO and PCS PHY nodes

2020-10-30 Thread Ioana Ciornei
From: Ioana Ciornei Add PCS MDIO nodes for the internal MDIO buses on the LS208x SoCs, along with their internal PCS PHYs which will be used when the DPMAC object is in TYPE_PHY mode. Also, rename the dpmac@x nodes to ethernet@x in order to be compliant with the naming convention used by

[PATCH v4 00/16] soc: mediatek: pm-domains: Add new driver for SCPSYS power domains controller

2020-10-30 Thread Enric Balletbo i Serra
Dear all, This is a new driver with the aim to deprecate the mtk-scpsys driver. The problem with that driver is that, in order to support more Mediatek SoCs you need to add some logic to handle properly the power-up sequence of newer Mediatek SoCs, doesn't handle parent-child power domains and

[PATCH v5 08/11] arm64: dts: ls2088ardb: add PHY nodes for the AQR405 PHYs

2020-10-30 Thread Ioana Ciornei
From: Ioana Ciornei Annotate the EMDIO2 node and describe the other 4 10GBASER PHYs found on the LS2088ARDB board. Also, add phy-handles for DPMACs 5-8 to their associated PHY. Signed-off-by: Ioana Ciornei --- Changes in v2: - none Changes in v3: - none Changes in v4: - move the

Using fixed LPI number for some Device ID

2020-10-30 Thread Dongjiu Geng
Hi Marc, Sorry to disturb you, Currently the LPI number is not fixed for the device. The LPI number is dynamically allocated start from 8092. For two OS which shares the ITS, One OS needs to configure the device interrupt required by another OS, and the other OS uses a fixed interrupt ID to

Re: [PATCH v3] soundwire: SDCA: add helper macro to access controls

2020-10-30 Thread Takashi Iwai
On Fri, 30 Oct 2020 12:24:35 +0100, Liao, Bard wrote: > > > > > -Original Message- > > From: Greg KH > > Sent: Friday, October 30, 2020 5:37 PM > > To: Bard Liao > > Cc: alsa-de...@alsa-project.org; vk...@kernel.org; vinod.k...@linaro.org; > > linux-kernel@vger.kernel.org;

Re: [PATCH -next] mm, page_alloc: Fix old-style function definition

2020-10-30 Thread David Hildenbrand
On 28.10.20 08:32, Zou Wei wrote: Fix warning: mm/page_alloc.c:763:6: warning: old-style function definition [-Wold-style-definition] void init_mem_debugging() ^~ Reported-by: Hulk Robot Signed-off-by: Zou Wei --- mm/page_alloc.c | 2 +- 1 file changed, 1

Re: (3) [PATCH v2] input: add 2 kind of switch

2020-10-30 Thread gre...@linuxfoundation.org
On Fri, Oct 30, 2020 at 08:28:12PM +0900, Jungrae Kim wrote: > > On Fri, Oct 30, 2020 at 01:39:16PM +0900, HyungJae Im wrote: > > > Hello, This is Hyungjae Im from Samsung Electronics. > > > Let me answer your questions inline. > > > > > > >On Thu, Oct 29, 2020 at 10:27:47PM +0900, HyungJae Im

Re: [PATCH v2 1/2] dt-bindings: power: Add MT8167 power domains

2020-10-30 Thread Enric Balletbo i Serra
Hi Fabien, Thank you for the patch and base it on [0] On 27/10/20 14:11, Fabien Parent wrote: > Add power domains dt-bindings for MT8167. > > Signed-off-by: Fabien Parent > --- > > This patch depends on the SCPSYS PM domains driver [0]. > > v2: > * Implement on top of new SCPSYS PM

[PATCH] checkpatch: add fix option for GERRIT_CHANGE_ID

2020-10-30 Thread Aditya Srivastava
Currently, whenever a Gerrit Change-Id is present in a commit, checkpatch.pl warns to remove the Change-Id before submitting the patch. E.g., running checkpatch on commit adc311a5bbf6 ("iwlwifi: bump FW API to 53 for 22000 series") reports this error: ERROR: Remove Gerrit Change-Id's before

Re: [PATCH] vhost/vsock: add IOTLB API support

2020-10-30 Thread Jason Wang
On 2020/10/30 下午6:54, Stefano Garzarella wrote: On Fri, Oct 30, 2020 at 06:02:18PM +0800, Jason Wang wrote: On 2020/10/30 上午1:43, Stefano Garzarella wrote: This patch enables the IOTLB API support for vhost-vsock devices, allowing the userspace to emulate an IOMMU for the guest. These

Re: [PATCH 2/4] OPP: Add support for parsing the 'opp-sustainable' property

2020-10-30 Thread Quentin Perret
Hi Lukasz, On Wednesday 28 Oct 2020 at 14:08:45 (+), Lukasz Luba wrote: > +unsigned long dev_pm_opp_get_sustainable_opp_freq(struct device *dev) > +{ > + struct opp_table *opp_table; > + unsigned long freq = 0; > + > + opp_table = _find_opp_table(dev); > + if

Re: [PATCH v2 2/2] soc: mediatek: pm-domains: Add support for mt8167

2020-10-30 Thread Enric Balletbo i Serra
Hi Fabien, Thank you for the patch and base it on the new SCPSYS PM domains driver On 27/10/20 14:11, Fabien Parent wrote: > Add the needed board data to support mt8167 SoC. > > Signed-off-by: Fabien Parent > --- > > This patch depends on the SCPSYS PM domains driver [0]. > > v2: > *

Re: [PATCH v3 2/3] ima: replace arch-specific get_sb_mode() with a common helper ima_get_efi_secureboot()

2020-10-30 Thread Ard Biesheuvel
On Fri, 30 Oct 2020 at 07:09, Chester Lin wrote: > > remove the get_sb_mode() from x86/kernel/ima_arch.c and create a common > helper ima_get_efi_secureboot() in IMA so that all EFI-based architectures > can refer to the same procedure. > > Signed-off-by: Chester Lin > --- >

Re: [PATCH 32/34] overlayfs: handle idmapped lower directories

2020-10-30 Thread Christian Brauner
On Fri, Oct 30, 2020 at 01:10:52PM +0200, Amir Goldstein wrote: > [reducing CC list for overlayfs specific comments] > > On Thu, Oct 29, 2020 at 2:41 AM Christian Brauner > wrote: > > > > As an overlay filesystem overlayfs can be mounted on top of other > > filesystems > > and bind-mounts. This

Re: [PATCH] checkpatch: improve handling of email comments

2020-10-30 Thread Joe Perches
On Fri, 2020-10-30 at 14:37 +0530, Dwaipayan Ray wrote: > checkpatch has limited support for parsing email comments. It only > support single name comments or single after address comments. > Whereas, RFC 5322 specifies that comments can be inserted in > between any tokens of the email fields. >

Re: [PATCH v3 3/3] arm64/ima: add ima_arch support

2020-10-30 Thread Ard Biesheuvel
On Fri, 30 Oct 2020 at 07:09, Chester Lin wrote: > > Add arm64 IMA arch support. The code and arch policy is mainly inherited > from x86. > > Signed-off-by: Chester Lin > --- > arch/arm64/Kconfig | 1 + > arch/arm64/kernel/Makefile | 2 ++ > arch/arm64/kernel/ima_arch.c | 43

Re: [PATCH v3] soundwire: SDCA: add helper macro to access controls

2020-10-30 Thread Greg KH
On Fri, Oct 30, 2020 at 11:24:35AM +, Liao, Bard wrote: > > > > -Original Message- > > From: Greg KH > > Sent: Friday, October 30, 2020 5:37 PM > > To: Bard Liao > > Cc: alsa-de...@alsa-project.org; vk...@kernel.org; vinod.k...@linaro.org; > > linux-kernel@vger.kernel.org;

[PATCH] i2c: mediatek: move dma reset before i2c reset

2020-10-30 Thread qii.wang
From: Qii Wang The i2c driver default do dma reset after i2c reset, but sometimes i2c reset will trigger dma tx2rx, then apdma write data to dram which has been i2c_put_dma_safe_msg_buf(kfree). Move dma reset before i2c reset in mtk_i2c_init_hw to fix it. Signed-off-by: Qii Wang ---

Re: [PATCH] checkpatch: improve handling of email comments

2020-10-30 Thread Lukas Bulwahn
On Fri, 30 Oct 2020, Joe Perches wrote: > On Fri, 2020-10-30 at 14:37 +0530, Dwaipayan Ray wrote: > > checkpatch has limited support for parsing email comments. It only > > support single name comments or single after address comments. > > Whereas, RFC 5322 specifies that comments can be

RE: Re: (3) [PATCH v2] input: add 2 kind of switch

2020-10-30 Thread Jungrae Kim
> On Fri, Oct 30, 2020 at 08:28:12PM +0900, Jungrae Kim wrote: > > > On Fri, Oct 30, 2020 at 01:39:16PM +0900, HyungJae Im wrote: > > > > Hello, This is Hyungjae Im from Samsung Electronics. > > > > Let me answer your questions inline. > > > > > > > > >On Thu, Oct 29, 2020 at 10:27:47PM +0900,

Re: WARN_ON(fuse_insert_writeback(root, wpa)) in tree_insert()

2020-10-30 Thread Qian Cai
On Thu, 2020-10-29 at 16:20 +0100, Miklos Szeredi wrote: > On Thu, Oct 29, 2020 at 4:02 PM Qian Cai wrote: > > On Wed, 2020-10-07 at 16:08 -0400, Qian Cai wrote: > > > Running some fuzzing by a unprivileged user on virtiofs could trigger the > > > warning below. The warning was introduced not

Re: [PATCH v3 1/3] efi: generalize efi_get_secureboot

2020-10-30 Thread Ard Biesheuvel
Hello Chester, Thanks again for looking into this. On Fri, 30 Oct 2020 at 07:09, Chester Lin wrote: > > Generalize the efi_get_secureboot() function so not only efistub but also > other subsystems can use it. > > Signed-off-by: Chester Lin > --- > drivers/firmware/efi/libstub/Makefile |

[GIT PULL] MMC fixes for v5.10-rc2

2020-10-30 Thread Ulf Hansson
Hi Linus, Here's a PR with a couple of MMC fixes intended for v5.10-rc2. Details about the highlights are as usual found in the signed tag. Please pull this in! Kind regards Ulf Hansson The following changes since commit 3e4fb4346c781068610d03c12b16c0cfb0fd24a3: Merge tag 'spdx-5.10-rc1'

Re: kernel BUG at mm/page-writeback.c:2241 [ BUG_ON(PageWriteback(page); ]

2020-10-30 Thread Qian Cai
On Thu, 2020-10-22 at 18:12 +0100, Matthew Wilcox wrote: > On Thu, Oct 22, 2020 at 11:35:26AM -0400, Qian Cai wrote: > > On Thu, 2020-10-22 at 01:49 +0100, Matthew Wilcox wrote: > > > On Wed, Oct 21, 2020 at 08:30:18PM -0400, Qian Cai wrote: > > > > Today's linux-next starts to trigger this

Re: [PATCH] checkpatch: add fix option for GERRIT_CHANGE_ID

2020-10-30 Thread Joe Perches
On Fri, 2020-10-30 at 17:14 +0530, Aditya Srivastava wrote: > Currently, whenever a Gerrit Change-Id is present in a commit, > checkpatch.pl warns to remove the Change-Id before submitting the patch. > > E.g., running checkpatch on commit adc311a5bbf6 ("iwlwifi: bump FW > API to 53 for 22000

Re: [PATCH 1/6] MIPS: Loongson64: Do not write the read only field LPA of CP0_CONFIG3

2020-10-30 Thread Jiaxun Yang
在 2020/10/30 14:22, Tiezhu Yang 写道: On 10/30/2020 12:00 PM, Jiaxun Yang wrote: 在 2020/10/29 16:02, Tiezhu Yang 写道: The field LPA of CP0_CONFIG3 register is read only for Loongson64, so the write operations are meaningless, remove them. Signed-off-by: Tiezhu Yang ---  

Re: [PATCH 5.9 000/757] 5.9.2-rc1 review

2020-10-30 Thread Ronald Warsow
On 29.10.20 20:17, Greg KH wrote: On Thu, Oct 29, 2020 at 03:42:09PM +0100, Ronald Warsow wrote: On 29.10.20 10:14, Greg KH wrote: On Tue, Oct 27, 2020 at 07:09:52PM +0100, Ronald Warsow wrote: Hallo this rc1 runs here (pure Intel-box) without errors. Thanks ! An RPC (I'm thinking about

Re: Re: (3) [PATCH v2] input: add 2 kind of switch

2020-10-30 Thread gre...@linuxfoundation.org
On Fri, Oct 30, 2020 at 08:59:18PM +0900, Jungrae Kim wrote: > > On Fri, Oct 30, 2020 at 08:28:12PM +0900, Jungrae Kim wrote: > > > > On Fri, Oct 30, 2020 at 01:39:16PM +0900, HyungJae Im wrote: > > > > > Hello, This is Hyungjae Im from Samsung Electronics. > > > > > Let me answer your questions

Re: [PATCH] devres: zero the memory in devm_krealloc() if needed

2020-10-30 Thread Bartosz Golaszewski
On Fri, Oct 30, 2020 at 12:03 PM Bartosz Golaszewski wrote: > > On Fri, Oct 30, 2020 at 11:56 AM Andy Shevchenko > wrote: > > > > [snip] > > > > > > > > > Any use case? Because to me it sounds contradictory to the whole idea > > > > of [k]realloc(). > > > > > > This is kind of a gray area in

Re: [PATCH] mm/compaction: count pages and stop correctly during page isolation.

2020-10-30 Thread Zi Yan
On 30 Oct 2020, at 5:43, Michal Hocko wrote: > [Cc Vlastimil] > > On Thu 29-10-20 16:04:35, Zi Yan wrote: >> From: Zi Yan >> >> In isolate_migratepages_block, when cc->alloc_contig is true, we are >> able to isolate compound pages, nr_migratepages and nr_isolated did not >> count compound pages

Re: [GIT PULL, staging, net-next] wimax: move to staging

2020-10-30 Thread gregkh
On Thu, Oct 29, 2020 at 10:06:14PM +0100, Arnd Bergmann wrote: > The following changes since commit 3650b228f83adda7e5ee532e2b90429c03f7b9ec: > > Linux 5.10-rc1 (2020-10-25 15:14:11 -0700) > > are available in the Git repository at: > >

Re: [PATCH] checkpatch: improve handling of email comments

2020-10-30 Thread Joe Perches
On Fri, 2020-10-30 at 12:58 +0100, Lukas Bulwahn wrote: > On Fri, 30 Oct 2020, Joe Perches wrote: > > On Fri, 2020-10-30 at 14:37 +0530, Dwaipayan Ray wrote: > > > checkpatch has limited support for parsing email comments. It only > > > support single name comments or single after address

Re: [PATCH v4 seccomp 5/5] seccomp/cache: Report cache data through /proc/pid/seccomp_cache

2020-10-30 Thread YiFei Zhu
On Fri, Oct 23, 2020 at 9:51 PM Kees Cook wrote: > Do you have a test environment where you can compare the before/after > of repeated kernel build times (or some other sufficiently > complex/interesting) workload under these conditions: > > bare metal > docker w/ seccomp policy disabled > docker

Re: [PATCH 2/6] arm64: dts: imx8mm-beacon-som: fix missing PMIC's interrupt line pull-up

2020-10-30 Thread Adam Ford
On Wed, Oct 7, 2020 at 7:51 AM Adam Ford wrote: > > On Sun, Sep 27, 2020 at 12:00 PM Krzysztof Kozlowski wrote: > > > > The PMIC's interrupt is level low and should be pulled up. The PMIC's > > device node had pinctrl-0 property but it lacked pinctrl-names which > > is required to apply the pin

Re: [GIT PULL] interconnect fixes for 5.10

2020-10-30 Thread Greg KH
On Fri, Oct 30, 2020 at 01:21:10PM +0200, Georgi Djakov wrote: > Hello Greg, > > Here is a pull request with interconnect fixes for 5.10-rc. Please > take them into char-misc-linus when possible. All patches have been > in linux-next with no reported issues. > > Thanks, > Georgi > > The

Re: WARNING in close_fs_devices (2)

2020-10-30 Thread David Sterba
On Fri, Oct 30, 2020 at 11:10:58AM +0100, Dmitry Vyukov wrote: > On Tue, Sep 22, 2020 at 2:37 PM Anand Jain wrote: > > On 18/9/20 7:22 pm, syzbot wrote: > > #syz fix: btrfs: fix rw_devices count in __btrfs_free_extra_devids > > Is it the correct patch title? It still does not exist anywhere >

Re: [PATCH 2/6] arm64: dts: imx8mm-beacon-som: fix missing PMIC's interrupt line pull-up

2020-10-30 Thread Krzysztof Kozlowski
On Fri, 30 Oct 2020 at 13:26, Adam Ford wrote: > > On Wed, Oct 7, 2020 at 7:51 AM Adam Ford wrote: > > > > On Sun, Sep 27, 2020 at 12:00 PM Krzysztof Kozlowski > > wrote: > > > > > > The PMIC's interrupt is level low and should be pulled up. The PMIC's > > > device node had pinctrl-0 property

Re: [PATCH 6/9] livepatch/ftrace: Add recursion protection to the ftrace callback

2020-10-30 Thread Steven Rostedt
On Thu, 29 Oct 2020 10:37:44 -0400 Steven Rostedt wrote: > I also plan on adding code that reports when recursion has happened, > because even if it's not a problem, recursion adds extra overhead. I did the above (will be posting that later, maybe next week), and found two bugs with the

Re: [PATCH RFC v6 1/6] dt-bindings: exynos-bus: Add documentation for interconnect properties

2020-10-30 Thread Sylwester Nawrocki
Hi Georgi, On 15.09.2020 23:40, Georgi Djakov wrote: > On 9/9/20 17:47, Sylwester Nawrocki wrote: >> On 09.09.2020 11:07, Georgi Djakov wrote: >>> On 8/28/20 17:49, Sylwester Nawrocki wrote: On 30.07.2020 14:28, Sylwester Nawrocki wrote: > On 09.07.2020 23:04, Rob Herring wrote: >>

Re: [PATCH 1/9] ftrace: Move the recursion testing into global headers

2020-10-30 Thread Steven Rostedt
On Fri, 30 Oct 2020 10:13:50 +0100 (CET) Miroslav Benes wrote: > how does this work in case of NMI? trace_get_context_bit() returns 0 (it > does not change later in the patch set). "start" in > trace_test_and_set_recursion() is 0 zero too as used later in the patch > set by

[PATCH] selftests/seccomp: Update kernel config

2020-10-30 Thread Mickaël Salaün
seccomp_bpf.c uses unshare(CLONE_NEWPID), which requires CONFIG_PID_NS to be set. Cc: Kees Cook Cc: Shuah Khan Cc: Tycho Andersen Fixes: 6a21cc50f0c7 ("seccomp: add a return code to trap to userspace") Signed-off-by: Mickaël Salaün --- tools/testing/selftests/seccomp/config | 1 + 1 file

Re: [PATCH v2] f2fs: move ioctl interface definitions to separated file

2020-10-30 Thread Jaegeuk Kim
Hi Chao, Can we make a documentation for this in f2fs.rst? Thanks, On 10/30, Chao Yu wrote: > Like other filesystem does, we introduce a new file f2fs.h in path of > include/uapi/linux/, and move f2fs-specified ioctl interface definitions > to that file, after then, in order to use those

Re: [RFC PATCH v2] selinux: Fix kmemleak after disabling selinux runtime

2020-10-30 Thread Casey Schaufler
On 10/30/2020 12:57 AM, Hou Tao wrote: > Hi, > > On 2020/10/29 0:29, Casey Schaufler wrote: >> On 10/27/2020 7:06 PM, Chen Jun wrote: >>> From: Chen Jun >>> >>> Kmemleak will report a problem after using >>> "echo 1 > /sys/fs/selinux/disable" to disable selinux on runtime. >> Runtime disable of

[gustavoars-linux:for-linus/kspp-fam0] BUILD SUCCESS 8fdaabe1c9b3226172ba2e9e525627219be6d29a

2020-10-30 Thread kernel test robot
allmodconfig powerpc allnoconfig x86_64 randconfig-a005-20201030 x86_64 randconfig-a001-20201030 x86_64 randconfig-a002-20201030 x86_64 randconfig-a003-20201030 x86_64 randconfig-a006

Re: [PATCH] perf/arch: Remove perf_sample_data::regs_user_copy

2020-10-30 Thread Steven Rostedt
On Fri, 30 Oct 2020 11:59:17 +0100 Peter Zijlstra wrote: > On Fri, Oct 30, 2020 at 11:26:01AM +0100, Thomas Gleixner wrote: > > What's worse is perf_sample_data which is 384 bytes and is 64 bytes > > aligned. > > Here; this shrinks it to 192 bytes. Combined with the static dummy this >

Re: [PATCH 1/4] erofs: fix setting up pcluster for temporary pages

2020-10-30 Thread Vladimir Zapolskiy
Hello Gao Xiang, On 10/22/20 5:57 PM, Gao Xiang via Linux-erofs wrote: From: Gao Xiang pcluster should be only set up for all managed pages instead of temporary pages. Since it currently uses page->mapping to identify, the impact is minor for now. Fixes: 5ddcee1f3a1c ("erofs: get rid of

[PATCH v1 2/2] seccomp: Set PF_SUPERPRIV when checking capability

2020-10-30 Thread Mickaël Salaün
From: Mickaël Salaün Replace the use of security_capable(current_cred(), ...) with ns_capable_noaudit() which set PF_SUPERPRIV. Since commit 98f368e9e263 ("kernel: Add noaudit variant of ns_capable()"), a new ns_capable_noaudit() helper is available. Let's use it! Cc: Jann Horn Cc: Kees Cook

[PATCH v1 0/2] Fix misuse of security_capable()

2020-10-30 Thread Mickaël Salaün
This series replaces all the use of security_capable(current_cred(), ...) with ns_capable{,_noaudit}() which set PF_SUPERPRIV. This initially come from a review of Landlock by Jann Horn: https://lore.kernel.org/lkml/cag48ez1fqvkt78129wozbwfbvhapyar9ojahfhabbnxebr9...@mail.gmail.com/ Mickaël

[PATCH v1 1/2] ptrace: Set PF_SUPERPRIV when checking capability

2020-10-30 Thread Mickaël Salaün
From: Mickaël Salaün Commit 69f594a38967 ("ptrace: do not audit capability check when outputing /proc/pid/stat") replaced the use of ns_capable() with has_ns_capability{,_noaudit}() which doesn't set PF_SUPERPRIV. Commit 6b3ad6649a4c ("ptrace: reintroduce usage of subjective credentials in

[PATCH 1/2] futex.2: srcfix

2020-10-30 Thread Alejandro Colomar
Signed-off-by: Alejandro Colomar --- man2/futex.2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man2/futex.2 b/man2/futex.2 index f82602c11..837adbd25 100644 --- a/man2/futex.2 +++ b/man2/futex.2 @@ -25,8 +25,8 @@ futex \- fast user-space locking .SH SYNOPSIS .nf .PP

[PATCH 2/2] futex.2: Use appropriate types

2020-10-30 Thread Alejandro Colomar
The Linux kernel uses the following: kernel/futex.c:3778: SYSCALL_DEFINE6(futex, u32 __user *, uaddr, int, op, u32, val, struct __kernel_timespec __user *, utime, u32 __user *, uaddr2, u32, val3) Since there is no glibc wrapper, use the same types the kernel uses.

Re: [PATCH 0/4] Add sustainable OPP concept

2020-10-30 Thread Lukasz Luba
On 10/30/20 11:17 AM, Viresh Kumar wrote: On 30-10-20, 10:56, Lukasz Luba wrote: IPA tries to do that, even dynamically when e.g. GPU is supper busy in 3D games (~2000W) or almost idle showing 2D home screen. It tries to find highest 'sustainable' frequencies for the devices, at that various

Re: [PATCH v22 08/12] landlock: Add syscall implementations

2020-10-30 Thread Mickaël Salaün
On 30/10/2020 04:07, Jann Horn wrote: > On Thu, Oct 29, 2020 at 12:30 PM Mickaël Salaün wrote: >> On 29/10/2020 02:06, Jann Horn wrote: >>> On Tue, Oct 27, 2020 at 9:04 PM Mickaël Salaün wrote: These 3 system calls are designed to be used by unprivileged processes to sandbox

Re: [PATCH v2 02/12] soc: mediatek: Add MediaTek SCPSYS power domains

2020-10-30 Thread Nicolas Boichat
On Fri, Oct 30, 2020 at 6:30 PM Enric Balletbo i Serra wrote: > > Hi Nicolas, > > On 28/10/20 2:13, Nicolas Boichat wrote: > > On Wed, Oct 28, 2020 at 12:25 AM Enric Balletbo i Serra > > wrote: > >> > >> Hi Nicolas, > >> > >> On 27/10/20 1:19, Nicolas Boichat wrote: > >>> Hi Enric, > >>> > >>>

[PATCH v2] ARM: multi_v7_defconfig: ti: Enable networking options for nfs boot

2020-10-30 Thread Grygorii Strashko
Enable networking options required for NFS boot on TI platforms, which is widely for automated test systems. - enable new TI CPSW switch driver and related NET_SWITCHDEV config - enable TI DP83867 phy - explicitly enable PTP clock support to ensure dependent networking drivers will stay built-in.

Re: [PATCH 1/4] erofs: fix setting up pcluster for temporary pages

2020-10-30 Thread Gao Xiang
Hi Vladimir, On Fri, Oct 30, 2020 at 02:20:31PM +0200, Vladimir Zapolskiy wrote: > Hello Gao Xiang, > > On 10/22/20 5:57 PM, Gao Xiang via Linux-erofs wrote: > > From: Gao Xiang > > > > pcluster should be only set up for all managed pages instead of > > temporary pages. Since it currently uses

Re: [PATCH -next] usb: Make sync_all_pins static

2020-10-30 Thread Greg Kroah-Hartman
On Fri, Oct 30, 2020 at 01:18:33PM +0200, Andy Shevchenko wrote: > On Fri, Oct 30, 2020 at 11:18 AM Zou Wei wrote: > > The title can be more precise. > > > Fix the following sparse warning: > > > > drivers/usb/misc/brcmstb-usb-pinmap.c:219:6: warning: symbol > > 'sync_all_pins' was not

[PATCH v7 3/6] PM / devfreq: exynos-bus: Add registration of interconnect child device

2020-10-30 Thread Sylwester Nawrocki
This patch adds registration of a child platform device for the exynos interconnect driver. It is assumed that the interconnect provider will only be needed when #interconnect-cells property is present in the bus DT node, hence the child device will be created only when such a property is present.

[PATCH v7 2/6] interconnect: Add generic interconnect driver for Exynos SoCs

2020-10-30 Thread Sylwester Nawrocki
This patch adds a generic interconnect driver for Exynos SoCs in order to provide interconnect functionality for each "samsung,exynos-bus" compatible device. The SoC topology is a graph (or more specifically, a tree) and its edges are specified using the 'samsung,interconnect-parent' in the DT.

[PATCH v7 0/6] Exynos: Simple QoS for exynos-bus using interconnect

2020-10-30 Thread Sylwester Nawrocki
This patchset adds interconnect API support for the Exynos SoC "samsung, exynos-bus" compatible devices, which already have their corresponding exynos-bus driver in the devfreq subsystem. Complementing the devfreq driver with an interconnect functionality allows to ensure the QoS requirements

[PATCH v7 1/6] dt-bindings: devfreq: Add documentation for the interconnect properties

2020-10-30 Thread Sylwester Nawrocki
Add documentation for new optional properties in the exynos bus nodes: interconnects, #interconnect-cells, samsung,data-clock-ratio. These properties allow to specify the SoC interconnect structure which then allows the interconnect consumer devices to request specific bandwidth requirements.

[PATCH v7 4/6] ARM: dts: exynos: Add interconnect properties to Exynos4412 bus nodes

2020-10-30 Thread Sylwester Nawrocki
This patch adds the following properties for Exynos4412 interconnect bus nodes: - interconnects: to declare connections between nodes in order to guarantee PM QoS requirements between nodes, - #interconnect-cells: required by the interconnect framework, - samsung,data-clk-ratio: which allows

Re: [PATCH 2/4] OPP: Add support for parsing the 'opp-sustainable' property

2020-10-30 Thread Lukasz Luba
Hi Quentin, On 10/30/20 11:47 AM, Quentin Perret wrote: Hi Lukasz, On Wednesday 28 Oct 2020 at 14:08:45 (+), Lukasz Luba wrote: +unsigned long dev_pm_opp_get_sustainable_opp_freq(struct device *dev) +{ + struct opp_table *opp_table; + unsigned long freq = 0; + +

[PATCH v7 6/6] drm: exynos: mixer: Add interconnect support

2020-10-30 Thread Sylwester Nawrocki
This patch adds interconnect support to exynos-mixer. The mixer works the same as before when CONFIG_INTERCONNECT is 'n'. For proper operation of the video mixer block we need to ensure the interconnect busses like DMC or LEFTBUS provide enough bandwidth so as to avoid DMA buffer underruns in the

[PATCH v7 5/6] ARM: dts: exynos: Add interconnects to Exynos4412 mixer

2020-10-30 Thread Sylwester Nawrocki
From: Artur Świgoń This patch adds an 'interconnects' property to Exynos4412 DTS in order to declare the interconnect path used by the mixer. Please note that the 'interconnect-names' property is not needed when there is only one path in 'interconnects', in which case calling of_icc_get() with a

Re: [PATCH v2 1/2] iommu/vt-d: Fix sid not set issue in intel_svm_bind_gpasid()

2020-10-30 Thread Lu Baolu
On 10/30/20 10:37 AM, Yi Sun wrote: From: Liu Yi L Should get correct sid and set it into sdev. Because we execute 'sdev->sid != req->rid' in the loop of prq_event_thread(). Fixes: eb8d93ea3c1d ("iommu/vt-d: Report page request faults for guest SVA") Signed-off-by: Liu Yi L Signed-off-by: Yi

Re: [Outreachy kernel] [PATCH] drm/amdgpu: use DEFINE_DEBUGFS_ATTRIBUTE with debugfs_create_file_unsafe()

2020-10-30 Thread Deepak R Varma
On Fri, Oct 30, 2020 at 10:24:57AM +0100, Daniel Vetter wrote: > On Fri, Oct 30, 2020 at 10:15:21AM +0100, Daniel Vetter wrote: > > On Fri, Oct 30, 2020 at 09:25:18AM +0100, Greg KH wrote: > > > On Fri, Oct 30, 2020 at 09:00:04AM +0100, Christian König wrote: > > > > Am 30.10.20 um 08:57 schrieb

Re: [PATCH v2 2/2] iommu/vt-d: Fix a bug for PDP check in prq_event_thread

2020-10-30 Thread Lu Baolu
On 10/30/20 10:37 AM, Yi Sun wrote: From: "Liu, Yi L" In prq_event_thread(), the QI_PGRP_PDP is wrongly set by 'req->pasid_present' which should be replaced to 'req->priv_data_present'. Fixes: 5b438f4ba315 ("iommu/vt-d: Support page request in scalable mode") Signed-off-by: Liu, Yi L

Re: [PATCH] powerpc/32s: Setup the early hash table at all time.

2020-10-30 Thread Christophe Leroy
Andreas Schwab a écrit : On Okt 30 2020, Michael Ellerman wrote: Andreas Schwab writes: On Okt 01 2020, Christophe Leroy wrote: At the time being, an early hash table is set up when CONFIG_KASAN is selected. There is nothing wrong with setting such an early hash table all the time, even

Re: [PATCH v9 01/14] ASoC: sun4i-i2s: Change set_chan_cfg() params

2020-10-30 Thread Clément Péron
Hi Samuel On Fri, 30 Oct 2020 at 02:20, Samuel Holland wrote: > > On 10/27/20 4:43 PM, Clément Péron wrote: > > Hi Pierre-Louis, > > > > On Tue, 27 Oct 2020 at 19:59, Pierre-Louis Bossart > > wrote: > >> > >> > >>> @@ -452,11 +454,11 @@ static int sun8i_i2s_set_chan_cfg(const struct > >>>

Re: [PATCH 0/4] deterministic random testing

2020-10-30 Thread Rasmus Villemoes
On 26/10/2020 11.59, Andy Shevchenko wrote: > On Sun, Oct 25, 2020 at 10:48:38PM +0100, Rasmus Villemoes wrote: >> This is a bit of a mixed bag. >> >> The background is that I have some sort() and list_sort() rework >> planned, but as part of that series I want to extend their their test >> suites

Re: [PATCH v6 2/9] x86, kfence: enable KFENCE for x86

2020-10-30 Thread Marco Elver
On Fri, 30 Oct 2020 at 03:49, Jann Horn wrote: > On Thu, Oct 29, 2020 at 2:17 PM Marco Elver wrote: > > Add architecture specific implementation details for KFENCE and enable > > KFENCE for the x86 architecture. In particular, this implements the > > required interface in for setting up the

Re: [PATCH] spi: fsl-dspi: fix NULL pointer dereference

2020-10-30 Thread Mark Brown
On Thu, Oct 29, 2020 at 04:40:35PM +0800, Qiang Zhao wrote: > [ 64.587431] Unable to handle kernel NULL pointer dereference at > virtual address 0020 > [..] > [ 64.756080] Call trace: > [ 64.758526] dspi_suspend+0x30/0x78 > [ 64.762012] platform_pm_suspend+0x28/0x70 > [

Re: general protection fault in security_inode_getattr

2020-10-30 Thread Miklos Szeredi
On Mon, Aug 24, 2020 at 11:00 PM Ondrej Mosnacek wrote: > > On Mon, Aug 24, 2020 at 9:37 PM syzbot > wrote: > > syzbot has found a reproducer for the following issue on: > > Looping in fsdevel and OverlayFS maintainers, as this seems to be > FS/OverlayFS related... Hmm, the oopsing code is

Re: [patch V2 00/18] mm/highmem: Preemptible variant of kmap_atomic & friends

2020-10-30 Thread Matthew Wilcox
On Thu, Oct 29, 2020 at 11:18:06PM +0100, Thomas Gleixner wrote: > This series provides kmap_local.* iomap_local variants which only disable > migration to keep the virtual mapping address stable accross preemption, > but do neither disable pagefaults nor preemption. The new functions can be >

Re: [RFC] Have insn decoder functions return success/failure

2020-10-30 Thread Borislav Petkov
On Fri, Oct 30, 2020 at 10:24:53AM +0900, Masami Hiramatsu wrote: > What's the objdump say here? The expected "bad": 0: c5 ec 95(bad) 3: b2 02 mov$0x2,%dl 5: bd 4b c8 a8 36 mov$0x36a8c84b,%ebp a: b2 c5 mov

Re: [RFC][PATCH 3/3 v3] livepatching: Use the default ftrace_ops instead of REGS when ARGS is available

2020-10-30 Thread Miroslav Benes
(live-patching ML CCed, keeping the complete email for reference) Hi, a nit concerning the subject. We use just "livepatch:" as a prefix. On Wed, 28 Oct 2020, Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > When CONFIG_HAVE_DYNAMIC_FTRACE_WITH_ARGS is available, the ftrace call >

Re: [Y2038][time namespaces] Question regarding CLOCK_REALTIME support plans in Linux time namespaces

2020-10-30 Thread Thomas Gleixner
Lukasz, On Fri, Oct 30 2020 at 11:02, Lukasz Majewski wrote: > I do have a question regarding the Linux time namespaces in respect of > adding support for virtualizing the CLOCK_REALTIME. > > According to patch description [1] and time_namespaces documentation > [2] the CLOCK_REALTIME is not

Re: [PATCH] powerpc/32s: Setup the early hash table at all time.

2020-10-30 Thread Andreas Schwab
# # Automatically generated file; DO NOT EDIT. # Linux/powerpc 5.10.0-rc1 Kernel Configuration # CONFIG_CC_VERSION_TEXT="gcc-4.9 (SUSE Linux) 4.9.3" CONFIG_CC_IS_GCC=y CONFIG_GCC_VERSION=40903 CONFIG_LD_VERSION=23501 CONFIG_CLANG_VERSION=0 CONFIG_CC_CAN_LINK=y CONFIG_CC_CAN_LINK_STATIC=y

Re: [RFC 13/13] m68k: mac: convert to generic clockevent

2020-10-30 Thread Greg Ungerer
On 30/10/20 10:41 am, Finn Thain wrote: On Fri, 23 Oct 2020, Arnd Bergmann wrote: On Sun, Oct 18, 2020 at 2:55 AM Finn Thain wrote: On Thu, 15 Oct 2020, Arnd Bergmann wrote: On Thu, Oct 15, 2020 at 3:19 AM Finn Thain wrote: On Sat, 10 Oct 2020, Arnd Bergmann wrote: That configuration

Re: [PATCH] spi: fsl-dspi: fix NULL pointer dereference

2020-10-30 Thread Vladimir Oltean
On Fri, Oct 30, 2020 at 02:04:06AM +, Qiang Zhao wrote: > I saw the patch, it just fix the issue when the kernel are booted up. > But there still have the issue when the driver suspend and resume. I see, sorry, I only paid attention to the commit message since it wasn't explicit that it is

<    1   2   3   4   5   6   7   8   9   10   >