Re: [RFC PATCH] bpftool btf: Add prefix option to dump C

2020-07-21 Thread Andrii Nakryiko
On Tue, Jul 21, 2020 at 10:44 PM Ian Rogers wrote: > > When bpftool dumps types and enum members into a header file for > inclusion the names match those in the original source. If the same > header file needs to be included in the original source and the bpf > program, the names of structs, union

Re: [PATCH v2 05/10] powerpc/smp: Dont assume l2-cache to be superset of sibling

2020-07-21 Thread Srikar Dronamraju
* Gautham R Shenoy [2020-07-22 11:51:14]: > Hi Srikar, > > > diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c > > index 72f16dc0cb26..57468877499a 100644 > > --- a/arch/powerpc/kernel/smp.c > > +++ b/arch/powerpc/kernel/smp.c > > @@ -1196,6 +1196,7 @@ static bool update_mask_by

Re: [PATCH v2 06/10] powerpc/smp: Generalize 2nd sched domain

2020-07-21 Thread Gautham R Shenoy
Hello Srikar, On Tue, Jul 21, 2020 at 05:08:10PM +0530, Srikar Dronamraju wrote: > Currently "CACHE" domain happens to be the 2nd sched domain as per > powerpc_topology. This domain will collapse if cpumask of l2-cache is > same as SMT domain. However we could generalize this domain such that it >

[PATCH v2 2/3] clk: zynqmp: Use firmware specific divider clock flags

2020-07-21 Thread Amit Sunil Dhamne
From: Rajan Vaja Use ZynqMP specific divider clock flags instead of using CCF flags. Signed-off-by: Rajan Vaja Signed-off-by: Tejas Patel Signed-off-by: Amit Sunil Dhamne --- drivers/clk/zynqmp/clk-zynqmp.h | 9 + drivers/clk/zynqmp/divider.c| 16 +++- 2 files change

[PATCH v2 3/3] clk: zynqmp: Use firmware specific mux clock flags

2020-07-21 Thread Amit Sunil Dhamne
From: Rajan Vaja Use ZynqMP specific mux clock flags instead of using CCF flags. Signed-off-by: Rajan Vaja Signed-off-by: Tejas Patel Signed-off-by: Amit Sunil Dhamne --- drivers/clk/zynqmp/clk-mux-zynqmp.c | 14 +- drivers/clk/zynqmp/clk-zynqmp.h | 8 2 files chang

[PATCH v2 0/3] clk: zynqmp: Add firmware specific clock flags

2020-07-21 Thread Amit Sunil Dhamne
This series adds supports for firmware specific flags. These include - Common Flags - Divider Flags - Mux Flags The intent is to remove firmware's dependency on CCF flag values by having firmware specific flags with independent values. Currently firmware is maintaining CCF specific flags and prov

[PATCH v2 1/3] clk: zynqmp: Use firmware specific common clock flags

2020-07-21 Thread Amit Sunil Dhamne
From: Rajan Vaja Currently firmware passes CCF specific flags to ZynqMP clock driver. So firmware needs to be updated if CCF flags are changed. The firmware should have its own 'flag number space' that is distinct from the common clk framework's 'flag number space'. So define and use ZynqMP speci

Re: [PATCH 01/14] fs: remove the unused SB_I_MULTIROOT flag

2020-07-21 Thread Johannes Thumshirn
A little bit of git archeology shows the last user of SB_I_MULTIROOT is gone with f2aedb713c28 ("NFS: Add fs_context support.") Reviewed-by: Johannes Thumshirn

Re: [PATCH for v5.9] mfd: Replace HTTP links with HTTPS ones

2020-07-21 Thread Lee Jones
On Tue, 21 Jul 2020, Rob Herring wrote: > On Sun, 19 Jul 2020 21:56:13 +0200, Alexander A. Klimov wrote: > > Rationale: > > Reduces attack surface on kernel devs opening the links for MITM > > as HTTPS traffic is much harder to manipulate. > > > > Deterministic algorithm: > > For each file: > >

Re: [PATCH 1/2] fpga: dfl: map feature mmio resources in their own feature drivers

2020-07-21 Thread Xu Yilun
Sorry, I missed some comments. Reply inline. > > + /* release I/O mappings for next step enumeration */ > > + cci_pci_iounmap_bars(pcidev, mapped_bars); > There is no iounmap_bars in error handling, likely need to add this. The memory allocated by pcim_iomap_xxx will be released along with pc

[RESEND v3 PATCH] usb: gadget: bdc: use readl_poll_timeout() to simplify code

2020-07-21 Thread Chunfeng Yun
Use readl_poll_timeout() to poll register status Cc: Florian Fainelli Signed-off-by: Chunfeng Yun Reviewed-by: Florian Fainelli --- v3 changes: 1. indent code to match open parenthesis suggested by Florian 2. add Reviewed-by Florian v2 changes, suggested by Stephen: 1. use unsigned int i

[PATCH v1 1/3] spi: rockchip: Config spi rx dma burst size depend on xfer length

2020-07-21 Thread Jon Lin
The burst length can be adjusted according to the transmission length to improve the transmission rate Signed-off-by: Jon Lin --- drivers/spi/spi-rockchip.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi/spi-rockc

[PATCH] xen-netfront: fix potential deadlock in xennet_remove()

2020-07-21 Thread Andrea Righi
There's a potential race in xennet_remove(); this is what the driver is doing upon unregistering a network device: 1. state = read bus state 2. if state is not "Closed": 3.request to set state to "Closing" 4.wait for state to be set to "Closing" 5.request to set state to "Clo

Re: [v3 PATCH] usb: gadget: bdc: use readl_poll_timeout() to simplify code

2020-07-21 Thread Chunfeng Yun
On Tue, 2020-07-21 at 12:42 +0300, Felipe Balbi wrote: > Hi, > > Chunfeng Yun writes: > > Use readl_poll_timeout() to poll register status > > > > Cc: Florian Fainelli > > Signed-off-by: Chunfeng Yun > > Reviewed-by: Florian Fainelli > > I had a lot of trouble to apply this patch, could you a

[PATCH 4/4] clk: mediatek: Add MT8192 clock support

2020-07-21 Thread Weiyi Lu
Add MT8192 clock support, include topckgen, apmixedsys, infracfg, pericfg and subsystem clocks. Signed-off-by: Weiyi Lu --- drivers/clk/mediatek/Kconfig | 146 ++ drivers/clk/mediatek/Makefile | 24 + drivers/clk/mediatek/clk-mt8192-aud.c |

[PATCH 0/4] Mediatek MT8192 clock and scpsys support

2020-07-21 Thread Weiyi Lu
This series is based on v5.8-rc1 Weiyi Lu (4): dt-bindings: ARM: Mediatek: Document bindings for MT8192 clk: mediatek: Add dt-bindings for MT8192 clocks clk: mediatek: Add configurable enable control to mtk_pll_data clk: mediatek: Add MT8192 clock support .../arm/mediatek/mediatek,apmixe

[PATCH 2/4] clk: mediatek: Add dt-bindings for MT8192 clocks

2020-07-21 Thread Weiyi Lu
Add MT8192 clock dt-bindings, include topckgen, apmixedsys, infracfg, pericfg and subsystem clocks. Signed-off-by: Weiyi Lu --- include/dt-bindings/clock/mt8192-clk.h | 593 + 1 file changed, 593 insertions(+) create mode 100644 include/dt-bindings/clock/mt8192-c

[PATCH 1/4] dt-bindings: ARM: Mediatek: Document bindings for MT8192

2020-07-21 Thread Weiyi Lu
This patch adds the binding documentation for apmixedsys, audsys, camsys-raw, camsys, imgsys, imp_iic_wrap, infracfg, ipesys, mdpsys, mfgcfg, mmsys, msdc, pericfg, scp-adsp, topckgen, vdecsys-soc, vdecsys and vencsys for Mediatek MT8192. Signed-off-by: Weiyi Lu --- .../bindings/arm/mediatek/medi

[PATCH 3/4] clk: mediatek: Add configurable enable control to mtk_pll_data

2020-07-21 Thread Weiyi Lu
In all MediaTek PLL design, bit 0 of CON0 register is always the enable bit. However, there's a special case of usbpll on MT8192. The enable bit of usbpll is moved to bit 2 of other register. Add configurable en_reg and base_en_bit for enable control or using the default if without setting in pll d

[PATCH] drv: iommu: amd: Remove double zero check

2020-07-21 Thread Libing Zhou
The free_pages() does zero check, therefore remove double zero check here. Signed-off-by: Libing Zhou --- drivers/iommu/amd/init.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/iommu/amd/init.c b/drivers/iommu/amd/init.c index 6ebd4825e320..60a8a70b0d4f

Re: [v3 2/3] coccinelle: api: extend memdup_user rule with vmemdup_user()

2020-07-21 Thread Markus Elfring
>> Under which circumstances would you begin to care more for involved >> differences >> in corresponding run time characteristics? > > When the difference is hours vs seconds. Such a view can be influenced by execution environments in considerable ways. > In this case, there are tradeoffs betw

Re: [PATCH] KEYS: remove redundant memsets

2020-07-21 Thread kernel test robot
Hi, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on security/next-testing] [also build test WARNING on linus/master dhowells-fs/fscache-next v5.8-rc6 next-20200721] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting

Re: [PATCH v6 2/5] scsi: ufs: Add UFS-feature layer

2020-07-21 Thread Christoph Hellwig
On Mon, Jul 13, 2020 at 07:40:40PM +0900, Daejun Park wrote: > This patch is adding UFS feature layer to UFS core driver. > > UFS Driver data structure (struct ufs_hba) Independent of the problems with the concept of HPB, this patch is just really bad software architecture. Don't just add random

Re: [PATCH v6 0/5] scsi: ufs: Add Host Performance Booster Support

2020-07-21 Thread Christoph Hellwig
As this monster seesm to come back again and again let me re-iterate my statement: I do not think Linux should support a broken standards extensions that creates a huge share state between the Linux initator and the target device like this with all its associated problems. Nacked-by: Christoph He

Re: [PATCH v4 19/24] raid5: Use sequence counter with associated spinlock

2020-07-21 Thread Song Liu
On Mon, Jul 20, 2020 at 8:57 AM Ahmed S. Darwish wrote: > > A sequence counter write side critical section must be protected by some > form of locking to serialize writers. A plain seqcount_t does not > contain the information of which lock must be held when entering a write > side critical sectio

Re: [PATCH v3 3/3] ARM: dts: stm32: add initial support for stm32mp157-odyssey board

2020-07-21 Thread Ahmad Fatoum
On 7/21/20 8:53 PM, Marcin Sloniewski wrote: > Add support for Seeed Studio's stm32mp157c odyssey board. > Board consists of SoM with stm32mp157c with 4GB eMMC and 512 MB DDR3 RAM > and carrier board with USB and ETH interfaces, SD card connector, > wifi and BT chip AP6236. > > In this patch only

[PATCH v4 1/3] dt-bindings: USB: Add bindings for new Ingenic SoCs.

2020-07-21 Thread Zhou Yanjie
Add the USB PHY bindings for the JZ4780 SoC, the X1000 SoC and the X1830 SoC from Ingenic. Tested-by: 周正 (Zhou Zheng) Signed-off-by: 周琰杰 (Zhou Yanjie) Acked-by: Rob Herring --- Notes: v1->v2: Add bindings for the JZ4780 SoC. v2->v3: No change. v3->v4: No chang

[PATCH v4 0/3] Add USB PHY support for new Ingenic SoCs.

2020-07-21 Thread Zhou Yanjie
v3->v4: Fix typos. 周琰杰 (Zhou Yanjie) (3): dt-bindings: USB: Add bindings for new Ingenic SoCs. USB: PHY: JZ4770: Add support for new Ingenic SoCs. USB: PHY: JZ4770: Reformat the code to align it. .../bindings/usb/ingenic,jz4770-phy.yaml | 6 +- drivers/usb/phy/Kconfig

[PATCH v4 3/3] USB: PHY: JZ4770: Reformat the code to align it.

2020-07-21 Thread Zhou Yanjie
Reformat the code (add one level of indentation before the values), to align the code in the macro definition section. Tested-by: 周正 (Zhou Zheng) Co-developed-by: 漆鹏振 (Qi Pengzhen) Signed-off-by: 漆鹏振 (Qi Pengzhen) Signed-off-by: 周琰杰 (Zhou Yanjie) --- Notes: v1->v2: Add support for the

[PATCH v4 2/3] USB: PHY: JZ4770: Add support for new Ingenic SoCs.

2020-07-21 Thread Zhou Yanjie
Add support for probing the phy-jz4770 driver on the JZ4780 SoC, the X1000 SoC and the X1830 SoC from Ingenic. Tested-by: 周正 (Zhou Zheng) Co-developed-by: 漆鹏振 (Qi Pengzhen) Signed-off-by: 漆鹏振 (Qi Pengzhen) Signed-off-by: 周琰杰 (Zhou Yanjie) --- Notes: v1->v2: Add bindings for the JZ4780

RE: [PATCH bpf-next] bpf: Generate cookie for new non-initial net NS

2020-07-21 Thread Jianlin Lv
> -Original Message- > From: bpf-ow...@vger.kernel.org On Behalf > Of Daniel Borkmann > Sent: Wednesday, July 22, 2020 4:18 AM > To: Jianlin Lv ; b...@vger.kernel.org > Cc: da...@davemloft.net; k...@kernel.org; a...@kernel.org; y...@fb.com; > Song Zhu ; linux-kernel@vger.kernel.org; > ne

Re: io_uring vs in_compat_syscall()

2020-07-21 Thread Christoph Hellwig
On Tue, Jul 21, 2020 at 10:25:24AM -0700, Andy Lutomirski wrote: > On Tue, Jul 21, 2020 at 7:34 AM Christoph Hellwig wrote: > > > > On Tue, Jul 21, 2020 at 07:31:02AM -0700, Andy Lutomirski wrote: > > > > What do you mean with "properly wired up". Do you really want to spread > > > > ->compat_foo

Re: [PATCH v2 3/3] skd: use generic power management

2020-07-21 Thread Damien Le Moal
On Tue, 2020-07-21 at 12:39 +0530, Vaibhav Gupta wrote: > On Tue, Jul 21, 2020 at 02:57:28AM +, Damien Le Moal wrote: > > On 2020/07/20 22:32, Vaibhav Gupta wrote: > > > Drivers using legacy PM have to manage PCI states and device's PM states > > > themselves. They also need to take care of con

[PATCH 14/14] bdi: replace BDI_CAP_NO_{WRITEBACK,ACCT_DIRTY} with a single flag

2020-07-21 Thread Christoph Hellwig
Replace the two negative flags that are always used together with a single positive flag that indicates the writeback capability instead of two related non-capabilities. Also remove the pointless wrappers to just check the flag. Signed-off-by: Christoph Hellwig --- fs/9p/vfs_file.c|

[PATCH 09/14] bdi: remove BDI_CAP_CGROUP_WRITEBACK

2020-07-21 Thread Christoph Hellwig
Just checking SB_I_CGROUPWB for cgroup writeback support is enough. Either the file system allocates its own bdi (e.g. btrfs), in which case it is know to support cgroup writeback, or the bdi comes from the block layer, which always supports cgroup writeback. Signed-off-by: Christoph Hellwig ---

[PATCH 02/14] drbd: remove dead code in device_to_statistics

2020-07-21 Thread Christoph Hellwig
Ever since the switch to blk-mq, a lower device not use by VM writeback will not be marked congested, so the check will never trigger. Signed-off-by: Christoph Hellwig --- drivers/block/drbd/drbd_nl.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/block/drbd/drbd_nl.c b/drivers

[PATCH 06/14] block: lift setting the readahead size into the block layer

2020-07-21 Thread Christoph Hellwig
Drivers shouldn't really mess with the readahead size, as that is a VM concept. Instead set it based on the optimal I/O size by lifting the algorithm from the md driver when registering the disk. Also set bdi->io_pages there as well by applying the same scheme based on max_sectors. Signed-off-by

[PATCH 13/14] bdi: invert BDI_CAP_NO_ACCT_WB

2020-07-21 Thread Christoph Hellwig
Replace BDI_CAP_NO_ACCT_WB with a positive BDI_CAP_WRITEBACK_ACCT to make the checks more obvious. Also remove the pointless bdi_cap_account_writeback wrapper that just obsfucates the check. Signed-off-by: Christoph Hellwig --- fs/fuse/inode.c | 3 ++- include/linux/backing-dev.h |

[PATCH 01/14] fs: remove the unused SB_I_MULTIROOT flag

2020-07-21 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- fs/namei.c | 4 ++-- include/linux/fs.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/namei.c b/fs/namei.c index 72d4219c93acb7..e9ff0d54a110a7 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -568,8 +568,8 @@ static bool path_con

[PATCH 04/14] bdi: initialize ->ra_pages in bdi_init

2020-07-21 Thread Christoph Hellwig
Set up a readahead size by default, as very few users have a good reason to change it. Signed-off-by: Christoph Hellwig --- block/blk-core.c | 1 - drivers/mtd/mtdcore.c | 1 + fs/9p/vfs_super.c | 4 ++-- fs/afs/super.c| 1 - fs/btrfs/disk-io.c| 1 - fs/fuse/inode.c |

[PATCH 12/14] bdi: replace BDI_CAP_STABLE_WRITES with a queue and a sb flag

2020-07-21 Thread Christoph Hellwig
The BDI_CAP_STABLE_WRITES is one of the few bits of information in the backing_dev_info shared between the block drivers and the writeback code. To help untangling the dependency replace it with a queue flag and a superblock flag derived from it. This also helps with the case of e.g. a file system

[PATCH 07/14] block: make QUEUE_SYSFS_BIT_FNS a little more useful

2020-07-21 Thread Christoph Hellwig
Generate the queue_sysfs_entry given that we have all the required information for it, and rename the generated show and store methods to match the other ones in the file. Signed-off-by: Christoph Hellwig --- block/blk-sysfs.c | 31 +-- 1 file changed, 9 insertions(+)

[PATCH 05/14] md: update the optimal I/O size on reshape

2020-07-21 Thread Christoph Hellwig
The raid5 and raid10 drivers currently update the read-ahead size, but not the optimal I/O size on reshape. To prepare for deriving the read-ahead size from the optimal I/O size make sure it is updated as well. Signed-off-by: Christoph Hellwig --- drivers/md/raid10.c | 22 ++

bdi cleanups v2

2020-07-21 Thread Christoph Hellwig
Hi Jens, this series contains a bunch of different BDI cleanups. The biggest item is to isolate block drivers from the BDI in preparation of changing the lifetime of the block device BDI in a follow up series. Changes since v1: - rebased to the for-5.9/block-merge branch - explicitly set the

[PATCH 11/14] mm: use SWP_SYNCHRONOUS_IO more intelligently

2020-07-21 Thread Christoph Hellwig
There is no point in trying to call bdev_read_page if SWP_SYNCHRONOUS_IO is not set, as the device won't support it. Signed-off-by: Christoph Hellwig --- mm/page_io.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/mm/page_io.c b/mm/page_io.c index ccda767

[PATCH 10/14] bdi: remove BDI_CAP_SYNCHRONOUS_IO

2020-07-21 Thread Christoph Hellwig
BDI_CAP_SYNCHRONOUS_IO is only checked in the swap code, and used to decided if ->rw_page can be used on a block device. Just check up for the method instead. The only complication is that zram needs a second set of block_device_operations as it can switch between modes that actually support ->rw

[PATCH 08/14] block: add helper macros for queue sysfs entries

2020-07-21 Thread Christoph Hellwig
Add two helpers macros to avoid boilerplate code for the queue sysfs entries. Signed-off-by: Christoph Hellwig --- block/blk-sysfs.c | 248 +++--- 1 file changed, 58 insertions(+), 190 deletions(-) diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c index

[PATCH 03/14] drbd: remove RB_CONGESTED_REMOTE

2020-07-21 Thread Christoph Hellwig
This case isn't ever used. Signed-off-by: Christoph Hellwig --- drivers/block/drbd/drbd_req.c | 4 include/linux/drbd.h | 1 - 2 files changed, 5 deletions(-) diff --git a/drivers/block/drbd/drbd_req.c b/drivers/block/drbd/drbd_req.c index 674be09b2da94a..4d944f2eb56efa 100644 ---

Re: [v3 2/3] coccinelle: api: extend memdup_user rule with vmemdup_user()

2020-07-21 Thread Julia Lawall
On Wed, 22 Jul 2020, Markus Elfring wrote: > > Markus, you are welcome to try this since you are concerned about it. > > I dare to point software design variations for some reasons. > > > > But it doesn't matter. > > Under which circumstances would you begin to care more for involved > differe

Re: [PATCH v4 16/17] crypto: sun8i-ce: fix comparison of integer expressions of different signedness

2020-07-21 Thread LABBE Corentin
On Tue, Jul 21, 2020 at 02:32:15PM -0700, Joe Perches wrote: > On Tue, 2020-07-21 at 19:06 +, Corentin Labbe wrote: > > This patch fixes the warning: > > warning: comparison of integer expressions of different signedness: 'int' > > and 'long unsigned int' [-Wsign-compare] > > I think these do

Re: [PATCH v2 05/10] powerpc/smp: Dont assume l2-cache to be superset of sibling

2020-07-21 Thread Gautham R Shenoy
Hi Srikar, On Tue, Jul 21, 2020 at 05:08:09PM +0530, Srikar Dronamraju wrote: > Current code assumes that cpumask of cpus sharing a l2-cache mask will > always be a superset of cpu_sibling_mask. > > Lets stop that assumption. cpu_l2_cache_mask is a superset of > cpu_sibling_mask if and only if sh

RE: [PATCH v6 0/5] scsi: ufs: Add Host Performance Booster Support

2020-07-21 Thread Avri Altman
> > Avri, > > > Martin - Can we move forward with this one? > > CHECK drivers/scsi/ufs/ufshcd-pltfrm.c > drivers/scsi/ufs/ufsfeature.c:90:20: warning: symbol 'ufshpb_dev_type' was > not declared. Should it be static? > drivers/scsi/ufs/ufsfeature.c:104:17: warning: symbol 'ufsf_bus_type' was

Re: [ext4] d3b6f23f71: stress-ng.fiemap.ops_per_sec -60.5% regression

2020-07-21 Thread Xing Zhengjun
On 7/15/2020 7:04 PM, Ritesh Harjani wrote: Hello Xing, On 4/7/20 1:30 PM, kernel test robot wrote: Greeting, FYI, we noticed a -60.5% regression of stress-ng.fiemap.ops_per_sec due to commit: commit: d3b6f23f71670007817a5d59f3fbafab2b794e8c ("ext4: move ext4_fiemap to use iomap framew

Re: kernel BUG at mm/vmalloc.c:LINE! (2)

2020-07-21 Thread syzbot
syzbot has bisected this issue to: commit bdbfb1d52d5e576c1d275fd8ab59b677011229e8 Author: Ingo Molnar Date: Sun Jun 7 19:12:51 2020 + Revert "mm/vmalloc: modify struct vmap_area to reduce its size" bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=166e6b7f10 start comm

Re: [PATCH] kernel: add a kernel_wait helper

2020-07-21 Thread Christoph Hellwig
On Tue, Jul 21, 2020 at 02:18:38PM -0700, Andrew Morton wrote: > On Tue, 21 Jul 2020 15:04:49 +0200 Christoph Hellwig wrote: > > > Add a helper that waits for a pid and stores the status in the passed > > in kernel pointer. Use it to fix the usage of kernel_wait4 in > > call_usermodehelper_exec_

Re: [v3 2/3] coccinelle: api: extend memdup_user rule with vmemdup_user()

2020-07-21 Thread Markus Elfring
> Markus, you are welcome to try this since you are concerned about it. I dare to point software design variations for some reasons. > But it doesn't matter. Under which circumstances would you begin to care more for involved differences in corresponding run time characteristics? Regards, Mark

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

2020-07-21 Thread Mike Rapoport
Hi, On Tue, Jul 21, 2020 at 03:32:03PM +0800, Wei Li wrote: > For the memory hole, sparse memory model that define SPARSEMEM_VMEMMAP > do not free the reserved memory for the page map, this patch do it. Are there numbers showing how much memory is actually freed? The freeing of empty memmap woul

KMSAN: uninit-value in _copy_to_iter (3)

2020-07-21 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:14525656 compiler.h: reinstate missing KMSAN_INIT git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=1599608710 kernel config: https://syzkaller.appspot.com/x/.config

Re: [PATCH v3 2/3] coccinelle: api: extend memdup_user rule with vmemdup_user()

2020-07-21 Thread Julia Lawall
On Wed, 22 Jul 2020, Markus Elfring wrote: > >>> +@depends on patch@ > >>> +expression from,to,size; > >>> +identifier l1,l2; > >>> +@@ > >>> + > >>> +- to = \(kvmalloc\|kvzalloc\)(size,\(GFP_KERNEL\|GFP_USER\)); > >>> ++ to = vmemdup_user(from,size); > >> > >> I propose to combine the desired

Re: [PATCH v2 04/10] powerpc/smp: Enable small core scheduling sooner

2020-07-21 Thread Gautham R Shenoy
Hello Srikar, On Tue, Jul 21, 2020 at 05:08:08PM +0530, Srikar Dronamraju wrote: > Enable small core scheduling as soon as we detect that we are in a > system that supports thread group. Doing so would avoid a redundant > check. The patch looks good to me. However, I think the commit message stil

[PATCH v2 1/2] dt-bindings: display: panel: Add bindings for Tianma nt36672a panel

2020-07-21 Thread Sumit Semwal
The nt36672a panel from Tianma is a FHD+ panel with a resolution of 1080x2246 and 6.18 inches size. It is found in some of the Poco F1 phones. Signed-off-by: Sumit Semwal Change-Id: I401dfbfe23ff2d806c956002f45e349cb9688c16 --- v2: remove ports node, making port@0 directly under panel@0 node. --

[PATCH v2 2/2] drm: panel: Add tianma nt36672a panel driver

2020-07-21 Thread Sumit Semwal
Some Poco F1 phones have an LCD panel from Tianma, model nt36672a, with a resolution of 1080x2246 that operates in DSI video mode. Add the drm panel driver for it. During testing, Benni Steini helped us fix the reset sequence timing (from 10ms to 20ms), to get the bootanimation to work on Androi

[PATCH v2 0/2] Add support for Tianma nt36672a video mode panel

2020-07-21 Thread Sumit Semwal
Some Poco F1 phones from Xiaomi have an nt36672a video mode panel; add support for the same. Most of the panel data is taken from downstream panel dts, and is converted to drm-panel based driver by me. It has been validated with v5.8-rc5 on Poco F1 phone; my tree with other dependent patches is her

Re: [PATCH v2 3/5] MIPS: Loongson64: Enlarge IO_SPACE_LIMIT

2020-07-21 Thread Jiaxun Yang
在 2020/7/21 下午10:17, Jiaxun Yang 写道: It can be very big on LS7A PCH systems. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/io.h | 3 ++- arch/mips/include/asm/mach-loongson64/spaces.h | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/

Re: [PATCH 1/1] ARM:dts:aspeed: Initial device tree for AMD EthanolX

2020-07-21 Thread Joel Stanley
On Mon, 20 Jul 2020 at 16:02, Supreeth Venkatesh wrote: > > Initial introduction of AMD EthanolX platform equipped with an > Aspeed ast2500 BMC manufactured by AMD. > > AMD EthanolX platform is an AMD customer reference board with an > Aspeed ast2500 BMC manufactured by AMD. > This adds AMD Ethano

KMSAN: uninit-value in video_usercopy

2020-07-21 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:14525656 compiler.h: reinstate missing KMSAN_INIT git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=15be838090 kernel config: https://syzkaller.appspot.com/x/.config

KMSAN: uninit-value in ucma_connect

2020-07-21 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:14525656 compiler.h: reinstate missing KMSAN_INIT git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=124a081710 kernel config: https://syzkaller.appspot.com/x/.config

KMSAN: uninit-value in geneve_xmit

2020-07-21 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:14525656 compiler.h: reinstate missing KMSAN_INIT git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=1339608710 kernel config: https://syzkaller.appspot.com/x/.config

KMSAN: uninit-value in xa_load

2020-07-21 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:14525656 compiler.h: reinstate missing KMSAN_INIT git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=105d732090 kernel config: https://syzkaller.appspot.com/x/.config

linux-next: manual merge of the devicetree tree with the drm tree

2020-07-21 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the devicetree tree got a conflict in: Documentation/devicetree/bindings/display/bridge/ti,sn65dsi86.txt between commit: 5a2e9b658cdc ("dt-bindings: drm/bridge: ti-sn65dsi86: Convert to yaml") from the drm tree and commit: 382646090f7f ("dt-bindings:

RE: [EXT] Re: [PATCH] net: dsa: Add protocol support for 802.1AD when adding or deleting vlan for dsa switch and port

2020-07-21 Thread Hongbo Wang
Hi Florian, Thanks for your reply! I had posted my patch for switch port driver, the email title is "net: dsa: ocelot: Add support for QinQ Operation", Best Regards! hongbo -Original Message- From: Florian Fainelli Sent: 2020年7月22日 1:55 To: Hongbo Wang ; Xiaoliang Yang ; allan.niel.

Re: [PATCH v3 2/3] coccinelle: api: extend memdup_user rule with vmemdup_user()

2020-07-21 Thread Markus Elfring
>>> +@depends on patch@ >>> +expression from,to,size; >>> +identifier l1,l2; >>> +@@ >>> + >>> +- to = \(kvmalloc\|kvzalloc\)(size,\(GFP_KERNEL\|GFP_USER\)); >>> ++ to = vmemdup_user(from,size); >> >> I propose to combine the desired adjustment with the previous SmPL rule >> by using another disj

Re: [PATCH v2 02/10] powerpc/smp: Merge Power9 topology with Power topology

2020-07-21 Thread Gautham R Shenoy
On Tue, Jul 21, 2020 at 05:08:06PM +0530, Srikar Dronamraju wrote: > A new sched_domain_topology_level was added just for Power9. However the > same can be achieved by merging powerpc_topology with power9_topology > and makes the code more simpler especially when adding a new sched > domain. > > C

[PATCH] net: dsa: ocelot: Add support for QinQ Operation

2020-07-21 Thread hongbo . wang
From: "hongbo.wang" This featue can be test using network test tools TX-tool -> swp0 -> swp1 -> RX-tool TX-tool simulates Customer that will send and receive packets with single VLAN tag(CTAG), RX-tool simulates Service-Provider that will send and receive packets with double VLA

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

2020-07-21 Thread Palmer Dabbelt
On Tue, 21 Jul 2020 21:50:42 PDT (-0700), m...@ellerman.id.au wrote: Benjamin Herrenschmidt writes: On Tue, 2020-07-21 at 16:48 -0700, Palmer Dabbelt wrote: > Why ? Branch distance limits ? You can't use trampolines ? Nothing fundamental, it's just that we don't have a large code model in the

Re: [PATCH v3] Makefile: Fix GCC_TOOLCHAIN_DIR prefix for Clang cross compilation

2020-07-21 Thread Fangrui Song
On 2020-07-22, Masahiro Yamada wrote: On Wed, Jul 22, 2020 at 9:14 AM Fangrui Song wrote: On 2020-07-22, Masahiro Yamada wrote: >On Wed, Jul 22, 2020 at 2:31 AM 'Fangrui Song' via Clang Built Linux > wrote: >> >> When CROSS_COMPILE is set (e.g. aarch64-linux-gnu-), if >> $(CROSS_COMPILE)elfedi

[RFC PATCH] bpftool btf: Add prefix option to dump C

2020-07-21 Thread Ian Rogers
When bpftool dumps types and enum members into a header file for inclusion the names match those in the original source. If the same header file needs to be included in the original source and the bpf program, the names of structs, unions, typedefs and enum members will have naming collisions. To

[no subject]

2020-07-21 Thread Darlehen Bedienung
Schönen Tag,Wir sind zuverlässige, vertrauenswürdige Kreditgeber, Wir bieten Darlehen an Unternehmen und Privatpersonen zu niedrigen und günstigen Zinssatz von 2%. Sind Sie auf der Suche nach einem Business-Darlehen, persönliche Darlehen, Schuldenkonsolidierung, unbesicherte Darlehen, Venture

Re: [PATCH 0/3] Add 3 new keycodes and use them for 3 new hotkeys on new Lenovo Thinkpads

2020-07-21 Thread Dmitry Torokhov
On Sun, Jul 19, 2020 at 07:56:49PM -0300, Henrique de Moraes Holschuh wrote: > On Fri, 17 Jul 2020, Hans de Goede wrote: > > This is a simple patch-series adding support for 3 new hotkeys found > > on various new Lenovo Thinkpad models. > > For all three patches, pending an ack for the new keycode

RE

2020-07-21 Thread Lerynne West
Hallo, Sie haben eine Spende in Höhe von 2.800.000,00 €. Ich habe die America-Lotterie in Amerika im Wert von 343 Millionen Dollar gewonnen und einen Teil davon an fünf glückliche Menschen und Wohltätigkeitsorganisationen gespendet, um an das Leben meines verstorbenen Sohnes zu erinnern, der

[PATCH 1/2] xtensa: move vmlinux.bin[.gz] to boot subdirectory

2020-07-21 Thread Max Filippov
vmlinux.bin and vmlinux.bin.gz are always rebuilt in the kernel build process. Add them to 'targets' and move them to the boot subdirectory where their rules are. Update make rules that refer to them. Signed-off-by: Max Filippov --- arch/xtensa/boot/Makefile | 11 ++- arch/x

Re: [PATCH] Input: ati_remote2 - add missing newlines when printing module parameters

2020-07-21 Thread Dmitry Torokhov
On Mon, Jul 20, 2020 at 05:21:48PM +0800, Xiongfeng Wang wrote: > When I cat some module parameters by sysfs, it displays as follows. It's > better to add a newline for easy reading. > > root@syzkaller:~# cat /sys/module/ati_remote2/parameters/mode_mask > 0x1froot@syzkaller:~# cat /sys/module/ati_

Re: [PATCH] Input: psmouse: add a newline when printing 'proto' by sysfs

2020-07-21 Thread Dmitry Torokhov
On Mon, Jul 20, 2020 at 03:38:46PM +0800, Xiongfeng Wang wrote: > When I cat parameter 'proto' by sysfs, it displays as follows. It's > better to add a newline for easy reading. > > root@syzkaller:~# cat /sys/module/psmouse/parameters/proto > autoroot@syzkaller:~# > > Signed-off-by: Xiongfeng Wan

[PATCH 0/2] xtensa: boot targets cleanup

2020-07-21 Thread Max Filippov
Hello, this small clean up in the xtensa boot subdirectory adds more targets to the 'targets' variable to avoid unnecessary rebuils. Max Filippov (2): xtensa: move vmlinux.bin[.gz] to boot subdirectory xtensa: add uImage and xipImage to targets arch/xtensa/boot/Makefile | 12 ++

Re: [PATCH 4.19 123/133] thermal/drivers/cpufreq_cooling: Fix wrong frequency converted from power

2020-07-21 Thread Viresh Kumar
On 21-07-20, 13:43, Pavel Machek wrote: > On Mon 2020-07-20 17:37:50, Greg Kroah-Hartman wrote: > > From: Finley Xiao > > > > commit 371a3bc79c11b707d7a1b7a2c938dc3cc042fffb upstream. > > > > The function cpu_power_to_freq is used to find a frequency and set the > > cooling device to consume at

[PATCH 2/2] xtensa: add uImage and xipImage to targets

2020-07-21 Thread Max Filippov
uImage and xipImage are always rebuilt in the xtensa kernel build process. Add them to 'targets' to avoid that. Signed-off-by: Max Filippov --- arch/xtensa/boot/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/xtensa/boot/Makefile b/arch/xtensa/boot/Makefile index 801fe30b4dfe..

Re: [PATCH v5 0/6] Add support for GPU DDR BW scaling

2020-07-21 Thread Viresh Kumar
On 21-07-20, 07:28, Rob Clark wrote: > With your ack, I can add the patch the dev_pm_opp_set_bw patch to my > tree and merge it via msm-next -> drm-next -> linus I wanted to send it via my tree, but its okay. Pick this patch from linux-next and add my Ack, I will drop it after that. a8351c12c6c7

Re: [PATCH RFC V2 17/17] x86/entry: Preserve PKRS MSR across exceptions

2020-07-21 Thread Ira Weiny
On Fri, Jul 17, 2020 at 12:06:10PM +0200, Peter Zijlstra wrote: > On Fri, Jul 17, 2020 at 12:20:56AM -0700, ira.we...@intel.com wrote: > > First I'm not sure if adding this state to idtentry_state and having > > that state copied is the right way to go. It seems like we should start > > passing th

Re: [PATCH v6 1/6] tty: serial: qcom_geni_serial: Use OPP API to set clk/perf state

2020-07-21 Thread Viresh Kumar
On 21-07-20, 01:43, Stephen Boyd wrote: > It seems that dev_pm_opp_set_rate() calls _find_opp_table() and finds > something that isn't an error pointer but then dev_pm_opp_of_add_table() > returns an error value because there isn't an operating-points property > in DT. We're getting saved because t

[PATCH 0/1] MIPS: X2000: Add X2000 system type.

2020-07-21 Thread Zhou Yanjie
1.Add "PRID_COMP_INGENIC_13" and "PRID_IMP_XBURST2" for X2000. 2.Add X2000 system type for cat /proc/cpuinfo to give out X2000. 周琰杰 (Zhou Yanjie) (1): MIPS: X2000: Add X2000 system type. arch/mips/include/asm/bootinfo.h | 1 + arch/mips/include/asm/cpu.h | 6 -- arch/mips/jz4740/set

[PATCH 1/1] MIPS: X2000: Add X2000 system type.

2020-07-21 Thread Zhou Yanjie
1.Add "PRID_COMP_INGENIC_13" and "PRID_IMP_XBURST2" for X2000. 2.Add X2000 system type for cat /proc/cpuinfo to give out X2000. Signed-off-by: 周琰杰 (Zhou Yanjie) --- arch/mips/include/asm/bootinfo.h | 1 + arch/mips/include/asm/cpu.h | 6 -- arch/mips/jz4740/setup.c | 4

[PATCH] drm/virtio: fix memory leak in virtio_gpu_cleanup_object()

2020-07-21 Thread Xin He
Before setting shmem->pages to NULL, kfree() should be called. Signed-off-by: Xin He Reviewed-by: Qi Liu --- drivers/gpu/drm/virtio/virtgpu_object.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/virtio/virtgpu_object.c b/drivers/gpu/drm/virtio/virtgpu_object.c index 6ccbd

Re: [PATCH] raid: md_p.h: drop duplicated word in a comment

2020-07-21 Thread Song Liu
On Fri, Jul 17, 2020 at 4:37 PM Randy Dunlap wrote: > > From: Randy Dunlap > > Drop the doubled word "the" in a comment. > > Signed-off-by: Randy Dunlap > Cc: Song Liu > Cc: linux-r...@vger.kernel.org Applied to md-next. Thanks! > --- > include/uapi/linux/raid/md_p.h |2 +- > 1 file chan

Re: [PATCH] perf-c2c: Fix the wrong description.

2020-07-21 Thread jun qian
On Thu, Jul 9, 2020 at 9:07 PM qianjun wrote: > > From: qianjun > > Use L1Miss to replace L1Hit to describe the correct scene > > Signed-off-by: qianjun > --- > tools/perf/Documentation/perf-c2c.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/perf/Documentatio

Re: [PATCH v2] perf evsel: Don't set sample_regs_intr/sample_regs_user for dummy event

2020-07-21 Thread Jin, Yao
Hi Jiri, On 7/20/2020 5:17 PM, Jiri Olsa wrote: On Mon, Jul 20, 2020 at 09:00:13AM +0800, Jin Yao wrote: Since commit 0a892c1c9472 ("perf record: Add dummy event during system wide synthesis"), a dummy event is added to capture mmaps. But if we run perf-record as, # perf record -e cycles:p

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

2020-07-21 Thread jun qian
Hi Peter & Uladzislau Are there any issues that have not been considered in this patch? Can you give me some suggestions on this issue. If the situation I described is indeed a problem,how about this modification. Thanks a lot. On Mon, Jul 20, 2020 at 9:09 PM wrote: > > From: jun qian > > When

[GIT PULL] exfat fixes for 5.8-rc7

2020-07-21 Thread Namjae Jeon
Hi Linus, This is exfat fixes pull request for v5.8-rc7. I add description of this pull request on below. Please pull exfat with following fixes. Thanks! The following changes since commit ba47d845d715a010f7b51f6f89bae32845e6acb7: Linux 5.8-rc6 (2020-07-19 15:41:18 -0700) are available in th

[PATCH] Makefile.extrawarn: Move sign-compare from W=2 to W=3

2020-07-21 Thread Joe Perches
This -Wsign-compare compiler warning can be very noisy and most of the suggested conversions are unnecessary. Make the warning W=3 so it's described under the "can most likely be ignored" block. Signed-off-by: Joe Perches --- On Tue, 2020-07-21 at 14:32 -0700, Joe Perches wrote: > On Tue, 2020-0

Re: [PATCH v4 2/3] powerpc/powernv/idle: Rename pnv_first_spr_loss_level variable

2020-07-21 Thread Gautham R Shenoy
On Tue, Jul 21, 2020 at 09:07:07PM +0530, Pratik Rajesh Sampat wrote: > Replace the variable name from using "pnv_first_spr_loss_level" to > "deep_spr_loss_state". > > pnv_first_spr_loss_level is supposed to be the earliest state that > has OPAL_PM_LOSE_FULL_CONTEXT set, in other places the kernel

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

2020-07-21 Thread Michael Ellerman
Benjamin Herrenschmidt writes: > On Tue, 2020-07-21 at 16:48 -0700, Palmer Dabbelt wrote: >> > Why ? Branch distance limits ? You can't use trampolines ? >> >> Nothing fundamental, it's just that we don't have a large code model in the C >> compiler. As a result all the global symbols are resolv

  1   2   3   4   5   6   7   8   9   10   >