From patchwork Mon May 6 12:19:49 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: PranavkumarSawargaonkar X-Patchwork-Id: 16715 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gh0-f199.google.com (mail-gh0-f199.google.com [209.85.160.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 21E4720F2F for ; Mon, 6 May 2013 12:21:10 +0000 (UTC) Received: by mail-gh0-f199.google.com with SMTP id g14sf5944346ghb.2 for ; Mon, 06 May 2013 05:20:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=SZrvnREewetGPjJ+qDTF9x/R8x+35Pnoz+8GPHK3JEc=; b=l2LylnIjtLWjvSBURZUwbZ0ZxJoQfr+dmSmQnm7WCmsbZTFxFXDMDB/MkES23jffrO f178yPgIJSa6AmEnI1UlXkyDswZmfkv2qQnlrAXDIlKq3XLzatwn/+WULuH64xe+Sd85 BaygPSdkqb3G2iTtquhkZb28bS3V7wlnn1Ou5S9lf6Y85WbD+vS63VSjYP4M+t3g+0QX 7POQQViFv3+r9VynAf0G7Cz9anIbWFMIcT/8Orbm0uFLVgbGHquWfaDisuE8wXrs6oYC tBYUo+Yi46PQ3BwEE/5Gl7pzuYt9BmAL4naD6fDsqUTz3eG9jQyAzQUQBYYLr1mxubK+ k00g== X-Received: by 10.58.200.163 with SMTP id jt3mr18119663vec.41.1367842853640; Mon, 06 May 2013 05:20:53 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.98.35 with SMTP id ef3ls2802886qeb.95.gmail; Mon, 06 May 2013 05:20:53 -0700 (PDT) X-Received: by 10.220.172.2 with SMTP id j2mr6671634vcz.17.1367842853496; Mon, 06 May 2013 05:20:53 -0700 (PDT) Received: from mail-ve0-x230.google.com (mail-ve0-x230.google.com [2607:f8b0:400c:c01::230]) by mx.google.com with ESMTPS id ez9si9725748vdb.68.2013.05.06.05.20.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 06 May 2013 05:20:53 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::230 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c01::230; Received: by mail-ve0-f176.google.com with SMTP id b10so3113667vea.35 for ; Mon, 06 May 2013 05:20:53 -0700 (PDT) X-Received: by 10.58.144.231 with SMTP id sp7mr6725010veb.34.1367842853379; Mon, 06 May 2013 05:20:53 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.127.98 with SMTP id nf2csp45188veb; Mon, 6 May 2013 05:20:52 -0700 (PDT) X-Received: by 10.68.234.100 with SMTP id ud4mr25767726pbc.9.1367842852110; Mon, 06 May 2013 05:20:52 -0700 (PDT) Received: from mail-pd0-f180.google.com (mail-pd0-f180.google.com [209.85.192.180]) by mx.google.com with ESMTPS id tu1si15344216pac.273.2013.05.06.05.20.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 06 May 2013 05:20:52 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.180 is neither permitted nor denied by best guess record for domain of pranavkumar@linaro.org) client-ip=209.85.192.180; Received: by mail-pd0-f180.google.com with SMTP id t10so1983919pdi.25 for ; Mon, 06 May 2013 05:20:51 -0700 (PDT) X-Received: by 10.66.88.105 with SMTP id bf9mr26241920pab.175.1367842851687; Mon, 06 May 2013 05:20:51 -0700 (PDT) Received: from pnqlab006.amcc.com ([182.72.18.82]) by mx.google.com with ESMTPSA id zy5sm23689902pbb.43.2013.05.06.05.20.48 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 06 May 2013 05:20:51 -0700 (PDT) From: Pranavkumar Sawargaonkar To: linux-arm-kernel@lists.infradead.org Cc: kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, rusty@rustcorp.com.au, linaro-kernel@lists.linaro.org, patches@linaro.org, anup.patel@linaro.org, amit.shah@redhat.com, Pranavkumar Sawargaonkar Subject: [PATCH V2 1/3] virtio: console: Add emergency writeonly register to config space Date: Mon, 6 May 2013 17:49:49 +0530 Message-Id: <1367842791-30285-2-git-send-email-pranavkumar@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1367842791-30285-1-git-send-email-pranavkumar@linaro.org> References: <1367842791-30285-1-git-send-email-pranavkumar@linaro.org> X-Gm-Message-State: ALoCoQmRWyxJamQFMTlz8ATYk7/4NsVk0z5A+MohT1hj1Fg2kHO1oFSVY8sFdxLQucziFpQ9/wuB X-Original-Sender: pranavkumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::230 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This patch adds an emerg_wr register (writeonly) in config space of virtio console device which can be used for debugging. Signed-off-by: Pranavkumar Sawargaonkar Signed-off-by: Anup Patel Signed-off-by: Rusty Russell Acked-by: Amit Shah --- include/uapi/linux/virtio_console.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/uapi/linux/virtio_console.h b/include/uapi/linux/virtio_console.h index ee13ab6..3fd0dce 100644 --- a/include/uapi/linux/virtio_console.h +++ b/include/uapi/linux/virtio_console.h @@ -38,6 +38,7 @@ /* Feature bits */ #define VIRTIO_CONSOLE_F_SIZE 0 /* Does host provide console size? */ #define VIRTIO_CONSOLE_F_MULTIPORT 1 /* Does host provide multiple ports? */ +#define VIRTIO_CONSOLE_F_EMERG_WRITE 2 /* Does host support emergency write? */ #define VIRTIO_CONSOLE_BAD_ID (~(u32)0) @@ -48,6 +49,8 @@ struct virtio_console_config { __u16 rows; /* max. number of ports this device can hold */ __u32 max_nr_ports; + /* emergency write register */ + __u32 emerg_wr; } __attribute__((packed)); /*