Re: [PATCH] s390: cmf: fix use-after-free in enable_cmf

2020-11-20 Thread Cornelia Huck
On Fri, 20 Nov 2020 15:48:50 +0800 Qinglang Miao wrote: > kfree(cdev) is called in put_device in the error branch. So that > device_unlock(>dev) would raise a use-after-free bug. In fact, > there's no need to call device_unlock after put_device. > > Fix it by adding simply return after

Re: [PATCH] drm/ttm: remove unused varibles

2020-11-20 Thread Christian König
Am 20.11.20 um 07:49 schrieb Tian Tao: fixed the following warnings drivers/gpu/drm/nouveau/nouveau_bo.c:1227:17: warning: variable ‘dev’ set but not used [-Wunused-but-set-variable] drivers/gpu/drm/nouveau/nouveau_bo.c:1251:17: warning: variable ‘dev’ set but not used

Re: [PATCH v2] nvme: Cache DMA descriptors to prevent corruption.

2020-11-20 Thread Christoph Hellwig
On Thu, Nov 19, 2020 at 05:27:37PM -0800, Tom Roeder wrote: > This patch changes the NVMe PCI implementation to cache host_mem_descs > in non-DMA memory instead of depending on descriptors stored in DMA > memory. This change is needed under the malicious-hypervisor threat > model assumed by the

Re: [PATCH] m68k/mac: Remove redundant VIA register writes

2020-11-20 Thread Geert Uytterhoeven
On Fri, Nov 20, 2020 at 5:51 AM Finn Thain wrote: > There's no need to write the same value to the timer latch and timer > counter registers. Values written to the counter registers get stored > in the latches anyway. The write to vT1CH copies the latch values to > the counter. > > Cc: Joshua

[PATCH next] mm/vmscan: __isolate_lru_page_prepare clean up

2020-11-20 Thread Alex Shi
The function just return 2 results, so use a 'switch' to deal with its result is unnecessary, and simplify it to a bool func as Vlastimil suggested. Also removed 'goto' in using by reusing list_move(). Signed-off-by: Alex Shi Cc: Andrew Morton Cc: Hugh Dickins Cc: Yu Zhao Cc: Vlastimil Babka

Re: Linux 5.10-rc4

2020-11-20 Thread Thomas Zimmermann
Hi David Am 18.11.20 um 23:01 schrieb David Laight: From: Thomas Zimmermann Sent: 18 November 2020 19:37 Hi Am 18.11.20 um 19:10 schrieb Linus Torvalds: On Wed, Nov 18, 2020 at 4:12 AM David Laight wrote: I've got the 'splat' below during boot. This is an 8-core C2758 Atom cpu using the

Re: [PATCH v3 1/4] usb: typec: Use Thunderbolt 3 cable discover mode VDO in Enter_USB message

2020-11-20 Thread Heikki Krogerus
On Wed, Nov 18, 2020 at 10:32:08PM -0800, Utkarsh Patel wrote: > When Thunderbolt 3 cable is being used to create USB4 connection, use > Thunderbolt 3 discover mode VDO to fill details such as active cable plug > link training and cable rounded support. > With USB4 cables, these VDO members need

Re: [PATCH v6 06/17] media: videobuf2: Move frame_vector into media subsystem

2020-11-20 Thread Hans Verkuil
On 19/11/2020 15:41, Daniel Vetter wrote: > It's the only user. This also garbage collects the CONFIG_FRAME_VECTOR > symbol from all over the tree (well just one place, somehow omap media > driver still had this in its Kconfig, despite not using it). > > Reviewed-by: John Hubbard > Acked-by:

Re: [PATCH v6 09/17] media/videbuf1|2: Mark follow_pfn usage as unsafe

2020-11-20 Thread Hans Verkuil
On 19/11/2020 15:41, Daniel Vetter wrote: > The media model assumes that buffers are all preallocated, so that > when a media pipeline is running we never miss a deadline because the > buffers aren't allocated or available. > > This means we cannot fix the v4l follow_pfn usage through >

Re: [PATCH 1/2] m68k: Drop redundant NOTES in link script

2020-11-20 Thread Geert Uytterhoeven
On Fri, Nov 20, 2020 at 7:08 AM Youling Tang wrote: > Commit eaf937075c9a ("vmlinux.lds.h: Move NOTES into RO_DATA") after > should remove redundant NOTES. > > Signed-off-by: Youling Tang Reviewed-by: Geert Uytterhoeven i.e. will queue in the m68k for-v5.11 branch. Gr{oetje,eeting}s,

Re: [PATCH v5 11/21] mm/hugetlb: Allocate the vmemmap pages associated with each hugetlb page

2020-11-20 Thread Michal Hocko
On Fri 20-11-20 14:43:15, Muchun Song wrote: [...] > diff --git a/mm/hugetlb_vmemmap.c b/mm/hugetlb_vmemmap.c > index eda7e3a0b67c..361c4174e222 100644 > --- a/mm/hugetlb_vmemmap.c > +++ b/mm/hugetlb_vmemmap.c > @@ -117,6 +117,8 @@ > #define RESERVE_VMEMMAP_NR 2U > #define

Re: [PATCH v3 1/2] epoll: add nsec timeout support with epoll_pwait2

2020-11-20 Thread Arnd Bergmann
On Thu, Nov 19, 2020 at 9:13 PM Willem de Bruijn wrote: > On Thu, Nov 19, 2020 at 10:45 AM Arnd Bergmann wrote: > > On Thu, Nov 19, 2020 at 3:31 PM Matthew Wilcox wrote: > > The right shift would work indeed, but it's also a bit ugly unless > > __estimate_accuracy() is changed to always use the

Re: [PATCH v2 1/2] iov_iter: optimise iov_iter_npages for bvec

2020-11-20 Thread Christoph Hellwig
On Fri, Nov 20, 2020 at 02:54:57AM +, Matthew Wilcox wrote: > On Fri, Nov 20, 2020 at 02:25:08AM +, Pavel Begunkov wrote: > > On 20/11/2020 02:22, Ming Lei wrote: > > > iov_iter_npages(bvec) still can be improved a bit by the following way: > > > > Yep, was doing exactly that, +a couple

Re: [PATCH v5 13/21] mm/hugetlb: Use PG_slab to indicate split pmd

2020-11-20 Thread Michal Hocko
On Fri 20-11-20 14:43:17, Muchun Song wrote: > When we allocate hugetlb page from buddy, we may need split huge pmd > to pte. When we free the hugetlb page, we can merge pte to pmd. So > we need to distinguish whether the previous pmd has been split. The > page table is not allocated from slab. So

Re: [PATCH] tty: serial: rad-uart: replace spin_lock_irqsave by spin_lock in hard IRQ

2020-11-20 Thread Johan Hovold
On Fri, Nov 20, 2020 at 09:26:53AM +0800, Tian Tao wrote: > The code has been in a irq-disabled context since it is hard IRQ. There > is no necessity to do it again. > > Signed-off-by: Tian Tao > --- > drivers/tty/serial/rda-uart.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) >

Re: [PATCH 2/2] m68k: Add a missing ELF_DETAILS in link script

2020-11-20 Thread Geert Uytterhoeven
On Fri, Nov 20, 2020 at 7:08 AM Youling Tang wrote: > Commit c604abc3f6e3 ("vmlinux.lds.h: Split ELF_DETAILS from STABS_DEBUG") > after should add a missing ELF_DETAILS, at the same time, the .comment > section has been included in the ELF_DETAILS. > > Signed-off-by: Youling Tang Reviewed-by:

Re: [PATCH v5 15/21] mm/hugetlb: Set the PageHWPoison to the raw error page

2020-11-20 Thread Michal Hocko
On Fri 20-11-20 14:43:19, Muchun Song wrote: > Because we reuse the first tail page, if we set PageHWPosion on a > tail page. It indicates that we may set PageHWPoison on a series > of pages. So we can use the head[4].mapping to record the real > error page index and set the raw error page

Re: [PATCH v5 16/21] mm/hugetlb: Flush work when dissolving hugetlb page

2020-11-20 Thread Michal Hocko
On Fri 20-11-20 14:43:20, Muchun Song wrote: > We should flush work when dissolving a hugetlb page to make sure that > the hugetlb page is freed to the buddy. Why? This explanation on its own doen't really help to understand what is the point of the patch. > > Signed-off-by: Muchun Song > ---

Re: [PATCH v5 17/21] mm/hugetlb: Add a kernel parameter hugetlb_free_vmemmap

2020-11-20 Thread Michal Hocko
On Fri 20-11-20 14:43:21, Muchun Song wrote: > Add a kernel parameter hugetlb_free_vmemmap to disable the feature of > freeing unused vmemmap pages associated with each hugetlb page on boot. As replied to the config patch. This is fine but I would argue that the default should be flipped. Saving

Re: [PATCH] dt-bindings: pwm: pca9685: Add staggered-outputs property

2020-11-20 Thread Uwe Kleine-König
On Wed, Nov 18, 2020 at 06:45:15PM +0100, Clemens Gruber wrote: > The pca9685 driver supports a new staggered-outputs property for reduced > current surges and EMI. This adds documentation for the new DT property. Maybe point out the commit that added this support here? Best regards Uwe --

Re: [PATCH] tty: serial: replace spin_lock_irqsave by spin_lock in hard IRQ

2020-11-20 Thread Johan Hovold
On Thu, Nov 19, 2020 at 05:01:29PM +0800, Tian Tao wrote: > The code has been in a irq-disabled context since it is hard IRQ. There > is no necessity to do it again. > > Signed-off-by: Tian Tao > --- > drivers/tty/serial/owl-uart.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) >

[PATCH net v2] ipvs: fix possible memory leak in ip_vs_control_net_init

2020-11-20 Thread Wang Hai
kmemleak report a memory leak as follows: BUG: memory leak unreferenced object 0x8880759ea000 (size 256): comm "syz-executor.3", pid 6484, jiffies 4297476946 (age 48.546s) hex dump (first 32 bytes): 00 00 00 00 01 00 00 00 08 a0 9e 75 80 88 ff ff ...u 08 a0 9e 75 80 88 ff ff 00 00

Re: [PATCH v5 18/21] mm/hugetlb: Merge pte to huge pmd only for gigantic page

2020-11-20 Thread Michal Hocko
On Fri 20-11-20 14:43:22, Muchun Song wrote: > Merge pte to huge pmd if it has ever been split. Now only support > gigantic page which's vmemmap pages size is an integer multiple of > PMD_SIZE. This is the simplest case to handle. I think it would be benefitial for anybody who plan to implement

[PATCH] video: goldfishfb: remove casting dma_alloc_coherent

2020-11-20 Thread Xu Wang
Remove casting the values returned by dma_alloc_coherent. Signed-off-by: Xu Wang --- drivers/video/fbdev/goldfishfb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/video/fbdev/goldfishfb.c b/drivers/video/fbdev/goldfishfb.c index 9c83ec3f8e1f..c2f386b35617 100644

Re: [PATCH v5 21/21] mm/hugetlb: Disable freeing vmemmap if struct page size is not power of two

2020-11-20 Thread Michal Hocko
On Fri 20-11-20 14:43:25, Muchun Song wrote: > We only can free the unused vmemmap to the buddy system when the > size of struct page is a power of two. Can we actually have !power_of_2 struct pages? > > Signed-off-by: Muchun Song > --- > mm/hugetlb_vmemmap.c | 3 ++- > 1 file changed, 2

[PATCH next] mm/swap.c: reduce lock contention in lru_cache_add

2020-11-20 Thread Alex Shi
The current relock logical will change lru_lock when found a new lruvec, so if 2 memcgs are reading file or alloc page at same time, they could hold the lru_lock alternately, and wait for each other for fairness attribute of ticket spin lock. This patch will sort that all lru_locks and only hold

Re: [PATCH v6 09/17] media/videbuf1|2: Mark follow_pfn usage as unsafe

2020-11-20 Thread Hans Verkuil
On 20/11/2020 09:06, Hans Verkuil wrote: > On 19/11/2020 15:41, Daniel Vetter wrote: >> The media model assumes that buffers are all preallocated, so that >> when a media pipeline is running we never miss a deadline because the >> buffers aren't allocated or available. >> >> This means we cannot

Re: [PATCH net] ipvs: fix possible memory leak in ip_vs_control_net_init

2020-11-20 Thread wanghai (M)
在 2020/11/20 2:22, Julian Anastasov 写道: Hello, On Thu, 19 Nov 2020, Wang Hai wrote: kmemleak report a memory leak as follows: BUG: memory leak unreferenced object 0x8880759ea000 (size 256): comm "syz-executor.3", pid 6484, jiffies 4297476946 (age 48.546s) hex dump (first 32

[PATCH] usb: fotg210-hcd: remove casting dma_alloc_coherent

2020-11-20 Thread Xu Wang
Remove casting the values returned by dma_alloc_coherent. Signed-off-by: Xu Wang --- drivers/usb/host/fotg210-hcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host/fotg210-hcd.c index 1d94fcfac2c2..8961492a4c53 100644 ---

Re: [PATCH v6 09/17] media/videbuf1|2: Mark follow_pfn usage as unsafe

2020-11-20 Thread Tomasz Figa
On Fri, Nov 20, 2020 at 5:28 PM Hans Verkuil wrote: > > On 20/11/2020 09:06, Hans Verkuil wrote: > > On 19/11/2020 15:41, Daniel Vetter wrote: > >> The media model assumes that buffers are all preallocated, so that > >> when a media pipeline is running we never miss a deadline because the > >>

Re: [PATCH v8 2/3] dt-bindings: arm: cpus: Document 'mediatek,freq-domain' property

2020-11-20 Thread Lukasz Luba
On 11/19/20 5:13 PM, Sudeep Holla wrote: On Thu, Nov 19, 2020 at 03:23:20PM +, Lukasz Luba wrote: On 10/28/20 3:08 PM, Rob Herring wrote: On Mon, Oct 26, 2020 at 04:19:08PM +0800, Hector Yuan wrote: From: "Hector.Yuan" Add devicetree documentation for 'mediatek,freq-domain'

Re: [PATCH] usb: musb: remove unused variable 'devctl'

2020-11-20 Thread Greg Kroah-Hartman
On Fri, Nov 20, 2020 at 03:42:06PM +0800, Min Guo wrote: > On Fri, 2020-11-20 at 07:54 +0100, Greg Kroah-Hartman wrote: > > On Fri, Nov 20, 2020 at 02:48:50PM +0800, Min Guo wrote: > > > Hi greg k-h: > > > On Wed, 2020-11-18 at 12:48 +0100, Greg Kroah-Hartman wrote: > > > > On Tue, Nov 17, 2020 at

Re: [External] Re: [PATCH v5 03/21] mm/hugetlb: Introduce a new config HUGETLB_PAGE_FREE_VMEMMAP

2020-11-20 Thread Muchun Song
On Fri, Nov 20, 2020 at 3:49 PM Michal Hocko wrote: > > On Fri 20-11-20 14:43:07, Muchun Song wrote: > > The purpose of introducing HUGETLB_PAGE_FREE_VMEMMAP is to configure > > whether to enable the feature of freeing unused vmemmap associated > > with HugeTLB pages. Now only support x86. > >

Re: [PATCH v3 1/4] usb: typec: Use Thunderbolt 3 cable discover mode VDO in Enter_USB message

2020-11-20 Thread Prashant Malani
On Fri, Nov 20, 2020 at 10:05:14AM +0200, Heikki Krogerus wrote: > On Wed, Nov 18, 2020 at 10:32:08PM -0800, Utkarsh Patel wrote: > > When Thunderbolt 3 cable is being used to create USB4 connection, use > > Thunderbolt 3 discover mode VDO to fill details such as active cable plug > > link

[GIT PULL] sound fixes for 5.10-rc5

2020-11-20 Thread Takashi Iwai
Linus, please pull sound fixes for v5.10-rc5 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-5.10-rc5 The topmost commit is aecd1fbe7784e75226682afe7a9c3a34af35aa3e sound fixes for 5.10-rc5 A

[PATCH] scsi: pm8001: remove casting kcalloc

2020-11-20 Thread Xu Wang
Remove casting the values returned by kcalloc. Signed-off-by: Xu Wang --- drivers/scsi/pm8001/pm8001_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/pm8001/pm8001_init.c b/drivers/scsi/pm8001/pm8001_init.c index 3cf3e58b6979..ac0e598b8ac2 100644 ---

Re: [PATCH v3 0/5] console: Miscellaneous clean-ups, do not use FNTCHARCNT() in fbcon.c

2020-11-20 Thread Peilin Ye
On Thu, Nov 19, 2020 at 04:10:57PM +0100, Daniel Vetter wrote: > On Thu, Nov 19, 2020 at 9:33 AM Peilin Ye wrote: > > setfont seems to work fine, I tried Georgian-Fixed16 (256 chars) and > > Uni2-VGA16 (512 chars) under /usr/share/consolefonts/ in my Ubuntu box, > > including setting all consoles

[PATCH RFC v2 1/1] scsi: pm: Leave runtime PM status alone during system resume/thaw/restore

2020-11-20 Thread Can Guo
Runtime resume is handled by runtime PM framework, no need to forcibly set runtime PM status to RPM_ACTIVE during system resume/thaw/restore. Cc: Stanley Chu Cc: Bart Van Assche Cc: Alan Stern Signed-off-by: Can Guo --- Changes since v1: - Incorporated Bart's comments ---

Re: [PATCH 2/4] pinctrl: renesas: r8a77951: Add QSPI[01] pins, groups and functions

2020-11-20 Thread Geert Uytterhoeven
On Thu, Nov 19, 2020 at 2:09 PM Lad Prabhakar wrote: > Add pins, groups and functions for QSPIO[01]. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Biju Das Reviewed-by: Geert Uytterhoeven i.e. will queue in renesas-pinctrl-for-v5.11. Gr{oetje,eeting}s, Geert --

Re: [PATCH v4] mm: Optional full ASLR for mmap() and mremap()

2020-11-20 Thread Topi Miettinen
On 20.11.2020 0.20, Cristiano Giuffrida wrote: On Thu, Nov 19, 2020 at 10:59 AM Topi Miettinen wrote: On 18.11.2020 20.49, Cristiano Giuffrida wrote: Interesting mitigation and discussion! Regarding the impact on the AnC attack, indeed fine-grained (or full) mmap() randomization affects AnC

Re: [PATCH] usb: typec: Fix num_altmodes kernel-doc error

2020-11-20 Thread Greg KH
On Thu, Nov 19, 2020 at 10:35:22PM -0800, Prashant Malani wrote: > The commit to introduce the num_altmodes attribute for partner had an > error where one of the parameters was named differently in the comment > and the function signature. Fix the version in the comment to align with > what is in

Re: [PATCH v5 00/21] Free some vmemmap pages of hugetlb page

2020-11-20 Thread Michal Hocko
On Fri 20-11-20 14:43:04, Muchun Song wrote: [...] Thanks for improving the cover letter and providing some numbers. I have only glanced through the patchset because I didn't really have more time to dive depply into them. Overall it looks promissing. To summarize. I would prefer to not have the

[PATCH net-next v3 0/3] net: ptp: introduce common defines for PTP message types

2020-11-20 Thread Christian Eggers
This series introduces commen defines for PTP event messages. Driver internal defines are removed and some uses of magic numbers are replaced by the new defines. Changes v2 --> v3 -- - extend commit description for ptp_ines (Jacob Keller) Changes v1 --> v2 -- -

general protection fault in gfs2_ri_update

2020-11-20 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:92edc4ae Add linux-next specific files for 20201113 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1564a81c50 kernel config: https://syzkaller.appspot.com/x/.config?x=79ad4f8ad2d96176 dashboard

[PATCH 1/3] uio: uio_sercos3: use device-managed functions for simple allocs

2020-11-20 Thread Alexandru Ardelean
This change converts the simple allocations [kzalloc()] to devm_kzalloc() tying the life-time of these objects to the PCI device object. It cleans up the error and exit path and bit, and does a minor correction that -ENOMEM is returned (vs -ENODEV) in case the 'priv' object cannot be allocated.

[PATCH 3/3] uio: uio_netx: use devm_kzalloc() for or uio_info object

2020-11-20 Thread Alexandru Ardelean
This change uses the devm_kzalloc() function to tie the life-time of the uio_info object to PCI device. This cleans up the exit & error path a bit. Signed-off-by: Alexandru Ardelean --- drivers/uio/uio_netx.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git

[PATCH 2/3] uio: uio_mf624: use devm_kzalloc() for uio_info object

2020-11-20 Thread Alexandru Ardelean
This change uses the devm_kzalloc() function to tie the life-time of the uio_info object to PCI device. This cleans up the exit & error path a bit. Signed-off-by: Alexandru Ardelean --- drivers/uio/uio_mf624.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git

Re: [PATCH 3/4] pinctrl: renesas: r8a7796: Add QSPI[01] pins, groups and functions

2020-11-20 Thread Geert Uytterhoeven
On Thu, Nov 19, 2020 at 2:09 PM Lad Prabhakar wrote: > Add pins, groups and functions for QSPIO[01]. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Biju Das Reviewed-by: Geert Uytterhoeven i.e. will queue in renesas-pinctrl-for-v5.11. Gr{oetje,eeting}s, Geert --

[PATCH net-next v3 1/3] net: ptp: introduce common defines for PTP message types

2020-11-20 Thread Christian Eggers
Using PTP wide defines will obsolete different driver internal defines and uses of magic numbers. Signed-off-by: Christian Eggers Cc: Kurt Kanzenbach --- include/linux/ptp_classify.h | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/linux/ptp_classify.h

Re: [PATCH 4/4] pinctrl: renesas: r8a77965: Add QSPI[01] pins, groups and functions

2020-11-20 Thread Geert Uytterhoeven
On Thu, Nov 19, 2020 at 2:09 PM Lad Prabhakar wrote: > Add pins, groups and functions for QSPIO[01]. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Biju Das Reviewed-by: Geert Uytterhoeven i.e. will queue in renesas-pinctrl-for-v5.11. Gr{oetje,eeting}s, Geert --

Re: [PATCH] usb: typec: Fix num_altmodes kernel-doc error

2020-11-20 Thread Prashant Malani
On Fri, Nov 20, 2020 at 09:41:21AM +0100, Greg KH wrote: > On Thu, Nov 19, 2020 at 10:35:22PM -0800, Prashant Malani wrote: > > The commit to introduce the num_altmodes attribute for partner had an > > error where one of the parameters was named differently in the comment > > and the function

[PATCH net-next v3 3/3] ptp: ptp_ines: use new PTP_MSGTYPE_* define(s)

2020-11-20 Thread Christian Eggers
Remove driver internal defines for this. Masking msgtype with 0xf is already done within ptp_get_msgtype(). Signed-off-by: Christian Eggers Cc: Richard Cochran Cc: Kurt Kanzenbach --- drivers/ptp/ptp_ines.c | 19 +++ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git

Re: [PATCH 3/4] pinctrl: renesas: r8a7796: Add QSPI[01] pins, groups and functions

2020-11-20 Thread Geert Uytterhoeven
On Thu, Nov 19, 2020 at 2:09 PM Lad Prabhakar wrote: > Add pins, groups and functions for QSPIO[01]. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Biju Das > --- a/drivers/pinctrl/renesas/pfc-r8a7796.c > +++ b/drivers/pinctrl/renesas/pfc-r8a7796.c > +static const unsigned int

[PATCH net-next v3 2/3] dpaa2-eth: use new PTP_MSGTYPE_* define(s)

2020-11-20 Thread Christian Eggers
Remove usage of magic numbers. Signed-off-by: Christian Eggers Cc: Ioana Ciornei Cc: Ioana Radulescu Cc: Yangbo Lu --- drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c

Re: [PATCH v3 00/13] Stateless H.264 de-staging

2020-11-20 Thread Hans Verkuil
On 18/11/2020 19:46, Ezequiel Garcia wrote: > Now that H.264 stateless controls are solid, we can get it > out of staging. > > Following some guidelines from Hans, this series creates a > new stateless control class for the stable codec controls to land. > > While here, I'm including a patch

Re: [External] Re: [PATCH v5 03/21] mm/hugetlb: Introduce a new config HUGETLB_PAGE_FREE_VMEMMAP

2020-11-20 Thread Michal Hocko
On Fri 20-11-20 16:35:16, Muchun Song wrote: [...] > > That being said, unless there are huge advantages to introduce a > > config option I would rather not add it because our config space is huge > > already and the more we add the more future code maintainance that will > > add. If you want the

Re: [PATCH] rcu: kasan: record and print kvfree_call_rcu call stack

2020-11-20 Thread Dmitry Vyukov
On Thu, Nov 19, 2020 at 10:49 PM Paul E. McKenney wrote: > > On Wed, Nov 18, 2020 at 11:53:09AM +0800, qiang.zh...@windriver.com wrote: > > From: Zqiang > > > > Add kasan_record_aux_stack function for kvfree_call_rcu function to > > record call stacks. > > > > Signed-off-by: Zqiang > > Thank

Re: [External] Re: [PATCH v5 11/21] mm/hugetlb: Allocate the vmemmap pages associated with each hugetlb page

2020-11-20 Thread Muchun Song
On Fri, Nov 20, 2020 at 4:11 PM Michal Hocko wrote: > > On Fri 20-11-20 14:43:15, Muchun Song wrote: > [...] > > diff --git a/mm/hugetlb_vmemmap.c b/mm/hugetlb_vmemmap.c > > index eda7e3a0b67c..361c4174e222 100644 > > --- a/mm/hugetlb_vmemmap.c > > +++ b/mm/hugetlb_vmemmap.c > > @@ -117,6 +117,8

Re: [PATCH v3 1/4] usb: typec: Use Thunderbolt 3 cable discover mode VDO in Enter_USB message

2020-11-20 Thread Heikki Krogerus
On Fri, Nov 20, 2020 at 12:36:25AM -0800, Prashant Malani wrote: > On Fri, Nov 20, 2020 at 10:05:14AM +0200, Heikki Krogerus wrote: > > On Wed, Nov 18, 2020 at 10:32:08PM -0800, Utkarsh Patel wrote: > > > When Thunderbolt 3 cable is being used to create USB4 connection, use > > > Thunderbolt 3

Re: [External] Re: [PATCH v5 03/21] mm/hugetlb: Introduce a new config HUGETLB_PAGE_FREE_VMEMMAP

2020-11-20 Thread Muchun Song
On Fri, Nov 20, 2020 at 4:47 PM Michal Hocko wrote: > > On Fri 20-11-20 16:35:16, Muchun Song wrote: > [...] > > > That being said, unless there are huge advantages to introduce a > > > config option I would rather not add it because our config space is huge > > > already and the more we add the

[PATCH] kvm/x86/mmu: use the correct inherited permissions to get shadow page

2020-11-20 Thread Lai Jiangshan
From: Lai Jiangshan Commit 41074d07c78b ("KVM: MMU: Fix inherited permissions for emulated guest pte updates") said role.access is common access permissions for all ptes in this shadow page, which is the inherited permissions from the parent ptes. But the commit did not enforce this definition

Kernel warning "TX on unused queue" for iwlwifi on 7260 with kernel 5.10-rc2

2020-11-20 Thread Gonsolo
Output of lspci -nn: 02:00.0 Network controller [0280]: Intel Corporation Wireless 7260 [8086:08b1] (rev 73) > Guy, can you help with this one? I believe there is a bugzilla issue > for this already... I'd like to know this too. -- g

Re: AMU extension v1 support for cortex A76, A77, A78 CPUs

2020-11-20 Thread Marc Zyngier
On 2020-11-20 04:30, Neeraj Upadhyay wrote: Hi, For ARM cortex A76, A77, A78 cores (which as per TRM, support AMU) AA64PFR0[47:44] field is not set, and AMU does not get enabled for them. Can you please provide support for these CPUs in cpufeature.c? If that was the case, that'd be an

RE: [PATCH v4 13/15] dmaengine: dw-axi-dmac: Add Intel KeemBay AxiDMA handshake

2020-11-20 Thread Sia, Jee Heng
Hi Eugeniy, With regards to the below comment > > In some places you check for this region existence using if > > (IS_ERR(chip->regs)) and in other places you use if (!chip->apb_regs) The main reason of using IS_ERR() is because of the ioremap() function return an error value if the mapping

[PATCH 0/2] Fix USB2 PHY operation on Exynos542x

2020-11-20 Thread Marek Szyprowski
Dear All, This patchset finally fixes the last remaining issue related to the system suspend/resume on Odroid XU3/XU4/HC1 board family. It can be observed that system suspend/resume fails on XU4/HC1 when kernel is compiled from multi_v7_defconfig. Chaning the configuration a bit - switching

Re: [RFC] Documentation/scheduler/schedutil.txt

2020-11-20 Thread Peter Zijlstra
On Fri, Nov 20, 2020 at 08:55:27AM +0100, Peter Zijlstra wrote: > - In saturated scenarios task movement will cause some transient dips, >suppose we have a CPU saturated with 4 tasks, then when we migrate a task >to an idle CPU, the old CPU will have a 'running' value of 0.75 while the >

[PATCH 1/2] phy: samsung: Add support for the Exynos5420 variant of the USB2 PHY

2020-11-20 Thread Marek Szyprowski
Exynos5420 differs a bit from Exynos5250 in USB2 PHY related registers in the PMU region. Add a variant for the Exynos5420 case. Till now, USB2 PHY worked only because the bootloader enabled the PHY, but then driver messed USB 3.0 DRD related registers during the suspend/resume cycle.

Re: [PATCH] scsi: pm8001: remove casting kcalloc

2020-11-20 Thread Jinpu Wang
On Fri, Nov 20, 2020 at 9:36 AM Xu Wang wrote: > > Remove casting the values returned by kcalloc. > > Signed-off-by: Xu Wang Acked-by: Jack Wang Thanks Xu! > --- > drivers/scsi/pm8001/pm8001_init.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git

[PATCH 0/4] crypto: hisilicon/trng - add HiSilicon TRNG driver support

2020-11-20 Thread Weili Qian
1. Move HiSilicon TRNG driver form 'drivers/char/hw_random/' to 'drivers/crypto/hisilicon/'. 2. Add support for PRNG in Crypto subsystem. Weili Qian (4): hwrng: hisi - remove HiSilicon TRNG driver crypto: hisilicon/trng - add HiSilicon TRNG driver support crypto: hisilicon/trng - add

Re: [PATCH for 5.4] powerpc/8xx: Always fault when _PAGE_ACCESSED is not set

2020-11-20 Thread Greg KH
On Thu, Nov 19, 2020 at 08:47:54AM +, Christophe Leroy wrote: > [This is backport for 5.4 of 29daf869cbab69088fe1755d9dd224e99ba78b56] > > The kernel expects pte_young() to work regardless of CONFIG_SWAP. All backports now queued up, thanks. greg k-h

[PATCH 2/2] ARM: dts: exynos: use Exynos5420 dedicated USB2 PHY compatible

2020-11-20 Thread Marek Szyprowski
USB2.0 PHY in Exynos5420 differs from Exynos5250 variant a bit, so use the recently introduced dedicated compatible for Exynos5420. Signed-off-by: Marek Szyprowski --- arch/arm/boot/dts/exynos54xx.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH] usb: serial: option: add Fibocom NL668 variants

2020-11-20 Thread vpalatin
From: Vincent Palatin Update the USB serial option driver support for the Fibocom NL668 Cat.4 LTE modules as there are actually several different variants. Got clarifications from Fibocom, there are distinct products: - VID:PID 1508:1001, NL668 for IOT (no MBIM interface) - VID:PID 2cb7:01a0,

Re: [PATCH] firmware: xilinx: Fix SD DLL node reset issue

2020-11-20 Thread Michal Simek
On 16. 11. 20 14:52, Manish Narani wrote: > Fix the SD DLL node reset issue where incorrect node is being referenced > instead of SD DLL node. > > Fixes: 426c8d85df7a ("firmware: xilinx: Use APIs instead of IOCTLs") > > Signed-off-by: Manish Narani > --- > drivers/firmware/xilinx/zynqmp.c |

Re: [PATCH] usb: musb: remove unused variable 'devctl'

2020-11-20 Thread Min Guo
On Fri, 2020-11-20 at 09:36 +0100, Greg Kroah-Hartman wrote: > On Fri, Nov 20, 2020 at 03:42:06PM +0800, Min Guo wrote: > > On Fri, 2020-11-20 at 07:54 +0100, Greg Kroah-Hartman wrote: > > > On Fri, Nov 20, 2020 at 02:48:50PM +0800, Min Guo wrote: > > > > Hi greg k-h: > > > > On Wed, 2020-11-18 at

[PATCH 1/4] hwrng: hisi - remove HiSilicon TRNG driver

2020-11-20 Thread Weili Qian
Driver of HiSilicon true random number generator(TRNG) is removed from 'drivers/char/hw_random'. Both 'Kunpeng 920' and 'Kunpeng 930' chips have TRNG, however, PRNG is only supported by 'Kunpeng 930'. So, this driver is moved to 'drivers/crypto/hisilicon/trng/' in the next to enable the two's

[PATCH 4/4] MAINTAINERS: Move HiSilicon TRNG V2 driver

2020-11-20 Thread Weili Qian
Move HiSilicon TRNG V2 driver into 'drivers/crypto/hisilicon/trng' with some updating on 'MAINTAINERS'. Signed-off-by: Weili Qian Reviewed-by: Zaibo Xu --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index e73636b..a835a74 100644

[PATCH 2/4] crypto: hisilicon/trng - add HiSilicon TRNG driver support

2020-11-20 Thread Weili Qian
Move existing char/hw_random/hisi-trng-v2.c to crypto/hisilicon/trng.c. Signed-off-by: Weili Qian Reviewed-by: Zaibo Xu --- arch/arm64/configs/defconfig | 1 + drivers/crypto/hisilicon/Kconfig | 7 +++ drivers/crypto/hisilicon/Makefile | 1 +

[PATCH 3/4] crypto: hisilicon/trng - add support for PRNG

2020-11-20 Thread Weili Qian
This patch adds support for pseudo random number generator(PRNG) in Crypto subsystem. Signed-off-by: Weili Qian Reviewed-by: Zaibo Xu --- drivers/crypto/hisilicon/Kconfig | 1 + drivers/crypto/hisilicon/trng/trng.c | 241 ++- 2 files changed, 239

[PATCH 1/4] sched/numa: Rename nr_running and break out the magic number

2020-11-20 Thread Mel Gorman
This is simply a preparation patch to make the following patches easier to read. No functional change. Signed-off-by: Mel Gorman --- kernel/sched/fair.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index

[PATCH 3/4] sched/numa: Allow a floating imbalance between NUMA nodes

2020-11-20 Thread Mel Gorman
Currently, an imbalance is only allowed when a destination node is almost completely idle. This solved one basic class of problems and was the cautious approach. This patch revisits the possibility that NUMA nodes can be imbalanced until 25% of the CPUs are occupied. The reasoning behind 25% is

[PATCH v3 0/4] Revisit NUMA imbalance tolerance and fork balancing

2020-11-20 Thread Mel Gorman
Changelog since v2 o Build fix for !NUMA_BALANCING configurations Changelog since v1 o Split out patch that moves imbalance calculation o Strongly connect fork imbalance considerations with adjust_numa_imbalance When NUMA and CPU balancing were reconciled, there was an attempt to allow a degree

[PATCH] iommu: Improve the performance for direct_mapping

2020-11-20 Thread Yong Wu
Currently direct_mapping always use the smallest pgsize which is SZ_4K normally to mapping. This is unnecessary. we could gather the size, and call iommu_map then, iommu_map could decide how to map better with the just right pgsize. >From the original comment, we should take care overlap,

[PATCH 2/4] sched: Avoid unnecessary calculation of load imbalance at clone time

2020-11-20 Thread Mel Gorman
In find_idlest_group(), the load imbalance is only relevant when the group is either overloaded or fully busy but it is calculated unconditionally. This patch moves the imbalance calculation to the context it is required. Technically, it is a micro-optimisation but really the benefit is avoiding

[PATCH 4/4] sched: Limit the amount of NUMA imbalance that can exist at fork time

2020-11-20 Thread Mel Gorman
At fork time currently, a local node can be allowed to fill completely and allow the periodic load balancer to fix the problem. This can be problematic in cases where a task creates lots of threads that idle until woken as part of a worker poll causing a memory bandwidth problem. However, a

Re: AMU extension v1 support for cortex A76, A77, A78 CPUs

2020-11-20 Thread Vladimir Murzin
On 11/20/20 8:56 AM, Marc Zyngier wrote: > On 2020-11-20 04:30, Neeraj Upadhyay wrote: >> Hi, >> >> For ARM cortex A76, A77, A78 cores (which as per TRM, support AMU) >> AA64PFR0[47:44] field is not set, and AMU does not get enabled for >> them. >> Can you please provide support for these CPUs in

Re: [PATCH v5] zram: break the strict dependency from lzo

2020-11-20 Thread Rui Salvaterra
Hi, Minchan, On Thu, 19 Nov 2020 at 22:26, Minchan Kim wrote: > > What's the purpose of ZRAM_AUTOSEL_ALGO? > If you and Sergey already discussed, sorry about the missing it. The purpose of ZRAM_AUTOSEL_ALGO is to make sure at least one of the required compression algorithms is enabled, either

Re: [RFC] Documentation/scheduler/schedutil.txt

2020-11-20 Thread Quentin Perret
On Friday 20 Nov 2020 at 09:56:53 (+0100), Peter Zijlstra wrote: > On Fri, Nov 20, 2020 at 08:55:27AM +0100, Peter Zijlstra wrote: > > - In saturated scenarios task movement will cause some transient dips, > >suppose we have a CPU saturated with 4 tasks, then when we migrate a task > >to

Re: [PATCH] usb: serial: option: add Fibocom NL668 variants

2020-11-20 Thread Vincent Palatin
On Fri, Nov 20, 2020 at 10:01 AM wrote: > > From: Vincent Palatin > > Update the USB serial option driver support for the Fibocom NL668 Cat.4 > LTE modules as there are actually several different variants. > Got clarifications from Fibocom, there are distinct products: > - VID:PID 1508:1001,

Re: [PATCH] firmware: xlnx-zynqmp: fix compilation warning

2020-11-20 Thread Michal Simek
On 18. 11. 20 23:31, Wendy Liang wrote: > Fix compilation warning when ZYNQMP_FIRMWARE is not defined. > > include/linux/firmware/xlnx-zynqmp.h: In function > 'zynqmp_pm_get_eemi_ops': > include/linux/firmware/xlnx-zynqmp.h:363:9: error: implicit > declaration of function 'ERR_PTR' >

[PATCH v2 0/2] ARM: multi_v7_defconfig: enable dfsdm and spdifrx support

2020-11-20 Thread Olivier Moysan
Add STM32 SPDIFRX and DFSDM audio support to multi_v7_defconfig Change in v2: - Add targeted SoC in commit message for DFSDM config Olivier Moysan (2): ARM: multi_v7_defconfig: enable spdifrx support ARM: multi_v7_defconfig: enable dfsdm audio support arch/arm/configs/multi_v7_defconfig |

Re: [PATCH] usbnet: ipheth: fix connectivity with iOS 14

2020-11-20 Thread Sergei Shtylyov
Hello! On 19.11.2020 20:24, Yves-Alexis Perez wrote: Starting with iOS 14 released in September 2020, connectivity using the personal hotspot USB tethering function of iOS devices is broken. Communication between the host and the device (for example ICMP traffic or DNS resolution using the

Re: [PATCH v5 21/21] mm/hugetlb: Disable freeing vmemmap if struct page size is not power of two

2020-11-20 Thread David Hildenbrand
On 20.11.20 09:25, Michal Hocko wrote: On Fri 20-11-20 14:43:25, Muchun Song wrote: We only can free the unused vmemmap to the buddy system when the size of struct page is a power of two. Can we actually have !power_of_2 struct pages? AFAIK multiples of 8 bytes (56, 64, 72) are possible.

[PATCH net-next 5/5] net: hns3: adds debugfs to dump more info of shaping parameters

2020-11-20 Thread Huazhong Tan
From: Yonglong Liu Adds debugfs to dump new shaping parameters: rate and flag. Signed-off-by: Yonglong Liu Signed-off-by: Huazhong Tan --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git

[PATCH net-next 2/5] net: hns3: add support for mapping device memory

2020-11-20 Thread Huazhong Tan
For device who has device memory accessed through the PCI BAR4, IO descriptor push of NIC and direct WQE(Work Queue Element) of RoCE will use this device memory, so add support for mapping this device memory, and add this info to the RoCE client whose new feature needs. Signed-off-by: Huazhong

[PATCH net-next 3/5] net: hns3: add support for pf querying new interrupt resources

2020-11-20 Thread Huazhong Tan
From: Yufeng Mo For HNAE3_DEVICE_VERSION_V3, a maximum of 1281 interrupt resources are supported. To utilize these new resources, extend the corresponding field or variable to 16bit type, and remove the restriction of NIC client that only use a maximum of 65 interrupt vectors. In addition, the

[PATCH v2 1/2] ARM: multi_v7_defconfig: enable spdifrx support

2020-11-20 Thread Olivier Moysan
Add STM32 SPDIFRX support by enabling CONFIG_SND_SOC_STM32_SPDIFRX as module. Signed-off-by: Olivier Moysan Reviewed-by: Krzysztof Kozlowski --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig

[PATCH v2 2/2] ARM: multi_v7_defconfig: enable dfsdm audio support

2020-11-20 Thread Olivier Moysan
Add STM32 DFSDM audio support by enabling CONFIG_SND_SOC_STM32_DFSDM as module. Signed-off-by: Olivier Moysan --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index

[PATCH net-next 0/5] net: hns3: misc updates for -next

2020-11-20 Thread Huazhong Tan
This series includes some misc updates for the HNS3 ethernet driver. #1 adds support for 1280 queues #2 adds mapping for BAR45 which is needed by RoCE client. #3 extend the interrupt resources. #4 add support to query firmware's calculated shaping parameters. Huazhong Tan (1): net: hns3: add

[PATCH net-next 4/5] net: hns3: add support to utilize the firmware calculated shaping parameters

2020-11-20 Thread Huazhong Tan
From: Yonglong Liu Since the calculation of the driver is fixed, if the number of queue or clock changed, the calculated result may be inaccurate. So for compatible and maintainable, add a new flag to tell the firmware to calculate the shaping parameters with the specified rate. Signed-off-by:

Re: [PATCH v5 21/21] mm/hugetlb: Disable freeing vmemmap if struct page size is not power of two

2020-11-20 Thread David Hildenbrand
On 20.11.20 07:43, Muchun Song wrote: We only can free the unused vmemmap to the buddy system when the size of struct page is a power of two. Signed-off-by: Muchun Song --- mm/hugetlb_vmemmap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/hugetlb_vmemmap.c

  1   2   3   4   5   6   7   8   9   10   >