Re: [RFC 1/2] printk: Add kernel parameter: mute_console

2020-10-22 Thread Guenter Roeck
On 10/22/20 6:45 AM, Steven Rostedt wrote: > On Thu, 22 Oct 2020 13:42:27 +0200 > Petr Mladek wrote: > >> diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c >> index fe64a49344bf..63fb96630767 100644 >> --- a/kernel/printk/printk.c >> +++ b/kernel/printk/printk.c >> @@ -1207,6 +1207,19

Re: RFC 2/2] printk: Restore and document obsolete ways to disable console output

2020-10-22 Thread Guenter Roeck
On 10/22/20 4:42 AM, Petr Mladek wrote: > The commit 48021f98130880dd7 ("printk: handle blank console arguments > passed in.") prevented crash caused by empty console= parameter value. > > Unfortunately, this value is widely used on Chromebooks to disable > the console output. The above commit

Re: [PATCHv2 2/4] coresight: tmc-etf: Fix NULL ptr dereference in tmc_enable_etf_sink_perf()

2020-10-22 Thread Sai Prakash Ranjan
On 2020-10-22 19:04, Peter Zijlstra wrote: On Thu, Oct 22, 2020 at 06:19:37PM +0530, Sai Prakash Ranjan wrote: On 2020-10-22 17:02, Peter Zijlstra wrote: > On Thu, Oct 22, 2020 at 04:27:52PM +0530, Sai Prakash Ranjan wrote: > > > Looking at the ETR and other places in the kernel, ETF and the >

Re: [PATCH v3] HID: i2c-hid: add polling mode based on connected GPIO chip's pin status

2020-10-22 Thread Barnabás Pőcze
Hi, I think this looks a lot better than the first version, the issues around suspend/resume are sorted out as far as I can see. However, I still have a couple comments, mainly minor ones. > [...] > +/* polling mode */ > +#define I2C_HID_POLLING_DISABLED 0 > +#define I2C_HID_POLLING_GPIO_PIN 1

[PATCH][next] docs/vm: trivial fixes to several spelling mistakes

2020-10-22 Thread Colin King
From: Colin Ian King Fix several spelling mistakes in vm documentation. Signed-off-by: Colin Ian King --- Documentation/vm/mmu_notifier.rst | 2 +- Documentation/vm/page_migration.rst | 2 +- Documentation/vm/page_owner.rst | 2 +- Documentation/vm/slub.rst | 2 +- 4 files

[PATCH] Bluetooth: btrtl: Ask 8821C to drop old firmware after shutdown

2020-10-22 Thread Kai-Heng Feng
Some platforms keep USB power even when they are powered off and in S5, this makes Realtek 8821C keep its firmware even after a cold boot, and make 8821C never load new firmware. So use vendor specific HCI command to ask 8821C drop its firmware after system shutdown. Newer firmware doesn't have

Re: [PATCH] KVM: X86: Expose KVM_HINTS_REALTIME in KVM_GET_SUPPORTED_CPUID

2020-10-22 Thread Xiaoyao Li
On 10/22/2020 10:06 PM, Paolo Bonzini wrote: On 22/10/20 15:31, Xiaoyao Li wrote: It's common for userspace to copy all supported CPUID bits to KVM_SET_CPUID2, I don't think this is the right behavior for KVM_HINTS_REALTIME. It reminds of X86_FEATURE_WAITPKG, which is added to supported

Re: Reducing number of Espressobin DTS files

2020-10-22 Thread Andrew Lunn
> For example, Turris MOX board which is also A3720 based has optional > SDIO module which can be plugged / unplugged, standard variant is sold > without it and in DTS file is this node always enabled: I think the Turris has quite a sophisticated bootloader which manipulates the DT to fit the

RE: sound/soc/intel/catpt/dsp.c:359:9: sparse: sparse: restricted pci_power_t degrades to integer

2020-10-22 Thread Rojewski, Cezary
linux.git >>> master >>> head: f804b3159482eedbb4250b1e9248c308fb63b805 >>> commit: 6cbfa11d2694b8a1e46d6834fb9705d5589e3ef1 ASoC: Intel: Select catpt >>> and deprecate haswell >>> date: 3 weeks ago >>> config: i386-randconfig-s002-2020

Re: [RFC PATCH net-next 7/9] net: dsa: microchip: ksz9477: add hardware time stamping support

2020-10-22 Thread Richard Cochran
On Thu, Oct 22, 2020 at 02:32:43PM +0300, Vladimir Oltean wrote: > On Thu, Oct 22, 2020 at 01:11:40PM +0200, Christian Eggers wrote: > > > it seems that "moving" the timestamp back to the tail tag on TX is not > > required anymore. Keeping the RX timestamp simply in the correction > > field

[PATCH] sched/deadline: remove the param struct rq in pick_next_dl_entity()

2020-10-22 Thread Hui Su
we can get the next dl_entity just from struct dl_rq, and do not need the param struct rq. So remove it. Like the change: https://lkml.org/lkml/2020/9/29/2030 Signed-off-by: Hui Su --- kernel/sched/deadline.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git

Re: [PATCH] checkpatch: fix false positive for REPEATED_WORD warning

2020-10-22 Thread Joe Perches
On Thu, 2020-10-22 at 19:51 +0530, Aditya wrote: > > > Alright Sir. Joe is fine, sir isn't necessary. > Hi Sir > I have implemented my solution. Should I send the patch in reply to > this mail or as a different mail? Also should I label it as v2? I have > also addressed the warnings out of list

Re: Problem with checkpatch.pl (commit f5f613259f3f ("checkpatch: allow not using -f with files that are in git"))

2020-10-22 Thread Joe Perches
On Thu, 2020-10-22 at 15:59 +0200, Christophe Leroy wrote: > Hi, > > Runnning ./scripts/checkpatch.pl -g HEAD, I get the following error: > > Global symbol "$gitroot" requires explicit package name at > ./scripts/checkpatch.pl line 980. > Execution of ./scripts/checkpatch.pl aborted due to

Re: Buggy commit tracked to: "Re: [PATCH 2/9] iov_iter: move rw_copy_check_uvector() into lib/iov_iter.c"

2020-10-22 Thread Greg KH
On Thu, Oct 22, 2020 at 04:28:20PM +0200, Arnd Bergmann wrote: > On Thu, Oct 22, 2020 at 3:50 PM Greg KH wrote: > > On Thu, Oct 22, 2020 at 02:57:59PM +0200, Greg KH wrote: > > > On Thu, Oct 22, 2020 at 02:42:24PM +0200, David Hildenbrand wrote: > > > > > struct iovec *iovec_from_user(const

Re: Reducing number of Espressobin DTS files

2020-10-22 Thread Pali Rohár
On Thursday 22 October 2020 16:29:00 Andrew Lunn wrote: > > For example, Turris MOX board which is also A3720 based has optional > > SDIO module which can be plugged / unplugged, standard variant is sold > > without it and in DTS file is this node always enabled: > > I think the Turris has quite

Re: [PATCH] KVM: X86: Expose KVM_HINTS_REALTIME in KVM_GET_SUPPORTED_CPUID

2020-10-22 Thread Paolo Bonzini
On 22/10/20 16:28, Xiaoyao Li wrote: > On 10/22/2020 10:06 PM, Paolo Bonzini wrote: >> On 22/10/20 15:31, Xiaoyao Li wrote: It's common for userspace to copy all supported CPUID bits to KVM_SET_CPUID2, I don't think this is the right behavior for KVM_HINTS_REALTIME. >>> >>> It

[PATCH v2] checkpatch: fix false positives in REPEATED_WORD warning

2020-10-22 Thread Aditya Srivastava
Presence of hexadecimal address or symbol results in false warning message by checkpatch.pl. For example, running checkpatch on commit b8ad540dd4e4 ("mptcp: fix memory leak in mptcp_subflow_create_socket()") results in warning: WARNING:REPEATED_WORD: Possible repeated word: 'ff' 00 00 00 00

[PATCH] fuse: fix potential accessing NULL pointer problem in fuse_send_init()

2020-10-22 Thread Zhiqiang Liu
In fuse_send_init func, ia is allocated by calling kzalloc func, and we donot check whether ia is NULL before using it. Thus, if allocating ia fails, accessing NULL pointer problem will occur. Here, we will call process_init_reply func if ia is NULL. Fixes: 615047eff108 ("fuse: convert init to

Re: [PATCH] mm,thp,shmem: limit shmem THP alloc gfp_mask

2020-10-22 Thread Vlastimil Babka
On 10/22/20 5:48 AM, Rik van Riel wrote: The allocation flags of anonymous transparent huge pages can be controlled through the files in /sys/kernel/mm/transparent_hugepage/defrag, which can help the system from getting bogged down in the page reclaim and compaction code when many THPs are

Re: linux-next: Tree for Oct 22 (mlx5)

2020-10-22 Thread Randy Dunlap
On 10/21/20 8:41 PM, Stephen Rothwell wrote: > Hi all, > > Since the merge window is open, please do not add any v5.11 material to > your linux-next included branches until after v5.10-rc1 has been released. > > Changes since 20201021: > on x86_64: when CONFIG_IPV6 is not set/enabled: In file

Re: [PATCH] mm,thp,shmem: limit shmem THP alloc gfp_mask

2020-10-22 Thread Vlastimil Babka
On 10/22/20 4:51 PM, Vlastimil Babka wrote: On 10/22/20 5:48 AM, Rik van Riel wrote: The allocation flags of anonymous transparent huge pages can be controlled through the files in /sys/kernel/mm/transparent_hugepage/defrag, which can help the system from getting bogged down in the page reclaim

Re: [RFC 1/2] printk: Add kernel parameter: mute_console

2020-10-22 Thread John Ogness
On 2020-10-22, Guenter Roeck wrote: >>> diff --git a/Documentation/admin-guide/kernel-parameters.txt >>> b/Documentation/admin-guide/kernel-parameters.txt >>> index 02d4adbf98d2..52b9e7f5468d 100644 >>> --- a/Documentation/admin-guide/kernel-parameters.txt >>> +++

[PATCH RFC] checkpatch: extend attributes check to handle more patterns

2020-10-22 Thread Dwaipayan Ray
It is generally preferred that the macros from include/linux/compiler_attributes.h are used, unless there is a reason not to. Checkpatch currently checks __attribute__ for each of packed, aligned, printf, scanf, and weak. Other declarations in compiler_attributes.h are not handled. Add more

Re: default cpufreq gov, was: [PATCH] sched/fair: check for idle core

2020-10-22 Thread Mel Gorman
On Thu, Oct 22, 2020 at 02:29:49PM +0200, Peter Zijlstra wrote: > On Thu, Oct 22, 2020 at 02:19:29PM +0200, Rafael J. Wysocki wrote: > > > However I do want to retire ondemand, conservative and also very much > > > intel_pstate/active mode. > > > > I agree in general, but IMO it would not be

Re: [PATCH] sched/fair: prefer prev cpu in asymmetric wakeup path

2020-10-22 Thread Valentin Schneider
Hi Vincent, On 22/10/20 14:43, Vincent Guittot wrote: > During fast wakeup path, scheduler always check whether local or prev cpus > are good candidates for the task before looking for other cpus in the > domain. With > commit b7a331615d25 ("sched/fair: Add asymmetric CPU capacity wakeup

Re: [PATCH v1] ARM: vfp: Use long jump to fix THUMB2 kernel compilation error

2020-10-22 Thread Russell King - ARM Linux admin
On Thu, Oct 22, 2020 at 01:57:37AM +0300, Dmitry Osipenko wrote: > The vfp_kmode_exception() function now is unreachable using relative > branching in THUMB2 kernel configuration, resulting in a "relocation > truncated to fit: R_ARM_THM_JUMP19 against symbol `vfp_kmode_exception'" > linker error.

Re: [PATCH v4 2/2] media: dt-bindings: media: st,stm32-dcmi: Add support of BT656

2020-10-22 Thread Hugues FRUCHET
Hi Sakari, + Jacopo for his work on ov772x binding related to BT656 On 10/21/20 11:40 PM, Sakari Ailus wrote: > Hi Hugues, > > On Wed, Oct 21, 2020 at 02:24:08PM +, Hugues FRUCHET wrote: >> Hi Sakari, >> >> On 10/21/20 3:00 PM, Sakari Ailus wrote: >>> Hi Hugues, >>> >>> On Tue, Oct 20, 2020

[PATCH 2/4] erofs: get rid of magical Z_EROFS_MAPPING_STAGING

2020-10-22 Thread Gao Xiang
From: Gao Xiang Previously, we played around with magical page->mapping for short-lived temporary pages since we need to identify different types of pages in the same pcluster but both invalidated and short-lived temporary pages can have page->mapping == NULL. It was considered as safe because

[PATCH 1/4] erofs: fix setting up pcluster for temporary pages

2020-10-22 Thread Gao Xiang
From: Gao Xiang pcluster should be only set up for all managed pages instead of temporary pages. Since it currently uses page->mapping to identify, the impact is minor for now. Fixes: 5ddcee1f3a1c ("erofs: get rid of __stagingpage_alloc helper") Cc: # 5.5+ Signed-off-by: Gao Xiang ---

[PATCH 3/4] erofs: insert to managed cache after adding to pcl

2020-10-22 Thread Gao Xiang
From: Gao Xiang Previously, it could be some concern to call add_to_page_cache_lru() with page->mapping == Z_EROFS_MAPPING_STAGING (!= NULL). In contrast, page->private is used instead now, so partially revert commit 5ddcee1f3a1c ("erofs: get rid of __stagingpage_alloc helper") with some

Re: default cpufreq gov, was: [PATCH] sched/fair: check for idle core

2020-10-22 Thread Colin Ian King
On 22/10/2020 15:52, Mel Gorman wrote: > On Thu, Oct 22, 2020 at 02:29:49PM +0200, Peter Zijlstra wrote: >> On Thu, Oct 22, 2020 at 02:19:29PM +0200, Rafael J. Wysocki wrote: However I do want to retire ondemand, conservative and also very much intel_pstate/active mode. >>> >>> I agree

[PATCH v3 01/20] perf arm-spe: Include bitops.h for BIT() macro

2020-10-22 Thread Leo Yan
Include header linux/bitops.h, directly use its BIT() macro and remove the self defined macros. Signed-off-by: Leo Yan Reviewed-by: Andre Przywara --- tools/perf/util/arm-spe-decoder/arm-spe-decoder.c | 5 + tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c | 3 +-- 2 files

[PATCH 4/4] erofs: complete a missing case for inplace I/O

2020-10-22 Thread Gao Xiang
From: Gao Xiang Add a missing case which could cause unnecessary page allocation but not directly use inplace I/O instead, which increases runtime extra memory footprint. The detail is, considering a file-backed page, the right half of the page is chosen to be cached (e.g. the end page) and

[PATCH v3 00/20] perf arm-spe: Refactor decoding & dumping flow

2020-10-22 Thread Leo Yan
This is patch set v3 for refactoring Arm SPE trace decoding and dumping. In this version, it mainly addressed the comments and suggestions from mailing list (mainly from Andre Przywara, thanks!). This patch set is to refactor the Arm SPE decoding with: - Patches 01, 02 are minor cleans up for

[PATCH v3 20/20] perf arm-spe: Add support for ARMv8.3-SPE

2020-10-22 Thread Leo Yan
From: Wei Li This patch is to support Armv8.3 extension for SPE, it adds alignment field in the Events packet and it supports the Scalable Vector Extension (SVE) for Operation packet and Events packet with two additions: - The vector length for SVE operations in the Operation Type packet; -

[PATCH v3 11/20] perf arm-spe: Add new function arm_spe_pkt_desc_counter()

2020-10-22 Thread Leo Yan
This patch moves out the counter packet parsing code from arm_spe_pkt_desc() to the new function arm_spe_pkt_desc_counter(). Signed-off-by: Leo Yan --- .../arm-spe-decoder/arm-spe-pkt-decoder.c | 64 +++ 1 file changed, 37 insertions(+), 27 deletions(-) diff --git

Re: [PATCH v2] checkpatch: fix false positives in REPEATED_WORD warning

2020-10-22 Thread Aditya
On 22/10/20 8:20 pm, Aditya Srivastava wrote: > Presence of hexadecimal address or symbol results in false warning > message by checkpatch.pl. > > For example, running checkpatch on commit b8ad540dd4e4 ("mptcp: fix > memory leak in mptcp_subflow_create_socket()") results in warning: > >

[PATCH v3 03/20] perf arm-spe: Refactor payload size calculation

2020-10-22 Thread Leo Yan
This patch defines macro to extract "sz" field from header, and renames the function payloadlen() to arm_spe_payload_len(). Signed-off-by: Leo Yan --- .../util/arm-spe-decoder/arm-spe-pkt-decoder.c | 18 +- .../util/arm-spe-decoder/arm-spe-pkt-decoder.h | 3 +++ 2 files

[PATCH v3 12/20] perf arm-spe: Refactor counter packet handling

2020-10-22 Thread Leo Yan
This patch defines macros for counter packet header, and uses macros to replace hard code values in functions arm_spe_get_counter() and arm_spe_pkt_desc(). In the function arm_spe_get_counter(), adds a new line for more readable. Signed-off-by: Leo Yan ---

[PATCH v3 18/20] perf arm-spe: Add more sub classes for operation packet

2020-10-22 Thread Leo Yan
For the operation type packet payload with load/store class, it misses to support these sub classes: - A load/store targeting the general-purpose registers; - A load/store targeting unspecified registers; - The ARMv8.4 nested virtualisation extension can redirect system register

[PATCH v3 04/20] perf arm-spe: Refactor arm_spe_get_events()

2020-10-22 Thread Leo Yan
In function arm_spe_get_events(), the event packet's 'index' is assigned as payload length, but the flow is not directive: it firstly gets the packet length from the return value of arm_spe_get_payload(), the value includes header length (1) and payload length: int ret =

[PATCH v3 05/20] perf arm-spe: Fix packet length handling

2020-10-22 Thread Leo Yan
When processing address packet and counter packet, if the packet contains extended header, it misses to account the extra one byte for header length calculation, thus returns the wrong packet length. To correct the packet length calculation, one possible fixing is simply to plus extra 1 for

[PATCH v3 13/20] perf arm-spe: Add new function arm_spe_pkt_desc_event()

2020-10-22 Thread Leo Yan
This patch moves out the event packet parsing from arm_spe_pkt_desc() to the new function arm_spe_pkt_desc_event(). Signed-off-by: Leo Yan --- .../arm-spe-decoder/arm-spe-pkt-decoder.c | 136 ++ 1 file changed, 73 insertions(+), 63 deletions(-) diff --git

[PATCH v3 09/20] perf arm-spe: Refactor address packet handling

2020-10-22 Thread Leo Yan
This patch is to refactor address packet handling, it defines macros for address packet's header and payload, these macros are used by decoder and the dump flow. Signed-off-by: Leo Yan --- .../util/arm-spe-decoder/arm-spe-decoder.c| 29

[PATCH v3 02/20] perf arm-spe: Fix a typo in comment

2020-10-22 Thread Leo Yan
Fix a typo: s/iff/if. Signed-off-by: Leo Yan Reviewed-by: Andre Przywara --- tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c

[PATCH v3 10/20] perf arm-spe: Refactor context packet handling

2020-10-22 Thread Leo Yan
Minor refactoring to use macro for index mask. Signed-off-by: Leo Yan Reviewed-by: Andre Przywara --- tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c | 2 +- tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH v3 06/20] perf arm-spe: Refactor printing string to buffer

2020-10-22 Thread Leo Yan
When outputs strings to the decoding buffer with function snprintf(), SPE decoder needs to detects if any error returns from snprintf() and if so needs to directly bail out. If snprintf() returns success, it needs to update buffer pointer and reduce the buffer length so can continue to output the

[PATCH v3 16/20] perf arm-spe: Add new function arm_spe_pkt_desc_op_type()

2020-10-22 Thread Leo Yan
The operation type packet is complex and contains subclass; the parsing flow causes deep indentation; for more readable, this patch introduces a new function arm_spe_pkt_desc_op_type() which is used for operation type parsing. Signed-off-by: Leo Yan --- .../arm-spe-decoder/arm-spe-pkt-decoder.c

[PATCH v3 19/20] perf arm_spe: Decode memory tagging properties

2020-10-22 Thread Leo Yan
From: Andre Przywara When SPE records a physical address, it can additionally tag the event with information from the Memory Tagging architecture extension. Decode the two additional fields in the SPE event payload. [leoy: Refined patch to use predefined macros] Signed-off-by: Andre Przywara

[PATCH v3 15/20] perf arm-spe: Remove size condition checking for events

2020-10-22 Thread Leo Yan
In the Armv8 ARM (ARM DDI 0487F.c), chapter "D10.2.6 Events packet", it describes the event bit is valid with specific payload requirement. For example, the Last Level cache access event, the bit is defined as: E[8], byte 1 bit [0], when SZ == 0b01 , when SZ == 0b10 , or

[PATCH v3 14/20] perf arm-spe: Refactor event type handling

2020-10-22 Thread Leo Yan
Move the enums of event types to arm-spe-pkt-decoder.h, thus function arm_spe_pkt_desc() can them for bitmasks. Suggested-by: Andre Przywara Signed-off-by: Leo Yan --- .../util/arm-spe-decoder/arm-spe-decoder.h| 17 -- .../arm-spe-decoder/arm-spe-pkt-decoder.c | 22

[PATCH v3 07/20] perf arm-spe: Refactor packet header parsing

2020-10-22 Thread Leo Yan
The packet header parsing uses the hard coded values and it uses nested if-else statements. To improve the readability, this patch refactors the macros for packet header format so it removes the hard coded values. Furthermore, based on the new mask macros it reduces the nested if-else statements

[PATCH v3 17/20] perf arm-spe: Refactor operation packet handling

2020-10-22 Thread Leo Yan
Defines macros for operation packet header and formats (support sub classes for 'other', 'branch', 'load and store', etc). Uses these macros for operation packet decoding and dumping. Signed-off-by: Leo Yan --- .../arm-spe-decoder/arm-spe-pkt-decoder.c | 34 +++

[PATCH v3 08/20] perf arm-spe: Add new function arm_spe_pkt_desc_addr()

2020-10-22 Thread Leo Yan
This patch moves out the address parsing code from arm_spe_pkt_desc() and uses the new introduced function arm_spe_pkt_desc_addr() to process address packet. Signed-off-by: Leo Yan --- .../arm-spe-decoder/arm-spe-pkt-decoder.c | 49 --- 1 file changed, 30 insertions(+), 19

Re: [PATCH RFC] checkpatch: extend attributes check to handle more patterns

2020-10-22 Thread Dwaipayan Ray
On Thu, Oct 22, 2020 at 8:22 PM Dwaipayan Ray wrote: > > It is generally preferred that the macros from > include/linux/compiler_attributes.h are used, unless there > is a reason not to. > > Checkpatch currently checks __attribute__ for each of > packed, aligned, printf, scanf, and weak. Other

Re: [PATCH v2 1/2] kcsan: selftest: Ensure that address is at least PAGE_SIZE

2020-10-22 Thread Dmitry Vyukov
On Thu, Oct 22, 2020 at 1:45 PM Marco Elver wrote: > > In preparation of supporting only addresses not within the NULL page, > change the selftest to never use addresses that are less than PAGE_SIZE. > > Signed-off-by: Marco Elver Reviewed-by: Dmitry Vyukov > --- > v2: > * Introduce patch to

Re: [PATCH v2 2/2] kcsan: Never set up watchpoints on NULL pointers

2020-10-22 Thread Dmitry Vyukov
On Thu, Oct 22, 2020 at 1:45 PM Marco Elver wrote: > > Avoid setting up watchpoints on NULL pointers, as otherwise we would > crash inside the KCSAN runtime (when checking for value changes) instead > of the instrumented code. > > Because that may be confusing, skip any address less than

Re: [PATCH] lib: add basic KUnit test for lib/math

2020-10-22 Thread Andy Shevchenko
On Wed, Oct 21, 2020 at 10:47:50AM -0700, Daniel Latypov wrote: > On Tue, Oct 20, 2020 at 8:40 PM David Gow wrote: > > On Tue, Oct 20, 2020 at 6:46 AM Daniel Latypov wrote: > > > > > > Add basic test coverage for files that don't require any config options: > > > * gcd.c > > > * lcm.c > > > *

Re: [PATCHv2 2/4] coresight: tmc-etf: Fix NULL ptr dereference in tmc_enable_etf_sink_perf()

2020-10-22 Thread Peter Zijlstra
On Thu, Oct 22, 2020 at 02:30:21PM +0100, Suzuki Poulose wrote: > On 10/22/20 12:32 PM, Peter Zijlstra wrote: > > On Thu, Oct 22, 2020 at 04:27:52PM +0530, Sai Prakash Ranjan wrote: > > > > > Looking at the ETR and other places in the kernel, ETF and the > > > ETB are the only places trying to

[PATCH 0/4] Add i.MX8MN power domain and fix USB

2020-10-22 Thread Adam Ford
The OTG on the Nano does not work unless the USB was started in the bootloader, because was lacking the power-domain control. This series is based on patches from [1] and an additional, pending patch [2] which removed a USB node which does not exist according to documentation for the SoC. [1]

[PATCH 4/4] arm64: dts: imx8mn: Add power-domain reference in USB controller

2020-10-22 Thread Adam Ford
The USB OTG controller cannot be used until the power-domain is enabled unless it was started in the bootloader. Adding the power-domain reference to the OTG node allows the OTG controller to operate. Signed-off-by: Adam Ford diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi

[PATCH 1/4] dt-bindings: add defines for i.MX8MN power domains

2020-10-22 Thread Adam Ford
The i.MX8M Nano has a similar power domain controller to that of the mini, but it isn't fully compatible, so it needs a separate binding and power domain tables. Add the bindings and tables. Signed-off-by: Adam Ford diff --git a/Documentation/devicetree/bindings/power/fsl,imx-gpcv2.yaml

[PATCH 2/4] soc: imx: gpcv2: add support for i.MX8MN power domains

2020-10-22 Thread Adam Ford
This adds support for the power domains founds on i.MX8MN. The Nano has fewer domains than the Mini, and the access to some of these domains is different than that of the Mini, the Mini power domains cannot be reused. Signed-off-by: Adam Ford diff --git a/drivers/soc/imx/gpcv2.c

[PATCH 3/4] arm64: dts: imx8mn: add GPC node and power domains

2020-10-22 Thread Adam Ford
This adds the DT nodes to describe the power domains available on the i.MX8MN. There are four power domains, but the displaymix and mipi power domains need a separate clock block controller which is also pending for 8MP and 8MM. Once the path for those is clear, Nano will need something similar,

Re: [PATCH 0/2] module: some refactoring in module_sig_check()

2020-10-22 Thread Jessica Yu
+++ Sergey Shtylyov [13/10/20 23:32 +0300]: Here are 2 patches against the 'modules-next' branch of Jessica Yu's 'linux.git' repo. I'm doing some little refactoring in module_sig_check()... [1/2] module: merge repetitive strings in module_sig_check() [2/2] module: unindent comments in

Re: [PATCH 1/2] x86: Remove led/gpio setup from pcengines platform driver

2020-10-22 Thread Ed W
Hi >> This is followed up by the patch I really want to try and get in, which is >> to add support for APU5 >> and APU6. Particularly APU5 is quite interesting to me and significantly >> different to previous >> boards in that it has a lot more mpcie slots that can be used for LTE >> modules

Re: [PATCH] venus: venc: add handling for VIDIOC_ENCODER_CMD

2020-10-22 Thread dikshita
Hi Alex, Thanks for your suggestion, the helpers are good but it is complicated to use them in video deriver as video driver needs to deal with FW interface and wait for buffer processing from FW. So these helpers can't be used directly. For example in case of B frames, to encode such frame FW

Re: default cpufreq gov, was: [PATCH] sched/fair: check for idle core

2020-10-22 Thread Phil Auld
On Thu, Oct 22, 2020 at 03:58:13PM +0100 Colin Ian King wrote: > On 22/10/2020 15:52, Mel Gorman wrote: > > On Thu, Oct 22, 2020 at 02:29:49PM +0200, Peter Zijlstra wrote: > >> On Thu, Oct 22, 2020 at 02:19:29PM +0200, Rafael J. Wysocki wrote: > However I do want to retire ondemand,

[PATCH] tty: serial: fsl_lpuart: LS1021A has a FIFO size of 32 datawords

2020-10-22 Thread Vladimir Oltean
From: Vladimir Oltean Similar to the workaround applied by Michael Walle in commit c2f448cff22a ("tty: serial: fsl_lpuart: add LS1028A support"), it turns out that the LPUARTx_FIFO encoding for fields TXFIFOSIZE and RXFIFOSIZE is the same for LS1028A as for LS1021A. The RXFIFOSIZE in the

[PATCH v2] lib: Convert test_printf.c to KUnit

2020-10-22 Thread Arpitha Raghunandan
Convert test lib/test_printf.c to KUnit. More information about KUnit can be found at: https://www.kernel.org/doc/html/latest/dev-tools/kunit/index.html. KUnit provides a common framework for unit tests in the kernel. KUnit and kselftest are standardizing around KTAP, converting this test to KUnit

Re: [PATCH 0/2] block layer filter and block device snapshot module

2020-10-22 Thread Darrick J. Wong
On Thu, Oct 22, 2020 at 04:52:13PM +0300, Sergei Shtepa wrote: > The 10/22/2020 13:28, Damien Le Moal wrote: > > On 2020/10/22 18:43, Sergei Shtepa wrote: > > > > > > Maybe, but the problem is that I can't imagine how to implement > > > dm-intercept yet. > > > How to use dm to implement

Re: [PATCH RFC v2 00/21] kasan: hardware tag-based mode for production use on arm64

2020-10-22 Thread Dmitry Vyukov
On Thu, Oct 22, 2020 at 3:19 PM Andrey Konovalov wrote: > > This patchset is not complete (hence sending as RFC), but I would like to > start the discussion now and hear people's opinions regarding the > questions mentioned below. > > === Overview > > This patchset adopts the existing hardware

Re: [PATCH] mm/shmem: fix up gfpmask for shmem hugepage allocation

2020-10-22 Thread Rik van Riel
On Wed, 2020-10-21 at 16:09 +0800, Xu Yu wrote: > @@ -1887,6 +1930,7 @@ static int shmem_getpage_gfp(struct inode > *inode, pgoff_t index, > } > > alloc_huge: > + gfp = shmem_hugepage_gfpmask_fixup(gfp, sgp_huge); > page = shmem_alloc_and_acct_page(gfp, inode, index, true); >

[PATCH] mm: memcontrol: add file_thp, shmem_thp to memory.stat

2020-10-22 Thread Johannes Weiner
As huge page usage in the page cache and for shmem files proliferates in our production environment, the performance monitoring team has asked for per-cgroup stats on those pages. We already track and export anon_thp per cgroup. We already track file THP and shmem THP per node, so making them

Re: [PATCH 1/2] PCI: export pci_match_device()

2020-10-22 Thread Christoph Hellwig
On Wed, Oct 21, 2020 at 04:10:29PM +0800, Zhenzhong Duan wrote: > pci_match_id() is deprecated as it doesn't catch any dynamic ids that > a driver might want to check for. > > Export pci_match_device() as a replacement which supports both dynamic > and static ids. You don't actually seems to add

[RFC] synchronous readpage for buffer_heads

2020-10-22 Thread Matthew Wilcox
I'm working on making readpage synchronous so that it can actually return errors instead of futilely setting PageError. Something that's common between most of the block based filesystems is the need to submit N I/Os and wait for them to all complete (some filesystems don't support sub-page block

Re: [PATCH net RFC] net: Clear IFF_TX_SKB_SHARING for all Ethernet devices using skb_padto

2020-10-22 Thread Jakub Kicinski
On Thu, 22 Oct 2020 00:46:38 -0700 Xie He wrote: > It was very hard for me to attempt fixing. There are too many drivers > that need to be fixed. Fixing them is very time-consuming and may also > be error-prone. So I think it may be better to just remove > IFF_TX_SKB_SHARING from ether_setup.

Re: [PATCH v8 -tip 02/26] sched: Introduce sched_class::pick_task()

2020-10-22 Thread Joel Fernandes
On Thu, Oct 22, 2020 at 12:59 AM Li, Aubrey wrote: > > On 2020/10/20 9:43, Joel Fernandes (Google) wrote: > > From: Peter Zijlstra > > > > Because sched_class::pick_next_task() also implies > > sched_class::set_next_task() (and possibly put_prev_task() and > > newidle_balance) it is not state

Re: default cpufreq gov, was: [PATCH] sched/fair: check for idle core

2020-10-22 Thread Peter Zijlstra
On Thu, Oct 22, 2020 at 03:52:50PM +0100, Mel Gorman wrote: > There are some questions > currently on whether schedutil is good enough when HWP is not available. Srinivas and Rafael will know better, but Intel does run a lot of tests and IIRC it was found that schedutil was on-par for !HWP. That

Re: [PATCH v6 6/6] docs: ctucanfd: CTU CAN FD open-source IP core documentation.

2020-10-22 Thread Pavel Pisa
Hello Pavel, thanks for review. As for the documentation, my current intention is to keep/maintain the common driver documentation for CTU CAN FD site and kernel source. The standalone driver documentation http://canbus.pages.fel.cvut.cz/ctucanfd_ip_core/driver_doc/ctucanfd-driver.html when

Re: [PATCH 0/2] module: some refactoring in module_sig_check()

2020-10-22 Thread Sergey Shtylyov
Hello! On 10/22/20 6:09 PM, Jessica Yu wrote: >> Here are 2 patches against the 'modules-next' branch of Jessica Yu's >> 'linux.git' repo. >> I'm doing some little refactoring in module_sig_check()... >> >> [1/2] module: merge repetitive strings in module_sig_check() >> [2/2] module: unindent

Re: [PATCHv2 2/4] coresight: tmc-etf: Fix NULL ptr dereference in tmc_enable_etf_sink_perf()

2020-10-22 Thread Suzuki Poulose
On 10/22/20 4:06 PM, Peter Zijlstra wrote: On Thu, Oct 22, 2020 at 02:30:21PM +0100, Suzuki Poulose wrote: On 10/22/20 12:32 PM, Peter Zijlstra wrote: On Thu, Oct 22, 2020 at 04:27:52PM +0530, Sai Prakash Ranjan wrote: Looking at the ETR and other places in the kernel, ETF and the ETB are

Re: [PATCH] sched/fair: prefer prev cpu in asymmetric wakeup path

2020-10-22 Thread Vincent Guittot
On Thu, 22 Oct 2020 at 16:53, Valentin Schneider wrote: > > > Hi Vincent, > > On 22/10/20 14:43, Vincent Guittot wrote: > > During fast wakeup path, scheduler always check whether local or prev cpus > > are good candidates for the task before looking for other cpus in the > > domain. With > >

Re: kernel BUG at mm/page-writeback.c:2241 [ BUG_ON(PageWriteback(page); ]

2020-10-22 Thread Qian Cai
On Thu, 2020-10-22 at 01:49 +0100, Matthew Wilcox wrote: > On Wed, Oct 21, 2020 at 08:30:18PM -0400, Qian Cai wrote: > > Today's linux-next starts to trigger this wondering if anyone has any clue. > > I've seen that occasionally too. I changed that BUG_ON to VM_BUG_ON_PAGE > to try to get a clue

[PATCH update 3/3] PM: runtime: Resume the device earlier in __device_release_driver()

2020-10-22 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Since the device is resumed from runtime-suspend in __device_release_driver() anyway, it is better to do that before looking for busy managed device links from it to consumers, because if there are any, device_links_unbind_consumers() will be called and it will cause the

Re: Context expectations in ALSA

2020-10-22 Thread Maxime Ripard
Hi Mark On Thu, Oct 22, 2020 at 02:50:53PM +0100, Mark Brown wrote: > On Thu, Oct 22, 2020 at 11:50:41AM +0200, Maxime Ripard wrote: > > > This is caused by the HDMI driver polling some status bit that reports > > that the infoframes have been properly sent, and calling usleep_range > > between

[PATCH] sched/deadline: use rq_of_se intead of dl_rq_of_se and rq_of_dl_rq

2020-10-22 Thread Hui Su
To get the rq from dl_se in the old way: first use dl_rq_of_se() get dl_rq, then use rq_of_dl_rq() get rq, dl_rq_of_se(): dl_se ==> p ==> rq ==> dl rq_of_dl_rq():dl || rq <== rq_of_dl_rq(dl_rq_of_se()):

Re: [PATCH v3] spi: spi-sun6i: implement DMA-based transfer mode

2020-10-22 Thread Maxime Ripard
On Thu, Oct 22, 2020 at 10:52:21AM +0300, Alexander Kochetkov wrote: > From: Alexander Kochetkov > > DMA-based transfer will be enabled if data length is larger than FIFO size > (64 bytes for A64). This greatly reduce number of interrupts for > transferring data. > > For smaller data size PIO

[GIT PULL] pwm: Changes for v5.10-rc1

2020-10-22 Thread Thierry Reding
Hi Linus, The following changes since commit 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5: Linux 5.9-rc1 (2020-08-16 13:04:57 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm.git tags/pwm/for-5.10-rc1 for you to fetch

Re: [PATCH] mm,thp,shmem: limit shmem THP alloc gfp_mask

2020-10-22 Thread Michal Hocko
On Thu 22-10-20 09:25:21, Rik van Riel wrote: > On Thu, 2020-10-22 at 10:15 +0200, Michal Hocko wrote: > > On Wed 21-10-20 23:48:46, Rik van Riel wrote: > > > The allocation flags of anonymous transparent huge pages can be > > > controlled > > > through the files in

Re: default cpufreq gov, was: [PATCH] sched/fair: check for idle core

2020-10-22 Thread Vincent Guittot
On Thu, 22 Oct 2020 at 17:45, A L wrote: > > > > From: Peter Zijlstra -- Sent: 2020-10-22 - 14:29 > > > > On Thu, Oct 22, 2020 at 02:19:29PM +0200, Rafael J. Wysocki wrote: > >> > However I do want to retire ondemand, conservative and also very much > >> > intel_pstate/active mode. >

Re: default cpufreq gov, was: [PATCH] sched/fair: check for idle core

2020-10-22 Thread Rafael J. Wysocki
On Thu, Oct 22, 2020 at 5:25 PM Peter Zijlstra wrote: > > On Thu, Oct 22, 2020 at 03:52:50PM +0100, Mel Gorman wrote: > > > There are some questions > > currently on whether schedutil is good enough when HWP is not available. > > Srinivas and Rafael will know better, but Intel does run a lot of

Re: [PATCH v1] ARM: vfp: Use long jump to fix THUMB2 kernel compilation error

2020-10-22 Thread Dmitry Osipenko
22.10.2020 17:57, Russell King - ARM Linux admin пишет: > On Thu, Oct 22, 2020 at 01:57:37AM +0300, Dmitry Osipenko wrote: >> The vfp_kmode_exception() function now is unreachable using relative >> branching in THUMB2 kernel configuration, resulting in a "relocation >> truncated to fit:

Re: [PATCH v1] ARM: vfp: Use long jump to fix THUMB2 kernel compilation error

2020-10-22 Thread Dmitry Osipenko
22.10.2020 10:06, Ard Biesheuvel пишет: > On Thu, 22 Oct 2020 at 05:30, Kees Cook wrote: >> >> On Thu, Oct 22, 2020 at 03:00:06AM +0300, Dmitry Osipenko wrote: >>> 22.10.2020 02:40, Kees Cook пишет: On Thu, Oct 22, 2020 at 01:57:37AM +0300, Dmitry Osipenko wrote: > The

[PATCH v2 02/10] clk: bcm: rpi: Release firmware handle on unbind

2020-10-22 Thread Nicolas Saenz Julienne
Upon unbinding the clock device make sure we release RPi's firmware interface. Signed-off-by: Nicolas Saenz Julienne --- drivers/clk/bcm/clk-raspberrypi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/bcm/clk-raspberrypi.c b/drivers/clk/bcm/clk-raspberrypi.c index

[PATCH v2 03/10] gpio: raspberrypi-exp: Release firmware handle on unbind

2020-10-22 Thread Nicolas Saenz Julienne
Upon unbinding the device make sure we release RPi's firmware interface. Signed-off-by: Nicolas Saenz Julienne --- drivers/gpio/gpio-raspberrypi-exp.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-raspberrypi-exp.c

[PATCH v2 00/10] Raspberry Pi PoE HAT fan support

2020-10-22 Thread Nicolas Saenz Julienne
The aim of this series is to add support to the fan found on RPi's PoE HAT. Some commentary on the design can be found below. But the imporant part to the people CC'd here not involved with PWM is that, in order to achieve this properly, we also have to fix the firmware interface the driver uses

[PATCH v2 10/10] pwm: Add Raspberry Pi Firmware based PWM bus

2020-10-22 Thread Nicolas Saenz Julienne
Adds support to control the PWM bus available in official Raspberry Pi PoE HAT. Only RPi's co-processor has access to it, so commands have to be sent through RPi's firmware mailbox interface. Signed-off-by: Nicolas Saenz Julienne --- Changes since v1: - Use default pwm bindings and get rid of

[PATCH v2 08/10] dt-bindings: pwm: Add binding for RPi firmware PWM bus

2020-10-22 Thread Nicolas Saenz Julienne
The PWM bus controlling the fan in RPi's official PoE hat can only be controlled by the board's co-processor. Signed-off-by: Nicolas Saenz Julienne --- Changes since v1: - Update bindings to use 2 #pwm-cells .../arm/bcm/raspberrypi,bcm2835-firmware.yaml | 20 +++

[PATCH v2 04/10] reset: raspberrypi: Release firmware handle on unbind

2020-10-22 Thread Nicolas Saenz Julienne
Upon unbinding the device make sure we release RPi's firmware interface. Signed-off-by: Nicolas Saenz Julienne --- drivers/reset/reset-raspberrypi.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/reset/reset-raspberrypi.c

<    4   5   6   7   8   9   10   11   >