Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4FB04185F for ; Tue, 14 Jun 2022 13:18:18 +0000 (UTC) X-IronPort-AV: E=McAfee;i="6400,9594,10377"; a="364953088" X-IronPort-AV: E=Sophos;i="5.91,300,1647327600"; d="scan'208";a="364953088" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jun 2022 06:18:17 -0700 X-IronPort-AV: E=Sophos;i="5.91,300,1647327600"; d="scan'208";a="535560943" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jun 2022 06:18:11 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1o16Qq-000cOy-MD; Tue, 14 Jun 2022 16:18:08 +0300 Date: Tue, 14 Jun 2022 16:18:08 +0300 From: Andy Shevchenko To: Hans de Goede Cc: Mauro Carvalho Chehab , Sakari Ailus , Tsuchiya Yuto , Andy Shevchenko , Yury Luneff , Nable , "andrey.i.trufanov" , Fabio Aiuto , Linux Media Mailing List , linux-staging@lists.linux.dev Subject: Re: [PATCH 00/40] media: atomisp: Various hmm and other cleanups Message-ID: References: <20220613195137.8117-1-hdegoede@redhat.com> Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Tue, Jun 14, 2022 at 11:25:07AM +0200, Andy Shevchenko wrote: > On Mon, Jun 13, 2022 at 9:51 PM Hans de Goede wrote: > > > > Hi All, > > > > I want to start writing a libcamera pipeline handler for the atomisp2, > > but before I can do that I first need to fix mmap support in atomisp2. > > > > My plan for this is to port the atomisp2 handler to videobuf2. To do that > > I first need to understand the existing memory/buffer management so I've > > started with cleaning up the hmm code (with a bit of a detour here and > > there). > > > > This series is the result of that. There are likely more cleanups to > > follow, but I've to focus on some other things for a bit. I hope to be > > able to return to the cleanups + an eventual videobuf2 conversion soon. > > Reviewed-by: Andy Shevchenko > > For patches 1-8: The code wise it's good clean up, functionality it > might be that intention was to implement it as some point, but looking > into (internal) history of the driver development I believe it would > require some firmware changes which is impossible for upstreamed > version of the driver and as you noticed never productized that time. > Hence, good that we got less LoCs after all. > > For patches 9-13: I believe that patch 10 and 9 should be swapped in > the series. Logically you drop caller first followed by (unused) > callee. > > For the rest: To be continued... For the rest: Reviewed-by: Andy Shevchenko I believe a couple of comments are easy to address, may keep my tag there. -- With Best Regards, Andy Shevchenko