Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1659036ybz; Thu, 23 Apr 2020 03:16:42 -0700 (PDT) X-Google-Smtp-Source: APiQypKj/fsdCZrNIrPhf/xEo1Xv3ikF4Doc7mCR6kIsQUKRT/Wb1eukjBVDJcCqe168tmNpSjqp X-Received: by 2002:a17:906:5045:: with SMTP id e5mr2063825ejk.325.1587637001898; Thu, 23 Apr 2020 03:16:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587637001; cv=none; d=google.com; s=arc-20160816; b=x9386PTH/1/Qj4d2IPQcpmvyhzGvCACeqQR2122Nf4taAYVjpnaVbHdSH4UUziAOjI 5xjNRKzUnmGdyhdb/sCiP8/NNgWmeGQMM5AucMe9D8YGYJ5zdq6bOMGePJ1hAlP1XZ+9 a0nauO7tOJhtoGjCUG5HxbpnHXm3OLIw8p38TLE/BhTXGgKAUf40vpX88G7Vzqernatg ea1LfRjopScI1yiEgKiZ8Gna981S2pGwUagelEmgI5CDdde1A2QBdgD0w2rsfgAq9j87 IBRvtK0m94Hiph3g9nm8bwA57UVvf8DqHDd9mvKL0CEwLLf9Dklq/HsHvZ0ksJ+Twzcf YMTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=8dGdN6Yb2PwPHUYiEBVCnUSoErNUv7Phunj1WBrbxxM=; b=QlTmv9nt+wNV4lIuoykhSR6KcVU4pkYP4V3swR81nOxVCZiJyc2yCgYXMuX+r/AUN7 ZoWrxUBjzALfwMjoWxbCzgwdslGFm9QXNd3AgT50b5Zsrf0cA87IrEfHmOWMci8217Rc kPyojHrbvLvTJwX9hdlGdPQabAGF5tAS4gqHbORGIyo/SGKvqa3JVh2F/bbHZcBy/A+5 49Cmw+rfkePh3rMVUGICTFi2brV5KKDs+MFq6hUE9JX6HhiKYWB6FHrzM6KSfKrLijCw Pm7jqBADhjlKV7EvXQui1UlWr8SgQonjQLPq2uQ2+ApcV3YO2cs4V2v/kf6IQtvzINpo k9gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Fq4jE7sk; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k2si1001988edl.244.2020.04.23.03.16.18; Thu, 23 Apr 2020 03:16:41 -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=@redhat.com header.s=mimecast20190719 header.b=Fq4jE7sk; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726991AbgDWKO3 (ORCPT + 99 others); Thu, 23 Apr 2020 06:14:29 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:50848 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726997AbgDWKO2 (ORCPT ); Thu, 23 Apr 2020 06:14:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1587636867; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8dGdN6Yb2PwPHUYiEBVCnUSoErNUv7Phunj1WBrbxxM=; b=Fq4jE7sk07N9fqNrzVbZ0JmwLz+Nli7RHR/AvC7ibr2QT3H1PRKe4++TAYm0WqO21T7ENY mM/Jx3FZk9BRjsfvmz8q0ddSh2zOPhHOT+zXtTalzyWE8JF/WufYisAFD3JbhvqFF3JJ3U P0JwkfKhXlIvwrZzS57dmDr6BTV0OuM= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-17-EdVpfdOpPo-EaMJ3-CdzTQ-1; Thu, 23 Apr 2020 06:14:23 -0400 X-MC-Unique: EdVpfdOpPo-EaMJ3-CdzTQ-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 24E7480B709; Thu, 23 Apr 2020 10:14:22 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-113-193.ams2.redhat.com [10.36.113.193]) by smtp.corp.redhat.com (Postfix) with ESMTP id 541F46109F; Thu, 23 Apr 2020 10:14:21 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 105171753B; Thu, 23 Apr 2020 12:14:20 +0200 (CEST) Date: Thu, 23 Apr 2020 12:14:20 +0200 From: Gerd Hoffmann To: Dejin Zheng 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: <20200423101420.ityynrorrehjvxrs@sirius.home.kraxel.org> References: <20200421164543.16605-1-zhengdejin5@gmail.com> <20200422135215.GA25950@nuc8i5> <20200422152142.GA26943@nuc8i5> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200422152142.GA26943@nuc8i5> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. cheers, Gerd