 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [RFC PATCH v3 05/18] xen/arm: ITS: Port ITS driver to xen
 On 26/06/2015 11:19, Vijay Kilari wrote: Hi Julien, Hi Vijay, On Mon, Jun 22, 2015 at 10:46 PM, Julien Grall <julien.grall@xxxxxxxxxx> wrote:Hi,+ cmd->mapd.cmd = GITS_CMD_MAPD; + cmd->mapd.devid = desc->its_mapd_cmd.dev->device_id; + cmd->mapd.size = size - 1; + cmd->mapd.itt = itt_addr >> 8;I think the code is more difficult to read without the helpers. You opencode every trick in all the builder rather than in a single place. A comment on the code would have been welcomed (either here or in the definition of the structure). By naming the field itt it gives the impression that we have to pass all the ITT address. Helpers might be useful, but usage is hardly once or twice in the code. IHMO, once is okay but twice is too much. It means that you duplicated code that may be non straigh-forward to understand (such as shift). Anyway, I will let Ian & Stefano decide. 
 Do we really need to get the target_address intact? I believe not. + gic_rdists = rdists; + its_alloc_lpi_tables(); + + BUILD_BUG_ON(sizeof(its_cmd_block) != 32);Why this build bug on here? Shouldn't it be part of the builder code?Where is builder code in xen? By builder I meant the function who built the command i.e its_send_single_command. Regards, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel 
 
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |