From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752059AbbIGLZ0 (ORCPT ); Mon, 7 Sep 2015 07:25:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59544 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751072AbbIGLZY (ORCPT ); Mon, 7 Sep 2015 07:25:24 -0400 Subject: Re: [PATCH v2] QEMU fw_cfg DMA interface documentation To: Gerd Hoffmann , =?UTF-8?Q?Marc_Mar=c3=ad?= References: <1441012133-8154-1-git-send-email-markmb@redhat.com> <1441012303-8261-1-git-send-email-markmb@redhat.com> <20150902103311.5335d469@markmb_rh> <1441624109.27149.18.camel@redhat.com> Cc: Stefan Hajnoczi , linux-kernel , Drew , "Kevin O'Connor" , Arnd Bergmann , Rob Herring , Mark Rutland , Alexander Graf , devicetree@vger.kernel.org From: Laszlo Ersek Message-ID: <55ED7420.9080803@redhat.com> Date: Mon, 7 Sep 2015 13:25:20 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <1441624109.27149.18.camel@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/07/15 13:08, Gerd Hoffmann wrote: > Hi, > >> It's just simplicity. If you want to read a few times from the same >> field (like in ACPI tables, read the data size and then the data), you >> need a way to enable and disable the selector and manage the current >> offset for that entry. This is already provided with the "old" >> interface. > > Could be handled with a 'select' control bit. Only when set select > entry and reset offset to zero. > > Also: would it make sense to allow an *array* of FWCfgDmaAccess structs? > With a 'more' bit in control we could indicate that there are more > entries. I'm not sure firmware would actually use that though ... Seems far-fetched. Thanks Laszlo > cheers, > Gerd > >