Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1869740ybz; Thu, 23 Apr 2020 07:27:16 -0700 (PDT) X-Google-Smtp-Source: APiQypKFar07FilTZUDgIS0ogf92nMYmgXbsPBgfwh56cbt8BlLwSR2HUOykw9+MmbdgLboeLwK7 X-Received: by 2002:a17:907:2049:: with SMTP id pg9mr2963348ejb.248.1587652036167; Thu, 23 Apr 2020 07:27:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587652036; cv=none; d=google.com; s=arc-20160816; b=m3WRljq6RPpCi57rjNFme8TEmJaaik4JX6dPNq2BTOfisYlISgM7lbIXrqWEy+Hq7A RqCon11mTkudVfAo38RzFIjQtr7G+hB8XgkMHKewqGkqxFesdmFkG71tHpW0X+11bT0f t8QTT58KxngEbFs6Hwfj8rK0jD+aUismSf2Y1C/jorifa9lAfPzFPITaXZoc/oiYBbmZ fDsJVVS/B2/5Xs5pCSEE8zBPSsUzCqa49XrCt7mgPp6rSvkNY3RoUusmo5uuHtnUclhs TXuR+fYOcAi11veH8aZyfKWctr87GKf8ku5sORIiBvoYYqgI8kguxZjFwMyQyEuBXbgj J/vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Gr4q+GtQ73VeA1ex9WDdOXnvVsAGwwpT9Br82wEFbbM=; b=bobBXg+HfmwJG9mEgflCGXi4C3debSzqrfXEZJd6FpyslLzFZs4rEU+KXCTe527G9B nDcDXdW6m/u71rvn83av/Y0aDyctjc2yvPG2XDCDjbft9z+DCXgCuSb9h/4HF4SMoGCj ii3FhCxHsb2W+OnXS37iHhg9zxtTpwovs5BR8KN7yvf182QBrCHX6K3kokddx3hgfyG/ vgfkQOweuYPOYL5XZ88uUCFvIZtsZxQeXYWbhuXpXqF4ZBatjJPgnU/gFlPzCjjqcA5P Y4iNI1KoXF0+AG8wJmFKBmBwtEhkeAVhMiPrVtq6PWdlgXoX/3JgARBQAFdTIQklfJth jOSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=chSOWq4W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n18si1254437ejr.305.2020.04.23.07.26.51; Thu, 23 Apr 2020 07:27:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=chSOWq4W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728440AbgDWOOV (ORCPT + 99 others); Thu, 23 Apr 2020 10:14:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726450AbgDWOOV (ORCPT ); Thu, 23 Apr 2020 10:14:21 -0400 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0446AC08E934 for ; Thu, 23 Apr 2020 07:14:21 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id g2so2402460plo.3 for ; Thu, 23 Apr 2020 07:14:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Gr4q+GtQ73VeA1ex9WDdOXnvVsAGwwpT9Br82wEFbbM=; b=chSOWq4WT8sLvJ6tgwVOsVV5xwk0uqU1QNxzyAno/WKveBs/2IXVsFUCOT54GDobkv uPcs1fPtUIZUVsC6VD8qweivTuwJ/1hAj/RawRP5iJNQVG142svwWGv6aLVblg04PQQg DH/k4yOQrq3alOMg9cqUM9x3UI82NDP4tWpYZgG0gL5C79inVyY8+AJMTRRBBUaOwZ+b PZWTFjzPSdf8CZBov1dA/M8NALAUc2B7KSUAdsJs6bRzc75liNI157k5AanFHPLP0MJy 2KGWGXRQtHHGqLi0YA8KehFLMOfixaDWKcEjzB6BIJ2E6hyxgWri3GwAUGkQtV+81miE bq3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Gr4q+GtQ73VeA1ex9WDdOXnvVsAGwwpT9Br82wEFbbM=; b=CDqBRnQwLE8+JxVmn8+97Ma9btA9cADsiYGj1AEmsBqrKJjhQLy0iMmbUjjOP9abLU SpPixJER6Qa3Hj1qEgDpm8txxMuKElH8HgGknkuEXdiaKuRvgA6CaO3b+kLzkslP1qPr bRNO7JvuUt5AKCvp2lEfgHCqRmK4LzZSwr3Z1gM5ljH52ArL8tnJPISw8SHjqQ+PFlJ8 ElC+fkEW8TThoRd1ZbY67xyoP5lmP37duqLvg+xpykNifDTn5pnklEma+Ro+GH75axyV GSGYBCkjUl5QN5119a3oj2kgzlcGHjf/tq0LkthZ4RkD3D5F0zF4Ke9Tb5vZiszWYuOI bxIA== X-Gm-Message-State: AGi0PubdRaC2HM5ZvuvHimasWED7EuqupJI15gsvBU97eNT55Z2m3z7D FHwfME657+ur4V5918zfT+Q= X-Received: by 2002:a17:902:aa97:: with SMTP id d23mr3921865plr.244.1587651260522; Thu, 23 Apr 2020 07:14:20 -0700 (PDT) Received: from localhost (176.122.158.71.16clouds.com. [176.122.158.71]) by smtp.gmail.com with ESMTPSA id s145sm2237772pgs.57.2020.04.23.07.14.19 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 Apr 2020 07:14:20 -0700 (PDT) Date: Thu, 23 Apr 2020 22:14:16 +0800 From: Dejin Zheng To: Gerd Hoffmann Cc: Andy Shevchenko , David Airlie , Daniel Vetter , virtualization@lists.linux-foundation.org, dri-devel , Linux Kernel Mailing List Subject: Re: [PATCH v1] drm/bochs: fix an issue of ioremap() leak Message-ID: <20200423141416.GA1562@nuc8i5> References: <20200421164543.16605-1-zhengdejin5@gmail.com> <20200422135215.GA25950@nuc8i5> <20200422152142.GA26943@nuc8i5> <20200423101420.ityynrorrehjvxrs@sirius.home.kraxel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200423101420.ityynrorrehjvxrs@sirius.home.kraxel.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 23, 2020 at 12:14:20PM +0200, Gerd Hoffmann wrote: > Hi, > > > I am a newbie, andy gave me some directions to submit the patch, eg: check > > ioremap leak. At this time, I found that the bochs driver may have similar > > problems, so I submitted this patch, then, Andy said the best is to switch > > this driver to use pcim _ * () functions and drop tons of legacy code. > > I think we might be able to fix this issue first, after that, drop tons > > of legacy code by pcim_*() functions. Can you give me some suggestions? > > thank you very much! > > drm has drmm_* functions for that. Daniel Vetter has > a patch series pending switching lots of drivers over and IIRC it fixes > this bug too. > Gerd, Thanks for your info and abandon this commit. BR, Dejin > cheers, > Gerd >