Received: by 10.192.165.148 with SMTP id m20csp2448600imm; Sun, 22 Apr 2018 07:16:51 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/CfH5HMmL0iCj3I75TfQJ4kRZKZn+5B4LLkY/cSEgs3pKNVKYuDnLiYIP5KQWn+4u0may5 X-Received: by 10.98.163.21 with SMTP id s21mr16880086pfe.168.1524406611753; Sun, 22 Apr 2018 07:16:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524406611; cv=none; d=google.com; s=arc-20160816; b=c2+U0yg+NEkN14mPadrKYDqx+5aTr7S3IJDrAgq6qZVgb0d+lQ0fTz4AOIHjj2mViY jvMGNWH9lZPuI5sSKfpDdyCJn/M+Dk8XSP7tfKKQwzvHg88ZM+4lAZr9/IPu+uSk1XDE aecoEKQdHY/lgWm/NgHFubCKjMwMrAwNytmJNpIlL0qUQcGtpQyFyy8Q9TY7iSXKUba5 2mFCQA07MEgseJNJH0LvU5IFVXWyanzGWRdhb/d7gKd5c3/9TRWHbz37FxbKC7EMqJ67 zpF1JrdHyb1tfjEZVqa0NyBOa+bUM1E9mSyX152Q2GCoj3Pyj474q0D3q5motwpIxfVd 9XwA== 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=82xGzfn7v6JV/s6e01pAKf2unT68oiwz4vhl2IwSEco=; b=RtUnkxiwugK0DSV1nerSll2vWPXdzoHOKYH1vpoKUlDoHgJKB9mZZZ5XUPHrhHgyee d08Dqqblkd4IO7C3jioz8lWZEcvPO+zi7XxBoAed3Pgm+NnvADDJpd1zfvEXlO39Nirt NZEpDaS37nnomfIhvoHC63aivv7+n50DGLuTvbgVvaEH0V5q8FYSgEEZg0FuQek58R+i ZFUAHM8uZ/OwBFmJIWtALbkzi/MUCAZtB0IumbSL5GZfoZHKQvcqHxe5sfXIIPPMvlgB g7MiZDptXYecszIKnM/ENX2frfH7DGzlel/uNowQNO39+w8L0V+exzndLDl16wnYaEjR qwiA== 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 c1-v6si10511164pll.449.2018.04.22.07.16.37; Sun, 22 Apr 2018 07:16:51 -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 S1757112AbeDVOPj (ORCPT + 99 others); Sun, 22 Apr 2018 10:15:39 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:56916 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756709AbeDVOPg (ORCPT ); Sun, 22 Apr 2018 10:15:36 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 03D0B12; Sun, 22 Apr 2018 14:15:34 +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.4 12/97] s390/ipl: ensure loadparm valid flag is set Date: Sun, 22 Apr 2018 15:52:50 +0200 Message-Id: <20180422135305.323664854@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180422135304.577223025@linuxfoundation.org> References: <20180422135304.577223025@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.4-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; }