Re: [PATCH v2 3/4] doc/vm: fix typo in the hugetlb admin documentation

2020-07-22 Thread Baoquan He
On 07/23/20 at 10:47am, Anshuman Khandual wrote: > > > On 07/23/2020 08:52 AM, Baoquan He wrote: > > Change 'pecify' to 'Specify'. > > > > Signed-off-by: Baoquan He > > Reviewed-by: Mike Kravetz > > Reviewed-by: David Hildenbrand > > --- > > Documentation/admin-guide/mm/hugetlbpage.rst | 2

Re: [PATCH v4 bpf-next 2/4] bpf: fail PERF_EVENT_IOC_SET_BPF when bpf_get_[stack|stackid] cannot work

2020-07-22 Thread Alexei Starovoitov
On Wed, Jul 22, 2020 at 11:42:08AM -0700, Song Liu wrote: > diff --git a/kernel/events/core.c b/kernel/events/core.c > index 856d98c36f562..f77d009fcce95 100644 > --- a/kernel/events/core.c > +++ b/kernel/events/core.c > @@ -9544,6 +9544,24 @@ static int perf_event_set_bpf_handler(struct >

Re: linux-next: build failure after merge of the scsi-mkp tree

2020-07-22 Thread Stephen Rothwell
Hi all, On Tue, 21 Jul 2020 16:30:45 +1000 Stephen Rothwell wrote: > > After merging the scsi-mkp tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > ERROR: modpost: "exynos_ufs_dump_info" [drivers/scsi/ufs/ufs-exynos.ko] > undefined! > ERROR: modpost:

Re: [PATCH 2/4] i2c: mediatek: Support DMA mask range over 33-bits

2020-07-22 Thread Qii Wang
On Wed, 2020-07-22 at 17:38 +0200, Matthias Brugger wrote: > > On 22/07/2020 14:31, Qii Wang wrote: > > Replace 'support_33bits with 'dma_max_support' for DMA mask > > operation, and replace 'mtk_i2c_set_4g_mode' with 'upper_32_bits'. > > Please explain more in detail what you are doing and how

[PATCH] ARM: dts: imx7d-sdb: Add notes for audio sound card

2020-07-22 Thread Shengjiu Wang
Configure the SAI device node, configure audio clock and pinctrl. Enable the audio sound card, which use the SAI1 and wm8960, and enable headphone detection. Signed-off-by: Shengjiu Wang --- arch/arm/boot/dts/imx7d-sdb.dts | 81 + 1 file changed, 81

Re: [PATCH 0/4] ASoC: fsl_asrc: allow selecting arbitrary clocks

2020-07-22 Thread Nicolin Chen
On Fri, Jul 17, 2020 at 01:16:42PM +0200, Arnaud Ferraris wrote: > Hi Nic, > > Le 02/07/2020 à 20:42, Nicolin Chen a écrit : > > Hi Arnaud, > > > > On Thu, Jul 02, 2020 at 04:22:31PM +0200, Arnaud Ferraris wrote: > >> The current ASRC driver hardcodes the input and output clocks used for > >>

RE: [RESEND PATCH v5] mm/zswap: move to use crypto_acomp API for hardware acceleration

2020-07-22 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Song Bao Hua (Barry Song) > Sent: Friday, July 17, 2020 1:51 AM > To: a...@linux-foundation.org; herb...@gondor.apana.org.au; > da...@davemloft.net > Cc: linux-cry...@vger.kernel.org; linux...@kvack.org; > linux-kernel@vger.kernel.org; Linuxarm ; Song Bao >

RE: [PATCH devicetree 3/4] powerpc: dts: t1040rdb: put SGMII PHY under label

2020-07-22 Thread Madalin Bucur (OSS)
> -Original Message- > From: Vladimir Oltean > Sent: Wednesday, July 22, 2020 8:24 PM > To: robh...@kernel.org; shawn...@kernel.org; m...@ellerman.id.au; > devicet...@vger.kernel.org > Cc: b...@kernel.crashing.org; pau...@samba.org; linuxppc- > d...@lists.ozlabs.org;

Re: [RFC PATCH 11/16] sched: migration changes for core scheduling(Internet mail)

2020-07-22 Thread Li, Aubrey
On 2020/7/23 12:23, benbjiang(蒋彪) wrote: > Hi, >> On Jul 23, 2020, at 11:35 AM, Li, Aubrey wrote: >> >> On 2020/7/23 10:42, benbjiang(蒋彪) wrote: >>> Hi, >>> On Jul 23, 2020, at 9:57 AM, Li, Aubrey wrote: On 2020/7/22 22:32, benbjiang(蒋彪) wrote: > Hi, > >> On Jul 22,

Re: [PATCH v5 1/4] riscv: Move kernel mapping to vmalloc zone

2020-07-22 Thread Alex Ghiti
Le 7/21/20 à 7:36 PM, Palmer Dabbelt a écrit : On Tue, 21 Jul 2020 16:11:02 PDT (-0700), b...@kernel.crashing.org wrote: On Tue, 2020-07-21 at 14:36 -0400, Alex Ghiti wrote: > > I guess I don't understand why this is necessary at all. > > Specifically: why > > can't we just relocate the

Re: [PATCH 1/2] ASoC: fsl-asoc-card: Support configuring dai fmt from DT

2020-07-22 Thread Nicolin Chen
On Tue, Jul 21, 2020 at 11:41:49AM +0800, Shengjiu Wang wrote: > Support same propeties as simple card for configuring fmt > from DT. > In order to make this change compatible with old DT, these > properties are optional. > > Signed-off-by: Shengjiu Wang For both changes: Acked-by: Nicolin Chen

Re: [PATCH] mailbox: pcc: Put the PCCT table for error path

2020-07-22 Thread Markus Elfring
… > In acpi_pcc_probe(), the PCCT table entries will be used as private > data for communication chan at runtime, but the table should be put > for error path. * An imperative wording can be preferred for the change description, can't it? * Will the tag “Fixes” become helpful for the commit

Re: [PATCH v5 1/4] riscv: Move kernel mapping to vmalloc zone

2020-07-22 Thread Alex Ghiti
Hi Palmer, Le 7/21/20 à 3:05 PM, Palmer Dabbelt a écrit : On Tue, 21 Jul 2020 11:36:10 PDT (-0700), a...@ghiti.fr wrote: Let's try to make progress here: I add linux-mm in CC to get feedback on this patch as it blocks sv48 support too. Sorry for being slow here.  I haven't replied because I

Re: [PATCH] ASoC: fsl_esai: add IRQF_SHARED for devm_request_irq

2020-07-22 Thread Nicolin Chen
On Thu, Jul 23, 2020 at 12:00:08PM +0800, Shengjiu Wang wrote: > ESAI interfaces may share same interrupt line with EDMA on > some platforms (e.g. i.MX8QXP, i.MX8QM). > Add IRQF_SHARED flag to allow sharing the irq among several > devices > > Signed-off-by: Shengjiu Wang > Signed-off-by: Viorel

Re: 答复: [PATCH] USB:Fix kernel NULL pointer when unbind UHCI form vfio-pci

2020-07-22 Thread Greg KH
On Thu, Jul 23, 2020 at 02:59:55AM +, Weitao Wang(BJ-RD) wrote: > CONFIDENTIAL NOTE: > This email contains confidential or legally privileged information and is for > the sole use of its intended recipient. Any unauthorized review, use, copying > or forwarding of this email or the content of

Re: [PATCH v5 1/4] riscv: Move kernel mapping to vmalloc zone

2020-07-22 Thread Alex Ghiti
Hi Benjamin, Le 7/21/20 à 7:11 PM, Benjamin Herrenschmidt a écrit : On Tue, 2020-07-21 at 14:36 -0400, Alex Ghiti wrote: I guess I don't understand why this is necessary at all. Specifically: why can't we just relocate the kernel within the linear map? That would let the bootloader put the

Re: [PATCH] drm/amdkfd: Put ACPI table after using it

2020-07-22 Thread Markus Elfring
… > and in kfd_create_vcrat_image_cpu(), the acpi_table is only used to > get the OEM info, so those table mappings need to be release after … 1. Please avoid a typo for this change description. 2. An imperative wording can be preferred here, can't it? 3. Will the tag “Fixes” become helpful for

Re: [PATCH bpf-next v5 5/7] bpf: Implement bpf_local_storage for inodes

2020-07-22 Thread Alexei Starovoitov
On Wed, Jul 22, 2020 at 5:22 PM kernel test robot wrote: > > All warnings (new ones prefixed by >>): > >kernel/bpf/bpf_inode_storage.c: In function 'unlink_inode_storage': > >> kernel/bpf/bpf_inode_storage.c:34:32: warning: variable 'smap' set but not > >> used [-Wunused-but-set-variable]

Re: [PATCH v2 3/4] doc/vm: fix typo in the hugetlb admin documentation

2020-07-22 Thread Anshuman Khandual
On 07/23/2020 08:52 AM, Baoquan He wrote: > Change 'pecify' to 'Specify'. > > Signed-off-by: Baoquan He > Reviewed-by: Mike Kravetz > Reviewed-by: David Hildenbrand > --- > Documentation/admin-guide/mm/hugetlbpage.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

[PATCH] Update the obsolete comments of 'register_blkdev' func

2020-07-22 Thread richard clark
>From the code of 'register_blkdev(...)', the major number range should be in [1..BLKDEV_MAJOR_HASH_SIZE-1] while not [1..BLKDEV_MAJOR_MAX] in case of calling 'register_blkdev(...) with @major = 0, so correct the wrong info of the function's comments Signed-off-by: Richard Clark Cc: Jens

Re: [PATCH] dma-pool: Do not allocate pool memory from CMA

2020-07-22 Thread Amit Pundir
Hi Nicolas, Sorry I got stuck on other things yesterday. On Tue, 21 Jul 2020 at 21:57, Nicolas Saenz Julienne wrote: > > On Tue, 2020-07-21 at 20:52 +0530, Amit Pundir wrote: > > [...] > > > > > > Can you try booting *without* my patch and this in the kernel > > > > > command > > > > > line:

Re: [PATCH] soc: qcom-geni-se: Don't use relaxed writes when writing commands

2020-07-22 Thread Akash Asthana
On 7/23/2020 3:31 AM, Douglas Anderson wrote: Writing the command is the final step in kicking off a transfer. Let's use writel() to ensure that any other memory accesses are done before the command kicks off. It's expected that this is mostly relevant if we're in DMA mode but since it

Re: [RFC PATCH] makefile: add debug option to enable function aligned on 32 bytes

2020-07-22 Thread Feng Tang
Hi Andrew, Thanks for the review. On Wed, Jul 22, 2020 at 08:39:19PM -0700, Andrew Morton wrote: > On Thu, 23 Jul 2020 11:30:01 +0800 Feng Tang wrote: > > > Recently 0day reported many strange performance changes (regression > > or improvement), in which there was no obvious relation between >

Re: [PATCH v2 2/4] mm/hugetlb.c: Remove the unnecessary non_swap_entry()

2020-07-22 Thread Anshuman Khandual
On 07/23/2020 08:52 AM, Baoquan He wrote: > The checking is_migration_entry() and is_hwpoison_entry() are stricter > than non_swap_entry(), means they have covered the conditional check > which non_swap_entry() is doing. They are no stricter as such but implicitly contains non_swap_entry() in

Re: [PATCH v2 2/5] vfio/pci: Add device blocklist

2020-07-22 Thread Alex Williamson
On Tue, 14 Jul 2020 07:36:07 +0100 Giovanni Cabiddu wrote: > Add blocklist of devices that by default are not probed by vfio-pci. > Devices in this list may be susceptible to untrusted application, even > if the IOMMU is enabled. To be accessed via vfio-pci, the user has to > explicitly disable

Re: [PATCH] arm64: vdso32: Fix '--prefix=' value for newer versions of clang

2020-07-22 Thread Sedat Dilek
On Thu, Jul 23, 2020 at 6:51 AM Nathan Chancellor wrote: > > On Thu, Jul 23, 2020 at 06:45:07AM +0200, Sedat Dilek wrote: > > On Thu, Jul 23, 2020 at 6:15 AM Nathan Chancellor > > wrote: > > > > > > Newer versions of clang only look for $(COMPAT_GCC_TOOLCHAIN_DIR)as [1], > > > rather than

Re: [PATCH v4 2/2] phy: cadence-torrent: Use kernel PHY API to set PHY attributes

2020-07-22 Thread Kishon Vijay Abraham I
On 7/17/2020 12:20 PM, Swapnil Jakhade wrote: > Use generic PHY framework function phy_set_attrs() to set number > of lanes and maximum link rate supported by PHY. > > Signed-off-by: Swapnil Jakhade Acked-by: Kishon Vijay Abraham I > --- > drivers/phy/cadence/phy-cadence-torrent.c | 7

[PATCH V3] Softirq:avoid large sched delay from the pending softirqs

2020-07-22 Thread qianjun . kernel
From: jun qian When get the pending softirqs, it need to process all the pending softirqs in the while loop. If the processing time of each pending softirq is need more than 2 msec in this loop, or one of the softirq will running a long time, according to the original code logic, it will process

Re: [PATCH v4 1/2] phy: Add new PHY attribute max_link_rate and APIs to get/set PHY attributes

2020-07-22 Thread Kishon Vijay Abraham I
On 7/17/2020 12:20 PM, Swapnil Jakhade wrote: > Add new PHY attribute max_link_rate to struct phy_attrs. > Add a pair of PHY APIs to get/set all the PHY attributes. > Use phy_get_attrs() to get attribute values and phy_set_attrs() > to set attribute values. > > Signed-off-by: Yuti Amonkar >

Re: [PATCH] arm64: vdso32: Fix '--prefix=' value for newer versions of clang

2020-07-22 Thread Nathan Chancellor
On Thu, Jul 23, 2020 at 06:45:07AM +0200, Sedat Dilek wrote: > On Thu, Jul 23, 2020 at 6:15 AM Nathan Chancellor > wrote: > > > > Newer versions of clang only look for $(COMPAT_GCC_TOOLCHAIN_DIR)as [1], > > rather than $(COMPAT_GCC_TOOLCHAIN_DIR)$(CROSS_COMPILE_COMPAT)as, > > resulting in the

Re: [RFC PATCH v2] Softirq:avoid large sched delay from the pending softirqs

2020-07-22 Thread jun qian
On Thu, Jul 23, 2020 at 2:05 AM Thomas Gleixner wrote: > > qianjun.ker...@gmail.com writes: > > + > > + end = ktime_get(); > > + delta = ktime_to_us(end - start); > > What's the point of this conversion? That's a division for no value > because you can simply define the

Re: [RFC PATCH v2 2/6] ALSA: compress: add new ioctl for setting codec parameters

2020-07-22 Thread Vinod Koul
On 22-07-20, 10:36, Pierre-Louis Bossart wrote: > > > > >    * and the stream properties > > > > + * @set_codec_params: Sets the compressed stream codec > > > > parameters, Optional > > > > + * This can be called in during gapless next track codec change > > > > only to set > > > > + * codec

Re: [PATCH v2 1/4] mm/hugetlb.c: make is_hugetlb_entry_hwpoisoned return bool

2020-07-22 Thread Anshuman Khandual
On 07/23/2020 08:52 AM, Baoquan He wrote: > Just like its neighbour is_hugetlb_entry_migration() has done. > > Signed-off-by: Baoquan He > Reviewed-by: Mike Kravetz > Reviewed-by: David Hildenbrand > --- > mm/hugetlb.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > >

Re: [PATCH 5.7 233/244] RISC-V: Acquire mmap lock before invoking walk_page_range

2020-07-22 Thread Stafford Horne
On Wed, Jul 22, 2020 at 03:11:35PM +, Atish Patra wrote: > On Wed, 2020-07-22 at 14:48 +0200, Greg KH wrote: > > On Tue, Jul 21, 2020 at 03:50:35PM -0700, Palmer Dabbelt wrote: > > > On Mon, 20 Jul 2020 12:14:03 PDT (-0700), Greg KH wrote: > > > > On Mon, Jul 20, 2020 at 06:50:10PM +,

Re: [PATCH] arm64: vdso32: Fix '--prefix=' value for newer versions of clang

2020-07-22 Thread Sedat Dilek
On Thu, Jul 23, 2020 at 6:15 AM Nathan Chancellor wrote: > > Newer versions of clang only look for $(COMPAT_GCC_TOOLCHAIN_DIR)as [1], > rather than $(COMPAT_GCC_TOOLCHAIN_DIR)$(CROSS_COMPILE_COMPAT)as, > resulting in the following build error: > > $ make -skj"$(nproc)" ARCH=arm64

Re: [RFC PATCH 11/16] sched: migration changes for core scheduling(Internet mail)

2020-07-22 Thread 蒋彪
Hi, > On Jul 23, 2020, at 11:35 AM, Li, Aubrey wrote: > > On 2020/7/23 10:42, benbjiang(蒋彪) wrote: >> Hi, >> >>> On Jul 23, 2020, at 9:57 AM, Li, Aubrey wrote: >>> >>> On 2020/7/22 22:32, benbjiang(蒋彪) wrote: Hi, > On Jul 22, 2020, at 8:13 PM, Li, Aubrey wrote: > > On

Re: [PATCH] USB:Fix kernel NULL pointer when unbind UHCI form vfio-pci

2020-07-22 Thread Alex Williamson
On Thu, 23 Jul 2020 02:59:55 + "Weitao Wang(BJ-RD)" wrote: > On , Jul 22, 2020 at 02:44:14PM +0200, Alan wrote: > > On Wed, Jul 22, 2020 at 02:44:14PM +0200, Greg KH wrote: > > > On Wed, Jul 22, 2020 at 07:57:48PM +0800, WeitaoWangoc wrote: > > > > This bug is found in Zhaoxin platform,

Re: [PATCH v4 2/2] Add PWM fan controller driver for LGM SoC

2020-07-22 Thread Tanwar, Rahul
Hi Uwe, Thanks for the feedback. On 14/7/2020 3:10 am, Uwe Kleine-König wrote: > Hello, > > On Tue, Jun 30, 2020 at 03:55:32PM +0800, Rahul Tanwar wrote: >> Intel Lightning Mountain(LGM) SoC contains a PWM fan controller. >> This PWM controller does not have any other consumer, it is a >>

[PATCH] arm64: vdso32: Fix '--prefix=' value for newer versions of clang

2020-07-22 Thread Nathan Chancellor
Newer versions of clang only look for $(COMPAT_GCC_TOOLCHAIN_DIR)as [1], rather than $(COMPAT_GCC_TOOLCHAIN_DIR)$(CROSS_COMPILE_COMPAT)as, resulting in the following build error: $ make -skj"$(nproc)" ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- \ CROSS_COMPILE_COMPAT=arm-linux-gnueabi- LLVM=1

RE: [EXT] Re: [PATCH v3 2/2] net: dsa: ocelot: Add support for QinQ Operation

2020-07-22 Thread Hongbo Wang
> Instead of writing a long email, let me just say this. > I ran your commands on 2 random network cards (not ocelot/felix ports). > They don't produce the same results as you. In fact, no frame with VLAN > 111 C-TAG is forwarded (or received) at all by the bridge, not to mention that > no VLAN

[PATCH] ASoC: fsl_esai: add IRQF_SHARED for devm_request_irq

2020-07-22 Thread Shengjiu Wang
ESAI interfaces may share same interrupt line with EDMA on some platforms (e.g. i.MX8QXP, i.MX8QM). Add IRQF_SHARED flag to allow sharing the irq among several devices Signed-off-by: Shengjiu Wang Signed-off-by: Viorel Suman --- sound/soc/fsl/fsl_esai.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH 0/4] net: dsa: mv88e6xxx: port mtu support

2020-07-22 Thread Chris Packham
This series connects up the mv88e6xxx switches to the dsa infrastructure for configuring the port MTU. The first patch is also a bug fix which might be a candiatate for stable. Chris Packham (4): net: dsa: mv88e6xxx: MV88E6097 does not support jumbo configuration net: dsa: mv88e6xxx: Support

[PATCH 4/4] net: dsa: mv88e6xxx: Use chip-wide max frame size for MTU

2020-07-22 Thread Chris Packham
Some of the chips in the mv88e6xxx family don't support jumbo configuration per port. But they do have a chip-wide max frame size that can be used. Use this to approximate the behaviour of configuring a port based MTU. Signed-off-by: Chris Packham --- The only hardware I have access to uses a

[PATCH 3/4] net: dsa: mv88e6xxx: Implement .port_change_mtu/.port_max_mtu

2020-07-22 Thread Chris Packham
Add implementations for the mv88e6xxx switches to connect with the generic dsa operations for configuring the port MTU. Signed-off-by: Chris Packham --- drivers/net/dsa/mv88e6xxx/chip.c | 26 ++ 1 file changed, 26 insertions(+) diff --git

[PATCH 2/4] net: dsa: mv88e6xxx: Support jumbo configuration on 6190/6190X

2020-07-22 Thread Chris Packham
The MV88E6190 and MV88E6190X both support per port jumbo configuration just like the other GE switches. Install the appropriate ops. Signed-off-by: Chris Packham --- I'm including this change in my series for completeness. Looking at the datasheets I think this is an unintentional omission but

[PATCH 1/4] net: dsa: mv88e6xxx: MV88E6097 does not support jumbo configuration

2020-07-22 Thread Chris Packham
The MV88E6097 chip does not support configuring jumbo frames. Prior to commit 5f430d65 only the 6352, 6351, 6165 and 6320 chips configured jumbo mode. The refactor accidentally added the function for the 6097. Remove the erroneous function pointer assignment. Fixes: 5f430d65 ("net: dsa:

Re: [PATCH] USB:Fix kernel NULL pointer when unbind UHCI form vfio-pci

2020-07-22 Thread Alex Williamson
On Wed, 22 Jul 2020 19:57:48 +0800 WeitaoWangoc wrote: > This bug is found in Zhaoxin platform, but it's a commom code bug. > Fail sequence: > step1: Unbind UHCI controller from native driver; > step2: Bind UHCI controller to vfio-pci, which will put UHCI controller in > one vfio >

[PATCH RESEND 0/3] Build ORC fast lookup table in scripts/sorttable tool

2020-07-22 Thread Huaixin Chang
Move building of fast lookup table from boot to sorttable tool. This saves us 6380us boot time on Intel(R) Xeon(R) CPU E5-2682 v4 @ 2.50GHz with cores. It adds a little more than 7ms to boot time when testing on the same CPU. Kernel initialization unwind_init() cannot be removed because

[PATCH 2/3] scripts/sorttable: Build orc fast lookup table via sorttable tool

2020-07-22 Thread Huaixin Chang
Since orc tables are already sorted by sorttable tool, let us move building of fast lookup table into sorttable tool too. This saves us 6380us from boot time under Intel(R) Xeon(R) CPU E5-2682 v4 @ 2.50GHz with 64 cores. Signed-off-by: Huaixin Chang Signed-off-by: Shile Zhang ---

[PATCH 1/3] scripts/sorttable: Change section type of orc_lookup to SHT_PROGBITS

2020-07-22 Thread Huaixin Chang
In order to edit orc_lookup table via sorttable, type of section orc_lookup needs to be SHT_PROGBITS instead of SHT_NOBITS. Linker script doesn't seem to allow manual specification of the section type, so just write a byte into the section instead. Signed-off-by: Josh Poimboeuf Signed-off-by:

[PATCH 3/3] x86/unwind/orc: Simplify unwind_init() for x86 boot

2020-07-22 Thread Huaixin Chang
The orc fast lookup table is built by scripts/sorttable tool. All that is left is setting lookup_num_blocks. Signed-off-by: Huaixin Chang Signed-off-by: Shile Zhang --- arch/x86/kernel/unwind_orc.c | 41 ++--- 1 file changed, 2 insertions(+), 39 deletions(-)

[PATCH v2 4/4] soc: mediatek: pwrap: add pwrap driver for MT6873/8192 SoCs

2020-07-22 Thread Hsin-Hsiung Wang
MT6873/8192 are highly integrated SoCs and use PMIC_MT6359 for power management. This patch adds pwrap master driver to access PMIC_MT6359. Signed-off-by: Hsin-Hsiung Wang --- drivers/soc/mediatek/mtk-pmic-wrap.c | 29 + 1 file changed, 29 insertions(+) diff --git

[PATCH v2 2/4] soc: mediatek: pwrap: add arbiter capability

2020-07-22 Thread Hsin-Hsiung Wang
Add arbiter capability for pwrap driver. This patch is preparing for adding mt6873/8192 pwrap support. Signed-off-by: Hsin-Hsiung Wang --- drivers/soc/mediatek/mtk-pmic-wrap.c | 67 ++-- 1 file changed, 56 insertions(+), 11 deletions(-) diff --git

[PATCH v2 3/4] dt-bindings: mediatek: add compatible for MT6873/8192 pwrap

2020-07-22 Thread Hsin-Hsiung Wang
This adds dt-binding documentation of pwrap for Mediatek MT6873/8192 SoCs Platform. Signed-off-by: Hsin-Hsiung Wang Acked-by: Rob Herring --- Documentation/devicetree/bindings/soc/mediatek/pwrap.txt | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v2 0/4] Add PMIC wrapper support for Mediatek MT6873/8192 SoC IC

2020-07-22 Thread Hsin-Hsiung Wang
This series adds support for new SoC MT6873/8192 to the pmic-wrap driver. changes since v1: - separate PWRAP_CAP_ARB to a new patch. Hsin-Hsiung Wang (4): soc: mediatek: pwrap: use BIT() macro soc: mediatek: pwrap: add arbiter capability dt-bindings: mediatek: add compatible for

[PATCH v2 1/4] soc: mediatek: pwrap: use BIT() macro

2020-07-22 Thread Hsin-Hsiung Wang
Use a better BIT() marco for the bit definition. No functional changes, cleanup only. Signed-off-by: Hsin-Hsiung Wang --- drivers/soc/mediatek/mtk-pmic-wrap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c

Re: [RFC PATCH] makefile: add debug option to enable function aligned on 32 bytes

2020-07-22 Thread Andrew Morton
On Thu, 23 Jul 2020 11:30:01 +0800 Feng Tang wrote: > Recently 0day reported many strange performance changes (regression > or improvement), in which there was no obvious relation between > the culprit commit and the benchmark at the first look, and it causes > people to doubt the test itself is

Re: [PATCH v5 3/9] ufs: ufs-qcom: Fix race conditions caused by func ufs_qcom_testbus_config

2020-07-22 Thread hongwus
On 2020-07-23 10:34, Can Guo wrote: If ufs_qcom_dump_dbg_regs() calls ufs_qcom_testbus_config() from ufshcd_suspend/resume and/or clk gate/ungate context, pm_runtime_get_sync() and ufshcd_hold() will cause racing problems. Fix this by removing the unnecessary calls of pm_runtime_get_sync() and

Re: [PATCH v1] clk: Export __clk_lookup()

2020-07-22 Thread elaine.zhang
在 2020/7/23 上午2:26, Heiko Stuebner 写道: Hi Elaine, Am Mittwoch, 22. Juli 2020, 04:32:30 CEST schrieb Elaine Zhang: Export __clk_lookup() to support user built as module. ERROR: drivers/clk/rockchip/clk.ko: In function `rockchip_clk_protect_critical': drivers/clk/rockchip/clk.c:741: undefined

Re: [PATCH v2 2/2] KVM: PPC: Book3S HV: rework secure mem slot dropping

2020-07-22 Thread Bharata B Rao
On Tue, Jul 21, 2020 at 12:42:02PM +0200, Laurent Dufour wrote: > When a secure memslot is dropped, all the pages backed in the secure device > (aka really backed by secure memory by the Ultravisor) should be paged out > to a normal page. Previously, this was achieved by triggering the page >

Re: [RFC PATCH 11/16] sched: migration changes for core scheduling(Internet mail)

2020-07-22 Thread Li, Aubrey
On 2020/7/23 10:42, benbjiang(蒋彪) wrote: > Hi, > >> On Jul 23, 2020, at 9:57 AM, Li, Aubrey wrote: >> >> On 2020/7/22 22:32, benbjiang(蒋彪) wrote: >>> Hi, >>> On Jul 22, 2020, at 8:13 PM, Li, Aubrey wrote: On 2020/7/22 16:54, benbjiang(蒋彪) wrote: > Hi, Aubrey, > >> On

[RFC PATCH] makefile: add debug option to enable function aligned on 32 bytes

2020-07-22 Thread Feng Tang
Recently 0day reported many strange performance changes (regression or improvement), in which there was no obvious relation between the culprit commit and the benchmark at the first look, and it causes people to doubt the test itself is wrong. Upon further check, many of these cases are caused by

答复: [PATCH] arm64: mm: free unused memmap for sparse memory model that define VMEMMAP

2020-07-22 Thread liwei (CM)
-邮件原件- 发件人: Anshuman Khandual [mailto:anshuman.khand...@arm.com] 发送时间: 2020年7月23日 10:33 收件人: liwei (CM) ; catalin.mari...@arm.com; w...@kernel.org 抄送: Song Bao Hua (Barry Song) ; sujunfei ; Xiaqing (A) ; linux-arm-ker...@lists.infradead.org; steve.cap...@arm.com; Chenfeng (puck) ;

[PATCH -next 1/2] drm: Remove redundant NULL check

2020-07-22 Thread Li Heng
Fix below warnings reported by coccicheck: ./drivers/gpu/drm/drm_drv.c:819:2-7: WARNING: NULL check before some freeing functions is not needed. Fixes: 5dad34f3c444 ("drm: Cleanups after drmm_add_final_kfree rollout") Signed-off-by: Li Heng --- drivers/gpu/drm/drm_drv.c | 3 +-- 1 file

[PATCH -next 2/2] drm: Remove redundant NULL check

2020-07-22 Thread Li Heng
Fix below warnings reported by coccicheck: ./drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c:557:2-7: WARNING: NULL check before some freeing functions is not needed. Fixes: 4d55b0dd1cdd ("drm/amd/display: Add DCN3 CLK_MGR") Signed-off-by: Li Heng ---

Re: [PATCH -next] io_uring: Remove redundant NULL check

2020-07-22 Thread Jens Axboe
On 7/22/20 9:19 PM, Li Heng wrote: > Fix below warnings reported by coccicheck: > ./fs/io_uring.c:1544:2-7: WARNING: NULL check before some freeing functions > is not needed. > ./fs/io_uring.c:3095:2-7: WARNING: NULL check before some freeing functions > is not needed. >

[PATCH v2 3/4] doc/vm: fix typo in the hugetlb admin documentation

2020-07-22 Thread Baoquan He
Change 'pecify' to 'Specify'. Signed-off-by: Baoquan He Reviewed-by: Mike Kravetz Reviewed-by: David Hildenbrand --- Documentation/admin-guide/mm/hugetlbpage.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/admin-guide/mm/hugetlbpage.rst

Re: [PATCH v12 00/18] Enable FSGSBASE instructions

2020-07-22 Thread Jarkko Sakkinen
On Sat, Jul 18, 2020 at 02:19:52PM -0400, Don Porter wrote: > On 6/25/20 5:37 PM, Jarkko Sakkinen wrote: > > > > Can unmodified Graphene-SGX used with these changes? > > > > Yes. I just double-checked that all of the needed changes have made it to > master branch. > > I also re-tested on

[PATCH v2 2/4] mm/hugetlb.c: Remove the unnecessary non_swap_entry()

2020-07-22 Thread Baoquan He
The checking is_migration_entry() and is_hwpoison_entry() are stricter than non_swap_entry(), means they have covered the conditional check which non_swap_entry() is doing. Hence remove the unnecessary non_swap_entry() in is_hugetlb_entry_migration() and is_hugetlb_entry_hwpoisoned() to simplify

[PATCH v2 4/4] mm/hugetl.c: warn out if expected count of huge pages adjustment is not achieved

2020-07-22 Thread Baoquan He
A customer complained that no message is logged when the number of persistent huge pages is not changed to the exact value written to the sysfs or proc nr_hugepages file. In the current code, a best effort is made to satisfy requests made via the nr_hugepages file. However, requests may be only

[PATCH v2 0/4] mm/hugetlb: Small cleanup and improvement

2020-07-22 Thread Baoquan He
v1 is here: https://lore.kernel.org/linux-mm/20200720062623.13135-1-...@redhat.com/ Patch 1~3 are small clean up. Patch 4 is adding warning message when the number of persistent huge pages is not changed to the exact value written to the sysfs or proc nr_hugepages file. v1->v2: Drop the old

[PATCH v2 1/4] mm/hugetlb.c: make is_hugetlb_entry_hwpoisoned return bool

2020-07-22 Thread Baoquan He
Just like its neighbour is_hugetlb_entry_migration() has done. Signed-off-by: Baoquan He Reviewed-by: Mike Kravetz Reviewed-by: David Hildenbrand --- mm/hugetlb.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index

Re: [PATCH v5 2/9] scsi: ufs: Fix imbalanced scsi_block_reqs_cnt caused by ufshcd_hold()

2020-07-22 Thread hongwus
Hi Can, On 2020-07-23 10:34, Can Guo wrote: The scsi_block_reqs_cnt increased in ufshcd_hold() is supposed to be decreased back in ufshcd_ungate_work() in a paired way. However, if specific ufshcd_hold/release sequences are met, it is possible that scsi_block_reqs_cnt is increased twice but only

[PATCH -next] io_uring: Remove redundant NULL check

2020-07-22 Thread Li Heng
Fix below warnings reported by coccicheck: ./fs/io_uring.c:1544:2-7: WARNING: NULL check before some freeing functions is not needed. ./fs/io_uring.c:3095:2-7: WARNING: NULL check before some freeing functions is not needed. ./fs/io_uring.c:3195:2-7: WARNING: NULL check before some freeing

Re: [PATCH] jffs2: move jffs2_init_inode_info() just after allocating inode

2020-07-22 Thread Jubin Zhong
On 2020/1/6 16:04, zhangyi (F) wrote: > After commit 4fdcfab5b553 ("jffs2: fix use-after-free on symlink > traversal"), it expose a freeing uninitialized memory problem due to > this commit move the operaion of freeing f->target to > jffs2_i_callback(), which may not be initialized in some error

答复: [PATCH] USB:Fix kernel NULL pointer when unbind UHCI form vfio-pci

2020-07-22 Thread Weitao Wang(BJ-RD)
On , Jul 22, 2020 at 02:44:14PM +0200, Alan wrote: > On Wed, Jul 22, 2020 at 02:44:14PM +0200, Greg KH wrote: > > On Wed, Jul 22, 2020 at 07:57:48PM +0800, WeitaoWangoc wrote: > > > This bug is found in Zhaoxin platform, but it's a commom code bug. > > > Fail sequence: > > > step1: Unbind UHCI

答复: [PATCH] USB:Fix kernel NULL pointer when unbind UHCI form vfio-pci

2020-07-22 Thread Weitao Wang(BJ-RD)
   On Wed, Jul 22, 2020 at 02:44:14PM +0200, Greg KH wrote: > On Wed, Jul 22, 2020 at 07:57:48PM +0800, WeitaoWangoc wrote: > > This bug is found in Zhaoxin platform, but it's a commom code bug. > > Fail sequence: > > step1: Unbind UHCI controller from native driver; > > step2: Bind UHCI

[PATCH -next] um: Remove redundant NULL check

2020-07-22 Thread Li Heng
Fix below warnings reported by coccicheck: ./arch/um/drivers/vector_user.c:403:2-7: WARNING: NULL check before some freeing functions is not needed. Fixes: bc8f8e4e6e7a ("um: Add a generic "fd" vector transport") Signed-off-by: Li Heng --- arch/um/drivers/vector_user.c | 3 +-- 1 file changed,

Re: [RFC 11/11] scsi: storvsc: Support PAGE_SIZE larger than 4K

2020-07-22 Thread Boqun Feng
On Thu, Jul 23, 2020 at 02:26:00AM +, Michael Kelley wrote: > From: boqun.f...@gmail.com Sent: Wednesday, July 22, > 2020 6:52 PM > > > > On Thu, Jul 23, 2020 at 12:13:07AM +, Michael Kelley wrote: > > > From: Boqun Feng Sent: Monday, July 20, 2020 6:42 > > > PM > > > > > > > >

Re: [RESEND PATCH v13 00/11] Introduce support for guest CET feature

2020-07-22 Thread Yang Weijiang
On Wed, Jul 22, 2020 at 12:48:05PM -0700, Sean Christopherson wrote: > On Thu, Jul 16, 2020 at 11:16:16AM +0800, Yang Weijiang wrote: > > Control-flow Enforcement Technology (CET) provides protection against > > Return/Jump-Oriented Programming (ROP/JOP) attack. There're two CET > > sub-features:

[PATCH v10 00/28] Add support for mt2701 JPEG ENC support

2020-07-22 Thread Xia Jiang
This patchset add support for mt2701 JPEG ENC support. This is the compliance test result for jpeg dec and enc. The JPEG dec log:

[PATCH v10 03/28] media: platform: Improve getting and requesting irq flow for bug fixing

2020-07-22 Thread Xia Jiang
Delete platform_get_resource operation for irq. Return actual value rather than EINVAL when fail to get and request irq. Reviewed-by: Tomasz Figa Signed-off-by: Xia Jiang --- v10: no changes --- drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c | 7 ++- 1 file changed, 2 insertions(+), 5

Re: [PATCH v3] cxgb4: add missing release on skb in uld_send()

2020-07-22 Thread David Miller
From: Navid Emamdoost Date: Wed, 22 Jul 2020 21:58:39 -0500 > In the implementation of uld_send(), the skb is consumed on all > execution paths except one. Release skb when returning NET_XMIT_DROP. > > Signed-off-by: Navid Emamdoost Applied, thank you.

[PATCH v10 13/28] media: platform: Change MTK_JPEG_COMP_MAX macro definition location

2020-07-22 Thread Xia Jiang
Move MTK_JPEG_COMP_MAX definition to mtk_jpeg_core.h file, because it is used by mtk_jpeg_core.c file. Reviewed-by: Tomasz Figa Signed-off-by: Xia Jiang --- v10: no changes --- drivers/media/platform/mtk-jpeg/mtk_jpeg_core.h | 2 ++ drivers/media/platform/mtk-jpeg/mtk_jpeg_reg.h | 1 - 2

[PATCH v10 11/28] media: platform: Stylistic changes for improving code quality

2020-07-22 Thread Xia Jiang
Change register offset hex numerals from uppercase to lowercase. Change data type of max/min width/height from integer to unsigned integer. Reviewed-by: Tomasz Figa Signed-off-by: Xia Jiang --- v10: no changes --- .../media/platform/mtk-jpeg/mtk_jpeg_core.h| 8

[PATCH v10 05/28] media: platform: Improve power on and power off flow

2020-07-22 Thread Xia Jiang
Call pm_runtime_get_sync() before starting a frame and then pm_runtime_put() after completing it. This can save power for the time between processing two frames. Reviewed-by: Tomasz Figa Signed-off-by: Xia Jiang --- v10: no changes --- .../media/platform/mtk-jpeg/mtk_jpeg_core.c | 27

[PATCH v10 15/28] media: platform: Delete vidioc_s_selection ioctl of jpeg dec

2020-07-22 Thread Xia Jiang
JPEG dec does't support setting a compose rectangle, so remove mtk_jpeg_dec_s_selection(). Signed-off-by: Xia Jiang --- v10: new add patch --- .../media/platform/mtk-jpeg/mtk_jpeg_core.c | 22 --- 1 file changed, 22 deletions(-) diff --git

[PATCH v10 20/28] media: platform: Change the colorspace of jpeg to the fixed value

2020-07-22 Thread Xia Jiang
Jpeg doesn't support colorspace conversion, so it shouldn't accept any other colorspace in S_FMT. Change the colorspace of jpeg to the fixed value. Signed-off-by: Xia Jiang --- v10: new add patch --- .../media/platform/mtk-jpeg/mtk_jpeg_core.c | 24 +-- 1 file changed, 12

[PATCH v10 04/28] media: platform: Change the fixed device node number to unfixed value

2020-07-22 Thread Xia Jiang
The driver can be instantiated multiple times, e.g. for a decoder and an encoder. Moreover, other drivers could coexist on the same system. This makes the static video node number assignment pointless, so switch to automatic assignment instead. Reviewed-by: Tomasz Figa Signed-off-by: Xia Jiang

[PATCH v10 12/28] media: platform: Use generic rounding helpers

2020-07-22 Thread Xia Jiang
Use clamp() to replace mtk_jpeg_bound_align_image() and round() to replace mtk_jpeg_align(). Reviewed-by: Tomasz Figa Signed-off-by: Xia Jiang --- v10: no changes --- .../media/platform/mtk-jpeg/mtk_jpeg_core.c | 41 +-- drivers/media/platform/mtk-jpeg/mtk_jpeg_hw.c | 8 ++--

[PATCH v10 14/28] media: platform: Delete redundant code and add annotation for an enum

2020-07-22 Thread Xia Jiang
Delete unused member variables annotation. Delete unused variable definition. Delete redundant log print, because V4L2 debug logs already print it. Add annotation for enum mtk_jpeg_ctx_state. Reviewed-by: Tomasz Figa Signed-off-by: Xia Jiang --- v10: no changes ---

[PATCH v10 23/28] media: dt-bindings: Add jpeg enc device tree node document

2020-07-22 Thread Xia Jiang
Add jpeg enc device tree node document. Reviewed-by: Rob Herring Signed-off-by: Xia Jiang --- v10: no changes --- .../bindings/media/mediatek-jpeg-encoder.txt | 35 +++ 1 file changed, 35 insertions(+) create mode 100644

[PATCH v10 10/28] media: platform: Delete zeroing the reserved fields

2020-07-22 Thread Xia Jiang
Delete zeroing the reserved fields because that the core already does it. Reviewed-by: Tomasz Figa Signed-off-by: Xia Jiang --- v10: no changes --- drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c | 5 - 1 file changed, 5 deletions(-) diff --git

[PATCH v10 21/28] media: platform: Refactor mtk_jpeg_set_default_params()

2020-07-22 Thread Xia Jiang
Call mtk_jpeg_try_fmt_mplane() to replace the original computation of sizeimage and bytesperline, because that mtk_jpeg_try_fmt_mplane() already did it. Signed-off-by: Xia Jiang --- v10: new add patch --- drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c | 12 ++-- 1 file changed, 2

[PATCH v10 27/28] media: platform: Using the variant structure to contain the varability between dec and enc

2020-07-22 Thread Xia Jiang
Add varability which would be used between jpeg dec and enc to a match data structure, it will make the code linear. Signed-off-by: Xia Jiang --- v10: new add patch --- .../media/platform/mtk-jpeg/mtk_jpeg_core.c | 100 +++--- .../media/platform/mtk-jpeg/mtk_jpeg_core.h | 28

[PATCH v10 28/28] media: platform: Add jpeg enc feature

2020-07-22 Thread Xia Jiang
Add mtk jpeg encode v4l2 driver based on jpeg decode, because that jpeg decode and encode have great similarities with function operation. Signed-off-by: Xia Jiang --- v10: cancel mtk_jpeg_enc_bs structure. refactor the setting hardware register functions in mtk_jpeg_enc_hw.c. remove

[PATCH v10 17/28] media: platform: Refactor mtk_jpeg_try_fmt_mplane()

2020-07-22 Thread Xia Jiang
The function of mtk_jpeg_adjust_fmt_mplane() equals mtk_jpeg_g_fmt_vid_mplane(), so use mtk_jpeg_g_fmt_vid_mplane() to replace it . Delete the unused ctx parameter. Using fourcc to distinguish between different formats is more generic, because that jpeg enc will also use it. Signed-off-by: Xia

[PATCH v10 19/28] media: platform: Redefinition of mtk_jpeg_q_data structure

2020-07-22 Thread Xia Jiang
The standard v4l2_pix_format_mplane structure contains width/height/ sizeimage/bytesperline, so use v4l2_pix_format_mplane to replace them. Signed-off-by: Xia Jiang --- v10: new add patch --- .../media/platform/mtk-jpeg/mtk_jpeg_core.c | 101 ++

[PATCH v10 26/28] media: platform: Rename existing functions/defines/variables

2020-07-22 Thread Xia Jiang
Rename existing functions/defines/variables with a _dec prefix and without dec_ prefix to prepare for the addition of the jpeg encoder feature. Reviewed-by: Tomasz Figa Signed-off-by: Xia Jiang --- v10: no changes --- .../media/platform/mtk-jpeg/mtk_jpeg_core.c | 172 +-

[PATCH v10 25/28] media: platform: Rename jpeg dec file name

2020-07-22 Thread Xia Jiang
Rename the files which are for decode feature. This is preparing path since the jpeg enc patch will be added later. Reviewed-by: Tomasz Figa Signed-off-by: Xia Jiang --- v10: no changes --- drivers/media/platform/mtk-jpeg/Makefile | 2 +-

  1   2   3   4   5   6   7   8   9   10   >