Received: by 10.192.165.156 with SMTP id m28csp241359imm; Tue, 17 Apr 2018 09:21:35 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/Q2yWYHrDXStqyJ0Pluk8VR7uj35Iv23hXWpxI7p3tezHmIZY6FFnHpF8Y0moM1bByNfEw X-Received: by 10.101.96.10 with SMTP id m10mr2288644pgu.281.1523982095197; Tue, 17 Apr 2018 09:21:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523982095; cv=none; d=google.com; s=arc-20160816; b=MWZaRqi68c6pC5Ckfj5O6zdrBJhOxofexhjfhAb2Fs+uHUjAl6Jg25YRIArvT68Ref Ox58Jlz2ZhXCeilJN5LYKNfoNgVj7bK+J/JSan7TKzCgGKIqXGFq0FBWzWUHCslJAz7o IBzJ5dsi8fBCsOabf0C76NjSUeEp7XNr2p3BPN3Nd1lfE32D05WJ2MTLXT78cc92QgXH RM9qkJnhh2DAMKOn/IlvVT32IQr2aTHwildilfrQSyhflxHmda9fzwwpiO4ZEBoYlHSq NowLcNkI0fFNv789UzyH3ZboVkwuTeyh57bzhtwBRaGlYQKG97MCWxyhuHjgRU4U8T4W sV4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=U7FdNbmT3Ua19r+CUkbkZp5zqc/mlbr39Yg15cfDROo=; b=tea6Cjjir/FX9VanH2krE8do5FjFt9s3EiQhPkz7vM5pyOFWs52Zrcmt8EOKHDezLM 6EytGUZAEDpkR24rMLFm2beCI9ckoi/WdF/YhxvEjjxxNtwKvc34e4qM4Ex/2yyx/Bm/ OQmDQNLaimC9/8JqKUI6RC88pY2IBqn0CG2dx3yPeg67CsZj3tKiB4eeQKYb8+RiSbg/ uP23Bj4oQsE+3SRyYgQrUIPBeIDacdkXpGWt5BNCqq0QCxX7AT5GRbDA+mHoL/Tu8NHs m41u+isx9CrQZ6UMSHr4fQgPCBkQFEkKQ13Of4gY7O6QQ3NQ4pvi30XtDfnZmFg0mE6U StxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 d22-v6si14901940plr.581.2018.04.17.09.21.21; Tue, 17 Apr 2018 09:21:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755944AbeDQQTa (ORCPT + 99 others); Tue, 17 Apr 2018 12:19:30 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:36402 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755824AbeDQQKX (ORCPT ); Tue, 17 Apr 2018 12:10:23 -0400 Received: from localhost (unknown [46.44.180.42]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 2787FD0B; Tue, 17 Apr 2018 16:10:23 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Heiko Carstens , Vasily Gorbik , Martin Schwidefsky Subject: [PATCH 4.9 57/66] s390/ipl: ensure loadparm valid flag is set Date: Tue, 17 Apr 2018 17:59:30 +0200 Message-Id: <20180417155648.353033990@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180417155645.868055442@linuxfoundation.org> References: <20180417155645.868055442@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Vasily Gorbik commit 15deb080a6087b73089139569558965750e69d67 upstream. When loadparm is set in reipl parm block, the kernel should also set DIAG308_FLAGS_LP_VALID flag. This fixes loadparm ignoring during z/VM fcp -> ccw reipl and kvm direct boot -> ccw reipl. Cc: Reviewed-by: Heiko Carstens Signed-off-by: Vasily Gorbik Signed-off-by: Martin Schwidefsky Signed-off-by: Greg Kroah-Hartman --- arch/s390/kernel/ipl.c | 1 + 1 file changed, 1 insertion(+) --- a/arch/s390/kernel/ipl.c +++ b/arch/s390/kernel/ipl.c @@ -798,6 +798,7 @@ static ssize_t reipl_generic_loadparm_st /* copy and convert to ebcdic */ memcpy(ipb->hdr.loadparm, buf, lp_len); ASCEBC(ipb->hdr.loadparm, LOADPARM_LEN); + ipb->hdr.flags |= DIAG308_FLAGS_LP_VALID; return len; }