diff options
author | Thorsten Leemhuis <fedora@leemhuis.info> | 2019-07-29 20:18:58 +0200 |
---|---|---|
committer | Thorsten Leemhuis <fedora@leemhuis.info> | 2019-07-29 20:18:58 +0200 |
commit | ca96adfe004e1bc796631e72f804a1f7e6a81747 (patch) | |
tree | f33296314801f45541a99d65ffa5b0d767be4271 | |
parent | 00238db4458e28c1e24257971e7565c0d1992d58 (diff) | |
parent | 28be16d99e678bfbddd7fa9dfe85f30c8e37384f (diff) | |
download | kernel-ca96adfe004e1bc796631e72f804a1f7e6a81747.tar.gz kernel-ca96adfe004e1bc796631e72f804a1f7e6a81747.tar.xz kernel-ca96adfe004e1bc796631e72f804a1f7e6a81747.zip |
Merge remote-tracking branch 'origin/master' into rawhide-user-thl-vanilla-fedora
-rw-r--r-- | configs/fedora/generic/arm/aarch64/CONFIG_ISCSI_IBFT | 1 | ||||
-rw-r--r-- | kernel-aarch64-debug.config | 1 | ||||
-rw-r--r-- | kernel-aarch64.config | 1 | ||||
-rw-r--r-- | kernel.spec | 8 | ||||
-rw-r--r-- | scsi-fix-the-dma_max_mapping_size-call.patch | 102 |
5 files changed, 9 insertions, 104 deletions
diff --git a/configs/fedora/generic/arm/aarch64/CONFIG_ISCSI_IBFT b/configs/fedora/generic/arm/aarch64/CONFIG_ISCSI_IBFT new file mode 100644 index 000000000..0ca6169ee --- /dev/null +++ b/configs/fedora/generic/arm/aarch64/CONFIG_ISCSI_IBFT @@ -0,0 +1 @@ +# CONFIG_ISCSI_IBFT is not set diff --git a/kernel-aarch64-debug.config b/kernel-aarch64-debug.config index a461ec766..488cc5d09 100644 --- a/kernel-aarch64-debug.config +++ b/kernel-aarch64-debug.config @@ -2762,6 +2762,7 @@ CONFIG_IR_WINBOND_CIR=m CONFIG_IR_XMP_DECODER=m # CONFIG_ISA is not set CONFIG_ISCSI_BOOT_SYSFS=m +# CONFIG_ISCSI_IBFT is not set CONFIG_ISCSI_TARGET_CXGB4=m CONFIG_ISCSI_TARGET=m CONFIG_ISCSI_TCP=m diff --git a/kernel-aarch64.config b/kernel-aarch64.config index 1ff8dd030..8a52c7533 100644 --- a/kernel-aarch64.config +++ b/kernel-aarch64.config @@ -2746,6 +2746,7 @@ CONFIG_IR_WINBOND_CIR=m CONFIG_IR_XMP_DECODER=m # CONFIG_ISA is not set CONFIG_ISCSI_BOOT_SYSFS=m +# CONFIG_ISCSI_IBFT is not set CONFIG_ISCSI_TARGET_CXGB4=m CONFIG_ISCSI_TARGET=m CONFIG_ISCSI_TCP=m diff --git a/kernel.spec b/kernel.spec index 0ea77ec3c..99a46875a 100644 --- a/kernel.spec +++ b/kernel.spec @@ -599,8 +599,6 @@ Patch508: KEYS-Make-use-of-platform-keyring-for-module-signature.patch # https://patchwork.kernel.org/patch/11029027/ Patch509: iwlwifi-mvm-disable-TX-AMSDU-on-older-NICs.patch -Patch510: scsi-fix-the-dma_max_mapping_size-call.patch - # END OF PATCH DEFINITIONS %endif @@ -1842,6 +1840,12 @@ fi # # %changelog +* Mon Jul 29 2019 Laura Abbott <labbott@redhat.com> - 5.3.0-0.rc2.git0.1 +- Linux v5.3-rc2 + +* Mon Jul 29 2019 Laura Abbott <labbott@redhat.com> +- Disable debugging options. + * Fri Jul 26 2019 Laura Abbott <labbott@redhat.com> - 5.3.0-0.rc1.git4.1 - Linux v5.3-rc1-96-g6789f873ed37 - Enable nvram driver (rhbz 1732612) diff --git a/scsi-fix-the-dma_max_mapping_size-call.patch b/scsi-fix-the-dma_max_mapping_size-call.patch deleted file mode 100644 index 345996303..000000000 --- a/scsi-fix-the-dma_max_mapping_size-call.patch +++ /dev/null @@ -1,102 +0,0 @@ -From patchwork Mon Jul 22 09:20:38 2019 -Content-Type: text/plain; charset="utf-8" -MIME-Version: 1.0 -Content-Transfer-Encoding: 7bit -X-Patchwork-Submitter: Christoph Hellwig <hch@lst.de> -X-Patchwork-Id: 11051855 -Return-Path: <linux-scsi-owner@kernel.org> -Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org - [172.30.200.125]) - by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E72EF138D - for <patchwork-linux-scsi@patchwork.kernel.org>; - Mon, 22 Jul 2019 09:20:54 +0000 (UTC) -Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) - by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C7C362624B - for <patchwork-linux-scsi@patchwork.kernel.org>; - Mon, 22 Jul 2019 09:20:54 +0000 (UTC) -Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) - id B4FD327861; Mon, 22 Jul 2019 09:20:54 +0000 (UTC) -X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on - pdx-wl-mail.web.codeaurora.org -X-Spam-Level: -X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, - DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 -Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) - by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 37ED82624B - for <patchwork-linux-scsi@patchwork.kernel.org>; - Mon, 22 Jul 2019 09:20:54 +0000 (UTC) -Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand - id S1728717AbfGVJUx (ORCPT - <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); - Mon, 22 Jul 2019 05:20:53 -0400 -Received: from bombadil.infradead.org ([198.137.202.133]:50656 "EHLO - bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org - with ESMTP id S1727744AbfGVJUx (ORCPT - <rfc822;linux-scsi@vger.kernel.org>); Mon, 22 Jul 2019 05:20:53 -0400 -DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; - d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: - MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: - Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: - Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: - List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; - bh=rozEWPkakpWOVwCBsdppdcawJNVVlIw+Eg8lASKNsgg=; - b=tpkF1ayflIjh50YVCiIn61zsk - 585NNt4GTav6znbiEh1nk7blBJDc4sIiGh980AUQln3qSyxICFWhCLRT0GbPYuDr6OYKmlMA+MYn4 - YKX1UgcCicQwtRrLctNcdiEyYNDJWADTfK90HK3wQidBEL3ehgl2tjmh7J1mLtWu33buFKJDQLLG2 - ctnqQimtuNqiaNzB7V5E0GCta+pc88Y6jjomsupaMd2evzlP002O4FNs9nH2xkE1q06lb00ItDuKT - p7y4RNQw3rVvV+bJqbDefPnWuXcS5g8+A7gWxtwwYSCf75AexTWccRKIeIBdDmmnPn3KAvb+jyrGW - XM4Jvxkpw==; -Received: from 089144207240.atnat0016.highway.bob.at ([89.144.207.240] - helo=localhost) - by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) - id 1hpUUs-0002Si-9l; Mon, 22 Jul 2019 09:20:42 +0000 -From: Christoph Hellwig <hch@lst.de> -To: martin.petersen@oracle.com -Cc: bvanassche@acm.org, tom.leiming@gmail.com, dexuan.linux@gmail.com, - Damien.LeMoal@wdc.com, linux-scsi@vger.kernel.org -Subject: [PATCH] scsi: fix the dma_max_mapping_size call -Date: Mon, 22 Jul 2019 11:20:38 +0200 -Message-Id: <20190722092038.17659-1-hch@lst.de> -X-Mailer: git-send-email 2.20.1 -MIME-Version: 1.0 -X-SRS-Rewrite: SMTP reverse-path rewritten from <hch@infradead.org> by - bombadil.infradead.org. See http://www.infradead.org/rpr.html -Sender: linux-scsi-owner@vger.kernel.org -Precedence: bulk -List-ID: <linux-scsi.vger.kernel.org> -X-Mailing-List: linux-scsi@vger.kernel.org -X-Virus-Scanned: ClamAV using ClamSMTP - -We should only call dma_max_mapping_size for devices that have a DMA -mask set, otherwise we can run into a NULL pointer dereference that -will crash the system. - -Also we need to do right shift to get the sectors from the size in -bytes, not a left shift. - -Fixes: bdd17bdef7d8 ("scsi: core: take the DMA max mapping size into account") -Reported-by: Bart Van Assche <bvanassche@acm.org> -Reported-by: Ming Lei <tom.leiming@gmail.com> -Signed-off-by: Christoph Hellwig <hch@lst.de> -Tested-by: Guilherme G. Piccoli <gpiccoli@canonical.com> ---- - drivers/scsi/scsi_lib.c | 6 ++++-- - 1 file changed, 4 insertions(+), 2 deletions(-) - -diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c -index 9381171c2fc0..11e64b50497f 100644 ---- a/drivers/scsi/scsi_lib.c -+++ b/drivers/scsi/scsi_lib.c -@@ -1784,8 +1784,10 @@ void __scsi_init_queue(struct Scsi_Host *shost, struct request_queue *q) - blk_queue_max_integrity_segments(q, shost->sg_prot_tablesize); - } - -- shost->max_sectors = min_t(unsigned int, shost->max_sectors, -- dma_max_mapping_size(dev) << SECTOR_SHIFT); -+ if (dev->dma_mask) { -+ shost->max_sectors = min_t(unsigned int, shost->max_sectors, -+ dma_max_mapping_size(dev) >> SECTOR_SHIFT); -+ } - blk_queue_max_hw_sectors(q, shost->max_sectors); - if (shost->unchecked_isa_dma) - blk_queue_bounce_limit(q, BLK_BOUNCE_ISA); |