Re: [RFC v2] perf/core: Fixes hung issue on perf stat command during cpu hotplug

2020-08-26 Thread Srikar Dronamraju
* Kajol Jain [2020-08-26 20:24:11]: > Commit 2ed6edd33a21 ("perf: Add cond_resched() to task_function_call()") > added assignment of ret value as -EAGAIN in case function > call to 'smp_call_function_single' fails. > For non-zero ret value, it did > 'ret = !ret ? data.ret : -EAGAIN;', which

BUG: stack guard page was hit in __zone_watermark_ok

2020-08-26 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:85eb5bc3 net: atheros: switch from 'pci_' to 'dma_' API git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=14e3213990 kernel config: https://syzkaller.appspot.com/x/.config?x=a0437fdd630bee11

aarch64-linux-ld: sound/soc/fsl/fsl_asrc_dma.c:211: undefined reference to `dma_request_slave_channel'

2020-08-26 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 15bc20c6af4ceee97a1f90b43c0e386643c071b4 commit: 41206a073ceebc517245677a19f52ba6379b33a9 Merge v5.8-rc6 into drm-next date: 5 weeks ago config: arm64-randconfig-r013-20200826 (attached as .config

[PATCH 1/2] hwmon: (k10temp) Create common functions and macros for Zen CPU families

2020-08-26 Thread Wei Huang
Many SMN thermal registers in Zen CPU families are common across different generations. For long-term code maintenance, it is better to rename these macro and function names to Zen. Signed-off-by: Wei Huang --- drivers/hwmon/k10temp.c | 56 + 1 file

[PATCH 2/2] hwmon: (k10temp) Define SVI telemetry and current factors for Zen2 CPUs

2020-08-26 Thread Wei Huang
The voltage telemetry registers for Zen2 are different from Zen1. Also the factors of CPU current values are changed on Zen2. Add new definitions for these register. Signed-off-by: Wei Huang --- drivers/hwmon/k10temp.c | 20 1 file changed, 12 insertions(+), 8 deletions(-)

RE: [PATCH v2 1/1] iommu/vt-d: Serialize IOMMU GCMD register modifications

2020-08-26 Thread Tian, Kevin
> From: Lu Baolu > Sent: Thursday, August 27, 2020 12:25 PM > > The VT-d spec requires (10.4.4 Global Command Register, GCMD_REG > General > Description) that: > > If multiple control fields in this register need to be modified, software > must serialize the modifications through multiple

Re: [PATCH] perf stat: update POWER9 metrics to utilize other metrics

2020-08-26 Thread Ian Rogers
On Wed, Aug 26, 2020 at 7:06 PM Paul A. Clarke wrote: > > On Wed, Aug 26, 2020 at 09:26:40AM -0700, Ian Rogers wrote: > > On Fri, Aug 14, 2020 at 5:43 AM Arnaldo Carvalho de Melo > > wrote: > > > Em Fri, Aug 14, 2020 at 11:20:42AM +0530, kajoljain escreveu: > > > > On 8/14/20 9:13 AM, Ian Rogers

Re: [RESEND PATCH v4] iommu/mediatek: check 4GB mode by reading infracfg

2020-08-26 Thread Yong Wu
On Wed, 2020-08-26 at 16:56 +0800, Miles Chen wrote: > In previous discussion [1] and [2], we found that it is risky to > use max_pfn or totalram_pages to tell if 4GB mode is enabled. > > Check 4GB mode by reading infracfg register, remove the usage > of the un-exported symbol max_pfn. > > This

[PATCH] drm/dp: For MST hub, Get max_link_rate_lane from extended rx capability field if EXTENDED_RECEIVER_CAPABILITY_FILED_PRESENT is set.

2020-08-26 Thread Koba Ko
Currently, DRM get the capability of the mst hub only from DP_DPCD_REV and get the slower speed even the mst hub can run in the faster speed. As per DP-1.3, First check DP_EXTENDED_RECEIVER_CAP_FIELD_PRESENT. If DP_EXTENDED_RECEIVER_CAP_FIELD_PRESENT is 1, read the DP_DP13_DPCD_REV to get the

[PATCH 2/2] cpufreq: Do WARN() for invalid relation

2020-08-26 Thread Viresh Kumar
The relation can't be invalid here, if it is just WARN() and return 0. Signed-off-by: Viresh Kumar --- include/linux/cpufreq.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 8f141d4c859c..a911e5d06845 100644 ---

[PATCH 1/2] cpufreq: No need to verify cpufreq_driver in show_scaling_cur_freq()

2020-08-26 Thread Viresh Kumar
"cpufreq_driver" is guaranteed to be valid here, no need to check it here. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 02ab56b2a0d8..47aa90f9a7c2

Re: [PATCH v2 2/2] extcon: ptn5150: Set the VBUS and POLARITY property state

2020-08-26 Thread Chanwoo Choi
Hi, On 8/27/20 2:17 PM, Ramuthevar, Vadivel MuruganX wrote: > Hi, > > On 27/8/2020 12:51 pm, Chanwoo Choi wrote: >> Hi, >> >> You better to change the 'state' word to 'capability'. >> Actually, this patch doesn't change the value of property. >> It set the capability value of property. >> >>

Re: [PATCH v2 1/2] extcon: ptn5150: Switch to GENMASK() and BIT() macros

2020-08-26 Thread Ramuthevar, Vadivel MuruganX
Hi, On 27/8/2020 1:26 pm, Chanwoo Choi wrote: - + vendor_id = FIELD_GET(PTN5150_REG_DEVICE_ID_VENDOR, reg_data); + version_id = FIELD_GET(PTN5150_REG_DEVICE_ID_VERSION, reg_data); dev_dbg(info->dev, "Device type: version: 0x%x, vendor: 0x%x\n", version_id,

Re: Lockdep warning caused by "driver core: Fix sleeping in invalid context during device link deletion"

2020-08-26 Thread Saravana Kannan
On Thu, Aug 20, 2020 at 8:50 PM Dong Aisheng wrote: > > Hi ALL, > > We met the below WARNING during system suspend on an iMX6Q SDB board > with the latest linus/master branch (v5.9-rc1+) and next-20200820. > v5.8 kernel is ok. So i did bisect and finally found it's caused by > the patch below. >

Re: [PATCH v2 2/2] extcon: ptn5150: Set the VBUS and POLARITY property state

2020-08-26 Thread Ramuthevar, Vadivel MuruganX
Hi, On 27/8/2020 12:51 pm, Chanwoo Choi wrote: Hi, You better to change the 'state' word to 'capability'. Actually, this patch doesn't change the value of property. It set the capability value of property. "Set the VBUS and POLARITY property capability" Thank you for the review comments,

Re: [PATCH v2 1/2] extcon: ptn5150: Switch to GENMASK() and BIT() macros

2020-08-26 Thread Chanwoo Choi
On 8/27/20 12:56 PM, Ramuthevar,Vadivel MuruganX wrote: > From: Ramuthevar Vadivel Murugan > > Switch to GENMASK() and BIT() macros. > > Signed-off-by: Ramuthevar Vadivel Murugan > > Reviewed-by: Krzysztof Kozlowski > --- > drivers/extcon/extcon-ptn5150.c | 43 >

Re: [PATCH] thermal: sysfs: fall back to vzalloc for cooling device's statistics

2020-08-26 Thread Viresh Kumar
On 27-08-20, 12:03, Yue Hu wrote: > Hi Daniel, > > Now, i'm just focus on removing the kernel warning based on current code > logic. > Commit 8ea229511e06 (thermal: Add cooling device's statistics in sysfs) added > the thermal statistics by viresh and viresh gived the patch an acknowledgement >

linux-next: Tree for Aug 27

2020-08-26 Thread Stephen Rothwell
Hi all, News: There will be no linux-next releases next Monday or Tuesday. Changes since 20200826: The net-next tree gained a conflict against the net tree. Non-merge commits (relative to Linus' tree): 2901 3429 files changed, 100496 insertions(+), 37081 deletions

Re: [PATCH 1/2] power: supply: Add support for RN5T618/RC5T619 charger and fuel gauge

2020-08-26 Thread Andreas Kemnade
Hi, On Wed, 26 Aug 2020 23:59:50 +0200 Sebastian Reichel wrote: > Hi, > > On Wed, Aug 26, 2020 at 08:28:34PM +0200, Andreas Kemnade wrote: > > On Wed, 26 Aug 2020 19:48:17 +0200 > > Sebastian Reichel wrote: > > > On Sat, Aug 15, 2020 at 06:56:09PM +0200, Andreas Kemnade wrote: > > > >

[PATCH v2] debugobjects: install cpu hotplug callback

2020-08-26 Thread qiang.zhang
From: Zqiang Due to cpu hotplug, it may never be online after it's offline, some objects in percpu pool is never free, in order to avoid this happening, install cpu hotplug callback, call this callback func to free objects in percpu pool when cpu going offline. Signed-off-by: Zqiang ---

Re: [PATCH] i2c: do not acpi/of match device in i2c_device_probe()

2020-08-26 Thread Sergey Senozhatsky
On (20/08/26 18:16), Andy Shevchenko wrote: > On Wed, Aug 26, 2020 at 11:49:20PM +0900, Sergey Senozhatsky wrote: > > i2c, apparently, can match the same device twice - the first > > time in ->match bus hook (i2c_device_match()), and the second > > one in ->probe (i2c_device_probe()) bus hook. > >

Re: [PATCH] drm/i915/lspcon: Limits to 8 bpc for RGB/YCbCr444

2020-08-26 Thread Kai Heng Feng
Hi Ville, > On Aug 27, 2020, at 12:24 AM, Ville Syrjälä > wrote: > > On Wed, Aug 26, 2020 at 01:21:15PM +0800, Kai-Heng Feng wrote: >> LSPCON only supports 8 bpc for RGB/YCbCr444. >> >> Set the correct bpp otherwise it renders blank screen. > > Hmm. Does >

Re: [PATCH v2 3/3] usb typec: mt6360: Prevent the race condition during module remove

2020-08-26 Thread 啟原黃
Guenter Roeck 於 2020年8月27日 週四 上午11:34寫道: > > On 8/26/20 8:25 PM, cy_huang wrote: > > From: ChiYuan Huang > > > > Prevent the race condition from interrupt and tcpci port unregister > > during module remove. > > > > Signed-off-by: ChiYuan Huang > > Please squash with the first patch of the

[PATCH v2 1/2] usb typec: mt6360: Add support for mt6360 Type-C driver

2020-08-26 Thread cy_huang
From: ChiYuan Huang Mediatek MT6360 is a multi-functional IC that includes USB Type-C. It works with Type-C Port Controller Manager to provide USB PD and USB Type-C functionalities. Add fix to Prevent the race condition from interrupt and tcpci port unregister during module remove.

Re: [PATCH 1/3] dt-bindings: dmaengine: Document qcom,gpi dma binding

2020-08-26 Thread Vinod Koul
On 26-08-20, 08:35, Rob Herring wrote: > On Wed, Aug 26, 2020 at 12:32 AM Vinod Koul wrote: > > > > On 25-08-20, 20:21, Vinod Koul wrote: > > > Hey Rob, > > > > > > On 24-08-20, 11:40, Rob Herring wrote: > > > > On Mon, 24 Aug 2020 14:17:10 +0530, Vinod Koul wrote: > > > > > Add devicetree

linux-next: build failure after upgrading sphinx

2020-08-26 Thread Stephen Rothwell
Hi all, Today I upgraded ot sphinx v3.2.1 and got the following error from "make htmldocs": Running Sphinx v3.2.1 enabling CJK for LaTeX builder Extension error: Could not import extension cdomain (exception: cannot import name 'c_funcptr_sig_re' from 'sphinx.domains.c'

[PATCH v2 2/2] usb typec: mt6360: Add MT6360 Type-C DT binding documentation

2020-08-26 Thread cy_huang
From: ChiYuan Huang Add a devicetree binding documentation for the MT6360 Type-C driver. Signed-off-by: ChiYuan Huang --- .../bindings/usb/mediatek,mt6360-tcpc.yaml | 73 ++ 1 file changed, 73 insertions(+) create mode 100644

RE: [EXT] Re: [PATCH v2] mwifiex: don't call del_timer_sync() on uninitialized timer

2020-08-26 Thread Ganapathi Bhat
Hi Tetsuo, > > "grep -FrB1 'del_timer' drivers/ | grep -FA1 '.function)'" says that > > currently there are 28 locations which call del_timer[_sync]() only if > > that timer's function field was initialized (because timer_setup() > > sets that timer's function field). Therefore, let's use same

[tip:ras/core] BUILD SUCCESS 1e36d9c6886849c6f3d3c836370563e6bc1a6ddd

2020-08-26 Thread kernel test robot
allyesconfig mips allmodconfig powerpc defconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a002-20200826 i386

Re: [PATCH v36 22/24] selftests/x86: Add a selftest for SGX

2020-08-26 Thread Nathaniel McCallum
On Thu, Jul 16, 2020 at 9:58 AM Jarkko Sakkinen wrote: > > Add a selftest for SGX. It is a trivial test where a simple enclave > copies one 64-bit word of memory between two memory locations. > > Cc: linux-kselft...@vger.kernel.org > Signed-off-by: Jarkko Sakkinen > --- >

Re: [PATCH 1/4] dt-bindings: arm: ti: Add bindings for J7200 SoC

2020-08-26 Thread Lokesh Vutla
Hi Nishanth, On 27/08/20 5:53 am, Nishanth Menon wrote: > On 14:16-20200723, Lokesh Vutla wrote: >> The J7200 SoC is a part of the K3 Multicore SoC architecture platform. >> It is targeted for automotive gateway, vehicle compute systems, >> Vehicle-to-Vehicle (V2V) and Vehicle-to-Everything (V2X)

Re: [PATCH v2 2/2] extcon: ptn5150: Set the VBUS and POLARITY property state

2020-08-26 Thread Chanwoo Choi
Hi, You better to change the 'state' word to 'capability'. Actually, this patch doesn't change the value of property. It set the capability value of property. "Set the VBUS and POLARITY property capability" On 8/27/20 12:56 PM, Ramuthevar,Vadivel MuruganX wrote: > From: Ramuthevar Vadivel

Re: [PATCH] drm/ingenic: Fix driver not probing when IPU port is missing

2020-08-26 Thread Sam Ravnborg
Hi Paul. On Wed, Aug 26, 2020 at 11:58:41PM +0200, Paul Cercueil wrote: > Even if support for the IPU was compiled in, we may run on a device > (e.g. the Qi LB60) where the IPU is not available, or simply with an old > devicetree without the IPU node. In that case the ingenic-drm refused to >

Re: [PATCH 3/3] drm/vc4: hdmi: Add pixel bvb clock control

2020-08-26 Thread Hoegeun Kwon
Hi Stefan, Thank you for your review. On 8/26/20 7:04 PM, Stefan Wahren wrote: > Hi Hoeguen, > > Am 21.08.20 um 09:10 schrieb Hoegeun Kwon: >> There is a problem that the output does not work at a resolution >> exceeding FHD. To solve this, we need to adjust the bvb clock at a >> resolution

Re: [PATCH 1/1] iommu/vt-d: Serialize IOMMU GCMD register modifications

2020-08-26 Thread Lu Baolu
Hi Kevin, On 8/26/20 1:29 PM, Tian, Kevin wrote: From: Lu Baolu Sent: Wednesday, August 26, 2020 10:58 AM The VT-d spec requires (10.4.4 Global Command Register, GCMD_REG General Description) that: If multiple control fields in this register need to be modified, software must serialize the

[PATCH v2 1/1] iommu/vt-d: Serialize IOMMU GCMD register modifications

2020-08-26 Thread Lu Baolu
The VT-d spec requires (10.4.4 Global Command Register, GCMD_REG General Description) that: If multiple control fields in this register need to be modified, software must serialize the modifications through multiple writes to this register. However, in irq_remapping.c, modifications of IRE and

Re: [PATCH v2 1/2] drm/amdkfd: Move the ignore_crat check before the CRAT table get

2020-08-26 Thread Felix Kuehling
Am 2020-08-26 um 4:29 a.m. schrieb Hanjun Guo: > If the ignore_crat is set to non-zero value, it's no point getting > the CRAT table, so just move the ignore_crat check before we get the > CRAT table. > > Signed-off-by: Hanjun Guo > --- > drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 10 +- >

[tip:x86/urgent] BUILD SUCCESS d4f07268d035721dd055ceb0de98ace6ac5f858b

2020-08-26 Thread kernel test robot
-20200826 i386 randconfig-a004-20200826 i386 randconfig-a003-20200826 i386 randconfig-a005-20200826 i386 randconfig-a006-20200826 i386 randconfig-a001-20200826 x86_64 randconfig-a015-20200826 x86_64

Re: [PATCH v2 1/2] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

2020-08-26 Thread Viresh Kumar
On 26-08-20, 20:57, Hector Yuan wrote: > On Mon, 2020-08-24 at 15:36 +0530, Viresh Kumar wrote: > > On 13-08-20, 15:07, Hector Yuan wrote: > > > CONFIG_ARM_ALLWINNER_SUN50I_CPUFREQ_NVMEM=m > > > CONFIG_ARM_ARMADA_37XX_CPUFREQ=y > > > +CONFIG_ARM_MEDIATEK_CPUFREQ_HW=m > > > > What about a

[PATCH v2] drm/vkms: avoid warning in vkms_get_vblank_timestamp

2020-08-26 Thread Sidong Yang
This patch avoid the warning in vkms_get_vblank_timestamp when vblanks aren't enabled. When running igt test kms_cursor_crc just after vkms module, the warning raised like below. Initial value of vblank time is zero and hrtimer.node.expires is also zero if vblank aren't enabled before. vkms module

[tip:x86/cache] BUILD SUCCESS 29b6bd41ee24f69a85666b9f68d500b382d408fd

2020-08-26 Thread kernel test robot
allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a002-20200826 i386 randconfig-a004-20200826 i386 randconfig-a003-20200826 i386 randconfig-a005-20200826 i386

lib/crypto/chacha.c:65:1: warning: the frame size of 1604 bytes is larger than 1024 bytes

2020-08-26 Thread kernel test robot
Hi Ard, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 15bc20c6af4ceee97a1f90b43c0e386643c071b4 commit: 5fb8ef25803ef33e2eb60b626435828b937bed75 crypto: chacha - move existing library code into lib/crypto date:

[PATCH v3] x86/hotplug: Silence APIC only after all irq's are migrated

2020-08-26 Thread Ashok Raj
There is a race when taking a CPU offline. Current code looks like this: native_cpu_disable() { ... apic_soft_disable(); /* * Any existing set bits for pending interrupt to * this CPU are preserved and will be sent via IPI * to another CPU by

Re: [PATCH] thermal: sysfs: fall back to vzalloc for cooling device's statistics

2020-08-26 Thread Yue Hu
On Wed, 26 Aug 2020 11:19:02 +0200 Daniel Lezcano wrote: > Hi Yue, > > On 26/08/2020 04:13, Yue Hu wrote: > > On Mon, 24 Aug 2020 12:40:35 +0200 > > Daniel Lezcano wrote: > > > >> On 18/08/2020 08:30, Yue Hu wrote: > >>> From: Yue Hu > >>> > >>> We observed warning about kzalloc() when

Re: [PATCH] m68k: Correct some typos in comments

2020-08-26 Thread Finn Thain
On Wed, 26 Aug 2020, Geert Uytterhoeven wrote: > > @@ -2654,7 +2654,7 @@ func_startmmu_get_page_table_entry,%d0/%a1 > > jne 2f > > > > /* If the page table entry doesn't exist, we allocate a complete new > > -* page and use it as one continues big page table

Re: [bio] 37abbdc72e: WARNING:at_block/bio.c:#bio_release_pages

2020-08-26 Thread John Hubbard
On 8/26/20 8:25 PM, kernel test robot wrote: ... kern :warn : [ 59.757746] [ cut here ] kern :warn : [ 59.758325] WARNING: CPU: 3 PID: 2581 at block/bio.c:955 bio_release_pages+0xd7/0xe0 kern :warn : [ 59.758952] Modules linked in: dm_mod netconsole btrfs

[PATCH v2 2/2] extcon: ptn5150: Set the VBUS and POLARITY property state

2020-08-26 Thread Ramuthevar,Vadivel MuruganX
From: Ramuthevar Vadivel Murugan Set the VBUS and POLARITY property state. Signed-off-by: Ramuthevar Vadivel Murugan --- drivers/extcon/extcon-ptn5150.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/extcon/extcon-ptn5150.c b/drivers/extcon/extcon-ptn5150.c index

[PATCH v2 0/2] extcon: ptn5150: Add usb-typec support for Intel LGM SoC

2020-08-26 Thread Ramuthevar,Vadivel MuruganX
Add usb-typec detection support for the Intel LGM SoC based boards. Original driver is not supporting usb detection on Intel LGM SoC based boards then we debugged and fixed the issue, but before sending our patches Mr.Krzyszto has sent the same kind of patches, so I have rebased over his latest

[PATCH v2 1/2] extcon: ptn5150: Switch to GENMASK() and BIT() macros

2020-08-26 Thread Ramuthevar,Vadivel MuruganX
From: Ramuthevar Vadivel Murugan Switch to GENMASK() and BIT() macros. Signed-off-by: Ramuthevar Vadivel Murugan Reviewed-by: Krzysztof Kozlowski --- drivers/extcon/extcon-ptn5150.c | 43 +++-- 1 file changed, 11 insertions(+), 32 deletions(-) diff --git

Re: [PATCH] libnvdimm/e820: Fix build error without MEMORY_HOTPLUG

2020-08-26 Thread Yuehaibing
Pls ignore this It has be fixed in commit dbb8733abb1c ("mm-memory_hotplug-introduce-default-phys_to_target_node-implementation-fix") On 2020/8/26 20:18, YueHaibing wrote: > If MEMORY_HOTPLUG is n, build fails: > > drivers/nvdimm/e820.c: In function ‘e820_register_one’: >

[PATCH v6 0/7] Fix timeout clock used by hardware data timeout

2020-08-26 Thread Sowjanya Komatineni
Tegra210/Tegra186/Tegra194 has incorrectly enabled SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK from the beginning of their support. Tegra210 and later SDMMC hardware default uses sdmmc_legacy_tm (TMCLK) all the time for hardware data timeout instead of SDCLK and this TMCLK need to be kept enabled by

[PATCH v6 1/7] sdhci: tegra: Remove SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK for Tegra210

2020-08-26 Thread Sowjanya Komatineni
commit b5a84ecf025a ("mmc: tegra: Add Tegra210 support") SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK is set for Tegra210 from the beginning of Tegra210 support in the driver. Tegra210 SDMMC hardware by default uses timeout clock (TMCLK) instead of SDCLK and this quirk should not be set. So, this patch

[PATCH v6 5/7] arm64: tegra: Add missing timeout clock to Tegra186 SDMMC nodes

2020-08-26 Thread Sowjanya Komatineni
commit 39cb62cb8973 ("arm64: tegra: Add Tegra186 support") Tegra186 uses separate SDMMC_LEGACY_TM clock for data timeout and this clock is not enabled currently which is not recommended. Tegra186 SDMMC advertises 12Mhz as timeout clock frequency in host capability register and uses it by

[PATCH v6 7/7] sdhci: tegra: Add missing TMCLK for data timeout

2020-08-26 Thread Sowjanya Komatineni
commit b5a84ecf025a ("mmc: tegra: Add Tegra210 support") Tegra210 and later has a separate sdmmc_legacy_tm (TMCLK) used by Tegra SDMMC hawdware for data timeout to achive better timeout than using SDCLK and using TMCLK is recommended. USE_TMCLK_FOR_DATA_TIMEOUT bit in Tegra SDMMC register

[PATCH v6 2/7] sdhci: tegra: Remove SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK for Tegra186

2020-08-26 Thread Sowjanya Komatineni
commit 4346b7c7941d ("mmc: tegra: Add Tegra186 support") SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK is set for Tegra186 from the beginning of its support in driver. Tegra186 SDMMC hardware by default uses timeout clock (TMCLK) instead of SDCLK and this quirk should not be set. So, this patch remove

[PATCH v6 3/7] dt-bindings: mmc: tegra: Add tmclk for Tegra210 and later

2020-08-26 Thread Sowjanya Komatineni
Tegra210 and later uses separate SDMMC_LEGACY_TM clock for data timeout. So, this patch adds "tmclk" to Tegra sdhci clock property in the device tree binding. Signed-off-by: Sowjanya Komatineni --- .../bindings/mmc/nvidia,tegra20-sdhci.txt | 32 -- 1 file changed,

[PATCH v6 4/7] arm64: tegra: Add missing timeout clock to Tegra210 SDMMC

2020-08-26 Thread Sowjanya Komatineni
commit 742af7e7a0a1 ("arm64: tegra: Add Tegra210 support") Tegra210 uses separate SDMMC_LEGACY_TM clock for data timeout and this clock is not enabled currently which is not recommended. Tegra SDMMC advertises 12Mhz as timeout clock frequency in host capability register. So, this clock should

[PATCH v6 6/7] arm64: tegra: Add missing timeout clock to Tegra194 SDMMC nodes

2020-08-26 Thread Sowjanya Komatineni
commit 5425fb15d8ee ("arm64: tegra: Add Tegra194 chip device tree") Tegra194 uses separate SDMMC_LEGACY_TM clock for data timeout and this clock is not enabled currently which is not recommended. Tegra194 SDMMC advertises 12Mhz as timeout clock frequency in host capability register. So, this

Re: [kthread] 2e7d8748eb: last_state.is_incomplete_run

2020-08-26 Thread qianli zhao
I did not see any exceptions related to my changes,the corresponding macro CONFIG_DEBUG_OBJECTS_KTHREAD is not enabled,so i think the issue has nothing to do with my changes Thanks On Thu, 20 Aug 2020 at 14:26, kernel test robot wrote: > > Greeting, > > FYI, we noticed the following commit

Re: [PATCH v2 3/3] usb typec: mt6360: Prevent the race condition during module remove

2020-08-26 Thread Guenter Roeck
On 8/26/20 8:25 PM, cy_huang wrote: > From: ChiYuan Huang > > Prevent the race condition from interrupt and tcpci port unregister > during module remove. > > Signed-off-by: ChiYuan Huang Please squash with the first patch of the series. Thanks, Guenter > --- >

Re: [PATCH] deprecated.rst: Remove now removed uninitialized_var

2020-08-26 Thread Nick Desaulniers
On Wed, Aug 26, 2020 at 8:12 PM Joe Perches wrote: > > It's now gone from the kernel so remove it from the deprecated API text. > > Signed-off-by: Joe Perches Thanks Joe. Reviewed-by: Nick Desaulniers > --- > Documentation/process/deprecated.rst | 18 -- > 1 file changed, 18

Re: [PATCH v2] extcon: ptn5150: Deduplicate parts of dev_err_probe()

2020-08-26 Thread Chanwoo Choi
Hi Andy, On 8/27/20 12:23 AM, Andy Shevchenko wrote: > dev_err_probe() is designed to be used like > > return dev_err_probe(dev, ret, "Error message\n"); > > Hence no need to have a separate return statement. Besides that > dev_err_probe() prints already returned error code, no need to

[PATCH v2 3/3] usb typec: mt6360: Prevent the race condition during module remove

2020-08-26 Thread cy_huang
From: ChiYuan Huang Prevent the race condition from interrupt and tcpci port unregister during module remove. Signed-off-by: ChiYuan Huang --- drivers/usb/typec/tcpm/tcpci_mt6360.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/typec/tcpm/tcpci_mt6360.c

[PATCH v2 1/3] usb typec: mt6360: Add support for mt6360 Type-C driver

2020-08-26 Thread cy_huang
From: ChiYuan Huang Mediatek MT6360 is a multi-functional IC that includes USB Type-C. It works with Type-C Port Controller Manager to provide USB PD and USB Type-C functionalities. Signed-off-by: ChiYuan Huang --- drivers/usb/typec/tcpm/Kconfig| 8 ++

[PATCH v2 2/3] usb typec: mt6360: Add MT6360 Type-C DT binding documentation

2020-08-26 Thread cy_huang
From: ChiYuan Huang Add a devicetree binding documentation for the MT6360 Type-C driver. Signed-off-by: ChiYuan Huang --- .../bindings/usb/mediatek,mt6360-tcpc.yaml | 73 ++ 1 file changed, 73 insertions(+) create mode 100644

RE: [PATCH v4 1/5] exfat: integrates dir-entry getting and validation

2020-08-26 Thread Namjae Jeon
> + i = ES_INDEX_NAME; > + while ((ep = exfat_get_validated_dentry(es, i++, TYPE_NAME))) { Please find the way to access name entries like ep_file, ep_stream without calling exfat_get_validated_dentry(). > exfat_extract_uni_name(ep, uniname); > uniname +=

RE: [PATCH] exfat: fix pointer error checking

2020-08-26 Thread Namjae Jeon
> Fix missing result check of exfat_build_inode(). > And use PTR_ERR_OR_ZERO instead of PTR_ERR. > > Signed-off-by: Tetsuhiro Kohada Pushed it to exfat #dev. Thanks for your patch!

Re: [PATCH] MIPS: Loongson: Fix complie errors without CONFIG_SMP

2020-08-26 Thread Matthew Wilcox
On Thu, Aug 27, 2020 at 10:31:33AM +0800, hejinyang wrote: > > > On 08/26/2020 09:01 PM, Matthew Wilcox wrote: > > On Wed, Aug 26, 2020 at 08:53:27PM +0800, Jinyang He wrote: > > > +++ b/arch/mips/include/asm/mach-loongson64/topology.h > > > @@ -4,7 +4,11 @@ > > > #ifdef CONFIG_NUMA > > >

[PATCH] deprecated.rst: Remove now removed uninitialized_var

2020-08-26 Thread Joe Perches
It's now gone from the kernel so remove it from the deprecated API text. Signed-off-by: Joe Perches --- Documentation/process/deprecated.rst | 18 -- 1 file changed, 18 deletions(-) diff --git a/Documentation/process/deprecated.rst b/Documentation/process/deprecated.rst index

[PATCH v7 2/2] soc: mediatek: add mt6779 devapc driver

2020-08-26 Thread Neal Liu
MediaTek bus fabric provides TrustZone security support and data protection to prevent slaves from being accessed by unexpected masters. The security violation is logged and sent to the processor for further analysis or countermeasures. Any occurrence of security violation would raise an

[PATCH v7] Add MediaTek MT6779 devapc driver

2020-08-26 Thread Neal Liu
These patch series introduce a MediaTek MT6779 devapc driver. MediaTek bus fabric provides TrustZone security support and data protection to prevent slaves from being accessed by unexpected masters. The security violation is logged and sent to the processor for further analysis or

[PATCH v7 1/2] dt-bindings: devapc: add bindings for mtk-devapc

2020-08-26 Thread Neal Liu
Add bindings for mtk-devapc. Signed-off-by: Neal Liu --- .../devicetree/bindings/soc/mediatek/devapc.yaml | 58 1 file changed, 58 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/mediatek/devapc.yaml diff --git

Re: [PATCH v5 0/7] Fix timeout clock used by hardware data timeout

2020-08-26 Thread Sowjanya Komatineni
Sorry please ignore this series. Wrong patches from my system went out. Will send as v6. Thanks Sowjanya On 8/26/20 1:05 PM, Sowjanya Komatineni wrote: Tegra210/Tegra186/Tegra194 has incorrectly enabled SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK from the beginning of their support. Tegra210 and

kernel BUG at fs/ext4/inode.c:LINE!

2020-08-26 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:c3d8f220 Merge tag 'kbuild-fixes-v5.9' of git://git.kernel.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15f83cb690 kernel config: https://syzkaller.appspot.com/x/.config?x=bb68b9e8a8cc842f

Re: [PATCH v5 7/7] sdhci: tegra: Add missing TMCLK for data timeout

2020-08-26 Thread kernel test robot
Hi Sowjanya, I love your patch! Yet something to improve: [auto build test ERROR on robh/for-next] [also build test ERROR on tegra/for-next v5.9-rc2 next-20200826] [cannot apply to ulf.hansson-mmc/next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting

Re: [PATCH v3] lib/string.c: implement stpcpy

2020-08-26 Thread Joe Perches
On Wed, 2020-08-26 at 19:33 -0700, Kees Cook wrote: > On Wed, Aug 26, 2020 at 04:57:41PM -0700, Joe Perches wrote: > > On Wed, 2020-08-26 at 16:38 -0700, Kees Cook wrote: > > > On Thu, Aug 27, 2020 at 07:59:45AM +0900, Masahiro Yamada wrote: > > [] > > > > OK, then stpcpy(), strcpy() and sprintf()

[PATCH] ice: Fix memleak in ice_set_ringparam

2020-08-26 Thread Dinghao Liu
When kcalloc() on rx_rings fails, we should free tx_rings and xdp_rings to prevent memleak. Similarly, when ice_alloc_rx_bufs() fails, we should free xdp_rings. Signed-off-by: Dinghao Liu --- drivers/net/ethernet/intel/ice/ice_ethtool.c | 13 +++-- 1 file changed, 11 insertions(+), 2

Re: [PATCH v3] lib/string.c: implement stpcpy

2020-08-26 Thread Kees Cook
On Wed, Aug 26, 2020 at 04:57:41PM -0700, Joe Perches wrote: > On Wed, 2020-08-26 at 16:38 -0700, Kees Cook wrote: > > On Thu, Aug 27, 2020 at 07:59:45AM +0900, Masahiro Yamada wrote: > [] > > > OK, then stpcpy(), strcpy() and sprintf() > > > have the same level of unsafety. > > > > Yes. And even

[PATCH v3] mm: memcg: Fix memcg reclaim soft lockup

2020-08-26 Thread Xunlei Pang
We've met softlockup with "CONFIG_PREEMPT_NONE=y", when the target memcg doesn't have any reclaimable memory. It can be easily reproduced as below: watchdog: BUG: soft lockup - CPU#0 stuck for 111s![memcg_test:2204] CPU: 0 PID: 2204 Comm: memcg_test Not tainted 5.9.0-rc2+ #12 Call Trace:

Re: [PATCH] MIPS: Loongson: Fix complie errors without CONFIG_SMP

2020-08-26 Thread hejinyang
On 08/26/2020 09:01 PM, Matthew Wilcox wrote: On Wed, Aug 26, 2020 at 08:53:27PM +0800, Jinyang He wrote: +++ b/arch/mips/include/asm/mach-loongson64/topology.h @@ -4,7 +4,11 @@ #ifdef CONFIG_NUMA +#ifdef CONFIG_SMP #define cpu_to_node(cpu) (cpu_logical_map(cpu) >> 2) +#else

Re: [PATCH] linux/kernel.h: add container_from()

2020-08-26 Thread Kees Cook
On Thu, Aug 27, 2020 at 07:06:36AM +0530, Allen Pais wrote: > Introduce container_from() as a generic helper instead of > sub-systems defining a private from_* API > (Eg: from_tasklets recently introduced in > 12cc923f1ccc: Tasklet: Introduce new initialization API) > > The helper is similar to

Re: [PATCH v2 00/13] extcon: ptn5150: Improvements and fixes

2020-08-26 Thread Chanwoo Choi
Hi Suman, On 8/27/20 6:56 AM, Suman Anna wrote: > Hi Chanwoo, > > On 8/24/20 6:28 AM, Chanwoo Choi wrote: >> Hi, >> >> On 8/24/20 7:36 PM, Ramuthevar, Vadivel MuruganX wrote: >>> Hi, >>> >>>  Thank you for the patches and optimized the code as well. >>>  I have applied your patches and tested,

Re: [PATCH 1/2] usb typec: mt6360: Add support for mt6360 Type-C driver

2020-08-26 Thread Guenter Roeck
On 8/26/20 6:11 PM, 啟原黃 wrote: > Guenter Roeck 於 2020年8月27日 週四 上午9:02寫道: >> >> On 8/26/20 5:59 PM, 啟原黃 wrote: >> [ ... ] > +static int mt6360_tcpc_remove(struct platform_device *pdev) > +{ > + struct mt6360_tcpc_info *mti = platform_get_drvdata(pdev); > + > +

Re: [PATCH] perf stat: update POWER9 metrics to utilize other metrics

2020-08-26 Thread Paul A. Clarke
On Wed, Aug 26, 2020 at 09:26:40AM -0700, Ian Rogers wrote: > On Fri, Aug 14, 2020 at 5:43 AM Arnaldo Carvalho de Melo > wrote: > > Em Fri, Aug 14, 2020 at 11:20:42AM +0530, kajoljain escreveu: > > > On 8/14/20 9:13 AM, Ian Rogers wrote: > > > > On Thu, Aug 13, 2020 at 3:21 PM Paul A. Clarke

Re: [PATCH 5/6] pwm: sprd: Simplify with dev_err_probe()

2020-08-26 Thread Chunyan Zhang
On Wed, 26 Aug 2020 at 22:48, Krzysztof Kozlowski wrote: > > Common pattern of handling deferred probe can be simplified with > dev_err_probe(). Less code and also it prints the error value. > > Signed-off-by: Krzysztof Kozlowski Acked-by: Chunyan Zhang Thanks! > --- >

Re: [PATCH v8 1/2] Add a "nosymfollow" mount option.

2020-08-26 Thread Al Viro
On Wed, Aug 26, 2020 at 02:48:19PM -0600, Ross Zwisler wrote: > Al, now that the changes to fs/namei.c have landed and we're past the merge > window for v5.9, what are your thoughts on this patch and the associated test? Humm... should that be nd->path.mnt->mnt_flags or link->mnt->mnt_flags?

Re: [PATCH v1 5/9] phy: qcom-qmp: Get dp_com I/O resource by index

2020-08-26 Thread Bjorn Andersson
On Wed 26 Aug 16:32 CDT 2020, Stephen Boyd wrote: > Quoting Bjorn Andersson (2020-08-25 21:36:16) > > On Tue 25 Aug 21:47 CDT 2020, Stephen Boyd wrote: > > > > > The dp_com resource is always at index 1 according to the dts files in > > > the kernel. Get this resource by index so that we don't

Re: [PATCH v2 2/2] soc: qcom: rpmh: Allow RPMH driver to be loaded as a module

2020-08-26 Thread Bjorn Andersson
On Tue 25 Aug 06:21 CDT 2020, Maulik Shah wrote: > From: John Stultz > > This patch allow the rpmh driver to be loaded as a permenent > module. Meaning it can be loaded from a module, but then cannot > be unloaded. > > Ideally, it would include a remove hook and related logic, but > the rpmh

[PATCH v9 0/5] Provide basic driver to control Arm R5 co-processor found on Xilinx ZynqMP

2020-08-26 Thread Ben Levinsky
The driver was tested on Xilinx ZynqMP For sake of ease of review, only support ZynqMP. Once accepted, then add support for Versal platform and R5 loading onto OCM. v2: - remove domain struct as per review from Mathieu v3: - add xilinx-related platform mgmt fn's instead of wrapping around

[PATCH v10 2/5] firmware: xilinx: Add shutdown/wakeup APIs

2020-08-26 Thread Ben Levinsky
Add shutdown/wakeup a resource eemi operations to shutdown or bringup a resource. Note alignment of args matches convention of other fn's in this file. The reason being that the long fn name results in aligned args that otherwise go over 80 chars so shift right to avoid this Signed-off-by: Ben

[PATCH v10 5/5] remoteproc: Add initial zynqmp R5 remoteproc driver

2020-08-26 Thread Ben Levinsky
R5 is included in Xilinx Zynq UltraScale MPSoC so by adding this remotproc driver, we can boot the R5 sub-system in different 2 configurations: split or lock-step. The Xilinx R5 Remoteproc Driver boots the R5's via calls to the Xilinx Platform Management Unit that handles the R5 configuration,

[PATCH v10 3/5] firmware: xilinx: Add RPU configuration APIs

2020-08-26 Thread Ben Levinsky
This patch adds APIs to access to configure RPU and its processor-specific memory. That is query the run-time mode of RPU as either split or lockstep as well as API to set this mode. In addition add APIs to access configuration of the RPUs' tightly coupled memory (TCM). Signed-off-by: Ben

[PATCH v10 1/5] firmware: xilinx: Add ZynqMP firmware ioctl enums for RPU configuration.

2020-08-26 Thread Ben Levinsky
Add ZynqMP firmware ioctl enums for RPU configuration. Signed-off-by: Ben Levinsky --- v3: - add xilinx-related platform mgmt fn's instead of wrapping around function pointer in xilinx eemi ops struct v4: - add default values for enums --- include/linux/firmware/xlnx-zynqmp.h | 19

[PATCH v10 4/5] dt-bindings: remoteproc: Add documentation for ZynqMP R5 rproc bindings

2020-08-26 Thread Ben Levinsky
Add binding for ZynqMP R5 OpenAMP. Represent the RPU domain resources in one device node. Each RPU processor is a subnode of the top RPU domain node. Signed-off-by: Ben Levinsky Signed-off-by: Jason Wu Signed-off-by: Wendy Liang Signed-off-by: Michal Simek --- v3: - update zynqmp_r5 yaml

Re: [PATCH] ext4: flag as supporting buffered async reads

2020-08-26 Thread Jens Axboe
On 8/25/20 8:18 AM, Jens Axboe wrote: > On 8/24/20 4:56 AM, Jens Axboe wrote: >> On 8/22/20 9:48 AM, Jens Axboe wrote: >>> On 8/22/20 8:33 AM, Theodore Y. Ts'o wrote: On Fri, Aug 21, 2020 at 03:26:35PM -0600, Jens Axboe wrote: Resending this one, as I've been carrying it privately

Re: [PATCH v2 1/2] Revert "drivers: qcom: rpmh-rsc: Use rcuidle tracepoints for rpmh"

2020-08-26 Thread Bjorn Andersson
On Tue 25 Aug 06:21 CDT 2020, Maulik Shah wrote: > Commit efde2659b0fe ("drivers: qcom: rpmh-rsc: Use rcuidle tracepoints > for rpmh") was written to fix a bug seen in an unmerged series that > implemented a struct generic_pm_domain::power_off() callback calling > rpmh_flush(). See stack trace

Re: [PATCH v2] HID: google: add google vivaldi HID driver

2020-08-26 Thread Sean O'Brien
> I actually believe we should follow the standard convention here, and have > just one hid- driver for all google products. Currently we have > hid-google-hammer, and this would add hid-google-vivaldi. Would you (or > Wei-Ning, CCing here) object on merging these two together? I'm a bit

[PATCH v2] arm64: dts: mt8173-elm: Set GPU power regulator to always on

2020-08-26 Thread Anand K Mistry
Keep the da9212 BUCKB always-on. This works around an issue on Elm/Hana devices where sometimes, the regulator is disabled before scpsys is suspended, causing the suspension of scpsys to fail. Usually, the GPU and scpsys are suspended by the runtime PM before the system is suspended, due to the

[PATCH v2] Input: elants_i2c - Report resolution of ABS_MT_TOUCH_MAJOR by FW information.

2020-08-26 Thread Johnny Chuang
This patch adds a new behavior to report touch major resolution based on information provided by firmware. In initial process, driver acquires touch information from touch ic. This information contains of one flag about reporting resolution of ABS_MT_TOUCH_MAJOR is needed, or not. Touch driver

Re: [PATCH] ASoC: fsl_spdif: Fix unnecessary check infsl_spdif_probe()

2020-08-26 Thread Tang Bin
Hi Mark 在 2020/8/27 0:53, Mark Brown 写道: On Wed, Aug 26, 2020 at 11:09:18PM +0800, Tang Bin wrote: The function fsl_spdif_probe() is only called with an openfirmware platform device. Therefore there is no need to check that the passed in device is NULL. Why is this an issue - the check will

  1   2   3   4   5   6   7   8   9   10   >