[PATCH 2/2] iommu/mediatek: Alloc building as module

2021-03-22 Thread Yong Wu
The IOMMU in many SoC depends on the MM clocks and power-domain which are device_initcall normally, thus the subsys_init here is not helpful. This patch switches it to module_platform_driver which allow the driver built as module. Correspondingly switch the config to tristate. Signed-off-by:

[PATCH 1/2] iommu/mediatek-v1: Alloc building as module

2021-03-22 Thread Yong Wu
This patch only adds support for building the IOMMU-v1 driver as module. Correspondingly switch the config to tristate. Signed-off-by: Yong Wu --- rebase on v5.12-rc2. --- drivers/iommu/Kconfig| 2 +- drivers/iommu/mtk_iommu_v1.c | 9 - 2 files changed, 5 insertions(+), 6

Re: linux-next: build warning after merge of the sound-asoc tree

2021-03-22 Thread Mukunda,Vijendar
On 3/23/21 11:13 AM, Stephen Rothwell wrote: Hi all, After merging the sound-asoc tree, today's linux-next build (powerpc allyesconfig) produced this warning: sound/soc/amd/acp-da7219-max98357a.c:684:28: warning: 'cz_rt5682_card' defined but not used [-Wunused-variable] 684 | static

linux-next: build warning after merge of the v4l-dvb tree

2021-03-22 Thread Stephen Rothwell
Hi all, After merging the v4l-dvb tree, today's linux-next build (htmldocs) produced this warning: Documentation/driver-api/media/camera-sensor.rst:147: WARNING: Error in "c:function" directive: 1 argument(s) required, 0 supplied. .. c:function:: int pm_runtime_get_if_in_use(struct

linux-next: build warning in Linus' tree

2021-03-22 Thread Stephen Rothwell
Hi all, Building Linus' tree, today's linux-next build (x86_64 allnoconfig) produced this warning: kernel/static_call.c: In function '__static_call_update': kernel/static_call.c:153:18: warning: unused variable 'mod' [-Wunused-variable] 153 | struct module *mod = site_mod->mod; |

[PATCH] soc: mediatek: mmsys: Add mt8183 mmsys routing table

2021-03-22 Thread Hsin-Yi Wang
mt8183 has different routing registers than mt8173. Signed-off-by: Hsin-Yi Wang --- This patch is based on series ("soc: mediatek: Prepare MMSYS for DDP routing using tables")[1] and tested with mt8183 krand and mt8183 juniper device. The register value is referenced from [2]. [1]

Re: [kbuild-all] Re: include/linux/compiler_types.h:315:38: error: call to '__compiletime_assert_536' declared with attribute error: BUILD_BUG_ON failed: offsetof(struct can_frame, len) != offsetof(st

2021-03-22 Thread Vincent MAILHOL
Hi Oliver and Rong, This is an interesting and quite surprising issue! On Tue. 23 mars 2021 at 11:54, Rong Chen wrote: > On 3/23/21 12:24 AM, Oliver Hartkopp wrote: > > Hi Rong, > > > > On 22.03.21 09:52, Rong Chen wrote: > > > >> On 3/21/21 10:19 PM, Oliver Hartkopp wrote: > >>> Two reminders

Re: [PATCH] hwmon: (ftsteutates): Rudimentary typo fixes

2021-03-22 Thread Randy Dunlap
On 3/22/21 9:34 PM, Bhaskar Chowdhury wrote: > > s/Temprature/Temperature/ > s/revsion/revision/ > > Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap > --- > drivers/hwmon/ftsteutates.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git

Re: [PATCH] tools: testing: Remove duplicate include of sched.h

2021-03-22 Thread Christophe Leroy
Le 23/03/2021 à 04:34, Wan Jiabing a écrit : sched.h has been included at line 33. So we remove the duplicate one at line 36. Can you please send a single patch for all files in tools/testing/selftests/powerpc/ Thanks Christophe Signed-off-by: Wan Jiabing ---

linux-next: build warning after merge of the sound-asoc tree

2021-03-22 Thread Stephen Rothwell
Hi all, After merging the sound-asoc tree, today's linux-next build (powerpc allyesconfig) produced this warning: sound/soc/amd/acp-da7219-max98357a.c:684:28: warning: 'cz_rt5682_card' defined but not used [-Wunused-variable] 684 | static struct snd_soc_card cz_rt5682_card = { |

Re: [PATCH] octeontx2-af: cn10k: Few mundane typos fixed

2021-03-22 Thread Randy Dunlap
On 3/22/21 9:28 PM, Bhaskar Chowdhury wrote: > > s/preceeds/precedes/ .two different places > s/rsponse/response/ > s/cetain/certain/ > s/precison/precision/ > > Signed-off-by: Bhaskar Chowdhury > --- > drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 10 +- > 1 file changed, 5

Re: [PATCH] arch: powerpc: Remove duplicate include of interrupt.h

2021-03-22 Thread Christophe Leroy
Le 23/03/2021 à 03:41, Wan Jiabing a écrit : asm/interrupt.h has been included at line 12. According to alphabetic order,we remove the duplicate one at line 10. Could you please cook a single patch for all files in arch/powerpc/ Thanks Christophe Signed-off-by: Wan Jiabing ---

[syzbot] WARNING in io_sq_thread_park

2021-03-22 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:84196390 Merge tag 'selinux-pr-20210322' of git://git.kern.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=152a6ad6d0 kernel config: https://syzkaller.appspot.com/x/.config?x=5adab0bdee099d7a

Re: [PATCH] perf tools: Trivial spelling fixes

2021-03-22 Thread Randy Dunlap
On 3/22/21 9:46 PM, Bhaskar Chowdhury wrote: > > s/succeded/succeeded/ five different places > s/revsions/revisions/ > > Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap > --- > tools/perf/util/header.c | 12 ++-- > 1 file changed, 6 insertions(+), 6 deletions(-) > >

RE: Re: [PATCH v31 2/4] scsi: ufs: L2P map management for HPB read

2021-03-22 Thread Daejun Park
>On 2021-03-23 12:22, Can Guo wrote: >> On 2021-03-22 17:11, Bean Huo wrote: >>> On Mon, 2021-03-22 at 15:54 +0900, Daejun Park wrote: + switch (rsp_field->hpb_op) { + case HPB_RSP_REQ_REGION_UPDATE: + if (data_seg_len != DEV_DATA_SEG_LEN)

Re: [PATCH] rcu: Fix various typos in comments

2021-03-22 Thread Paul E. McKenney
On Tue, Mar 23, 2021 at 08:26:14AM +0530, Bhaskar Chowdhury wrote: > On 00:02 Tue 23 Mar 2021, Ingo Molnar wrote: > > > > Hi Paul, > > > > Was working on automation to make it a bit more straightforward to fix > > typos within comments (which we tend to reintroduce during > > development), and

[PATCH] HID: quirks: Set INCREMENT_USAGE_ON_DUPLICATE for Saitek X65

2021-03-22 Thread Nirenjan Krishnan
The Saitek X65 joystick has a pair of axes that were used as mouse pointer controls by the Windows driver. The corresponding usage page is the Game Controls page, which is not recognized by the generic HID driver, and therefore, both axes get mapped to ABS_MISC. The quirk makes the second axis get

Re: [PATCH] rcu: Fix various typos in comments

2021-03-22 Thread Paul E. McKenney
On Mon, Mar 22, 2021 at 07:55:05PM -0700, Randy Dunlap wrote: > On 3/22/21 4:02 PM, Ingo Molnar wrote: > > > > Hi Paul, > > > > Was working on automation to make it a bit more straightforward to fix > > typos within comments (which we tend to reintroduce during > > development), and here are

Re: [net-next PATCH v7 04/16] of: mdio: Refactor of_phy_find_device()

2021-03-22 Thread Calvin Johnson
On Fri, Mar 19, 2021 at 11:21:15AM +, Daniel Thompson wrote: > On Wed, Mar 17, 2021 at 02:15:20PM +0530, Calvin Johnson wrote: > > Hi Daniel, > > > > On Tue, Mar 16, 2021 at 07:17:19PM +, Daniel Thompson wrote: > > > On Thu, Mar 11, 2021 at 11:49:59AM +0530, Calvin Johnson wrote: > > > >

Re: [PATCH v7 3/3] arm64: dts: ti: k3-j7200: Add support for higher speed modes and update delay select values for MMCSD subsystems

2021-03-22 Thread Aswath Govindraju
Hi Nishanth, On 22/03/21 9:05 pm, Nishanth Menon wrote: > On 18:42-20210322, Aswath Govindraju wrote: >> The following speed modes are now supported in J7200 SoC, >> - HS200 and HS400 modes at 1.8 V card voltage, in MMCSD0 subsystem [1]. >> - UHS-I speed modes in MMCSD1 sub

Re: GTE - The hardware timestamping engine

2021-03-22 Thread Kent Gibson
On Mon, Mar 22, 2021 at 09:09:50PM -0700, Dipen Patel wrote: > > > On 3/22/21 7:59 PM, Kent Gibson wrote: > > On Mon, Mar 22, 2021 at 06:53:10PM -0700, Dipen Patel wrote: > >> > >> > >> On 3/22/21 5:32 PM, Kent Gibson wrote: > >>> On Mon, Mar 22, 2021 at 01:21:46PM -0700, Dipen Patel wrote: >

Re: [PATCH v2 01/18] vfs: add miscattr ops

2021-03-22 Thread Amir Goldstein
> > +``miscattr_get`` > > I wish this wasn't named "misc" because miscellaneous is vague. > > fileattr_get, perhaps? > > (FWIW I'm not /that/ passionate about starting a naming bikeshed, feel > free to ignore.) > Eventual bikeshedding is hard to avoid in this case... I don't feel strongly

[PATCH] fuse: Fix a potential double free in virtio_fs_get_tree

2021-03-22 Thread Lv Yunlong
In virtio_fs_get_tree, fm is allocated by kzalloc() and assigned to fsc->s_fs_info by fsc->s_fs_info=fm statement. If the kzalloc() failed, it will goto err directly, so that fsc->s_fs_info must be non-NULL and fm will be freed. But later fm is freed again when virtio_fs_fill_super() fialed. I

[PATCH] tools: perf: Remove duplicate includes

2021-03-22 Thread Wan Jiabing
sys/stat.h has been included at line 23, so remove the duplicate one at line 27. linux/string.h has been included at line 7, so remove the duplicate one at line 9. time.h has been included at line 14, so remove the duplicate one at line 28. Signed-off-by: Wan Jiabing ---

[rcu:lkmm-dev] BUILD SUCCESS 052aaf10b7a5b2023be4623d2293ae51a6978e27

2021-03-22 Thread kernel test robot
10323 i386 randconfig-a002-20210323 i386 randconfig-a006-20210323 i386 randconfig-a005-20210323 i386 randconfig-a004-20210322 i386 randconfig-a003-20210322 i386 randconfig-a001-20210322 i386 randc

[rcu:lkmm] BUILD SUCCESS 49ab51b01ec6fd837ae3efe2e0cdb41fcf5cf048

2021-03-22 Thread kernel test robot
i386 randconfig-a004-20210322 i386 randconfig-a003-20210322 i386 randconfig-a001-20210322 i386 randconfig-a002-20210322 i386 randconfig-a006-20210322 i386 randconfig-a005-20210322 x86_64

Re: [PATCH] cpufreq: intel_pstate: Clean up frequency computations

2021-03-22 Thread Chen Yu
On Tue, Mar 16, 2021 at 04:52:43PM +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Notice that some computations related to frequency in intel_pstate > can be simplified if (a) intel_pstate_get_hwp_max() updates the > relevant members of struct cpudata by itself and (b) the "turbo

Re: [PATCH] ACPI: CPPC: Add emtpy stubs of functions for CONFIG_ACPI_CPPC_LIB unset

2021-03-22 Thread Chen Yu
On Tue, Mar 16, 2021 at 04:54:03PM +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > For convenience, add empty stubs of library functions defined in > cppc_acpi.c for the CONFIG_ACPI_CPPC_LIB unset case. > > Because one of them needs to return CPUFREQ_ETERNAL, include >

[PATCH] perf tools: Trivial spelling fixes

2021-03-22 Thread Bhaskar Chowdhury
s/succeded/succeeded/ five different places s/revsions/revisions/ Signed-off-by: Bhaskar Chowdhury --- tools/perf/util/header.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index

Re: [PATCH] staging: wimax: Mundane typo fixes

2021-03-22 Thread Bhaskar Chowdhury
On 21:14 Mon 22 Mar 2021, Randy Dunlap wrote: On 3/22/21 6:06 PM, Bhaskar Chowdhury wrote: s/procesing/processing/ s/comunication/communication/ Signed-off-by: Bhaskar Chowdhury drivers/staging/wimax/ is in the process of being deleted. Yes ...I saw the mail day or two back ...skipped my

Re: [PATCH] KVM: VMX: Check the corresponding bits according to the intel sdm

2021-03-22 Thread Haiwei Li
On Tue, Mar 23, 2021 at 11:16 AM Jim Mattson wrote: > > On Mon, Mar 22, 2021 at 7:37 PM wrote: > > > > From: Haiwei Li > > > > According to IA-32 SDM Vol.3D "A.1 BASIC VMX INFORMATION", two inspections > > are missing. > > * Bit 31 is always 0. Earlier versions of this manual specified that the

[PATCH] brcmfmac: A typo fix

2021-03-22 Thread Bhaskar Chowdhury
s/revsion/revision/ Signed-off-by: Bhaskar Chowdhury --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.h b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.h

[PATCH] hwmon: (ftsteutates): Rudimentary typo fixes

2021-03-22 Thread Bhaskar Chowdhury
s/Temprature/Temperature/ s/revsion/revision/ Signed-off-by: Bhaskar Chowdhury --- drivers/hwmon/ftsteutates.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hwmon/ftsteutates.c b/drivers/hwmon/ftsteutates.c index ef88a156efc2..ceffc76a0c51 100644 ---

[PATCH 5/6] i2c: mpc: use device managed APIs

2021-03-22 Thread Chris Packham
Use device managed functions an clean up error handling. Signed-off-by: Chris Packham --- drivers/i2c/busses/i2c-mpc.c | 46 ++-- 1 file changed, 18 insertions(+), 28 deletions(-) diff --git a/drivers/i2c/busses/i2c-mpc.c b/drivers/i2c/busses/i2c-mpc.c index

[PATCH 6/6] i2c: mpc: Interrupt driven transfer

2021-03-22 Thread Chris Packham
The fsl-i2c controller will generate an interrupt after every byte transferred. Make use of this interrupt to drive a state machine which allows the next part of a transfer to happen as soon as the interrupt is received. This is particularly helpful with SMBUS devices like the LM81 which will

[PATCH 3/6] i2c: mpc: Make use of i2c_recover_bus()

2021-03-22 Thread Chris Packham
Move the existing calls of mpc_i2c_fixup() to a recovery function registered via bus_recovery_info. This makes it more obvious that recovery is supported and allows for a future where recovery is triggered by the i2c core. Signed-off-by: Chris Packham --- drivers/i2c/busses/i2c-mpc.c | 18

[PATCH 0/6] i2c: mpc: Refactor to improve responsiveness

2021-03-22 Thread Chris Packham
The "meat" of this series is in the last patch which is the change that actually starts making use of the interrupts to drive a state machine. The dt-bindings patches can probably go in at any time. The rest of the series isn't dependent on them. I've tested it on a T2081 based system with a

[PATCH 2/6] dt-bindings: i2c: convert i2c-mpc to json-schema

2021-03-22 Thread Chris Packham
Convert i2c-mpc to YAML. Signed-off-by: Chris Packham --- .../devicetree/bindings/i2c/i2c-mpc.txt | 62 .../devicetree/bindings/i2c/i2c-mpc.yaml | 99 +++ 2 files changed, 99 insertions(+), 62 deletions(-) delete mode 100644

[PATCH 1/6] dt-bindings: i2c-mpc: Document interrupt property as required

2021-03-22 Thread Chris Packham
All of the in-tree device-trees that use the one of the compatible strings from i2c-mpc.c supply an interrupts property. Make this property mandatory to aid refactoring the driver. Signed-off-by: Chris Packham --- Documentation/devicetree/bindings/i2c/i2c-mpc.txt | 6 +++--- 1 file changed, 3

[PATCH 4/6] i2c: mpc: make interrupt mandatory and remove polling code

2021-03-22 Thread Chris Packham
All the in-tree dts files that use one of the compatible strings from i2c-mpc.c provide an interrupt property. By making this mandatory we can simplify the code. Signed-off-by: Chris Packham --- drivers/i2c/busses/i2c-mpc.c | 51 ++-- 1 file changed, 19

Re: [PATCH v31 2/4] scsi: ufs: L2P map management for HPB read

2021-03-22 Thread Can Guo
On 2021-03-23 12:22, Can Guo wrote: On 2021-03-22 17:11, Bean Huo wrote: On Mon, 2021-03-22 at 15:54 +0900, Daejun Park wrote: + switch (rsp_field->hpb_op) { + case HPB_RSP_REQ_REGION_UPDATE: + if (data_seg_len != DEV_DATA_SEG_LEN) +

[PATCH] octeontx2-af: cn10k: Few mundane typos fixed

2021-03-22 Thread Bhaskar Chowdhury
s/preceeds/precedes/ .two different places s/rsponse/response/ s/cetain/certain/ s/precison/precision/ Signed-off-by: Bhaskar Chowdhury --- drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

RE: [PATCH v2] dt-binding: leds: Document leds-multi-gpio bindings

2021-03-22 Thread Hermes Zhang
> -Original Message- > From: Rob Herring > Sent: 2021年3月23日 1:38 > My bot found errors running 'make dt_binding_check' on your patch: > > yamllint warnings/errors: > > dtschema/dtc warnings/errors: > /builds/robherring/linux-dt- >

Re: [PATCH] drivers: scsi: Remove duplicate include of blkdev.h

2021-03-22 Thread Can Guo
On 2021-03-22 20:28, Wan Jiabing wrote: linux/blkdev.h has been included at line 18, so remove the duplicate include at line 27. Signed-off-by: Wan Jiabing --- drivers/scsi/ufs/ufshcd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c

Re: [PATCH v31 2/4] scsi: ufs: L2P map management for HPB read

2021-03-22 Thread Can Guo
On 2021-03-22 17:11, Bean Huo wrote: On Mon, 2021-03-22 at 15:54 +0900, Daejun Park wrote: + switch (rsp_field->hpb_op) { + case HPB_RSP_REQ_REGION_UPDATE: + if (data_seg_len != DEV_DATA_SEG_LEN) + dev_warn(>sdev_ufs_lu->sdev_dev, +

Re: [PATCH] staging: wimax: Mundane typo fixes

2021-03-22 Thread Randy Dunlap
On 3/22/21 6:06 PM, Bhaskar Chowdhury wrote: > > s/procesing/processing/ > s/comunication/communication/ > > Signed-off-by: Bhaskar Chowdhury drivers/staging/wimax/ is in the process of being deleted. > --- > drivers/staging/wimax/i2400m/driver.c | 4 ++-- > 1 file changed, 2 insertions(+),

[syzbot] possible deadlock in __loop_clr_fd

2021-03-22 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:ba5b053a Add linux-next specific files for 20210318 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=10cfb406d0 kernel config: https://syzkaller.appspot.com/x/.config?x=cd6e556bdf0188e4 dashboard

Re: GTE - The hardware timestamping engine

2021-03-22 Thread Dipen Patel
On 3/22/21 7:59 PM, Kent Gibson wrote: > On Mon, Mar 22, 2021 at 06:53:10PM -0700, Dipen Patel wrote: >> >> >> On 3/22/21 5:32 PM, Kent Gibson wrote: >>> On Mon, Mar 22, 2021 at 01:21:46PM -0700, Dipen Patel wrote: Hi Linus and Kent, > > [snip] > >>> In response to all your comments

Re: [PATCH] coresight: core: Fix typo in coresight-core.c

2021-03-22 Thread liuqi (BA)
On 2021/3/22 22:38, Suzuki K Poulose wrote: On 22/03/2021 13:11, Qi Liu wrote: Fix up one typo: compoment->component. Fixes: 8e264c52e1da  ("coresight: core: Allow the coresight core driver to be built as a module") Signed-off-by: Qi Liu Thanks for the patch. I will queue this. . Hi

[PATCH v2] sched: Warn on long periods of pending need_resched

2021-03-22 Thread Josh Don
From: Paul Turner CPU scheduler marks need_resched flag to signal a schedule() on a particular CPU. But, schedule() may not happen immediately in cases where the current task is executing in the kernel mode (no preemption state) for extended periods of time. This patch adds a warn_on if

[PATCH 4/4] Documentation/admin-guide/module-signing.rst: add openssl command option example for CodeSign EKU

2021-03-22 Thread Lee, Chun-Yi
Add an openssl command option example for generating CodeSign extended key usage in X.509 when CONFIG_CHECK_CODESIGN_EKU is enabled. Signed-off-by: "Lee, Chun-Yi" --- Documentation/admin-guide/module-signing.rst | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH 3/4] modsign: Add codeSigning EKU when generating X.509 key generation config

2021-03-22 Thread Lee, Chun-Yi
Add codeSigning EKU to the X.509 key generation config for the build time autogenerated kernel key. Signed-off-by: "Lee, Chun-Yi" --- certs/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/certs/Makefile b/certs/Makefile index f4c25b67aad9..1ef4d6ca43b7 100644 --- a/certs/Makefile

[PATCH 2/4] PKCS#7: Check codeSigning EKU for kernel module and kexec pe verification

2021-03-22 Thread Lee, Chun-Yi
This patch adds the logic for checking the CodeSigning extended key usage when verifying signature of kernel module or kexec PE binary in PKCS#7. Signed-off-by: "Lee, Chun-Yi" --- certs/system_keyring.c | 2 +- crypto/asymmetric_keys/Kconfig | 9 +

[PATCH 1/4] X.509: Add CodeSigning extended key usage parsing

2021-03-22 Thread Lee, Chun-Yi
This patch adds the logic for parsing the CodeSign extended key usage extension in X.509. The parsing result will be set to the eku flag which is carried by public key. It can be used in the PKCS#7 verification. Signed-off-by: "Lee, Chun-Yi" --- crypto/asymmetric_keys/x509_cert_parser.c | 24

[PATCH v5 0/4] Check codeSigning extended key usage extension

2021-03-22 Thread Lee, Chun-Yi
NIAP PP_OS certification requests that the OS shall validate the CodeSigning extended key usage extension field for integrity verifiction of exectable code: https://www.niap-ccevs.org/MMO/PP/-442-/ FIA_X509_EXT.1.1 This patchset adds the logic for parsing the codeSigning EKU

Re: [PATCH 1/6] sched: migration changes for core scheduling

2021-03-22 Thread Li, Aubrey
On 2021/3/22 20:56, Peter Zijlstra wrote: > On Mon, Mar 22, 2021 at 08:31:09PM +0800, Li, Aubrey wrote: >> Please let me know if I put cookie match check at the right position >> in task_hot(), if so, I'll obtain some performance data of it. >> >> Thanks, >> -Aubrey >> >>

Re: [PATCH V2 0/6] PM / devfreq: a few small fixes and improvements

2021-03-22 Thread Chanwoo Choi
Hi, On 3/23/21 12:25 PM, Dong Aisheng wrote: > Hi Chanwoo, > > On Tue, Mar 23, 2021 at 11:13 AM Dong Aisheng wrote: >> >> A few small fixes and improvements >> >> ChangeLog: >> v1->v2: >> * squash a few patches >> * rebase to devfreq-testing > > I have to rebase to devfreq-testing instead of

Re: [PATCH] coresight: core: Fix typo in coresight-core.c

2021-03-22 Thread liuqi (BA)
On 2021/3/23 0:55, Randy Dunlap wrote: On 3/22/21 7:38 AM, Suzuki K Poulose wrote: On 22/03/2021 13:11, Qi Liu wrote: Fix up one typo: compoment->component. Fixes: 8e264c52e1da  ("coresight: core: Allow the coresight core driver to be built as a module") Signed-off-by: Qi Liu Thanks

[PATCH] usb: Add data checks in usbtmc_disconnect

2021-03-22 Thread Lv Yunlong
In usbtmc_disconnect, data is got from intf with the initial reference. There is no refcount inc operation before usbmc_free_int(data). In usbmc_free_int(data), the data may be freed. But later in usbtmc_disconnect, there is another put function of data. I think it is better to add necessary

Re: [PATCH v6 05/14] dt-bindings: display: bridge: Add i.MX8qm/qxp display pixel link binding

2021-03-22 Thread Liu Ying
Hi Marcel, On Tue, 2021-03-23 at 00:38 +, Marcel Ziswiler wrote: > On Wed, 2021-03-17 at 11:42 +0800, Liu Ying wrote: > > This patch adds bindings for i.MX8qm/qxp display pixel link. > > > > Reviewed-by: Rob Herring > > Signed-off-by: Liu Ying > > --- > > v5->v6: > > * No change. > > > >

[PATCH] tools: testing: inttypes.h is included twice

2021-03-22 Thread Wan Jiabing
inttypes.h has been included at line 19. So we remove the duplicate one at line 23. Signed-off-by: Wan Jiabing --- tools/testing/selftests/powerpc/tm/tm-poison.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/testing/selftests/powerpc/tm/tm-poison.c

[PATCH] tools: testing: pthread.h is included twice

2021-03-22 Thread Wan Jiabing
pthread.h has been included at line 17. So we remove the duplicate one at line 20. Signed-off-by: Wan Jiabing --- tools/testing/selftests/powerpc/tm/tm-vmx-unavail.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/testing/selftests/powerpc/tm/tm-vmx-unavail.c

Re: [PATCH 8/9] arm64: dts: qcom: sc7280: Add AOSS QMP node

2021-03-22 Thread Stephen Boyd
Quoting Sibi Sankar (2021-03-08 21:58:21) > On 2021-02-27 19:26, Sai Prakash Ranjan wrote: > > On 2021-02-27 00:16, Stephen Boyd wrote: > >> Quoting Sai Prakash Ranjan (2021-02-25 23:51:00) > >>> On 2021-02-26 01:11, Stephen Boyd wrote: > >>> > Quoting Sai Prakash Ranjan (2021-02-25 01:30:24) >

Re: [PATCH 6/6] firmware: qcom_scm: Only compile legacy calls on ARM

2021-03-22 Thread Stephen Boyd
Quoting Bjorn Andersson (2021-03-07 09:42:45) > On Sat 06 Mar 00:18 CST 2021, Stephen Boyd wrote: > > > Quoting Elliot Berman (2021-03-05 10:18:09) > > > On 3/3/2021 10:14 PM, Stephen Boyd wrote: > > > > Quoting Elliot Berman (2021-03-03 19:35:08) > > > > > > > +desc.args[0] = flags; > > >

Re: [EXTERNAL]Re: [PATCH 0/5] Remove dead linux-mips.org references

2021-03-22 Thread Kurt Martin
This message was rejected by the spam filter at vger.kernel.org. To ensure that everybody on the original email list gets the reply, I'm resending it as plain text (which I should have figured out long ago). I profusely apologize for the multiple resends. Hi Lukas, I apologize for the

Re: [PATCH] sched: Warn on long periods of pending need_resched

2021-03-22 Thread Josh Don
On Fri, Mar 19, 2021 at 2:02 AM Mel Gorman wrote: > > Default disabling and hidden behind a static branch would be useful > because the majority of users are not going to know what to do about > a need_resched warning and the sysctl is not documented. As Ingo said, > SCHED_DEBUG is enabled by

[PATCH] tools: testing: Remove duplicate include of sched.h

2021-03-22 Thread Wan Jiabing
sched.h has been included at line 33. So we remove the duplicate one at line 36. Signed-off-by: Wan Jiabing --- tools/testing/selftests/powerpc/mm/tlbie_test.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/testing/selftests/powerpc/mm/tlbie_test.c

Re: [PATCH V1 1/1] soc: qcom: smp2p: Add enable_irq_wake to SMP2P IRQ

2021-03-22 Thread Stephen Boyd
Quoting Deepak Kumar Singh (2021-03-18 11:37:04) > SMP2P interrupts are expected to wake the processor from suspend. > Use enable_irq_wake to mark it wakeup capable from suspend. > > Signed-off-by: Chris Lew > Signed-off-by: Deepak Kumar Singh > --- > drivers/soc/qcom/smp2p.c | 1 + > 1 file

Re: [PATCH v6 03/14] dt-bindings: display: bridge: Add i.MX8qm/qxp pixel combiner binding

2021-03-22 Thread Liu Ying
Hi Marcel, On Tue, 2021-03-23 at 00:34 +, Marcel Ziswiler wrote: > On Wed, 2021-03-17 at 11:42 +0800, Liu Ying wrote: > > This patch adds bindings for i.MX8qm/qxp pixel combiner. > > > > Reviewed-by: Rob Herring > > Signed-off-by: Liu Ying > > --- > > v5->v6: > > * No change. > > > >

[PATCH] tools: testing: Remove duplicate include of string.h

2021-03-22 Thread Wan Jiabing
string.h has been included at line 15.So we remove the duplicate one at line 17. Signed-off-by: Wan Jiabing --- tools/testing/selftests/mincore/mincore_selftest.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/testing/selftests/mincore/mincore_selftest.c

[PATCH 4/4] rust: Enable for ppc64le

2021-03-22 Thread Michael Ellerman
All the pieces are in place now for us to enable building rust support on ppc64le. Only works with clang for now. Signed-off-by: Michael Ellerman --- init/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/Kconfig b/init/Kconfig index d73ac9de186d..ddc2fda1a22c

[PATCH 3/4] powerpc/rust: Add target.json for ppc64le

2021-03-22 Thread Michael Ellerman
Based on the x86 and arm64 versions, as well as output from: $ rustc +nightly -Z unstable-options --target=powerpc64le-unknown-linux-gnu --print target-spec-json Notably disables altivec, vsx and hard-float. The very cryptic data-layout: "data-layout": "e-m:e-i64:64-n32:64-S128", Has the

[PATCH 1/4] rust: Export symbols in initialized data section

2021-03-22 Thread Michael Ellerman
On powerpc some symbols end up in the initialized data section, which means they aren't detected by the logic in cmd_export, leading to errors such as: ERROR: modpost: "_RNvNtCsbDqzXfLQacH_6kernel12module_param15PARAM_OPS_USIZE" [drivers/char/rust_example_4.ko] undefined! nm represents the

[PATCH 2/4] rust: Add powerpc64 as a 64-bit target_arch in c_types.rs

2021-03-22 Thread Michael Ellerman
powerpc kernel code uses int-ll64.h. Signed-off-by: Michael Ellerman --- rust/kernel/c_types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/kernel/c_types.rs b/rust/kernel/c_types.rs index 423ac1108ddb..988fd84b0d66 100644 --- a/rust/kernel/c_types.rs +++

[PATCH 0/4] Rust for Linux for ppc64le

2021-03-22 Thread Michael Ellerman
Hi all, Here's a first attempt at getting the kernel Rust support building on powerpc. It's powerpc64le only for now, as that's what I can easily test given the distros I have installed. Though powerpc and powerpc64 are also Tier 2 platforms so in theory should work. Supporting those would

Re: [PATCH V2 0/6] PM / devfreq: a few small fixes and improvements

2021-03-22 Thread Dong Aisheng
Hi Chanwoo, On Tue, Mar 23, 2021 at 11:13 AM Dong Aisheng wrote: > > A few small fixes and improvements > > ChangeLog: > v1->v2: > * squash a few patches > * rebase to devfreq-testing I have to rebase to devfreq-testing instead of devfreq-next because below two patches only exist in

Re: [PATCH] drm/msm/dp: Fixed couple of typos

2021-03-22 Thread Stephen Boyd
Quoting Bhaskar Chowdhury (2021-03-17 23:26:50) > s/modueles/modules/ two different places > > Signed-off-by: Bhaskar Chowdhury > --- Reviewed-by: Stephen Boyd

[PATCH] mm: process_vm_access: Remove duplicate include of compat.h

2021-03-22 Thread Wan Jiabing
linux/compat.h has been included at line 8.So we remove the duplicate one at line 12. Signed-off-by: Wan Jiabing --- mm/process_vm_access.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/process_vm_access.c b/mm/process_vm_access.c index f5fee9cf90f8..4bcc11958089 100644 ---

Re: [PATCH bpf-next 2/5] bpf: Add a bpf_snprintf helper

2021-03-22 Thread Alexei Starovoitov
On Wed, Mar 10, 2021 at 11:02:08PM +0100, Florent Revest wrote: > > +struct bpf_snprintf_buf { > + char buf[MAX_SNPRINTF_MEMCPY][MAX_SNPRINTF_STR_LEN]; > +}; > +static DEFINE_PER_CPU(struct bpf_snprintf_buf, bpf_snprintf_buf); > +static DEFINE_PER_CPU(int, bpf_snprintf_buf_used); > + >

[PATCH] include: linux: mtd: Remove duplicate include of nand.h

2021-03-22 Thread Wan Jiabing
linux/mtd/nand.h has been included at line 17. So we remove the duplicate one at line 21. Signed-off-by: Wan Jiabing --- include/linux/mtd/rawnand.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/mtd/rawnand.h b/include/linux/mtd/rawnand.h index 6b3240e44310..93e8f72beba6

Re: [PATCH v3 3/4] drm/bridge: ti-sn65dsi86: Read EDID blob over DDC

2021-03-22 Thread Stephen Boyd
Quoting Laurent Pinchart (2021-03-17 17:20:43) > Hi Stephen, > > Reviving a bit of an old thread, for a question. > > On Mon, Nov 02, 2020 at 10:11:43AM -0800, Stephen Boyd wrote: > > @@ -265,6 +267,23 @@ connector_to_ti_sn_bridge(struct drm_connector > > *connector) > > static int

Re: [PATCH] KVM: VMX: Check the corresponding bits according to the intel sdm

2021-03-22 Thread Jim Mattson
On Mon, Mar 22, 2021 at 7:37 PM wrote: > > From: Haiwei Li > > According to IA-32 SDM Vol.3D "A.1 BASIC VMX INFORMATION", two inspections > are missing. > * Bit 31 is always 0. Earlier versions of this manual specified that the > VMCS revision identifier was a 32-bit field in bits 31:0 of this

RE: [PATCH 1/5] cifsd: add server handler and tranport layers

2021-03-22 Thread Namjae Jeon
> On Tue, Mar 23, 2021 at 12:01:22PM +0900, Namjae Jeon wrote: > > > On Mon, Mar 22, 2021 at 02:13:40PM +0900, Namjae Jeon wrote: > > > > +#define RESPONSE_BUF(w)((void *)(w)->response_buf) > > > > +#define REQUEST_BUF(w) ((void *)(w)->request_buf) > > > > > > Why do you do

[PATCH] thunderbolt: Fix a double put in tb_cfg_read_raw

2021-03-22 Thread Lv Yunlong
In tb_cfg_read_raw, req is allocated by tb_cfg_request_alloc() with an initial reference. Before calling tb_cfg_request_sync(), there is no refcount inc operation. tb_cfg_request_sync() calls tb_cfg_request(..,req,..) and if the callee failed, the initial reference of req is dropped and req is

Re: [PATCH] arm64: dts: qcom: sc7180: Fix sc7180-qmp-usb3-dp-phy reg sizes

2021-03-22 Thread Stephen Boyd
Quoting Douglas Anderson (2021-03-15 10:38:54) > As per Dmitry Baryshkov [1]: > a) The 2nd "reg" should be 0x3c because "Offset 0x38 is >USB3_DP_COM_REVISION_ID3 (not used by the current driver though)." I see 0x34 for the offset here instead of 0x38 but I don't think it really matters either

[PATCH] include: linux: Remove duplicate include of pgtable.h

2021-03-22 Thread Wan Jiabing
linux/pgtable.h has been included at line 11 with annotation. So we remove the duplicate one at line 8. Signed-off-by: Wan Jiabing --- include/linux/crash_dump.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/crash_dump.h b/include/linux/crash_dump.h index

Re: [PATCH V3] exit: trigger panic when global init has exited

2021-03-22 Thread qianli zhao
Hi,Oleg > No, there is at least one alive init thread. If they all have exited, we have > the thread which calls panic() above. By current logic, setting PF_EXITING(exit_signals()) is before the panic(),find_alive_thread() determines the PF_EXITING of all child threads, the panic thread's

Re: [PATCH 1/5] cifsd: add server handler and tranport layers

2021-03-22 Thread Matthew Wilcox
On Tue, Mar 23, 2021 at 12:01:22PM +0900, Namjae Jeon wrote: > > On Mon, Mar 22, 2021 at 02:13:40PM +0900, Namjae Jeon wrote: > > > +#define RESPONSE_BUF(w) ((void *)(w)->response_buf) > > > +#define REQUEST_BUF(w) ((void *)(w)->request_buf) > > > > Why do you do this

[PATCH V2 6/6] PM / devfreq: imx8m-ddrc: remove imx8m_ddrc_get_dev_status

2021-03-22 Thread Dong Aisheng
Current driver actually does not support simple ondemand governor as it's unable to provide device load information. So removing the unnecessary callback to avoid confusing. Right now the driver is using userspace governor by default. polling_ms was also dropped as it's not needed for

[PATCH V2 5/6] PM / devfreq: governor: optimize simpleondemand get_target_freq

2021-03-22 Thread Dong Aisheng
The device profile up_threshold/down_differential only needs to be initialized once when calling devm_devfreq_add_device. It's unnecessary to put the data check logic in the hot path (.get_target_freq()) where it will be called all the time during polling. Instead, we only check and initialize it

[PATCH V2 1/6] PM / devfreq: fix build error when DEVFREQ_GOV_PASSIVE enabled

2021-03-22 Thread Dong Aisheng
drivers/devfreq/devfreq.c: In function ‘devfreq_transitions_show’: drivers/devfreq/devfreq.c:2188:25: error: ‘struct devfreq’ has no member named ‘governor_name’; did you mean ‘governor’? 2188 | if (!strncmp(devfreq->governor_name, | ^ |

[PATCH V2 3/6] PM / devfreq: Remove the invalid description for get_target_freq

2021-03-22 Thread Dong Aisheng
First of all, no_central_polling was removed since commit 7e6fdd4bad03 ("PM / devfreq: Core updates to support devices which can idle") Secondly, get_target_freq() is not only called only with update_devfreq() notified by OPP now, but also min/max freq qos notifier. So remove this invalid

[PATCH V2 0/6] PM / devfreq: a few small fixes and improvements

2021-03-22 Thread Dong Aisheng
A few small fixes and improvements ChangeLog: v1->v2: * squash a few patches * rebase to devfreq-testing * drop two patches which are already in devfreq-next Dong Aisheng (6): PM / devfreq: fix build error when DEVFREQ_GOV_PASSIVE enabled PM / devfreq: Use more accurate returned new_freq

[PATCH V2 2/6] PM / devfreq: Use more accurate returned new_freq as resume_freq

2021-03-22 Thread Dong Aisheng
Use the more accurate returned new_freq as resume_freq. It's the same as how devfreq->previous_freq was updated. Fixes: 83f8ca45afbf0 ("PM / devfreq: add support for suspend/resume of a devfreq device") Signed-off-by: Dong Aisheng --- drivers/devfreq/devfreq.c | 2 +- 1 file changed, 1

[PATCH V2 4/6] PM / devfreq: bail out early if no freq changes in devfreq_set_target

2021-03-22 Thread Dong Aisheng
It's unnecessary to set the same freq again and run notifier calls. Signed-off-by: Dong Aisheng --- drivers/devfreq/devfreq.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c index b537fd9602cd..cacda7d1f858

[PATCH] clk: imx: reference preceded by free

2021-03-22 Thread Jian Dong
From: Jian Dong when register failed, clk will be freed, it will generate dangling pointer problem in later reference. it should return directly. Signed-off-by: Jian Dong --- drivers/clk/imx/clk-lpcg-scu.c | 1 + drivers/clk/imx/clk-scu.c | 1 + 2 files changed, 2 insertions(+) diff

Re: [PATCH RFC v2 8/8] selftests/perf: Add kselftest for remove_on_exec

2021-03-22 Thread Ian Rogers
On Mon, Mar 22, 2021 at 6:24 AM Marco Elver wrote: > > On Wed, Mar 10, 2021 at 11:41AM +0100, Marco Elver wrote: > > Add kselftest to test that remove_on_exec removes inherited events from > > child tasks. > > > > Signed-off-by: Marco Elver > > To make compatible with more recent libc, we'll

Re: [PATCH v6] selftests/x86: Use getauxval() to simplify the code in sgx

2021-03-22 Thread Tianjia Zhang
Hi, On 3/15/21 9:02 PM, Jarkko Sakkinen wrote: On Sun, Mar 14, 2021 at 07:16:21PM +0800, Tianjia Zhang wrote: Simplify the sgx code implemntation by using library function getauxval() instead of a custom function to get the base address of vDSO. Signed-off-by: Tianjia Zhang Reviewed-by:

[PATCH] mm/page_alloc: Duplicate include linux/vmalloc.h

2021-03-22 Thread zhouchuangao
linux/vmalloc.h is repeatedly in the file page_alloc.c Signed-off-by: zhouchuangao --- mm/page_alloc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index c53fe4f..5adf9c1 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -72,8 +72,6 @@ #include

[PATCH] arch: powerpc: Remove duplicate include of clock.h

2021-03-22 Thread Wan Jiabing
linux/sched/clock.h has been included at line 33. So we remove the duplicate one at line 56. For better understanding, we also move sched/cputime.h under the sched including segment. Signed-off-by: Wan Jiabing --- arch/powerpc/kernel/time.c | 3 +-- 1 file changed, 1 insertion(+), 2

  1   2   3   4   5   6   7   8   9   10   >