Re: [RFC PATCH 1/2] drm: RFC add choice to use dynamic debug in drm-debug

2020-12-04 Thread Ville Syrjälä
On Thu, Dec 03, 2020 at 08:53:17PM -0700, Jim Cromie wrote: > drm's debug system uses distinct categories of debug messages, mapped > to bits in drm.debug. Currently, code does a lot of unlikely bit-mask > checks on drm.debug (in drm_debug_enabled), we can use dynamic debug > instead, and get all

Re: [PATCH 06/10] sched/fair: Clear the target CPU from the cpumask of CPUs searched

2020-12-04 Thread Vincent Guittot
On Fri, 4 Dec 2020 at 16:40, Mel Gorman wrote: > > On Fri, Dec 04, 2020 at 04:23:48PM +0100, Vincent Guittot wrote: > > On Fri, 4 Dec 2020 at 15:31, Mel Gorman wrote: > > > > > > On Fri, Dec 04, 2020 at 02:47:48PM +0100, Vincent Guittot wrote: > > > > > IIUC, select_idle_core and select_idle_cpu

Re: [PATCH] media: mtk-vcodec: add remoteproc dependency

2020-12-04 Thread Arnd Bergmann
On Fri, Dec 4, 2020 at 9:26 AM Alexandre Courbot wrote: > > On Fri, Dec 4, 2020 at 8:15 AM Arnd Bergmann wrote: > > > > From: Arnd Bergmann > > > > The SCP firmware can only be built if CONFIG_REMOTEPROC is > > enabled: > > > > WARNING: unmet direct dependencies detected for MTK_SCP > >

Re: [PATCH 06/10] sched/fair: Clear the target CPU from the cpumask of CPUs searched

2020-12-04 Thread Mel Gorman
On Fri, Dec 04, 2020 at 04:23:48PM +0100, Vincent Guittot wrote: > On Fri, 4 Dec 2020 at 15:31, Mel Gorman wrote: > > > > On Fri, Dec 04, 2020 at 02:47:48PM +0100, Vincent Guittot wrote: > > > > IIUC, select_idle_core and select_idle_cpu share the same > > > > cpumask(select_idle_mask)? > > > >

Re: [PATCH v1 0/9] Enable root to update the blacklist keyring

2020-12-04 Thread Jarkko Sakkinen
On Fri, Dec 04, 2020 at 02:01:36PM +, David Howells wrote: > Mickaël Salaün wrote: > > > > What would be easiest way to smoke test the changes? > > > > An easy way to test it is to enable the second trusted keyring to > > dynamically load certificates in the kernel. Then we can create a

[PATCHv2] clocksource: dw_apb_timer_of: add error handling if no clock available

2020-12-04 Thread Dinh Nguyen
commit ("b0fc70ce1f02 arm64: berlin: Select DW_APB_TIMER_OF") added the support for the dw_apb_timer into the arm64 defconfig. However, for some platforms like the Intel Stratix10 and Agilex, the clock manager doesn't get loaded until after the timer driver get loaded. Thus, the driver hits the

Re: [PATCH] [v2] clk: samsung: mark PM functions as __maybe_unused

2020-12-04 Thread Sylwester Nawrocki
On 12/4/20 10:16, Arnd Bergmann wrote: From: Arnd Bergmann The use of SIMPLE_DEV_PM_OPS() means that the suspend/resume functions are now unused when CONFIG_PM is disabled: drivers/clk/samsung/clk-exynos-clkout.c:219:12: error: 'exynos_clkout_resume' defined but not used

[PATCH v2 2/2] hwspinlock: add sunxi hardware spinlock support

2020-12-04 Thread Wilken Gottwalt
Adds the sunxi_hwspinlock driver for the hardware spinlock unit found in most of the sun8i and sun50i based SoCs. This unit provides at least 32 spinlocks in hardware. The implementation supports 32, 64, 128 or 256 32bit registers, where one lock can be taken by reading a register and released by

[PATCH v2 1/2] dt-bindings: hwlock: sunxi: add sunxi_hwspinlock documentation

2020-12-04 Thread Wilken Gottwalt
Adds documentation on how to use the sunxi_hwspinlock driver for the sun8i and sun50i based SoCs. Signed-off-by: Wilken Gottwalt --- Changes in v2: - fixed memory ranges --- .../bindings/hwlock/sunxi-hwspinlock.yaml | 64 +++ 1 file changed, 64 insertions(+) create mode

[PATCH v2 0/2] hwspinlock: add sunxi hardware spinlock support

2020-12-04 Thread Wilken Gottwalt
Most of the Allwinner sun8i and sun50i based SoCs contain a spinlock unit which can be used to sync access to devices shared between the ARM cores in the embedded OpenRisc (AR100) core. This spinlock unit is included in the A83T, A64, H2+, H3, H5 and H6 SoCs and according to the datasheets support

Re: [PATCH] [v2] clk: samsung: mark PM functions as __maybe_unused

2020-12-04 Thread Krzysztof Kozlowski
On Fri, 4 Dec 2020 at 16:28, Sylwester Nawrocki wrote: > > From: Arnd Bergmann > > The use of SIMPLE_DEV_PM_OPS() means that the suspend/resume > functions are now unused when CONFIG_PM is disabled: > > drivers/clk/samsung/clk-exynos-clkout.c:219:12: error: > 'exynos_clkout_resume' defined but

[PATCH v2] scsi: NCR5380: Remove context check

2020-12-04 Thread Ahmed S. Darwish
NCR5380_poll_politely2() uses in_interrupt() and irqs_disabled() to check if it is safe to sleep. Such usage in drivers is phased out and Linus clearly requested that code which changes behaviour depending on context should either be separated, or the context be explicitly conveyed in an argument

[PATCH v4 0/3] improve get_feat.pl output when all features are displayed

2020-12-04 Thread Mauro Carvalho Chehab
Jon, As requested, those patches improve the output of the script, when all features are displayed. The first patch was already posted as-is at v3. Patch 2 is optional. IMO, it makes more sense for the admin guide to show the architectures where the features are OK, then TODO, and finally the

[PATCH v4 2/3] scripts: get_feat.pl: change the group by order

2020-12-04 Thread Mauro Carvalho Chehab
Right now, arch compatibility is grouped by status at the alphabetical order from A to Z, and then from a to z, e. g:. --- TODO ok Revert the order, in order to print first the OK results, then TODO, and, finally, the not compatible ones. Signed-off-by: Mauro Carvalho

[PATCH v4 1/3] scripts: get_feat.pl: make complete table more coincise

2020-12-04 Thread Mauro Carvalho Chehab
Currently, there are too many white spaces at the tables, and the information is very sparsed on it. Make the format a lot more compact. Suggested-by: Jonathan Corbet Signed-off-by: Mauro Carvalho Chehab --- scripts/get_feat.pl | 105 1 file

[PATCH v4 3/3] scripts: get_feat.pl: reduce table width for all features output

2020-12-04 Thread Mauro Carvalho Chehab
Auto-adjust the table columns width to better fit under terminals, by breaking the description on multiple lines and auto-estimating the minimal size for the per-architecture status. Signed-off-by: Mauro Carvalho Chehab --- scripts/get_feat.pl | 71 +

Re: [PATCH v8 3/4] doc: trusted-encrypted: updates with TEE as a new trust source

2020-12-04 Thread Jarkko Sakkinen
On Wed, Dec 02, 2020 at 02:34:07PM -0500, gmail Elaine Palmer wrote: > Hi Sumit, > > Thank you for the detailed descriptions and examples of trust sources > for Trusted Keys. A group of us in IBM (Stefan Berger, Ken Goldman, > Zhongshu Gu, Nayna Jain, Elaine Palmer, George Wilson, Mimi Zohar)

Re: [PATCH v2] mm/page_alloc: speeding up the iteration of max_order

2020-12-04 Thread Vlastimil Babka
On 12/4/20 1:56 PM, Muchun Song wrote: > When we free a page whose order is very close to MAX_ORDER and greater > than pageblock_order, it wastes some CPU cycles to increase max_order > to MAX_ORDER one by one and check the pageblock migratetype of that page > repeatedly especially when MAX_ORDER

Re: [PATCH bpf-next v3 13/14] bpf: Add tests for new BPF atomic operations

2020-12-04 Thread Yonghong Song
On 12/4/20 1:45 AM, Brendan Jackman wrote: On Thu, Dec 03, 2020 at 11:06:31PM -0800, Yonghong Song wrote: On 12/3/20 8:02 AM, Brendan Jackman wrote: [...] diff --git a/tools/testing/selftests/bpf/prog_tests/atomics_test.c b/tools/testing/selftests/bpf/prog_tests/atomics_test.c new file

[PATCH] [v2] clk: samsung: mark PM functions as __maybe_unused

2020-12-04 Thread Sylwester Nawrocki
From: Arnd Bergmann The use of SIMPLE_DEV_PM_OPS() means that the suspend/resume functions are now unused when CONFIG_PM is disabled: drivers/clk/samsung/clk-exynos-clkout.c:219:12: error: 'exynos_clkout_resume' defined but not used [-Werror=unused-function] 219 | static int

Re: [PATCH v3 3/3] dt-binding: hwmon: Add documentation for ltc2992

2020-12-04 Thread Guenter Roeck
On Thu, Dec 03, 2020 at 09:11:55AM +0200, alexandru.tach...@analog.com wrote: > From: Alexandru Tachici > > Add documentation for ltc2992. > > Signed-off-by: Alexandru Tachici Side note: You are supposed to keep previous Reviewed-by: tags unless there was a change. Applied, with Rob's

Re: [PATCH 06/10] sched/fair: Clear the target CPU from the cpumask of CPUs searched

2020-12-04 Thread Vincent Guittot
On Fri, 4 Dec 2020 at 15:31, Mel Gorman wrote: > > On Fri, Dec 04, 2020 at 02:47:48PM +0100, Vincent Guittot wrote: > > > IIUC, select_idle_core and select_idle_cpu share the same > > > cpumask(select_idle_mask)? > > > If the target's sibling is removed from select_idle_mask from > > >

Re: [PATCH v2 2/2] intel-hid: add alternative method to enable switches

2020-12-04 Thread Elia Devito
Hi Barnabás In data venerdì 4 dicembre 2020 00:45:10 CET, Barnabás Pőcze ha scritto: > Hi > > 2020. december 3., csütörtök 22:21 keltezéssel, Elia Devito írta: > > [...] > > diff --git a/drivers/platform/x86/intel-hid.c > > b/drivers/platform/x86/intel-hid.c index 86261970bd8f..fed24d4f28b8 > >

Re: [PATCH bpf-next v3 10/14] bpf: Add bitwise atomic instructions

2020-12-04 Thread Yonghong Song
On 12/4/20 1:36 AM, Brendan Jackman wrote: On Thu, Dec 03, 2020 at 10:42:19PM -0800, Yonghong Song wrote: On 12/3/20 8:02 AM, Brendan Jackman wrote: This adds instructions for atomic[64]_[fetch_]and atomic[64]_[fetch_]or atomic[64]_[fetch_]xor All these operations are isomorphic enough

Re: [PATCH V2 19/19] vdpa: introduce virtio pci driver

2020-12-04 Thread Stefano Garzarella
On Fri, Dec 04, 2020 at 12:03:53PM +0800, Jason Wang wrote: This patch introduce a vDPA driver for virtio-pci device. It bridges the virtio-pci control command to the vDPA bus. This will be used for features prototyping and testing. Note that get/restore virtqueue state is not supported which

Re: [PATCH v3 2/3] hwmon: ltc2992: Add support for GPIOs.

2020-12-04 Thread Guenter Roeck
On Thu, Dec 03, 2020 at 09:11:54AM +0200, alexandru.tach...@analog.com wrote: > From: Alexandru Tachici > > LTC2992 has 4 open-drain GPIOS. This patch exports to user > space the 4 GPIOs using the GPIO driver Linux API. > > Signed-off-by: Alexandru Tachici Applied. Thanks, Guenter > --- >

[PATCH 2/3] blk-mq: update arg in comment of blk_mq_map_queue

2020-12-04 Thread Minwoo Im
Update mis-named argument description of blk_mq_map_queue(). This patch also updates description that argument to software queue percpu context. Signed-off-by: Minwoo Im --- block/blk-mq.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/blk-mq.h b/block/blk-mq.h index

[PATCH 3/3] blk-mq: fix msec comment from micro to milli seconds

2020-12-04 Thread Minwoo Im
Delay to wait for queue running is milli second unit which is passed to delayed work via msecs_to_jiffies() which is to convert milliseconds to jiffies. Signed-off-by: Minwoo Im --- block/blk-mq.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/block/blk-mq.c

Re: [PATCH v3 1/3] hwmon: ltc2992: Add support

2020-12-04 Thread Guenter Roeck
On Thu, Dec 03, 2020 at 09:11:53AM +0200, alexandru.tach...@analog.com wrote: > From: Alexandru Tachici > > LTC2992 is a rail-to-rail system monitor that > measures current, voltage, and power of two supplies. > > Two ADCs simultaneously measure each supply’s current. > A third ADC monitors the

[PATCH 1/3] blk-mq: add helper allocating tagset->tags

2020-12-04 Thread Minwoo Im
tagset->set is allocated from blk_mq_alloc_tag_set() rather than being reallocated. This patch added a helper to make its meaning explicitly which is to allocate rather than to reallocate. Signed-off-by: Minwoo Im --- block/blk-mq.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-)

[PATCH 0/3] blk-mq: trivial helper and fixes comments

2020-12-04 Thread Minwoo Im
Hello, This patch set contains: - Introduce a helper to allocate tagset tags for the first time without 'realloc' keyword that used to be taken. - Fixes for comments need to be updated. Please have a look. Thanks, Minwoo Im (3): blk-mq: add helper allocating tagset->tags blk-mq:

Re: [PATCH bpf-next v3 09/14] bpf: Pull out a macro for interpreting atomic ALU operations

2020-12-04 Thread Yonghong Song
On 12/4/20 1:29 AM, Brendan Jackman wrote: On Thu, Dec 03, 2020 at 10:30:18PM -0800, Yonghong Song wrote: On 12/3/20 8:02 AM, Brendan Jackman wrote: Since the atomic operations that are added in subsequent commits are all isomorphic with BPF_ADD, pull out a macro to avoid the interpreter

Re: [PATCH] clk: meson: g12a: select COMMON_CLK_MESON_VID_PLL_DIV

2020-12-04 Thread Jerome Brunet
On Thu 03 Dec 2020 at 23:26, Arnd Bergmann wrote: > From: Arnd Bergmann > > Without this, a g12a-only config produces a link error: > > aarch64-linux-ld: drivers/clk/meson/g12a.o:(.data+0xcb68): undefined > reference to `meson_vid_pll_div_ro_ops' > > Fixes: 085a4ea93d54 ("clk: meson: g12a:

Re: [PATCH v2 0/6] Add a PRU remoteproc driver

2020-12-04 Thread Grzegorz Jaszczyk
Hi Suman, On Fri, 4 Dec 2020 at 16:05, Suman Anna wrote: > > Hi Greg, > > On 11/19/20 8:08 AM, Grzegorz Jaszczyk wrote: > > Hi All, > > > > The Programmable Real-Time Unit and Industrial Communication Subsystem > > (PRU-ICSS or simply PRUSS) on various TI SoCs consists of dual 32-bit > > RISC

Re: [PATCH] rtc: adapt allowed RTC update error

2020-12-04 Thread Alexandre Belloni
On 04/12/2020 10:46:59-0400, Jason Gunthorpe wrote: > > If you want to read an RTC accurately, you don't want to time a read, > > what you want is to time an alarm. This is a common misconception and > > is, again, why hctosys in its current state is not useful. > > I mean literatally time the

Re: crypto: sun4i-ss: error with kmap

2020-12-04 Thread Thomas Gleixner
On Fri, Dec 04 2020 at 14:26, Corentin Labbe wrote: > On Fri, Dec 04, 2020 at 12:34:05AM +0100, Thomas Gleixner wrote: >> The unmap comes from sg_miter_stop() and looking at the previous >> map/unmap cycles there are never nested maps. >> >> [ 996.943030] cryptset-316 0d..4 73943317us :

Re: [PATCH] mmc: mediatek: Add system suspend/resume interface

2020-12-04 Thread Ulf Hansson
On Thu, 3 Dec 2020 at 02:29, Nicolas Boichat wrote: > > This causes a 0-day warning (on our chromeos-5.4 backports but I don't > see why upstream would not be affected): > https://groups.google.com/g/cros-kernel-buildreports/c/MfS3SInT5jg/m/Hkzxh_U7AwAJ > > Didn't look at the details of the

Re: [PATCH v2 0/6] Add a PRU remoteproc driver

2020-12-04 Thread Suman Anna
Hi Greg, On 11/19/20 8:08 AM, Grzegorz Jaszczyk wrote: > Hi All, > > The Programmable Real-Time Unit and Industrial Communication Subsystem > (PRU-ICSS or simply PRUSS) on various TI SoCs consists of dual 32-bit > RISC cores (Programmable Real-Time Units, or PRUs) for program execution. > > The

[tip: x86/urgent] x86/sev-es: Use new for_each_insn_prefix() macro to loop over prefixes bytes

2020-12-04 Thread tip-bot2 for Masami Hiramatsu
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 46a4ad7814fa39971aa6549b30c1a08d5c2ec65f Gitweb: https://git.kernel.org/tip/46a4ad7814fa39971aa6549b30c1a08d5c2ec65f Author:Masami Hiramatsu AuthorDate:Thu, 03 Dec 2020 13:51:01 +09:00

Re: [PATCH v3 1/3] x86/uprobes: Fix not using prefixes.nbytes for loop over prefixes.bytes

2020-12-04 Thread Borislav Petkov
On Fri, Dec 04, 2020 at 07:55:20PM +0900, Masami Hiramatsu wrote: > +/** > + * for_each_insn_prefix() -- Iterate prefixes in the instruction > + * @insn: Pointer to struct insn. > + * @idx: Index storage. > + * @prefix: Prefix byte. > + * > + * Iterate prefix bytes of given @insn. Each prefix

[tip: x86/urgent] x86/insn-eval: Use new for_each_insn_prefix() macro to loop over prefixes bytes

2020-12-04 Thread tip-bot2 for Masami Hiramatsu
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 2d7896c24ec977e91af1ff93c823032a27212700 Gitweb: https://git.kernel.org/tip/2d7896c24ec977e91af1ff93c823032a27212700 Author:Masami Hiramatsu AuthorDate:Thu, 03 Dec 2020 13:50:50 +09:00

[tip: x86/urgent] x86/uprobes: Do not use prefixes.nbytes when looping over prefixes.bytes

2020-12-04 Thread tip-bot2 for Masami Hiramatsu
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 9dc23f960adb9ce410ef835b32a2398fdb09c828 Gitweb: https://git.kernel.org/tip/9dc23f960adb9ce410ef835b32a2398fdb09c828 Author:Masami Hiramatsu AuthorDate:Thu, 03 Dec 2020 13:50:37 +09:00

Re: [PATCH v3 0/3] x86/insn: Fix not using prefixes.nbytes for loop over prefixes.bytes

2020-12-04 Thread Borislav Petkov
On Fri, Dec 04, 2020 at 07:55:09PM +0900, Masami Hiramatsu wrote: > Hi, > > Here are the 3rd version of patches to fix the wrong loop boundary > check on insn.prefixes.bytes[] array. Ok, so I've committed the version with ARRAY_SIZE to keep it as small as possible for stable. Let's discuss the

Re: [PATCH v5] char: tpm: add i2c driver for cr50

2020-12-04 Thread Jarkko Sakkinen
On Thu, Dec 03, 2020 at 11:39:19PM +0200, Adrian Ratiu wrote: > From: "dlau...@chromium.org" > > Add TPM 2.0 compatible I2C interface for chips with cr50 firmware. > > The firmware running on the currently supported H1 MCU requires a > special driver to handle its specific protocol, and this

Re: [PATCH 2/2] usb-storage: revert from scsi_add_host_with_dma() to scsi_add_host()

2020-12-04 Thread Greg KH
On Mon, Nov 30, 2020 at 02:55:45PM +0100, Hans de Goede wrote: > Hi, > > On 11/30/20 2:53 PM, Greg KH wrote: > > On Mon, Nov 30, 2020 at 02:36:38PM +0100, Hans de Goede wrote: > >> Hi, > >> > >> On 11/30/20 2:30 PM, Greg KH wrote: > >>> On Mon, Nov 30, 2020 at 02:23:48PM +0100, Hans de Goede

Re: [PATCH net v1] net: dsa: qca: ar9331: fix sleeping function called from invalid context bug

2020-12-04 Thread Marc Kleine-Budde
On 12/4/20 3:57 PM, Oleksij Rempel wrote: [...] > +static void ar9331_sw_irq_bus_sync_unlock(struct irq_data *d) > { > struct ar9331_sw_priv *priv = irq_data_get_irq_chip_data(d); > struct regmap *regmap = priv->regmap; > int ret; > > ret = regmap_update_bits(regmap,

Why the auxiliary cipher in gss_krb5_crypto.c?

2020-12-04 Thread David Howells
Hi Chuck, Bruce, Why is gss_krb5_crypto.c using an auxiliary cipher? For reference, the gss_krb5_aes_encrypt() code looks like the attached. >From what I can tell, in AES mode, the difference between the main cipher and the auxiliary cipher is that the latter is "cbc(aes)" whereas the former is

RE: [PATCH v3 06/11] evm: Ignore INTEGRITY_NOLABEL if no HMAC key is loaded

2020-12-04 Thread Roberto Sassu
> From: Mimi Zohar [mailto:zo...@linux.ibm.com] > Sent: Friday, December 4, 2020 2:05 PM > On Fri, 2020-12-04 at 08:05 +, Roberto Sassu wrote: > > > From: Mimi Zohar [mailto:zo...@linux.ibm.com] > > > Sent: Thursday, December 3, 2020 9:43 PM > > > Hi Roberto, > > > > > > On Wed, 2020-11-11 at

Re: [PATCH v1 2/9] certs: Make blacklist_vet_description() more strict

2020-12-04 Thread Mickaël Salaün
On 04/12/2020 15:09, David Howells wrote: > Mickaël Salaün wrote: > >> +if (*desc) >> +/* The hash is greater than MAX_HASH_LEN. */ >> +return -EINVAL; > > -ENOPKG might be better. It's not that the string is invalid, it's just that > it's unsupported at the

Re: [PATCH v1 5/9] PKCS#7: Fix missing include

2020-12-04 Thread Mickaël Salaün
On 04/12/2020 15:06, David Howells wrote: > Mickaël Salaün wrote: > >> +#include > > Something like linux/types.h is probably a better choice. Indeed. > > David >

Re: [PATCH] ARM: OMAP2+: omap_device: fix idling of devices during probe

2020-12-04 Thread Ulf Hansson
On Fri, 4 Dec 2020 at 10:55, Andreas Kemnade wrote: > > On the GTA04A5 od->_driver_status was not set to BUS_NOTIFY_BIND_DRIVER > during probe of the second mmc used for wifi. Therefore > omap_device_late_idle idled the device during probing causing oopses when > accessing the registers. > > It

[PATCH net v1] net: dsa: qca: ar9331: fix sleeping function called from invalid context bug

2020-12-04 Thread Oleksij Rempel
With lockdep enabled, we will get following warning: ar9331_switch ethernet.1:10 lan0 (uninitialized): PHY [!ahb!ethernet@1a00!mdio!switch@10:00] driver [Qualcomm Atheros AR9331 built-in PHY] (irq=13) BUG: sleeping function called from invalid context at kernel/locking/mutex.c:935

[PATCH v4 net-next 2/2] net: dsa: qca: ar9331: export stats64

2020-12-04 Thread Oleksij Rempel
Add stats support for the ar9331 switch. Signed-off-by: Oleksij Rempel --- drivers/net/dsa/qca/ar9331.c | 247 ++- 1 file changed, 246 insertions(+), 1 deletion(-) diff --git a/drivers/net/dsa/qca/ar9331.c b/drivers/net/dsa/qca/ar9331.c index

[PATCH v4 net-next 0/2] net: dsa: add stats64 support

2020-12-04 Thread Oleksij Rempel
changes v4: - do no read MIBs withing stats64 call - change polling frequency to 0.3Hz changes v3: - fix wrong multiplication - cancel port workers on remove changes v2: - use stats64 instead of get_ethtool_stats - add worked to poll for the stats Oleksij Rempel (2): net: dsa: add optional

[PATCH v4 net-next 1/2] net: dsa: add optional stats64 support

2020-12-04 Thread Oleksij Rempel
Allow DSA drivers to export stats64 Signed-off-by: Oleksij Rempel Reviewed-by: Vladimir Oltean --- include/net/dsa.h | 3 +++ net/dsa/slave.c | 14 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/include/net/dsa.h b/include/net/dsa.h index

Re: [PATCH] mmc: mediatek: mark PM functions as __maybe_unused

2020-12-04 Thread Arnd Bergmann
On Fri, Dec 4, 2020 at 3:38 PM Ulf Hansson wrote: . > > > > I don't see a lot of other instances of that yet, and it's fairly new. > > Maybe we should fix it before it gets propagated further. > > > > I would suggest we redefine pm_ptr like > > > > #define pm_ptr(_ptr) (IS_ENABLED(CONFIG_PM) ?

Re: [PATCH v3 06/18] ibmvfc: add handlers to drain and complete Sub-CRQ responses

2020-12-04 Thread Brian King
On 12/2/20 8:07 PM, Tyrel Datwyler wrote: > The logic for iterating over the Sub-CRQ responses is similiar to that > of the primary CRQ. Add the necessary handlers for processing those > responses. > > Signed-off-by: Tyrel Datwyler > --- > drivers/scsi/ibmvscsi/ibmvfc.c | 80

Re: [PATCH] PM: domains: create debugfs nodes when adding power domains

2020-12-04 Thread Ulf Hansson
On Fri, 4 Dec 2020 at 00:35, Thierry Strudel wrote: > > debugfs nodes were created in genpd_debug_init alled in late_initcall > preventing power domains registered though loadable modules to have > a debugfs entry. > > Create/remove debugfs nodes when the power domain is added/removed > to/from

[PATCH] power: bq27xxx: fix polarity of current_now

2020-12-04 Thread Andreas Kemnade
current_now has to be negative during discharging and positive during charging, the behavior seen is the other way round. Tested on GTA04 with Openmoko battery Signed-off-by: Andreas Kemnade --- drivers/power/supply/bq27xxx_battery.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

Re: [PATCH v1 1/9] certs: Fix blacklisted hexadecimal hash string check

2020-12-04 Thread Mickaël Salaün
On 04/12/2020 15:05, David Howells wrote: > Mickaël Salaün wrote: > >> When looking for a blacklisted hash, bin2hex() is used to transform a >> binary hash to an ascii (lowercase) hexadecimal string. This string is >> then search for in the description of the keys from the blacklist >>

Re: [PATCH v3 04/18] ibmvfc: add alloc/dealloc routines for SCSI Sub-CRQ Channels

2020-12-04 Thread Brian King
On 12/2/20 8:07 PM, Tyrel Datwyler wrote: > @@ -4983,6 +4993,118 @@ static int ibmvfc_init_crq(struct ibmvfc_host *vhost) > return retrc; > } > > +static int ibmvfc_register_scsi_channel(struct ibmvfc_host *vhost, > + int index) > +{ > + struct device

Re: [PATCH] rtc: adapt allowed RTC update error

2020-12-04 Thread Jason Gunthorpe
On Fri, Dec 04, 2020 at 03:37:35PM +0100, Alexandre Belloni wrote: > On 04/12/2020 10:08:19-0400, Jason Gunthorpe wrote: > > On Fri, Dec 04, 2020 at 02:02:57PM +0100, Thomas Gleixner wrote: > > > > > No magic sign calculation required if you look at it from the actual > > > timeline and account

Re: [PATCH v2 08/15] usb: misc: idmouse: update to use usb_control_msg_send()

2020-12-04 Thread Johan Hovold
On Mon, Nov 30, 2020 at 07:00:31AM +0530, Anant Thazhemadam wrote: > The newer usb_control_msg_{send|recv}() API are an improvement on the > existing usb_control_msg() as it ensures that a short read/write is treated > as an error, data can be used off the stack, and raw usb pipes need not be >

Re: [PATCH v2 2/8] earlycon: simplify earlycon-table implementation

2020-12-04 Thread Greg Kroah-Hartman
On Fri, Dec 04, 2020 at 03:03:45PM +0100, Johan Hovold wrote: > Greg, > > On Mon, Nov 23, 2020 at 11:23:13AM +0100, Johan Hovold wrote: > > Instead of using the array-of-pointers trick to avoid having gcc mess up > > the earlycon array stride, specify type alignment when declaring entries > > to

Re: [PATCH] s390/vfio-ap: Clean up vfio_ap resources when KVM pointer invalidated

2020-12-04 Thread Tony Krowiak
On 12/3/20 12:55 PM, Halil Pasic wrote: On Wed, 2 Dec 2020 18:41:01 -0500 Tony Krowiak wrote: The vfio_ap device driver registers a group notifier with VFIO when the file descriptor for a VFIO mediated device for a KVM guest is opened to receive notification that the KVM pointer is set

Re: [PATCH v1 3/7] spi: qspi-tegra: Add support for Tegra210 QSPI controller

2020-12-04 Thread Jon Hunter
On 01/12/2020 21:12, Sowjanya Komatineni wrote: > Tegra SoC has a Quad SPI controller starting from Tegra210. > > This patch adds support for Tegra210 QSPI controller. > > Signed-off-by: Sowjanya Komatineni > --- > drivers/spi/Kconfig |9 + > drivers/spi/Makefile |1 + >

Re: [PATCH v2 06/15] usb: misc: emi62: update to use usb_control_msg_send()

2020-12-04 Thread Johan Hovold
On Mon, Nov 30, 2020 at 06:59:25AM +0530, Anant Thazhemadam wrote: > The newer usb_control_msg_{send|recv}() API are an improvement on the > existing usb_control_msg() as it ensures that a short read/write is treated > as an error, data can be used off the stack, and raw usb pipes need not be >

[PATCH v6] checkpatch: add fix for non-standard signature - co-authored-by

2020-12-04 Thread Aditya Srivastava
signature equivalent for 'Co-authored-by' is 'Co-developed-by'. Provide a fix by suggesting users with this signature alternative and replacing. Signed-off-by: Aditya Srivastava --- applies perfectly on the latest next-20201204 branch changes in v2: replace commit specific example with brief

Re: [PATCH v2 05/15] usb: misc: emi26: update to use usb_control_msg_send()

2020-12-04 Thread Johan Hovold
On Mon, Nov 30, 2020 at 06:58:47AM +0530, Anant Thazhemadam wrote: > The newer usb_control_msg_{send|recv}() API are an improvement on the > existing usb_control_msg() as it ensures that a short read/write is treated > as an error, Short writes have always been treated as an error. The new send

Re: [PATCH] mmc: mediatek: mark PM functions as __maybe_unused

2020-12-04 Thread Ulf Hansson
On Fri, 4 Dec 2020 at 15:14, Arnd Bergmann wrote: > > On Fri, Dec 4, 2020 at 11:02 AM Ulf Hansson wrote: > > On Thu, 3 Dec 2020 at 23:29, Arnd Bergmann wrote: > > > > -#ifdef CONFIG_PM > > > static void msdc_save_reg(struct msdc_host *host) > > > > Shouldn't msdc_save|restore_reg() be turned

Re: [RFC PATCH v2 0/2] add simple copy support

2020-12-04 Thread Keith Busch
On Fri, Dec 04, 2020 at 11:25:12AM +, Damien Le Moal wrote: > On 2020/12/04 20:02, SelvaKumar S wrote: > > This patchset tries to add support for TP4065a ("Simple Copy Command"), > > v2020.05.04 ("Ratified") > > > > The Specification can be found in following link. > >

Re: [PATCH] dt-bindings: mmc: Fix xlnx,mio-bank property values for arasan driver

2020-12-04 Thread Ulf Hansson
On Wed, 2 Dec 2020 at 14:16, Michal Simek wrote: > > Xilinx ZynqMP has 3 mio banks and all of them are valid. That's why also > list the first one which is missing. Property is enumeration not range. > > Signed-off-by: Michal Simek Applied for next, thanks! Kind regards Uffe > --- > >

Re: [PATCH] mmc: block: Let CMD13 polling only for MMC IOCTLS with the R1B response

2020-12-04 Thread Ulf Hansson
On Wed, 2 Dec 2020 at 21:23, Bean Huo wrote: > > From: Bean Huo > > The CMD13 polling is only needed for the command with R1B Resp. For the > command with R1 Resp, such as open-ended multiple block read/write > (CMD18/25) commands, the device will just wait for its next paired command. > There

Re: [PATCH,v2] mmc: sdhci-pci-gli: Disable slow mode in HS400 mode for GL9763E

2020-12-04 Thread Ulf Hansson
On Wed, 25 Nov 2020 at 12:01, Ben Chuang wrote: > > From: Ben Chuang > > The GL9763E uses 150Mhz (slow mode) by default in HS400 mode. In order > to make HS400 mode run at 200Mhz, the slow mode needs to be turned off. > > Signed-off-by: Ben Chuang Applied for next, thanks! Kind regards Uffe

Re: [PATCH] rtc: adapt allowed RTC update error

2020-12-04 Thread Alexandre Belloni
On 04/12/2020 10:08:19-0400, Jason Gunthorpe wrote: > On Fri, Dec 04, 2020 at 02:02:57PM +0100, Thomas Gleixner wrote: > > > No magic sign calculation required if you look at it from the actual > > timeline and account the time between write and next second increment > > correctly. > > Yes, it

Re: [PATCH] memstick: r592: Fix error return in r592_probe()

2020-12-04 Thread Ulf Hansson
On Wed, 25 Nov 2020 at 02:43, Jing Xiangfeng wrote: > > Fix to return a error code from the error handling case instead of 0. > > Fixes: 926341250102 ("memstick: add driver for Ricoh R5C592 card reader") > Signed-off-by: Jing Xiangfeng Applied for next, thanks! Kind regards Uffe > --- >

Re: [PATCH] mmc: sdhci: Use more concise device_property_read_u64

2020-12-04 Thread Ulf Hansson
On Wed, 25 Nov 2020 at 04:36, Jeremy Linton wrote: > > Since we only need a single u64 the _array form is > unnecessarily. Use device_property_read_u64 instead. > > Signed-off-by: Jeremy Linton Applied for next, thanks! Kind regards Uffe > --- > drivers/mmc/host/sdhci.c | 8 > 1

Re: [RFC v2 2/2] [MOCKUP] sched/mm: Lightweight lazy mm refcounting

2020-12-04 Thread Andy Lutomirski
> On Dec 3, 2020, at 11:54 PM, Nicholas Piggin wrote: > > Excerpts from Andy Lutomirski's message of December 4, 2020 3:26 pm: >> This is a mockup. It's designed to illustrate the algorithm and how the >> code might be structured. There are several things blatantly wrong with >> it: >> >>

Re: [PATCH v3] lockdep: Allow tuning tracing capacity constants.

2020-12-04 Thread Tetsuo Handa
I attempted some analysis, but I couldn't find which lock is causing nr_list_entries == 32768. Since "struct lock_list list_entries[MAX_LOCKDEP_ENTRIES]" is marked as "static" variable in lockdep.c , none of /proc/lockdep_stats /proc/lockdep /proc/lockdep_chains can report which lock is

Re: [EXT] Re: [PATCH v5 07/10] media: Add parsing for APP14 data segment in jpeg helpers

2020-12-04 Thread Philipp Zabel
On Fri, 2020-12-04 at 14:13 +, Mirela Rabulea (OSS) wrote: > Hi Phipipp, > > On Wed, 2020-12-02 at 16:18 +0100, Philipp Zabel wrote: > > Hi Mirela, > > > > On Thu, 2020-11-12 at 05:05 +0200, Mirela Rabulea (OSS) wrote: > > > From: Mirela Rabulea > > > > > > According to Rec. ITU-T T.872

Re: [PATCH 06/10] sched/fair: Clear the target CPU from the cpumask of CPUs searched

2020-12-04 Thread Mel Gorman
On Fri, Dec 04, 2020 at 02:47:48PM +0100, Vincent Guittot wrote: > > IIUC, select_idle_core and select_idle_cpu share the same > > cpumask(select_idle_mask)? > > If the target's sibling is removed from select_idle_mask from > > select_idle_core(), > > select_idle_cpu() will lose the chance to

Re: [PATCH V2 17/19] vdpa: set the virtqueue num during register

2020-12-04 Thread Stefano Garzarella
On Fri, Dec 04, 2020 at 12:03:51PM +0800, Jason Wang wrote: This patch delay the queue number setting to vDPA device registering. This allows us to probe the virtqueue numbers between device allocation and registering. Signed-off-by: Jason Wang --- drivers/vdpa/ifcvf/ifcvf_main.c | 5 ++---

Re: [PATCH v2 01/17] ibmvfc: add vhost fields and defaults for MQ enablement

2020-12-04 Thread Brian King
On 12/2/20 11:27 AM, Tyrel Datwyler wrote: > On 12/2/20 7:14 AM, Brian King wrote: >> On 12/1/20 6:53 PM, Tyrel Datwyler wrote: >>> Introduce several new vhost fields for managing MQ state of the adapter >>> as well as initial defaults for MQ enablement. >>> >>> Signed-off-by: Tyrel Datwyler >>>

Re: [PATCH 06/10] sched/fair: Clear the target CPU from the cpumask of CPUs searched

2020-12-04 Thread Mel Gorman
On Fri, Dec 04, 2020 at 02:17:20PM +0100, Vincent Guittot wrote: > On Fri, 4 Dec 2020 at 14:13, Vincent Guittot > wrote: > > > > On Fri, 4 Dec 2020 at 12:30, Mel Gorman wrote: > > > > > > On Fri, Dec 04, 2020 at 11:56:36AM +0100, Vincent Guittot wrote: > > > > > The intent was that the sibling

Re: 0001-add-amlogic-gpio-to-irq

2020-12-04 Thread Jerome Brunet
On Fri 04 Dec 2020 at 10:13, Linus Walleij wrote: > Hi Lisheng, > > this patch got a bit mangled but I get where you're going. > > I think Meson needs to be augmented to use hierarchical gpiolib irqchip > because this seems to be what the system is doing. > > So start with

[rcu:dev.2020.12.02a] BUILD REGRESSION 078e84bbcc794263adc2e5d94415447455773c25

2020-12-04 Thread kernel test robot
-imote2_defconfig | `-- (.text):undefined-reference-to-kmem_cache_last_alloc |-- openrisc-randconfig-r004-20201204 | `-- (.text):undefined-reference-to-kmem_cache_last_alloc `-- parisc-defconfig `-- (.text):undefined-reference-to-kmem_cache_last_alloc elapsed time: 720m configs tested: 114

Re: [PATCH v8 3/4] phy: Add Sparx5 ethernet serdes PHY driver

2020-12-04 Thread Alexandre Belloni
On 03/12/2020 22:52:53+0100, Andrew Lunn wrote: > > + if (macro->serdestype == SPX5_SDT_6G) { > > + value = sdx5_rd(priv, SD6G_LANE_LANE_DF(macro->stpidx)); > > + analog_sd = SD6G_LANE_LANE_DF_PMA2PCS_RXEI_FILTERED_GET(value); > > + } else if (macro->serdestype ==

[rcu:rcu/next] BUILD REGRESSION 413d9f332cbd16d951c22a41f2e5f53c1a75ae1c

2020-12-04 Thread kernel test robot
to `kmem_cache_last_alloc' Error/Warning ids grouped by kconfigs: gcc_recent_errors |-- arc-defconfig | `-- slab_common.c:(.text):undefined-reference-to-kmem_cache_last_alloc |-- arc-randconfig-p001-20201204 | `-- slab_common.c:(.text):undefined-reference-to-kmem_cache_last_alloc |-- arm

Re: [PATCH v2 6/6] remoteproc/pru: Add support for various PRU cores on K3 J721E SoCs

2020-12-04 Thread Grzegorz Jaszczyk
Hi Mathieu, On Thu, 3 Dec 2020 at 19:53, Mathieu Poirier wrote: > > On Thu, Nov 19, 2020 at 03:08:50PM +0100, Grzegorz Jaszczyk wrote: > > From: Suman Anna > > > > The K3 J721E family of SoCs have a revised version of the AM65x ICSSG IP > > and contains two instances of this newer ICSSG IP.

Re: [PATCH v1 8/9] certs: Replace K{U,G}IDT_INIT() with GLOBAL_ROOT_{U,G}ID

2020-12-04 Thread David Howells
Mickaël Salaün wrote: > - KUIDT_INIT(0), KGIDT_INIT(0), current_cred(), > + GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, current_cred(), I may pull out some of the relatively trivial changes like this and add them to my keys-fixes branch. David

Re: [PATCH v2 5/6] remoteproc/pru: Add support for various PRU cores on K3 AM65x SoCs

2020-12-04 Thread Grzegorz Jaszczyk
Hi Mathieu, On Thu, 3 Dec 2020 at 19:51, Mathieu Poirier wrote: > > On Thu, Nov 19, 2020 at 03:08:49PM +0100, Grzegorz Jaszczyk wrote: > > From: Suman Anna > > > > The K3 AM65x family of SoCs have the next generation of the PRU-ICSS > > processor subsystem, commonly referred to as ICSSG. Each

Re: [PATCH v2 3/6] remoteproc/pru: Add support for PRU specific interrupt configuration

2020-12-04 Thread Grzegorz Jaszczyk
Hi Mathieu, On Wed, 2 Dec 2020 at 23:57, Mathieu Poirier wrote: > > On Thu, Nov 19, 2020 at 03:08:47PM +0100, Grzegorz Jaszczyk wrote: > > The firmware blob can contain optional ELF sections: .resource_table > > section and .pru_irq_map one. The second one contains the PRUSS > > interrupt

Re: [EXT] Re: [PATCH v5 07/10] media: Add parsing for APP14 data segment in jpeg helpers

2020-12-04 Thread Mirela Rabulea (OSS)
Hi Phipipp, On Wed, 2020-12-02 at 16:18 +0100, Philipp Zabel wrote: > > Hi Mirela, > > On Thu, 2020-11-12 at 05:05 +0200, Mirela Rabulea (OSS) wrote: > > From: Mirela Rabulea > > > > According to Rec. ITU-T T.872 (06/2012) 6.5.3 > > APP14 segment is for color encoding, it contains a transform

Re: [PATCH] mmc: mediatek: mark PM functions as __maybe_unused

2020-12-04 Thread Arnd Bergmann
On Fri, Dec 4, 2020 at 11:02 AM Ulf Hansson wrote: > On Thu, 3 Dec 2020 at 23:29, Arnd Bergmann wrote: > > -#ifdef CONFIG_PM > > static void msdc_save_reg(struct msdc_host *host) > > Shouldn't msdc_save|restore_reg() be turned into "__maybe_unused" as well? There is no need since the compiler

Re: [PATCH v2 4/6] remoteproc/pru: Add pru-specific debugfs support

2020-12-04 Thread Grzegorz Jaszczyk
Hi Mathieu, On Thu, 3 Dec 2020 at 19:21, Mathieu Poirier wrote: > > On Thu, Nov 19, 2020 at 03:08:48PM +0100, Grzegorz Jaszczyk wrote: > > From: Suman Anna > > > > The remoteproc core creates certain standard debugfs entries, > > that does not give a whole lot of useful information for the > >

Re: [PATCH v1 2/9] certs: Make blacklist_vet_description() more strict

2020-12-04 Thread David Howells
Mickaël Salaün wrote: > + if (*desc) > + /* The hash is greater than MAX_HASH_LEN. */ > + return -EINVAL; -ENOPKG might be better. It's not that the string is invalid, it's just that it's unsupported at the moment. David

Re: [PATCH v2 2/6] remoteproc/pru: Add a PRU remoteproc driver

2020-12-04 Thread Grzegorz Jaszczyk
Hi Mathieu, Suman On Fri, 4 Dec 2020 at 00:43, Suman Anna wrote: > > Hi Mathieu, > > On 12/2/20 3:13 PM, Mathieu Poirier wrote: > > On Wed, Dec 02, 2020 at 01:53:36PM -0700, Mathieu Poirier wrote: > >> On Tue, Dec 01, 2020 at 03:54:36PM -0700, Mathieu Poirier wrote: > >>> Hi Grzeg, > >>> > >>> I

Re: [PATCH] rtc: adapt allowed RTC update error

2020-12-04 Thread Jason Gunthorpe
On Fri, Dec 04, 2020 at 02:02:57PM +0100, Thomas Gleixner wrote: > No magic sign calculation required if you look at it from the actual > timeline and account the time between write and next second increment > correctly. Yes, it is equivalent to break things into two values, and does look to be

Re: [PATCH 06/10] sched/fair: Clear the target CPU from the cpumask of CPUs searched

2020-12-04 Thread Li, Aubrey
On 2020/12/4 21:47, Vincent Guittot wrote: > On Fri, 4 Dec 2020 at 14:40, Li, Aubrey wrote: >> >> On 2020/12/4 21:17, Vincent Guittot wrote: >>> On Fri, 4 Dec 2020 at 14:13, Vincent Guittot >>> wrote: On Fri, 4 Dec 2020 at 12:30, Mel Gorman wrote: > > On Fri, Dec 04,

Re: [PATCH v1 1/9] certs: Fix blacklisted hexadecimal hash string check

2020-12-04 Thread David Howells
Mickaël Salaün wrote: > When looking for a blacklisted hash, bin2hex() is used to transform a > binary hash to an ascii (lowercase) hexadecimal string. This string is > then search for in the description of the keys from the blacklist > keyring. When adding a key to the blacklist keyring, >

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