On 10/13/2014 09:24 PM, Tadeusz Struk wrote:
snip
- node = adf_get_dev_node_id(pdev);
- accel_dev = kzalloc_node(sizeof(*accel_dev), GFP_KERNEL, node);
+ if (num_possible_nodes() 1 dev_to_node(pdev-dev) 0) {
+ /* If the accelerator is connected to a node with no
On 10/14/2014 03:53 AM, Prarit Bhargava wrote:
-node = adf_get_dev_node_id(pdev);
-accel_dev = kzalloc_node(sizeof(*accel_dev), GFP_KERNEL, node);
+if (num_possible_nodes() 1 dev_to_node(pdev-dev) 0) {
+/* If the accelerator is connected to a node with no memory
+
On 10/14/2014 10:50 AM, Tadeusz Struk wrote:
On 10/14/2014 03:53 AM, Prarit Bhargava wrote:
- node = adf_get_dev_node_id(pdev);
- accel_dev = kzalloc_node(sizeof(*accel_dev), GFP_KERNEL, node);
+ if (num_possible_nodes() 1 dev_to_node(pdev-dev) 0) {
+ /* If the
On 10/14/2014 08:41 AM, Prarit Bhargava wrote:
Oh, that's a really good point. But can you at least change the message to
do a
FW_BUG and dump the node information? That would be useful for debugging.
But this not always will be a FW_BUG. If a user will not populate one of
the nodes with
On 10/14/2014 01:18 PM, Tadeusz Struk wrote:
On 10/14/2014 08:41 AM, Prarit Bhargava wrote:
Oh, that's a really good point. But can you at least change the message to
do a
FW_BUG and dump the node information? That would be useful for debugging.
But this not always will be a FW_BUG. If
On 10/14/2014 01:27 PM, Prarit Bhargava wrote:
On 10/14/2014 01:18 PM, Tadeusz Struk wrote:
On 10/14/2014 08:41 AM, Prarit Bhargava wrote:
Oh, that's a really good point. But can you at least change the message to
do a
FW_BUG and dump the node information? That would be useful for
In a system with NUMA configuration we want to enforce that the accelerator is
connected to a node with memory to avoid cross QPI memory transaction.
Otherwise there is no point in using the accelerator as the encryption in
software will be faster.
Signed-off-by: Tadeusz Struk