Re: [PATCH 1/2] char: sparc64: Add privileged ADI driver

2018-04-19 Thread Tom Hromatka
On 04/19/2018 01:45 AM, Greg KH wrote: On Wed, Apr 18, 2018 at 10:29:57AM -0600, Tom Hromatka wrote: +/* + * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved. + * Author: Tom Hromatka + * + * This program is free software; you can

Re: [PATCH 1/2] char: sparc64: Add privileged ADI driver

2018-04-19 Thread Tom Hromatka
On 04/19/2018 01:45 AM, Greg KH wrote: On Wed, Apr 18, 2018 at 10:29:57AM -0600, Tom Hromatka wrote: +/* + * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved. + * Author: Tom Hromatka + * + * This program is free software; you can redistribute it and/or + * modify

Re: [PATCH 1/2] char: sparc64: Add privileged ADI driver

2018-04-19 Thread Greg KH
On Wed, Apr 18, 2018 at 10:29:57AM -0600, Tom Hromatka wrote: > +/* > + * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights > reserved. > + * Author: Tom Hromatka > + * > + * This program is free software; you can redistribute it and/or > + * modify it

Re: [PATCH 1/2] char: sparc64: Add privileged ADI driver

2018-04-19 Thread Greg KH
On Wed, Apr 18, 2018 at 10:29:57AM -0600, Tom Hromatka wrote: > +/* > + * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights > reserved. > + * Author: Tom Hromatka > + * > + * This program is free software; you can redistribute it and/or > + * modify it under the terms of the GNU

[PATCH 1/2] char: sparc64: Add privileged ADI driver

2018-04-18 Thread Tom Hromatka
SPARC M7 and newer processors utilize ADI to version and protect memory. This driver is capable of reading/writing ADI/MCD versions from privileged user space processes. Addresses in the adi file are mapped linearly to physical memory at a ratio of 1:adi_blksz. Thus, a read (or write) of offset

[PATCH 1/2] char: sparc64: Add privileged ADI driver

2018-04-18 Thread Tom Hromatka
SPARC M7 and newer processors utilize ADI to version and protect memory. This driver is capable of reading/writing ADI/MCD versions from privileged user space processes. Addresses in the adi file are mapped linearly to physical memory at a ratio of 1:adi_blksz. Thus, a read (or write) of offset