search for: topology_physical_package_id

Displaying 20 results from an estimated 41 matches for "topology_physical_package_id".

2016 Dec 04
2
[PATCH v5 1/1] crypto: add virtio-crypto driver
...o/virtio/virtio_crypto_mgr.c:21: drivers/crypto/virtio/virtio_crypto_common.h: In function 'virtio_crypto_get_current_node': >> arch/sparc/include/asm/topology_64.h:44:44: error: implicit declaration of function 'cpu_data' [-Werror=implicit-function-declaration] #define topology_physical_package_id(cpu) (cpu_data(cpu).proc_id) ^ drivers/crypto/virtio/virtio_crypto_common.h:116:9: note: in expansion of macro 'topology_physical_package_id' return topology_physical_package_id(smp_processor_id()); ^~~~~~~~~~~~~~~~~~~~~~~~~...
2016 Dec 04
2
[PATCH v5 1/1] crypto: add virtio-crypto driver
...o/virtio/virtio_crypto_mgr.c:21: drivers/crypto/virtio/virtio_crypto_common.h: In function 'virtio_crypto_get_current_node': >> arch/sparc/include/asm/topology_64.h:44:44: error: implicit declaration of function 'cpu_data' [-Werror=implicit-function-declaration] #define topology_physical_package_id(cpu) (cpu_data(cpu).proc_id) ^ drivers/crypto/virtio/virtio_crypto_common.h:116:9: note: in expansion of macro 'topology_physical_package_id' return topology_physical_package_id(smp_processor_id()); ^~~~~~~~~~~~~~~~~~~~~~~~~...
2016 Dec 05
0
[PATCH v5 1/1] crypto: add virtio-crypto driver
...r.c:21: > drivers/crypto/virtio/virtio_crypto_common.h: In function > 'virtio_crypto_get_current_node': > >> arch/sparc/include/asm/topology_64.h:44:44: error: implicit declaration of > function 'cpu_data' [-Werror=implicit-function-declaration] > #define topology_physical_package_id(cpu) (cpu_data(cpu).proc_id) > ^ > drivers/crypto/virtio/virtio_crypto_common.h:116:9: note: in expansion of > macro 'topology_physical_package_id' > return topology_physical_package_id(smp_processor_id()); >...
2016 Dec 09
1
[PATCH v6 1/2] sparc: fix a building error reported by kbuild
Hi Gonglei. On Thu, Dec 08, 2016 at 12:37:08PM +0800, Gonglei wrote: > >> arch/sparc/include/asm/topology_64.h:44:44: > error: implicit declaration of function 'cpu_data' > [-Werror=implicit-function-declaration] > > #define topology_physical_package_id(cpu) (cpu_data(cpu).proc_id) > ^ > Let's include cpudata.h in topology_64.h. > > Cc: Sam Ravnborg <sam at ravnborg.org> > Cc: David S. Miller <davem at davemloft.net> > Cc: sparclinux at vger.kernel.org > Suggested...
2016 Dec 09
1
[PATCH v6 1/2] sparc: fix a building error reported by kbuild
Hi Gonglei. On Thu, Dec 08, 2016 at 12:37:08PM +0800, Gonglei wrote: > >> arch/sparc/include/asm/topology_64.h:44:44: > error: implicit declaration of function 'cpu_data' > [-Werror=implicit-function-declaration] > > #define topology_physical_package_id(cpu) (cpu_data(cpu).proc_id) > ^ > Let's include cpudata.h in topology_64.h. > > Cc: Sam Ravnborg <sam at ravnborg.org> > Cc: David S. Miller <davem at davemloft.net> > Cc: sparclinux at vger.kernel.org > Suggested...
2016 Dec 12
4
[PATCH v6 2/2] crypto: add virtio-crypto driver
On Mon, Dec 12, 2016 at 06:54:07PM +0800, Herbert Xu wrote: > On Mon, Dec 12, 2016 at 06:25:12AM +0000, Gonglei (Arei) wrote: > > Hi, Michael & Herbert > > > > Because the virtio-crypto device emulation had been in QEMU 2.8, > > would you please merge the virtio-crypto driver for 4.10 if no other > > comments? If so, Miachel pls ack and/or review the patch,
2016 Dec 12
4
[PATCH v6 2/2] crypto: add virtio-crypto driver
On Mon, Dec 12, 2016 at 06:54:07PM +0800, Herbert Xu wrote: > On Mon, Dec 12, 2016 at 06:25:12AM +0000, Gonglei (Arei) wrote: > > Hi, Michael & Herbert > > > > Because the virtio-crypto device emulation had been in QEMU 2.8, > > would you please merge the virtio-crypto driver for 4.10 if no other > > comments? If so, Miachel pls ack and/or review the patch,
2016 Dec 08
0
[PATCH v6 1/2] sparc: fix a building error reported by kbuild
>> arch/sparc/include/asm/topology_64.h:44:44: error: implicit declaration of function 'cpu_data' [-Werror=implicit-function-declaration] #define topology_physical_package_id(cpu) (cpu_data(cpu).proc_id) ^ Let's include cpudata.h in topology_64.h. Cc: Sam Ravnborg <sam at ravnborg.org> Cc: David S. Miller <davem at davemloft.net> Cc: sparclinux at vger.kernel.org Suggested-by: Sam Ravnborg <sam at ravnbo...
2016 Nov 28
4
[PATCH v3] virtio-crypto: add Linux driver
v3: - set cpu affinity when data queues are not equal to the number of online cpus. [Michael] - add TODO comments for cpu hotplug (changing the relationship of binding virtqueue and cpu) - use __u32/64 in the config space since the virtio->get() doesn't support byte-swap yet. [Michael] - drop the whole patch 1 of v2 because the above reason. - add VERSION_1 check at the beginning of
2016 Nov 28
4
[PATCH v3] virtio-crypto: add Linux driver
v3: - set cpu affinity when data queues are not equal to the number of online cpus. [Michael] - add TODO comments for cpu hotplug (changing the relationship of binding virtqueue and cpu) - use __u32/64 in the config space since the virtio->get() doesn't support byte-swap yet. [Michael] - drop the whole patch 1 of v2 because the above reason. - add VERSION_1 check at the beginning of
2016 Dec 01
3
[PATCH v5 0/1] virtio-crypto: add Linux driver
v5: - add comments for algs_lock and table_lock. [Stefan] - use kzfree instead of kfree for key material security. [Stefan] - drop unnecessary spin_lock for struct virtio_crypto_ablkcipher_ctx. - dynamically allocated memory for iv in order to avoid to do DMA from the stack memory in __virtio_crypto_ablkcipher_do_req(). - add logs for error path in virtio_crypto_alg_validate_key(). - add
2016 Dec 01
3
[PATCH v5 0/1] virtio-crypto: add Linux driver
v5: - add comments for algs_lock and table_lock. [Stefan] - use kzfree instead of kfree for key material security. [Stefan] - drop unnecessary spin_lock for struct virtio_crypto_ablkcipher_ctx. - dynamically allocated memory for iv in order to avoid to do DMA from the stack memory in __virtio_crypto_ablkcipher_do_req(). - add logs for error path in virtio_crypto_alg_validate_key(). - add
2016 Dec 08
4
[PATCH v6 0/2] virtio-crypto: add Linux driver
v6: - add patch 1/2 to make sparc architecture happy. [Sam] - close created sessions previousely when rekeying. - convert the priority of virtio crypto algs from 4001 to 501 which is enough. v5: - add comments for algs_lock and table_lock. [Stefan] - use kzfree instead of kfree for key material security. [Stefan] - drop unnecessary spin_lock for struct virtio_crypto_ablkcipher_ctx. -
2016 Dec 08
4
[PATCH v6 0/2] virtio-crypto: add Linux driver
v6: - add patch 1/2 to make sparc architecture happy. [Sam] - close created sessions previousely when rekeying. - convert the priority of virtio crypto algs from 4001 to 501 which is enough. v5: - add comments for algs_lock and table_lock. [Stefan] - use kzfree instead of kfree for key material security. [Stefan] - drop unnecessary spin_lock for struct virtio_crypto_ablkcipher_ctx. -
2016 Nov 27
2
[PATCH v2 2/2] crypto: add virtio-crypto driver
...rypto *vcrypto_dev); > +struct virtio_crypto *virtcrypto_get_dev_node(int node); > +int virtcrypto_dev_start(struct virtio_crypto *vcrypto); > +void virtcrypto_dev_stop(struct virtio_crypto *vcrypto); > + > +static inline int virtio_crypto_get_current_node(void) > +{ > + return topology_physical_package_id(smp_processor_id()); > +} > + > +int virtio_crypto_algs_register(void); > +void virtio_crypto_algs_unregister(void); > + > +#endif /* _VIRITO_CRYPTO_COMMON_H */ > diff --git a/drivers/crypto/virtio/virtio_crypto_mgr.c b/drivers/crypto/virtio/virtio_crypto_mgr.c > new file mo...
2016 Nov 27
2
[PATCH v2 2/2] crypto: add virtio-crypto driver
...rypto *vcrypto_dev); > +struct virtio_crypto *virtcrypto_get_dev_node(int node); > +int virtcrypto_dev_start(struct virtio_crypto *vcrypto); > +void virtcrypto_dev_stop(struct virtio_crypto *vcrypto); > + > +static inline int virtio_crypto_get_current_node(void) > +{ > + return topology_physical_package_id(smp_processor_id()); > +} > + > +int virtio_crypto_algs_register(void); > +void virtio_crypto_algs_unregister(void); > + > +#endif /* _VIRITO_CRYPTO_COMMON_H */ > diff --git a/drivers/crypto/virtio/virtio_crypto_mgr.c b/drivers/crypto/virtio/virtio_crypto_mgr.c > new file mo...
2016 Nov 28
0
[virtio-dev] Re: [PATCH v2 2/2] crypto: add virtio-crypto driver
...uct virtio_crypto *virtcrypto_get_dev_node(int node); > > +int virtcrypto_dev_start(struct virtio_crypto *vcrypto); > > +void virtcrypto_dev_stop(struct virtio_crypto *vcrypto); > > + > > +static inline int virtio_crypto_get_current_node(void) > > +{ > > + return topology_physical_package_id(smp_processor_id()); > > +} > > + > > +int virtio_crypto_algs_register(void); > > +void virtio_crypto_algs_unregister(void); > > + > > +#endif /* _VIRITO_CRYPTO_COMMON_H */ > > diff --git a/drivers/crypto/virtio/virtio_crypto_mgr.c > b/drivers/crypto/vir...
2016 Nov 22
0
[PATCH v2 2/2] crypto: add virtio-crypto driver
...tcrypto_dev_started(struct virtio_crypto *vcrypto_dev); +struct virtio_crypto *virtcrypto_get_dev_node(int node); +int virtcrypto_dev_start(struct virtio_crypto *vcrypto); +void virtcrypto_dev_stop(struct virtio_crypto *vcrypto); + +static inline int virtio_crypto_get_current_node(void) +{ + return topology_physical_package_id(smp_processor_id()); +} + +int virtio_crypto_algs_register(void); +void virtio_crypto_algs_unregister(void); + +#endif /* _VIRITO_CRYPTO_COMMON_H */ diff --git a/drivers/crypto/virtio/virtio_crypto_mgr.c b/drivers/crypto/virtio/virtio_crypto_mgr.c new file mode 100644 index 0000000..5b7260c --- /de...
2016 Nov 28
0
[PATCH v3] crypto: add virtio-crypto driver
...tcrypto_dev_started(struct virtio_crypto *vcrypto_dev); +struct virtio_crypto *virtcrypto_get_dev_node(int node); +int virtcrypto_dev_start(struct virtio_crypto *vcrypto); +void virtcrypto_dev_stop(struct virtio_crypto *vcrypto); + +static inline int virtio_crypto_get_current_node(void) +{ + return topology_physical_package_id(smp_processor_id()); +} + +int virtio_crypto_algs_register(void); +void virtio_crypto_algs_unregister(void); + +#endif /* _VIRITO_CRYPTO_COMMON_H */ diff --git a/drivers/crypto/virtio/virtio_crypto_mgr.c b/drivers/crypto/virtio/virtio_crypto_mgr.c new file mode 100644 index 0000000..5b7260c --- /de...
2016 Nov 29
0
[PATCH v4 1/1] crypto: add virtio-crypto driver
...tcrypto_dev_started(struct virtio_crypto *vcrypto_dev); +struct virtio_crypto *virtcrypto_get_dev_node(int node); +int virtcrypto_dev_start(struct virtio_crypto *vcrypto); +void virtcrypto_dev_stop(struct virtio_crypto *vcrypto); + +static inline int virtio_crypto_get_current_node(void) +{ + return topology_physical_package_id(smp_processor_id()); +} + +int virtio_crypto_algs_register(void); +void virtio_crypto_algs_unregister(void); + +#endif /* _VIRTIO_CRYPTO_COMMON_H */ diff --git a/drivers/crypto/virtio/virtio_crypto_core.c b/drivers/crypto/virtio/virtio_crypto_core.c new file mode 100644 index 0000000..f0221d4 --- /...