Received: by 10.192.165.156 with SMTP id m28csp2130903imm; Thu, 12 Apr 2018 09:05:12 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+NwT7QSc/tx/EDPw1gIora3vbuXjZCxM/VRP6maJTYBMuUO4yjGL9nNzOz1aJiNhP7okZL X-Received: by 10.98.149.78 with SMTP id p75mr8293924pfd.188.1523549112142; Thu, 12 Apr 2018 09:05:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523549112; cv=none; d=google.com; s=arc-20160816; b=rEh56f/HXi5NBg/WYdnTo09J53jjPpw+58tsRqW/EKQkGlkArjQN8OetUnlDfKni7D urHkSR8hS5I+5Qc92so30QTguFcpQ7/fQ2DDLr+Xfju6ge9aHNfY0h8ftoIDLEuDnA1W XtOAQ0OqD8TR7sGn6uAnl5NJlwCweLCY6ojN0AJV12ivjpetiSakV82vC3ZKdA9+AUsO 55gB7SXrSyfEF3ETRk/duqh1A94Nxhv8z7qLnhiM7Q7mdxdEt30UG/mb7q13Nu/KTgor patgxCFiNjgQyqjeek+kHi+rja3gA/fEUioDuY7/YwxFM0utI8I00ts56T/nwPclSotd rk2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=dIBIPijqiGiq9gUr/gTTNxIaJ8+w7iHNG5Dp06MgiuU=; b=yJsNmAlPDneKgLaNoxxiFZrWUqqWxK9WnADEwHfgMrI0aetUfmJJkvQhAqLKET+YqN zmW1m0/TEPU5sDw6MxN0xz3ywfcr6J6Pebo+6AooroiNfI5efTIq0Kf+2k9L2JRAw4O7 ZlVBk79TFiUjXYlsPXN0boHXr+SfMLJqbIWfRbWqU2xUWZy3fLRWo8lvpmXO3uE6DN+D Nj3Q4Edc8P2xOdyLFqgS8Tze2moKaOcmOcmx/7ZPQc5sdEUV+guN0a37bThrsNr+9QWo AJkifTc5W03MFZLnuR9EvjOriQoi5/kH3W/6G5+x/+vRNEHvG/rNgGtLBDfbcDk8q+0D tzqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=s33wqz5B; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p3-v6si3597242plk.166.2018.04.12.09.04.33; Thu, 12 Apr 2018 09:05:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=s33wqz5B; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752853AbeDLQBe (ORCPT + 99 others); Thu, 12 Apr 2018 12:01:34 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:38060 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751870AbeDLQBc (ORCPT ); Thu, 12 Apr 2018 12:01:32 -0400 Received: by mail-lf0-f65.google.com with SMTP id u3-v6so8486636lff.5 for ; Thu, 12 Apr 2018 09:01:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=dIBIPijqiGiq9gUr/gTTNxIaJ8+w7iHNG5Dp06MgiuU=; b=s33wqz5BoCzKkmHSrlx/A0P6qxoTKi7esR3nX2KM8pTWTOaVcugY/OnLNPVM7DpioM HLx2mpwN2gN4yqirR8tzzaYtVbnrffhUs9Mz3M5EyuhW5ODYu5AL0FPYCqokhpRhMJFq cEpyHpOTzrBppG46nI7E3eF/rSfY0lR68GCQNcDQ1AhTeo0P+1FtvvkGHcCwPn0WxqgZ dBR6JoDRL/cWg14qk5MqYSs3nTjKaSVqExjd0kKaW1EMlCl+w1GkcdgVfyvR6Id3/w+l ijUCUYAcyS2GsryT5PYFW8Pc550KdSH7bkqvKTaBHEb2nz84ngRC2W/ER+T/3Zd8tp9r ZfBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=dIBIPijqiGiq9gUr/gTTNxIaJ8+w7iHNG5Dp06MgiuU=; b=FEGPXumhgfIFE1XxEHr0ZDiGNncN0RpJpUgiyMSP7OOAYzxFHBKXDUmTF2k/hEdZD+ UAQ9CK0im67G5it2uQF6afsFiNtrQY2p1/ukFpRnUbPLCab/R0YvSV685Ubmwg4OsmlX YKlm46qg6XsuB2BM2bk+/D0Q7okZqEL/0NibrcSCU+z/2GiNZnMMs9AprxAA/w9TzFId jSYZLcvZgzglAmI3s9mOIS2/s7kuf0cbjevQXXCT+ksLbECA+6Wzc+JJw/D3S/HtQ86J d8PafogGgFZgwkyH5KYmZqS2SeucFqvg8oli1M3D/h0btMlafKhbi6Dbj4Csnnq24gPw B8UQ== X-Gm-Message-State: ALQs6tAYYCYU3M6aMRvrRVKg11cqLaKVrcYZAxslaf8vzKV8PSxsucv7 yBVVgt2LcdtxjMRINTtSMJk= X-Received: by 2002:a19:4c56:: with SMTP id z83-v6mr5805256lfa.141.1523548889740; Thu, 12 Apr 2018 09:01:29 -0700 (PDT) Received: from localhost.localdomain (207-17-94-178.pool.ukrtel.net. [178.94.17.207]) by smtp.gmail.com with ESMTPSA id m11sm644541ljh.37.2018.04.12.09.01.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Apr 2018 09:01:28 -0700 (PDT) From: Oleksandr Andrushchenko X-Google-Original-From: Oleksandr Andrushchenko To: xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Cc: boris.ostrovsky@oracle.com, jgross@suse.com, iurii.konovalenko@globallogic.com, oleksandr.dmytryshyn@globallogic.com, konrad.wilk@oracle.com, tiwai@suse.de, andr2000@gmail.com Subject: [PATCH 3/5] xen/sndif: Make requests and responses 64 octets long Date: Thu, 12 Apr 2018 19:01:00 +0300 Message-Id: <20180412160102.15833-4-oleksandr_andrushchenko@epam.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180412160102.15833-1-oleksandr_andrushchenko@epam.com> References: <20180412160102.15833-1-oleksandr_andrushchenko@epam.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Extend the size of the requests and responses to 64 octets. Bump protocol version to 2. Signed-off-by: Oleksandr Andrushchenko --- include/xen/interface/io/sndif.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/include/xen/interface/io/sndif.h b/include/xen/interface/io/sndif.h index b775df96f021..d48175f1a3d2 100644 --- a/include/xen/interface/io/sndif.h +++ b/include/xen/interface/io/sndif.h @@ -41,7 +41,7 @@ * Protocol version ****************************************************************************** */ -#define XENSND_PROTOCOL_VERSION 1 +#define XENSND_PROTOCOL_VERSION 2 /* ****************************************************************************** @@ -533,7 +533,7 @@ * *---------------------------------- Requests --------------------------------- * - * All request packets have the same length (32 octets) + * All request packets have the same length (64 octets) * All request packets have common header: * 0 1 2 3 octet * +----------------+----------------+----------------+----------------+ @@ -570,7 +570,7 @@ * +----------------+----------------+----------------+----------------+ * |/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/| * +----------------+----------------+----------------+----------------+ - * | reserved | 32 + * | reserved | 64 * +----------------+----------------+----------------+----------------+ * * pcm_rate - uint32_t, stream data rate, Hz @@ -639,7 +639,7 @@ struct xensnd_page_directory { * +----------------+----------------+----------------+----------------+ * |/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/| * +----------------+----------------+----------------+----------------+ - * | reserved | 32 + * | reserved | 64 * +----------------+----------------+----------------+----------------+ * * Request read/write - used for read (for capture) or write (for playback): @@ -657,7 +657,7 @@ struct xensnd_page_directory { * +----------------+----------------+----------------+----------------+ * |/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/| * +----------------+----------------+----------------+----------------+ - * | reserved | 32 + * | reserved | 64 * +----------------+----------------+----------------+----------------+ * * operation - XENSND_OP_READ for read or XENSND_OP_WRITE for write @@ -684,7 +684,7 @@ struct xensnd_rw_req { * +----------------+----------------+----------------+----------------+ * |/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/| * +----------------+----------------+----------------+----------------+ - * | reserved | 32 + * | reserved | 64 * +----------------+----------------+----------------+----------------+ * * operation - XENSND_OP_SET_VOLUME for volume set @@ -726,7 +726,7 @@ struct xensnd_rw_req { * +----------------+----------------+----------------+----------------+ * |/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/| * +----------------+----------------+----------------+----------------+ - * | reserved | 32 + * | reserved | 64 * +----------------+----------------+----------------+----------------+ * * operation - XENSND_OP_MUTE for mute or XENSND_OP_UNMUTE for unmute @@ -759,7 +759,7 @@ struct xensnd_rw_req { /* *---------------------------------- Responses -------------------------------- * - * All response packets have the same length (32 octets) + * All response packets have the same length (64 octets) * * Response for all requests: * 0 1 2 3 octet @@ -772,7 +772,7 @@ struct xensnd_rw_req { * +----------------+----------------+----------------+----------------+ * |/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/| * +----------------+----------------+----------------+----------------+ - * | reserved | 32 + * | reserved | 64 * +----------------+----------------+----------------+----------------+ * * id - uint16_t, copied from the request @@ -787,7 +787,7 @@ struct xensnd_req { union { struct xensnd_open_req open; struct xensnd_rw_req rw; - uint8_t reserved[24]; + uint8_t reserved[56]; } op; }; @@ -796,7 +796,7 @@ struct xensnd_resp { uint8_t operation; uint8_t reserved; int32_t status; - uint8_t reserved1[24]; + uint8_t reserved1[56]; }; DEFINE_RING_TYPES(xen_sndif, struct xensnd_req, struct xensnd_resp); -- 2.17.0