[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 01/10] drivers/char: Add support for USB3 DbC debugger
- To: Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Fri, 5 Aug 2022 11:54:06 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=wGqsSwqv9QHIwgjwqqQ6GoZ1T/TSyIoK4Ng2iDuMqxc=; b=ldpHcLWbFtwwfKiM3M1ipf//3pYBvFMU1+JL1lHDRmm6Zkdxq0UZKiBevScGcCJnoPsVZY7Ia0XBnidnSuTt5xzCB4zm4A9JWHiRRW0yqjGqCR7TQhPEp176y4njMM93Lih3CtfanZmVgWCFrIVKozqHeonOL3NMy6UnWjCs6DE037OWszc9fZsqLv2D6LeazF5boFKTDBSwnLagzYmEdO0mq7wl8IiHLu1lFX4yQ/zMFas14mxFrtPdWxT6N/i6dFH+Elp4FQomki8PGVgVKHTxHqMOriLGuGmcoyK9WR9go/q3IJ/bzzpyjnui/JoPVZ6yCKScItMWOdfUQnISiA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kMGVRymkrfxwSS0pVaEyppXZmz7+X2BedycRW4mpAQcaKBDvfoJfDsHZm7bPkDQDYDO9O7cOjrj+AnZ5NURrRqErliYwCTQktWI8bLExR+yH6RFjBaENokPLqApxKUElELFlKfQLiJiFRy82MRL4mFrOkN4wf4zaP0E8BcqOcSQKcFivjFPlO+CQ9WA5MAI8d2jQjEvIJmN9frXldcXyoG+9uzu0K9amEZnJMObdp6BQU4tOADS2L0nYNX+xGt1ov3pDgph76br1wr2EI0MUD/n1yp23o4gXChICn+K3HKP3+jw0IERzSmPOZJyZyjhadQb/ni/fso6A6MM9Hjhqtg==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
- Delivery-date: Fri, 05 Aug 2022 09:54:14 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 05.08.2022 11:51, Marek Marczykowski-Górecki wrote:
> On Fri, Aug 05, 2022 at 09:23:32AM +0200, Jan Beulich wrote:
>> On 26.07.2022 05:23, Marek Marczykowski-Górecki wrote:
>>> +static struct xhci_trb evt_trb[DBC_TRB_RING_CAP];
>>> +static struct xhci_trb out_trb[DBC_TRB_RING_CAP];
>>> +static struct xhci_trb in_trb[DBC_TRB_RING_CAP];
>>> +static struct xhci_erst_segment erst __aligned(64);
>>> +static struct xhci_dbc_ctx ctx __aligned(64);
>>> +static uint8_t out_wrk_buf[DBC_WORK_RING_CAP] __aligned(DBC_PAGE_SIZE);
>>
>> I've been trying to identify the reason for the alignment here,
>> compared to the other buffers which are no longer page-aligned. I
>> haven't even been able to locate the place where the address of
>> this buffer is actually written to hardware; all I could find was
>> the respective virt_to_maddr(). Could you please point me at that?
>
> It's dbc_flush() -> dbc_push_trb().
> And indeed, I think I can drop the alignment when it's moved into
> structure dedicated for DMA-accessible buffers.
Why would you be able to drop the alignment then, but not here?
Jan
|