[PATCH v1 07/63] Input: atmel_mxt_ts - implement T9 vector/orientation support

2019-08-16 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) Andr

[PATCH v1 59/63] Input: atmel_mxt_ts: Prevent crash due to freeing of input device

2019-08-16 Thread Jiada Wang
From: Bhuvanesh Surachari Move sysfs creation after intializing the input device to prevent crash due to freeing of input device by function via sysfs. Signed-off-by: Bhuvanesh Surachari Signed-off-by: Sanjeev Chugh Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/

[PATCH v1 05/63] Input: atmel_mxt_ts - output status from T48 Noise Supression

2019-08-16 Thread Jiada Wang
From: Nick Dyer 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 --- drivers/input/touchscreen/atmel_mxt_ts.c | 25 +++

[PATCH v1 09/63] Input: atmel_mxt_ts - handle reports from T47 Stylus object

2019-08-16 Thread Jiada Wang
From: Nick Dyer 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 --- drivers/input/touchscreen/atmel_mxt_ts.c | 12 +++

[PATCH v2 42/63] Input: atmel_mxt_ts: Limit the max bytes transferred in an i2c transaction

2019-08-16 Thread Jiada Wang
From: Balasubramani Vivekanandan In mxt_process_messages_until_invalid() function, driver tries to read all possible reportid in a single i2c transaction. Number of bytes read is limited by the max_reportid parameter. If the max_reportid is a very large value, then a large chunk of bytes will be

[PATCH v1 51/63] input: Atmel: limit the max bytes transferred while reading T5 messages

2019-08-16 Thread Jiada Wang
From: Deepak Das "a008387 Input: atmel_mxt_ts: Limit the max bytes transferred in an i2c transaction" limited the Max bytes transferred in i2c transaction while reading T5 message in mxt_process_messages_until_invalid(). mxt_process_messages_t44() reads the T44 message which contains the pending

[PATCH v1 55/63] Input: atmel_mxt_ts: Use msecs_to_jiffies() instead of HZ

2019-08-16 Thread Jiada Wang
From: Dean Jenkins Replace HZ / 10 with msecs_to_jiffies(100) in the schedule_delayed_work() calls in mxt_fw_work() and mxt_check_bootloader() because it is cleaner. Signed-off-by: Dean Jenkins Signed-off-by: Sanjeev Chugh Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers

[PATCH v1 32/63] Input: atmel_mxt_ts - implement improved debug message interface

2019-08-16 Thread Jiada Wang
From: Nick Dyer Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit 078569c13c88dcb6f8d882bfe17168587712df7d) [gdavis: Resolve forward port conflicts due to v4.14.51 commit 960fe000b1d3 ("Input: atmel_mxt_ts - fix the firmware update").] Signed-off-by:

[PATCH v1 56/63] Input: atmel_mxt_ts: Use complete when in_bootloader true

2019-08-16 Thread Jiada Wang
From: Dean Jenkins In mxt_interrupt(), complete(&data->chg_completion) was called everytime mxt_interrupt() ran which is unnecessary. mxt_regulator_enable() sets data->in_bootloader to true and waits for the completion indication for data->chg_completion to be set by mxt_interrupt(). mxt_interr

[PATCH v1 33/63] Input: atmel_mxt_ts - eliminate data->raw_info_block

2019-08-16 Thread Jiada Wang
Dynamically allocated in mxt_read_info_block() buffer buf is assigned both to data->info and data->raw_info_block, having both data->info and data->raw_info_block is redundant and confusing. This patch eliminates data->raw_info_block. Signed-off-by: Jiada Wang Signed-off-by: George G. Davis Sig

[PATCH v1 53/63] Input: atmel_mxt_ts: use gpiod_set_value_cansleep for reset pin

2019-08-16 Thread Jiada Wang
From: Balasubramani Vivekanandan In case of remote display, touch controller will be also remote. In such cases, the reset pin of the touch controller will be controlled through bridging ICs like Deserilizer and Serializer. Therefore accessing the gpio pins require transactions with the external

[PATCH v1 34/63] Input: atmel_mxt_ts - Change call-points of mxt_free_* functions

2019-08-16 Thread Jiada Wang
From: Kautuk Consul Revamping the code to call mxt_free_object_table and mxt_free_input_device functions only in the following scenarios and code paths: 1) The error path of the mxt_probe() entry point 2) The mxt_remove de-init path entry point 3) All paths which definitely expect to populate the

[PATCH v1 52/63] Input: Atmel: use T44 object to process T5 messages

2019-08-16 Thread Jiada Wang
From: Deepak Das T44 object returns the count of valid T5 messages in the buffer. According to atmel, this count should be the main criteria to read the number of T5 messages. Following is the statement from atmel confirming the same :- "For the readout of messages we recommend to stop after the

[PATCH v1 31/63] Input: atmel_mxt_ts - add memory access interface via sysfs

2019-08-16 Thread Jiada Wang
From: Nick Dyer Atmel maXTouch chips can be addressed via an "Object Based Protocol" which defines how i2c registers are mapped to different functions within the chips. This interface exposes the register map and allows user-space utilities to inspect and alter object configuration, and to view d

[PATCH v1 54/63] Input: atmel_mxt_ts: Avoid race condition in freeing of input device

2019-08-16 Thread Jiada Wang
From: Bhuvanesh Surachari >From the static analysis of the code it seems that there could be a race condition leading to crash while freeing input device in mxt_free_input_device(). The backtrace of crash is as shown below: Unable to handle kernel NULL pointer dereference at virtual address

Re: [PATCH v3 2/3] hwmon/ltc2990: Generalise DT to fwnode support

2019-08-16 Thread Max Staudt
On 08/16/2019 12:43 AM, Guenter Roeck wrote: > On Fri, Aug 16, 2019 at 12:19:42AM +0200, Max Staudt wrote: >> On 08/15/2019 02:58 PM, Max Staudt wrote: >>> - if (of_node) { >>> - ret = of_property_read_u32_array(of_node, "lltc,meas-mode", >>> -

[PATCH v1 49/63] Input: Atmel: Improve error handling in mxt_initialize_input_device()

2019-08-16 Thread Jiada Wang
From: Deepak Das Currently Driver probe continues with a warning message when it fails to get the proper multitouch object configurations like TouchScreen resolution. But Driver probe should fail in case of above scneario because it will not behave as expected without the proper touchscreen conf

[PATCH v1 46/63] Input: Atmel: improve error handling in mxt_initialize()

2019-08-16 Thread Jiada Wang
From: Deepak Das Currently mxt_initialize() tries to probe bootloader mode even if valid bootloader address is not specified. This commit modifies mxt_initialize() to return error if Device is not in appmode and bootloader address is not specified. This commit also returns error code from mxt_s

[PATCH v1 45/63] Input: Atmel: improve error handling in mxt_start()

2019-08-16 Thread Jiada Wang
From: Deepak Das mxt_start() does not return error in any of the failure cases which will allow input_dev->open() to return success even in case of any failure. This commit modifies mxt_start() to return error in failure cases. Signed-off-by: Deepak Das Signed-off-by: George G. Davis Signed-o

[PATCH v1 47/63] Input: Atmel: improve error handling in mxt_update_cfg()

2019-08-16 Thread Jiada Wang
From: Deepak Das mxt_update_cfg() failed to propagate the error code from mxt_init_t7_power_cfg() so return the error code. Signed-off-by: Deepak Das Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 4 +++- 1 file changed, 3 insertions(+

[PATCH v1 48/63] input: atmel_mxt_ts: move bootloader probe from mxt_initialize()

2019-08-16 Thread Jiada Wang
From: Deepak Das Validity of bootloader address is now checked before checking the bootloader status so mxt_lookup_bootloader_address() was moved from mxt_probe_bootloader() to mxt_initialize(). Above changes added lot of bootloader mode verification code into mxt_initialize() which made this fun

Re: [PATCH 14/22] ARM: omap1: use pci_ioremap_io() for omap_cf

2019-08-16 Thread Aaro Koskinen
Hi, On Wed, Aug 14, 2019 at 12:36:40PM +0200, Arnd Bergmann wrote: > On Wed, Aug 14, 2019 at 9:49 AM Tony Lindgren wrote: > > * Arnd Bergmann [190813 19:34]: > > > -#define OMAP1_IO_OFFSET0x0100 /* Virtual IO > > > = 0xfefb */ > > > +#define OMAP1_IO_OFFSET

[PATCH v1 29/63] Input: atmel_mxt_ts - orientation is not present in hover

2019-08-16 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 --- drivers/input/touchscreen/atmel_mxt_ts.c

[PATCH v1 27/63] Input: atmel_mxt_ts - delay enabling IRQ when not using regulators

2019-08-16 Thread Jiada Wang
From: Nick Dyer 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 enab

[PATCH v1 25/63] Input: atmel_mxt_ts - rename bl_completion to chg_completion

2019-08-16 Thread Jiada Wang
From: Nick Dyer 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 - remove platform data support").]

[PATCH v1 26/63] Input: atmel_mxt_ts - make bootloader interrupt driven

2019-08-16 Thread Jiada Wang
From: Nick Dyer 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 platform data support").]

[PATCH v1 23/63] Input: atmel_mxt_ts - improve bootloader state machine handling

2019-08-16 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 463e15ee95ee6e6274017ff645839db

[PATCH v1 24/63] Input: atmel_mxt_ts - check firmware format before entering bootloader

2019-08-16 Thread Jiada Wang
From: Nick Dyer Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit d691d3ee6c6de84b38464a423207b3e23cb9dc3a) Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletion

[PATCH v1 28/63] Input: atmel_mxt_ts - implement I2C retries

2019-08-16 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 63fd7a2cd03c3

[PATCH v1 20/63] Input: atmel_mxt_ts - refactor firmware flash to extract context into struct

2019-08-16 Thread Jiada Wang
From: Nick Dyer Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit 1bbe20ff3dcd6612e7942c495929eae5c138ece2) Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 59 +++- 1 file changed, 36 inser

[PATCH v1 22/63] Input: atmel_mxt_ts - combine bootloader version query with probe

2019-08-16 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 a2d141f170c80fea6663af98aab0b

[PATCH v1 21/63] Input: atmel_mxt_ts - refactor code to enter bootloader into separate func

2019-08-16 Thread Jiada Wang
From: Nick Dyer 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: atmel_mxt_ts - remove platform data support").]

[PATCH] FS: timerfd: Fix unexpected return value of timerfd_read function. 'hrtimer_forward_now()' returns zero due to bigger backward time drift. This causes timerfd_read to return 0. As per man pa

2019-08-16 Thread arul . jeniston
From: ARUL JENISTON MC --- fs/timerfd.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/fs/timerfd.c b/fs/timerfd.c index 6a6fc8aa1de7..f5094e070e9a 100644 --- a/fs/timerfd.c +++ b/fs/timerfd.c @@ -284,8 +284,16 @@ static ssize_t timerfd_read(struct file *file,

RE: [PATCH 2/2] lib/test_printf: add test of null/invalid pointer dereference for dentry

2019-08-16 Thread Justin He (Arm Technology China)
Hi Petr > -Original Message- > From: Petr Mladek > Sent: 2019年8月16日 16:27 > To: Justin He (Arm Technology China) > Cc: Geert Uytterhoeven ; Sergey Senozhatsky > ; Thomas Gleixner ; > Andy Shevchenko ; linux- > ker...@vger.kernel.org; Kees Cook ; Steven > Rostedt (VMware) ; Shuah Khan > ;

[PATCH v1 02/63] Input: atmel_mxt_ts - rework sysfs init/remove

2019-08-16 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 l

[PATCH v1 03/63] Input: atmel_mxt_ts - only read messages in mxt_acquire_irq() when necessary

2019-08-16 Thread Jiada Wang
From: Nick Dyer The workaround of reading all messages until an invalid is received is a way of forcing the CHG line high, which means that when using edge-triggered interrupts the interrupt can be acquired. With level-triggered interrupts the workaround is unnecessary. Also, most recent maXTou

[PATCH v1 00/63] atmel_mxt_ts misc

2019-08-16 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 (4): Input: atmel_mxt_ts: Limit the max bytes transferred in an i2c transaction Input: atmel_mxt_ts: update stale use_retrigen_workaround flag

[PATCH v1 01/63] Input: introduce input_mt_report_slot_inactive

2019-08-16 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, a

[PATCH v1 04/63] Input: atmel_mxt_ts - split large i2c transfers into blocks

2019-08-16 Thread Jiada Wang
From: Nick Dyer On some firmware variants, the size of the info block exceeds what can be read in a single transfer. Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit 74c4f5277cfa403d43fafc404119dc57a08677db) [gdavis: Forward port and fix conflicts due to v4.14.51 co

Re: [PATCH v4 4/8] printk: Replace strncmp with str_has_prefix

2019-08-16 Thread Petr Mladek
On Thu 2019-08-15 23:33:01, Chuhong Yuan wrote: > On Thu, Aug 15, 2019 at 9:52 PM Petr Mladek wrote: > > > > On Thu 2019-08-15 16:50:33, Sergey Senozhatsky wrote: > > > On (08/14/19 12:49), Petr Mladek wrote: > > > > On Fri 2019-08-09 15:10:34, Chuhong Yuan wrote: > > > > > strncmp(str, const, len

Re: [PATCH 2/2] lib/test_printf: add test of null/invalid pointer dereference for dentry

2019-08-16 Thread Petr Mladek
On Fri 2019-08-09 09:24:57, Jia He wrote: > This add some additional test cases of null/invalid pointer dereference > for dentry and file (%pd and %pD) > > Signed-off-by: Jia He > --- > lib/test_printf.c | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/lib/test_printf.c b/lib/tes

[PATCH v2 2/3] x86/cpu: Add new Intel Atom CPU model name

2019-08-16 Thread Rahul Tanwar
Add a new variant of Intel Atom Airmont CPU model. Signed-off-by: Rahul Tanwar --- arch/x86/include/asm/intel-family.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/intel-family.h b/arch/x86/include/asm/intel-family.h index 0278aa66ef62..cbbb8250370f 100644 --- a/arch

Re: [PATCH v2 2/3] arm64: allwinner: h6: add I2C nodes

2019-08-16 Thread Bhushan Shah
On Fri, Aug 16, 2019 at 09:50:31AM +0200, Maxime Ripard wrote: > On Fri, Aug 16, 2019 at 12:17:09PM +0530, Bhushan Shah wrote: > > Add device-tree nodes for i2c0 to i2c2, and also add relevant pinctrl > > nodes. > > > > Suggested-by: Icenowy Zheng > > Signed-off-by: Bhushan Shah > > --- > > Chang

Re: WARNING in is_bpf_text_address

2019-08-16 Thread Will Deacon
On Thu, Aug 15, 2019 at 06:39:56PM -0700, Bart Van Assche wrote: > On 8/15/19 12:51 AM, Will Deacon wrote: > > On Sat, Aug 10, 2019 at 05:24:06PM -0700, syzbot wrote: > > > The bug was bisected to: > > > > > > commit a0b0fd53e1e67639b303b15939b9c653dbe7a8c4 > > > Author: Bart Van Assche > > > Dat

Re: [PATCH v2 3/3] arm64: allwinner: h6: add i2c0 node in PineH64

2019-08-16 Thread Bhushan Shah
On Fri, Aug 16, 2019 at 09:52:11AM +0200, Maxime Ripard wrote: > > +/* This i2c interface is exposed on PI-2 BUS, Pin 3 (I2C_SDA) and 5 > > (I2C_SCL) */ > > +&i2c0 { > > + status = "disabled"; > > +}; > > This property is set to disabled in the DTSI already I added this node here with disabled

Re: [PATCH v4 06/10] modpost: Add modinfo flag to livepatch modules

2019-08-16 Thread Miroslav Benes
Hi, > I cleaned up the build system, and pushed it based on my > kbuild tree. > > Please see: > > git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git > klp-cleanup This indeed looks much simpler and cleaner (as far as I can judge with my limited kbuild knowledge). We just

Re: [PATCH net-next] r8152: divide the tx and rx bottom functions

2019-08-16 Thread Eric Dumazet
On 8/16/19 10:10 AM, Hayes Wang wrote: > Eric Dumazet [mailto:eric.duma...@gmail.com] >> Sent: Friday, August 16, 2019 2:40 PM > [...] >> tasklet and NAPI are scheduled on the same core (the current >> cpu calling napi_schedule() or tasklet_schedule()) >> >> I would rather not add this dubious t

[PATCH v2 3/3] x86/cpu: Update init data for new Atom CPU model

2019-08-16 Thread Rahul Tanwar
Update vulnerability init data for the newly added CPU model. Enable setting CPU feature applicable for newly added CPU model. Add TSC MSR freq_desc entry for newly added CPU model. Signed-off-by: Rahul Tanwar --- arch/x86/kernel/cpu/common.c | 1 + arch/x86/kernel/cpu/intel.c | 1 + arch/x86/k

Re: [PATCH 1/2] vsprintf: Prevent crash when dereferencing invalid pointers for %pD

2019-08-16 Thread Petr Mladek
On Fri 2019-08-09 10:56:04, Justin He (Arm Technology China) wrote: > > > > -Original Message- > > From: Andy Shevchenko > > Sent: 2019年8月9日 18:52 > > To: Justin He (Arm Technology China) > > Cc: Petr Mladek ; Andy Shevchenko > > ; Sergey Senozhatsky > > ; Geert Uytterhoeven > > ; Lin

[PATCH v2 1/3] x86/cpu: Use constant definitions for CPU type

2019-08-16 Thread Rahul Tanwar
Replace direct values usage with constant definitions when access CPU models. Signed-off-by: Rahul Tanwar Suggested-by: Andy Shevchenko --- arch/x86/kernel/cpu/intel.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/int

[PATCH v2 0/3] x86/cpu: Add new Airmont CPU model

2019-08-16 Thread Rahul Tanwar
A forthcoming product uses a new variant of Atom Airmont CPU model. This series adds support for this new CPU model. Patches are baselined upon Linux 5.3-rc4 at below Git tree: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/core v2: * Address review concerns about incorrect patch p

Re: [PATCH v3 14/14] PCI/P2PDMA: Update pci_p2pdma_distance_many() documentation

2019-08-16 Thread Christoph Hellwig
On Mon, Aug 12, 2019 at 11:30:48AM -0600, Logan Gunthorpe wrote: > The comment describing pci_p2pdma_distance_many() still referred to > the devices being behind the same root port. This no longer applies > so reword the documentation. Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH v6 2/4] media: stm32-dcmi: trace the supported fourcc/mbus_code

2019-08-16 Thread Sakari Ailus
Hi Hugues, On Wed, Aug 14, 2019 at 03:48:51PM +0200, Hugues Fruchet wrote: > Add a trace of the set of supported fourcc/mbus_code which > intersect between DCMI and source sub-device. > > Signed-off-by: Hugues Fruchet > --- > drivers/media/platform/stm32/stm32-dcmi.c | 12 ++-- > 1 file

Re: [PATCH v3 13/14] PCI/P2PDMA: Allow IOMMU for host bridge whitelist

2019-08-16 Thread Christoph Hellwig
On Mon, Aug 12, 2019 at 11:30:47AM -0600, Logan Gunthorpe wrote: > Now that we map the requests correctly we can remove the iommu_present() > restriction. Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH v3 12/14] PCI/P2PDMA: dma_map() requests that traverse the host bridge

2019-08-16 Thread Christoph Hellwig
On Mon, Aug 12, 2019 at 11:30:46AM -0600, Logan Gunthorpe wrote: > Any requests that traverse the host bridge will need to be mapped into the > IOMMU, so call dma_map_sg() inside pci_p2pdma_map_sg() when appropriate. > > Similarly, call dma_unmap_sg() inside pci_p2pdma_unmap_sg(). > > Link: https

Re: [PATCH v3 11/14] PCI/P2PDMA: Store mapping method in an xarray

2019-08-16 Thread Christoph Hellwig
On Mon, Aug 12, 2019 at 11:30:45AM -0600, Logan Gunthorpe wrote: > When upstream_bridge_distance() is called, store the method required to map > the DMA transfers in an xarray so it can be looked up efficiently on the > hot path in pci_p2pdma_map_sg(). > > Link: https://lore.kernel.org/r/201907301

Re: [PATCH v3 10/14] PCI/P2PDMA: Factor out __pci_p2pdma_map_sg()

2019-08-16 Thread Christoph Hellwig
On Mon, Aug 12, 2019 at 11:30:44AM -0600, Logan Gunthorpe wrote: > Factor out the bus-only mapping into its own static function. No > functional changes. The original pci_p2pdma_map_sg_attrs() will be used to > decide whether this is an appropriate way to map. > > Link: https://lore.kernel.org/r/

Re: [PATCH v3 09/14] PCI/P2PDMA: Introduce pci_p2pdma_unmap_sg()

2019-08-16 Thread Christoph Hellwig
On Mon, Aug 12, 2019 at 11:30:43AM -0600, Logan Gunthorpe wrote: > Add pci_p2pdma_unmap_sg() to the two places that call pci_p2pdma_map_sg(). > > This is a prep patch to introduce correct mappings for p2pdma transactions > that go through the root complex. I personally wouldn't split it from actu

[PATCH net-next 0/6] net: hns3: add some cleanups & bugfix

2019-08-16 Thread Huazhong Tan
This patch-set includes cleanups and bugfix for the HNS3 ethernet controller driver. [patch 01/06 - 03/06] adds some cleanups. [patch 04/06] changes the print level of RAS. [patch 05/06] fixes a bug related to MAC TNL. [patch 06/06] adds phy_attached_info(). Guojia Liao (3): net: hns3: add o

Re: [PATCH v3 08/14] PCI/P2PDMA: Add attrs argument to pci_p2pdma_map_sg()

2019-08-16 Thread Christoph Hellwig
On Mon, Aug 12, 2019 at 11:30:42AM -0600, Logan Gunthorpe wrote: > This is to match the dma_map_sg() API which this function will have to call > in an future patch. > > Add a pci_p2pdma_map_sg_attrs() function and helper to call it with no > attributes just like the dma_map_sg() function. > > Lin

[PATCH net-next 2/6] net: hns3: modify redundant initialization of variable

2019-08-16 Thread Huazhong Tan
From: Guojia Liao Some temporary variables do not need to be initialized that they will be set before used, so this patch deletes the initialization value of these temporary variables. Signed-off-by: Guojia Liao Signed-off-by: Guangbin Huang Signed-off-by: Huzhong Tan --- drivers/net/etherne

[PATCH net-next 3/6] net: hns3: fix error and incorrect format

2019-08-16 Thread Huazhong Tan
From: Guojia Liao The pointer type parameter should be declare as const for preventing from its pointed value being unexpected modified. The uninitialized variable can not be return directly. The default return value is 0 if no abnormal result. This patch fixes the preceding two errors, deletes

[PATCH net-next 5/6] net: hns3: prevent unnecessary MAC TNL interrupt

2019-08-16 Thread Huazhong Tan
MAC TNL interrupt is used to collect statistic info about link status changing suddenly when netdev is running. But when stopping netdev, the enabled MAC TNL interrupt is unnecessary, and may add some noises to the statistic info. So this patch disables it before stopping MAC. Fixes: a63457878b12

[PATCH net-next 1/6] net: hns3: add or modify comments

2019-08-16 Thread Huazhong Tan
From: Guojia Liao To explain some code, this patch adds some comments, and modifies or merges some comments to make them more neat. Signed-off-by: Guojia Liao Signed-off-by: Zhongzhu Liu Signed-off-by: Weihang Li Signed-off-by: Guangbin Huang Signed-off-by: Huazhong Tan --- drivers/net/eth

[PATCH net-next 4/6] net: hns3: change print level of RAS error log from warning to error

2019-08-16 Thread Huazhong Tan
From: Xiaofei Tan This patch changes print level of RAS error log from warning to error. Because RAS error and its recovery process could cause application failure. Also uses %u instead of %d when the parameter is unsigned. Signed-off-by: Xiaofei Tan Signed-off-by: Weihang Li Signed-off-by: Hu

[PATCH net-next 6/6] net: hns3: add phy_attached_info() to the hns3 driver

2019-08-16 Thread Huazhong Tan
From: Yonglong Liu This patch adds the call to phy_attached_info() to the hns3 driver to identify which exact PHY drivers and models is in use. Signed-off-by: Yonglong Liu Reviewed-by: Yunsheng Lin Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c | 2 ++

Re: [PATCH v3 07/14] PCI/P2PDMA: Whitelist some Intel host bridges

2019-08-16 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

RE: [PATCH net-next] r8152: divide the tx and rx bottom functions

2019-08-16 Thread Hayes Wang
Eric Dumazet [mailto:eric.duma...@gmail.com] > Sent: Friday, August 16, 2019 2:40 PM [...] > tasklet and NAPI are scheduled on the same core (the current > cpu calling napi_schedule() or tasklet_schedule()) > > I would rather not add this dubious tasklet, and instead try to understand > what is wr

Re: Bisected: Kernel 4.14 + has 3 times higher write IO latency than Kernel 4.4 with raid1

2019-08-16 Thread Jinpu Wang
On Wed, Aug 7, 2019 at 2:35 PM Jinpu Wang wrote: > > On Wed, Aug 7, 2019 at 8:36 AM Jinpu Wang wrote: > > > > On Wed, Aug 7, 2019 at 1:40 AM NeilBrown wrote: > > > > > > On Tue, Aug 06 2019, Jinpu Wang wrote: > > > > > > > On Tue, Aug 6, 2019 at 9:54 AM Jinpu Wang > > > > wrote: > > > >> > > >

RE: [PATCH v2 3/9] drm: Rename drm_bridge_timings to drm_timings

2019-08-16 Thread Fabrizio Castro
Hi Greg, hi Laurent, > From: Greg Kroah-Hartman > Sent: 15 August 2019 20:05 > Subject: Re: [PATCH v2 3/9] drm: Rename drm_bridge_timings to drm_timings > > On Thu, Aug 15, 2019 at 09:06:41PM +0300, Laurent Pinchart wrote: > > Hi Greg, > > > > On Thu, Aug 15, 2019 at 04:53:00PM +0200, Greg Kroah

Re: [PATCH v3 06/14] PCI/P2PDMA: Factor out host_bridge_whitelist()

2019-08-16 Thread Christoph Hellwig
On Mon, Aug 12, 2019 at 11:30:40AM -0600, Logan Gunthorpe wrote: > Push both PCI devices into the whitelist checking function seeing some > hardware will require us ensuring they are on the same host bridge. > > At the same time we rename root_complex_whitelist() to > host_bridge_whitelist() to ma

Re: [PATCH v3 05/14] PCI/P2PDMA: Apply host bridge whitelist for ACS

2019-08-16 Thread Christoph Hellwig
On Mon, Aug 12, 2019 at 11:30:39AM -0600, Logan Gunthorpe wrote: > When a P2PDMA transfer is rejected due to ACS being set, we can also check > the whitelist and allow the transactions. > > Do this by pushing the whitelist check into the upstream_bridge_distance() > function. > > Link: https://lo

[ANN] kdevops - Linux kernel development devops framework

2019-08-16 Thread Luis Chamberlain
I'd like to announce my first release of kdevops [0] which I am happy to share with the community. The goal behind this project is to provide a modern devops framework for Linux kernel development. It is not a tests suite, it is designed to *use* *any* test suites, and more importantly, it allows u

Re: [PATCH v3 04/14] PCI/P2PDMA: Factor out __upstream_bridge_distance()

2019-08-16 Thread Christoph Hellwig
On Mon, Aug 12, 2019 at 11:30:38AM -0600, Logan Gunthorpe wrote: > This is a prep patch to create a second level helper. There are no > functional changes. > > The root complex whitelist code will be moved into this function in a > subsequent patch. > > Link: https://lore.kernel.org/r/20190730163

Re: [PATCH v3 03/14] PCI/P2PDMA: Add constants for map type results to upstream_bridge_distance()

2019-08-16 Thread Christoph Hellwig
On Mon, Aug 12, 2019 at 11:30:37AM -0600, Logan Gunthorpe wrote: > Add constant flags to indicate how two devices will be mapped or if they > are unsupported. upstream_bridge_distance() will now return the > mapping type and the distance in a passed-by-reference argument. > > This helps annotate t

RE: [PATCH] rtw88: pci: Move a mass of jobs in hw IRQ to soft IRQ

2019-08-16 Thread Tony Chuang
Hi, A few more questions below > > From: Jian-Hong Pan [mailto:jian-h...@endlessm.com] > > > > There is a mass of jobs between spin lock and unlock in the hardware > > IRQ which will occupy much time originally. To make system work more > > efficiently, this patch moves the jobs to the soft IRQ (

Re: [PATCH v3 02/14] PCI/P2PDMA: Add provider's pci_dev to pci_p2pdma_pagemap struct

2019-08-16 Thread Christoph Hellwig
On Mon, Aug 12, 2019 at 11:30:36AM -0600, Logan Gunthorpe wrote: > The provider will be needed to figure out how to map a device. > > Link: https://lore.kernel.org/r/20190730163545.4915-3-log...@deltatee.com > Signed-off-by: Logan Gunthorpe > Signed-off-by: Bjorn Helgaas Looks good, Reviewed-b

Re: [PATCH v3 01/14] PCI/P2PDMA: Introduce private pagemap structure

2019-08-16 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

Re: [v2] rtc: pcf85363/pcf85263: fix error that failed to run hwclock -w

2019-08-16 Thread Alexandre Belloni
On 16/08/2019 10:46:36+0800, Biwen Li wrote: > Issue: > - # hwclock -w > hwclock: RTC_SET_TIME: Invalid argument > > Why: > - Relative patch: https://lkml.org/lkml/2019/4/3/55 , this patch > will always check for unwritable registers, it will compare reg > with max_regist

Re: [PATCH v4 3/3] x86/kasan: support KASAN_VMALLOC

2019-08-16 Thread Christophe Leroy
Le 15/08/2019 à 02:16, Daniel Axtens a écrit : In the case where KASAN directly allocates memory to back vmalloc space, don't map the early shadow page over it. If early shadow page is not mapped, any bad memory access will Oops on the shadow access instead of Oopsing on the real bad access

答复: [PATCH] ubifs: ubifs_tnc_start_commit: Fix OOB in layout_in_gaps

2019-08-16 Thread chengzhihao
> ubifs_assert(c, p < c->gap_lebs + c->lst.idx_lebs); I've done 50 problem reproduces on different flash devices and made sure that the assertion was not triggered. See record.txt for details. -邮件原件- 发件人: chengzhihao 发送时间: 2019年8月14日 9:20 收件人: 'Richard Weinberger' 抄送: Richard Weinberg

RE: [PATCH] rtw88: pci: Move a mass of jobs in hw IRQ to soft IRQ

2019-08-16 Thread Tony Chuang
> From: Jian-Hong Pan [mailto:jian-h...@endlessm.com] > > There is a mass of jobs between spin lock and unlock in the hardware > IRQ which will occupy much time originally. To make system work more > efficiently, this patch moves the jobs to the soft IRQ (bottom half) to > reduce the time in hardw

[PATCH] powerpc/32: Add warning on misaligned copy_page() or clear_page()

2019-08-16 Thread Christophe Leroy
copy_page() and clear_page() expect page aligned destination, and use dcbz instruction to clear entire cache lines based on the assumption that the destination is cache aligned. As shown during analysis of a bug in BTRFS filesystem, a misaligned copy_page() can create bugs that are difficult to lo

Re: [PATCH v2 3/3] arm64: allwinner: h6: add i2c0 node in PineH64

2019-08-16 Thread Maxime Ripard
65;5603;1c On Fri, Aug 16, 2019 at 12:17:10PM +0530, Bhushan Shah wrote: > i2c0 bus is exposed by PI-2 BUS in the PineH64, model B. > > Signed-off-by: Bhushan Shah > --- > Changes in v2: > - Don't enable the i2c0 node in PineH64 by default > > arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dt

Re: [PATCH v2 2/3] arm64: allwinner: h6: add I2C nodes

2019-08-16 Thread Maxime Ripard
On Fri, Aug 16, 2019 at 12:17:09PM +0530, Bhushan Shah wrote: > Add device-tree nodes for i2c0 to i2c2, and also add relevant pinctrl > nodes. > > Suggested-by: Icenowy Zheng > Signed-off-by: Bhushan Shah > --- > Changes in v2: > - Add the SoC specific compatible string instead of re-using a31

Re: [PATCH v4 1/3] kasan: support backing vmalloc space with real shadow memory

2019-08-16 Thread Christophe Leroy
Le 15/08/2019 à 02:16, Daniel Axtens a écrit : Hook into vmalloc and vmap, and dynamically allocate real shadow memory to back the mappings. Most mappings in vmalloc space are small, requiring less than a full page of shadow space. Allocating a full shadow page per mapping would therefore be

Re: [PATCH v6 09/11] media: hantro: Add core bits to support H264 decoding

2019-08-16 Thread Hans Verkuil
On 8/14/19 9:59 PM, Ezequiel Garcia wrote: > From: Hertz Wong > > Add helpers and patch hantro_{drv,v4l2}.c to prepare addition of H264 > decoding support. > > Signed-off-by: Hertz Wong > Signed-off-by: Boris Brezillon > Tested-by: Philipp Zabel > --- > Changes in v6: > * Fixed duplicated CAB

Re: [PATCH v6 07/11] media: cedrus: Specify H264 startcode and decoding mode

2019-08-16 Thread Hans Verkuil
On 8/14/19 9:59 PM, Ezequiel Garcia wrote: > The cedrus VPU is slice-based and expects V4L2_PIX_FMT_H264_SLICE > buffers to contain H264 slices with no start code. > > Expose this to userspace with the newly added menu control. > > These two controls are specified as mandatory for applications, >

Re: [PATCH 2/3] x86: cpu: Add new Intel Atom CPU type

2019-08-16 Thread Borislav Petkov
On Fri, Aug 16, 2019 at 03:25:51PM +0800, Tanwar, Rahul wrote: > > On 16/8/2019 2:43 PM, Borislav Petkov wrote: > > Now to another question: you see how I put my reply to the previous mail > > *below* the quoted text. Why is yours ontop? Why not put it after mine > > since you're replying to it, l

Re: [PATCH] libnvdimm: change disk name of virtio pmem disk

2019-08-16 Thread Pankaj Gupta
> > > > This patch adds prefix 'v' in disk name for virtio pmem. > > This differentiates virtio-pmem disks from the pmem disks. > > I don't think the small matter that this device does not support > MAP_SYNC warrants a separate naming scheme. That said I do think we > need to export this attrib

Re: [PATCH v3 1/10] pwm: mediatek: add a property "num-pwms"

2019-08-16 Thread Uwe Kleine-König
On Fri, Aug 16, 2019 at 03:21:19PM +0800, Sam Shih wrote: > From: Ryder Lee > > This adds a property "num-pwms" to avoid having an endless > list of compatibles with no differences for the same driver. > > Signed-off-by: Ryder Lee > Signed-off-by: Sam Shih > --- > drivers/pwm/pwm-mediatek.c |

Re: [PATCH v6 03/11] media: uapi: h264: Add the concept of decoding mode

2019-08-16 Thread Hans Verkuil
On 8/14/19 9:59 PM, Ezequiel Garcia wrote: > From: Boris Brezillon > > Some stateless decoders don't support per-slice decoding granularity > (or at least not in a way that would make them efficient or easy to use). > > Expose a menu to control the supported decoding modes. Drivers are > allowed

Re: [PATCH 2/3] x86: cpu: Add new Intel Atom CPU type

2019-08-16 Thread Tanwar, Rahul
On 16/8/2019 2:43 PM, Borislav Petkov wrote: Now to another question: you see how I put my reply to the previous mail *below* the quoted text. Why is yours ontop? Why not put it after mine since you're replying to it, like it is usually done on the mailing lists and thus not confuse the reading

Re: [PATCH] dmaengine: ti: omap-dma: Add cleanup in omap_dma_probe()

2019-08-16 Thread Peter Ujfalusi
On 16/08/2019 9.56, Wenwen Wang wrote: > If devm_request_irq() fails to disable all interrupts, no cleanup is > performed before retuning the error. To fix this issue, invoke > omap_dma_free() to do the cleanup. Thank you, Acked-by: Peter Ujfalusi > Signed-off-by: Wenwen Wang > --- > driver

[PATCH v3 6/10] arm: dts: mt7623: add a property "num-pwms" for PWM node

2019-08-16 Thread Sam Shih
From: Ryder Lee This adds a property "num-pwms" for PWM controller. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih --- arch/arm/boot/dts/mt7623.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi index a79f0b6c3429..208e0d19

[PATCH 10/10] arm: dts: mediatek: add mt7629 pwm support

2019-08-16 Thread Sam Shih
From: sam shih This adds pwm support for MT7629. Signed-off-by: Sam Shih --- arch/arm/boot/dts/mt7629.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/mt7629.dtsi b/arch/arm/boot/dts/mt7629.dtsi index 9608bc2ccb3f..10f788a93346 100644 --- a/arch/arm/bo

[PATCH v3 9/10] dt-bindings: pwm: update bindings for MT7628 SoC

2019-08-16 Thread Sam Shih
From: sam shih This updates bindings for MT7628 pwm controller. Signed-off-by: Sam Shih --- Documentation/devicetree/bindings/pwm/pwm-mediatek.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt b/Documentation/devicetree/bindings/

[PATCH v3 1/10] pwm: mediatek: add a property "num-pwms"

2019-08-16 Thread Sam Shih
From: Ryder Lee This adds a property "num-pwms" to avoid having an endless list of compatibles with no differences for the same driver. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih --- drivers/pwm/pwm-mediatek.c | 35 ++- 1 file changed, 22 insertions(+), 1

[PATCH v3 2/10] pwm: mediatek: allocate the clks array dynamically

2019-08-16 Thread Sam Shih
From: Ryder Lee Instead of using fixed size of arrays, allocate the memory for them based on the information we get from the chips. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih --- drivers/pwm/pwm-mediatek.c | 76 +++--- 1 file changed, 39 insertions(+), 37

Re: [PATCH v9 08/21] iommu/io-pgtable-arm-v7s: Extend MediaTek 4GB Mode

2019-08-16 Thread Yong Wu
On Thu, 2019-08-15 at 12:50 +0100, Will Deacon wrote: > Ok, I think speaking to Robin helped me a bit with this... > > On Thu, Aug 15, 2019 at 06:18:38PM +0800, Yong Wu wrote: > > On Thu, 2019-08-15 at 10:51 +0100, Will Deacon wrote: > > > On Thu, Aug 15, 2019 at 04:47:49PM +0800, Yong Wu wrote: >

<    3   4   5   6   7   8   9   >