From patchwork Wed Dec 4 17:55:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 180839 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp949323ile; Wed, 4 Dec 2019 10:16:18 -0800 (PST) X-Google-Smtp-Source: APXvYqzEnFexf7ojlbxdhEYnL483Y9rZeUWOWL8XeVPs7a9qppsd6kE7+WfahOX/fjLLWMJHr8Z3 X-Received: by 2002:a05:6830:1f28:: with SMTP id e8mr3284536oth.173.1575483025649; Wed, 04 Dec 2019 10:10:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575483025; cv=none; d=google.com; s=arc-20160816; b=IzfooSM9mWr4toU3YY6Bd9+Ogo1waODCkH9OuiKbP3nH8BcJjhjjoXqsHLzIQ27QM8 Nf1aixyRX4n48MwTaXILIF2kxzaAon2YKyCcp5QZE5PnE7vwFhkGXMVmvn1EJ+JOEMAv 2mEICR/fI09FayDVGWNBZNJ8jq29oyiC6BlrW8Sxqzmuv9IgnjIn3nR7NpgNPgd3RMhG V+1D7bFlDOXM4J35t41bxPYIeOBnjGbEtfRJbIQcp47RlwR67UOQn3C/FLkCiPvco5Cj 5x1SxWqIPW1eTVgcTx2kgv19tYxynOQYY8+AJYGuigXaAFFrXi+jvgXFsWFtZFTL9KZe Fqyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=H/i84qZ8pUljVMQ84z10UkDgDRocCAgRPcT+3R6c3yE=; b=aQ/KNsPY9XNmPn9m/x3Bfm6SvXFNdjJXVnFoV6Uo1ujOoHvmVKOroe87Gtq6TUJ7PH bUYyPfoK79iCZYUc6U7YmJZDZoc32Xlij0Wem2inp9IBmHT6hhhPGiC8J/bCU/rq/B22 FckaXpTVJVFtuLqny4S7M2VYXKg8s0k3AOQmS86nZrveGu0pfrsYzNZoRVpIz4J/SP68 zZBaKj7+O5X9co5SWABD62yMi360kbvcNhw6jNyMLUnl/MXa28hYuCvDzsuj9sZp0UAv t3m19o0ZBfhkW6OuWnde2XVc2HEEnJYg7jGnwcj0Du4vPLteYBvR6L0GtVMb+wgnnVf1 OnmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XA2ID4Pg; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f23si3873471otc.88.2019.12.04.10.10.25; Wed, 04 Dec 2019 10:10:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XA2ID4Pg; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730186AbfLDSKY (ORCPT + 15 others); Wed, 4 Dec 2019 13:10:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:37576 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731257AbfLDSKY (ORCPT ); Wed, 4 Dec 2019 13:10:24 -0500 Received: from localhost (unknown [217.68.49.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2F0DE206DF; Wed, 4 Dec 2019 18:10:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575483023; bh=wwf59jvlmgAHxBsSVCN3Drer6FJuWS1VyOrFqmPPIZI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XA2ID4PgNDqMfteUxfkxqkwsTtwjWrVTOQAE+9bgegOT8qDOu1pv2BO5UbqnjqOlF 5oFr9RUCloEGzMqa9cQFGDPmivLltw5MTP7vLjILhQoCHHq9N+4kgyt0ZPq6bjTK/x efbdK/UVLhqgxtWR9ap0lg9dEvufgf12DQS3WXsI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Steve Capper , Will Deacon , Suzuki K Poulose , Sasha Levin Subject: [PATCH 4.9 020/125] arm64: smp: Handle errors reported by the firmware Date: Wed, 4 Dec 2019 18:55:25 +0100 Message-Id: <20191204175318.319074728@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191204175308.377746305@linuxfoundation.org> References: <20191204175308.377746305@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Suzuki K Poulose [ Upstream commit f357b3a7e17af7736d67d8267edc1ed3d1dd9391 ] The __cpu_up() routine ignores the errors reported by the firmware for a CPU bringup operation and looks for the error status set by the booting CPU. If the CPU never entered the kernel, we could end up in assuming stale error status, which otherwise would have been set/cleared appropriately by the booting CPU. Reported-by: Steve Capper Cc: Will Deacon Signed-off-by: Suzuki K Poulose Signed-off-by: Will Deacon Signed-off-by: Sasha Levin --- arch/arm64/kernel/smp.c | 1 + 1 file changed, 1 insertion(+) -- 2.20.1 diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c index f0c41524b052f..b2d6de9f6f4fb 100644 --- a/arch/arm64/kernel/smp.c +++ b/arch/arm64/kernel/smp.c @@ -173,6 +173,7 @@ int __cpu_up(unsigned int cpu, struct task_struct *idle) } } else { pr_err("CPU%u: failed to boot: %d\n", cpu, ret); + return ret; } secondary_data.stack = NULL; From patchwork Wed Dec 4 17:55:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 180841 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp951944ile; Wed, 4 Dec 2019 10:18:30 -0800 (PST) X-Google-Smtp-Source: APXvYqxP/hlv64T7wqUtrO2YQGZ4swSD7aktCHzS7BxEECVZTeyuYrAg0EyuPq2Cow6rh0PwAUkk X-Received: by 2002:aca:4712:: with SMTP id u18mr1437917oia.93.1575483510005; Wed, 04 Dec 2019 10:18:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575483509; cv=none; d=google.com; s=arc-20160816; b=tfbIC3q5UZ+Cmrn8ycRrA5XnR5B1otb/uLmK4s+9DTdndLKyPv2PvjJ+yL4zLIENlS ntTZzGVqyq/tjFKRRYPqdxmgyP/yW1Op1reKkLY1HcJ+MgflpOQZCX81bntqVcMIABh4 4+AyvCwkMtnRP6C44DUjbs7/HGkIGJgawiAULvZhP/Y9FCLzJQYt6bYxc+HtX09yloTl VQWMWRJMyPtK1qFwA1yqK2J5eY65lSNrGIQZGERseEAfBJqZg85a3mB7/Fl71pozorQD y0x0bAbYoXRjngGipYb9vuAarSTYybBS+m2xYcTNXD8koYApCdQm+KsMauoaHSB2fJsd tSDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ocwOjP1Ks6Q4NrkKC/9NkmgMdHh8E3NPiqj55JdCZFQ=; b=NoeDDGkZHNdT7xyOYLUhskqNDUtWw/a1Tl64bKd61TYj272/3vFGlstjtUua/wQ2Yy e71olPKQ/cldlj6BsZ9UUaauj29BtG3ecShsUEM4sVy2TLV6OAByors4QotpLiKyxN27 V7kubo5SiTfoZLrWjpH34VVMLwIbajMoRb9t4D/Y6diQ3KwQ9JUWp+NbFlikBIx0eGS/ rO1KaDmCBkjlLap2XTKNXN2IQafMhjvwDTWuGQDH9I68ZHiDlgHK5IDU4rmO7cuPbE6k l/m2PspDW6Ss53ViCMtrsoFnz6wzTN7H72sAJdEgB/Y3g5vfXex72SmrlHCUEq6BwPJO KYBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SbJg0nyB; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t184si3589017oig.184.2019.12.04.10.18.29; Wed, 04 Dec 2019 10:18:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SbJg0nyB; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730997AbfLDSK4 (ORCPT + 15 others); Wed, 4 Dec 2019 13:10:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:38716 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731341AbfLDSKz (ORCPT ); Wed, 4 Dec 2019 13:10:55 -0500 Received: from localhost (unknown [217.68.49.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A882120674; Wed, 4 Dec 2019 18:10:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575483055; bh=H1WBjtuVHU+q1pByMDCrOf3M0NmQW+pm/fk8+btGKfY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SbJg0nyB1UVD/tw2XKZPvn/lA9xc63eB4IvK4e0ed2ll86Tvo/28DPu9d57FLBFdo PRNDi+jCpz3czBm8pEj8X6LM7jWRxXkGRPPLsnL0V6UswvkIPJ7Dpq8EvNqzyZRtoV 0Ha6R90+hqeCVRfZz+VonYOM1tKagshNGw81UAIQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Masahiro Yamada , Michal Simek , Sasha Levin Subject: [PATCH 4.9 032/125] microblaze: move "... is ready" messages to arch/microblaze/Makefile Date: Wed, 4 Dec 2019 18:55:37 +0100 Message-Id: <20191204175320.947271294@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191204175308.377746305@linuxfoundation.org> References: <20191204175308.377746305@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Masahiro Yamada [ Upstream commit 2e14f94cf4bc2f15ca5362e81ca3a987c79e3062 ] To prepare for more fixes, move this to arch/microblaze/Makefile. Otherwise, the same "... is ready" would be printed multiple times. Signed-off-by: Masahiro Yamada Signed-off-by: Michal Simek Signed-off-by: Sasha Levin --- arch/microblaze/Makefile | 2 ++ arch/microblaze/boot/Makefile | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) -- 2.20.1 diff --git a/arch/microblaze/Makefile b/arch/microblaze/Makefile index 5e1e18540a571..491676a6cde57 100644 --- a/arch/microblaze/Makefile +++ b/arch/microblaze/Makefile @@ -75,9 +75,11 @@ archclean: linux.bin linux.bin.gz linux.bin.ub: vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ + @echo 'Kernel: $(boot)/$@ is ready' ' (#'`cat .version`')' simpleImage.%: vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ + @echo 'Kernel: $(boot)/$@ is ready' ' (#'`cat .version`')' define archhelp echo '* linux.bin - Create raw binary' diff --git a/arch/microblaze/boot/Makefile b/arch/microblaze/boot/Makefile index 0f3fe6a151dce..22bed08ec7f28 100644 --- a/arch/microblaze/boot/Makefile +++ b/arch/microblaze/boot/Makefile @@ -8,15 +8,12 @@ OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary $(obj)/linux.bin: vmlinux FORCE $(call if_changed,objcopy) - @echo 'Kernel: $@ is ready' ' (#'`cat .version`')' $(obj)/linux.bin.ub: $(obj)/linux.bin FORCE $(call if_changed,uimage) - @echo 'Kernel: $@ is ready' ' (#'`cat .version`')' $(obj)/linux.bin.gz: $(obj)/linux.bin FORCE $(call if_changed,gzip) - @echo 'Kernel: $@ is ready' ' (#'`cat .version`')' quiet_cmd_cp = CP $< $@$2 cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false) @@ -34,6 +31,5 @@ $(obj)/simpleImage.%: vmlinux FORCE $(call if_changed,objcopy) $(call if_changed,uimage) $(call if_changed,strip,.strip) - @echo 'Kernel: $(UIMAGE_OUT) is ready' ' (#'`cat .version`')' clean-files += simpleImage.*.unstrip linux.bin.ub dts/*.dtb From patchwork Wed Dec 4 17:57:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 180837 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp947209ile; Wed, 4 Dec 2019 10:14:43 -0800 (PST) X-Google-Smtp-Source: APXvYqy4NfgtqFK/F6lZ59BGmLe9JP0+fU2SDm6SLGQJOC2bYcIw6COs60YokYVmF2o8X7dbka/i X-Received: by 2002:a05:6830:232c:: with SMTP id q12mr3459867otg.168.1575483283191; Wed, 04 Dec 2019 10:14:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575483283; cv=none; d=google.com; s=arc-20160816; b=NCSTaUxe2b5yp6tEbchv0o9qrrBGl51IihDIaedoY3NaJkSLyyYd94WM5u7P5kQjcp 3FPWeVKiQrkksHhqzp5Gqf9rmK20pdkH0whYe1Dvb1w/itWcjp3K2B6Ps/HZNguspjZA 8pAtn6F7wwLQakM5AgX+sapH0icvT+IVD0PHfABQsoy7rl1tJGJbWk9WtsyUAzKx+xYQ fQZyeEfOLXJkS6plMK7aE//ZOgpPjTXxKxFo1jA8Wix4VIOPy8MfD+C34AEpfYR+07/g br/gfHeVs0sWbqYYJcMNvEEbWTqfHRIKdVlY7aydk2gQeV2jn6n+bM4r6XyyQbO/wqlz 4bXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=w2p0FHT9ofEAntJ+D1Egb4SIXLWlhSXAfr8ZXTAUaIk=; b=nTKpksDz/eb/3cRhbcZWMv35UaI8X+ABERaqyorPUCKcqduyRTzjX3MRS+6nwDZIVB t6pe4xg8+kkkZiFLY0jTV2kl4Y2s5lQ1y6cSmW3TphP3kxBaBt9Qf0bFWaxe14F6JGAJ VX4rtBbs5cUVW1djD6B3EXL7TzXeCiqcjq+ETa5Pvpy8x8QVprr+8cQad/l3UUjT9NtQ j7aEht1KvwbpX6ClpI+gisnIM0MlzHLGIl34a6q+4EeflKpXMwZXRUl9W0GXLSK+VsAf tszw6KZiDNXNVOUr4H7o2D7pWPNxmw6lei8FLg1lpUQXAPzd7wum5AZ6B4JjoxzFoB0i lS8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xX0HIrKe; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 17si3735902oix.71.2019.12.04.10.14.42; Wed, 04 Dec 2019 10:14:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xX0HIrKe; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731942AbfLDSOl (ORCPT + 15 others); Wed, 4 Dec 2019 13:14:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:44018 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731937AbfLDSOi (ORCPT ); Wed, 4 Dec 2019 13:14:38 -0500 Received: from localhost (unknown [217.68.49.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 274AD206DF; Wed, 4 Dec 2019 18:14:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575483277; bh=O4H8gKKIofBTYa/ahR2HGrSqNn62ReqrOkWXmkecmG8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xX0HIrKePm037n4YDctYkyFxHL0Wvh1eytcgLSzILWOGADtV9Tswbli/M400/Dcnq Wn8cszbxd39tXDm3iOVjmh/LB1PBjZDmzZUGXEdgokt49P7oeHTAw83Q4KqCSRS8TC 04G8KcuwQSze5nEScCGoWyPlveCgqSdwq6whWMuc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lionel Debieve , Herbert Xu , Mathieu Poirier Subject: [PATCH 4.9 123/125] hwrng: stm32 - fix unbalanced pm_runtime_enable Date: Wed, 4 Dec 2019 18:57:08 +0100 Message-Id: <20191204175326.886744435@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191204175308.377746305@linuxfoundation.org> References: <20191204175308.377746305@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Lionel Debieve commit af0d4442dd6813de6e77309063beb064fa8e89ae upstream. No remove function implemented yet in the driver. Without remove function, the pm_runtime implementation complains when removing and probing again the driver. Signed-off-by: Lionel Debieve Signed-off-by: Herbert Xu Signed-off-by: Mathieu Poirier Signed-off-by: Greg Kroah-Hartman --- drivers/char/hw_random/stm32-rng.c | 8 ++++++++ 1 file changed, 8 insertions(+) --- a/drivers/char/hw_random/stm32-rng.c +++ b/drivers/char/hw_random/stm32-rng.c @@ -166,6 +166,13 @@ static int stm32_rng_probe(struct platfo return devm_hwrng_register(dev, &priv->rng); } +static int stm32_rng_remove(struct platform_device *ofdev) +{ + pm_runtime_disable(&ofdev->dev); + + return 0; +} + #ifdef CONFIG_PM static int stm32_rng_runtime_suspend(struct device *dev) { @@ -202,6 +209,7 @@ static struct platform_driver stm32_rng_ .of_match_table = stm32_rng_match, }, .probe = stm32_rng_probe, + .remove = stm32_rng_remove, }; module_platform_driver(stm32_rng_driver);