Re: 回复: [PATCH v5] workqueue: Remove unnecessary kfree() call in rcu_free_wq()

2020-05-28 Thread Lai Jiangshan
On Thu, May 28, 2020 at 8:27 PM Dan Carpenter wrote: > > On Thu, May 28, 2020 at 08:08:06PM +0800, Lai Jiangshan wrote: > > On Thu, May 28, 2020 at 5:57 PM Dan Carpenter > > wrote: > > > > > > Guys, the patch is wrong. The kfree is harmless when this is called > > > from destroy_workqueue() and

Re: [PATCH 10/15] drm/panfrost: add regulators to devfreq

2020-05-28 Thread Steven Price
On 10/05/2020 17:55, Clément Péron wrote: Some OPP tables specify voltage for each frequency. Devfreq can handle these regulators but they should be get only 1 time to avoid issue and know who is in charge. If OPP table is probe don't init regulator. Signed-off-by: Clément Péron This looks l

Re: [PATCH 1/2] sched/uclamp: Add a new sysctl to control RT default boost value

2020-05-28 Thread Peter Zijlstra
On Mon, May 11, 2020 at 04:40:52PM +0100, Qais Yousef wrote: > +/* > + * By default RT tasks run at the maximum performance point/capacity of the > + * system. Uclamp enforces this by always setting UCLAMP_MIN of RT tasks to > + * SCHED_CAPACITY_SCALE. > + * > + * This knob allows admins to change

Re: [PATCH v1] regulator: Add support for sync_state() callbacks

2020-05-28 Thread Mark Brown
On Wed, May 27, 2020 at 07:16:26PM -0700, Saravana Kannan wrote: > On Wed, May 27, 2020 at 1:34 PM Mark Brown wrote: > > On Wed, May 27, 2020 at 10:17:21AM -0700, Saravana Kannan wrote: > > > If fw_devlink is off or not supported by the firmware (Eg: ACPI), the > > No, it doesn't help at all wit

[PATCH net-next] dt-bindings: net: rename the bindings document for MediaTek STAR MAC

2020-05-28 Thread Bartosz Golaszewski
From: Bartosz Golaszewski The driver itself was renamed before getting merged into mainline, but the binding document kept the old name. This makes both names consistent. Signed-off-by: Bartosz Golaszewski --- .../net/{mediatek,eth-mac.yaml => mediatek,star-emac.yaml}| 0 1 file change

[PATCH] dt-bindings: irqchip: renesas-rza1-irqc: Convert to json-schema

2020-05-28 Thread Geert Uytterhoeven
Convert the Renesas RZ/A1 Interrupt Controller Device Tree binding documentation to json-schema. Signed-off-by: Geert Uytterhoeven --- Validation depends on "[PATCH dt-schema] Fix interrupt controllers with interrupt-map". http://lore.kernel.org/r/20200528132323.30288-1-geert+rene...@glider.be --

Re: [PATCH V2 3/3] perf/x86/intel/uncore: Validate MMIO address before accessing

2020-05-28 Thread Andi Kleen
On Thu, May 28, 2020 at 06:15:27AM -0700, kan.li...@linux.intel.com wrote: > From: Kan Liang > > An oops will be triggered, if perf tries to access an invalid address > which exceeds the mapped area. > > Check the address before the actual access to MMIO sapce of an uncore > unit. Ah ok the ran

Re: [PATCH 1/2] regmap: provide helpers for simple bit operations

2020-05-28 Thread Mark Brown
On Thu, May 28, 2020 at 02:34:58PM +0200, Bartosz Golaszewski wrote: > This adds three new macros for simple bit operations: set_bits, > clear_bits and test_bits. Why macros and not static inlines? signature.asc Description: PGP signature

Re: [PATCH V2 2/3] perf/x86/intel/uncore: Record the size of mapped area

2020-05-28 Thread Andi Kleen
On Thu, May 28, 2020 at 06:15:26AM -0700, kan.li...@linux.intel.com wrote: > - box->io_addr = ioremap(addr, SNB_UNCORE_PCI_IMC_MAP_SIZE); > + if (!type->mmio_map_size) { > + pr_warn("perf uncore: Cannot ioremap for %s. Size of map area > is 0.\n", > + type->

[PATCH] dt-bindings: timer: renesas: mtu2: Convert to json-schema

2020-05-28 Thread Geert Uytterhoeven
Convert the Renesas Multi-Function Timer Pulse Unit 2 (MTU2) Device Tree binding documentation to json-schema. Add missing properties. Update the example to match reality. Signed-off-by: Geert Uytterhoeven --- .../bindings/timer/renesas,mtu2.txt | 42 -- .../bindings/timer/ren

Re: [PATCH][next] IB/hfi1: fix spelling mistake "enought" -> "enough"

2020-05-28 Thread Dennis Dalessandro
On 5/28/2020 7:07 AM, Colin King wrote: From: Colin Ian King There is a spelling mistake in an error message. Fix it. Signed-off-by: Colin Ian King --- drivers/infiniband/hw/hfi1/chip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/hfi1/chip.c b

Re: [PATCH v2] powerpc/wii: Fix declaration made after definition

2020-05-28 Thread Michael Ellerman
Nathan Chancellor writes: > A 0day randconfig uncovered an error with clang, trimmed for brevity: > > arch/powerpc/platforms/embedded6xx/wii.c:195:7: error: attribute > declaration must precede definition [-Werror,-Wignored-attributes] > if (!machine_is(wii)) > ^ > > The macro

Re: [PATCH 1/2] regmap: provide helpers for simple bit operations

2020-05-28 Thread Bartosz Golaszewski
czw., 28 maj 2020 o 15:29 Mark Brown napisał(a): > > On Thu, May 28, 2020 at 02:34:58PM +0200, Bartosz Golaszewski wrote: > > > This adds three new macros for simple bit operations: set_bits, > > clear_bits and test_bits. > > Why macros and not static inlines? The existing regmap_update_bits_*()

RE: [PATCH V2 3/3] perf/x86/intel/uncore: Validate MMIO address before accessing

2020-05-28 Thread David Laight
From: kan.li...@linux.intel.com > Sent: 28 May 2020 14:15 ... > +static inline bool is_valid_mmio_offset(struct intel_uncore_box *box, > + unsigned long offset) You need a better name, needs to start 'uncore_' and 'mmio' probably isn't right either. > +{ > +

Re: WARNING: suspicious RCU usage in idtentry_exit

2020-05-28 Thread Thomas Gleixner
syzbot writes: + Paolo, Paul > syzbot found the following crash on: > > HEAD commit:7b4cb0a4 Add linux-next specific files for 20200525 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=1335601610 > kernel config: https://syzkaller.appspot.com/x/.c

RE: [PATCH 5/8] riscv: Implement sv48 support

2020-05-28 Thread Anup Patel
> -Original Message- > From: linux-kernel-ow...@vger.kernel.org ow...@vger.kernel.org> On Behalf Of Alex Ghiti > Sent: 26 May 2020 22:00 > To: Anup Patel > Cc: Paul Walmsley ; Palmer Dabbelt > ; Zong Li ; Christoph Hellwig > ; linux-riscv ; linux- > ker...@vger.kernel.org List > Subjec

Re: [PATCH 8/8] blk-mq: drain I/O when all CPUs in a hctx are offline

2020-05-28 Thread Bart Van Assche
On 2020-05-27 22:19, Ming Lei wrote: > On Wed, May 27, 2020 at 08:33:48PM -0700, Bart Van Assche wrote: >> My understanding is that operations that have acquire semantics pair >> with operations that have release semantics. I haven't been able to find >> any documentation that shows that smp_mb__af

Re: [PATCH v4 3/4] dmaengine: mediatek-cqdma: fix compatible

2020-05-28 Thread Matthias Brugger
On 28/05/2020 11:57, EastL wrote: > This patch fixes mediatek-cqdma compatible to common. > > Signed-off-by: EastL > --- > drivers/dma/mediatek/mtk-cqdma.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/dma/mediatek/mtk-cqdma.c > b/drivers/dma/mediatek/mtk-

Re: [PATCH v3 4/6] bus: Add Baikal-T1 AXI-bus driver

2020-05-28 Thread Serge Semin
On Thu, May 28, 2020 at 01:00:57AM +0300, Andy Shevchenko wrote: > On Tuesday, May 26, 2020, Serge Semin > wrote: > > > AXI3-bus is the main communication bus connecting all high-speed > > peripheral IP-cores with RAM controller and MIPS P5600 cores on Baikal-T1 > > SoC. Bus traffic arbitration i

RE: [PATCH v2 1/3] scsi: ufs: remove max_t in ufs_get_device_desc

2020-05-28 Thread Avri Altman
> > From: Bean Huo > > For the UFS device, the maximum descriptor size is 255, max_t called in > ufs_get_device_desc() is useless. > > Signed-off-by: Bean Huo Acked-by: Avri Altman > --- > drivers/scsi/ufs/ufshcd.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git

Re: [PATCH v5 2/2] gpio: add a reusable generic gpio_chip using regmap

2020-05-28 Thread Andy Shevchenko
On Thu, May 28, 2020 at 4:00 PM Michael Walle wrote: > Am 2020-05-28 13:45, schrieb Andy Shevchenko: > > On Thu, May 28, 2020 at 7:04 AM Michael Walle wrote: > > More comments from me below. > > Thanks for the review. You are welcome! Thanks for doing this actually. (So, the not commented poin

[tip: x86/entry] xen: Move xen_setup_callback_vector() definition to include/xen/hvm.h

2020-05-28 Thread tip-bot2 for Vitaly Kuznetsov
The following commit has been merged into the x86/entry branch of tip: Commit-ID: 28447ea4154239025044381144f849ff749ee9ef Gitweb: https://git.kernel.org/tip/28447ea4154239025044381144f849ff749ee9ef Author:Vitaly Kuznetsov AuthorDate:Wed, 20 May 2020 18:16:00 +02:00 Commit

Re: [RFC 02/17] dma-fence: basic lockdep annotations

2020-05-28 Thread Intel
On 2020-05-12 10:59, Daniel Vetter wrote: Design is similar to the lockdep annotations for workers, but with some twists: - We use a read-lock for the execution/worker/completion side, so that this explicit annotation can be more liberally sprinkled around. With read locks lockdep isn't go

Re: [PATCH] regulator: do not balance regulators without constraints

2020-05-28 Thread Mark Brown
On Thu, May 28, 2020 at 03:11:30PM +0200, Marek Szyprowski wrote: > Balancing coupled regulators must wait until the clients for all of the > coupled regualtors set their constraints, otherwise the balancing code > might change the voltage of the not-yet-constrained regulator to the > value below

Re: linux-next: build warnings after merge of the fsinfo tree

2020-05-28 Thread Christoph Hellwig
On Thu, May 28, 2020 at 08:11:04PM +1000, Stephen Rothwell wrote: > Hi all, > > This should have been the block tree, not the fsinfo tree, of course. Fix sent to Jens and the linux-block list, thanks for the report.

Re: [PATCH V2 2/3] perf/x86/intel/uncore: Record the size of mapped area

2020-05-28 Thread Liang, Kan
On 5/28/2020 9:29 AM, Andi Kleen wrote: On Thu, May 28, 2020 at 06:15:26AM -0700, kan.li...@linux.intel.com wrote: - box->io_addr = ioremap(addr, SNB_UNCORE_PCI_IMC_MAP_SIZE); + if (!type->mmio_map_size) { + pr_warn("perf uncore: Cannot ioremap for %s. Size of map ar

RE: UBSAN: array-index-out-of-bounds in drivers/scsi/hpsa.c:4421:7

2020-05-28 Thread Don.Brace
Working on this. Can you send your configuration? ssacli controller all show config detail -Original Message- From: linux-scsi-ow...@vger.kernel.org [mailto:linux-scsi-ow...@vger.kernel.org] On Behalf Of Qian Cai Sent: Tuesday, May 26, 2020 10:19 AM To: Don Brace Cc: Martin K. Petersen ;

Re: [PATCH] ARM: omap2: drop broken broadcast timer hack

2020-05-28 Thread Tony Lindgren
* Arnd Bergmann [200528 09:20]: > The OMAP4 timer code had a special hack for using the broadcast timer > without SMP. Since the dmtimer is now gone, this also needs to be dropped > to avoid a link failure for non-SMP AM43xx configurations: > > kernel/time/tick-broadcast.o: in function `tick_devi

Re: [PATCH V2 3/3] perf/x86/intel/uncore: Validate MMIO address before accessing

2020-05-28 Thread Liang, Kan
On 5/28/2020 9:30 AM, Andi Kleen wrote: On Thu, May 28, 2020 at 06:15:27AM -0700, kan.li...@linux.intel.com wrote: From: Kan Liang An oops will be triggered, if perf tries to access an invalid address which exceeds the mapped area. Check the address before the actual access to MMIO sapce o

Re: [PATCH v2 1/3] scsi: ufs: remove max_t in ufs_get_device_desc

2020-05-28 Thread Bean Huo
On Thu, 2020-05-28 at 13:41 +, Avri Altman wrote: > > +++ b/drivers/scsi/ufs/ufshcd.c > > @@ -6881,8 +6881,7 @@ static int ufs_get_device_desc(struct ufs_hba > > *hba) > > u8 *desc_buf; > > struct ufs_dev_info *dev_info = &hba->dev_info; > > > > - buff_len = max_t(size_

RE: [PATCH v2 2/3] scsi: ufs: delete ufshcd_read_desc()

2020-05-28 Thread Avri Altman
> > From: Bean Huo > > Delete ufshcd_read_desc(). Instead, let caller directly call > ufshcd_read_desc_param(). > > Signed-off-by: Bean Huo Reviewed-by: Avri Altman

Re: [PATCH 1/2] regmap: provide helpers for simple bit operations

2020-05-28 Thread Mark Brown
On Thu, May 28, 2020 at 03:32:40PM +0200, Bartosz Golaszewski wrote: > czw., 28 maj 2020 o 15:29 Mark Brown napisał(a): > > Why macros and not static inlines? > The existing regmap_update_bits_*() helpers are macros too, so I tried > to stay consistent. Any reason why they are macros and not sta

Re: [PATCH V2 3/3] perf/x86/intel/uncore: Validate MMIO address before accessing

2020-05-28 Thread Liang, Kan
On 5/28/2020 9:33 AM, David Laight wrote: From: kan.li...@linux.intel.com Sent: 28 May 2020 14:15 ... +static inline bool is_valid_mmio_offset(struct intel_uncore_box *box, + unsigned long offset) You need a better name, needs to start 'uncore_' and '

Re: [PATCH 2/3] kasan: move kasan_report() into report.c

2020-05-28 Thread Qian Cai
On Tue, May 12, 2020 at 05:33:20PM +0200, 'Andrey Konovalov' via kasan-dev wrote: > The kasan_report() functions belongs to report.c, as it's a common > functions that does error reporting. > > Reported-by: Leon Romanovsky > Signed-off-by: Andrey Konovalov Today's linux-next produced this with

Re: [PATCH] ARM: omap2: drop broken broadcast timer hack

2020-05-28 Thread Tony Lindgren
* Tony Lindgren [200528 13:47]: > * Arnd Bergmann [200528 09:20]: > > The OMAP4 timer code had a special hack for using the broadcast timer > > without SMP. Since the dmtimer is now gone, this also needs to be dropped > > to avoid a link failure for non-SMP AM43xx configurations: > > > > kernel/

[PATCH net-next 08/12] net: hns3; remove unused HNAE3_RESTORE_CLIENT in enum hnae3_reset_notify_type

2020-05-28 Thread Huazhong Tan
Remove HNAE3_RESTORE_CLIENT which is not needed now. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hnae3.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hnae3.h b/drivers/net/ethernet/hisilicon/hns3/hnae3.h index 7506cab..0a4aac4 10

[PATCH net-next 00/12] net: hns3: misc updates for -next

2020-05-28 Thread Huazhong Tan
This patchset includes some updates for the HNS3 ethernet driver. #1 removes an unnecessary 'goto'. #2 adds a missing mutex destroy. #3&4 refactor two function, make them more readable and maintainable. #5&6 fix unsuitable type of gro enable field both for PF & VF. #7-#11 removes some unused field

Re: [rcu:dev.2020.05.26a 56/72] refperf.c:undefined reference to `__umoddi3'

2020-05-28 Thread Paul E. McKenney
On Thu, May 28, 2020 at 09:04:38AM +0200, Geert Uytterhoeven wrote: > On Thu, May 28, 2020 at 5:26 AM kbuild test robot wrote: > > tree: > > https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git > > dev.2020.05.26a > > head: 63fdce1252f16032c9e1eb7244bb674ba4f84855 > > commit

[PATCH net-next 09/12] net: hns3: remove unused struct hnae3_unic_private_info

2020-05-28 Thread Huazhong Tan
Since field .uinfo in struct hnae3_handle never be used, so remove it and its structure definition. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hnae3.h | 11 --- 1 file changed, 11 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hnae3.h b/drivers/n

[PATCH net-next 05/12] net: hns3: modify an incorrect type in struct hclge_cfg_gro_status_cmd

2020-05-28 Thread Huazhong Tan
Modify field .gro_en in struct hclge_cfg_gro_status_cmd to u8 according to the UM, otherwise, it will overwrite the reserved byte which may be used for other purpose. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 4 ++-- drivers/net/ethernet/hisilicon/

[PATCH net-next 11/12] net: hns3: remove some unused fields in struct hclge_dev

2020-05-28 Thread Huazhong Tan
Remove some fields in struct hclge_dev which have not been used. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h b/drivers/net/ethernet/hisili

[PATCH net-next 02/12] net: hns3: add a missing mutex destroy in hclge_init_ad_dev()

2020-05-28 Thread Huazhong Tan
Add a mutex destroy call in hclge_init_ae_dev() when fails. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/h

[PATCH net-next 04/12] net: hns3: refactor hclge_query_bd_num_cmd_send()

2020-05-28 Thread Huazhong Tan
In order to improve code maintainability and readability, rewrite the process of BDs' initialization in hclge_query_bd_num_cmd_send(). Signed-off-by: Huazhong Tan --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 21 - 1 file changed, 12 insertions(+), 9 deletions(-)

Re: [PATCH v3 4/6] bus: Add Baikal-T1 AXI-bus driver

2020-05-28 Thread Andy Shevchenko
On Thu, May 28, 2020 at 4:40 PM Serge Semin wrote: > > On Thu, May 28, 2020 at 01:00:57AM +0300, Andy Shevchenko wrote: > > On Tuesday, May 26, 2020, Serge Semin > > wrote: > > > > > AXI3-bus is the main communication bus connecting all high-speed > > > peripheral IP-cores with RAM controller and

[PATCH net-next 12/12] net: hns3: print out speed info when parsing speed fails

2020-05-28 Thread Huazhong Tan
When calling hclge_parse_speed() fails, printing out the speed is helpful for debugging. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_

[PATCH net-next 03/12] net: hns3: refactor hclge_config_tso()

2020-05-28 Thread Huazhong Tan
Since parameters 'tso_mss_min' and 'tso_mss_max' only indicate the minimum and maximum MSS, the hnae3_set_field() calls are meaningless, remove them and change the type of these two parameters to u16. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 17 ++

[PATCH net-next 07/12] net: hns3: remove some unused fields in struct hns3_nic_priv

2020-05-28 Thread Huazhong Tan
Remove some fileds which defined in struct hns3_nic_priv, but not used, and remove the related definition of struct hns3_udp_tunnel and enum hns3_udp_tnl_type. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | 22 -- 1 file changed, 22 deletion

Re: [PATCH net-next] dt-bindings: net: rename the bindings document for MediaTek STAR MAC

2020-05-28 Thread Bartosz Golaszewski
czw., 28 maj 2020 o 15:27 Bartosz Golaszewski napisał(a): > > From: Bartosz Golaszewski > > The driver itself was renamed before getting merged into mainline, but > the binding document kept the old name. This makes both names consistent. > > Signed-off-by: Bartosz Golaszewski > --- > .../net/{

[PATCH net-next 10/12] net: hns3: remove two duplicated register macros in hclgevf_main.h

2020-05-28 Thread Huazhong Tan
HCLGEVF_CMDQ_INTR_SRC_REG and HCLGEVF_CMDQ_INTR_STS_REG are same as HCLGEVF_VECTOR0_CMDQ_SRC_REG and HCLGEVF_VECTOR0_CMDQ_STAT_REG, replace the former with the latter, and rename macro HCLGEVF_VECTOR0_CMDQ_STAT_REG since 'stat' is not abbreviation of 'state'. Signed-off-by: Huazhong Tan --- driv

[PATCH net-next 01/12] net: hns3: remove an unnecessary 'goto' in hclge_init_ae_dev()

2020-05-28 Thread Huazhong Tan
Remove the redundant 'goto' and return -ENOMEM directly, when allocating memory for 'hdev' fails in hclge_init_ae_dev(). Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/e

[PATCH net-next 06/12] net: hns3: modify an incorrect type in struct hclgevf_cfg_gro_status_cmd

2020-05-28 Thread Huazhong Tan
Modify field .gro_en in struct hclgevf_cfg_gro_status_cmd to u8 according to the UM, otherwise, it will overwrite the reserved byte which may be used for other purpose. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.h | 4 ++-- drivers/net/ethernet/hisili

Re: [PATCH v10 3/4] dt-bindings: power: Add the bindings for the bq2515x family of chargers.

2020-05-28 Thread Rob Herring
On Wed, 27 May 2020 18:17:42 -0500, Ricardo Rivera-Matos wrote: > The BQ2515X family of devices are highly integrated battery management > ICs that integrate the most common functions for wearable devices > namely a charger, an output voltage rail, ADC for battery and system > monitoring, and a pus

Re: [PATCH v2 1/3] scsi: ufshcd: Update the set frequency to devfreq

2020-05-28 Thread Jeffrey Hugo
On Tue, May 26, 2020 at 11:17 AM Asutosh Das (asd) wrote: > > Hi Jeffrey > On 5/25/2020 3:19 PM, Jeffrey Hugo wrote: > > On Wed, Mar 25, 2020 at 12:29 PM Asutosh Das > > wrote: > >> > >> Currently, the frequency that devfreq provides the > >> driver to set always leads the clocks to be scaled up

[PATCH v6 0/4] Charge loop device i/o to issuing cgroup

2020-05-28 Thread Dan Schatzberg
Much of the discussion about this has died down. There's been a concern raised that we could generalize infrastructure across loop, md, etc. This may be possible, in the future, but it isn't clear to me how this would look like. I'm inclined to fix the existing issue with loop devices now (this is

[PATCH 3/4] mm: Charge active memcg when no mm is set

2020-05-28 Thread Dan Schatzberg
memalloc_use_memcg() worked for kernel allocations but was silently ignored for user pages. This patch establishes a precedence order for who gets charged: 1. If there is a memcg associated with the page already, that memcg is charged. This happens during swapin. 2. If an explicit mm is passe

[PATCH] sched/headers: Fix sched_setattr userspace compilation breakage

2020-05-28 Thread Joel Fernandes (Google)
On a modern Linux distro, compiling the following program fails: #include #include #include #include void main() { struct sched_attr sa; return; } with: /usr/include/linux/sched/types.h:8:8: \ error: redefinition of ‘struct sched_param’ 8 | str

[PATCH 1/4] loop: Use worker per cgroup instead of kworker

2020-05-28 Thread Dan Schatzberg
Existing uses of loop device may have multiple cgroups reading/writing to the same device. Simply charging resources for I/O to the backing file could result in priority inversion where one cgroup gets synchronously blocked, holding up all other I/O to the loop device. In order to avoid this prior

[PATCH 2/4] mm: support nesting memalloc_use_memcg()

2020-05-28 Thread Dan Schatzberg
From: Johannes Weiner The memalloc_use_memcg() function to override the default memcg accounting context currently doesn't nest. But the patches to make the loop driver cgroup-aware will end up nesting: [ 98.137605] alloc_page_buffers+0x210/0x288 [ 98.141799] __getblk_gfp+0x1d4/0x400 [ 9

[PATCH 4/4] loop: Charge i/o to mem and blk cg

2020-05-28 Thread Dan Schatzberg
The current code only associates with the existing blkcg when aio is used to access the backing file. This patch covers all types of i/o to the backing file and also associates the memcg so if the backing file is on tmpfs, memory is charged appropriately. This patch also exports cgroup_get_e_css s

Re: [PATCH v3 4/6] bus: Add Baikal-T1 AXI-bus driver

2020-05-28 Thread Serge Semin
On Thu, May 28, 2020 at 04:51:03PM +0300, Andy Shevchenko wrote: > On Thu, May 28, 2020 at 4:40 PM Serge Semin > wrote: > > > > On Thu, May 28, 2020 at 01:00:57AM +0300, Andy Shevchenko wrote: > > > On Tuesday, May 26, 2020, Serge Semin > > > wrote: > > > > > > > AXI3-bus is the main communicatio

Re: [PATCH 2/2] kobject: send KOBJ_REMOVE uevent when the object is removed from sysfs

2020-05-28 Thread Guenter Roeck
On 5/28/20 3:57 AM, Rafael J. Wysocki wrote: > On Thu, May 28, 2020 at 12:25 AM Guenter Roeck wrote: >> >> On Wed, May 27, 2020 at 11:01:16AM +0200, Rafael J. Wysocki wrote: >>> >>> So Guenter, can you please test the patch below to see if it still >>> introduces >>> the problems seen by you on A

Re: [PATCH net] net: mvpp2: Enable autoneg bypass for 1000BaseX/2500BaseX ports

2020-05-28 Thread Russell King - ARM Linux admin
On Thu, May 28, 2020 at 03:17:33PM +0200, Thomas Bogendoerfer wrote: > On Thu, 28 May 2020 14:07:38 +0100 > Russell King - ARM Linux admin wrote: > > > On Thu, May 28, 2020 at 02:11:21PM +0200, Thomas Bogendoerfer wrote: > > > Commit d14e078f23cc ("net: marvell: mvpp2: only reprogram what is > >

Re: [PATCH 1/2] regmap: provide helpers for simple bit operations

2020-05-28 Thread Bartosz Golaszewski
czw., 28 maj 2020 o 15:48 Mark Brown napisał(a): > > On Thu, May 28, 2020 at 03:32:40PM +0200, Bartosz Golaszewski wrote: > > czw., 28 maj 2020 o 15:29 Mark Brown napisał(a): > > > > Why macros and not static inlines? > > > The existing regmap_update_bits_*() helpers are macros too, so I tried >

Re: TSC problems with Acer TravelMate 5735Z

2020-05-28 Thread Peter Zijlstra
On Thu, May 28, 2020 at 02:06:17PM +0200, Thomas Gleixner wrote: > Peter Zijlstra writes: > > On Sun, May 24, 2020 at 07:09:18PM +0200, Paul Menzel wrote: > >> Dear Linux folks, > >> > >> > >> I got my hands on an old Acer TravelMate 5735Z (Intel GM45/Cantiga) and > >> installed Debian Sid/unsta

Re: [PATCH 1/2] regmap: provide helpers for simple bit operations

2020-05-28 Thread Mark Brown
On Thu, May 28, 2020 at 03:57:24PM +0200, Bartosz Golaszewski wrote: > Ok. So I'm seeing there are a lot of macros in regmap.h that could > become static inlines but given the amount of regmap users: how about > we do it separately and in the meantime I'll just modify this series > to use static i

[PATCH net-next v2] dt-bindings: net: rename the bindings document for MediaTek STAR EMAC

2020-05-28 Thread Bartosz Golaszewski
From: Bartosz Golaszewski The driver itself was renamed before getting merged into mainline, but the binding document kept the old name. This makes both names consistent. Signed-off-by: Bartosz Golaszewski --- v1 -> v2: - update the id field as well .../net/{mediatek,eth-mac.yaml => mediatek,

Re: [PATCH V2 3/3] perf/x86/intel/uncore: Validate MMIO address before accessing

2020-05-28 Thread Andi Kleen
> > > + > > > + pr_warn_once("perf uncore: Access invalid address of %s.\n", > > > + box->pmu->type->name); > > > > Pretty hard to debug without the invalid offset. > > > > I will dump the box->io_addr and offset for debugging. Please don't overengineer. -Andi

高卒求人票の様式変更について

2020-05-28 Thread ジョブドラフトセミナー運営室
ジョブドラフトセミナー運営室より 高校新卒採用の最前線をお伝えするセミナーのご案内です。 〜オンライン開催のためご自宅や職場で視聴可能です〜 高卒採用において重要な軸となる「求人票」ですが 2021年卒採用から新しく変更となります。 しかし新型コロナウイルスの影響により、一部地域ではハローワーク主催の 求人票説明会が中止となり混乱をきたしています。 そこで「高卒採用の情報共有」をすべく、 求人票作成についてのオンライン無料講座を開催いたします。 これまで2000社を超える企業の求人票を添削してきた経験をもとに、 基本的な作成方法はもちろん”採用成果に繋がる”ポイントをお伝えいたしま

Re: [EXTERNAL] Re: [PATCH v10 3/4] dt-bindings: power: Add the bindings for the bq2515x family of chargers.

2020-05-28 Thread Rivera-Matos, Ricardo
> On May 28, 2020, at 08:53, Rob Herring wrote: > > On Wed, 27 May 2020 18:17:42 -0500, Ricardo Rivera-Matos wrote: >> The BQ2515X family of devices are highly integrated battery management >> ICs that integrate the most common functions for wearable devices >> namely a charger, an output volt

Re: 回复: [PATCH v5] workqueue: Remove unnecessary kfree() call in rcu_free_wq()

2020-05-28 Thread Tejun Heo
Hello, On Thu, May 28, 2020 at 09:27:03PM +0800, Lai Jiangshan wrote: > wq owns the ultimate or permanent references to itself by > owning references to wq->numa_pwq_tbl[node], wq->dfl_pwq. > The pwq's references keep the pwq in wq->pwqs. Yeah, regardless of who puts a wq the last time, the base

Re: [PATCH 2/2] kobject: send KOBJ_REMOVE uevent when the object is removed from sysfs

2020-05-28 Thread Rafael J. Wysocki
On Thu, May 28, 2020 at 3:56 PM Guenter Roeck wrote: > > On 5/28/20 3:57 AM, Rafael J. Wysocki wrote: > > On Thu, May 28, 2020 at 12:25 AM Guenter Roeck wrote: > >> > >> On Wed, May 27, 2020 at 11:01:16AM +0200, Rafael J. Wysocki wrote: > >>> > >>> So Guenter, can you please test the patch below

[tip: irq/core] genirq: Check irq_data_get_irq_chip() return value before use

2020-05-28 Thread tip-bot2 for Marek Vasut
The following commit has been merged into the irq/core branch of tip: Commit-ID: 1d0326f352bb094771df17f045bdbadff89a43e6 Gitweb: https://git.kernel.org/tip/1d0326f352bb094771df17f045bdbadff89a43e6 Author:Marek Vasut AuthorDate:Thu, 14 May 2020 02:25:55 +02:00 Committer:

Re: [PATCH] Revert "powerpc/32s: reorder Linux PTE bits to better match Hash PTE bits."

2020-05-28 Thread Michael Ellerman
On Wed, 20 May 2020 10:23:45 + (UTC), Christophe Leroy wrote: > This reverts commit 697ece78f8f749aeea40f2711389901f0974017a. > > The implementation of SWAP on powerpc requires page protection > bits to not be one of the least significant PTE bits. > > Until the SWAP implementation is changed

Re: [PATCH 1/2] dt-bindings: sound: tlv320adcx140: Add GPI config property

2020-05-28 Thread Rob Herring
On Tue, May 26, 2020 at 03:09:16PM -0500, Dan Murphy wrote: > Add an array property that configures the General Purpose Input (GPI) > register. The device has 4 GPI pins and each pin can be configured in 1 > of 7 different ways. Dan seems to have trouble running get_maintainers.pl and Cc'ing the

Re: [RFC][PATCH 1/3] objtool: Rename rela to reloc

2020-05-28 Thread Josh Poimboeuf
On Wed, May 27, 2020 at 09:42:31AM -0700, Matt Helsley wrote: > Before supporting additional relocation types rename the relevant > types and functions from "rela" to "reloc". This work can largely > be done with the following regex: > > Notable exceptions include gelf_* library calls and > standa

Re: [PATCH v9 1/2] dt-bindings: mtd: Add Nand Flash Controller support for Intel LGM SoC

2020-05-28 Thread Rob Herring
On Thu, 28 May 2020 13:12:10 +0800, Ramuthevar,Vadivel MuruganX wrote: > From: Ramuthevar Vadivel Murugan > > Add YAML file for dt-bindings to support NAND Flash Controller > on Intel's Lightning Mountain SoC. > > Signed-off-by: Ramuthevar Vadivel Murugan > > --- > .../devicetree/bindings/mtd

[PATCH v11 0/4] Add JEITA properties and introduce the bq2515x charger

2020-05-28 Thread Ricardo Rivera-Matos
Hello, This patchset adds additional health properties to the power_supply header. These additional properties are taken from the JEITA specification. This patchset also introduces the bq2515x family of charging ICs. Dan Murphy (2): power_supply: Add additional health properties to the header

Re: [PATCH v2 cgroup/for-5.8] cgroup: add cpu.stat file to root cgroup

2020-05-28 Thread Tejun Heo
On Wed, May 27, 2020 at 02:43:19PM -0700, Boris Burkov wrote: > Currently, the root cgroup does not have a cpu.stat file. Add one which > is consistent with /proc/stat to capture global cpu statistics that > might not fall under cgroup accounting. > > We haven't done this in the past because the d

[PATCH v11 4/4] power: supply: bq25150 introduce the bq25150

2020-05-28 Thread Ricardo Rivera-Matos
Introduce the bq2515x family of chargers. The BQ2515X family of devices are highly integrated battery management ICs that integrate the most common functions for wearable devices namely a charger, an output voltage rail, ADC for battery and system monitoring, and a push-button controller. Datashe

[PATCH v11 3/4] dt-bindings: power: Add the bindings for the bq2515x family of chargers.

2020-05-28 Thread Ricardo Rivera-Matos
The BQ2515X family of devices are highly integrated battery management ICs that integrate the most common functions for wearable devices namely a charger, an output voltage rail, ADC for battery and system monitoring, and a push-button controller. Datasheets: http://www.ti.com/lit/ds/symlink/bq251

[PATCH v11 2/4] dt-bindings: power: Convert battery.txt to battery.yaml

2020-05-28 Thread Ricardo Rivera-Matos
From: Dan Murphy Convert the battery.txt file to yaml and fix up the examples. Signed-off-by: Dan Murphy --- .../bindings/power/supply/battery.txt | 82 +- .../bindings/power/supply/battery.yaml| 143 ++ 2 files changed, 144 insertions(+), 81 deletions(

[PATCH v11 1/4] power_supply: Add additional health properties to the header

2020-05-28 Thread Ricardo Rivera-Matos
From: Dan Murphy Add HEALTH_WARM, HEALTH_COOL and HEALTH_HOT to the health enum. HEALTH_WARM, HEALTH_COOL, and HEALTH_HOT properties are taken from the JEITA spec. Tested-by: Guru Das Srinagesh Signed-off-by: Dan Murphy --- Documentation/ABI/testing/sysfs-class-power | 2 +- drivers/power/s

Re: 回复: [PATCH v5] workqueue: Remove unnecessary kfree() call in rcu_free_wq()

2020-05-28 Thread Dan Carpenter
On Thu, May 28, 2020 at 09:27:03PM +0800, Lai Jiangshan wrote: > On Thu, May 28, 2020 at 8:27 PM Dan Carpenter > wrote: > > > > On Thu, May 28, 2020 at 08:08:06PM +0800, Lai Jiangshan wrote: > > > On Thu, May 28, 2020 at 5:57 PM Dan Carpenter > > > wrote: > > > > > > > > Guys, the patch is wron

Re: [PATCH V2 3/3] perf/x86/intel/uncore: Validate MMIO address before accessing

2020-05-28 Thread Liang, Kan
On 5/28/2020 10:02 AM, Andi Kleen wrote: + + pr_warn_once("perf uncore: Access invalid address of %s.\n", +box->pmu->type->name); Pretty hard to debug without the invalid offset. I will dump the box->io_addr and offset for debugging. Please don't overengineer.

Re: [RFC][PATCH 2/3] objtool: Find relocation base section using sh_info

2020-05-28 Thread Josh Poimboeuf
On Wed, May 27, 2020 at 09:42:32AM -0700, Matt Helsley wrote: > Currently objtool uses a naming heuristic to find the "base" > section to apply the relocation(s) to. The standard defines > the SHF_INFO_LINK flag (SHF => in the section header flags) > which indicates when the section header's sh_inf

Re: [PATCH v4 4/4] dmaengine: mediatek-cqdma: add dma mask for capability

2020-05-28 Thread Matthias Brugger
On 28/05/2020 11:57, EastL wrote: > This patch add dma mask for capability. > > Change-Id: I31f4622f9541d769702029532e5f5f185815dda2 No Change-Id in the commit message please. > Signed-off-by: EastL > --- > drivers/dma/mediatek/mtk-cqdma.c | 13 + > 1 file changed, 13 insertions

Re: [PATCH] x86: drop deprecated DISCONTIGMEM support for 32-bit

2020-05-28 Thread Dave Hansen
On 2/23/20 1:43 AM, Mike Rapoport wrote: > From: Mike Rapoport > > The DISCONTIGMEM support was marked as deprecated in v5.2 and since there > were no complaints about it for almost 5 releases it can be completely > removed. > > Signed-off-by: Mike Rapoport Looks good. I'm fairly sure most of

Re: [PATCH] twist: allow converting pr_devel()/pr_debug() into printk(KERN_DEBUG)

2020-05-28 Thread Tetsuo Handa
On 2020/05/28 21:14, Petr Mladek wrote: >> how to handle >> #define no_printk(fmt, ...) \ ({ \ if (0) \ printk(fmt, ##__VA_AR

Re: [PATCH v6 0/5] Micron SLC NAND filling block

2020-05-28 Thread Bean Huo
hi, Richard On Mon, 2020-05-25 at 14:18 +0200, Bean Huo wrote: > After submission of patch V1 [1] and V2 [2], we stopped its update > since we get > stuck in the solution on how to avoid the power-loss issue in case > power-cut > hits the block filling. In the v1 and v2, to avoid this issue, we >

Re: linux-next: manual merge of the usb tree with the devicetree tree

2020-05-28 Thread Rob Herring
On Thu, May 28, 2020 at 4:49 AM Greg KH wrote: > > On Thu, May 28, 2020 at 04:22:15PM +1000, Stephen Rothwell wrote: > > Hi all, > > > > Today's linux-next merge of the usb tree got a conflict in: > > > > Documentation/devicetree/bindings/usb/qcom,dwc3.yaml > > > > between commit: > > > > 3828

Re: [V6 PATCH 1/2] dt-bindings: Added device tree binding for max98390

2020-05-28 Thread Rob Herring
On Thu, 28 May 2020 19:37:55 +0900, Steve Lee wrote: > Add DT binding of max98390 amplifier driver. > > Signed-off-by: Steve Lee > --- > Changed since V5: > * Change txt to yaml and fix up the examples. > Changed since V4: > * No changes. > Changed since V3: > * No changes. > Ch

[PATCH] hwmon:(adm1275) Enable adm1278 ADM1278_TEMP1_EN

2020-05-28 Thread Manikandan Elumalai
The adm1278 temperature sysfs attribute need it for one of the our openbmc platform . This functionality is not enabled by default, so PMON_CONFIG needs to be modified in order to enable it. --- drivers/hwmon/pmbus/adm1275.c | 15 +++ 1 file changed, 15 insertions(+) diff --git

Re: [PATCH 1/2] seccomp: notify user trap about unused filter

2020-05-28 Thread Christian Brauner
On Wed, May 27, 2020 at 06:59:54PM -0700, Kees Cook wrote: > On Thu, May 28, 2020 at 01:16:46AM +0200, Christian Brauner wrote: > > I'm also starting to think this isn't even possible or currently doable > > safely. > > The fdtable in the kernel would end up with a dangling pointer, I would > > thi

Re: [PATCH v11 1/4] power_supply: Add additional health properties to the header

2020-05-28 Thread Andrew F. Davis
On 5/28/20 10:05 AM, Ricardo Rivera-Matos wrote: > From: Dan Murphy > > Add HEALTH_WARM, HEALTH_COOL and HEALTH_HOT to the health enum. > > HEALTH_WARM, HEALTH_COOL, and HEALTH_HOT properties are taken from the JEITA > spec. Wouldn't hurt to list the specific version of the spec these are fro

[PATCH v2 1/6] x86/entry: Clarify irq_{enter,exit}_rcu()

2020-05-28 Thread Peter Zijlstra
Because: irq_enter_rcu() includes lockdep_hardirq_enter() irq_exit_rcu() does *NOT* include lockdep_hardirq_exit() Which resulted in two 'stray' lockdep_hardirq_exit() calls in idtentry.h, and me spending a long time trying to find the matching enter calls. Signed-off-by: Peter Zijlstra (Int

[PATCH v2 5/6] lockdep: Prepare for NMI IRQ state tracking

2020-05-28 Thread Peter Zijlstra
There is no reason not to always, accurately, track IRQ state. This change also makes IRQ state tracking ignore lockdep_off(). Signed-off-by: Peter Zijlstra (Intel) --- kernel/locking/lockdep.c | 33 ++--- 1 file changed, 30 insertions(+), 3 deletions(-) --- a/ker

[PATCH v2 3/6] lockdep: Change hardirq{s_enabled,_context} to per-cpu variables

2020-05-28 Thread Peter Zijlstra
Currently all IRQ-tracking state is in task_struct, this means that task_struct needs to be defined before we use it. Especially for lockdep_assert_irq*() this can lead to header-hell. Move the hardirq state into per-cpu variables to avoid the task_struct dependency. Signed-off-by: Peter Zijlstr

[PATCH v2 0/6] x86/entry,lockdep: Improve IRQ state tracking

2020-05-28 Thread Peter Zijlstra
Ahmed and Sebastian wanted additional lockdep_assert*() macros and ran into header hell. Move the IRQ state into per-cpu variables, which removes the dependency on task_struct, which is what generated the header-hell. And fix IRQ state tracking to not be affected by lockdep_off() (it really shoul

[PATCH v2 4/6] lockdep: Remove lockdep_hardirq{s_enabled,_context}() argument

2020-05-28 Thread Peter Zijlstra
Now that the macros use per-cpu data, we no longer need the argument. Signed-off-by: Peter Zijlstra (Intel) --- include/linux/irqflags.h |8 include/linux/lockdep.h|2 +- kernel/locking/lockdep.c | 30 +++--- kernel/softirq.c

Re: [V6 PATCH 1/2] dt-bindings: Added device tree binding for max98390

2020-05-28 Thread Rob Herring
On Thu, May 28, 2020 at 07:37:55PM +0900, Steve Lee wrote: > Add DT binding of max98390 amplifier driver. > > Signed-off-by: Steve Lee > --- > Changed since V5: > * Change txt to yaml and fix up the examples. > Changed since V4: > * No changes. > Changed since V3: > * No changes

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