Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2067371ybp; Sat, 12 Oct 2019 03:31:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqxOg7ZAviqT77ZAHHV/BTSLVz8C6vX7JUKWVrMzqo3JUGuhVZY+1AUjCq66OcJzagOCsqM4 X-Received: by 2002:a17:906:7e17:: with SMTP id e23mr10903350ejr.205.1570876263732; Sat, 12 Oct 2019 03:31:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570876263; cv=none; d=google.com; s=arc-20160816; b=Xd8hdADhduENZYhfnSAFcY3tVmP5zN2aXrmRnr5ZFn3p6d4IT4XYat9CrX4tzZmtat l+wT7E3VonM5kGzxnCk12KwaDyn0t2t7EMQyi2TgdhBnYgtIQJyotaiScSBCv+MLozYm a+WC/xQgCfC9s+fJCBd084tWOLYWqfaG01/B7RTnckCGBweP+wyaOAHtOyB+DEjVLNTQ gIOrwwWDC336QmOmpUisMZc5ISJXlCYQvrIPuTAKHEO3YSB6EH51vwwYHHAsDjl+jJms Pgk+zO0W6RNfUMh2vvMOOPoCdbiOhWW7Da4dWopMImcIfm5BDS4TWCFWKBDU6IOHwPvS YGtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-disposition :mime-version:subject:cc:to:from:date; bh=zJYYDQ9jrPOTHkbvdd3h9DTZCBc61vU1h+DopoeGZ1s=; b=k9gi1NaEGOghiTc/x//4BxBkPCZ70zXuIdHLflQzXlgmOL3RVk2QiuKrIbfvf4eJqN WQHQccUmN8ReSaauXlwYwRqrdeWdc18+EeEtRVWL/65Vh8zHq0dVO4xZEW0Up0iLdGI6 Y9fUTZyUqEt3XEds87/gPwN1AuPl8jMsl6w82nIRX9eHEe2q/Bd5sLE4J09UAEBi4ppS jp7OQeE2KPBdQ88C4oxVWB6If5s/74VuAbZw6sN86aw8jO7I4Z/Cd3cUKeNcufC8Qn5Z cdBkKEZB/ag42LHwB/JdNRBKU2JNHAnwTkHY38YqYAZeBgv+fj/L0KJifXEpLF++ekKs DfBA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b25si7357242ejb.49.2019.10.12.03.30.40; Sat, 12 Oct 2019 03:31:03 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729002AbfJLK1t (ORCPT + 99 others); Sat, 12 Oct 2019 06:27:49 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:52632 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727262AbfJLKZs (ORCPT ); Sat, 12 Oct 2019 06:25:48 -0400 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x9CAM02e131233 for ; Sat, 12 Oct 2019 06:25:47 -0400 Received: from e06smtp04.uk.ibm.com (e06smtp04.uk.ibm.com [195.75.94.100]) by mx0b-001b2d01.pphosted.com with ESMTP id 2vk7rsqepu-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sat, 12 Oct 2019 06:25:47 -0400 Received: from localhost by e06smtp04.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sat, 12 Oct 2019 11:25:45 +0100 Received: from b06avi18626390.portsmouth.uk.ibm.com (9.149.26.192) by e06smtp04.uk.ibm.com (192.168.101.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Sat, 12 Oct 2019 11:25:42 +0100 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x9CAPABQ28770794 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 12 Oct 2019 10:25:10 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 369F3AE059; Sat, 12 Oct 2019 10:25:41 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DAC94AE045; Sat, 12 Oct 2019 10:25:40 +0000 (GMT) Received: from localhost (unknown [9.145.77.130]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Sat, 12 Oct 2019 10:25:40 +0000 (GMT) Date: Sat, 12 Oct 2019 12:25:39 +0200 From: Vasily Gorbik To: Linus Torvalds Cc: Heiko Carstens , Christian Borntraeger , linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org Subject: [GIT PULL] s390 updates for 5.4-rc3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-TM-AS-GCONF: 00 x-cbid: 19101210-0016-0000-0000-000002B769DC X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19101210-0017-0000-0000-000033187E86 Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-10-12_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=2 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1910120098 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Linus, please pull s390 changes for 5.4-rc3. Thank you, Vasily The following changes since commit da0c9ea146cbe92b832f1b0f694840ea8eb33cce: Linux 5.4-rc2 (2019-10-06 14:27:30 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git tags/s390-5.4-4 for you to fetch changes up to 062795fcdcb2d22822fb42644b1d76a8ad8439b3: s390/uaccess: avoid (false positive) compiler warnings (2019-10-11 12:27:25 +0200) ---------------------------------------------------------------- s390 updates for 5.4-rc3 - Fix virtio-ccw DMA regression. - Fix compiler warnings in uaccess. ---------------------------------------------------------------- Christian Borntraeger (1): s390/uaccess: avoid (false positive) compiler warnings Halil Pasic (1): s390/cio: fix virtio-ccw DMA without PV arch/s390/include/asm/uaccess.h | 4 ++-- drivers/s390/cio/cio.h | 1 + drivers/s390/cio/css.c | 7 ++++++- drivers/s390/cio/device.c | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/arch/s390/include/asm/uaccess.h b/arch/s390/include/asm/uaccess.h index bd2fd9a7821d..a470f1fa9f2a 100644 --- a/arch/s390/include/asm/uaccess.h +++ b/arch/s390/include/asm/uaccess.h @@ -83,7 +83,7 @@ raw_copy_to_user(void __user *to, const void *from, unsigned long n); __rc; \ }) -static inline int __put_user_fn(void *x, void __user *ptr, unsigned long size) +static __always_inline int __put_user_fn(void *x, void __user *ptr, unsigned long size) { unsigned long spec = 0x010000UL; int rc; @@ -113,7 +113,7 @@ static inline int __put_user_fn(void *x, void __user *ptr, unsigned long size) return rc; } -static inline int __get_user_fn(void *x, const void __user *ptr, unsigned long size) +static __always_inline int __get_user_fn(void *x, const void __user *ptr, unsigned long size) { unsigned long spec = 0x01UL; int rc; diff --git a/drivers/s390/cio/cio.h b/drivers/s390/cio/cio.h index ba7d2480613b..dcdaba689b20 100644 --- a/drivers/s390/cio/cio.h +++ b/drivers/s390/cio/cio.h @@ -113,6 +113,7 @@ struct subchannel { enum sch_todo todo; struct work_struct todo_work; struct schib_config config; + u64 dma_mask; char *driver_override; /* Driver name to force a match */ } __attribute__ ((aligned(8))); diff --git a/drivers/s390/cio/css.c b/drivers/s390/cio/css.c index 1fbfb0a93f5f..831850435c23 100644 --- a/drivers/s390/cio/css.c +++ b/drivers/s390/cio/css.c @@ -232,7 +232,12 @@ struct subchannel *css_alloc_subchannel(struct subchannel_id schid, * belong to a subchannel need to fit 31 bit width (e.g. ccw). */ sch->dev.coherent_dma_mask = DMA_BIT_MASK(31); - sch->dev.dma_mask = &sch->dev.coherent_dma_mask; + /* + * But we don't have such restrictions imposed on the stuff that + * is handled by the streaming API. + */ + sch->dma_mask = DMA_BIT_MASK(64); + sch->dev.dma_mask = &sch->dma_mask; return sch; err: diff --git a/drivers/s390/cio/device.c b/drivers/s390/cio/device.c index 131430bd48d9..0c6245fc7706 100644 --- a/drivers/s390/cio/device.c +++ b/drivers/s390/cio/device.c @@ -710,7 +710,7 @@ static struct ccw_device * io_subchannel_allocate_dev(struct subchannel *sch) if (!cdev->private) goto err_priv; cdev->dev.coherent_dma_mask = sch->dev.coherent_dma_mask; - cdev->dev.dma_mask = &cdev->dev.coherent_dma_mask; + cdev->dev.dma_mask = sch->dev.dma_mask; dma_pool = cio_gp_dma_create(&cdev->dev, 1); if (!dma_pool) goto err_dma_pool;