[PATCH v11 34/56] Input: atmel_mxt_ts - implement I2C retries

2020-05-07 Thread Jiada Wang
From: Nick Dyer Some maXTouch chips (eg mXT1386) will not respond on the first I2C request when they are in a sleep state. It must be retried after a delay for the chip to wake up. Signed-off-by: Nick Dyer Acked-by: Yufeng Shen (cherry picked from ndyer/linux/for-upstream commit

[PATCH v11 24/56] dt-bindings: input: atmel: support to specify input name

2020-05-07 Thread Jiada Wang
Support to specify input name Signed-off-by: Jiada Wang --- Documentation/devicetree/bindings/input/atmel,maxtouch.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/input/atmel,maxtouch.txt b/Documentation/devicetree/bindings/input/atmel,maxtouch.txt

[PATCH v11 25/56] Input: atmel_mxt_ts - add config checksum attribute to sysfs

2020-05-07 Thread Jiada Wang
From: karl tsou Add config checksum attribute to sysfs Signed-off-by: karl tsou Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit 03477477ddbe5dcad42853ab3f84166a8f807acf) [gdavis: Forward port and fix conflicts.] Signed-off-by: George G. Davis [jiada: Add commit

[PATCH v11 33/56] Input: atmel_mxt_ts - delay enabling IRQ when not using regulators

2020-05-07 Thread Jiada Wang
The path of enabling the IRQ in the probe function is not safe in level triggered operation, if it was already powered up and there is a message waiting on the device (eg finger down) because the object table has not yet been read. This forces the ISR into a hard loop. Delay enabling the

[PATCH v11 35/56] Input: atmel_mxt_ts - orientation is not present in hover

2020-05-07 Thread Jiada Wang
From: Nick Dyer When in hover, the orientation information is not sent Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit 0c885d5bd276bd9240c43aa046fc407cbe2ae864) Signed-off-by: George G. Davis Signed-off-by: Jiada Wang ---

[PATCH v11 32/56] Input: atmel_mxt_ts - make bootloader interrupt driven

2020-05-07 Thread Jiada Wang
From: Nick Dyer Make bootloader interrupt driven Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit 67a3eea0cfc724c3c2a7410ac064f74227c7c6ef) [gdavis: Resolve forward port conflicts due to applying upstream commit 96a938aa214e ("Input: atmel_mxt_ts - remove

[PATCH v11 28/56] Input: atmel_mxt_ts - refactor code to enter bootloader into separate func

2020-05-07 Thread Jiada Wang
From: Nick Dyer Refactor code to enter bootloader into separate func Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit bedd706a32522b946467e15f4f4f24de86a1b4d7) [gdavis: Resolve forward port conflicts due to applying upstream commit 96a938aa214e ("Input:

[PATCH v11 31/56] Input: atmel_mxt_ts - rename bl_completion to chg_completion

2020-05-07 Thread Jiada Wang
From: Nick Dyer Rename bl_completion to chg_completion Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit dda8453bfb44216645ede798918a314d4fca2481) [gdavis: Resolve forward port conflicts due to applying upstream commit 96a938aa214e ("Input: atmel_mxt_ts -

[PATCH v11 26/56] Input: atmel_mxt_ts - rename mxt_object_show to object_show

2020-05-07 Thread Jiada Wang
Rename mxt_object_show() to object_show(), so that object attr can also use DEVICE_ATTR_[RO|WO] to align with other attrs. Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH v11 30/56] Input: atmel_mxt_ts - improve bootloader state machine handling

2020-05-07 Thread Jiada Wang
From: Nick Dyer The code is much clearer if we switch on the actual state the bootloader is in, rather than the state we want it to be in, and allows the removal of a goto retry tangle. Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit

[PATCH v11 23/56] Input: atmel_mxt_ts - allow input name to be specified in platform data

2020-05-07 Thread Jiada Wang
From: Nick Dyer Android systems identify the input device and map to IDC file by using the input device name. To avoid unnecessary deltas to the driver file, allow this to be set from the platform data. Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit

[PATCH v11 22/56] dt-bindings: input: atmel: provide name of configuration file

2020-05-07 Thread Jiada Wang
Add support to set name of configuration file Signed-off-by: Jiada Wang --- Documentation/devicetree/bindings/input/atmel,maxtouch.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/input/atmel,maxtouch.txt

[PATCH v11 20/56] Input: atmel_mxt_ts - handle cfg filename via pdata/sysfs

2020-05-07 Thread Jiada Wang
From: Nick Dyer There may be multiple maXTouch chips on a single device which will require different configuration files. Add a platform data value for the configuration filename. Add sysfs entry to write configuration file if the platform data is not set. Split out the object initialisation

[PATCH v11 27/56] Input: atmel_mxt_ts - refactor firmware flash to extract context into struct

2020-05-07 Thread Jiada Wang
From: Nick Dyer Refactor firmware flash to extract context into struct Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit 1bbe20ff3dcd6612e7942c495929eae5c138ece2) Signed-off-by: George G. Davis [jiada: Add commit description] Signed-off-by: Jiada Wang ---

[PATCH v11 21/56] Input: atmel_mxt_ts - check data->input_dev is not null in mxt_input_sync()

2020-05-07 Thread Jiada Wang
From: Janus Cheng * Symptom: if update_fw and update_cfg, kernel panic occurs. * Reproducibility: 10% * Root Cause: - If update_fw, the T6 will send a CFG_ERR message periodically. - After that, update_cfg process begin, the mxt_update_cfg_store() will invoke mxt_free_input_device() and

[PATCH v11 29/56] Input: atmel_mxt_ts - combine bootloader version query with probe

2020-05-07 Thread Jiada Wang
From: Nick Dyer This removes some complexity from the bootloader state machine, and means that we always output some debug about the version as soon as we start talking to the bootloader. Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit

[PATCH v11 18/56] Input: atmel_mxt_ts: Rename mxt_hw_version_show to hw_version_show

2020-05-07 Thread Jiada Wang
Rename mxt_hw_version_show to hw_version_show to address checkpatch warning Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c

[PATCH v11 16/56] Input: atmel_mxt_ts - allow specification of firmware file name

2020-05-07 Thread Jiada Wang
From: Nick Dyer On platforms which have multiple device instances using this driver, the firmware may be different on each device. This patch makes the user give the name of the firmware file when flashing. This also prevents accidental triggering of the firmware load process. Signed-off-by:

[PATCH v11 19/56] Input: atmel_mxt_ts: rename mxt_update_fw_store to update_fw_store

2020-05-07 Thread Jiada Wang
Rename mxt_update_fw_store to update_fw_store, to address checkpatch warning. Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c

[PATCH v11 17/56] Input: atmel_mxt_ts: Rename mxt_fw_version_show to fw_version_show

2020-05-07 Thread Jiada Wang
Rename mxt_fw_version_show to fw_version_show to address checkpatch warning Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c

[PATCH v11 15/56] Input: atmel_mxt_ts - report failures in suspend/resume

2020-05-07 Thread Jiada Wang
From: Nick Dyer This patch reports failures in suspend/resume Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit 93a57575403d) [gdavis: Resolve forward port conflicts due to applying upstream commit 96a938aa214e ("Input: atmel_mxt_ts - remove platform

[PATCH v11 14/56] Input: atmel_mxt_ts - add regulator control support

2020-05-07 Thread Jiada Wang
From: Nick Dyer Allow the driver to optionally manage enabling/disable power to the touch controller itself. If the regulators are not present then use the deep sleep power mode instead. For a correct power on sequence, it is required that we have control over the RESET line. Signed-off-by:

[PATCH v11 11/56] Input: atmel_mxt_ts - add debug for T92 gesture and T93 touch seq msgs

2020-05-07 Thread Jiada Wang
From: Karl Tsou output T92 gesture and T93 touch sequence messages. Signed-off-by: Karl Tsou Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit cb98986f8342107bf4a536aed4160b20839e97c1) Signed-off-by: George G. Davis Reported-by: kbuild test robot [jiada: changed

[PATCH v11 10/56] Input: atmel_mxt_ts - implement support for T107 active stylus

2020-05-07 Thread Jiada Wang
From: Nick Dyer This patch implements support for T107 active stylus Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit 20e357dd9acf8c2040068c8b22d6bc1401a1893f) [gdavis: Forward port and fix conflicts due to applying upstream commit 96a938aa214e ("Input:

[PATCH v11 00/56] atmel_mxt_ts misc

2020-05-07 Thread Jiada Wang
This patch-set forward ports Nick Dyer's work in ndyer/linux github repository as long as some other features and fixes Balasubramani Vivekanandan (2): Input: atmel_mxt_ts: Limit the max bytes transferred in an i2c transaction Input: atmel_mxt_ts: use gpiod_set_value_cansleep for reset

[PATCH v11 02/56] Input: atmel_mxt_ts - rework sysfs init/remove

2020-05-07 Thread Jiada Wang
From: Nick Dyer An error in the sysfs init may otherwise interfere with the async return from the firmware loader Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit 3114584ae77c2b03b6dad87174f010d002e9c05d) [gdavis: Forward port and fixup conflicts. Also fixed sysfs

[PATCH v11 13/56] dt-bindings: input: atmel: add suspend mode support

2020-05-07 Thread Jiada Wang
Add suspend mode support for atmel touchscreen driver Signed-off-by: Jiada Wang --- .../bindings/input/atmel,maxtouch.txt | 9 MAINTAINERS | 1 + include/dt-bindings/input/atmel_mxt_ts.h | 23 +++ 3 files changed, 33

[PATCH v11 06/56] Input: atmel_mxt_ts - output status from T42 Touch Suppression

2020-05-07 Thread Jiada Wang
From: Nick Dyer This patch outputs status from T42 touch suppression Signed-off-by: Nick Dyer Acked-by: Benson Leung Acked-by: Yufeng Shen (cherry picked from ndyer/linux/for-upstream commit ab95b5a30d2c098daaa9f88d9fcfae7eb516) Signed-off-by: George G. Davis [jiada: Replace dev_info()

[PATCH v11 01/56] Input: introduce input_mt_report_slot_inactive

2020-05-07 Thread Jiada Wang
input_mt_report_slot_state() ignores the tool when the slot is closed. which has caused a bit of confusion. This patch introduces input_mt_report_slot_inactive() to report slot inactive state. replaces all input_mt_report_slot_state() with input_mt_report_slot_inactive() in case of close of slot.

[PATCH v11 05/56] Input: atmel_mxt_ts - output status from T48 Noise Supression

2020-05-07 Thread Jiada Wang
From: Nick Dyer This patch outputs status from T48 Noise Supression Signed-off-by: Nick Dyer Acked-by: Benson Leung Acked-by: Yufeng Shen (cherry picked from ndyer/linux/for-upstream commit 2895a6ff150a49f27a02938f8d262be238b296d8) Signed-off-by: George G. Davis Signed-off-by: Jiada Wang

[PATCH v11 12/56] Input: atmel_mxt_ts - release touch state during suspend

2020-05-07 Thread Jiada Wang
From: Nick Dyer If fingers are down as the MXT chip goes into suspend it does not send a lift message. In addition, it may not complete its final measurement cycle immediately, which means touch messages may be received by the interrupt handler after mxt_stop() has completed. So: - disable irq

[PATCH v11 09/56] Input: atmel_mxt_ts - handle reports from T47 Stylus object

2020-05-07 Thread Jiada Wang
From: Nick Dyer This patch handles reports from T47 Stylus object Signed-off-by: Nick Dyer Acked-by: Benson Leung Acked-by: Yufeng Shen (cherry picked from ndyer/linux/for-upstream commit 56405a5ea08eb34cfe83f3121867c9de0a5c48c1) Signed-off-by: George G. Davis Signed-off-by: Jiada Wang

[PATCH v11 07/56] Input: atmel_mxt_ts - implement T9 vector/orientation support

2020-05-07 Thread Jiada Wang
From: Nick Dyer The atmel touch messages contain orientation information as a byte in a packed format which can be passed straight on to Android if the input device configuration is correct. This requires vector reports to be enabled in maXTouch config (zero DISVECT bit 3 in T9 CTRL field)

[PATCH v11 08/56] Input: atmel_mxt_ts - implement T15 Key Array support

2020-05-07 Thread Jiada Wang
From: Nick Dyer There is a key array object in many maXTouch chips which allows some X/Y lines to be used as a key array. This patch maps them to a series of keys which may be configured in a platform data array. Signed-off-by: Nick Dyer Acked-by: Benson Leung Acked-by: Yufeng Shen (cherry

Re: [PATCH 05/11] net: core: provide devm_register_netdev()

2020-05-07 Thread Heiner Kallweit
On 08.05.2020 00:56, Jakub Kicinski wrote: > On Thu, 7 May 2020 19:03:44 +0200 Bartosz Golaszewski wrote: >>> To implement Edwin's suggestion? Makes sense, but I'm no expert, let's >>> also CC Heiner since he was asking about it last time. >> >> Yes, because taking the last bit of priv_flags

[PATCH] ata: sata_nv: use enum values as array indeces

2020-05-07 Thread Sascha Hauer
Positions of the entries in nv_port_info[] must be consistent to enum nv_host_type. Ensure this by using the enum as array index directly. Signed-off-by: Sascha Hauer --- drivers/ata/sata_nv.c | 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git

Re: [PATCH v2] perf: fix compilation failure on i386

2020-05-07 Thread Cao jin
BTW, this is reported by kernel test robot , so please help to add: Reported-by: kernel test robot when it got merged. -- Sincerely, Cao jin On 5/1/20 4:25 PM, Cao jin wrote: > Compilation on i386 complains as following: > > util/session.c: In function

[PATCH 2/3] dts: ppc: t4240rdb: add uie_unsupported property to drop warning

2020-05-07 Thread Biwen Li
From: Biwen Li This adds uie_unsupported property to drop warning as follows: - $ hwclock.util-linux hwclock.util-linux: select() to /dev/rtc0 to wait for clock tick timed out My case: - RTC ds1374's INT pin is connected to VCC on T4240RDB, then the RTC cannot inform

[PATCH 3/3] dts: ppc: t1024rdb: add wakeup-source property to drop warning

2020-05-07 Thread Biwen Li
From: Biwen Li This adds wakeup-source property to drop warning as follows: - $ hwclock.util-linux hwclock.util-linux: select() to /dev/rtc0 to wait for clock tick timed out My case: - RTC ds1339s INT pin isn't connected to cpus INT pin on T1024RDB, then the RTC cannot

[PATCH 1/3] rtc: ds1374: add uie_unsupported property to drop warning

2020-05-07 Thread Biwen Li
From: Biwen Li Add uie_unsupported property to drop warning as follows: - $ hwclock.util-linux hwclock.util-liux: select() /dev/rtc0 to wait for clock tick timed out My case: - RTC ds1374's INT pin is connected to VCC on T4240RDB, then the RTC cannot inform cpu about

Re: [PATCH 6/7] exec: Move most of setup_new_exec into flush_old_exec

2020-05-07 Thread Kees Cook
On Thu, May 07, 2020 at 04:51:13PM -0500, Eric W. Biederman wrote: > I intend to the following text to the changelog. At this point I > believe I have read through everything and nothing raises any concerns > for me: > > --- text begin --- > > To see why it is safe to move this code please note

Re: [RFC] taint: add module firmware crash taint support

2020-05-07 Thread Kees Cook
On Fri, May 08, 2020 at 02:14:38AM +, Luis Chamberlain wrote: > Device driver firmware can crash, and sometimes, this can leave your > system in a state which makes the device or subsystem completely > useless. Detecting this by inspecting /proc/sys/kernel/tainted instead > of scraping some

Re: [PATCH v2] libata: Fix retrieving of active qcs

2020-05-07 Thread Sascha Hauer
On Sun, May 03, 2020 at 11:46:27PM +0200, Pali Rohár wrote: > On Monday 27 January 2020 12:24:28 Sascha Hauer wrote: > > On Mon, Jan 27, 2020 at 12:16:30PM +0100, Pali Rohár wrote: > > > On Monday 06 January 2020 09:16:05 Sascha Hauer wrote: > > > > On Wed, Dec 25, 2019 at 07:18:40PM +0100, Pali

Re: [PATCH v6 3/8] bus: mhi: core: Add range check for channel id received in event ring

2020-05-07 Thread Manivannan Sadhasivam
On Tue, May 05, 2020 at 03:47:07PM -0700, Bhaumik Bhatt wrote: > From: Hemant Kumar > > MHI data completion handler function reads channel id from event > ring element. Value is under the control of MHI devices and can be > any value between 0 and 255. In order to prevent out of bound access >

Re: [RFC PATCH 0/7] Share events between metrics

2020-05-07 Thread Ian Rogers
On Thu, May 7, 2020 at 2:47 PM Andi Kleen wrote: > > > > - without this change events within a metric may get scheduled > > > together, after they may appear as part of a larger group and be > > > multiplexed at different times, lowering accuracy - however, less > > > multiplexing may

Re: [PATCH v3] scripts: headers_install: Exit with error on config leak

2020-05-07 Thread Masahiro Yamada
On Wed, May 6, 2020 at 10:53 AM Siddharth Gupta wrote: > > Misuse of CONFIG_* in UAPI headers should result in an error. These config > options can be set in userspace by the user application which includes > these headers to control the APIs and structures being used in a kernel > which supports

Re: [PATCH] modpost: Replace zero-length array with flexible-array

2020-05-07 Thread Masahiro Yamada
On Fri, May 8, 2020 at 3:51 AM Gustavo A. R. Silva wrote: > > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced in C99:

[RFC PATCH v3 04/14] libbpf: Fix memory leak and possible double-free in hashmap__clear

2020-05-07 Thread Ian Rogers
From: Andrii Nakryiko Fix memory leak in hashmap_clear() not freeing hashmap_entry structs for each of the remaining entries. Also NULL-out bucket list to prevent possible double-free between hashmap__clear() and hashmap__free(). Running test_progs-asan flavor clearly showed this problem.

[RFC PATCH v3 10/14] perf metricgroup: always place duration_time last

2020-05-07 Thread Ian Rogers
If a metric contains the duration_time event then the event is placed outside of the metric's group of events. Rather than split the group, make it so the duration_time is immediately after the group. Signed-off-by: Ian Rogers --- tools/perf/util/metricgroup.c | 18 +- 1 file

[RFC PATCH v3 08/14] perf metricgroup: change evlist_used to a bitmap

2020-05-07 Thread Ian Rogers
Use a bitmap rather than an array of bools. Signed-off-by: Ian Rogers --- tools/perf/util/metricgroup.c | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/tools/perf/util/metricgroup.c b/tools/perf/util/metricgroup.c index 37be5a368d6e..4f7e36bc49d9 100644

[RFC PATCH v3 05/14] perf expr: fix memory leaks in bison

2020-05-07 Thread Ian Rogers
Add a destructor for strings to reclaim memory in the event of errors. Free the ID given for a lookup. Signed-off-by: Ian Rogers --- tools/perf/util/expr.y | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/perf/util/expr.y b/tools/perf/util/expr.y index 21e82a1e11a2..3b49b230b111

[RFC PATCH v3 06/14] perf evsel: fix 2 memory leaks

2020-05-07 Thread Ian Rogers
If allocated, perf_pkg_mask and metric_events need freeing. Signed-off-by: Ian Rogers --- tools/perf/util/evsel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index 28683b0eb738..05bb46baad6a 100644 --- a/tools/perf/util/evsel.c +++

[RFC PATCH v3 13/14] perf metricgroup: remove duped metric group events

2020-05-07 Thread Ian Rogers
A metric group contains multiple metrics. These metrics may use the same events. If metrics use separate events then it leads to more multiplexing and overall metric counts fail to sum to 100%. Modify how metrics are associated with events so that if the events in an earlier group satisfy the

[RFC PATCH v3 09/14] perf metricgroup: free metric_events on error

2020-05-07 Thread Ian Rogers
Avoid a simple memory leak. Signed-off-by: Ian Rogers --- tools/perf/util/metricgroup.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/perf/util/metricgroup.c b/tools/perf/util/metricgroup.c index 4f7e36bc49d9..7e1725d61c39 100644 --- a/tools/perf/util/metricgroup.c +++

[RFC PATCH v3 07/14] perf expr: migrate expr ids table to libbpf's hashmap

2020-05-07 Thread Ian Rogers
Use a hashmap between a char* string and a double* value. While bpf's hashmap entries are size_t in size, we can't guarantee sizeof(size_t) >= sizeof(double). Avoid a memory allocation when gathering ids by making 0.0 a special value encoded as NULL. Suggested by Andi Kleen:

[RFC PATCH v3 14/14] perf metricgroup: add options to not group or merge

2020-05-07 Thread Ian Rogers
Add --metric-no-group that causes all events within metrics to not be grouped. This can allow the event to get more time when multiplexed, but may also lower accuracy. Add --metric-no-merge option. By default events in different metrics may be shared if the group of events for one metric is the

[RFC PATCH v3 01/14] perf parse-events: expand add PMU error/verbose messages

2020-05-07 Thread Ian Rogers
On a CPU like skylakex an uncore_iio_0 PMU may alias with uncore_iio_free_running_0. The latter PMU doesn't support fc_mask as a parameter and so pmu_config_term fails. Typically parse_events_add_pmu is called in a loop where if one alias succeeds errors are ignored, however, if multiple errors

[RFC PATCH v3 12/14] perf metricgroup: order event groups by size

2020-05-07 Thread Ian Rogers
When adding event groups to the group list, insert them in size order. This performs an insertion sort on the group list. By placing the largest groups at the front of the group list it is possible to see if a larger group contains the same events as a later group. This can make the later group

[RFC PATCH v3 00/14] Share events between metrics

2020-05-07 Thread Ian Rogers
Metric groups contain metrics. Metrics create groups of events to ideally be scheduled together. Often metrics refer to the same events, for example, a cache hit and cache miss rate. Using separate event groups means these metrics are multiplexed at different times and the counts don't sum to

[RFC PATCH v3 02/14] perf test: improve pmu event metric testing

2020-05-07 Thread Ian Rogers
Add a basic floating point number test to expr. Break pmu-events test into 2 and add a test to verify that all pmu metric expressions simply parse. Try to parse all metric ids/events, failing if metrics for the current architecture fail to parse. Tested on skylakex with the patch set in place.

[RFC PATCH v3 03/14] lib/bpf hashmap: increase portability

2020-05-07 Thread Ian Rogers
Don't include libbpf_internal.h as it is unused and has conflicting definitions, for example, with tools/perf/util/debug.h. Fix a non-glibc include path. Signed-off-by: Ian Rogers --- tools/lib/bpf/hashmap.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[RFC PATCH v3 11/14] perf metricgroup: delay events string creation

2020-05-07 Thread Ian Rogers
Currently event groups are placed into groups_list at the same time as the events string containing the events is built. Separate these two operations and build the groups_list first, then the event string from the groups_list. This adds an ability to reorder the groups_list that will be used in a

Re: [PATCH 04/14] sched: cpufreq: Move sched_cpufreq_governor_change()

2020-05-07 Thread Pavan Kondeti
On Thu, May 07, 2020 at 07:10:02PM +0100, Quentin Perret wrote: > CPUFreq calls into sched_cpufreq_governor_change() when switching > governors, which triggers a sched domain rebuild when entering or > exiting schedutil. > > Move the function to sched/cpufreq.c to prepare the ground for the >

Re: [PATCH 00/14] Modularize schedutil

2020-05-07 Thread Viresh Kumar
On 07-05-20, 19:09, Quentin Perret wrote: > Android is trying very hard to use a single kernel image (commonly > called Generic Kernel Image, or GKI), closely aligned with mainline, to > run on all Android devices regardless of the vendor. > > The GKI project intends to not only improve the

Re: [PATCH] HID: multitouch: Remove MT_CLS_WIN_8_DUAL

2020-05-07 Thread Kai-Heng Feng
> On Apr 14, 2020, at 17:18, Kai-Heng Feng wrote: > > After commit c23e2043d5f7 ("HID: multitouch: do not filter mice nodes"), > MT_CLS_WIN_8 also supports mouse nodes, hence make MT_CLS_WIN_8_DUAL > redundant. > > Remove MT_CLS_WIN_8_DUAL accordingly. A gentle ping... > > Signed-off-by:

Re: [PATCH 13/14] sched: cpufreq: Use IS_ENABLED() for schedutil

2020-05-07 Thread Pavan Kondeti
Hi Quentin On Thu, May 07, 2020 at 07:10:11PM +0100, Quentin Perret wrote: > The IS_ENABLED() macro evaluates to true when an option is set to =y or > =m. As such, it is a good fit for tristate options. > > In preparation for modularizing schedutil, change all the related ifdefs > to use

linux-next: build failure after merge of the block tree

2020-05-07 Thread Stephen Rothwell
Hi all, After merging the block tree, today's linux-next build (x86_64 allmodconfig) failed like this: In file included from include/linux/kernel.h:15, from include/linux/list.h:9, from include/linux/module.h:12, from block/bfq-iosched.c:116:

Re: [PATCH] mmc: block: Fix request completion in the CQE timeout path

2020-05-07 Thread Ulf Hansson
On Thu, 7 May 2020 at 16:06, Adrian Hunter wrote: > > First, it should be noted that the CQE timeout (60 seconds) is substantial > so a CQE request that times out is really stuck, and the race between > timeout and completion is extremely unlikely. Nevertheless this patch > fixes an issue with

[git pull] drm fixes for 5.7-rc5

2020-05-07 Thread Dave Airlie
Hey Linus, Another pretty normal week, didn't get any i915 fixes yet, so next week I'd expect double the usual i915, but otherwise a bunch of amdgpu and some scattered other fixes. Dave. drm-fixes-2020-05-08: drm fixes for 5.7-rc5 hdcp: - fix HDCP regression amdgpu: - Runtime PM fixes - DC

Re: [PATCH 2/4] cpufreq: qoriq: Add platform dependencies

2020-05-07 Thread Viresh Kumar
On 07-05-20, 13:29, Geert Uytterhoeven wrote: > The Freescale QorIQ clock controller is only present on Freescale E500MC > and Layerscape SoCs. Add platform dependencies to the QORIQ_CPUFREQ > config symbol, to avoid asking the user about it when configuring a > kernel without E500MC or

linux-next 20200506 - build failure with net/bpfilter/bpfilter_umh

2020-05-07 Thread Valdis Klētnieks
My kernel build came to a screeching halt with: CHECK net/bpfilter/bpfilter_kern.c CC [M] net/bpfilter/bpfilter_kern.o CC [U] net/bpfilter/main.o LD [U] net/bpfilter/bpfilter_umh /usr/bin/ld: cannot find -lc collect2: error: ld returned 1 exit status make[2]: ***

Re: [PATCH v5 1/5] mmc: core: Extend mmc_of_parse() to parse CQE bindings

2020-05-07 Thread Ulf Hansson
On Thu, 7 May 2020 at 18:33, Veerabhadrarao Badiganti wrote: > > > On 5/6/2020 10:06 PM, Ulf Hansson wrote: > > On Wed, 6 May 2020 at 15:01, Veerabhadrarao Badiganti > > wrote: > >> > >> On 4/28/2020 5:26 AM, Chun-Hung Wu wrote: > >>> Parse CQE bindings "supports-cqe" and "disable-cqe-dcmd" >

Re: [PATCH V3 03/16] arm64/cpufeature: Make doublelock a signed feature in ID_AA64DFR0

2020-05-07 Thread Anshuman Khandual
On 05/05/2020 04:40 PM, Will Deacon wrote: > On Sat, May 02, 2020 at 07:03:52PM +0530, Anshuman Khandual wrote: >> Double lock feature can have the following possible values. >> >> 0b - Double lock implemented >> 0b - Double lock not implemented >> >> But in case of a conflict the safe

[PATCH] perf record: Use an eventfd to wakeup when done

2020-05-07 Thread Anand K Mistry
The setting and checking of 'done' contains a rare race where the signal handler setting 'done' is run after checking to break the loop, but before waiting in evlist__poll(). In this case, the main loop won't wake up until either another signal is sent, or the perf data fd causes a wake up. The

[PATCH] kselftests: dmabuf-heaps: Fix confused return value on expected error testing

2020-05-07 Thread John Stultz
When I added the expected error testing, I forgot I need to set the return to zero when we successfully see an error. Without this change we only end up testing a single heap before the test quits. Cc: Shuah Khan Cc: Sumit Semwal Cc: Benjamin Gaignard Cc: Brian Starkey Cc: Laura Abbott Cc:

Re: [PATCH v4 1/7] ima: Switch to ima_hash_algo for boot aggregate

2020-05-07 Thread Jerry Snitselaar
On Thu Apr 02 20, Mimi Zohar wrote: Hi Roberto, On Wed, 2020-03-25 at 11:47 +0100, Roberto Sassu wrote: boot_aggregate is the first entry of IMA measurement list. Its purpose is to link pre-boot measurements to IMA measurements. As IMA was designed to work with a TPM 1.2, the SHA1 PCR bank was

linux-next: manual merge of the amdgpu tree with the pm tree

2020-05-07 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the amdgpu tree got a conflict in: drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c between commit: e07515563d01 ("PM: sleep: core: Rename DPM_FLAG_NEVER_SKIP") from the pm tree and commit: 500bd19a7e5d ("drm/amdgpu: only set DPM_FLAG_NEVER_SKIP for legacy

Re: [PATCH v4 2/3] nsproxy: attach to namespaces via pidfds

2020-05-07 Thread Serge E. Hallyn
On Tue, May 05, 2020 at 04:04:31PM +0200, Christian Brauner wrote: > For quite a while we have been thinking about using pidfds to attach to > namespaces. This patchset has existed for about a year already but we've > wanted to wait to see how the general api would be received and adopted. > Now

linux-next: build failure after merge of the drm tree

2020-05-07 Thread Stephen Rothwell
Hi all, After merging the drm tree, today's linux-next build (x86_64 allmodconfig) failed like this: In file included from include/asm-generic/bug.h:19, from arch/x86/include/asm/bug.h:83, from include/linux/bug.h:5, from

Re: [PATCH V3 02/16] arm64/cpufeature: Drop TraceFilt feature exposure from ID_DFR0 register

2020-05-07 Thread Anshuman Khandual
On 05/05/2020 04:12 PM, Will Deacon wrote: > On Tue, May 05, 2020 at 12:20:41PM +0530, Anshuman Khandual wrote: >> On 05/05/2020 01:54 AM, Will Deacon wrote: >>> On Sat, May 02, 2020 at 07:03:51PM +0530, Anshuman Khandual wrote: ID_DFR0 based TraceFilt feature should not be exposed to

[PATCH] f2fs: remove race condition in releasing cblocks

2020-05-07 Thread Daeho Jeong
From: Daeho Jeong Now, if writing pages and releasing compress blocks occur simultaneously, and releasing cblocks is executed more than one time to a file, then total block count of filesystem and block count of the file could be incorrect and damaged. We have to execute releasing compress

Re: [PATCH v3 4/4] media: rockchip: rga: Only set output CSC mode for RGB input

2020-05-07 Thread Ezequiel Garcia
On Thu, 2020-04-30 at 18:42 +0200, Paul Kocialkowski wrote: > Setting the output CSC mode is required for a YUV output, but must not > be set when the input is also YUV. Doing this (as tested with a YUV420P > to YUV420P conversion) results in wrong colors. > > Adapt the logic to only set the

Re: [PATCH v3 3/4] media: rockchip: rga: Introduce color fmt macros and refactor CSC mode logic

2020-05-07 Thread Ezequiel Garcia
On Thu, 2020-04-30 at 18:42 +0200, Paul Kocialkowski wrote: > This introduces two macros: RGA_COLOR_FMT_IS_YUV and RGA_COLOR_FMT_IS_RGB > which allow quick checking of the colorspace familily of a RGA color format. > > These macros are then used to refactor the logic for CSC mode selection. > The

[PATCH v2 5/5] drm/panel: add panel driver for Ilitek ili9341 panels

2020-05-07 Thread dillon . minfei
From: dillon min This is a driver for 320x240 TFT panels, accepting a rgb input streams that get adapted and scaled to the panel. Signed-off-by: dillon min --- drivers/gpu/drm/panel/Kconfig| 8 + drivers/gpu/drm/panel/Makefile | 1 +

[PATCH v2 4/5] clk: stm32: Fix stm32f429 ltdc driver loading hang in clk set rate. keep ltdc clk running after kernel startup

2020-05-07 Thread dillon . minfei
From: dillon min as store stm32f4_rcc_register_pll return to the wrong offset of clks, so ltdc gate clk is null. need change clks[PLL_VCO_SAI] to clks[PLL_SAI] add CLK_IGNORE_UNUSED for ltdc to make sure clk not be freed by clk_disable_unused Signed-off-by: dillon min ---

[PATCH v2 1/5] ARM: dts: stm32: Add pin map for ltdc, spi5 on stm32f429-disco board

2020-05-07 Thread dillon . minfei
From: dillon min This patch adds the pin configuration for ltdc, spi5 controller on stm32f429-disco board. Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f4-pinctrl.dtsi | 67 ++ 1 file changed, 67 insertions(+) diff --git

[PATCH v2 2/5] ARM: dts: stm32: enable ltdc binding with ili9341 on stm32429-disco board

2020-05-07 Thread dillon . minfei
From: dillon min Enable the ltdc & ili9341 on stm32429-disco board. Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f429-disco.dts | 40 +++ 1 file changed, 40 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429-disco.dts

[PATCH v2 0/5] Enable ilitek ili9341 on stm32f429-disco board

2020-05-07 Thread dillon . minfei
From: dillon min This patchset have following changes V2: verify ilitek,ili9341.yaml with make O=../linux-stm32 dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/display/panel/ilitek,ili9341.yaml V1: add ili9341 drm panel driver add ltdc, spi5 controller for

[PATCH v2 3/5] dt-bindings: display: panel: Add ilitek ili9341 panel bindings

2020-05-07 Thread dillon . minfei
From: dillon min Add documentation for "ilitek,ili9341" panel. Signed-off-by: dillon min --- Hi Rob Herring, This patch [PATCH V2 3/5] about ilitek,ili9341.yaml was verifyed with make dt_binding_check thanks. best regards, dillon, .../bindings/display/panel/ilitek,ili9341.yaml | 68

[PATCH] perf/core: Do not initialise statics to 0 and add space before '{'

2020-05-07 Thread Kaige Li
Fix the following checkpatch errors: ERROR: do not initialise statics to 0 #10616: FILE: ./kernel/events/core.c:10616: + static int hw_context_taken = 0; ERROR: space required before the open brace '{' #11070: FILE: ./kernel/events/core.c:11070: + } else if (is_write_backward(event)){

Re: [PATCH v4 1/3] nsproxy: add struct nsset

2020-05-07 Thread Serge E. Hallyn
On Tue, May 05, 2020 at 04:04:30PM +0200, Christian Brauner wrote: > Add a simple struct nsset. It holds all necessary pieces to switch to a new > set of namespaces without leaving a task in a half-switched state which we > will make use of in the next patch. This patch switches the existing setns

Re: [PATCH v2] PM / devfreq: tegra: Add Dmitry as a maintainer

2020-05-07 Thread Chanwoo Choi
Hi Rafael, Could you please apply it to linux-pm directly? I think that it is better to be applied directly for preventing the possible merge conflict of MAINTAINERS file. Best Regards, Chanwoo Choi On 4/3/20 7:17 AM, Dmitry Osipenko wrote: > I was contributing to the NVIDIA Tegra20+ devfreq

Re: [PATCH] mmc: meson-mx-sdio: trigger a soft reset after a timeout or CRC error

2020-05-07 Thread Ulf Hansson
On Thu, 7 May 2020 at 23:14, Martin Blumenstingl wrote: > > Hi Ulf, > > On Thu, May 7, 2020 at 11:29 AM Ulf Hansson wrote: > > > > On Mon, 4 May 2020 at 00:28, Martin Blumenstingl > > wrote: > > > > > > The vendor driver (from the 3.10 kernel) triggers a soft reset every > > > time before

linux-next: manual merge of the drm tree with the drm-intel-fixes tree

2020-05-07 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm tree got a conflict in: drivers/gpu/drm/i915/gem/i915_gem_domain.c between commit: 47bf7b7a7151 ("drm/i915/gem: Remove object_is_locked assertion from unpin_from_display_plane") from the drm-intel-fixes tree and commit: 9da0ea09639f

Re: [PATCH] PM / devfreq: imx: Fix inconsistent IS_ERR and PTR_ERR

2020-05-07 Thread Chanwoo Choi
On 5/8/20 12:55 PM, Chanwoo Choi wrote: > On 5/7/20 10:12 PM, Gustavo A. R. Silva wrote: >> Fix inconsistent IS_ERR and PTR_ERR in imx_bus_init_icc(). >> >> The proper pointer to be passed as argument to PTR_ERR() is >> priv->icc_pdev. >> >> This bug was detected with the help of Coccinelle. >> >>

Re: [PATCH v2] KVM: SVM: Disable AVIC before setting V_IRQ

2020-05-07 Thread kbuild test robot
Hi Suravee, I love your patch! Yet something to improve: [auto build test ERROR on kvm/linux-next] [also build test ERROR on vhost/linux-next linus/master v5.7-rc4 next-20200507] [cannot apply to linux/master] [if your patch is applied to the wrong git tree, please drop us a note to help improve

Re: [PATCH] PM / devfreq: imx: Fix inconsistent IS_ERR and PTR_ERR

2020-05-07 Thread Chanwoo Choi
On 5/7/20 10:12 PM, Gustavo A. R. Silva wrote: > Fix inconsistent IS_ERR and PTR_ERR in imx_bus_init_icc(). > > The proper pointer to be passed as argument to PTR_ERR() is > priv->icc_pdev. > > This bug was detected with the help of Coccinelle. > > Fixes: 16c1d2f1b0bd ("PM / devfreq: imx:

Re: [PATCH] ipc/util.c: sysvipc_find_ipc() incorrectly updates position index

2020-05-07 Thread Matthew Wilcox
On Thu, May 07, 2020 at 05:02:42PM -0700, Andrew Morton wrote: > Here's how I resolved things. Please check? > > static struct kern_ipc_perm *sysvipc_find_ipc(struct ipc_ids *ids, loff_t pos, > loff_t *new_pos) > { > unsigned long index = pos; >

Re: [PATCH v3 3/4] perf stat: Copy counts from prev_raw_counts to evsel->counts

2020-05-07 Thread Jin, Yao
Hi Jiri, On 5/7/2020 11:19 PM, Jiri Olsa wrote: On Thu, May 07, 2020 at 02:58:21PM +0800, Jin Yao wrote: It would be useful to support the overall statistics for perf-stat interval mode. For example, report the summary at the end of "perf-stat -I" output. But since perf-stat can support many

[PATCH RFCv2 9/9] arm64: Support async page fault

2020-05-07 Thread Gavin Shan
This supports asynchronous page fault for the guest. The design is similar to what x86 has: on receiving a PAGE_NOT_PRESENT signal from the host, the current task is either rescheduled or put into power saving mode. The task will be waken up when PAGE_READY signal is received. The PAGE_READY

  1   2   3   4   5   6   7   8   9   10   >