Re: [PATCH V2 net-next 0/3] net: hns3: updates for -next

2020-12-08 Thread Jakub Kicinski
On Sun, 6 Dec 2020 12:06:12 +0800 Huazhong Tan wrote: > There are some updates for the HNS3 ethernet driver. > > #1 supports an extended promiscuous command which makes > promiscuous configuration more flexible, #2 adds ethtool > private flags to control whether enable tx unicast promisc. > #3 ref

Re: [PATCH v2 1/3] ALSA: hda/ca0132 - Fix AE-5 rear headphone pincfg.

2020-12-08 Thread Takashi Iwai
On Tue, 08 Dec 2020 20:52:20 +0100, Connor McAdams wrote: > > The Windows driver sets the pincfg for the AE-5's rear-headphone to > report as a microphone. This causes issues with Pulseaudio mistakenly > believing there is no headphone plugged in. In Linux, we should instead > set it to be a headp

Re: problem booting 5.10

2020-12-08 Thread Martin K. Petersen
Linus, > So I'm adding SCSI people to the cc, just in case they go "Hmm..". Only change in this department was: 831e3405c2a3 scsi: core: Don't start concurrent async scan on same host which went into -rc2. I can't think of anything in -rc1 which would affect scanning. I'll take a look this a

[PATCH rdma-next] RDMA/mlx4: remove bogus dev_base_lock usage

2020-12-08 Thread Vladimir Oltean
It is not clear what this lock protects. If the authors wanted to ensure that "dev" does not disappear, that is impossible, given the following code path: mlx4_ib_netdev_event (under RTNL mutex) -> mlx4_ib_scan_netdevs -> mlx4_ib_update_qps Also, the dev_base_lock does not protect dev->dev_add

Re: [PATCH 03/22] keembay-ipc: Add Keem Bay IPC module

2020-12-08 Thread Daniele Alessandrelli
Hi Greg, Thanks for your feedback. On Wed, 2020-12-02 at 07:19 +0100, Greg KH wrote: > On Tue, Dec 01, 2020 at 02:34:52PM -0800, mgr...@linux.intel.com wrote: > > From: Daniele Alessandrelli > > > > On the Intel Movidius SoC code named Keem Bay, communication between the > > Computing Sub-Syste

RE: [PATCH v1 0/4] cpufreq: Allow drivers to receive more information from the governor

2020-12-08 Thread Doug Smythies
On 2020.12.08 09:14 Rafael J. Wysocki wrote: > On Tue, Dec 8, 2020 at 5:31 PM Giovanni Gherdovich > wrote: >> On Mon, 2020-12-07 at 17:25 +0100, Rafael J. Wysocki wrote: >>> Hi, >>> >>> This is based on the RFC posted a few days ago: >>> >>> https://lore.kernel.org/linux-pm/1817571.2o5Kk4Ohv2@kr

Re: [PATCH v3 10/13] media: v4l2-fwnode: Update V4L2_FWNODE_CSI2_MAX_DATA_LANES to 8

2020-12-08 Thread Sowjanya Komatineni
On 12/8/20 11:59 AM, Sakari Ailus wrote: Hi Hans, On Mon, Dec 07, 2020 at 11:47:38AM +0100, Hans Verkuil wrote: On 03/12/2020 19:59, Sowjanya Komatineni wrote: Some CSI2 receivers support 8 data lanes. So, this patch updates CSI2 maximum data lanes to be 8. Signed-off-by: Sowjanya Komatine

Re: [PATCH 2/9] misc: Add Xilinx AI engine device driver

2020-12-08 Thread Jiaying Liang
On 12/8/20 9:12 AM, Nicolas Dufresne wrote: Le mercredi 18 novembre 2020 à 00:06 -0800, Wendy Liang a écrit : Create AI engine device/partition hierarchical structure. Each AI engine device can have multiple logical partitions(groups of AI engine tiles). Each partition is column based and has

Re: [PATCH 1/6] seq_file: add seq_read_iter

2020-12-08 Thread Linus Torvalds
On Tue, Dec 8, 2020 at 11:49 AM Al Viro wrote: > > Said that, it does appear to survive all beating, and it does fix > a regression introduced in this cycle, so, provided that amount of > comments in there is OK with you... Ok, considering Greg's note, I've pulled it. It's early in the last week,

Re: [PATCH 2/9] misc: Add Xilinx AI engine device driver

2020-12-08 Thread Jiaying Liang
On 12/8/20 9:12 AM, Nicolas Dufresne wrote: Le mercredi 18 novembre 2020 à 00:06 -0800, Wendy Liang a écrit : Create AI engine device/partition hierarchical structure. Each AI engine device can have multiple logical partitions(groups of AI engine tiles). Each partition is column based and has

[PATCH v3 2/2] modules: introduce the MODULE_SCMVERSION config

2020-12-08 Thread Will McVicker
Config MODULE_SCMVERSION introduces a new module attribute -- `scmversion` -- which can be used to identify a given module's SCM version. This is very useful for developers that update their kernel independently from their kernel modules or vice-versa since the SCM version provided by UTS_RELEASE

Re: [PATCH v2 1/3] reset: hisilicon: correct vendor prefix

2020-12-08 Thread Rob Herring
On Mon, Dec 7, 2020 at 8:16 PM Leizhen (ThunderTown) wrote: > > > > On 2020/12/8 7:08, Rob Herring wrote: > > On Fri, Dec 04, 2020 at 09:42:34AM +0800, Zhen Lei wrote: > >> The vendor prefix of "Hisilicon Limited" is "hisilicon", it is clearly > >> stated in "vendor-prefixes.yaml". > > > > Yes, bu

[PATCH] fs: quota: fix array-index-out-of-bounds bug by passing correct argument to vfs_cleanup_quota_inode()

2020-12-08 Thread Anant Thazhemadam
When dquot_resume() was last updated, the argument that got passed to vfs_cleanup_quota_inode was incorrectly set. If type = -1 and dquot_load_quota_sb() returns a negative value, then vfs_cleanup_quota_inode() gets called with -1 passed as an argument, and this leads to an array-index-out-of-boun

Re: problem booting 5.10

2020-12-08 Thread Linus Torvalds
On Tue, Dec 8, 2020 at 11:29 AM Julia Lawall wrote: > > A dmesg after successfully booting in 5.9 is attached. Ok, from a quick look it's megaraid_sas. The only thing I see there is that commit 103fbf8e4020 ("scsi: megaraid_sas: Added support for shared host tagset for cpuhotplug"). Of course,

Re: Potential Issue in Tracing Ring Buffer

2020-12-08 Thread J. Avila
Hello Steven, Thank you once again for all of your support. We saw that you also recently merged a change[1] which adds some validation for the timestamps in ring_buffer.c. Would you have any recommendations on how to add a more lightweight check for time going "backwards" in the timestamps? The i

[PATCH v3 0/2] modules: add scmversion field

2020-12-08 Thread Will McVicker
Hi All, Thanks Jessica for the feedback! I have updated the commit message to include the justification and common use cases for the patch series. I have also added the config MODULE_SCMVERSION so that this is not enabled by default. Please take a look and let me know of any concerns or issues fo

Re: Pass modules to Linux kernel without initrd

2020-12-08 Thread Theodore Y. Ts'o
On Tue, Dec 08, 2020 at 10:24:08AM +0100, Paul Menzel wrote: > Dear Linux folks, > > Trying to reduce the boot time of standard distributions, I would like to > get rid of the initrd. The initrd is for mounting the root file system and > on most end user systems with standard distributions that me

[PATCH] perf/x86/intel: Add Tremont Topdown support

2020-12-08 Thread kan . liang
From: Kan Liang Tremont has four L1 Topdown events, TOPDOWN_FE_BOUND.ALL, TOPDOWN_BAD_SPECULATION.ALL, TOPDOWN_BE_BOUND.ALL and TOPDOWN_RETIRING.ALL. They are available on GP counters. Export them to sysfs and facilitate the perf stat tool. $perf stat --topdown -- sleep 1 Performance counter

Re: [PATCH v4 00/26] Opt-in always-on nVHE hypervisor

2020-12-08 Thread Marc Zyngier
On Tue, 08 Dec 2020 19:14:47 +, David Brazdil wrote: > > Hey Marc, > > On Thu, Dec 03, 2020 at 07:23:19PM +, Marc Zyngier wrote: > > On Wed, 2 Dec 2020 18:40:56 +, David Brazdil wrote: > > > As we progress towards being able to keep guest state private to the > > > host running nVHE

Re: [PATCH] driver: core: Fix list corruption after device_del()

2020-12-08 Thread Takashi Iwai
On Tue, 08 Dec 2020 20:52:34 +0100, Greg Kroah-Hartman wrote: > > On Tue, Dec 08, 2020 at 08:03:26PM +0100, Takashi Iwai wrote: > > The device_links_purge() function (called from device_del()) tries to > > remove the links.needs_suppliers list entry, but it's using > > list_del(), hence it doesn't

Re: [PATCH v4 1/4] pwm: pca9685: Switch to atomic API

2020-12-08 Thread Uwe Kleine-König
Hello Sven, On Tue, Dec 08, 2020 at 01:15:10PM -0500, Sven Van Asbroeck wrote: > On Tue, Dec 8, 2020 at 11:57 AM Thierry Reding > wrote: > > > > Is this really that complicated? I sounds to me like the only thing that > > you need is to have some sort of usage count for the prescaler. Whenever >

[PATCH v3 1/2] scripts/setlocalversion: allow running in a subdir

2020-12-08 Thread Will McVicker
Getting the scmversion using scripts/setlocalversion currently only works when run at the root of a git or mecurial project. This was introduced in commit 8558f59edf93 ("setlocalversion: Ignote SCMs above the linux source tree") so that if one is building within a subdir of a git tree that isn't th

Re: problem booting 5.10

2020-12-08 Thread Linus Torvalds
On Tue, Dec 8, 2020 at 10:59 AM Martin K. Petersen wrote: > > > So I'm adding SCSI people to the cc, just in case they go "Hmm..". > > Only change in this department was: > > 831e3405c2a3 scsi: core: Don't start concurrent async scan on same host Yeah, I found that one too, and dismissed it for t

Re: [PATCH v3 09/15] remoteproc: Introduce function rproc_detach()

2020-12-08 Thread Mathieu Poirier
On Tue, Dec 08, 2020 at 07:35:18PM +0100, Arnaud POULIQUEN wrote: > Hi Mathieu, > > > On 11/26/20 10:06 PM, Mathieu Poirier wrote: > > Introduce function rproc_detach() to enable the remoteproc > > core to release the resources associated with a remote processor > > without stopping its operation

Re: [PATCH 02/20] ethernet: ucc_geth: fix definition and size of ucc_geth_tx_global_pram

2020-12-08 Thread Rasmus Villemoes
On 08/12/2020 20.14, Li Yang wrote: > On Sat, Dec 5, 2020 at 1:21 PM Rasmus Villemoes > wrote: >> >> Table 8-53 in the QUICC Engine Reference manual shows definitions of >> fields up to a size of 192 bytes, not just 128. But in table 8-111, >> one does find the text >> >> Base Address of the Glo

Re: [PATCH v2 3/8] net: macb: add function to disable all macb clocks

2020-12-08 Thread Andrew Lunn
Hi Claudiu > static int macb_clk_init(struct platform_device *pdev, struct clk **pclk, >struct clk **hclk, struct clk **tx_clk, >struct clk **rx_clk, struct clk **tsu_clk) > @@ -3743,40 +3753,37 @@ static int macb_clk_init(struct platform_device >

Re: [PATCH 1/6] seq_file: add seq_read_iter

2020-12-08 Thread Greg KH
On Tue, Dec 08, 2020 at 10:34:45AM -0800, Linus Torvalds wrote: > On Tue, Dec 8, 2020 at 8:35 AM Christoph Hellwig wrote: > > > > > > Shouldn't this go to Linus before v5.10 is released? > > > > ping? > > So by now I'm a bit worried about this series, because the early fixes > caused more problem

[PATCH] powerpc/rtas: fix typo of ibm,open-errinjct in rtas filter

2020-12-08 Thread Tyrel Datwyler
Commit bd59380c5ba4 ("powerpc/rtas: Restrict RTAS requests from userspace") introduced the following error when invoking the errinjct userspace tool. [root@ltcalpine2-lp5 librtas]# errinjct open [327884.071171] sys_rtas: RTAS call blocked - exploit attempt? [327884.071186] sys_rtas: token=0x26, na

Re: [PATCH 03/22] keembay-ipc: Add Keem Bay IPC module

2020-12-08 Thread Greg KH
On Tue, Dec 08, 2020 at 06:59:09PM +, Daniele Alessandrelli wrote: > Hi Greg, > > Thanks for your feedback. > > On Wed, 2020-12-02 at 07:19 +0100, Greg KH wrote: > > On Tue, Dec 01, 2020 at 02:34:52PM -0800, mgr...@linux.intel.com wrote: > > > From: Daniele Alessandrelli > > > > > > On the

Re: [PATCH v2 06/19] dt-bindings: media: sun6i-a31-csi: Add MIPI CSI-2 input port

2020-12-08 Thread Rob Herring
On Wed, Dec 02, 2020 at 03:16:44PM +0100, Paul Kocialkowski wrote: > Hi, > > On Tue 01 Dec 20, 11:43, Maxime Ripard wrote: > > On Sat, Nov 28, 2020 at 03:28:26PM +0100, Paul Kocialkowski wrote: > > > The A31 CSI controller supports two distinct input interfaces: > > > parallel and an external MIPI

Re: Potential Issue in Tracing Ring Buffer

2020-12-08 Thread Steven Rostedt
On Tue, 8 Dec 2020 11:37:13 -0800 "J. Avila" wrote: > Hello Steven, > > Thank you once again for all of your support. We saw that you also recently > merged a change[1] which adds some validation for the timestamps in > ring_buffer.c. Would you have any recommendations on how to add a more > lig

[PATCH v2 1/3] ALSA: hda/ca0132 - Fix AE-5 rear headphone pincfg.

2020-12-08 Thread Connor McAdams
The Windows driver sets the pincfg for the AE-5's rear-headphone to report as a microphone. This causes issues with Pulseaudio mistakenly believing there is no headphone plugged in. In Linux, we should instead set it to be a headphone. Fixes: a6b0961b39896 ("ALSA: hda/ca0132 - fix AE-5 pincfg") Cc

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

2020-12-08 Thread Bart Van Assche
On 12/8/20 9:55 AM, Alan Stern wrote: Yes, that certainly is the proper fix. It's all to easy to miss these issues that depend on your kernel configuration. Bart, can you fold it into a new version of the patch? Sure, I will do that. Thanks, Bart.

Re: [PATCH] riscv: Fixed kernel test robot warning

2020-12-08 Thread Andreas Schwab
On Dez 09 2020, Souptick Joarder wrote: > On Wed, Dec 9, 2020 at 1:21 AM Andreas Schwab wrote: >> >> On Dez 09 2020, Souptick Joarder wrote: >> >> > Kernel test robot throws below warning - >> > >> >arch/riscv/kernel/asm-offsets.c:14:6: warning: no previous prototype >> > for 'asm_offsets' [-

[RFC PATCH 00/11] Page folios

2020-12-08 Thread Matthew Wilcox (Oracle)
One of the great things about compound pages is that when you try to do various operations on a tail page, it redirects to the head page and everything Just Works. One of the awful things is how much we pay for that simplicity. Here's an example, end_page_writeback(): if (PageReclaim(pag

Re: [PATCH] riscv: Fixed kernel test robot warning

2020-12-08 Thread Souptick Joarder
On Wed, Dec 9, 2020 at 1:21 AM Andreas Schwab wrote: > > On Dez 09 2020, Souptick Joarder wrote: > > > Kernel test robot throws below warning - > > > >arch/riscv/kernel/asm-offsets.c:14:6: warning: no previous prototype > > for 'asm_offsets' [-Wmissing-prototypes] > > 14 | void asm_offse

[RFC PATCH 07/11] mm: Add lock_folio_killable

2020-12-08 Thread Matthew Wilcox (Oracle)
This is like lock_page_killable() but for use by callers who know they have a folio. Convert __lock_page_killable() to be __lock_folio_killable(). This saves one call to compound_head() per contended call to lock_page_killable(). Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/pagemap

Re: [RFC PATCH 1/1] mm/hugetlb: clear compound_nr before freeing gigantic pages

2020-12-08 Thread Matthew Wilcox
On Tue, Dec 08, 2020 at 07:28:13PM +0100, Gerald Schaefer wrote: > This is because only the compound_order is cleared in > destroy_compound_gigantic_page(), and compound_nr is set to 1U << order == 1 > for order 0 in set_compound_order(page, 0). I didn't realise there was a separate destroy path f

[RFC PATCH 11/11] mm/swap: Convert rotate_reclaimable_page to folio

2020-12-08 Thread Matthew Wilcox (Oracle)
Move the declaration into mm/internal.h and rename the function to rotate_reclaimable_folio(). This eliminates all five of the calls to compound_head() in this function. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/swap.h | 1 - mm/filemap.c | 2 +- mm/internal.h|

[RFC PATCH 06/11] mm: Add lock_folio

2020-12-08 Thread Matthew Wilcox (Oracle)
This is like lock_page() but for use by callers who know they have a folio. Convert __lock_page() to be __lock_folio(). This saves one call to compound_head() per contended call to lock_page(). Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/pagemap.h | 21 +++-- mm/fil

[RFC PATCH 01/11] mm: Introduce struct folio

2020-12-08 Thread Matthew Wilcox (Oracle)
We have trouble keeping track of whether we've already called compound_head() to ensure we're not operating on a tail page. Further, it's never clear whether we intend a struct page to refer to PAGE_SIZE bytes or page_size(compound_head(page)). Introduce a new type 'struct folio' that always refe

[RFC PATCH 09/11] mm/filemap: Convert mapping_get_entry and pagecache_get_page to folio

2020-12-08 Thread Matthew Wilcox (Oracle)
Convert mapping_get_entry() to return a folio and convert pagecache_get_page() to use the folio where possible. The seemingly dangerous cast of a page pointer to a folio pointer is safe because __page_cache_alloc() allocates an order-0 page, which is a folio by definition. Signed-off-by: Matthew

[RFC PATCH 04/11] mm: Create FolioFlags

2020-12-08 Thread Matthew Wilcox (Oracle)
These new functions are the folio analogues of the PageFlags functions. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/page-flags.h | 36 +--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/include/linux/page-flags.h b/include/linux/page-

Re: [PATCH v3 2/2] media: dt-bindings: media: i2c: Add IMX300 CMOS sensor binding

2020-12-08 Thread Rob Herring
On Fri, 27 Nov 2020 23:30:47 +0100, khol...@gmail.com wrote: > From: AngeloGioacchino Del Regno > > Add YAML device tree binding for IMX300 CMOS image sensor, and > the relevant MAINTAINERS entries. > > Signed-off-by: AngeloGioacchino Del Regno > --- > .../bindings/media/i2c/sony,imx300.yaml

[RFC PATCH 03/11] mm: Add get_folio

2020-12-08 Thread Matthew Wilcox (Oracle)
If we know we have a folio, we can call get_folio() instead of get_page() and save the overhead of calling compound_head(). Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/mm.h | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/include/linux/mm.h b/incl

Re: [PATCH v2 1/3] usb: typec: tcpm: Introduce vsafe0v for vbus

2020-12-08 Thread Guenter Roeck
On Tue, Dec 01, 2020 at 08:08:38PM -0800, Badhri Jagan Sridharan wrote: > TCPM at present lacks the notion of VSAFE0V. There > are three vbus threshold levels that are critical to track: > a. vSafe5V - VBUS “5 volts” as defined by the USB > PD specification. > b. vSinkD

[RFC PATCH 05/11] mm: Add unlock_folio

2020-12-08 Thread Matthew Wilcox (Oracle)
Convert unlock_page() to call unlock_folio(). By using a folio we avoid doing a repeated compound_head() This shortens the function from 120 bytes to 76 bytes. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/pagemap.h | 16 +++- mm/filemap.c| 27 ++--

[RFC PATCH 10/11] mm/filemap: Add folio_add_to_page_cache

2020-12-08 Thread Matthew Wilcox (Oracle)
Pages being added to the page cache should already be folios, so turn add_to_page_cache_lru() into a wrapper. Saves hundreds of bytes of text. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/pagemap.h | 13 +++-- mm/filemap.c| 62

[RFC PATCH 08/11] mm/filemap: Convert end_page_writeback to use a folio

2020-12-08 Thread Matthew Wilcox (Oracle)
With my config, this function shrinks from 480 bytes to 240 bytes due to elimination of repeated calls to compound_head(). Signed-off-by: Matthew Wilcox (Oracle) --- mm/filemap.c | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/mm/filemap.c b/mm/filema

[RFC PATCH 02/11] mm: Add put_folio

2020-12-08 Thread Matthew Wilcox (Oracle)
If we know we have a folio, we can call put_folio() instead of put_page() and save the overhead of calling compound_head(). Also skips the devmap checks. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/mm.h | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --

Re: [PATCH 1/1] mwifiex: Fix possible buffer overflows in mwifiex_config_scan

2020-12-08 Thread Brian Norris
On Tue, Dec 8, 2020 at 7:14 AM Xiaohui Zhang wrote: > > From: Zhang Xiaohui > > mwifiex_config_scan() calls memcpy() without checking > the destination size may trigger a buffer overflower, > which a local user could use to cause denial of service > or the execution of arbitrary code. > Fix it by

Re: [PATCH v2 3/3] usb: typec: tcpci_maxim: Enable VSAFE0V signalling

2020-12-08 Thread Guenter Roeck
On Tue, Dec 01, 2020 at 08:08:40PM -0800, Badhri Jagan Sridharan wrote: > Unmask EXTENDED_STATUS_MASK.vSafe0V, ALERT.Extended_Status > and set vbus_vsafe0v to enable VSAFE0V signalling. > > Signed-off-by: Badhri Jagan Sridharan Reviewed-by: Guenter Roeck > --- > Changes since v1: > - Setting a

Re: [PATCH v15 08/26] x86/mm: Introduce _PAGE_COW

2020-12-08 Thread Borislav Petkov
On Tue, Dec 08, 2020 at 10:25:15AM -0800, Yu, Yu-cheng wrote: > > Both are "R/O + _PAGE_COW". Where's the difference? The dirty bit? > > The PTEs are the same for both (a) and (b), but come from different routes. Do not be afraid to go into detail and explain to me what those routes are please.

Re: [PATCH 1/3] dt-bindings: msm: Add LLCC for SM8250

2020-12-08 Thread Rob Herring
On Fri, 27 Nov 2020 17:41:25 +0530, Manivannan Sadhasivam wrote: > Add LLCC compatible for SM8250 SoC. > > Signed-off-by: Manivannan Sadhasivam > --- > Documentation/devicetree/bindings/arm/msm/qcom,llcc.yaml | 1 + > 1 file changed, 1 insertion(+) > Acked-by: Rob Herring

Re: [PATCH net] bonding: reduce rtnl lock contention in mii monitor thread

2020-12-08 Thread Jakub Kicinski
On Sat, 5 Dec 2020 18:43:54 -0500 Jarod Wilson wrote: > I'm seeing a system get stuck unable to bring a downed interface back up > when it's got an updelay value set, behavior which ceased when logging > spew was removed from bond_miimon_inspect(). I'm monitoring logs on this > system over another

Re: [PATCH net-next] net/mlx4: simplify the return expression of mlx4_init_cq_table()

2020-12-08 Thread Jakub Kicinski
On Tue, 8 Dec 2020 21:55:43 +0800 Zheng Yongjun wrote: > diff --git a/drivers/net/ethernet/mellanox/mlx4/cq.c > b/drivers/net/ethernet/mellanox/mlx4/cq.c > index 3b8576b9c2f9..68bd18ee6ee3 100644 > --- a/drivers/net/ethernet/mellanox/mlx4/cq.c > +++ b/drivers/net/ethernet/mellanox/mlx4/cq.c > @@ -

Re: [PATCH 1/2] dt-bindings: reset: document Broadcom's BCM4908 PCIe reset binding

2020-12-08 Thread Rob Herring
On Fri, 27 Nov 2020 12:14:41 +0100, Rafał Miłecki wrote: > From: Rafał Miłecki > > BCM4908 was built using older PCIe hardware block that requires using > external reset block controlling PERST# signals. > > Signed-off-by: Rafał Miłecki > --- > .../reset/brcm,bcm4908-misc-pcie-reset.yaml | 3

Re: [PATCH v3 10/13] media: v4l2-fwnode: Update V4L2_FWNODE_CSI2_MAX_DATA_LANES to 8

2020-12-08 Thread Sakari Ailus
Hi Hans, On Mon, Dec 07, 2020 at 11:47:38AM +0100, Hans Verkuil wrote: > On 03/12/2020 19:59, Sowjanya Komatineni wrote: > > Some CSI2 receivers support 8 data lanes. > > > > So, this patch updates CSI2 maximum data lanes to be 8. > > > > Signed-off-by: Sowjanya Komatineni > > --- > > drivers/

Re: [PATCH v2 1/3] KVM: x86: implement KVM_{GET|SET}_TSC_STATE

2020-12-08 Thread Thomas Gleixner
On Tue, Dec 08 2020 at 09:43, Andy Lutomirski wrote: > On Tue, Dec 8, 2020 at 6:23 AM Marcelo Tosatti wrote: > It looks like it tries to accomplish the right goal, but in a rather > roundabout way. The host knows how to convert from TSC to > CLOCK_REALTIME, and ptp_kvm.c exposes this data to the

Re: [PATCH v2] media: atomisp: Fixed error handling path

2020-12-08 Thread Souptick Joarder
On Thu, Nov 19, 2020 at 1:06 AM Souptick Joarder wrote: > > On Wed, Nov 4, 2020 at 7:32 AM Souptick Joarder wrote: > > > > Inside alloc_user_pages() based on flag value either pin_user_pages() > > or get_user_pages_fast() will be called. However, these API might fail. > > > > But free_user_pages(

Re: [RFC PATCH v2] checkpatch: rewrite Kconfig parsing

2020-12-08 Thread Joe Perches
On Tue, 2020-12-08 at 18:18 +0100, Nicolai Fischer wrote: > Checkpatch currently only warns if the help text is too short. > To determine this the diff gets parsed for keywords starting > a new entry, but several kinds of false positives can occur with > the current implementation, especially when

Re: [PATCH net-next] vrf: handle CONFIG_IPV6 not set for vrf_add_mac_header_if_unset()

2020-12-08 Thread David Ahern
On 12/8/20 10:52 AM, Andrea Mayer wrote: > The vrf_add_mac_header_if_unset() is defined within a conditional > compilation block which depends on the CONFIG_IPV6 macro. > However, the vrf_add_mac_header_if_unset() needs to be called also by IPv4 > related code and when the CONFIG_IPV6 is not set, t

[PATCH bpf-next v3 2/4] bpf: Expose bpf_get_socket_cookie to tracing programs

2020-12-08 Thread Florent Revest
This needs two new helpers, one that works in a sleepable context (using sock_gen_cookie which disables/enables preemption) and one that does not (for performance reasons). Both take a struct sock pointer and need to check it for NULLness. This helper could also be useful to other BPF program type

Re: [PATCH bpf-next v3] bpf: Only provide bpf_sock_from_file with CONFIG_NET

2020-12-08 Thread Florent Revest
On Tue, 2020-12-08 at 12:06 -0800, Randy Dunlap wrote: > On 12/8/20 9:36 AM, Florent Revest wrote: > > Acked-by: Randy Dunlap > > I would say that I didn't ack this version of the patch (hey, > it's 3x the size of the v1/v2 patches), but I have just > rebuilt with v3, so the Ack is OK. :) Oops!

[PATCH v2 2/3] ALSA: hda/ca0132 - Change Input Source enum strings.

2020-12-08 Thread Connor McAdams
Change the Input Source enumerated control's strings to make it play nice with pulseaudio. Fixes: 7cb9d94c05de9 ("ALSA: hda/ca0132: add alt_select_in/out for R3Di + SBZ") Cc: Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) d

Re: [PATCH 02/20] ethernet: ucc_geth: fix definition and size of ucc_geth_tx_global_pram

2020-12-08 Thread Li Yang
On Sat, Dec 5, 2020 at 1:21 PM Rasmus Villemoes wrote: > > Table 8-53 in the QUICC Engine Reference manual shows definitions of > fields up to a size of 192 bytes, not just 128. But in table 8-111, > one does find the text > > Base Address of the Global Transmitter Parameter RAM Page. [...] >

Re: [PATCH net-next] net/mlx5: simplify the return expression of mlx5_esw_offloads_pair()

2020-12-08 Thread Jakub Kicinski
On Tue, 8 Dec 2020 21:56:25 +0800 Zheng Yongjun wrote: > Simplify the return expression. > > Signed-off-by: Zheng Yongjun Please make sure to CC maintainers on your patches

Re: [PATCH net v1 2/2] lan743x: boost performance: limit PCIe bandwidth requirement

2020-12-08 Thread Jakub Kicinski
On Sat, 5 Dec 2020 22:44:08 -0500 Sven Van Asbroeck wrote: > From: Sven Van Asbroeck > > To support jumbo frames, each rx ring dma buffer is 9K in size. > But the chip only stores a single frame per dma buffer. > > When the chip is working with the default 1500 byte MTU, a 9K > dma buffer goes

[PATCH bpf-next v3 1/4] bpf: Be less specific about socket cookies guarantees

2020-12-08 Thread Florent Revest
Since "92acdc58ab11 bpf, net: Rework cookie generator as per-cpu one" socket cookies are not guaranteed to be non-decreasing. The bpf_get_socket_cookie helper descriptions are currently specifying that cookies are non-decreasing but we don't want users to rely on that. Reported-by: Daniel Borkmann

[PATCH bpf-next v3 3/4] selftests/bpf: Integrate the socket_cookie test to test_progs

2020-12-08 Thread Florent Revest
Currently, the selftest for the BPF socket_cookie helpers is built and run independently from test_progs. It's easy to forget and hard to maintain. This patch moves the socket cookies test into prog_tests/ and vastly simplifies its logic by: - rewriting the loading code with BPF skeletons - rewrit

Re: [PATCH v3 2/3] f2fs-tools:sload.f2fs compression support

2020-12-08 Thread Jaegeuk Kim
Hi Robin, I found some bugs and want to suggest a fix. I'll apply this on your patch and let me know, if you want to modify more on top of this. --- a/fsck/segment.c +++ b/fsck/segment.c @@ -115,6 +115,8 @@ int new_data_block(struct f2fs_sb_info *sbi, void *block, get_node_info(sbi, dn->

Re: WARNING in sk_stream_kill_queues (5)

2020-12-08 Thread Marco Elver
On Thu, 3 Dec 2020 at 19:01, Eric Dumazet wrote: > On 12/3/20 6:41 PM, Marco Elver wrote: > > > One more experiment -- simply adding > > > > --- a/net/core/skbuff.c > > +++ b/net/core/skbuff.c > > @@ -207,7 +207,21 @@ struct sk_buff *__alloc_skb(unsigned int size, gfp_t > > gfp_mask, > >*

Re: [PATCH 1/6] seq_file: add seq_read_iter

2020-12-08 Thread Al Viro
On Tue, Dec 08, 2020 at 10:34:45AM -0800, Linus Torvalds wrote: > On Tue, Dec 8, 2020 at 8:35 AM Christoph Hellwig wrote: > > > > > > Shouldn't this go to Linus before v5.10 is released? > > > > ping? > > So by now I'm a bit worried about this series, because the early fixes > caused more problem

[PATCH v2 3/3] ALSA: hda/ca0132 - Unmute surround when speaker output is selected.

2020-12-08 Thread Connor McAdams
Make sure GPIO pin for surround channel mute is set to 0 when speaker output is selected. Fixes: def3f0a5c7007 ("ALSA: hda/ca0132 - Add quirk output selection structures.") Cc: Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH bpf-next v3 4/4] selftests/bpf: Add a selftest for the tracing bpf_get_socket_cookie

2020-12-08 Thread Florent Revest
This builds up on the existing socket cookie test which checks whether the bpf_get_socket_cookie helpers provide the same value in cgroup/connect6 and sockops programs for a socket created by the userspace part of the test. Adding a tracing program to the existing objects requires a different atta

Re: problem booting 5.10

2020-12-08 Thread Julia Lawall
On Tue, 8 Dec 2020, Linus Torvalds wrote: > On Tue, Dec 8, 2020 at 9:37 AM Julia Lawall wrote: > > > > We have not succeeded to boot 5.10 on our Intel(R) Xeon(R) CPU E7-8870 v4 @ > > 2.10GHz server. Previous versions (eg 4.19 - 5.9) boot fine. We have > > tried various rcs. > > So the proble

Re: [PATCH v3 09/15] remoteproc: Introduce function rproc_detach()

2020-12-08 Thread Arnaud POULIQUEN
Hi Mathieu, On 11/26/20 10:06 PM, Mathieu Poirier wrote: > Introduce function rproc_detach() to enable the remoteproc > core to release the resources associated with a remote processor > without stopping its operation. > > Signed-off-by: Mathieu Poirier > Reviewed-by: Peng Fan > --- > drivers

Re: [RFC PATCH 0/1] "Bad page state" while freeing gigantic pages

2020-12-08 Thread Christian Borntraeger
00 > [ 276.681630] page dumped because: non-NULL mapping > [ 276.681632] Modules linked in: > [ 276.681637] CPU: 6 PID: 616 Comm: bash Not tainted > 5.10.0-rc7-next-20201208 #1 > [ 276.681639] Hardware name: IBM 3906 M03 703 (LPAR) > [ 276.681641] Call Trace: > [ 276.68

Re: [PATCH 1/6] seq_file: add seq_read_iter

2020-12-08 Thread Linus Torvalds
On Tue, Dec 8, 2020 at 8:35 AM Christoph Hellwig wrote: > > > > Shouldn't this go to Linus before v5.10 is released? > > ping? So by now I'm a bit worried about this series, because the early fixes caused more problems than the current state. So considering the timing and Al having been spotty,

Re: problem booting 5.10

2020-12-08 Thread Linus Torvalds
On Tue, Dec 8, 2020 at 9:37 AM Julia Lawall wrote: > > We have not succeeded to boot 5.10 on our Intel(R) Xeon(R) CPU E7-8870 v4 @ > 2.10GHz server. Previous versions (eg 4.19 - 5.9) boot fine. We have > tried various rcs. So the problem started with rc1? Could you try bisecting - even partial

Re: [PATCH v3 3/5] tracing: Update synth command errors

2020-12-08 Thread Tom Zanussi
Hi Steve, On Tue, 2020-12-08 at 12:53 -0500, Steven Rostedt wrote: > On Tue, 08 Dec 2020 11:34:41 -0600 > Tom Zanussi wrote: > > > Unfortunately, you're correct, if you have a script that creates a > > synthetic event without semicolons, this patchset will break it, as > > I > > myself found out

Re: [PATCH bpf-next v3 12/14] bpf: Pull tools/build/feature biz into selftests Makefile

2020-12-08 Thread Andrii Nakryiko
On Tue, Dec 8, 2020 at 9:04 AM Brendan Jackman wrote: > > On Mon, Dec 07, 2020 at 06:19:12PM -0800, Andrii Nakryiko wrote: > > On Mon, Dec 7, 2020 at 3:00 AM Brendan Jackman wrote: > > > > > > On Fri, Dec 04, 2020 at 11:00:24AM -0800, Andrii Nakryiko wrote: > > > > On Fri, Dec 4, 2020 at 1:41 AM

[RFC PATCH 1/1] mm/hugetlb: clear compound_nr before freeing gigantic pages

2020-12-08 Thread Gerald Schaefer
ash Not tainted 5.10.0-rc7-next-20201208 #1 [ 276.681639] Hardware name: IBM 3906 M03 703 (LPAR) [ 276.681641] Call Trace: [ 276.681648] [<000458c252b6>] show_stack+0x6e/0xe8 [ 276.681652] [<00045971cf60>] dump_stack+0x90/0xc8 [ 276.681656] [<000458e

[RFC PATCH 0/1] "Bad page state" while freeing gigantic pages

2020-12-08 Thread Gerald Schaefer
81637] CPU: 6 PID: 616 Comm: bash Not tainted 5.10.0-rc7-next-20201208 #1 [ 276.681639] Hardware name: IBM 3906 M03 703 (LPAR) [ 276.681641] Call Trace: [ 276.681648] [<000458c252b6>] show_stack+0x6e/0xe8 [ 276.681652] [<00045971cf60>] dump_stack+0x90/0xc8 [ 276.68165

[PATCH 3/3] coresight: etm4x: Modify core-commit to avoid HiSilicon ETM overflow

2020-12-08 Thread Mathieu Poirier
From: Qi Liu The ETM device can't keep up with the core pipeline when cpu core is at full speed. This may cause overflow within core and its ETM. This is a common phenomenon on ETM devices. On HiSilicon Hip08 platform, a specific feature is added to set core pipeline. So commit rate can be reduc

Re: [PATCH 2/3] rwsem: Implement down_read_interruptible

2020-12-08 Thread Eric W. Biederman
Peter Zijlstra writes: > On Mon, Dec 07, 2020 at 09:56:34AM -0600, Eric W. Biederman wrote: > >> Do you want to pull these two into a topic branch in the tip tree >> based on v10-rc1? > > I'll go do that. I'll let the robots chew on it before pushing it out > though, I'll reply once it's in tip.g

[PATCH 2/3] coresight: remove broken __exit annotations

2020-12-08 Thread Mathieu Poirier
From: Arnd Bergmann Functions that are annotated __exit are discarded for built-in drivers, but the .remove callback in a device driver must still be kept around to allow bind/unbind operations. There is now a linker warning for the discarded symbol references: `tmc_remove' referenced in sectio

[PATCH 1/3] coresight: tmc-etr: Fix barrier packet insertion for perf buffer

2020-12-08 Thread Mathieu Poirier
From: Suzuki K Poulose When the ETR is used in perf mode with a larger buffer (configured via sysfs or the default size of 1M) than the perf aux buffer size, we end up inserting the barrier packet at the wrong offset, while moving the offset forward. i.e, instead of the "new moved offset", we ins

[PATCH 0/3] coresight: Patches for v5.11 (part 2)

2020-12-08 Thread Mathieu Poirier
Good morning, As expected a few more fixes came late in the cycle - please see if you can include them in the v5.11 cycle. Applies cleanly on today's char-misc-next (ee64ed8153ab). Thanks, Mathieu Arnd Bergmann (1): coresight: remove broken __exit annotations Qi Liu (1): coresight: etm4x:

Re: [PATCH v4 1/4] pwm: pca9685: Switch to atomic API

2020-12-08 Thread Uwe Kleine-König
Hello Thierry, hello Sven, On Tue, Dec 08, 2020 at 05:57:12PM +0100, Thierry Reding wrote: > On Tue, Dec 08, 2020 at 09:44:42AM -0500, Sven Van Asbroeck wrote: > > On Tue, Dec 8, 2020 at 4:10 AM Uwe Kleine-König > > wrote: > > > > > > If this is already in the old code, this probably warrants a s

Re: [PATCH v15 08/26] x86/mm: Introduce _PAGE_COW

2020-12-08 Thread Yu, Yu-cheng
On 12/8/2020 9:50 AM, Borislav Petkov wrote: On Tue, Nov 10, 2020 at 08:21:53AM -0800, Yu-cheng Yu wrote: There is essentially no room left in the x86 hardware PTEs on some OSes (not Linux). That left the hardware architects looking for a way to represent a new memory type (shadow stack) within

Re: One potential issue with concurrent execution of RCU callbacks...

2020-12-08 Thread Paul E. McKenney
On Tue, Dec 08, 2020 at 06:52:30PM +0100, Frederic Weisbecker wrote: > On Tue, Dec 08, 2020 at 09:19:27AM -0800, Paul E. McKenney wrote: > > On Tue, Dec 08, 2020 at 04:54:57PM +0100, Frederic Weisbecker wrote: > > > On Tue, Dec 08, 2020 at 06:58:10AM -0800, Paul E. McKenney wrote: > > > > Hello, Fr

Re: [PATCH net-next v2 1/4] vm_sockets: Include flags field in the vsock address data structure

2020-12-08 Thread Paraschiv, Andra-Irina
On 07/12/2020 23:29, Jakub Kicinski wrote: On Fri, 4 Dec 2020 19:02:32 +0200 Andra Paraschiv wrote: diff --git a/include/uapi/linux/vm_sockets.h b/include/uapi/linux/vm_sockets.h index fd0ed7221645d..46735376a57a8 100644 --- a/include/uapi/linux/vm_sockets.h +++ b/include/uapi/linux/vm_sockets

Re: [PATCH] drm/amdgpu: make DRM_AMD_DC x86-only again

2020-12-08 Thread Nick Desaulniers
I've been having to teach it about various relocation types for non-x86_64 architectures; I'm sure the failure from that scenario is...gnarly. I don't know if my latest aarch64 fixes have been deployed (and it depends on how the library is distributed). > > > > Can

Re: [PATCH v5 0/2] MTE support for KVM guest

2020-12-08 Thread Marc Zyngier
On 2020-12-08 17:21, Catalin Marinas wrote: On Mon, Dec 07, 2020 at 07:03:13PM +, Marc Zyngier wrote: On Mon, 07 Dec 2020 16:34:05 +, Catalin Marinas wrote: > On Mon, Dec 07, 2020 at 04:05:55PM +, Marc Zyngier wrote: > > What I'd really like to see is a description of how shared mem

Re: [PATCH v2] mm: memcontrol: optimize per-lruvec stats counter memory usage

2020-12-08 Thread Shakeel Butt
On Tue, Dec 8, 2020 at 1:53 AM Muchun Song wrote: > > The vmstat threshold is 32 (MEMCG_CHARGE_BATCH), so the type of s32 > of lruvec_stat_cpu is enough. And introduce struct per_cpu_lruvec_stat > to optimize memory usage. > > The size of struct lruvec_stat is 304 bytes on 64 bits system. As it >

Re: [PATCH v3 1/7] e1000e: fix S0ix flow to allow S0i3.2 subset entry

2020-12-08 Thread Jakub Kicinski
On Tue, 8 Dec 2020 11:24:17 -0600 Mario Limonciello wrote: > On 12/4/20 2:09 PM, Mario Limonciello wrote: > > From: Vitaly Lifshits > > > > Changed a configuration in the flows to align with > > architecture requirements to achieve S0i3.2 substate. > > > > Also fixed a typo in the previous commit

Re: [PATCH v2 2/2] perf-stat: enable counting events for BPF programs

2020-12-08 Thread Song Liu
> On Dec 8, 2020, at 2:24 AM, Jiri Olsa wrote: > > On Tue, Dec 08, 2020 at 01:36:57AM +, Song Liu wrote: > > SNIP > >>> >>> I'm still getting >>> >>> [root@dell-r440-01 perf]# ./perf stat -b 38 >>> libbpf: elf: skipping unrecognized data section(9) .eh_frame >>> libbpf: elf: skipping r

Re: [PATCH bpf-next v4 10/11] bpf: Add tests for new BPF atomic operations

2020-12-08 Thread Yonghong Song
On 12/8/20 8:59 AM, Brendan Jackman wrote: On Tue, Dec 08, 2020 at 08:38:04AM -0800, Yonghong Song wrote: On 12/8/20 4:41 AM, Brendan Jackman wrote: On Mon, Dec 07, 2020 at 07:18:57PM -0800, Yonghong Song wrote: On 12/7/20 8:07 AM, Brendan Jackman wrote: The prog_test that's added depe

Re: [PATCH v6] coresight: etm4x: Modify core-commit of cpu to avoid the overflow of HiSilicon ETM

2020-12-08 Thread Mathieu Poirier
On Tue, Dec 08, 2020 at 03:19:20PM +0800, Qi Liu wrote: > The ETM device can't keep up with the core pipeline when cpu core > is at full speed. This may cause overflow within core and its ETM. > This is a common phenomenon on ETM devices. > > On HiSilicon Hip08 platform, a specific feature is adde

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