Re: [PATCH RFC 1/4] perf/core: Apply PERF_EVENT_IOC_MODIFY_ATTRIBUTES to children

2021-02-23 Thread Dmitry Vyukov
On Tue, Feb 23, 2021 at 3:34 PM Marco Elver wrote: > > As with other ioctls (such as PERF_EVENT_IOC_{ENABLE,DISABLE}), fix up > handling of PERF_EVENT_IOC_MODIFY_ATTRIBUTES to also apply to children. > > Link: > https://lkml.kernel.org/r/ybqvay8atmyto...@hirez.program

[PATCH 4.9 45/71] libata: implement ATA_HORKAGE_MAX_TRIM_128M and apply to Sandisks

2020-09-11 Thread Greg Kroah-Hartman
From: Tejun Heo commit 3b5455636fe26ea21b4189d135a424a6da016418 upstream. All three generations of Sandisk SSDs lock up hard intermittently. Experiments showed that disabling NCQ lowered the failure rate significantly and the kernel has been disabling NCQ for some models of SD7's and 8's, which

Re: [PATCH v3] pwm: bcm2835: Support apply function for atomic configuration

2020-12-08 Thread Uwe Kleine-König
Hello Lino, On Tue, Dec 08, 2020 at 11:01:45PM +0100, Lino Sanfilippo wrote: > Use the newer .apply function of pwm_ops instead of .config, .enable, > .disable and .set_polarity. This guarantees atomic changes of the pwm > controller configuration. It also reduces the size of t

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-05 Thread Uwe Kleine-König
> > > > > you are sure that this won't discard relevant bits, please explain > > > > > > > this in a comment for the cursory reader. > > > > > > > > > > > > > Also note that round_closed is probably wrong, as .apply() is &g

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-06 Thread Sean Young
Hello Uwe, On Sat, Dec 05, 2020 at 08:25:10PM +0100, Uwe Kleine-König wrote: > On Sat, Dec 05, 2020 at 05:34:44PM +, Sean Young wrote: > > What real life uses-cases are there for round down? If you want to round > > down, is there any need for round up? > > The scenario I have in mind is for

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-07 Thread Uwe Kleine-König
On Sun, Dec 06, 2020 at 02:19:41PM +, Sean Young wrote: > Hello Uwe, > > On Sat, Dec 05, 2020 at 08:25:10PM +0100, Uwe Kleine-König wrote: > > On Sat, Dec 05, 2020 at 05:34:44PM +, Sean Young wrote: > > > What real life uses-cases are there for round down? If you want to round > > > down,

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-07 Thread Sean Young
Hello Uwe, Thank you for taking the time to explain your thinking. On Mon, Dec 07, 2020 at 09:16:28AM +0100, Uwe Kleine-König wrote: > On Sun, Dec 06, 2020 at 02:19:41PM +, Sean Young wrote: > > On Sat, Dec 05, 2020 at 08:25:10PM +0100, Uwe Kleine-König wrote: > > > On Sat, Dec 05, 2020 at

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-07 Thread Uwe Kleine-König
Hello Sean, On Mon, Dec 07, 2020 at 09:43:20AM +, Sean Young wrote: > Thank you for taking the time to explain your thinking. I'm happy you have an open ear for it. With this I really enjoy spending the time to find the right arguments and examples. > On Mon, Dec 07, 2020 at 09:16:28AM +0100

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-07 Thread Thierry Reding
of the company I work for and they > had another usecase: Motors where for example a 1 ms pulse means "move > forwards" and 2 ms means "move backwards". They had the same idea as I > had: You want to know beforehand the result of a given > pwm_apply_state(). I'

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-07 Thread Sean Young
Hi Uwe, On Mon, Dec 07, 2020 at 02:52:09PM +0100, Uwe Kleine-König wrote: > On Mon, Dec 07, 2020 at 09:43:20AM +, Sean Young wrote: > > On Mon, Dec 07, 2020 at 09:16:28AM +0100, Uwe Kleine-König wrote: > > > On Sun, Dec 06, 2020 at 02:19:41PM +, Sean Young wrote: > > > > On Sat, Dec 05, 20

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-07 Thread Uwe Kleine-König
I > that would allow you to pass in a struct pwm_state and get a result as > to whether it can be applied or not. It's never really made much sense > because pwm_apply_state() can already return failure if it can't apply > the state. > > However, if we need some way for consu

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-07 Thread Lino Sanfilippo
ester and a real use-case were the single two things that stopped me > investing time here. > Should I send a v3 of the .apply() support for the bcm2835 driver before you start such a rework? The v3 would contain the check against truncation of the period but keep the round-closest strategy as it is. Regards, Lino

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-08 Thread Uwe Kleine-König
ovide a > > prototype for pwm_round_nearest for you to test on pwm-ir-tx. A willing > > tester and a real use-case were the single two things that stopped me > > investing time here. > > > > Should I send a v3 of the .apply() support for the bcm2835 driver before you > sta

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-03 Thread Lino Sanfilippo
* dont accept a period that is too small or has been truncated */ if ((value < PERIOD_MIN) || (value != DIV_ROUND_CLOSEST_ULL(state->period, scaler))) return -EINVAL; > Also note that round_closed is probably wrong, as .apply() is > supposed to round

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-04 Thread Sean Young
return -EINVAL; > > Also note that round_closed is probably wrong, as .apply() is > > supposed to round down the period to the next achievable period. (But > > fixing this has to do done in a separate patch.) > > According to commit 11fc4edc4 rounding to the closest integer

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-04 Thread Sean Young
used by the > > pwm-ir-tx driver. > > I dont know how strong the requirement is to round down the period in > > apply(), but I > > can imagine that this may be a good reason to deviate from this rule. > > (CCing Sean Young who introduced DIV_ROUND_CLOSEST) > &g

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-04 Thread Uwe Kleine-König
expensive (esp on 32 bit > kernels), you could assign to u64 and check: > > if (value < PERIOD || value > U32_MAX) > return -EINVAL; Given that value is a u32, value > U32_MAX will never trigger. Maybe checking period before doing the division is more sensib

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-04 Thread Uwe Kleine-König
Hello Lino, On Fri, Dec 04, 2020 at 12:42:15AM +0100, Lino Sanfilippo wrote: > On 29.11.20 at 19:10, Uwe Kleine-König wrote: > > You're storing an unsigned long long (i.e. 64 bits) in an u32. If > > you are sure that this won't discard relevant bits, please explain > > this in a comment for the cu

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-04 Thread Sean Young
> return -EINVAL; > > Given that value is a u32, value > U32_MAX will never trigger. I meant that value is declared u64 as well ("assign to u64"). > Maybe checking period before doing the division is more sensible. That could introduce rounding errors,

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-04 Thread Sean Young
On Fri, Dec 04, 2020 at 12:21:15PM +0100, Uwe Kleine-König wrote: > Hello Lino, > > On Fri, Dec 04, 2020 at 12:42:15AM +0100, Lino Sanfilippo wrote: > > On 29.11.20 at 19:10, Uwe Kleine-König wrote: > > > You're storing an unsigned long long (i.e. 64 bits) in an u32. If > > > you are sure that thi

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-04 Thread Uwe Kleine-König
Hello Sean, On Fri, Dec 04, 2020 at 11:40:36AM +, Sean Young wrote: > On Fri, Dec 04, 2020 at 12:21:15PM +0100, Uwe Kleine-König wrote: > > On Fri, Dec 04, 2020 at 12:42:15AM +0100, Lino Sanfilippo wrote: > > > On 29.11.20 at 19:10, Uwe Kleine-König wrote: > > > > You're storing an unsigned lo

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-04 Thread Sean Young
Hi Uwe, On Fri, Dec 04, 2020 at 10:55:25PM +0100, Uwe Kleine-König wrote: > On Fri, Dec 04, 2020 at 11:40:36AM +, Sean Young wrote: > > On Fri, Dec 04, 2020 at 12:21:15PM +0100, Uwe Kleine-König wrote: > > > On Fri, Dec 04, 2020 at 12:42:15AM +0100, Lino Sanfilippo wrote: > > > > On 29.11.20 a

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-04 Thread Lino Sanfilippo
Hi Sean, On 04.12.20 at 09:44, Sean Young wrote: >> What about an extra check then to make sure that the period has not been >> truncated, >> e.g: >> >> value = DIV_ROUND_CLOSEST_ULL(state->period, scaler); >> >> /* dont accept a period that is too small or has been truncated */ >>

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-04 Thread Lino Sanfilippo
Hi, On 04.12.20 at 12:21, Uwe Kleine-König wrote: > > I'd make value an unsigned long long and check for > 0x instead > of repeating the (expensive) division. (Hmm, maybe the compiler is smart > enough to not actually repeat it, but still.) I also prefer unsigned long long over u64 sinc

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-04 Thread Uwe Kleine-König
Given that value is a u32, value > U32_MAX will never trigger. > > I meant that value is declared u64 as well ("assign to u64"). > > > Maybe checking period before doing the division is more sensible. > > That could introduce rounding errors, exactly why P

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-05 Thread Sean Young
relevant bits, please explain > > > > > > this in a comment for the cursory reader. > > > > > > > > > > > Also note that round_closed is probably wrong, as .apply() is > > > > > > supposed to round down the period to the next achievable period. &

Re: [PATCH v3] pwm: bcm2835: Support apply function for atomic configuration

2020-12-10 Thread Uwe Kleine-König
Hello, On Tue, Dec 08, 2020 at 11:01:45PM +0100, Lino Sanfilippo wrote: > Use the newer .apply function of pwm_ops instead of .config, .enable, > .disable and .set_polarity. This guarantees atomic changes of the pwm > controller configuration. It also reduces the size of the driver. &

Re: [PATCH v4] pwm: bcm2835: Support apply function for atomic configuration

2020-12-10 Thread Uwe Kleine-König
On Wed, Dec 09, 2020 at 09:48:25PM +0100, Lino Sanfilippo wrote: > Use the newer .apply function of pwm_ops instead of .config, .enable, > .disable and .set_polarity. This guarantees atomic changes of the pwm > controller configuration. It also reduces the size of the driver. > > S

Re: [PATCH v4] pwm: bcm2835: Support apply function for atomic configuration

2020-12-10 Thread Thierry Reding
On Wed, Dec 09, 2020 at 09:48:25PM +0100, Lino Sanfilippo wrote: > Use the newer .apply function of pwm_ops instead of .config, .enable, > .disable and .set_polarity. This guarantees atomic changes of the pwm > controller configuration. It also reduces the size of the driver. > > S

Re: [PATCH v3] pwm: bcm2835: Support apply function for atomic configuration

2020-12-11 Thread Uwe Kleine-König
nsaenzjulie...@suse.de, > > f.faine...@gmail.com, r...@broadcom.com, s...@mess.org, > > sbran...@broadcom.com, bcm-kernel-feedback-l...@broadcom.com, > > linux-...@vger.kernel.org, linux-rpi-ker...@lists.infradead.org, > > linux-arm-ker...@lists.infradead.org, linux-kern

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-11-29 Thread Uwe Kleine-König
On Sat, Nov 28, 2020 at 01:02:06PM +0100, Lino Sanfilippo wrote: > Use the newer apply function of pwm_ops instead of config, enable, disable > and set_polarity. > > This guarantees atomic changes of the pwm controller configuration. It also > reduces the size of the driver. >

[PATCH v10 07/16] mm/damon: Apply dynamic memory mapping changes

2020-05-05 Thread SeongJae Park
static void kdamond_split_regions(struct damon_ctx *ctx) damon_split_regions_of(ctx, t, nr_subregions); } +/* + * Check whether it is time to check and apply the dynamic mmap changes + * + * Returns true if it is. + */ +static bool kdamond_need_update_regions(

[PATCH v4 3/3] iommu/vt-d: Apply per-device dma_ops

2020-05-05 Thread Lu Baolu
Current Intel IOMMU driver sets the system level dma_ops. This causes each dma API to go through the IOMMU driver even the devices are using identity mapped domains. This sets per-device dma_ops only if a device is using a DMA domain. Otherwise, use the default system level dma_ops for direct dma.

[PATCH v11 07/16] mm/damon: Apply dynamic memory mapping changes

2020-05-11 Thread SeongJae Park
static void kdamond_split_regions(struct damon_ctx *ctx) last_nr_regions = nr_regions; } +/* + * Check whether it is time to check and apply the dynamic mmap changes + * + * Returns true if it is. + */ +static bool kdamond_need_update_regions(struct damon_ctx *ctx) +{ + ret

[PATCH 02/19] staging: wfx: apply 80-columns rule to strings

2020-05-15 Thread Jerome Pouiller
From: Jérôme Pouiller Strings are allowed to exceed 80 columns but, in this case, the format arguments should be placed on a new line. Apply this rule to the whole code of the driver. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/bus_sdio.c | 3 ++- drivers/staging/wfx/data_tx.c

[PATCH v12 07/16] mm/damon: Apply dynamic memory mapping changes

2020-05-18 Thread SeongJae Park
static void kdamond_split_regions(struct damon_ctx *ctx) last_nr_regions = nr_regions; } +/* + * Check whether it is time to check and apply the dynamic mmap changes + * + * Returns true if it is. + */ +static bool kdamond_need_update_regions(struct damon_ctx *ctx) +{ + ret

[PATCH] dns: Apply a default TTL to records obtained from getaddrinfo()

2020-05-18 Thread David Howells
DNS, such as an SRV or AFSDB record. Fix this to apply a default TTL of 10mins in the event that we haven't got one. This can be configured in /etc/keyutils/key.dns_resolver.conf by adding the line: default_ttl: to the file. Signed-off-by: David Howells --- Makefile

[PATCH 58/85] perf tools: Apply new CPU topology sysfs attributes

2019-06-11 Thread Arnaldo Carvalho de Melo
From: Kan Liang The existing "thread_siblings" and "thread_siblings_list" attribute will be deprecated. Use the new CPU topology sysfs attributes, "core_cpus" and "core_cpus_list", which are synonymous with the deprecated attributes. Check the new name first. If not available, use the deprecate

[PATCH v4 02/11] livepatch: Apply vmlinux-specific KLP relocations early

2020-04-29 Thread Josh Poimboeuf
can be applied very late, thus they can create the ordering headaches described above. But vmlinux-specific KLP relocations don't have that problem. There's nothing to prevent them from being applied earlier. So apply them at the same time as normal relocations, when the KLP module is being l

[PATCH RFC v2 1/8] perf/core: Apply PERF_EVENT_IOC_MODIFY_ATTRIBUTES to children

2021-03-10 Thread Marco Elver
As with other ioctls (such as PERF_EVENT_IOC_{ENABLE,DISABLE}), fix up handling of PERF_EVENT_IOC_MODIFY_ATTRIBUTES to also apply to children. Link: https://lkml.kernel.org/r/ybqvay8atmyto...@hirez.programming.kicks-ass.net Suggested-by: Dmitry Vyukov Reviewed-by: Dmitry Vyukov Signed-off-by

[PATCH V9 2/4] kbuild: Add generic rule to apply fdtoverlay

2021-03-03 Thread Viresh Kumar
From: Rob Herring Add a generic rule to apply fdtoverlay in Makefile.lib, so every platform doesn't need to carry the complex rule. The platform's Makefile only needs to have this now: DTC_FLAGS_foo_base += -@ foo-dtbs := foo_base.dtb foo_overlay1.dtbo foo_overlay2.dtbo dtb-y := f

[PATCH V9 4/4] of: unittest: Statically apply overlays using fdtoverlay

2021-03-03 Thread Viresh Kumar
+= -@ DTC_FLAGS_testcases += -@ # suppress warnings about intentional errors DTC_FLAGS_testcases += -Wno-interrupts_property + +# Apply overlays statically with fdtoverlay. This is a build time test that +# the overlays can be applied successfully by fdtoverlay. This does not +# guarantee that the overlays can be

[PATCH V11 5/5] of: unittest: Statically apply overlays using fdtoverlay

2021-03-09 Thread Viresh Kumar
--- a/drivers/of/unittest-data/Makefile +++ b/drivers/of/unittest-data/Makefile @@ -38,3 +38,51 @@ DTC_FLAGS_testcases += -@ # suppress warnings about intentional errors DTC_FLAGS_testcases += -Wno-interrupts_property + +# Apply overlays statically with fdtoverlay. This is a build time test that

[PATCH V11 2/5] kbuild: Add generic rule to apply fdtoverlay

2021-03-09 Thread Viresh Kumar
From: Rob Herring Add a generic rule to apply fdtoverlay in Makefile.lib, so every platform doesn't need to carry the complex rule. This also automatically adds "DTC_FLAGS_foo_base += -@" for all base files. The platform's Makefile only needs to have this now: foo-

Re: [PATCH] HID: multitouch: Apply MT_QUIRK_CONFIDENCE quirk for multi-input devices

2021-01-18 Thread Benjamin Tissoires
t_class from MT_CLS_WIN_8 to > MT_CLS_WIN_8_FORCE_MULTI_INPUT, so MT_QUIRK_CONFIDENCE isn't applied > anymore. > > So also apply the quirk since MT_CLS_WIN_8_FORCE_MULTI_INPUT is > essentially MT_CLS_WIN_8. > > Fixes: 40d5bb87377a ("HID: multitouch: enable multi-input as a quirk fo

Re: [PATCH] HID: multitouch: Apply MT_QUIRK_CONFIDENCE quirk for multi-input devices

2021-01-18 Thread Kai-Heng Feng
le multi-input as a quirk for > > some devices"). > > > > The commit changes the mt_class from MT_CLS_WIN_8 to > > MT_CLS_WIN_8_FORCE_MULTI_INPUT, so MT_QUIRK_CONFIDENCE isn't applied > > anymore. > > > > So also apply the quirk since MT_CLS_

[PATCH V7 6/6] of: unittest: Statically apply overlays using fdtoverlay

2021-01-28 Thread Viresh Kumar
+= -@ DTC_FLAGS_testcases += -@ # suppress warnings about intentional errors DTC_FLAGS_testcases += -Wno-interrupts_property + +# Apply overlays statically with fdtoverlay. This is a build time test that +# the overlays can be applied successfully by fdtoverlay. This does not +# guarantee that the overlays can be

RE: [PATCH v2 3/3] iommu/vt-d: Apply SATC policy

2021-02-03 Thread Tian, Kevin
> From: Lu Baolu > Sent: Wednesday, February 3, 2021 5:33 PM > > From: Yian Chen > > Starting from Intel VT-d v3.2, Intel platform BIOS can provide a new SATC > table structure. SATC table lists a set of SoC integrated devices that > require ATC to work (VT-d specification v3.2, section 8.8). Fu

Re: [PATCH v2 3/3] iommu/vt-d: Apply SATC policy

2021-02-03 Thread Lu Baolu
Hi Kevin, On 2/4/21 9:59 AM, Tian, Kevin wrote: From: Lu Baolu Sent: Wednesday, February 3, 2021 5:33 PM From: Yian Chen Starting from Intel VT-d v3.2, Intel platform BIOS can provide a new SATC table structure. SATC table lists a set of SoC integrated devices that require ATC to work (VT-d sp

[PATCH V5 5/5] of: unittest: Statically apply overlays using fdtoverlay

2021-01-19 Thread Viresh Kumar
-data/Makefile +++ b/drivers/of/unittest-data/Makefile @@ -38,3 +38,53 @@ DTC_FLAGS_testcases += -@ # suppress warnings about intentional errors DTC_FLAGS_testcases += -Wno-interrupts_property + +# Apply overlays statically with fdtoverlay. This is a build time test that +# the overlays can be

Re: [PATCH] HID: multitouch: Apply MT_QUIRK_CONFIDENCE quirk for multi-input devices

2021-01-20 Thread Kai-Heng Feng
jection stops working on some Elan and Synaptics touchpad after > > > commit 40d5bb87377a ("HID: multitouch: enable multi-input as a quirk for > > > some devices"). > > > > > > The commit changes the mt_class from MT_CLS_WIN_8 to > > > MT_CLS_

[PATCH V6 6/6] of: unittest: Statically apply overlays using fdtoverlay

2021-01-22 Thread Viresh Kumar
+= -@ DTC_FLAGS_overlay_bad_phandle += -@ DTC_FLAGS_overlay_bad_symbol += -@ DTC_FLAGS_overlay_base += -@ +DTC_FLAGS_static_base += -@ DTC_FLAGS_testcases += -@ # suppress warnings about intentional errors DTC_FLAGS_testcases += -Wno-interrupts_property + +# Apply overlays statically with fdtoverlay. This is a build

Re: [PATCH] HID: multitouch: Apply MT_QUIRK_CONFIDENCE quirk for multi-input devices

2021-01-26 Thread Benjamin Tissoires
t_class from MT_CLS_WIN_8 to > MT_CLS_WIN_8_FORCE_MULTI_INPUT, so MT_QUIRK_CONFIDENCE isn't applied > anymore. > > So also apply the quirk since MT_CLS_WIN_8_FORCE_MULTI_INPUT is > essentially MT_CLS_WIN_8. > > Fixes: 40d5bb87377a ("HID: multitouch: enable multi-input as a quirk for some

Re: [PATCH] Bluetooth: Apply QCA Rome patches for some ATH3012 models

2018-05-22 Thread Marcel Holtmann
k other existing chips > with the very same USB ID, hence it was reverted afterwards. > > This is another attempt to tackle the issue. The essential point to > use BTUSB_QCA_ROME is to apply the btusb_setup_qca() and do RAM- > patching. And the previous attempt failed because btusb

[PATCH] platform/x86: ideapad-laptop: Apply no_hw_rfkill to Y20-15IKBM, too

2018-06-22 Thread Takashi Iwai
The commit 5d9f40b56630 ("platform/x86: ideapad-laptop: Add Y520-15IKBN to no_hw_rfkill") added the entry for Y20-15IKBN, and it turned out that another variant, Y20-15IKBM, also requires the no_hw_rfkill. Trim the last letter from the string so that it matches to both Y20-15IKBN and Y20-15IKBM mo

[PATCH 4.14 184/246] memory: tegra: Apply interrupts mask per SoC

2018-08-01 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Dmitry Osipenko [ Upstream commit 1c74d5c0de0c2cc29fef97a19251da2ad6f579bd ] Currently we are enabling handling of interrupts specific to Tegra124+ which happen to overlap with previous genera

[PATCH 4.9 118/144] memory: tegra: Apply interrupts mask per SoC

2018-08-01 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Dmitry Osipenko [ Upstream commit 1c74d5c0de0c2cc29fef97a19251da2ad6f579bd ] Currently we are enabling handling of interrupts specific to Tegra124+ which happen to overlap with previous generat

[PATCH 4.17 250/336] memory: tegra: Apply interrupts mask per SoC

2018-08-01 Thread Greg Kroah-Hartman
4.17-stable review patch. If anyone has any objections, please let me know. -- From: Dmitry Osipenko [ Upstream commit 1c74d5c0de0c2cc29fef97a19251da2ad6f579bd ] Currently we are enabling handling of interrupts specific to Tegra124+ which happen to overlap with previous genera

[PATCH 4.4 082/124] memory: tegra: Apply interrupts mask per SoC

2018-08-04 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Dmitry Osipenko [ Upstream commit 1c74d5c0de0c2cc29fef97a19251da2ad6f579bd ] Currently we are enabling handling of interrupts specific to Tegra124+ which happen to overlap with previous generat

Re: [PATCH] libata: Apply NOLPM quirk for SAMSUNG MZMPC128HBFU-000MV SSD

2018-04-26 Thread Tejun Heo
On Tue, Apr 24, 2018 at 11:19:07AM +0200, Hans de Goede wrote: > Kevin Shanahan reports the following repeating errors when using LPM, > causing long delays accessing the disk: > > Apr 23 10:21:43 link kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr > 0x5 action 0x6 frozen > Apr 23 10:

Re: [PATCH] libata: Apply NOLPM quirk for SanDisk SD7UB3Q*G1001 SSDs

2018-04-26 Thread Tejun Heo
On Thu, Apr 26, 2018 at 10:32:21PM +0200, Hans de Goede wrote: > Richard Jones has reported that using med_power_with_dipm on a T450s > with a Sandisk SD7UB3Q256G1001 SSD (firmware version X2180501) is > causing the machine to hang. > > Switching the LPM to max_performance fixes this, so it seems

[PATCH] of: overlay: pr_err from return NOTIFY_OK to overlay apply/remove

2017-10-19 Thread frowand . list
From: Frank Rowand A device tree overlay notifier can return NOTIFY_OK, NOTIFY_STOP, or an embedded errno. overlay_notify() incorrectly reports an error for NOTIFY_OK. Reported-by: at...@kernel.org Signed-off-by: Frank Rowand --- drivers/of/overlay.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH] x86/AMD: Apply Erratum 688 fix when BIOS doesn't

2017-10-22 Thread Ingo Molnar
* Borislav Petkov wrote: > From: Borislav Petkov > > Some F14h machines have an erratum which, "under a highly specific > and detailed set of internal timing conditions" can lead to skipping > instructions and rIP corruption. Add the fix for those machines when >

Re: [PATCH] x86/AMD: Apply Erratum 688 fix when BIOS doesn't

2017-10-22 Thread Borislav Petkov
On Sun, Oct 22, 2017 at 01:04:38PM +0200, Ingo Molnar wrote: > Any objections to me adding a printk message that we applied a fix? > > pr_info("x86/cpu/AMD: CPU erratum 688 worked around\n"); > > or so? > > That would also create some pressure for customers to prod manufacturers to > prod

Re: [PATCH] x86/AMD: Apply Erratum 688 fix when BIOS doesn't

2017-10-22 Thread Ingo Molnar
* Borislav Petkov wrote: > On Sun, Oct 22, 2017 at 01:04:38PM +0200, Ingo Molnar wrote: > > Any objections to me adding a printk message that we applied a fix? > > > > pr_info("x86/cpu/AMD: CPU erratum 688 worked around\n"); > > > > or so? > > > > That would also create some pressure for

[PATCH 2/3] lockdep: Apply lock_acquire(release) on __Set(__Clear)PageLocked

2017-11-15 Thread Byungchul Park
Usually PG_locked bit is updated by lock_page() or unlock_page(). However, it can be also updated through __SetPageLocked() or __ClearPageLockded(). They have to be considered, to get paired between acquire and release. Furthermore, e.g. __SetPageLocked() in add_to_page_cache_lru() is called frequ

[tip:perf/core] perf record: Apply affinity masks when reading mmap buffers

2019-02-09 Thread tip-bot for Alexey Budankov
record: Apply affinity masks when reading mmap buffers Build node cpu masks for mmap data buffers. Apply node cpu masks to tool thread every time it references data buffers cross node or cross cpu. Signed-off-by: Alexey Budankov Reviewed-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andi Kleen Cc

[PATCH] net: macb: Apply RXUBR workaround only to versions with errata

2019-01-24 Thread Harini Katakam
The interrupt handler contains a workaround for RX hang applicable to Zynq and AT91 only. Subsequent versions do not need this workaround. This workaround unecessarily resets RX whenever RX used bit read is observed, which can be often under heavy traffic. Hence introduce an CAPS mask and a check t

[PATCH] regulator: core: Apply system load even if no consumer loads

2018-11-26 Thread Douglas Anderson
else if (rdev->constraints->system_load) { + /* +* We'll only apply the initial system load if an +* initial mode wasn't specified. +*/ + drms_uA_update(rdev); } /* If the constraints say the regulator should be on at this point -- 2.20.0.rc0.387.gc7a69e6b6c-goog

[PATCH 02/10] perf/x86/intel/cstate: Apply "domain" for cstate

2019-02-19 Thread kan . liang
From: Kan Liang There are duplicate codes implemented to support different scopes of counters. Apply the new concept, "domain", for cstate to reduce the redundancy. Add struct cstate_pmus to store the PMU related information. Each available type needs a dedicated cstate_pmus, which is

[PATCH 04/10] perf/x86/intel/rapl: Apply "domain" for RAPL

2019-02-19 Thread kan . liang
From: Kan Liang The RAPL counters are not package scope only anymore. For example, there will be die scope RAPL counters on CLX-AP. Apply "domain" for RAPL, and make it easy to be extended later. Each type of domain needs a dedicated rapl_pmus. The struct rapl_pmus is modified a

[PATCH 03/10] perf/x86/intel/uncore: Apply "domain" for uncore

2019-02-19 Thread kan . liang
From: Kan Liang The uncore counters are not package scope only anymore. For example, there will be die scope counters on CLX-AP. Apply "domain" for uncore, and make it easy to be extended later. Add domain_type in intel_uncore_type to indicate the domain type of uncore counters. The

[PATCH] of: overlay: update phandle cache on overlay apply and remove

2018-07-12 Thread frowand . list
From: Frank Rowand A comment in the review of the patch adding the phandle cache said that the cache would have to be updated when modules are applied and removed. This patch implements the cache updates. Fixes: 0b3ce78e90fc ("of: cache phandle nodes to reduce cost of of_find_node_by_phandle()"

Re: [PATCH v2] libata: Apply NOLPM quirk for SAMSUNG MZ7TD256HAFV-000L9

2018-10-26 Thread Hans de Goede
Hi, On 26-10-18 03:58, Diego Viola wrote: med_power_with_dipm causes my T450 to freeze with a SAMSUNG MZ7TD256HAFV-000L9 SSD (firmware DXT02L5Q). Switching the LPM to max_performance fixes this issue. Signed-off-by: Diego Viola Thank you for the patch, have you updated the firmware and conf

Re: [PATCH v2] libata: Apply NOLPM quirk for SAMSUNG MZ7TD256HAFV-000L9

2018-10-26 Thread Diego Viola
Hi Hans, On Fri, Oct 26, 2018 at 8:59 AM Hans de Goede wrote: > > Hi, > > On 26-10-18 03:58, Diego Viola wrote: > > med_power_with_dipm causes my T450 to freeze with a SAMSUNG > > MZ7TD256HAFV-000L9 SSD (firmware DXT02L5Q). > > > > Switching the LPM to max_performance fixes this issue. > > > > Si

Re: [PATCH v3] libata: Apply NOLPM quirk for SAMSUNG MZ7TD256HAFV-000L9

2018-10-26 Thread Hans de Goede
Hi, On 26-10-18 15:45, Diego Viola wrote: med_power_with_dipm causes my T450 to freeze with a SAMSUNG MZ7TD256HAFV-000L9 SSD (firmware DXT02L5Q). Switching the LPM to max_performance fixes this issue. Signed-off-by: Diego Viola Thanks, looks good to me: Acked-by: Hans de Goede Regards,

Re: [PATCH v3] libata: Apply NOLPM quirk for SAMSUNG MZ7TD256HAFV-000L9

2018-10-26 Thread Jens Axboe
On 10/26/18 7:45 AM, Diego Viola wrote: > med_power_with_dipm causes my T450 to freeze with a SAMSUNG > MZ7TD256HAFV-000L9 SSD (firmware DXT02L5Q). > > Switching the LPM to max_performance fixes this issue. Applied, thanks. -- Jens Axboe

Re: [PATCH v2] libata: Apply NOLPM quirk for SAMSUNG MZ7TD256HAFV-000L9

2018-10-26 Thread Diego Viola
On Fri, Oct 26, 2018 at 10:48 AM Diego Viola wrote: > > Hi Hans, > > On Fri, Oct 26, 2018 at 8:59 AM Hans de Goede wrote: > > > > Hi, > > > > On 26-10-18 03:58, Diego Viola wrote: > > > med_power_with_dipm causes my T450 to freeze with a SAMSUNG > > > MZ7TD256HAFV-000L9 SSD (firmware DXT02L5Q). >

Re: [PATCH v3] libata: Apply NOLPM quirk for SAMSUNG MZ7TD256HAFV-000L9

2018-10-26 Thread Diego Viola
On Fri, Oct 26, 2018 at 11:21 AM Jens Axboe wrote: > > On 10/26/18 7:45 AM, Diego Viola wrote: > > med_power_with_dipm causes my T450 to freeze with a SAMSUNG > > MZ7TD256HAFV-000L9 SSD (firmware DXT02L5Q). > > > > Switching the LPM to max_performance fixes this issue. > > Applied, thanks. > > --

Re: [PATCH v3] libata: Apply NOLPM quirk for SAMSUNG MZ7TD256HAFV-000L9

2018-10-27 Thread Diego Viola
On Fri, Oct 26, 2018 at 5:36 PM Diego Viola wrote: > > On Fri, Oct 26, 2018 at 11:21 AM Jens Axboe wrote: > > > > On 10/26/18 7:45 AM, Diego Viola wrote: > > > med_power_with_dipm causes my T450 to freeze with a SAMSUNG > > > MZ7TD256HAFV-000L9 SSD (firmware DXT02L5Q). > > > > > > Switching the L

Re: [PATCH v3] libata: Apply NOLPM quirk for SAMSUNG MZ7TD256HAFV-000L9

2018-10-28 Thread Hans de Goede
Hi, On 28-10-18 05:13, Diego Viola wrote: On Fri, Oct 26, 2018 at 5:36 PM Diego Viola wrote: On Fri, Oct 26, 2018 at 11:21 AM Jens Axboe wrote: On 10/26/18 7:45 AM, Diego Viola wrote: med_power_with_dipm causes my T450 to freeze with a SAMSUNG MZ7TD256HAFV-000L9 SSD (firmware DXT02L5Q).

Re: [PATCH v3] libata: Apply NOLPM quirk for SAMSUNG MZ7TD256HAFV-000L9

2018-10-28 Thread Diego Viola
Hi Hans, On Sun, Oct 28, 2018 at 7:48 AM Hans de Goede wrote: > > Hi, > > On 28-10-18 05:13, Diego Viola wrote: > > On Fri, Oct 26, 2018 at 5:36 PM Diego Viola wrote: > >> > >> On Fri, Oct 26, 2018 at 11:21 AM Jens Axboe wrote: > >>> > >>> On 10/26/18 7:45 AM, Diego Viola wrote: > med_powe

[PATCH 2/2] pwm: bcm-kona: apply pwm settings on enable

2018-11-07 Thread Clément Péron
From: Suji Velupillai When pwm_bl framework calls enable, a call to pwm_is_enabled(pwm) still return false, this prevents the backlight being turn on at boot time. Signed-off-by: Suji Velupillai Signed-off-by: Clément Péron --- drivers/pwm/pwm-bcm-kona.c | 16 +++- 1 file changed,

[PATCH 3.2 058/153] CDC-ACM: apply quirk for card reader

2018-05-30 Thread Ben Hutchings
3.2.102-rc1 review patch. If anyone has any objections, please let me know. -- From: Oliver Neukum commit df1cc78a52491f71d8170d513d0f6f114faa1bda upstream. This devices drops random bytes from messages if you talk to it too fast. Signed-off-by: Oliver Neukum Signed-off-by:

[PATCH 3.16 151/410] CDC-ACM: apply quirk for card reader

2018-06-07 Thread Ben Hutchings
3.16.57-rc1 review patch. If anyone has any objections, please let me know. -- From: Oliver Neukum commit df1cc78a52491f71d8170d513d0f6f114faa1bda upstream. This devices drops random bytes from messages if you talk to it too fast. Signed-off-by: Oliver Neukum Signed-off-by:

[PATCH 6/7] usb: gadget: apply generic altsetting support check mechanism

2015-07-27 Thread Robert Baldyga
Replace calls of gadget_supports_altsettings() function (which check altset support by comparing UDC controller name with hardcoded names) with gadget_is_altset_supported() which checks generic quirk bitfield. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/function/f_obex.c | 2 +- driver

[PATCH v4 8/8] DO NOT APPLY! goodix configuration update helper

2015-07-31 Thread Irina Tirdea
This patch is not meant to be applied. It can be used to test updates to the goodix touchscreen configuration. It provides a bash script to help generate a new configuration starting from the one read from the device. Below are instructions on how to test that the config is correctly updated for

[PATCH 2/2 V5] regmap: Apply optional delay in multi_reg_write/register_patch

2015-07-16 Thread Nariman Poushin
ge = win_page; + page_change = 1; + } + } + + /* If we have both a page change and a delay make sure to +* write the regs and apply the delay before we change the +* page. +*/ + +

[PATCH 4/6] rtc: rv8803: Always apply the I²C workaround

2016-07-21 Thread Benoît Thébaudeau
The I²C NACK issue of the RV-8803 may occur after any I²C START condition, depending on the timings. Consequently, the workaround must be applied for all the I²C transfers. This commit abstracts the I²C transfer code into register access functions. This avoids duplicating the I²C workaround everyw

[PATCH v3] tpm: Apply a sane minimum adapterlimit value for retransmission.

2017-03-28 Thread Enric Balletbo i Serra
From: Bryan Freed When the I2C Infineon part is attached to an I2C adapter that imposes a size limitation, large requests will fail with -EOPNOTSUPP. Retry them with a sane minimum size without re-issuing the 0x05 command as this appears to occasionally put the TPM in a bad state. Signed-off-by:

[PATCH 1/3] docs/driver-api: Apply changed source file names

2016-11-08 Thread SeongJae Park
Few files under dma-buf/ changed their names but the changes didn't applied to a document that referencing them. It is causing few documentation build warnings. This commit fixes the problems by applying changed file names on the document. Signed-off-by: SeongJae Park --- Documentation/driver-

Re: [PATCH] fs: exec: apply CLOEXEC before changing dumpable task flags

2016-12-20 Thread Oleg Nesterov
On 12/20, Aleksa Sarai wrote: > > @@ -1287,6 +1287,13 @@ void setup_new_exec(struct linux_binprm * bprm) > /* This is the point of no return */ > current->sas_ss_sp = current->sas_ss_size = 0; > > + /* > + * We have to apply CLOEXEC before we ch

Re: [PATCH] fs: exec: apply CLOEXEC before changing dumpable task flags

2016-12-20 Thread Aleksa Sarai
@@ -1287,6 +1287,13 @@ void setup_new_exec(struct linux_binprm * bprm) /* This is the point of no return */ current->sas_ss_sp = current->sas_ss_size = 0; + /* +* We have to apply CLOEXEC before we change whether the process is +* dumpable to avoid

[PATCH v2] fs: exec: apply CLOEXEC before changing dumpable task flags

2016-12-20 Thread Aleksa Sarai
p * trying until we recognize the file or we run out of supported binary - * formats. + * formats. */ #include @@ -1266,6 +1266,13 @@ int flush_old_exec(struct linux_binprm * bprm) flush_thread(); current->personality &= ~bprm->per_clear; + /* +

[PATCH 3.14 20/21] libceph: apply new_state before new_up_client on incrementals

2016-08-08 Thread Greg Kroah-Hartman
sector 9330688 The fix is to decouple application from the decoding and: - apply new_weight first - apply new_state before new_up_client - twiddle osd_state flags if marking in - clear out some of the state if osd is destroyed Fixes: http://tracker.ceph.com/issues/14901 Signed-off-by: Ilya Dry

[PATCH 4.6 90/96] libceph: apply new_state before new_up_client on incrementals

2016-08-08 Thread Greg Kroah-Hartman
sector 9330688 The fix is to decouple application from the decoding and: - apply new_weight first - apply new_state before new_up_client - twiddle osd_state flags if marking in - clear out some of the state if osd is destroyed Fixes: http://tracker.ceph.com/issues/14901 Signed-off-by: Ilya Dry

[PATCH 4.4 64/68] libceph: apply new_state before new_up_client on incrementals

2016-08-08 Thread Greg Kroah-Hartman
sector 9330688 The fix is to decouple application from the decoding and: - apply new_weight first - apply new_state before new_up_client - twiddle osd_state flags if marking in - clear out some of the state if osd is destroyed Fixes: http://tracker.ceph.com/issues/14901 Signed-off-by: Ilya Dry

[tip:x86/urgent] x86/quirks: Apply nvidia_bugs quirk only on root bus

2016-07-10 Thread tip-bot for Lukas Wunner
Commit-ID: 447d29d1d3aed839e74c2401ef63387780ac51ed Gitweb: http://git.kernel.org/tip/447d29d1d3aed839e74c2401ef63387780ac51ed Author: Lukas Wunner AuthorDate: Sun, 12 Jun 2016 12:31:53 +0200 Committer: Ingo Molnar CommitDate: Sun, 10 Jul 2016 20:13:53 +0200 x86/quirks: Apply

[PATCH 3.16 103/346] libceph: apply new_state before new_up_client on incrementals

2016-11-13 Thread Ben Hutchings
sector 9330688 The fix is to decouple application from the decoding and: - apply new_weight first - apply new_state before new_up_client - twiddle osd_state flags if marking in - clear out some of the state if osd is destroyed Fixes: http://tracker.ceph.com/issues/14901 Signed-off-by: Ilya Dry

Re: [PATCH 8/8] cris-cryptocop: Apply another recommendation from "checkpatch.pl"

2016-08-27 Thread Julia Lawall
On Fri, 26 Aug 2016, SF Markus Elfring wrote: > From: Markus Elfring > Date: Fri, 26 Aug 2016 14:23:06 +0200 > > The script "checkpatch.pl" can point out that assignments should usually > not be performed within condition checks. > Thus move the assignments for a local variable to separate stat

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