Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF110C433E0 for ; Tue, 21 Jul 2020 21:24:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C817E20729 for ; Tue, 21 Jul 2020 21:24:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595366665; bh=F15VAIQ+YcMoi/vlFKHrDvp0zggcPKztBbuy29xhWTM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:List-ID:From; b=xrzUdh3OtGaZTWNjIaM2fcs9FPlTDc4MohvxNCjE/czoalC0Yc5h4dhs790bsnEj0 hfqGehA4ce+BDZB7ce8h0Kw7KYriB9QJsZ20Af17J0W+/O0Bu9HCHoO4nfD6AsWobr oZjDfcZZrc3TN4S/rMVdqqnNgH3w2z6DJA44rSEo= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731194AbgGUVYZ (ORCPT ); Tue, 21 Jul 2020 17:24:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:43234 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731046AbgGUVYZ (ORCPT ); Tue, 21 Jul 2020 17:24:25 -0400 Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (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 8A36D20717; Tue, 21 Jul 2020 21:24:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595366664; bh=F15VAIQ+YcMoi/vlFKHrDvp0zggcPKztBbuy29xhWTM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=fL7u260G4CO6iuAQXZToNhssS1mkJZOPhWIFmh7Dj9W+gyv+/B5fZSQN1ALuEZ+dI tR8c5BcPe600k7in81VO97qkAk4/wg9fVNDvyZAAdgnWEkuIcSglP7YuYTQYxPZ//S 8ZjUlMKltIsIGQIWDb4q4U8YNe/Rjmiau8nIH5SE= Date: Tue, 21 Jul 2020 14:24:24 -0700 From: Andrew Morton To: "Ruhl, Michael J" Cc: "dri-devel@lists.freedesktop.org" , Mike Rapoport , Andy Shevchenko , Chris Wilson , "stable@vger.kernel.org" Subject: Re: [PATCH v2] io-mapping: Indicate mapping failure Message-Id: <20200721142424.b8846cddf1efd48e45278a42@linux-foundation.org> In-Reply-To: <14063C7AD467DE4B82DEDB5C278E866301245E046C@FMSMSX108.amr.corp.intel.com> References: <20200721171936.81563-1-michael.j.ruhl@intel.com> <20200721135648.9603d924377825a7e6c0023b@linux-foundation.org> <14063C7AD467DE4B82DEDB5C278E866301245E046C@FMSMSX108.amr.corp.intel.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Tue, 21 Jul 2020 21:02:44 +0000 "Ruhl, Michael J" wrote: > >--- a/include/linux/io-mapping.h~io-mapping-indicate-mapping-failure-fix > >+++ a/include/linux/io-mapping.h > >@@ -107,9 +107,12 @@ io_mapping_init_wc(struct io_mapping *io > > resource_size_t base, > > unsigned long size) > > { > >+ iomap->iomem = ioremap_wc(base, size); > >+ if (!iomap->iomem) > >+ return NULL; > >+ > > This does make more sense. > > I am confused by the two follow up emails I just got. One was your original patch, the other is my suggested alteration. > Shall I resubmit, or is this path (if !iomap->iomem) return NULL) > now in the tree. All is OK. If my alteration is acceptable (and, preferably, tested!) then when the time comes, I'll fold it into the base patch, add a note indicating this change and shall then send it to Linus.