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 >>> +++ b/Documentation/admin-guide/kern

[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 defin

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 prude

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 scan"

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. L

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 te

[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 --- fs/erof

[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 adaptio

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 in

[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 changed,

[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 some

[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 hea

[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 a/tools/pe

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: > > WARNING:R

[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 changed,

[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 --- tools/perf/util/arm-spe-decoder/arm-sp

[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 accesses

[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 = arm_spe_get_payload(buf,

[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 extend

[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 a/tools/perf/util/a

[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 .../arm-spe-decoder/arm-spe-pkt-decode

[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 b/tools/perf/util/arm-spe-decoder/arm-spe

[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 a/tools/

[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 wh

[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 +++ .../arm-spe-

[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 de

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 dec

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 s

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 PAGE_SIZE

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 > > > * int

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 der

[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 b/arch/arm64/

[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 b/Docu

[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 b/drivers/soc/im

[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, bu

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 module_si

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 o

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 e

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, conservati

[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 Layersc

[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 intercept

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 tag

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 per-

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. Drive

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 inv

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 co

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 the

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 > > co

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 c

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 e

[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 mo

[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 change

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 /sys/kernel/mm/transparent_hugep

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 te

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: R_ARM_THM_J

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 vfp_kmode_exception

[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 f89b9cfc4309

[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 b/drivers/gpio/gpio-raspb

[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 to

[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 +++ .../pwm/raspb

[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 b/drivers/reset/reset-raspberr

Re: [PATCH] ARM: dts: stm32: update sdmmc IP version for STM32MP157 SOC

2020-10-22 Thread Yann GAUTIER
On 10/20/20 4:04 PM, Ahmad Fatoum wrote: > From: Yann Gautier > > Update the IP version to v2.0, which supports linked lists in internal DMA, > and is present in STM32MP1 SoCs. > > The mmci driver supports the v2.0 periph id since 7a2a98be672b ("mmc: mmci: > Add support for sdmmc variant revisio

[PATCH v2 05/10] soc: bcm: raspberrypi-power: 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/soc/bcm/raspberrypi-power.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/soc/bcm/raspberrypi-power.c b/drivers/soc/bcm/raspberrypi-power.c i

[PATCH v2 07/10] input: raspberrypi-ts: Release firmware handle when not needed

2020-10-22 Thread Nicolas Saenz Julienne
After passing the DMA buffer address through the firmware interface, release the firmware handle, we won't need it anymore. Signed-off-by: Nicolas Saenz Julienne --- drivers/input/touchscreen/raspberrypi-ts.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/touchscreen/raspberry

Re: [PATCH] arm64: dts: allwinner: beelink-gs1: Enable both RGMII RX/TX delay

2020-10-22 Thread Maxime Ripard
On Sun, Oct 18, 2020 at 07:24:09PM +0200, Clément Péron wrote: > Before the commit: > net: phy: realtek: fix rtl8211e rx/tx delay config > > The software overwrite for RX/TX delays of the RTL8211e were not > working properly and the Beelink GS1 had both RX/TX delay of RGMII > interface set using p

[PATCH v2 01/10] firmware: raspberrypi: Introduce rpi_firmware_put()

2020-10-22 Thread Nicolas Saenz Julienne
When unbinding the firmware device we need to make sure it has no consumers left. Otherwise we'd leave them with a firmware handle pointing at freed memory. Keep a reference count of all consumers and make sure they all finished unbinding before we do. Suggested-by: Uwe Kleine-König Signed-off-b

[PATCH v2 06/10] staging: vchiq: 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/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b

[PATCH v2 09/10] DO NOT MERGE: ARM: dts: Add RPi's official PoE hat support

2020-10-22 Thread Nicolas Saenz Julienne
This is an example on how to enable the fan on top of RPi's official PoE hat. Signed-off-by: Nicolas Saenz Julienne --- Changes since v1: - Update patch to use 2 pwm cells arch/arm/boot/dts/bcm2711-rpi-4-b.dts | 54 +++ 1 file changed, 54 insertions(+) diff --git a/a

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

2020-10-22 Thread Yu Xu
On 10/22/20 11: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 getti

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

2020-10-22 Thread A L
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. >> >> I agree in general, but IMO it would not be prudent

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

2020-10-22 Thread Rik van Riel
On Thu, 2020-10-22 at 17:50 +0200, Michal Hocko wrote: > 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: > > > > > > > > diff --git a/mm/shmem.c b/mm/shmem.c > > > > index 537c137698f8..d12

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

2020-10-22 Thread Ard Biesheuvel
On Thu, 22 Oct 2020 at 17:57, Dmitry Osipenko wrote: > > 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

Re: [PATCH v6 5/6] can: ctucanfd: CTU CAN FD open-source IP core - platform/SoC support.

2020-10-22 Thread Pavel Pisa
Hello Pavel, thanks for review. On Thursday 22 of October 2020 13:43:06 Pavel Machek wrote: > Hi! > > > +++ b/drivers/net/can/ctucanfd/Kconfig > > @@ -21,4 +21,15 @@ config CAN_CTUCANFD_PCI > > PCIe board with PiKRON.com designed transceiver riser shield is > > available at https://gitlab.f

Re: [PATCH] arm64: dts: allwinner: Pine H64: Enable both RGMII RX/TX delay

2020-10-22 Thread Maxime Ripard
On Mon, Oct 19, 2020 at 06:34:49AM +, Corentin Labbe wrote: > Since commit bbc4d71d6354 ("net: phy: realtek: fix rtl8211e rx/tx delay > config"), > the network is unusable on PineH64 model A. > > This is due to phy-mode incorrectly set to rgmii instead of rgmii-id. > > Fixes: 729e1ffcf47e ("

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

2020-10-22 Thread Joe Perches
On Thu, 2020-10-22 at 20:20 +0530, Aditya Srivastava wrote: > Presence of hexadecimal address or symbol results in false warning > message by checkpatch.pl. [] > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl [] > @@ -3051,7 +3051,10 @@ sub process { > } > > # check for

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 06:06:32PM +0200, Ard Biesheuvel wrote: > On Thu, 22 Oct 2020 at 17:57, Dmitry Osipenko wrote: > > > > 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

[PATCH] zram: break the strict dependency from lzo

2020-10-22 Thread Rui Salvaterra
There's nothing special about zram and lzo. It works just fine without it, so as long as at least one of the other supported compression algorithms is selected. Additionally, drop the explicit dependency from CRYPTO, as it's implied by the selection of the algorithms themselves. Signed-off-by: Ru

Re: [PATCH] net-veth: Fix memleak in veth_newlink

2020-10-22 Thread Jakub Kicinski
On Thu, 22 Oct 2020 13:42:33 +0800 Dinghao Liu wrote: > When rtnl_configure_link() fails, peer needs to be > freed just like when register_netdevice() fails. > > Signed-off-by: Dinghao Liu Can you see this leak or are you just sending this based on your reading of the code? netdev should be fre

Re: [PATCH V9 1/4] fuse: Definitions and ioctl() for passthrough

2020-10-22 Thread Alessio Balsini
On Wed, Sep 30, 2020 at 05:44:54PM +0200, Miklos Szeredi wrote: > On Thu, Sep 24, 2020 at 3:13 PM Alessio Balsini wrote: > > > > Introduce the new FUSE passthrough ioctl(), which allows userspace to > > specify a direct connection between a FUSE file and a lower file system > > file. > > Such ioct

Re: [PATCH 24/29] arm64: dts: allwinner: h6: Harmonize DWC USB3 DT nodes name

2020-10-22 Thread Maxime Ripard
On Tue, Oct 20, 2020 at 02:59:54PM +0300, Serge Semin wrote: > In accordance with the DWC USB3 bindings the corresponding node > name is suppose to comply with the Generic USB HCD DT schema, which > requires the USB nodes to have the name acceptable by the regexp: > "^usb(@.*)?" . Make sure the "sn

Re: [PATCH] can: vxcan: Fix memleak in vxcan_newlink

2020-10-22 Thread Jakub Kicinski
On Wed, 21 Oct 2020 13:20:16 +0200 Oliver Hartkopp wrote: > On 21.10.20 07:21, Dinghao Liu wrote: > > When rtnl_configure_link() fails, peer needs to be > > freed just like when register_netdevice() fails. > > > > Signed-off-by: Dinghao Liu > > Acked-by: Oliver Hartkopp > > Btw. as the vxcan

Re: [PATCH V9 2/4] fuse: Trace daemon creds

2020-10-22 Thread Alessio Balsini
On Wed, Sep 30, 2020 at 03:16:20PM -0400, Antonio SJ Musumeci wrote: > On 9/30/2020 2:45 PM, Miklos Szeredi wrote: > > On Thu, Sep 24, 2020 at 3:13 PM Alessio Balsini wrote: > > > Add a reference to the FUSE daemon credentials, so that they can be used > > > to > > > temporarily raise the user cr

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